Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/0HW7A5YZjq7/0HW7A5YZjq7.md +352 -0
- parse/train/0HW7A5YZjq7/0HW7A5YZjq7_content_list.json +1424 -0
- parse/train/0HW7A5YZjq7/0HW7A5YZjq7_middle.json +0 -0
- parse/train/0HW7A5YZjq7/0HW7A5YZjq7_model.json +0 -0
- parse/train/3ccoZ40Us0N/3ccoZ40Us0N.md +224 -0
- parse/train/3ccoZ40Us0N/3ccoZ40Us0N_content_list.json +1005 -0
- parse/train/3ccoZ40Us0N/3ccoZ40Us0N_middle.json +0 -0
- parse/train/3ccoZ40Us0N/3ccoZ40Us0N_model.json +0 -0
- parse/train/784_F-WCW46/784_F-WCW46.md +201 -0
- parse/train/784_F-WCW46/784_F-WCW46_content_list.json +1179 -0
- parse/train/784_F-WCW46/784_F-WCW46_middle.json +0 -0
- parse/train/784_F-WCW46/784_F-WCW46_model.json +0 -0
- parse/train/ALvt7nXa2q/ALvt7nXa2q.md +362 -0
- parse/train/ALvt7nXa2q/ALvt7nXa2q_content_list.json +1568 -0
- parse/train/ALvt7nXa2q/ALvt7nXa2q_middle.json +0 -0
- parse/train/ALvt7nXa2q/ALvt7nXa2q_model.json +0 -0
- parse/train/BJij4yg0Z/BJij4yg0Z.md +326 -0
- parse/train/BJij4yg0Z/BJij4yg0Z_content_list.json +1650 -0
- parse/train/BJij4yg0Z/BJij4yg0Z_middle.json +0 -0
- parse/train/BJij4yg0Z/BJij4yg0Z_model.json +0 -0
- parse/train/Byl1W1rtvH/Byl1W1rtvH.md +376 -0
- parse/train/HJMHpjC9Ym/HJMHpjC9Ym.md +402 -0
- parse/train/HJMHpjC9Ym/HJMHpjC9Ym_content_list.json +0 -0
- parse/train/HJMHpjC9Ym/HJMHpjC9Ym_middle.json +0 -0
- parse/train/HJMHpjC9Ym/HJMHpjC9Ym_model.json +0 -0
- parse/train/HJx81ySKwr/HJx81ySKwr.md +271 -0
- parse/train/HJx81ySKwr/HJx81ySKwr_content_list.json +1442 -0
- parse/train/HJx81ySKwr/HJx81ySKwr_middle.json +0 -0
- parse/train/HJx81ySKwr/HJx81ySKwr_model.json +0 -0
- parse/train/M_lkFOwVdYc/M_lkFOwVdYc.md +260 -0
- parse/train/M_lkFOwVdYc/M_lkFOwVdYc_content_list.json +1049 -0
- parse/train/M_lkFOwVdYc/M_lkFOwVdYc_middle.json +0 -0
- parse/train/M_lkFOwVdYc/M_lkFOwVdYc_model.json +0 -0
- parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4.md +313 -0
- parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_content_list.json +1315 -0
- parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_middle.json +0 -0
- parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_model.json +0 -0
- parse/train/PbEHqvFtcS/PbEHqvFtcS.md +0 -0
- parse/train/PbEHqvFtcS/PbEHqvFtcS_content_list.json +0 -0
- parse/train/PbEHqvFtcS/PbEHqvFtcS_middle.json +0 -0
- parse/train/PbEHqvFtcS/PbEHqvFtcS_model.json +0 -0
- parse/train/S1x2PCNKDB/S1x2PCNKDB.md +415 -0
- parse/train/S1x2PCNKDB/S1x2PCNKDB_content_list.json +2216 -0
- parse/train/S1x2PCNKDB/S1x2PCNKDB_middle.json +0 -0
- parse/train/S1x2PCNKDB/S1x2PCNKDB_model.json +0 -0
- parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ.md +264 -0
- parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_content_list.json +1227 -0
- parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_middle.json +0 -0
- parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_model.json +0 -0
- parse/train/SypU81Ole/SypU81Ole.md +189 -0
parse/train/0HW7A5YZjq7/0HW7A5YZjq7.md
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Self-Supervised Learning with Kernel Dependence Maximization
|
| 2 |
+
|
| 3 |
+
Yazhe Li∗ DeepMind and Gatsby Unit, UCL yazhe@google.com
|
| 4 |
+
|
| 5 |
+
Roman Pogodin∗ Gatsby Unit, UCL roman.pogodin.17@ucl.ac.uk
|
| 6 |
+
|
| 7 |
+
Danica J. Sutherland UBC and Amii† dsuth@cs.ubc.ca
|
| 8 |
+
|
| 9 |
+
Arthur Gretton Gatsby Unit, UCL arthur.gretton@gmail.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
We approach self-supervised learning of image representations from a statistical dependence perspective, proposing Self-Supervised Learning with the HilbertSchmidt Independence Criterion (SSL-HSIC). SSL-HSIC maximizes dependence between representations of transformations of an image and the image identity, while minimizing the kernelized variance of those representations. This framework yields a new understanding of InfoNCE, a variational lower bound on the mutual information (MI) between different transformations. While the MI itself is known to have pathologies which can result in learning meaningless representations, its bound is much better behaved: we show that it implicitly approximates SSLHSIC (with a slightly different regularizer). Our approach also gives us insight into BYOL, a negative-free SSL method, since SSL-HSIC similarly learns local neighborhoods of samples. SSL-HSIC allows us to directly optimize statistical dependence in time linear in the batch size, without restrictive data assumptions or indirect mutual information estimators. Trained with or without a target network, SSL-HSIC matches the current state-of-the-art for standard linear evaluation on ImageNet [1], semi-supervised learning and transfer to other classification and vision tasks such as semantic segmentation, depth estimation and object recognition. Code is available at https://github.com/deepmind/ssl_hsic.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Learning general-purpose visual representations without human supervision is a long-standing goal of machine learning. Specifically, we wish to find a feature extractor that captures the image semantics of a large unlabeled collection of images, so that e.g. various image understanding tasks can be achieved with simple linear models. One approach takes the latent representation of a likelihood-based generative model [2–8]; such models, though, solve a harder problem than necessary since semantic features need not capture low-level details of the input. Another option is to train a self-supervised model for a “pretext task,” such as predicting the position of image patches, identifying rotations, or image inpainting [9–14]. Designing good pretext tasks, however, is a subtle art, with little theoretical guidance available. Recently, a class of models based on contrastive learning [15–22] has seen substantial success: dataset images are cropped, rotated, color shifted, etc. into several views, and features are then trained to pull together representations of the “positive” pairs of views of the same source image, and push apart those of “negative” pairs (from different images). These methods are either understood from an information theoretic perspective as estimating the mutual information between the “positives” [15], or explained as aligning features subject to a uniformity constraint [23]. Another line of research [24, 25] attempts to learn representation without the “negative” pairs, but requires either a target network or stop-gradient operation to avoid collapsing.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Top-1 accuracies with linear evaluation for different ResNet architecture and methods: supervised (as in [25]), SSL-HSIC (with a target network; ours), BYOL [25], SwAV [18], SimCLR [19], MoCo v2 [20] and Barlow Twins [22].
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 2: Statistical dependence view of contrastive learning: representations of transformed images should highly depend on image identity. Measuring dependence with HSIC, this pushes different images’ representation distributions apart (black arrows) and pulls representations of the same image together (colored shapes).
|
| 24 |
+
|
| 25 |
+
We examine the contrastive framework from a statistical dependence point of view: feature representations for a given transformed image should be highly dependent on the image identity (Figure 2). To measure dependence, we turn to the Hilbert-Schmidt Independence Criterion (HSIC) [26], and propose a new loss for self-supervised learning which we call SSL-HSIC. Our loss is inspired by HSIC Bottleneck [27, 28], an alternative to Information Bottleneck [29], where we use the image identity as the label, but change the regularization term.
|
| 26 |
+
|
| 27 |
+
Through the dependence maximization perspective, we present a unified view of various selfsupervised losses. Previous work [30] has shown that the success of InfoNCE cannot be solely attributed to properties of mutual information, in particular because mutual information (unlike kernel measures of dependence) has no notion of geometry in feature space: for instance, all invertible encoders achieve maximal mutual information, but they can output dramatically different representations with very different downstream performance [30]. Variational bounds on mutual information do impart notions of locality that allow them to succeed in practice, departing from the mutual information quantity that they try to estimate. We prove that InfoNCE, a popular such bound, in fact approximates SSL-HSIC with a variance-based regularization. Thus, InfoNCE can be thought of as working because it implicitly estimates a kernel-based notion of dependence. We additionally show SSL-HSIC is related to metric learning, where the features learn to align to the structure induced by the self-supervised labels. This perspective is closely related to the objective of BYOL [25], and can explain properties such as alignment and uniformity [23] observed in contrastive learning.
|
| 28 |
+
|
| 29 |
+
Our perspective brings additional advantages, in computation and in simplicity of the algorithm, compared with existing approaches. Unlike the indirect variational bounds on mutual information [15, 31, 32], SSL-HSIC can be directly estimated from mini-batches of data. Unlike “negative-free” methods, the SSL-HSIC loss itself penalizes trivial solutions, so techniques such as target networks are not needed for reasonable outcomes. Using a target network does improve the performance of our method, however, suggesting target networks have other advantages that are not yet well understood. Finally, we employ random Fourier features [33] in our implementation, resulting in cost linear in batch size.
|
| 30 |
+
|
| 31 |
+
Our main contributions are as follows:
|
| 32 |
+
|
| 33 |
+
• We introduce SSL-HSIC, a principled self-supervised loss using kernel dependence maximization. • We present a unified view of contrastive learning through dependence maximization, by establishing relationships between SSL-HSIC, InfoNCE, and metric learning.
|
| 34 |
+
|
| 35 |
+
• Our method achieves top-1 accuracy of $7 4 . 8 \%$ and top-5 accuracy of $9 2 . 2 \%$ with linear evaluations (see Figure 1 for a comparison with other methods), top-1 accuracy of $8 0 . 2 \%$ and Top-5 accuracy of $9 4 . 7 \%$ with fine-tuning, and competitive performance on a diverse set of downstream tasks.
|
| 36 |
+
|
| 37 |
+
# 2 Background
|
| 38 |
+
|
| 39 |
+
# 2.1 Self-supervised learning
|
| 40 |
+
|
| 41 |
+
Recent developments in self-supervised learning, such as contrastive learning, try to ensure that features of two random views of an image are more associated with each other than with random views of other images. Typically, this is done through some variant of a classification loss, with one “positive” pair and many “negatives.” Other methods can learn solely from “positive” pairs, however. There have been many variations of this general framework in the past few years.
|
| 42 |
+
|
| 43 |
+
Van den Oord et al. [15] first formulated the InfoNCE loss, which estimates a lower bound of the mutual information between the feature and the context. SimCLR [19, 34] carefully investigates the contribution of different data augmentations, and scales up the training batch size to include more negative examples. MoCo [17] increases the number of negative examples by using a memory bank. BYOL [25] learns solely on positive image pairs, training so that representations of one view match that of the other under a moving average of the featurizer. Instead of the moving average, SimSiam [24] suggests a stop-gradient on one of the encoders is enough to prevent BYOL from finding trivial solutions. SwAV [18] clusters the representation online, and uses distance from the cluster centers rather than computing pairwise distances of the data. Barlow Twins [22] uses an objective related to the cross-correlation matrix of the two views, motivated by redundancy reduction. It is perhaps the most related to our work in the literature (and their covariance matrix can be connected to HSIC [35]), but our method measures dependency more directly. While Barlow Twins decorrelates components of final representations, we maximize the dependence between the image’s abstract identity and its transformations.
|
| 44 |
+
|
| 45 |
+
On the theory side, InfoNCE is proposed as a variational bound on Mutual Information between the representation of two views of the same image [15, 32]. Tschannen et al. [30] observe that InfoNCE performance cannot be explained solely by the properties of the mutual information, however, but is influenced more by other factors, such as the formulation of the estimator and the architecture of the feature extractor. Essentially, representations with the same MI can have drastically different representational qualities.
|
| 46 |
+
|
| 47 |
+
To see this, consider a problem with two inputs, $A$ and $B$ (Figure 3, green and purple), and a one-dimensional featurizer, parameterized by the integer $M$ , which maps $A$ to Uniform $\langle \bar { \{ 0 , 2 , \ldots , 2 M \} } \rangle$ ) and $B$ to $\operatorname { U n i f o r m } ( \{ 1 , 3 , \dotsc , 2 M + 1 \} )$ . When $M \ = \ 0$ , the inputs are encoded into linearly separable features $A = 0$ and $B = 1$ (Figure 3, bottom). Otherwise when $M > 0$ , they are interspersed like $A B A B A B A B - { \mathfrak { a } }$ representation which is much harder to work with for downstream learners. Nevertheless, the mutual information between the features of any two augmentations of the same input (a positive pair) is independent of $M$ , that is $H [ Z _ { 1 } ] - H [ Z _ { 1 } \bar { | } Z _ { 2 } ] = \log 2$ for any $M$ . Note that InfoNCE would strongly prefer $M = 0$ , indeed behaving very differently from MI.
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 3: Three distributions of positive examples for two classes (green and purple) that have the same mutual information, but drastically different quality for downstream learners.
|
| 51 |
+
|
| 52 |
+
ater theories suggest that contrastive losses balance alignment of individual features and uniformity of the feature distribution [23], or in general alignment and some loss-defined distribution [36]. We propose to interpret the contrastive loss through the lens of statistical dependence, and relate it to metric learning, which naturally leads to alignment and uniformity.
|
| 53 |
+
|
| 54 |
+
# 2.2 Hilbert-Schmidt Independence Criterion (HSIC)
|
| 55 |
+
|
| 56 |
+
The Hilbert-Schmidt Independence Criterion (HSIC) [26] is a kernel-based measure of dependence between probability distributions. Like mutual information, for a wide range of kernels ${ \mathrm { H S I C } } ( X , Y ) = 0$ if and only if $X$ and $Y$ are independent [37], and large values of the measure correspond to “more dependence.” Unlike mutual information, HSIC incorporates a notion of geometry (via the kernel choice), and is both statistically and computationally easy to estimate. It has been used in a variety of applications, particularly for independence testing [38], but it has also been maximized in applications such as feature selection [39], clustering [40, 41], active learning [42], and as a classification loss called HSIC Bottleneck [27, 28] (similar ideas were expressed in [43, 44]).
|
| 57 |
+
|
| 58 |
+
HSIC measures the dependence between two random variables by first taking a nonlinear feature transformation of each, say $\phi : \mathcal { X } \to \mathcal { F }$ and $\psi : \mathcal { V } \to \mathcal { G }$ (with $\mathcal { F }$ and $\mathcal { G }$ reproducing kernel Hilbert spaces, RKHSes1), and then evaluating the norm of the cross-covariance between those features:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\operatorname { H S I C } ( X , Y ) = \left\| \mathbb { E } [ \phi ( X ) \psi ( Y ) ^ { \top } ] - \mathbb { E } [ \phi ( X ) ] \mathbb { E } [ \psi ( Y ) ] ^ { \top } \right\| _ { H S } ^ { 2 } .
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
Here $\| \cdot \| _ { H S }$ is the Hilbert-Schmidt norm, which in finite dimensions is the usual Frobenius norm. HSIC measures the scale of the correlation in these nonlinear features, which allows it to identify nonlinear dependencies between $X$ and $Y$ with appropriate features $\phi$ and $\psi$ .
|
| 65 |
+
|
| 66 |
+
Inner products in an RKHS are by definition kernel functions: $k ( x , x ^ { \prime } ) \ = \ \langle \phi ( x ) , \phi ( x ^ { \prime } ) \rangle _ { \mathcal { F } }$ and $l ( y , y ^ { \prime } ) = \langle \psi ( y ) , \psi ( y ^ { \prime } ) \rangle _ { \mathcal { G } }$ . Let $( X ^ { \prime } , Y ^ { \prime } )$ , $( X ^ { \prime \prime } , Y ^ { \prime \prime } )$ be independent copies of $( X , Y )$ ; this gives
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\operatorname { H S I C } ( X , Y ) = \operatorname { \mathbb { E } } \left[ k ( X , X ^ { \prime } ) l ( Y , Y ^ { \prime } ) \right] - 2 \operatorname { \mathbb { E } } \left[ k ( X , X ^ { \prime } ) l ( Y , Y ^ { \prime \prime } ) \right] + \operatorname { \mathbb { E } } \left[ k ( X , X ^ { \prime } ) \right] \operatorname { \mathbb { E } } \left[ l ( Y , Y ^ { \prime } ) \right] .
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
HSIC is also straightforward to estimate: given i.i.d. samples $\left\{ ( x _ { 1 } , y _ { 1 } ) , \dotsc , ( x _ { N } , y _ { N } ) \right\}$ drawn i.i.d. from the joint distribution of $( X , Y )$ , Gretton et al. [26] propose an estimator
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
{ \widehat { \mathrm { H S I C } } } ( X , Y ) = \frac { 1 } { ( N - 1 ) ^ { 2 } } \mathrm { T r } ( K H L H ) ,
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $K _ { i j } = k ( x _ { i } , x _ { j } )$ and $L _ { i j } = l ( y _ { i } , y _ { j } )$ are the kernel matrices, and $\begin{array} { r } { H = I - \frac { 1 } { N } \mathbf { 1 } \mathbf { 1 } ^ { \top } } \end{array}$ is called the centering matrix. This estimator has an $\bar { O } ( 1 / N )$ bias, which is not a concern for our uses; however, an unbiased estimator with the same computational cost is available [39].
|
| 79 |
+
|
| 80 |
+
# 3 Self-supervised learning with Kernel Dependence Maximization
|
| 81 |
+
|
| 82 |
+
Our method builds on the self-supervised learning framework used by most of the recent selfsupervised learning approaches [16–19, 22, 24, 25]. For a dataset with $N$ points $x _ { i }$ , each point goes through a random transformation $t ^ { p } ( x _ { i } )$ (e.g. random crop), and then forms a feature representation $z _ { i } ^ { p } = { \bar { f } } _ { \theta } ( t ^ { p } ( x _ { i } ) )$ with an encoder network $f _ { \theta }$ . We associate each image $x _ { i }$ with its identity $y _ { i }$ , which works as a one-hot encoded label: $y _ { i } \in \mathbb { R } ^ { N }$ and $( y _ { i } ) _ { d } = 1$ iff $d = i$ (and zero otherwise). To match the transformations and image identities, we maximize the dependence between $z _ { i }$ and $y _ { i }$ such that $z _ { i }$ is predictive of its original image. To build representations suitable for downstream tasks, we also need to penalize high-variance representations. These ideas come together in our HSIC-based objective for self-supervised learning, which we term SSL-HSIC:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { S S L - H S I C } } ( \boldsymbol { \theta } ) = - \mathrm { H S I C } \left( \boldsymbol { Z } , \boldsymbol { Y } \right) + \gamma \sqrt { \mathrm { H S I C } \left( \boldsymbol { Z } , \boldsymbol { Z } \right) } . } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
Unlike contrastive losses, which make the $z _ { i } ^ { p }$ from the same $x _ { i }$ closer and those from different $x _ { j }$ more distant, we propose an alternative way to match different transformations of the same image with its abstract identity (e.g. position in the dataset).
|
| 89 |
+
|
| 90 |
+
Our objective also resembles the HSIC bottleneck for supervised learning [27] (in particular, the version of [28]), but ours uses a square root for $\mathrm { H S I C } ( Z , Z )$ . The square root makes the two terms on the same scale: $\mathrm { H S I C } ( Z , Y )$ is effectively a dot product, and $\sqrt { \mathrm { H S I C } ( Z , Z ) }$ a norm, so that e.g. scaling the kernel by a constant does not change the relative amount of regularization;2 this also gives better performance in practice.
|
| 91 |
+
|
| 92 |
+
Due to the one-hot encoded labels, we can re-write HSIC $( Z , Y )$ as (see Appendix A)
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r } { \mathrm { H S I C } ( Z , Y ) \propto \mathbb { E } _ { z _ { 1 } , z _ { 2 } \sim p o s } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] - \mathbb { E } _ { z _ { 1 } } \mathbb { E } _ { z _ { 2 } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] , } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where the first expectation is over the distribution of “positive” pairs (those from the same source image), and the second one is a sum over all image pairs, including their transformations. The first term in (5) pushes representations belonging to the same image identity together, while the second term keeps mean representations for each identity apart (as in Figure 2). The scaling of $\mathrm { H S I C } ( Z , Y )$ depends on the choice of the kernel over $Y$ , and is irrelevant to the optimization.
|
| 99 |
+
|
| 100 |
+
This form also reveals three key theoretical results. Section 3.1 shows that InfoNCE is better understood as an HSIC-based loss than a mutual information between views. Section 3.2 reveals that the dependence maximization in $\mathrm { H S I C } ( Z , Y )$ can also be viewed as a form of distance metric learning, where the cluster structure is defined by the labels. Finally, $\mathrm { H S I C } ( Z , Y )$ is proportional to the average kernel-based distance between the distribution of views for each source image (the maximum mean discrepancy, MMD; see Appendix B.2).
|
| 101 |
+
|
| 102 |
+
# 3.1 Connection to InfoNCE
|
| 103 |
+
|
| 104 |
+
In this section we show the connection between InfoNCE and our loss; see Appendix B for full details. We first write the latter in its infinite sample size limit (see [23] for a derivation) as
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\mathcal { L } _ { \mathrm { I n f o N C E } } ( \theta ) = - \mathbb { E } _ { z _ { 1 } , z _ { 2 } \sim \mathrm { p o s } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] + \mathbb { E } _ { z _ { 1 } } \log \mathbb { E } _ { z _ { 2 } } \left[ \exp \left( k ( z _ { 1 } , z _ { 2 } ) \right) \right] ,
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where the last two expectations are taken over all points, and the first is over the distribution of positive pairs. The kernel $k ( z _ { 1 } , z _ { 2 } )$ was originally formulated as a scoring function in a form of a dot product [15], and then a scaled cosine similarity [19]. Both functions are valid kernels.
|
| 111 |
+
|
| 112 |
+
Now assume that $k ( z _ { 1 } , z _ { 2 } )$ doesn’t deviate much from $\mathbb { E } _ { z _ { 2 } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right]$ , Taylor-expand the exponent in (6) around $\mathbb { E } _ { z _ { 2 } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right]$ , then expand $\log ( 1 + \mathbb { E } _ { z _ { 2 } } ( . . . ) ) \approx \mathbb { E } _ { z _ { 2 } } ( . . . )$ . We obtain an $\mathrm { H S I C } ( Z , Y )$ - based objective:
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\mathcal { L } _ { \mathrm { I n f o N C E } } ( \theta ) \approx \underbrace { - \mathbb { E } _ { z _ { 1 } , z _ { 2 } \sim \mathrm { p o s } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] + \mathbb { E } _ { z _ { 1 } } \mathbb { E } _ { z _ { 2 } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] } _ { \propto - \mathrm { H S I C } ( Z , Y ) } + \underbrace { \frac { 1 } { 2 } \mathbb { E } _ { z _ { 1 } } \left[ \mathbb { V } \mathrm { a r } _ { z _ { 2 } } \left[ k ( z _ { 1 } , z _ { 2 } ) \right] \right] } _ { \mathrm { v a r i a n c e p e n a l t y } } .
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
Since the scaling of $\mathrm { H S I C } ( Z , Y )$ is irrelevant to the optimization, we assume scaling to replace $\propto$ with $=$ . In the small variance regime, we can show that for the right $\gamma$ ,
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\begin{array} { r } { - \mathrm { H S I C } \left( Z , Y \right) + \gamma \mathrm { H S I C } \left( Z , Z \right) \le \mathcal { L } _ { \mathrm { I n f o N C E } } ( \theta ) + o ( \mathrm { v a r i a n c e } ) . } \end{array}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
For $\mathrm { H S I C } ( Z , Z ) \le 1$ , we also have that
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
- \mathrm { H S I C } \left( Z , Y \right) + \gamma \mathrm { H S I C } \left( Z , Z \right) \leq \mathcal { L } _ { \mathrm { S S L - H S I C } } ( \theta )
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
due to the square root. InfoNCE and SSL-HSIC in general don’t quite bound each other due to discrepancy in the variance terms, but in practice the difference is small.
|
| 131 |
+
|
| 132 |
+
Why should we prefer the HSIC interpretation of InfoNCE? Initially, InfoNCE was suggested as a variational approximation to the mutual information between two views [15]. It has been observed, however, that using tighter estimators of mutual information leads to worse performance [30]. It is also simple to construct examples where InfoNCE finds different representations while the underlying MI remains constant [30]. Alternative theories suggest that InfoNCE balances alignment of “positive” examples and uniformity of the overall feature representation [23], or that (under strong assumptions) it can identify the latent structure in a hypothesized data-generating process, akin to nonlinear ICA [50]. Our view is consistent with these theories, but doesn’t put restrictive assumptions on the input data or learned representations. In Section 5 (summarized in Table 8a), we show that our interpretation gives rise to a better objective in practice.
|
| 133 |
+
|
| 134 |
+
# 3.2 Connection to metric learning
|
| 135 |
+
|
| 136 |
+
Our SSL-HSIC objective is closely related to kernel alignment [48], especially centered kernel alignment [49]. As a kernel method for distance metric learning, kernel alignment measures the agreement between a kernel function and a target function. Intuitively, the self-supervised labels $Y$ imply a cluster structure, and $\mathrm { H S I C } ( Z , Y )$ estimates the degree of agreement between the learned features and this cluster structure in the kernel space. This relationship with clustering is also established in [40, 41, 45], where labels are learned rather than features. The clustering perspective is more evident when we assume linear kernels over both $Z$ and $Y$ , and $Z$ is unit length and centered:3
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\begin{array} { r l } & { - \mathrm { H S I C } ( Z , Y ) \propto - \displaystyle \frac { 1 } { M } T r ( Y ^ { \top } Z ^ { \top } Z Y ) + T r ( Z ^ { \top } Z ) - N M } \\ & { \qquad = - \displaystyle \frac { 1 } { M } \sum _ { i = 1 } ^ { N } \left\| \sum _ { p = 1 } ^ { M } z _ { i } ^ { p } \right\| _ { 2 } ^ { 2 } + \sum _ { i = 1 } ^ { N } \sum _ { p = 1 } ^ { M } \| z _ { i } ^ { p } \| _ { 2 } ^ { 2 } - N M = \sum _ { i = 1 } ^ { N } \sum _ { p = 1 } ^ { M } \| z _ { i } ^ { p } - \bar { z } _ { i } \| _ { 2 } ^ { 2 } - N M , } \end{array}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
with $M$ the number of augmentations per image and $\bar { z } _ { i } = \sum _ { p } z _ { i } ^ { p } / M$ the average feature vector of the augmented views of $x _ { i }$ . We emphasize, though, that (10) assumes centered, normalized data with linear kernels; the right-hand side of (10) could be optimized by setting all $z _ { i } ^ { p }$ to the same vector for each $i$ , but this does not actually optimize $\mathrm { H S I C } ( Z , \bar { Y } )$ .
|
| 143 |
+
|
| 144 |
+
Equation (10) shows that we recover the spectral formulation [51] and sum-of-squares loss used in the $\mathbf { k }$ -means clustering algorithm from the kernel objective. Moreover, the self-supervised label imposes that the features from transformations of the same image are gathered in the same cluster. Equation (10) also allows us to connect SSL-HSIC to non-contrastive objectives such as BYOL, although the connection is subtle because of its use of predictor and target networks. If each image is augmented with two views, we can compute (10) using $\bar { z _ { i } } \approx ( z _ { i } ^ { 1 } + \bar { z _ { i } ^ { 2 } } ) / 2$ , so the clustering loss becomes $\propto \textstyle \sum _ { i } | | z _ { i } ^ { 1 } - z _ { i } ^ { 2 } | | _ { 2 } ^ { 2 }$ . This is exactly the BYOL objective, only that $z _ { i } ^ { 2 }$ in BYOL comes from a target network. The assumption of centered and normalized features for (10) is important in the case of BYOL: without it, BYOL can find trivial solutions where all the features are collapsed to the same feature vector far away from the origin. The target network is used to prevent the collapse. SSL-HSIC, on the other hand, rules out such a solution by building the centering into the loss function, and therefore can be trained successfully without a target network or stop gradient operation.
|
| 145 |
+
|
| 146 |
+
# 3.3 Estimator of SSL-HSIC
|
| 147 |
+
|
| 148 |
+
To use SSL-HSIC, we need to correctly and efficiently estimate (4). Both points are non-trivial: the self-supervised framework implies non-i.i.d. batches (due to positive examples), while the estimator in (3) assumes i.i.d. data; moreover, the time to compute (3) is quadratic in the batch size.
|
| 149 |
+
|
| 150 |
+
First, for $\mathrm { H S I C } ( Z , Z )$ we use the biased estimator in (3). Although the i.i.d. estimator (3) results in an $O ( 1 / B )$ bias for $B$ original images in the batch size (see Appendix A), the batch size $B$ is large in our case and therefore the bias is negligible. For $\mathrm { H S I C } ( Z , Y )$ the situation is more delicate: the i.i.d. estimator needs re-scaling, and its bias depends on the number of positive examples $M$ , which is typically very small (usually 2). We propose the following estimator:
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\widehat { \mathrm { H S I C } } ( Z , Y ) = \frac { \Delta l } { N } \left( \frac { 1 } { B M ( M - 1 ) } \sum _ { i p l } k ( z _ { i } ^ { p } , z _ { i } ^ { l } ) - \frac { 1 } { B ^ { 2 } M ^ { 2 } } \sum _ { i j p l } k ( z _ { i } ^ { p } , z _ { j } ^ { l } ) - \frac { 1 } { M - 1 } \right) ,
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
where $i$ and $j$ index original images, and $p$ and $l$ their random transformations; $k$ is the kernel used for latent $Z , l$ is the kernel used for the labels, and $\Delta l = l ( i , i ) - l ( i , j )$ ( $\it l$ for same labels minus $l$ for different labels). Note that due to the one-hot structure of self-supervised labels $Y$ , the standard (i.i.d.-based) estimator would miss the $1 / N$ scaling and the $M - 1$ correction (the latter is important in practice, as we usually have $M = 2$ ). See Appendix A for the derivations.
|
| 157 |
+
|
| 158 |
+
For convenience, we assume $\Delta l = N$ (any scaling of $l$ can be subsumed by $\gamma$ ), and optimize
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\widehat { \mathcal { L } } _ { \mathrm { S S L - H S I C } } ( \theta ) = - \widehat { \mathrm { H S I C } } ( Z , Y ) + \gamma \sqrt { \widehat { \mathrm { H S I C } } ( Z , Z ) } .
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
The computational complexity of the proposed estimators is $O ( B ^ { 2 } M ^ { 2 } )$ for each mini-batch of size $B$ with $M$ augmentations. We can reduce the complexity to $O ( B M )$ by using random Fourier features (RFF) [33], which approximate the kernel $k ( z _ { 1 } , z _ { 2 } )$ with a carefully chosen random $D$ -dimensional approximation $R ( z _ { 1 } ) ^ { \top } R ( z _ { 2 } )$ for $R ( z ) : \mathbb { R } ^ { D _ { z } } \mathbb { R } ^ { D }$ , such that $\begin{array} { r } { k ( z _ { 1 } , z _ { 2 } ) = \mathbb { E } \left[ R ( z _ { 1 } ) ^ { \top } R ( z _ { 2 } ) \right] , } \end{array}$ . Fourier frequencies are sampled independently for the two kernels on $Z$ in $\mathrm { H S I C } ( Z , Z )$ at each training step. We leave the details on how to construct $R ( z )$ for the kernels we use to Appendix C.
|
| 165 |
+
|
| 166 |
+
# 4 Experiments
|
| 167 |
+
|
| 168 |
+
In this section, we present our experimental setup, where we assess the performance of the representation learned with SSL-HSIC both with and without a target network. First, we train a model with a standard ResNet-50 backbone using SSL-HSIC as objective on the training set of ImageNet ILSVRC-2012 [1]. For evaluation, we retain the backbone as a feature extractor for downstream tasks. We evaluate the representation on various downstream tasks including classification, object segmentation, object detection and depth estimation.
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Architecture and SSL-HSIC objective. A self-supervised label $y$ – an indicator of the image identity – is associated with an image $x$ . Image transformation functions $t$ are sampled and applied to the original image, resulting in views $t ^ { 1 } ( x )$ and $t ^ { 2 } ( x )$ . Features $z ^ { 1 }$ and $z ^ { 2 }$ are obtained after passing the augmented views through encoder $( f )$ , projector $( g )$ , and possibly predictor $( q )$ networks, while label $y$ is retained. Kernel matrices, $K$ for the latents and $L$ for the labels, are computed on the mini-batch of data; SSL-HSIC is estimated with $K$ and $L$ as in (12). The blue boxes reflect two potential options: when using a target network, $\xi$ is a moving average of $\theta$ , and a predictor network $q$ is added; without the target network, $q$ is removed and $\xi$ is simply equal to $\theta$ .
|
| 172 |
+
|
| 173 |
+
# 4.1 Implementation
|
| 174 |
+
|
| 175 |
+
Architecture Figure 4 illustrates the architecture we used for SSL-HSIC in this section. To facilitate comparison between different methods, our encoder $f _ { \theta }$ uses the standard ResNet-50 backbone without the final classification layer. The output of the encoder is a 2048-dimension embedding vector, which is the representation used for downstream tasks. As in BYOL [25], our projector $g$ and predictor $q$ networks are 2-layer MLPs with 4096 hidden dimensions and 256 output dimensions. The outputs of the networks are batch-normalized and rescaled to unit norm before computing the loss. We use an inverse multiquadric kernel (IMQ) for the latent representation (approximated with 512 random Fourier features that are resampled at each step; see Appendix C for details) and a linear kernel for labels. $\gamma$ in (4) is set to 3. When training without a target network, unlike SimSiam [24], we do not stop gradients for either branch. If the target network is used, its weights are an exponential moving average of the online network weights. We employ the same schedule as BYOL [25], $\tau = 1 \stackrel { - } { - } 0 . 0 1 \stackrel { - } { \cdot } ( \cos ( \pi t / T ) + 1 ) / 2$ with $t$ the current step and $T$ the total training steps.
|
| 176 |
+
|
| 177 |
+
Image augmentation Our method uses the same data augmentation scheme as BYOL (see Appendix D.1). Briefly, we first draw a random patch from the original image and resize it to $2 2 4 \times 2 2 4$ Then, we apply a random horizontal flip, followed by color jittering, consisting of a random sequence of brightness, contrast, saturation, hue adjustments, and an optional grayscale conversion. Finally Gaussian blur and solarization are applied, and the view is normalized with ImageNet statistics.
|
| 178 |
+
|
| 179 |
+
Optimization We train the model with a batch size of 4096 on 128 Cloud TPU v4 cores. Again, following [19, 25], we use the LARS optimizer [52] with a cosine decay learning rate schedule over 1000 epochs. The base learning rate to all of our experiments is 0.4 and it is scaled linearly [53] with the batch size $l r = 0 . 4 \times b a t c h { \_ } s i z e / 2 5 6 .$ . All experiments use weight decay of $1 0 ^ { - 6 }$ .
|
| 180 |
+
|
| 181 |
+
Learning kernel parameters We use a linear kernel for labels, since the type of kernel only scales (12). Our inverse multiquadric kernel for the latent $Z$ has an additional kernel scale parameter. We optimize this along with all other parameters, but regularize it to maximize the entropy of the distribution $k _ { \sigma } ( s )$ , where $s _ { i j } = \lVert { z } _ { i } - { z } _ { j } \rVert ^ { 2 }$ ; this amounts to maximizing $\log \lVert k _ { \sigma } ^ { \prime } ( s ) \rVert ^ { 2 }$ (Appendix D.1.2).
|
| 182 |
+
|
| 183 |
+
Linear evaluation on ImageNet Learned features are evaluated with the standard linear evaluation protocol commonly used in evaluating self-supervised learning methods [15–22, 25]. Table 1 reports the top-1 and top-5 accuracies obtained with SSL-HSIC on ImageNet validation set, and compares to previous self-supervised learning methods. Without a target network, our method reaches $7 2 . 2 \%$ top-1 and $9 0 . 7 \%$ top-5 accuracies. Unlike BYOL, the SSL-HSIC objective prevents the network from finding trivial solutions as explained in Section 3.2. Adding the target network, our method outperforms most previous methods, achieving top-1 accuracy of $7 4 . 8 \%$ and top-5 accuracy of $9 2 . 2 \%$ The fact that we see performance gains from adopting a target network suggests that its effect is not yet well understood, although note discussion in [25] which points to its stabilizing effect.
|
| 184 |
+
|
| 185 |
+
Table 1: Linear evaluation on the ImageNet validation set.
|
| 186 |
+
|
| 187 |
+
<table><tr><td></td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>Supervised [54]</td><td>75.9</td><td>92.8</td></tr><tr><td>SimCLR[19]</td><td>69.3</td><td>89.0</td></tr><tr><td>MoCo v2 [20]</td><td>71.1</td><td>90.1</td></tr><tr><td>BYOL [25]</td><td>74.3</td><td>91.6</td></tr><tr><td>SwAV[18]</td><td>75.3</td><td>-</td></tr><tr><td>Barlow Twins [22]</td><td>73.2</td><td>91.0</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>72.2</td><td>90.7</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>74.8</td><td>92.2</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 2: Fine-tuning on $1 \%$ , $10 \%$ and $100 \%$ of the ImageNet training set and evaluating on the validation set.
|
| 190 |
+
|
| 191 |
+
<table><tr><td rowspan="2"></td><td colspan="3">Top-1(%)</td><td colspan="3">Top-5(%)</td></tr><tr><td>1%</td><td>10%</td><td>100%</td><td>1%</td><td>10%</td><td>100%</td></tr><tr><td>Supervised [54]</td><td>25.4</td><td>56.4</td><td>75.9</td><td>48.4</td><td>80.4</td><td>92.8</td></tr><tr><td>SimCLR [19]</td><td>48.3</td><td>65.6</td><td>76.0</td><td>75.5</td><td>87.8</td><td>93.1</td></tr><tr><td>BYOL [25]</td><td>53.2</td><td>68.8</td><td>77.7</td><td>78.4</td><td>89.0</td><td>93.9</td></tr><tr><td>SwAV[18]</td><td>53.9</td><td>70.2</td><td>1</td><td>78.5</td><td>89.9</td><td>-</td></tr><tr><td>Barlow Twins [22]</td><td>55.0</td><td>69.7</td><td>-</td><td>79.2</td><td>89.3</td><td>-</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>45.3</td><td>65.5</td><td>76.4</td><td>72.7</td><td>87.5</td><td>93.2</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>52.1</td><td>67.9</td><td>77.2</td><td>77.7</td><td>88.6</td><td>93.6</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Semi-supervised learning on ImageNet We fine-tune the network pretrained with SSL-HSIC on $1 \%$ , $10 \%$ and $100 \%$ of ImageNet, using the same ImageNet splits as SimCLR [19]. Table 2 summarizes the semi-supervised learning performance. Our method, with or without a target network, has competitive performance in both data regimes. The target network has the most impact on the small-data regime, with $1 \%$ labels.
|
| 194 |
+
|
| 195 |
+
Table 3: Comparison of transfer learning performance on 12 image datasets. Supervised-IN is trained on ImageNet with supervised pretrainining. Random init trains on individual dataset with randomly initialized weights. MPCA refers to mean per-class accuracy; AP50 is average precision at $\mathrm { I o U } { = } 0 . 5$ .
|
| 196 |
+
|
| 197 |
+
<table><tr><td>Dataset Metric</td><td>Birdsnap Caltechl01 Cifarl0 Cifarl001 Top-1</td><td>MPCA</td><td></td><td>Top-1</td><td>DTD Top-1</td><td>Aircraft Food Flowers</td><td>MPCA Top-1</td><td>MPCA MPCA Top-1</td><td>Pets</td><td>Cars</td><td>Top-1</td><td>SUN397 VOC2007 AP50</td></tr><tr><td>Linear:</td><td></td><td></td><td>Top-1</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Supervised-IN [19]</td><td>53.7</td><td>94.5</td><td>93.6</td><td>78.3</td><td></td><td>61.0</td><td>72.3</td><td>94.7</td><td>91.5</td><td>67.8</td><td>61.9</td><td>82.8</td></tr><tr><td>SimCLR[19]</td><td>37.4</td><td>90.3</td><td>90.6</td><td>71.6</td><td>74.9 74.5</td><td>50.3</td><td>68.4</td><td>90.3</td><td>83.6</td><td>50.3</td><td>58.8</td><td>80.5</td></tr><tr><td>BYOL [25]</td><td>57.2</td><td>94.2</td><td>91.3</td><td>78.4</td><td>75.5</td><td>60.6</td><td>75.3</td><td>96.1</td><td>90.4</td><td>66.7</td><td>62.2</td><td>82.5</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>50.6</td><td>92.3</td><td>91.5</td><td>75.9</td><td>75.3</td><td>57.9</td><td>73.6</td><td>95.0</td><td>88.2</td><td>59.3</td><td>61.0</td><td>81.4</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>57.8</td><td>93.5</td><td>92.3</td><td>77.0</td><td>76.2</td><td>58.5</td><td>75.6</td><td>95.4</td><td>91.2</td><td>62.6</td><td>61.8</td><td>83.3</td></tr><tr><td>Fine-tuned:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Supervised-IN [19]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>85.0</td></tr><tr><td>Random init [19]</td><td>75.8</td><td>93.3</td><td>97.5</td><td>86.4</td><td>74.6</td><td>86.0 85.9</td><td>88.3</td><td>97.6</td><td>92.1</td><td>92.1</td><td>94.3 53.6</td><td>67.3</td></tr><tr><td>SimCLR[19]</td><td>76.1 75.9</td><td>72.6 92.1</td><td>95.9 97.7</td><td>80.2 85.9</td><td>64.8 73.2</td><td>88.1</td><td>86.9 88.2</td><td>92.0 97.0</td><td>81.5 89.2</td><td>91.4 91.3</td><td>63.5</td><td>84.1</td></tr><tr><td>BYOL [25]</td><td>76.3</td><td>93.8</td><td>97.8</td><td>86.1</td><td>76.2</td><td>88.1</td><td>88.5</td><td>97.0</td><td>91.7</td><td>91.6</td><td>63.7</td><td>85.4</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>73.1</td><td>91.5</td><td>97.4</td><td>85.3</td><td>75.3</td><td>87.1</td><td>87.5</td><td>96.4</td><td>90.6</td><td>91.6</td><td>62.2</td><td>84.1</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>74.9</td><td>93.8</td><td>97.8</td><td>84.7</td><td>75.4</td><td>88.9</td><td>87.7</td><td>97.3</td><td>91.7</td><td>91.8</td><td>61.7</td><td>84.1</td></tr></table>
|
| 198 |
+
|
| 199 |
+
Transfer to other classification tasks To investigate the generality of the representation learned with SSL-HSIC, we evaluate the transfer performance for classification on 12 natural image datasets [55–64] using the same procedure as [19, 25, 65]. Table 3 shows the top-1 accuracy of the linear evaluation and fine-tuning performance on the test set. SSL-HSIC gets state-of-the-art performance on 3 of the classification tasks and reaches strong performance on others for this benchmark, indicating the learned representations are robust for transfer learning.
|
| 200 |
+
|
| 201 |
+
Transfer to other vision tasks To test the ability of transferring to tasks other than classification, we fine-tune the network on semantic segmentation, depth estimation and object detection tasks. We use Pascal VOC2012 dataset [58] for semantic segmentation, NYU v2 dataset [66] for depth estimation and COCO [67] for object detection. Object detection outputs either bounding box or object segmentation (instance segmentation). Details of the evaluations setup is in Appendix D.2. Table 4 and Table 5 shows that SSL-HSIC achieves competitive performance on all three vision tasks.
|
| 202 |
+
|
| 203 |
+
Table 4: Fine-tuning performance on semantic segmentation and depth estimation. Mean Intersection over Union (mIoU) is reported for semantic segmentation. Relative error (rel), root mean squared error (rms), and the percent of pixels (pct) where the error is below $1 . 2 5 ^ { n }$ thresholds are reported for depth estimation.
|
| 204 |
+
|
| 205 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">VOC2012 mIoU</td><td colspan="5">NYU v2</td></tr><tr><td>pct.<1.25</td><td>pct.<1.252</td><td>pct.<1.253</td><td>rms</td><td>rel</td></tr><tr><td>Supervised-IN</td><td>74.4</td><td>81.1</td><td>95.3</td><td>98.8</td><td>0.573</td><td>0.127</td></tr><tr><td>SimCLR</td><td>75.2</td><td>83.3</td><td>96.5</td><td>99.1</td><td>0.557</td><td>0.134</td></tr><tr><td>BYOL</td><td>76.3</td><td>84.6</td><td>96.7</td><td>99.1</td><td>0.541</td><td>0.129</td></tr><tr><td>SSL-HSIC(w/o target)</td><td>74.9</td><td>84.1</td><td>96.7</td><td>99.2</td><td>0.539</td><td>0.130</td></tr><tr><td>SSL-HSIC(w/ target)</td><td>76.0</td><td>83.8</td><td>96.8</td><td>99.1</td><td>0.548</td><td>0.130</td></tr></table>
|
| 206 |
+
|
| 207 |
+
Table 5: Fine-tuning performance on COCO object detection tasks. Precision, averaged over $1 0 \ \mathrm { I o U }$ (Intersection over Union) thresholds, is reported for both bounding box and object segmentation.
|
| 208 |
+
|
| 209 |
+
<table><tr><td>Method</td><td>APbb</td><td>Apmk</td></tr><tr><td>Supervised</td><td>39.6</td><td>35.6</td></tr><tr><td>SimCLR</td><td>39.7</td><td>35.8</td></tr><tr><td>MoCo v2</td><td>40.1</td><td>36.3</td></tr><tr><td>BYOL</td><td>41.6</td><td>37.2</td></tr><tr><td>SwAV</td><td>41.6</td><td>37.8</td></tr><tr><td>SSL-HSIC(w/o target)</td><td>40.5</td><td>36.3</td></tr><tr><td>SSL-HSIC(w/ target)</td><td>41.3</td><td>36.8</td></tr></table>
|
| 210 |
+
|
| 211 |
+
# 5 Ablation Studies
|
| 212 |
+
|
| 213 |
+
We present ablation studies to gain more intuition on SSL-HSIC. Here, we use a ResNet-50 backbone trained for 100 epochs on ImageNet, and evaluate with the linear protocol unless specified.
|
| 214 |
+
|
| 215 |
+
ResNet architectures In this ablation, we investigate the performance of SSL-HSIC with wider and deeper ResNet architecture. Figure 1 and Table 6 show our main results. The performance of SSL-HSIC gets better with larger networks. We used the supervised baseline from [25] which our training framework is based on ([19] reports lower performance). The performance gap between SSL-HSIC and the supervised baseline diminishes with larger architectures. In addition, Table 7 presents the semi-supervise learning results with subsets $1 \%$ , $10 \%$ and $100 \%$ of the ImageNet data.
|
| 216 |
+
|
| 217 |
+
Table 6: Top-1 and top-5 accuracies for different ResNet architectures using linear evaluation protocol.
|
| 218 |
+
|
| 219 |
+
<table><tr><td></td><td colspan="2">SSL-HSIC</td><td colspan="2">BYOL[25]</td><td colspan="2">Sup.[25]</td></tr><tr><td>ResNet</td><td>Top1</td><td>Top5</td><td>Top1</td><td>Top5</td><td>Top1</td><td>Top5</td></tr><tr><td>50 (1x)</td><td>74.8</td><td>92.2</td><td>74.3</td><td>91.6</td><td>76.4</td><td>92.9</td></tr><tr><td>50 (2x)</td><td>77.9</td><td>94.0</td><td>77.4</td><td>93.6</td><td>79.9</td><td>95.0</td></tr><tr><td>50(4x)</td><td>79.1</td><td>94.5</td><td>78.6</td><td>94.2</td><td>80.7</td><td>95.3</td></tr><tr><td>200 (2x)</td><td>79.6</td><td>94.8</td><td>79.6</td><td>94.9</td><td>80.1</td><td>95.2</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Table 7: Top-1 and top-5 accuracies for different ResNet architectures using semisupervised fine-tuning.
|
| 222 |
+
|
| 223 |
+
<table><tr><td></td><td colspan="3">Top1</td><td colspan="3">Top5</td></tr><tr><td>ResNet</td><td>1%</td><td>10%</td><td>100%</td><td>1%</td><td>10%</td><td>100%</td></tr><tr><td>50 (1x)</td><td>52.1</td><td>67.9</td><td>77.2</td><td>77.7</td><td>88.6</td><td>93.6</td></tr><tr><td>50 (2x)</td><td>61.2</td><td>72.6</td><td>79.3</td><td>83.8</td><td>91.2</td><td>94.7</td></tr><tr><td>50 (4x)</td><td>67.0</td><td>75.4</td><td>79.7</td><td>87.4</td><td>92.5</td><td>94.8</td></tr><tr><td>200(2x)</td><td>69.0</td><td>76.3</td><td>80.5</td><td>88.3</td><td>92.9</td><td>95.2</td></tr></table>
|
| 224 |
+
|
| 225 |
+
Regularization term We compare performance of InfoNCE with SSL-HSIC in Table 8a since they can be seen as approximating the same $\mathrm { H S I C } ( Z , Y )$ objective but with different forms of regularization. We reproduce the InfoNCE result in our codebase, using the same architecture and data augmentiation as for SSL-HSIC. Trained for 100 epochs (without a target network), InfoNCE achieves $6 6 . 0 \%$ top-1 and $8 6 . 9 \%$ top-5 accuracies, which is better than the result reported in [19]. For comparison, SSL-HSIC reaches $6 6 . 7 \%$ top-1 and $8 7 . 6 \%$ top-5 accuracies. This suggests that the regularization employed by SSL-HSIC is more effective.
|
| 226 |
+
|
| 227 |
+
Kernel type We investigate the effect of using different a kernel on latents $Z$ . Training without a target network or random Fourier feature approximation, the top-1 accuracies for linear, Gaussian, and inverse multiquadric (IMQ) kernels are $6 5 . 2 7 \%$ , $6 6 . 6 7 \%$ and $6 6 . 7 2 \%$ respectively. Non-linear kernels indeed improve the performance; Gaussian and IMQ kernels reach very similar performance for 100 epochs. We choose IMQ kernel for longer runs, because its heavy-tail property can capture more signal when points are far apart.
|
| 228 |
+
|
| 229 |
+
Number of RFF Features Table 8b shows the performance of SSL-HSIC with different numbers of Fourier features. The RFF approximation has a minor impact on the overall performance, as long as we resample them; fixed sets of features performed poorly. Our main result picked 512 features, for substantial computational savings with minor loss in accuracy.
|
| 230 |
+
|
| 231 |
+
Batch size Similar to most of the self-supervised learning methods [19, 25], SSL-HSIC benefits from using a larger batch size during training. However, the drop of performance from using smaller batch size is not as pronounced as it is in SimCLR[19] as shown in Table 8c.
|
| 232 |
+
|
| 233 |
+
(a) Regularization
|
| 234 |
+
|
| 235 |
+
<table><tr><td></td><td>Top-1</td><td>Top-5</td></tr><tr><td>SSL-HSIC</td><td>66.7</td><td>87.6</td></tr><tr><td>InfoNCE</td><td>66.0</td><td>86.9</td></tr></table>
|
| 236 |
+
|
| 237 |
+
Table 8: Linear evaluation results when varying different hyperparameters.
|
| 238 |
+
(d) Projector/predictor size
|
| 239 |
+
|
| 240 |
+
<table><tr><td>Output Dim</td><td>Top-1(%)</td></tr><tr><td>64</td><td>65.4</td></tr><tr><td>128</td><td>66.0</td></tr><tr><td>256</td><td>66.4</td></tr><tr><td>512</td><td>66.6</td></tr><tr><td>1024</td><td>66.6</td></tr></table>
|
| 241 |
+
|
| 242 |
+
(b) # Fourier features
|
| 243 |
+
|
| 244 |
+
<table><tr><td>#RFFs</td><td>Top-1(%)</td></tr><tr><td>64</td><td>66.0</td></tr><tr><td>128</td><td>66.2</td></tr><tr><td>256</td><td>66.2</td></tr><tr><td>512</td><td>66.4</td></tr><tr><td>1024</td><td>66.5</td></tr><tr><td>2048</td><td>66.5</td></tr><tr><td>No Approx.</td><td>66.7</td></tr></table>
|
| 245 |
+
|
| 246 |
+
(c) Batch size
|
| 247 |
+
|
| 248 |
+
<table><tr><td colspan="4">Top-1(%)</td></tr><tr><td>Batch Size</td><td>SSL-HSIC</td><td>SimCLR</td><td></td></tr><tr><td>256</td><td>63.7</td><td>57.5</td><td></td></tr><tr><td>512</td><td>65.6</td><td></td><td>60.7</td></tr><tr><td>1024</td><td>66.7</td><td></td><td>62.8</td></tr><tr><td>2048</td><td>67.1</td><td></td><td>64.0</td></tr><tr><td>4096</td><td>66.7</td><td></td><td>64.6</td></tr></table>
|
| 249 |
+
|
| 250 |
+
Projector and predictor output size Table 8d shows the performance when using different output dimension for the projector/predictor networks. The performance saturates at 512 dimensions.
|
| 251 |
+
|
| 252 |
+
# 6 Conclusions
|
| 253 |
+
|
| 254 |
+
We introduced SSL-HSIC, a loss function for self-supervised representation learning based on kernel dependence maximization. We provided a unified view on various self-supervised learning losses: we proved that InfoNCE, a lower bound of mutual information, actually approximates SSL-HSIC with a variance-based regularization, and we can also interpret SSL-HSIC as metric learning where the cluster structure is imposed by the self-supervised label, of which the BYOL objective is a special case. We showed that training with SSL-HSIC achieves performance on par with the state-of-the-art on the standard self-supervised benchmarks.
|
| 255 |
+
|
| 256 |
+
Although using the image identity as self-supervised label provides a good inductive bias, it might not be wholly satisfactory; we expect that some images pairs are in fact more similar than others, based e.g. on their ImageNet class label. It will be interesting to explore methods that combine label structure discovery with representation learning (as in SwAV [18]). In this paper, we only explored learning image representations, but in future work SSL-HSIC can be extended to learning structure for $Y$ as well, building on existing work [41, 45].
|
| 257 |
+
|
| 258 |
+
# Broader impact
|
| 259 |
+
|
| 260 |
+
Our work concentrates on providing a more theoretically grounded and interpretable loss function for self-supervised learning. A better understanding of self-supervised learning, especially through more interpretable learning dynamics, is likely to lead to better and more explicit control over societal biases of these algorithms. SSL-HSIC yields an alternative, clearer understanding of existing selfsupervised methods. As such, it is unlikely that our method introduces further biases than those already present for self-supervised learning.
|
| 261 |
+
|
| 262 |
+
The broader impacts of the self-supervised learning framework is an area that has not been studied by the AI ethics community, but we think it calls for closer inspection. An important concern for fairness of ML algorithms is dataset bias. ImageNet is known for a number of problems such as offensive annotations, non-visual concepts and lack of diversity, in particular for underrepresented groups. Existing works and remedies typically focus on label bias. Since SSL doesn’t use labels, however, the type and degree of bias could be very different from that of supervised learning. To mitigate the risk of dataset bias, one could employ dataset re-balancing to correct sampling bias [68] or completely exclude human images from the dataset while achieving the same performance [69].
|
| 263 |
+
|
| 264 |
+
A new topic to investigate for self-supervised learning is how the bias/unbiased representation could be transferred to downstream tasks. We are not aware of any work in this direction. Another area of concern is security and robustness. Compared to supervised learning, self-supervised learning typically involves more intensive data augmentation such as color jittering, brightness adjustment, etc. There is some initial evidence suggesting self-supervised learning improves model robustness [70]. However, since data augmentation can either be beneficial [71] or detrimental [72] depending on the type of adversarial attacks, more studies are needed to assess its role for self-supervised learning.
|
| 265 |
+
|
| 266 |
+
# Acknowledgments and Disclosure of Funding
|
| 267 |
+
|
| 268 |
+
The authors would like to thank Olivier J. Hénaff for valuable feedback on the manuscript and the help for evaluating object detection task. We thank Aaron Van den Oord and Oriol Vinyals for providing valuable feedback on the manuscript. We are grateful to Yonglong Tian, Ting Chen and the BYOL authors for the help with reproducing baselines and evaluating downstream tasks.
|
| 269 |
+
|
| 270 |
+
This work was supported by DeepMind, the Gatsby Charitable Foundation, the Wellcome Trust, NSERC, and the Canada CIFAR AI Chairs program.
|
| 271 |
+
|
| 272 |
+
# References
|
| 273 |
+
|
| 274 |
+
[1] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. “ImageNet large scale visual recognition challenge.” International Journal of Computer Vision 115.3 (2015), pp. 211–252.
|
| 275 |
+
[2] G. E. Hinton and R. R. Salakhutdinov. “Reducing the dimensionality of data with neural networks.” Science 313.5786 (2006), pp. 504–507.
|
| 276 |
+
[3] P. Vincent, H. Larochelle, I. Lajoie, Y. Bengio, P.-A. Manzagol, and L. Bottou. “Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion.” Journal of Machine Learning Research 11.12 (2010).
|
| 277 |
+
[4] A. Coates and A. Y. Ng. “Learning feature representations with k-means.” Neural networks: Tricks of the trade. Springer, 2012, pp. 561–580.
|
| 278 |
+
[5] I. Higgins, L. Matthey, A. Pal, C. Burgess, X. Glorot, M. Botvinick, S. Mohamed, and A. Lerchner. “beta-VAE: Learning basic visual concepts with a constrained variational framework.” ICLR. 2016.
|
| 279 |
+
[6] A. van den Oord, O. Vinyals, and K. Kavukcuoglu. “Neural Discrete Representation Learning.” NeurIPS. 2017. arXiv: 1711.00937.
|
| 280 |
+
[7] W. Grathwohl, R. T. Q. Chen, J. Bettencourt, and D. Duvenaud. “Scalable Reversible Generative Models with Free-form Continuous Dynamics.” ICLR. 2019. arXiv: 1810.01367.
|
| 281 |
+
[8] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. “Language Models are Few-Shot Learners.” NeurIPS. 2020. arXiv: 2005.14165.
|
| 282 |
+
[9] C. Doersch, A. Gupta, and A. A. Efros. “Unsupervised Visual Representation Learning by Context Prediction.” ICCV. 2015. arXiv: 1505.05192.
|
| 283 |
+
[10] G. Larsson, M. Maire, and G. Shakhnarovich. “Learning representations for automatic colorization.” ECCV. Springer. 2016, pp. 577–593.
|
| 284 |
+
[11] M. Noroozi and P. Favaro. “Unsupervised learning of visual representations by solving jigsaw puzzles.” ECCV. Springer. 2016, pp. 69–84.
|
| 285 |
+
[12] D. Pathak, P. Krahenbuhl, J. Donahue, T. Darrell, and A. A. Efros. “Context encoders: Feature learning by inpainting.” CVPR. 2016, pp. 2536–2544.
|
| 286 |
+
[13] R. Zhang, P. Isola, and A. A. Efros. “Colorful image colorization.” ECCV. Springer. 2016, pp. 649–666.
|
| 287 |
+
[14] S. Gidaris, P. Singh, and N. Komodakis. “Unsupervised representation learning by predicting image rotations.” ICLR. 2018. arXiv: 1803.07728.
|
| 288 |
+
[15] A. van den Oord, Y. Li, and O. Vinyals. “Representation learning with contrastive predictive coding.” 2018. arXiv: 1807.03748.
|
| 289 |
+
[16] P. Bachman, R. D. Hjelm, and W. Buchwalter. “Learning representations by maximizing mutual information across views.” NeurIPS. 2019. arXiv: 1906.00910.
|
| 290 |
+
[17] K. He, H. Fan, Y. Wu, S. Xie, and R. B. Girshick. “Momentum Contrast for Unsupervised Visual Representation Learning.” CVPR. 2019. arXiv: 1911.05722.
|
| 291 |
+
[18] M. Caron, I. Misra, J. Mairal, P. Goyal, P. Bojanowski, and A. Joulin. “Unsupervised learning of visual features by contrasting cluster assignments.” NeurIPS. 2020. arXiv: 2006.09882.
|
| 292 |
+
[19] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton. “A Simple Framework for Contrastive Learning of Visual Representations.” ICML. 2020. arXiv: 2002.05709.
|
| 293 |
+
[20] X. Chen, H. Fan, R. B. Girshick, and K. He. “Improved Baselines with Momentum Contrastive Learning.” 2020. arXiv: 2003.04297.
|
| 294 |
+
[21] O. Henaff. “Data-efficient image recognition with contrastive predictive coding.” ICML. 2020. arXiv: 1905.09272.
|
| 295 |
+
[22] J. Zbontar, L. Jing, I. Misra, Y. LeCun, and S. Deny. “Barlow Twins: Self-Supervised Learning via Redundancy Reduction.” 2021. arXiv: 2103.03230.
|
| 296 |
+
[23] T. Wang and P. Isola. “Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere.” 2020. arXiv: 2005.10242.
|
| 297 |
+
[24] X. Chen and K. He. “Exploring Simple Siamese Representation Learning.” 2020. arXiv: 2011.10566.
|
| 298 |
+
[25] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. H. Richemond, E. Buchatskaya, C. Doersch, B. A. Pires, Z. D. Guo, M. G. Azar, B. Piot, K. Kavukcuoglu, R. Munos, and M. Valko. “Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning.” NeurIPS. 2020. arXiv: 2006.07733.
|
| 299 |
+
[26] A. Gretton, O. Bousquet, A. Smola, and B. Schölkopf. “Measuring statistical dependence with Hilbert-Schmidt norms.” ALT. Springer. 2005, pp. 63–77.
|
| 300 |
+
[27] K. W.-D. Ma, J. P. Lewis, and W. B. Kleijn. “The HSIC Bottleneck: Deep Learning without Back-Propagation.” AAAI. 2020.
|
| 301 |
+
[28] R. Pogodin and P. Latham. “Kernelized information bottleneck leads to biologically plausible 3-factor Hebbian learning in deep networks.” NeurIPS (2020).
|
| 302 |
+
[29] N. Tishby and N. Zaslavsky. “Deep Learning and the Information Bottleneck Principle.” IEEE Information Theory Workshop. 2015. arXiv: 1503.02406.
|
| 303 |
+
[30] M. Tschannen, J. Djolonga, P. K. Rubenstein, S. Gelly, and M. Lucic. “On mutual information maximization for representation learning.” ICLR. 2020. arXiv: 1907.13625.
|
| 304 |
+
[31] I. Belghazi, S. Rajeswar, A. Baratin, R. D. Hjelm, and A. C. Courville. “MINE: Mutual Information Neural Estimation.” ICML. 2018. arXiv: 1801.04062.
|
| 305 |
+
[32] B. Poole, S. Ozair, A. van den Oord, A. A. Alemi, and G. Tucker. “On Variational Bounds of Mutual Information.” ICML. 2019. arXiv: 1905.06922.
|
| 306 |
+
[33] A. Rahimi and B. Recht. “Random Features for Large-Scale Kernel Machines.” NeurIPS. 2007.
|
| 307 |
+
[34] T. Chen, S. Kornblith, K. Swersky, M. Norouzi, and G. Hinton. “Big Self-Supervised Models are Strong Semi-Supervised Learners.” NeurIPS. 2020. arXiv: 2006.10029.
|
| 308 |
+
[35] Y.-H. H. Tsai, S. Bai, L.-P. Morency, and R. Salakhutdinov. “A note on connecting barlow twins with negative-sample-free contrastive learning.” arXiv preprint arXiv:2104.13712 (2021).
|
| 309 |
+
[36] T. Chen and L. Li. “Intriguing Properties of Contrastive Losses.” 2020. arXiv: 2011.02803.
|
| 310 |
+
[37] Z. Szabó and B. K. Sriperumbudur. “Characteristic and Universal Tensor Product Kernels.” Journal of Machine Learning Research 18.233 (2018), pp. 1–29.
|
| 311 |
+
[38] A. Gretton, K. Fukumizu, C. H. Teo, L. Song, B. Schölkopf, and A. J. Smola. “A kernel statistical test of independence.” NeurIPS. 2007.
|
| 312 |
+
[39] L. Song, A. Smola, A. Gretton, J. Bedo, and K. Borgwardt. “Feature selection via dependence maximization.” Journal of Machine Learning Research 13.5 (2012).
|
| 313 |
+
[40] L. Song, A. Smola, A. Gretton, and K. M. Borgwardt. “A Dependence Maximization View of Clustering.” ICML. 2007.
|
| 314 |
+
[41] M. B. Blaschko and A. Gretton. “Learning Taxonomies by Dependence Maximization.” NeurIPS. 2009.
|
| 315 |
+
[42] S. Jain, G. Liu, and D. Gifford. “Information Condensing Active Learning.” 2020. arXiv: 2002.07916.
|
| 316 |
+
[43] D. Wu, Y. Zhao, Y.-H. H. Tsai, M. Yamada, and R. Salakhutdinov. “‘Dependency Bottleneck’ in Auto-encoding Architectures: an Empirical Study.” 2018. arXiv: 1802.05408.
|
| 317 |
+
[44] A. Nøkland and L. H. Eidnes. “Training neural networks with local error signals.” ICML. 2019. arXiv: 1901.06656.
|
| 318 |
+
[45] M. B. Blaschko, W. Zaremba, and A. Gretton. “Taxonomic Prediction with Tree-Structured Covariances.” Machine Learning and Knowledge Discovery in Databases. Springer Berlin Heidelberg, 2013, pp. 304–319.
|
| 319 |
+
[46] based and RKHS-based statistics in hypothesis testing.” The Annals of Statistics 41.5 (2013), pp. 2263–2291.
|
| 320 |
+
[47] G. J. Székely, M. L. Rizzo, and N. K. Bakirov. “Measuring and testing dependence by correlation of distances.” The Annals of Statistics 35.6 (2007), pp. 2769–2794.
|
| 321 |
+
[48] N. Cristianini, J. Shawe-Taylor, A. Elisseeff, and J. Kandola. “On Kernel-Target Alignment.” NeurIPS. Vol. 14. 2002.
|
| 322 |
+
[49] C. Cortes, M. Mohri, and A. Rostamizadeh. “Algorithms for learning kernels based on centered alignment.” The Journal of Machine Learning Research 13.1 (2012), pp. 795–828.
|
| 323 |
+
[50] R. S. Zimmermann, Y. Sharma, S. Schneider, M. Bethge, and W. Brendel. “Contrastive Learning Inverts the Data Generating Process.” 2021. arXiv: 2102.08850.
|
| 324 |
+
[51] H. Zha, X. He, C. Ding, M. Gu, and H. D. Simon. “Spectral relaxation for $\mathbf { k }$ -means clustering.” NeurIPS. 2001, pp. 1057–1064.
|
| 325 |
+
[52] Y. You, I. Gitman, and B. Ginsburg. “Scaling SGD Batch Size to 32K for ImageNet Training.” 2017. arXiv: 1708.03888.
|
| 326 |
+
[53] P. Goyal, P. Dollár, R. B. Girshick, P. Noordhuis, L. Wesolowski, A. Kyrola, A. Tulloch, Y. Jia, and K. He. “Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour.” 2017. arXiv: 1706.02677.
|
| 327 |
+
[54] X. Zhai, A. Oliver, A. Kolesnikov, and L. Beyer. ${ } ^ { \cdot } \mathrm { s } ^ { 4 } \mathrm { L }$ : Self-Supervised Semi-Supervised Learning.” ICCV. 2019. arXiv: 1905.03670.
|
| 328 |
+
[55] L. Fei-Fei, R. Fergus, and P. Perona. “Learning Generative Visual Models from Few Training Examples: An Incremental Bayesian Approach Tested on 101 Object Categories.” CVPR Workshop. 2004.
|
| 329 |
+
[56] M.-E. Nilsback and A. Zisserman. “Automated flower classification over a large number of classes.” 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing. IEEE. 2008, pp. 722–729.
|
| 330 |
+
[57] A. Krizhevsky. “Learning multiple layers of features from tiny images.” 2009. URL: https: //www.cs.toronto.edu/\~kriz/learning-features-2009-TR.pdf.
|
| 331 |
+
[58] M. Everingham, L. Van Gool, C. K. Williams, J. Winn, and A. Zisserman. “The Pascal visual object classes (VOC) challenge.” IJCV 88.2 (2010), pp. 303–338.
|
| 332 |
+
[59] J. Xiao, J. Hays, K. A. Ehinger, A. Oliva, and A. Torralba. “SUN database: Large-scale scene recognition from abbey to zoo.” CVPR. 2010.
|
| 333 |
+
[60] O. M. Parkhi, A. Vedaldi, A. Zisserman, and C. V. Jawahar. “Cats and Dogs.” CVPR. 2012.
|
| 334 |
+
[61] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, and A. Vedaldi. “Describing Textures in the Wild.” CVPR. 2013. arXiv: 1311.3618.
|
| 335 |
+
[62] J. Krause, J. Deng, M. Stark, and L. Fei-fei. “Collecting a large-scale dataset of fine-grained cars. The Second Workshop on Fine-Grained Visual Categorization.” 2013.
|
| 336 |
+
[63] L. Bossard, M. Guillaumin, and L. Van Gool. “Food-101–mining discriminative components with random forests.” ECCV. Springer. 2014, pp. 446–461.
|
| 337 |
+
[64] S. Maji, E. Rahtu, J. Kannala, M. B. Blaschko, and A. Vedaldi. “Fine-Grained Visual Classification of Aircraft.” arXiv: 1306.5151.
|
| 338 |
+
[65] S. Kornblith, J. Shlens, and Q. V. Le. “Do Better ImageNet Models Transfer Better?” CVPR. 2019. arXiv: 1805.08974.
|
| 339 |
+
[66] N. Silberman, D. Hoiem, P. Kohli, and R. Fergus. “Indoor Segmentation and Support Inference from RGBD Images.” ECCV. 2012.
|
| 340 |
+
[67] T.-Y. Lin, M. Maire, S. J. Belongie, L. D. Bourdev, R. B. Girshick, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. “Microsoft COCO: Common Objects in Context.” ECCV. 2014. arXiv: 1405.0312.
|
| 341 |
+
[68] K. Yang, K. Qinami, L. Fei-Fei, J. Deng, and O. Russakovsky. “Towards fairer datasets: Filtering and balancing the distribution of the people subtree in the imagenet hierarchy.” Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency. 2020, pp. 547–558.
|
| 342 |
+
[69] Y. Asano, C. Rupprecht, A. Zisserman, and A. Vedaldi. “PASS: An ImageNet replacement for self-supervised pretraining without humans” (2021).
|
| 343 |
+
[70] D. Hendrycks, M. Mazeika, S. Kadavath, and D. Song. “Using self-supervised learning can improve model robustness and uncertainty.” arXiv preprint arXiv:1906.12340 (2019).
|
| 344 |
+
[71] A. Sablayrolles, M. Douze, C. Schmid, Y. Ollivier, and H. Jégou. “White-box vs black-box: Bayes optimal strategies for membership inference.” International Conference on Machine Learning. PMLR. 2019, pp. 5558–5567.
|
| 345 |
+
[72] D. Yu, H. Zhang, W. Chen, J. Yin, and T.-Y. Liu. “How Does Data Augmentation Affect Privacy in Machine Learning?” Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 35. 12. 2021, pp. 10746–10753.
|
| 346 |
+
[73] L. Grafakos. Classical Fourier Analysis. Vol. 2. Springer, 2008.
|
| 347 |
+
[74] R. Piessens. “The Hankel transform.” The Transforms and Applications Handbook 2.9 (2000).
|
| 348 |
+
[75] F. Johansson et al. mpmath: a Python library for arbitrary-precision floating-point arithmetic (version 0.18). http://mpmath.org/. 2013.
|
| 349 |
+
[76] J. Long, E. Shelhamer, and T. Darrell. “Fully Convolutional Networks for Semantic Segmentation.” CVPR. 2015. arXiv: 1411.4038.
|
| 350 |
+
[77] O. J. Hénaff, S. Koppula, J.-B. Alayrac, A. van den Oord, O. Vinyals, and J. Carreira. “Efficient Visual Pretraining with Contrastive Detection.” 2021. arXiv: 2103.10957.
|
| 351 |
+
[78] K. He, G. Gkioxari, P. Dollár, and R. B. Girshick. “Mask R-CNN.” ICCV. 2017. arXiv: 1703.06870.
|
| 352 |
+
[79] T.-Y. Lin, P. Dollár, R. B. Girshick, K. He, B. Hariharan, and S. J. Belongie. “Feature Pyramid Networks for Object Detection.” CVPR. 2017. arXiv: 1612.03144.
|
parse/train/0HW7A5YZjq7/0HW7A5YZjq7_content_list.json
ADDED
|
@@ -0,0 +1,1424 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Self-Supervised Learning with Kernel Dependence Maximization ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
261,
|
| 8 |
+
122,
|
| 9 |
+
738,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yazhe Li∗ DeepMind and Gatsby Unit, UCL yazhe@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
238,
|
| 19 |
+
226,
|
| 20 |
+
462,
|
| 21 |
+
268
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Roman Pogodin∗ Gatsby Unit, UCL roman.pogodin.17@ucl.ac.uk ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
534,
|
| 30 |
+
226,
|
| 31 |
+
758,
|
| 32 |
+
268
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Danica J. Sutherland UBC and Amii† dsuth@cs.ubc.ca ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
279,
|
| 41 |
+
289,
|
| 42 |
+
429,
|
| 43 |
+
332
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Arthur Gretton Gatsby Unit, UCL arthur.gretton@gmail.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
540,
|
| 52 |
+
289,
|
| 53 |
+
746,
|
| 54 |
+
332
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
462,
|
| 64 |
+
367,
|
| 65 |
+
535,
|
| 66 |
+
383
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "We approach self-supervised learning of image representations from a statistical dependence perspective, proposing Self-Supervised Learning with the HilbertSchmidt Independence Criterion (SSL-HSIC). SSL-HSIC maximizes dependence between representations of transformations of an image and the image identity, while minimizing the kernelized variance of those representations. This framework yields a new understanding of InfoNCE, a variational lower bound on the mutual information (MI) between different transformations. While the MI itself is known to have pathologies which can result in learning meaningless representations, its bound is much better behaved: we show that it implicitly approximates SSLHSIC (with a slightly different regularizer). Our approach also gives us insight into BYOL, a negative-free SSL method, since SSL-HSIC similarly learns local neighborhoods of samples. SSL-HSIC allows us to directly optimize statistical dependence in time linear in the batch size, without restrictive data assumptions or indirect mutual information estimators. Trained with or without a target network, SSL-HSIC matches the current state-of-the-art for standard linear evaluation on ImageNet [1], semi-supervised learning and transfer to other classification and vision tasks such as semantic segmentation, depth estimation and object recognition. Code is available at https://github.com/deepmind/ssl_hsic. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
400,
|
| 76 |
+
766,
|
| 77 |
+
648
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 Introduction ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
676,
|
| 88 |
+
310,
|
| 89 |
+
694
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Learning general-purpose visual representations without human supervision is a long-standing goal of machine learning. Specifically, we wish to find a feature extractor that captures the image semantics of a large unlabeled collection of images, so that e.g. various image understanding tasks can be achieved with simple linear models. One approach takes the latent representation of a likelihood-based generative model [2–8]; such models, though, solve a harder problem than necessary since semantic features need not capture low-level details of the input. Another option is to train a self-supervised model for a “pretext task,” such as predicting the position of image patches, identifying rotations, or image inpainting [9–14]. Designing good pretext tasks, however, is a subtle art, with little theoretical guidance available. Recently, a class of models based on contrastive learning [15–22] has seen substantial success: dataset images are cropped, rotated, color shifted, etc. into several views, and features are then trained to pull together representations of the “positive” pairs of views of the same source image, and push apart those of “negative” pairs (from different images). These methods are either understood from an information theoretic perspective as estimating the mutual information between the “positives” [15], or explained as aligning features subject to a uniformity constraint [23]. Another line of research [24, 25] attempts to learn representation without the “negative” pairs, but requires either a target network or stop-gradient operation to avoid collapsing. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
708,
|
| 99 |
+
825,
|
| 100 |
+
861
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/da54d49a0b8c54cb3816387abb70ecdac5d5f210aa0b1718b9848f10ffbf779d.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Top-1 accuracies with linear evaluation for different ResNet architecture and methods: supervised (as in [25]), SSL-HSIC (with a target network; ours), BYOL [25], SwAV [18], SimCLR [19], MoCo v2 [20] and Barlow Twins [22]. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
176,
|
| 113 |
+
90,
|
| 114 |
+
475,
|
| 115 |
+
275
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "image",
|
| 121 |
+
"img_path": "images/9ef83fb128305bc0710f24b07be35a85254f2c88c20040144f68367e800a834c.jpg",
|
| 122 |
+
"image_caption": [
|
| 123 |
+
"Figure 2: Statistical dependence view of contrastive learning: representations of transformed images should highly depend on image identity. Measuring dependence with HSIC, this pushes different images’ representation distributions apart (black arrows) and pulls representations of the same image together (colored shapes). "
|
| 124 |
+
],
|
| 125 |
+
"image_footnote": [],
|
| 126 |
+
"bbox": [
|
| 127 |
+
509,
|
| 128 |
+
89,
|
| 129 |
+
815,
|
| 130 |
+
242
|
| 131 |
+
],
|
| 132 |
+
"page_idx": 1
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"type": "text",
|
| 136 |
+
"text": "",
|
| 137 |
+
"bbox": [
|
| 138 |
+
174,
|
| 139 |
+
380,
|
| 140 |
+
825,
|
| 141 |
+
450
|
| 142 |
+
],
|
| 143 |
+
"page_idx": 1
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"type": "text",
|
| 147 |
+
"text": "We examine the contrastive framework from a statistical dependence point of view: feature representations for a given transformed image should be highly dependent on the image identity (Figure 2). To measure dependence, we turn to the Hilbert-Schmidt Independence Criterion (HSIC) [26], and propose a new loss for self-supervised learning which we call SSL-HSIC. Our loss is inspired by HSIC Bottleneck [27, 28], an alternative to Information Bottleneck [29], where we use the image identity as the label, but change the regularization term. ",
|
| 148 |
+
"bbox": [
|
| 149 |
+
174,
|
| 150 |
+
455,
|
| 151 |
+
825,
|
| 152 |
+
540
|
| 153 |
+
],
|
| 154 |
+
"page_idx": 1
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"type": "text",
|
| 158 |
+
"text": "Through the dependence maximization perspective, we present a unified view of various selfsupervised losses. Previous work [30] has shown that the success of InfoNCE cannot be solely attributed to properties of mutual information, in particular because mutual information (unlike kernel measures of dependence) has no notion of geometry in feature space: for instance, all invertible encoders achieve maximal mutual information, but they can output dramatically different representations with very different downstream performance [30]. Variational bounds on mutual information do impart notions of locality that allow them to succeed in practice, departing from the mutual information quantity that they try to estimate. We prove that InfoNCE, a popular such bound, in fact approximates SSL-HSIC with a variance-based regularization. Thus, InfoNCE can be thought of as working because it implicitly estimates a kernel-based notion of dependence. We additionally show SSL-HSIC is related to metric learning, where the features learn to align to the structure induced by the self-supervised labels. This perspective is closely related to the objective of BYOL [25], and can explain properties such as alignment and uniformity [23] observed in contrastive learning. ",
|
| 159 |
+
"bbox": [
|
| 160 |
+
174,
|
| 161 |
+
545,
|
| 162 |
+
825,
|
| 163 |
+
726
|
| 164 |
+
],
|
| 165 |
+
"page_idx": 1
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"type": "text",
|
| 169 |
+
"text": "Our perspective brings additional advantages, in computation and in simplicity of the algorithm, compared with existing approaches. Unlike the indirect variational bounds on mutual information [15, 31, 32], SSL-HSIC can be directly estimated from mini-batches of data. Unlike “negative-free” methods, the SSL-HSIC loss itself penalizes trivial solutions, so techniques such as target networks are not needed for reasonable outcomes. Using a target network does improve the performance of our method, however, suggesting target networks have other advantages that are not yet well understood. Finally, we employ random Fourier features [33] in our implementation, resulting in cost linear in batch size. ",
|
| 170 |
+
"bbox": [
|
| 171 |
+
174,
|
| 172 |
+
731,
|
| 173 |
+
825,
|
| 174 |
+
842
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 1
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "text",
|
| 180 |
+
"text": "Our main contributions are as follows: ",
|
| 181 |
+
"bbox": [
|
| 182 |
+
176,
|
| 183 |
+
848,
|
| 184 |
+
426,
|
| 185 |
+
863
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 1
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "• We introduce SSL-HSIC, a principled self-supervised loss using kernel dependence maximization. • We present a unified view of contrastive learning through dependence maximization, by establishing relationships between SSL-HSIC, InfoNCE, and metric learning. ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
174,
|
| 194 |
+
869,
|
| 195 |
+
825,
|
| 196 |
+
911
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 1
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "• Our method achieves top-1 accuracy of $7 4 . 8 \\%$ and top-5 accuracy of $9 2 . 2 \\%$ with linear evaluations (see Figure 1 for a comparison with other methods), top-1 accuracy of $8 0 . 2 \\%$ and Top-5 accuracy of $9 4 . 7 \\%$ with fine-tuning, and competitive performance on a diverse set of downstream tasks. ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
176,
|
| 205 |
+
92,
|
| 206 |
+
825,
|
| 207 |
+
133
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "2 Background ",
|
| 214 |
+
"text_level": 1,
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
154,
|
| 218 |
+
308,
|
| 219 |
+
171
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "2.1 Self-supervised learning ",
|
| 226 |
+
"text_level": 1,
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
185,
|
| 230 |
+
380,
|
| 231 |
+
200
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "Recent developments in self-supervised learning, such as contrastive learning, try to ensure that features of two random views of an image are more associated with each other than with random views of other images. Typically, this is done through some variant of a classification loss, with one “positive” pair and many “negatives.” Other methods can learn solely from “positive” pairs, however. There have been many variations of this general framework in the past few years. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
173,
|
| 240 |
+
212,
|
| 241 |
+
825,
|
| 242 |
+
281
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "Van den Oord et al. [15] first formulated the InfoNCE loss, which estimates a lower bound of the mutual information between the feature and the context. SimCLR [19, 34] carefully investigates the contribution of different data augmentations, and scales up the training batch size to include more negative examples. MoCo [17] increases the number of negative examples by using a memory bank. BYOL [25] learns solely on positive image pairs, training so that representations of one view match that of the other under a moving average of the featurizer. Instead of the moving average, SimSiam [24] suggests a stop-gradient on one of the encoders is enough to prevent BYOL from finding trivial solutions. SwAV [18] clusters the representation online, and uses distance from the cluster centers rather than computing pairwise distances of the data. Barlow Twins [22] uses an objective related to the cross-correlation matrix of the two views, motivated by redundancy reduction. It is perhaps the most related to our work in the literature (and their covariance matrix can be connected to HSIC [35]), but our method measures dependency more directly. While Barlow Twins decorrelates components of final representations, we maximize the dependence between the image’s abstract identity and its transformations. ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
287,
|
| 252 |
+
825,
|
| 253 |
+
481
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "On the theory side, InfoNCE is proposed as a variational bound on Mutual Information between the representation of two views of the same image [15, 32]. Tschannen et al. [30] observe that InfoNCE performance cannot be explained solely by the properties of the mutual information, however, but is influenced more by other factors, such as the formulation of the estimator and the architecture of the feature extractor. Essentially, representations with the same MI can have drastically different representational qualities. ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
173,
|
| 262 |
+
487,
|
| 263 |
+
826,
|
| 264 |
+
570
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "To see this, consider a problem with two inputs, $A$ and $B$ (Figure 3, green and purple), and a one-dimensional featurizer, parameterized by the integer $M$ , which maps $A$ to Uniform $\\langle \\bar { \\{ 0 , 2 , \\ldots , 2 M \\} } \\rangle$ ) and $B$ to $\\operatorname { U n i f o r m } ( \\{ 1 , 3 , \\dotsc , 2 M + 1 \\} )$ . When $M \\ = \\ 0$ , the inputs are encoded into linearly separable features $A = 0$ and $B = 1$ (Figure 3, bottom). Otherwise when $M > 0$ , they are interspersed like $A B A B A B A B - { \\mathfrak { a } }$ representation which is much harder to work with for downstream learners. Nevertheless, the mutual information between the features of any two augmentations of the same input (a positive pair) is independent of $M$ , that is $H [ Z _ { 1 } ] - H [ Z _ { 1 } \\bar { | } Z _ { 2 } ] = \\log 2$ for any $M$ . Note that InfoNCE would strongly prefer $M = 0$ , indeed behaving very differently from MI. ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
570,
|
| 274 |
+
601,
|
| 275 |
+
736
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "image",
|
| 281 |
+
"img_path": "images/ab4cec97781605937dcc3bb787c93d1942f1b0093dd330708f2ecba4418fd2a5.jpg",
|
| 282 |
+
"image_caption": [
|
| 283 |
+
"Figure 3: Three distributions of positive examples for two classes (green and purple) that have the same mutual information, but drastically different quality for downstream learners. "
|
| 284 |
+
],
|
| 285 |
+
"image_footnote": [],
|
| 286 |
+
"bbox": [
|
| 287 |
+
614,
|
| 288 |
+
580,
|
| 289 |
+
808,
|
| 290 |
+
656
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "ater theories suggest that contrastive losses balance alignment of individual features and uniformity of the feature distribution [23], or in general alignment and some loss-defined distribution [36]. We propose to interpret the contrastive loss through the lens of statistical dependence, and relate it to metric learning, which naturally leads to alignment and uniformity. ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
186,
|
| 299 |
+
742,
|
| 300 |
+
604,
|
| 301 |
+
757
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 2
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "",
|
| 308 |
+
"bbox": [
|
| 309 |
+
176,
|
| 310 |
+
757,
|
| 311 |
+
825,
|
| 312 |
+
811
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "2.2 Hilbert-Schmidt Independence Criterion (HSIC) ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
829,
|
| 323 |
+
552,
|
| 324 |
+
844
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "The Hilbert-Schmidt Independence Criterion (HSIC) [26] is a kernel-based measure of dependence between probability distributions. Like mutual information, for a wide range of kernels ${ \\mathrm { H S I C } } ( X , Y ) = 0$ if and only if $X$ and $Y$ are independent [37], and large values of the measure correspond to “more dependence.” Unlike mutual information, HSIC incorporates a notion of geometry (via the kernel choice), and is both statistically and computationally easy to estimate. It has been used in a variety of applications, particularly for independence testing [38], but it has also been maximized in applications such as feature selection [39], clustering [40, 41], active learning [42], and as a classification loss called HSIC Bottleneck [27, 28] (similar ideas were expressed in [43, 44]). ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
856,
|
| 334 |
+
825,
|
| 335 |
+
911
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "",
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
90,
|
| 345 |
+
825,
|
| 346 |
+
147
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "HSIC measures the dependence between two random variables by first taking a nonlinear feature transformation of each, say $\\phi : \\mathcal { X } \\to \\mathcal { F }$ and $\\psi : \\mathcal { V } \\to \\mathcal { G }$ (with $\\mathcal { F }$ and $\\mathcal { G }$ reproducing kernel Hilbert spaces, RKHSes1), and then evaluating the norm of the cross-covariance between those features: ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
152,
|
| 356 |
+
823,
|
| 357 |
+
195
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "equation",
|
| 363 |
+
"img_path": "images/852eeb6eec8aea02dd762c218f0b47878f503bd29f222cac5531791bdcad1a4e.jpg",
|
| 364 |
+
"text": "$$\n\\operatorname { H S I C } ( X , Y ) = \\left\\| \\mathbb { E } [ \\phi ( X ) \\psi ( Y ) ^ { \\top } ] - \\mathbb { E } [ \\phi ( X ) ] \\mathbb { E } [ \\psi ( Y ) ] ^ { \\top } \\right\\| _ { H S } ^ { 2 } .\n$$",
|
| 365 |
+
"text_format": "latex",
|
| 366 |
+
"bbox": [
|
| 367 |
+
290,
|
| 368 |
+
200,
|
| 369 |
+
705,
|
| 370 |
+
224
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Here $\\| \\cdot \\| _ { H S }$ is the Hilbert-Schmidt norm, which in finite dimensions is the usual Frobenius norm. HSIC measures the scale of the correlation in these nonlinear features, which allows it to identify nonlinear dependencies between $X$ and $Y$ with appropriate features $\\phi$ and $\\psi$ . ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
173,
|
| 379 |
+
229,
|
| 380 |
+
825,
|
| 381 |
+
272
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "Inner products in an RKHS are by definition kernel functions: $k ( x , x ^ { \\prime } ) \\ = \\ \\langle \\phi ( x ) , \\phi ( x ^ { \\prime } ) \\rangle _ { \\mathcal { F } }$ and $l ( y , y ^ { \\prime } ) = \\langle \\psi ( y ) , \\psi ( y ^ { \\prime } ) \\rangle _ { \\mathcal { G } }$ . Let $( X ^ { \\prime } , Y ^ { \\prime } )$ , $( X ^ { \\prime \\prime } , Y ^ { \\prime \\prime } )$ be independent copies of $( X , Y )$ ; this gives ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
171,
|
| 390 |
+
279,
|
| 391 |
+
825,
|
| 392 |
+
308
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "equation",
|
| 398 |
+
"img_path": "images/6668a57c492fe39c9144befae6affc7590fe099e16e51f228cd2ac5532cc40bb.jpg",
|
| 399 |
+
"text": "$$\n\\operatorname { H S I C } ( X , Y ) = \\operatorname { \\mathbb { E } } \\left[ k ( X , X ^ { \\prime } ) l ( Y , Y ^ { \\prime } ) \\right] - 2 \\operatorname { \\mathbb { E } } \\left[ k ( X , X ^ { \\prime } ) l ( Y , Y ^ { \\prime \\prime } ) \\right] + \\operatorname { \\mathbb { E } } \\left[ k ( X , X ^ { \\prime } ) \\right] \\operatorname { \\mathbb { E } } \\left[ l ( Y , Y ^ { \\prime } ) \\right] .\n$$",
|
| 400 |
+
"text_format": "latex",
|
| 401 |
+
"bbox": [
|
| 402 |
+
183,
|
| 403 |
+
314,
|
| 404 |
+
795,
|
| 405 |
+
332
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "HSIC is also straightforward to estimate: given i.i.d. samples $\\left\\{ ( x _ { 1 } , y _ { 1 } ) , \\dotsc , ( x _ { N } , y _ { N } ) \\right\\}$ drawn i.i.d. from the joint distribution of $( X , Y )$ , Gretton et al. [26] propose an estimator ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
338,
|
| 415 |
+
823,
|
| 416 |
+
367
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "equation",
|
| 422 |
+
"img_path": "images/c8ba4024f5e40415b8d989ceeda424434c1d5582a842624dd05fb4ed154afaa3.jpg",
|
| 423 |
+
"text": "$$\n{ \\widehat { \\mathrm { H S I C } } } ( X , Y ) = \\frac { 1 } { ( N - 1 ) ^ { 2 } } \\mathrm { T r } ( K H L H ) ,\n$$",
|
| 424 |
+
"text_format": "latex",
|
| 425 |
+
"bbox": [
|
| 426 |
+
362,
|
| 427 |
+
372,
|
| 428 |
+
633,
|
| 429 |
+
405
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "where $K _ { i j } = k ( x _ { i } , x _ { j } )$ and $L _ { i j } = l ( y _ { i } , y _ { j } )$ are the kernel matrices, and $\\begin{array} { r } { H = I - \\frac { 1 } { N } \\mathbf { 1 } \\mathbf { 1 } ^ { \\top } } \\end{array}$ is called the centering matrix. This estimator has an $\\bar { O } ( 1 / N )$ bias, which is not a concern for our uses; however, an unbiased estimator with the same computational cost is available [39]. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
174,
|
| 438 |
+
411,
|
| 439 |
+
825,
|
| 440 |
+
455
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "3 Self-supervised learning with Kernel Dependence Maximization ",
|
| 447 |
+
"text_level": 1,
|
| 448 |
+
"bbox": [
|
| 449 |
+
174,
|
| 450 |
+
473,
|
| 451 |
+
736,
|
| 452 |
+
492
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 3
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "Our method builds on the self-supervised learning framework used by most of the recent selfsupervised learning approaches [16–19, 22, 24, 25]. For a dataset with $N$ points $x _ { i }$ , each point goes through a random transformation $t ^ { p } ( x _ { i } )$ (e.g. random crop), and then forms a feature representation $z _ { i } ^ { p } = { \\bar { f } } _ { \\theta } ( t ^ { p } ( x _ { i } ) )$ with an encoder network $f _ { \\theta }$ . We associate each image $x _ { i }$ with its identity $y _ { i }$ , which works as a one-hot encoded label: $y _ { i } \\in \\mathbb { R } ^ { N }$ and $( y _ { i } ) _ { d } = 1$ iff $d = i$ (and zero otherwise). To match the transformations and image identities, we maximize the dependence between $z _ { i }$ and $y _ { i }$ such that $z _ { i }$ is predictive of its original image. To build representations suitable for downstream tasks, we also need to penalize high-variance representations. These ideas come together in our HSIC-based objective for self-supervised learning, which we term SSL-HSIC: ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
173,
|
| 461 |
+
503,
|
| 462 |
+
826,
|
| 463 |
+
631
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "equation",
|
| 469 |
+
"img_path": "images/377b837f625ac02e81309b037a786373d99855b97c66b98accd179e1ff903615.jpg",
|
| 470 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { S S L - H S I C } } ( \\boldsymbol { \\theta } ) = - \\mathrm { H S I C } \\left( \\boldsymbol { Z } , \\boldsymbol { Y } \\right) + \\gamma \\sqrt { \\mathrm { H S I C } \\left( \\boldsymbol { Z } , \\boldsymbol { Z } \\right) } . } \\end{array}\n$$",
|
| 471 |
+
"text_format": "latex",
|
| 472 |
+
"bbox": [
|
| 473 |
+
318,
|
| 474 |
+
637,
|
| 475 |
+
679,
|
| 476 |
+
657
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "Unlike contrastive losses, which make the $z _ { i } ^ { p }$ from the same $x _ { i }$ closer and those from different $x _ { j }$ more distant, we propose an alternative way to match different transformations of the same image with its abstract identity (e.g. position in the dataset). ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
173,
|
| 485 |
+
669,
|
| 486 |
+
825,
|
| 487 |
+
712
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Our objective also resembles the HSIC bottleneck for supervised learning [27] (in particular, the version of [28]), but ours uses a square root for $\\mathrm { H S I C } ( Z , Z )$ . The square root makes the two terms on the same scale: $\\mathrm { H S I C } ( Z , Y )$ is effectively a dot product, and $\\sqrt { \\mathrm { H S I C } ( Z , Z ) }$ a norm, so that e.g. scaling the kernel by a constant does not change the relative amount of regularization;2 this also gives better performance in practice. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
173,
|
| 496 |
+
717,
|
| 497 |
+
826,
|
| 498 |
+
792
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 3
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "Due to the one-hot encoded labels, we can re-write HSIC $( Z , Y )$ as (see Appendix A) ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
173,
|
| 507 |
+
796,
|
| 508 |
+
736,
|
| 509 |
+
813
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "equation",
|
| 515 |
+
"img_path": "images/0208221dffe7712d774ffaf6c530bb7b763087d9478695aa452ece0cf6179e2e.jpg",
|
| 516 |
+
"text": "$$\n\\begin{array} { r } { \\mathrm { H S I C } ( Z , Y ) \\propto \\mathbb { E } _ { z _ { 1 } , z _ { 2 } \\sim p o s } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] - \\mathbb { E } _ { z _ { 1 } } \\mathbb { E } _ { z _ { 2 } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] , } \\end{array}\n$$",
|
| 517 |
+
"text_format": "latex",
|
| 518 |
+
"bbox": [
|
| 519 |
+
299,
|
| 520 |
+
818,
|
| 521 |
+
696,
|
| 522 |
+
835
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "where the first expectation is over the distribution of “positive” pairs (those from the same source image), and the second one is a sum over all image pairs, including their transformations. The first term in (5) pushes representations belonging to the same image identity together, while the second term keeps mean representations for each identity apart (as in Figure 2). The scaling of $\\mathrm { H S I C } ( Z , Y )$ depends on the choice of the kernel over $Y$ , and is irrelevant to the optimization. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
90,
|
| 532 |
+
825,
|
| 533 |
+
161
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "This form also reveals three key theoretical results. Section 3.1 shows that InfoNCE is better understood as an HSIC-based loss than a mutual information between views. Section 3.2 reveals that the dependence maximization in $\\mathrm { H S I C } ( Z , Y )$ can also be viewed as a form of distance metric learning, where the cluster structure is defined by the labels. Finally, $\\mathrm { H S I C } ( Z , Y )$ is proportional to the average kernel-based distance between the distribution of views for each source image (the maximum mean discrepancy, MMD; see Appendix B.2). ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
173,
|
| 542 |
+
166,
|
| 543 |
+
825,
|
| 544 |
+
251
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "3.1 Connection to InfoNCE ",
|
| 551 |
+
"text_level": 1,
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
267,
|
| 555 |
+
377,
|
| 556 |
+
282
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "In this section we show the connection between InfoNCE and our loss; see Appendix B for full details. We first write the latter in its infinite sample size limit (see [23] for a derivation) as ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
171,
|
| 565 |
+
294,
|
| 566 |
+
823,
|
| 567 |
+
323
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "equation",
|
| 573 |
+
"img_path": "images/3f0f16bba114be5d8c5c03e090df921e66943d3f2aee43cefc166db7c1941606.jpg",
|
| 574 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { I n f o N C E } } ( \\theta ) = - \\mathbb { E } _ { z _ { 1 } , z _ { 2 } \\sim \\mathrm { p o s } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] + \\mathbb { E } _ { z _ { 1 } } \\log \\mathbb { E } _ { z _ { 2 } } \\left[ \\exp \\left( k ( z _ { 1 } , z _ { 2 } ) \\right) \\right] ,\n$$",
|
| 575 |
+
"text_format": "latex",
|
| 576 |
+
"bbox": [
|
| 577 |
+
259,
|
| 578 |
+
330,
|
| 579 |
+
736,
|
| 580 |
+
348
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "where the last two expectations are taken over all points, and the first is over the distribution of positive pairs. The kernel $k ( z _ { 1 } , z _ { 2 } )$ was originally formulated as a scoring function in a form of a dot product [15], and then a scaled cosine similarity [19]. Both functions are valid kernels. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
356,
|
| 590 |
+
825,
|
| 591 |
+
398
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Now assume that $k ( z _ { 1 } , z _ { 2 } )$ doesn’t deviate much from $\\mathbb { E } _ { z _ { 2 } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right]$ , Taylor-expand the exponent in (6) around $\\mathbb { E } _ { z _ { 2 } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right]$ , then expand $\\log ( 1 + \\mathbb { E } _ { z _ { 2 } } ( . . . ) ) \\approx \\mathbb { E } _ { z _ { 2 } } ( . . . )$ . We obtain an $\\mathrm { H S I C } ( Z , Y )$ - based objective: ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
176,
|
| 600 |
+
404,
|
| 601 |
+
825,
|
| 602 |
+
446
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "equation",
|
| 608 |
+
"img_path": "images/148d20d2934fb617453a770c46e3d6152b49681716cb2763777add25e07a7604.jpg",
|
| 609 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { I n f o N C E } } ( \\theta ) \\approx \\underbrace { - \\mathbb { E } _ { z _ { 1 } , z _ { 2 } \\sim \\mathrm { p o s } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] + \\mathbb { E } _ { z _ { 1 } } \\mathbb { E } _ { z _ { 2 } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] } _ { \\propto - \\mathrm { H S I C } ( Z , Y ) } + \\underbrace { \\frac { 1 } { 2 } \\mathbb { E } _ { z _ { 1 } } \\left[ \\mathbb { V } \\mathrm { a r } _ { z _ { 2 } } \\left[ k ( z _ { 1 } , z _ { 2 } ) \\right] \\right] } _ { \\mathrm { v a r i a n c e p e n a l t y } } .\n$$",
|
| 610 |
+
"text_format": "latex",
|
| 611 |
+
"bbox": [
|
| 612 |
+
194,
|
| 613 |
+
454,
|
| 614 |
+
782,
|
| 615 |
+
500
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 4
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Since the scaling of $\\mathrm { H S I C } ( Z , Y )$ is irrelevant to the optimization, we assume scaling to replace $\\propto$ with $=$ . In the small variance regime, we can show that for the right $\\gamma$ , ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
171,
|
| 624 |
+
515,
|
| 625 |
+
823,
|
| 626 |
+
544
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 4
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "equation",
|
| 632 |
+
"img_path": "images/1f185702c2be46b3c39e79c4f9490be60c34e4feadce71afbc2161c341e2afff.jpg",
|
| 633 |
+
"text": "$$\n\\begin{array} { r } { - \\mathrm { H S I C } \\left( Z , Y \\right) + \\gamma \\mathrm { H S I C } \\left( Z , Z \\right) \\le \\mathcal { L } _ { \\mathrm { I n f o N C E } } ( \\theta ) + o ( \\mathrm { v a r i a n c e } ) . } \\end{array}\n$$",
|
| 634 |
+
"text_format": "latex",
|
| 635 |
+
"bbox": [
|
| 636 |
+
281,
|
| 637 |
+
551,
|
| 638 |
+
714,
|
| 639 |
+
569
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "For $\\mathrm { H S I C } ( Z , Z ) \\le 1$ , we also have that ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
174,
|
| 648 |
+
577,
|
| 649 |
+
436,
|
| 650 |
+
592
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 4
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "equation",
|
| 656 |
+
"img_path": "images/7e6b291b6bf5748716ae3884e71aff0e541c35dd259cdadb0e91261d691af218.jpg",
|
| 657 |
+
"text": "$$\n- \\mathrm { H S I C } \\left( Z , Y \\right) + \\gamma \\mathrm { H S I C } \\left( Z , Z \\right) \\leq \\mathcal { L } _ { \\mathrm { S S L - H S I C } } ( \\theta )\n$$",
|
| 658 |
+
"text_format": "latex",
|
| 659 |
+
"bbox": [
|
| 660 |
+
326,
|
| 661 |
+
599,
|
| 662 |
+
669,
|
| 663 |
+
617
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "due to the square root. InfoNCE and SSL-HSIC in general don’t quite bound each other due to discrepancy in the variance terms, but in practice the difference is small. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
173,
|
| 672 |
+
625,
|
| 673 |
+
825,
|
| 674 |
+
654
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "Why should we prefer the HSIC interpretation of InfoNCE? Initially, InfoNCE was suggested as a variational approximation to the mutual information between two views [15]. It has been observed, however, that using tighter estimators of mutual information leads to worse performance [30]. It is also simple to construct examples where InfoNCE finds different representations while the underlying MI remains constant [30]. Alternative theories suggest that InfoNCE balances alignment of “positive” examples and uniformity of the overall feature representation [23], or that (under strong assumptions) it can identify the latent structure in a hypothesized data-generating process, akin to nonlinear ICA [50]. Our view is consistent with these theories, but doesn’t put restrictive assumptions on the input data or learned representations. In Section 5 (summarized in Table 8a), we show that our interpretation gives rise to a better objective in practice. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
173,
|
| 683 |
+
659,
|
| 684 |
+
826,
|
| 685 |
+
797
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "3.2 Connection to metric learning ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
176,
|
| 695 |
+
815,
|
| 696 |
+
421,
|
| 697 |
+
830
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Our SSL-HSIC objective is closely related to kernel alignment [48], especially centered kernel alignment [49]. As a kernel method for distance metric learning, kernel alignment measures the agreement between a kernel function and a target function. Intuitively, the self-supervised labels $Y$ imply a cluster structure, and $\\mathrm { H S I C } ( Z , Y )$ estimates the degree of agreement between the learned features and this cluster structure in the kernel space. This relationship with clustering is also established in [40, 41, 45], where labels are learned rather than features. The clustering perspective is more evident when we assume linear kernels over both $Z$ and $Y$ , and $Z$ is unit length and centered:3 ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
174,
|
| 706 |
+
842,
|
| 707 |
+
825,
|
| 708 |
+
911
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 4
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "",
|
| 715 |
+
"bbox": [
|
| 716 |
+
171,
|
| 717 |
+
90,
|
| 718 |
+
825,
|
| 719 |
+
119
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 5
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "equation",
|
| 725 |
+
"img_path": "images/cf68eb4fe4081b6ab5f7838fa93ef24888e35baa7e17177109b15d47e260c0a9.jpg",
|
| 726 |
+
"text": "$$\n\\begin{array} { r l } & { - \\mathrm { H S I C } ( Z , Y ) \\propto - \\displaystyle \\frac { 1 } { M } T r ( Y ^ { \\top } Z ^ { \\top } Z Y ) + T r ( Z ^ { \\top } Z ) - N M } \\\\ & { \\qquad = - \\displaystyle \\frac { 1 } { M } \\sum _ { i = 1 } ^ { N } \\left\\| \\sum _ { p = 1 } ^ { M } z _ { i } ^ { p } \\right\\| _ { 2 } ^ { 2 } + \\sum _ { i = 1 } ^ { N } \\sum _ { p = 1 } ^ { M } \\| z _ { i } ^ { p } \\| _ { 2 } ^ { 2 } - N M = \\sum _ { i = 1 } ^ { N } \\sum _ { p = 1 } ^ { M } \\| z _ { i } ^ { p } - \\bar { z } _ { i } \\| _ { 2 } ^ { 2 } - N M , } \\end{array}\n$$",
|
| 727 |
+
"text_format": "latex",
|
| 728 |
+
"bbox": [
|
| 729 |
+
191,
|
| 730 |
+
125,
|
| 731 |
+
781,
|
| 732 |
+
204
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "with $M$ the number of augmentations per image and $\\bar { z } _ { i } = \\sum _ { p } z _ { i } ^ { p } / M$ the average feature vector of the augmented views of $x _ { i }$ . We emphasize, though, that (10) assumes centered, normalized data with linear kernels; the right-hand side of (10) could be optimized by setting all $z _ { i } ^ { p }$ to the same vector for each $i$ , but this does not actually optimize $\\mathrm { H S I C } ( Z , \\bar { Y } )$ . ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
176,
|
| 741 |
+
205,
|
| 742 |
+
823,
|
| 743 |
+
263
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "Equation (10) shows that we recover the spectral formulation [51] and sum-of-squares loss used in the $\\mathbf { k }$ -means clustering algorithm from the kernel objective. Moreover, the self-supervised label imposes that the features from transformations of the same image are gathered in the same cluster. Equation (10) also allows us to connect SSL-HSIC to non-contrastive objectives such as BYOL, although the connection is subtle because of its use of predictor and target networks. If each image is augmented with two views, we can compute (10) using $\\bar { z _ { i } } \\approx ( z _ { i } ^ { 1 } + \\bar { z _ { i } ^ { 2 } } ) / 2$ , so the clustering loss becomes $\\propto \\textstyle \\sum _ { i } | | z _ { i } ^ { 1 } - z _ { i } ^ { 2 } | | _ { 2 } ^ { 2 }$ . This is exactly the BYOL objective, only that $z _ { i } ^ { 2 }$ in BYOL comes from a target network. The assumption of centered and normalized features for (10) is important in the case of BYOL: without it, BYOL can find trivial solutions where all the features are collapsed to the same feature vector far away from the origin. The target network is used to prevent the collapse. SSL-HSIC, on the other hand, rules out such a solution by building the centering into the loss function, and therefore can be trained successfully without a target network or stop gradient operation. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
173,
|
| 752 |
+
270,
|
| 753 |
+
826,
|
| 754 |
+
436
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 5
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "3.3 Estimator of SSL-HSIC ",
|
| 761 |
+
"text_level": 1,
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
450,
|
| 765 |
+
379,
|
| 766 |
+
465
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 5
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "To use SSL-HSIC, we need to correctly and efficiently estimate (4). Both points are non-trivial: the self-supervised framework implies non-i.i.d. batches (due to positive examples), while the estimator in (3) assumes i.i.d. data; moreover, the time to compute (3) is quadratic in the batch size. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
173,
|
| 775 |
+
477,
|
| 776 |
+
825,
|
| 777 |
+
518
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 5
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "First, for $\\mathrm { H S I C } ( Z , Z )$ we use the biased estimator in (3). Although the i.i.d. estimator (3) results in an $O ( 1 / B )$ bias for $B$ original images in the batch size (see Appendix A), the batch size $B$ is large in our case and therefore the bias is negligible. For $\\mathrm { H S I C } ( Z , Y )$ the situation is more delicate: the i.i.d. estimator needs re-scaling, and its bias depends on the number of positive examples $M$ , which is typically very small (usually 2). We propose the following estimator: ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
523,
|
| 787 |
+
823,
|
| 788 |
+
594
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 5
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "equation",
|
| 794 |
+
"img_path": "images/e8584c88a53b312adc015e59cabde66c5f77f99650cb96ea0d2496add414a696.jpg",
|
| 795 |
+
"text": "$$\n\\widehat { \\mathrm { H S I C } } ( Z , Y ) = \\frac { \\Delta l } { N } \\left( \\frac { 1 } { B M ( M - 1 ) } \\sum _ { i p l } k ( z _ { i } ^ { p } , z _ { i } ^ { l } ) - \\frac { 1 } { B ^ { 2 } M ^ { 2 } } \\sum _ { i j p l } k ( z _ { i } ^ { p } , z _ { j } ^ { l } ) - \\frac { 1 } { M - 1 } \\right) ,\n$$",
|
| 796 |
+
"text_format": "latex",
|
| 797 |
+
"bbox": [
|
| 798 |
+
192,
|
| 799 |
+
597,
|
| 800 |
+
776,
|
| 801 |
+
646
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "where $i$ and $j$ index original images, and $p$ and $l$ their random transformations; $k$ is the kernel used for latent $Z , l$ is the kernel used for the labels, and $\\Delta l = l ( i , i ) - l ( i , j )$ ( $\\it l$ for same labels minus $l$ for different labels). Note that due to the one-hot structure of self-supervised labels $Y$ , the standard (i.i.d.-based) estimator would miss the $1 / N$ scaling and the $M - 1$ correction (the latter is important in practice, as we usually have $M = 2$ ). See Appendix A for the derivations. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
647,
|
| 811 |
+
825,
|
| 812 |
+
718
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "For convenience, we assume $\\Delta l = N$ (any scaling of $l$ can be subsumed by $\\gamma$ ), and optimize ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
173,
|
| 821 |
+
723,
|
| 822 |
+
781,
|
| 823 |
+
738
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 5
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "equation",
|
| 829 |
+
"img_path": "images/b66475b9da98befa9943a5613b26dbb795453ced10e1f5b98427f81b5627b47d.jpg",
|
| 830 |
+
"text": "$$\n\\widehat { \\mathcal { L } } _ { \\mathrm { S S L - H S I C } } ( \\theta ) = - \\widehat { \\mathrm { H S I C } } ( Z , Y ) + \\gamma \\sqrt { \\widehat { \\mathrm { H S I C } } ( Z , Z ) } .\n$$",
|
| 831 |
+
"text_format": "latex",
|
| 832 |
+
"bbox": [
|
| 833 |
+
320,
|
| 834 |
+
741,
|
| 835 |
+
676,
|
| 836 |
+
767
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 5
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "The computational complexity of the proposed estimators is $O ( B ^ { 2 } M ^ { 2 } )$ for each mini-batch of size $B$ with $M$ augmentations. We can reduce the complexity to $O ( B M )$ by using random Fourier features (RFF) [33], which approximate the kernel $k ( z _ { 1 } , z _ { 2 } )$ with a carefully chosen random $D$ -dimensional approximation $R ( z _ { 1 } ) ^ { \\top } R ( z _ { 2 } )$ for $R ( z ) : \\mathbb { R } ^ { D _ { z } } \\mathbb { R } ^ { D }$ , such that $\\begin{array} { r } { k ( z _ { 1 } , z _ { 2 } ) = \\mathbb { E } \\left[ R ( z _ { 1 } ) ^ { \\top } R ( z _ { 2 } ) \\right] , } \\end{array}$ . Fourier frequencies are sampled independently for the two kernels on $Z$ in $\\mathrm { H S I C } ( Z , Z )$ at each training step. We leave the details on how to construct $R ( z )$ for the kernels we use to Appendix C. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
776,
|
| 846 |
+
825,
|
| 847 |
+
864
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 5
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "4 Experiments ",
|
| 854 |
+
"text_level": 1,
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
89,
|
| 858 |
+
312,
|
| 859 |
+
107
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 6
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "In this section, we present our experimental setup, where we assess the performance of the representation learned with SSL-HSIC both with and without a target network. First, we train a model with a standard ResNet-50 backbone using SSL-HSIC as objective on the training set of ImageNet ILSVRC-2012 [1]. For evaluation, we retain the backbone as a feature extractor for downstream tasks. We evaluate the representation on various downstream tasks including classification, object segmentation, object detection and depth estimation. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
173,
|
| 868 |
+
128,
|
| 869 |
+
825,
|
| 870 |
+
213
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 6
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "image",
|
| 876 |
+
"img_path": "images/a05cd99484a48004d410b54e0a447b170aabd0f27381d90ac49f4fcc73067ee3.jpg",
|
| 877 |
+
"image_caption": [
|
| 878 |
+
"Figure 4: Architecture and SSL-HSIC objective. A self-supervised label $y$ – an indicator of the image identity – is associated with an image $x$ . Image transformation functions $t$ are sampled and applied to the original image, resulting in views $t ^ { 1 } ( x )$ and $t ^ { 2 } ( x )$ . Features $z ^ { 1 }$ and $z ^ { 2 }$ are obtained after passing the augmented views through encoder $( f )$ , projector $( g )$ , and possibly predictor $( q )$ networks, while label $y$ is retained. Kernel matrices, $K$ for the latents and $L$ for the labels, are computed on the mini-batch of data; SSL-HSIC is estimated with $K$ and $L$ as in (12). The blue boxes reflect two potential options: when using a target network, $\\xi$ is a moving average of $\\theta$ , and a predictor network $q$ is added; without the target network, $q$ is removed and $\\xi$ is simply equal to $\\theta$ . "
|
| 879 |
+
],
|
| 880 |
+
"image_footnote": [],
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
218,
|
| 884 |
+
823,
|
| 885 |
+
363
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 6
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "4.1 Implementation ",
|
| 892 |
+
"text_level": 1,
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
513,
|
| 896 |
+
323,
|
| 897 |
+
529
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 6
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Architecture Figure 4 illustrates the architecture we used for SSL-HSIC in this section. To facilitate comparison between different methods, our encoder $f _ { \\theta }$ uses the standard ResNet-50 backbone without the final classification layer. The output of the encoder is a 2048-dimension embedding vector, which is the representation used for downstream tasks. As in BYOL [25], our projector $g$ and predictor $q$ networks are 2-layer MLPs with 4096 hidden dimensions and 256 output dimensions. The outputs of the networks are batch-normalized and rescaled to unit norm before computing the loss. We use an inverse multiquadric kernel (IMQ) for the latent representation (approximated with 512 random Fourier features that are resampled at each step; see Appendix C for details) and a linear kernel for labels. $\\gamma$ in (4) is set to 3. When training without a target network, unlike SimSiam [24], we do not stop gradients for either branch. If the target network is used, its weights are an exponential moving average of the online network weights. We employ the same schedule as BYOL [25], $\\tau = 1 \\stackrel { - } { - } 0 . 0 1 \\stackrel { - } { \\cdot } ( \\cos ( \\pi t / T ) + 1 ) / 2$ with $t$ the current step and $T$ the total training steps. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
545,
|
| 907 |
+
825,
|
| 908 |
+
712
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 6
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Image augmentation Our method uses the same data augmentation scheme as BYOL (see Appendix D.1). Briefly, we first draw a random patch from the original image and resize it to $2 2 4 \\times 2 2 4$ Then, we apply a random horizontal flip, followed by color jittering, consisting of a random sequence of brightness, contrast, saturation, hue adjustments, and an optional grayscale conversion. Finally Gaussian blur and solarization are applied, and the view is normalized with ImageNet statistics. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
174,
|
| 917 |
+
718,
|
| 918 |
+
825,
|
| 919 |
+
787
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 6
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Optimization We train the model with a batch size of 4096 on 128 Cloud TPU v4 cores. Again, following [19, 25], we use the LARS optimizer [52] with a cosine decay learning rate schedule over 1000 epochs. The base learning rate to all of our experiments is 0.4 and it is scaled linearly [53] with the batch size $l r = 0 . 4 \\times b a t c h { \\_ } s i z e / 2 5 6 .$ . All experiments use weight decay of $1 0 ^ { - 6 }$ . ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
794,
|
| 929 |
+
825,
|
| 930 |
+
849
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 6
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Learning kernel parameters We use a linear kernel for labels, since the type of kernel only scales (12). Our inverse multiquadric kernel for the latent $Z$ has an additional kernel scale parameter. We optimize this along with all other parameters, but regularize it to maximize the entropy of the distribution $k _ { \\sigma } ( s )$ , where $s _ { i j } = \\lVert { z } _ { i } - { z } _ { j } \\rVert ^ { 2 }$ ; this amounts to maximizing $\\log \\lVert k _ { \\sigma } ^ { \\prime } ( s ) \\rVert ^ { 2 }$ (Appendix D.1.2). ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
174,
|
| 939 |
+
856,
|
| 940 |
+
825,
|
| 941 |
+
912
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 6
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Linear evaluation on ImageNet Learned features are evaluated with the standard linear evaluation protocol commonly used in evaluating self-supervised learning methods [15–22, 25]. Table 1 reports the top-1 and top-5 accuracies obtained with SSL-HSIC on ImageNet validation set, and compares to previous self-supervised learning methods. Without a target network, our method reaches $7 2 . 2 \\%$ top-1 and $9 0 . 7 \\%$ top-5 accuracies. Unlike BYOL, the SSL-HSIC objective prevents the network from finding trivial solutions as explained in Section 3.2. Adding the target network, our method outperforms most previous methods, achieving top-1 accuracy of $7 4 . 8 \\%$ and top-5 accuracy of $9 2 . 2 \\%$ The fact that we see performance gains from adopting a target network suggests that its effect is not yet well understood, although note discussion in [25] which points to its stabilizing effect. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
126,
|
| 951 |
+
825,
|
| 952 |
+
251
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 7
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "table",
|
| 958 |
+
"img_path": "images/9816638d7e810e521d90e54d6e6ba7c6a00b6fc50c874d8aa8e0e255200af6ef.jpg",
|
| 959 |
+
"table_caption": [
|
| 960 |
+
"Table 1: Linear evaluation on the ImageNet validation set. "
|
| 961 |
+
],
|
| 962 |
+
"table_footnote": [],
|
| 963 |
+
"table_body": "<table><tr><td></td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>Supervised [54]</td><td>75.9</td><td>92.8</td></tr><tr><td>SimCLR[19]</td><td>69.3</td><td>89.0</td></tr><tr><td>MoCo v2 [20]</td><td>71.1</td><td>90.1</td></tr><tr><td>BYOL [25]</td><td>74.3</td><td>91.6</td></tr><tr><td>SwAV[18]</td><td>75.3</td><td>-</td></tr><tr><td>Barlow Twins [22]</td><td>73.2</td><td>91.0</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>72.2</td><td>90.7</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>74.8</td><td>92.2</td></tr></table>",
|
| 964 |
+
"bbox": [
|
| 965 |
+
178,
|
| 966 |
+
292,
|
| 967 |
+
419,
|
| 968 |
+
405
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 7
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "table",
|
| 974 |
+
"img_path": "images/4ac8817fc095d16888065208da3e638cf45aa8a35425abf3cd6ab84a05206729.jpg",
|
| 975 |
+
"table_caption": [
|
| 976 |
+
"Table 2: Fine-tuning on $1 \\%$ , $10 \\%$ and $100 \\%$ of the ImageNet training set and evaluating on the validation set. "
|
| 977 |
+
],
|
| 978 |
+
"table_footnote": [],
|
| 979 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Top-1(%)</td><td colspan=\"3\">Top-5(%)</td></tr><tr><td>1%</td><td>10%</td><td>100%</td><td>1%</td><td>10%</td><td>100%</td></tr><tr><td>Supervised [54]</td><td>25.4</td><td>56.4</td><td>75.9</td><td>48.4</td><td>80.4</td><td>92.8</td></tr><tr><td>SimCLR [19]</td><td>48.3</td><td>65.6</td><td>76.0</td><td>75.5</td><td>87.8</td><td>93.1</td></tr><tr><td>BYOL [25]</td><td>53.2</td><td>68.8</td><td>77.7</td><td>78.4</td><td>89.0</td><td>93.9</td></tr><tr><td>SwAV[18]</td><td>53.9</td><td>70.2</td><td>1</td><td>78.5</td><td>89.9</td><td>-</td></tr><tr><td>Barlow Twins [22]</td><td>55.0</td><td>69.7</td><td>-</td><td>79.2</td><td>89.3</td><td>-</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>45.3</td><td>65.5</td><td>76.4</td><td>72.7</td><td>87.5</td><td>93.2</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>52.1</td><td>67.9</td><td>77.2</td><td>77.7</td><td>88.6</td><td>93.6</td></tr></table>",
|
| 980 |
+
"bbox": [
|
| 981 |
+
450,
|
| 982 |
+
292,
|
| 983 |
+
820,
|
| 984 |
+
412
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 7
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Semi-supervised learning on ImageNet We fine-tune the network pretrained with SSL-HSIC on $1 \\%$ , $10 \\%$ and $100 \\%$ of ImageNet, using the same ImageNet splits as SimCLR [19]. Table 2 summarizes the semi-supervised learning performance. Our method, with or without a target network, has competitive performance in both data regimes. The target network has the most impact on the small-data regime, with $1 \\%$ labels. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
173,
|
| 993 |
+
419,
|
| 994 |
+
826,
|
| 995 |
+
488
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 7
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "table",
|
| 1001 |
+
"img_path": "images/7416842a8e690375d9461297698e31842b7ef2c559bf849eb6a9796726edc4e0.jpg",
|
| 1002 |
+
"table_caption": [
|
| 1003 |
+
"Table 3: Comparison of transfer learning performance on 12 image datasets. Supervised-IN is trained on ImageNet with supervised pretrainining. Random init trains on individual dataset with randomly initialized weights. MPCA refers to mean per-class accuracy; AP50 is average precision at $\\mathrm { I o U } { = } 0 . 5$ . "
|
| 1004 |
+
],
|
| 1005 |
+
"table_footnote": [],
|
| 1006 |
+
"table_body": "<table><tr><td>Dataset Metric</td><td>Birdsnap Caltechl01 Cifarl0 Cifarl001 Top-1</td><td>MPCA</td><td></td><td>Top-1</td><td>DTD Top-1</td><td>Aircraft Food Flowers</td><td>MPCA Top-1</td><td>MPCA MPCA Top-1</td><td>Pets</td><td>Cars</td><td>Top-1</td><td>SUN397 VOC2007 AP50</td></tr><tr><td>Linear:</td><td></td><td></td><td>Top-1</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Supervised-IN [19]</td><td>53.7</td><td>94.5</td><td>93.6</td><td>78.3</td><td></td><td>61.0</td><td>72.3</td><td>94.7</td><td>91.5</td><td>67.8</td><td>61.9</td><td>82.8</td></tr><tr><td>SimCLR[19]</td><td>37.4</td><td>90.3</td><td>90.6</td><td>71.6</td><td>74.9 74.5</td><td>50.3</td><td>68.4</td><td>90.3</td><td>83.6</td><td>50.3</td><td>58.8</td><td>80.5</td></tr><tr><td>BYOL [25]</td><td>57.2</td><td>94.2</td><td>91.3</td><td>78.4</td><td>75.5</td><td>60.6</td><td>75.3</td><td>96.1</td><td>90.4</td><td>66.7</td><td>62.2</td><td>82.5</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>50.6</td><td>92.3</td><td>91.5</td><td>75.9</td><td>75.3</td><td>57.9</td><td>73.6</td><td>95.0</td><td>88.2</td><td>59.3</td><td>61.0</td><td>81.4</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>57.8</td><td>93.5</td><td>92.3</td><td>77.0</td><td>76.2</td><td>58.5</td><td>75.6</td><td>95.4</td><td>91.2</td><td>62.6</td><td>61.8</td><td>83.3</td></tr><tr><td>Fine-tuned:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Supervised-IN [19]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>85.0</td></tr><tr><td>Random init [19]</td><td>75.8</td><td>93.3</td><td>97.5</td><td>86.4</td><td>74.6</td><td>86.0 85.9</td><td>88.3</td><td>97.6</td><td>92.1</td><td>92.1</td><td>94.3 53.6</td><td>67.3</td></tr><tr><td>SimCLR[19]</td><td>76.1 75.9</td><td>72.6 92.1</td><td>95.9 97.7</td><td>80.2 85.9</td><td>64.8 73.2</td><td>88.1</td><td>86.9 88.2</td><td>92.0 97.0</td><td>81.5 89.2</td><td>91.4 91.3</td><td>63.5</td><td>84.1</td></tr><tr><td>BYOL [25]</td><td>76.3</td><td>93.8</td><td>97.8</td><td>86.1</td><td>76.2</td><td>88.1</td><td>88.5</td><td>97.0</td><td>91.7</td><td>91.6</td><td>63.7</td><td>85.4</td></tr><tr><td>SSL-HSIC (w/o target)</td><td>73.1</td><td>91.5</td><td>97.4</td><td>85.3</td><td>75.3</td><td>87.1</td><td>87.5</td><td>96.4</td><td>90.6</td><td>91.6</td><td>62.2</td><td>84.1</td></tr><tr><td>SSL-HSIC (w/ target)</td><td>74.9</td><td>93.8</td><td>97.8</td><td>84.7</td><td>75.4</td><td>88.9</td><td>87.7</td><td>97.3</td><td>91.7</td><td>91.8</td><td>61.7</td><td>84.1</td></tr></table>",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
179,
|
| 1009 |
+
542,
|
| 1010 |
+
815,
|
| 1011 |
+
728
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Transfer to other classification tasks To investigate the generality of the representation learned with SSL-HSIC, we evaluate the transfer performance for classification on 12 natural image datasets [55–64] using the same procedure as [19, 25, 65]. Table 3 shows the top-1 accuracy of the linear evaluation and fine-tuning performance on the test set. SSL-HSIC gets state-of-the-art performance on 3 of the classification tasks and reaches strong performance on others for this benchmark, indicating the learned representations are robust for transfer learning. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
173,
|
| 1020 |
+
738,
|
| 1021 |
+
825,
|
| 1022 |
+
821
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 7
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Transfer to other vision tasks To test the ability of transferring to tasks other than classification, we fine-tune the network on semantic segmentation, depth estimation and object detection tasks. We use Pascal VOC2012 dataset [58] for semantic segmentation, NYU v2 dataset [66] for depth estimation and COCO [67] for object detection. Object detection outputs either bounding box or object segmentation (instance segmentation). Details of the evaluations setup is in Appendix D.2. Table 4 and Table 5 shows that SSL-HSIC achieves competitive performance on all three vision tasks. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
827,
|
| 1032 |
+
825,
|
| 1033 |
+
911
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 7
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "table",
|
| 1039 |
+
"img_path": "images/2b80a57a29e2a954c8afa620a36f1ce609b0a2d5f2fe67f0a2d5fb45bac988fa.jpg",
|
| 1040 |
+
"table_caption": [
|
| 1041 |
+
"Table 4: Fine-tuning performance on semantic segmentation and depth estimation. Mean Intersection over Union (mIoU) is reported for semantic segmentation. Relative error (rel), root mean squared error (rms), and the percent of pixels (pct) where the error is below $1 . 2 5 ^ { n }$ thresholds are reported for depth estimation. "
|
| 1042 |
+
],
|
| 1043 |
+
"table_footnote": [],
|
| 1044 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">VOC2012 mIoU</td><td colspan=\"5\">NYU v2</td></tr><tr><td>pct.<1.25</td><td>pct.<1.252</td><td>pct.<1.253</td><td>rms</td><td>rel</td></tr><tr><td>Supervised-IN</td><td>74.4</td><td>81.1</td><td>95.3</td><td>98.8</td><td>0.573</td><td>0.127</td></tr><tr><td>SimCLR</td><td>75.2</td><td>83.3</td><td>96.5</td><td>99.1</td><td>0.557</td><td>0.134</td></tr><tr><td>BYOL</td><td>76.3</td><td>84.6</td><td>96.7</td><td>99.1</td><td>0.541</td><td>0.129</td></tr><tr><td>SSL-HSIC(w/o target)</td><td>74.9</td><td>84.1</td><td>96.7</td><td>99.2</td><td>0.539</td><td>0.130</td></tr><tr><td>SSL-HSIC(w/ target)</td><td>76.0</td><td>83.8</td><td>96.8</td><td>99.1</td><td>0.548</td><td>0.130</td></tr></table>",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
174,
|
| 1047 |
+
167,
|
| 1048 |
+
596,
|
| 1049 |
+
246
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 8
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "table",
|
| 1055 |
+
"img_path": "images/4667c209a2ad0485966510d9de070969285cc2c2254eda2bae9903893ef03582.jpg",
|
| 1056 |
+
"table_caption": [
|
| 1057 |
+
"Table 5: Fine-tuning performance on COCO object detection tasks. Precision, averaged over $1 0 \\ \\mathrm { I o U }$ (Intersection over Union) thresholds, is reported for both bounding box and object segmentation. "
|
| 1058 |
+
],
|
| 1059 |
+
"table_footnote": [],
|
| 1060 |
+
"table_body": "<table><tr><td>Method</td><td>APbb</td><td>Apmk</td></tr><tr><td>Supervised</td><td>39.6</td><td>35.6</td></tr><tr><td>SimCLR</td><td>39.7</td><td>35.8</td></tr><tr><td>MoCo v2</td><td>40.1</td><td>36.3</td></tr><tr><td>BYOL</td><td>41.6</td><td>37.2</td></tr><tr><td>SwAV</td><td>41.6</td><td>37.8</td></tr><tr><td>SSL-HSIC(w/o target)</td><td>40.5</td><td>36.3</td></tr><tr><td>SSL-HSIC(w/ target)</td><td>41.3</td><td>36.8</td></tr></table>",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
607,
|
| 1063 |
+
180,
|
| 1064 |
+
825,
|
| 1065 |
+
282
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 8
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "5 Ablation Studies ",
|
| 1072 |
+
"text_level": 1,
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
174,
|
| 1075 |
+
314,
|
| 1076 |
+
343,
|
| 1077 |
+
332
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 8
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "We present ablation studies to gain more intuition on SSL-HSIC. Here, we use a ResNet-50 backbone trained for 100 epochs on ImageNet, and evaluate with the linear protocol unless specified. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
174,
|
| 1086 |
+
351,
|
| 1087 |
+
821,
|
| 1088 |
+
378
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 8
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "ResNet architectures In this ablation, we investigate the performance of SSL-HSIC with wider and deeper ResNet architecture. Figure 1 and Table 6 show our main results. The performance of SSL-HSIC gets better with larger networks. We used the supervised baseline from [25] which our training framework is based on ([19] reports lower performance). The performance gap between SSL-HSIC and the supervised baseline diminishes with larger architectures. In addition, Table 7 presents the semi-supervise learning results with subsets $1 \\%$ , $10 \\%$ and $100 \\%$ of the ImageNet data. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
385,
|
| 1098 |
+
825,
|
| 1099 |
+
468
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 8
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "table",
|
| 1105 |
+
"img_path": "images/0680ab887cfe1d473b62aa0681b0535929e6999e84b4a515040d1aeb5f7c6969.jpg",
|
| 1106 |
+
"table_caption": [
|
| 1107 |
+
"Table 6: Top-1 and top-5 accuracies for different ResNet architectures using linear evaluation protocol. "
|
| 1108 |
+
],
|
| 1109 |
+
"table_footnote": [],
|
| 1110 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">SSL-HSIC</td><td colspan=\"2\">BYOL[25]</td><td colspan=\"2\">Sup.[25]</td></tr><tr><td>ResNet</td><td>Top1</td><td>Top5</td><td>Top1</td><td>Top5</td><td>Top1</td><td>Top5</td></tr><tr><td>50 (1x)</td><td>74.8</td><td>92.2</td><td>74.3</td><td>91.6</td><td>76.4</td><td>92.9</td></tr><tr><td>50 (2x)</td><td>77.9</td><td>94.0</td><td>77.4</td><td>93.6</td><td>79.9</td><td>95.0</td></tr><tr><td>50(4x)</td><td>79.1</td><td>94.5</td><td>78.6</td><td>94.2</td><td>80.7</td><td>95.3</td></tr><tr><td>200 (2x)</td><td>79.6</td><td>94.8</td><td>79.6</td><td>94.9</td><td>80.1</td><td>95.2</td></tr></table>",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
178,
|
| 1113 |
+
525,
|
| 1114 |
+
488,
|
| 1115 |
+
607
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 8
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "table",
|
| 1121 |
+
"img_path": "images/f3fccfe523b95e9b192709865cc8dea79b37b22cdf8e7aaec72c340fcee31090.jpg",
|
| 1122 |
+
"table_caption": [
|
| 1123 |
+
"Table 7: Top-1 and top-5 accuracies for different ResNet architectures using semisupervised fine-tuning. "
|
| 1124 |
+
],
|
| 1125 |
+
"table_footnote": [],
|
| 1126 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Top1</td><td colspan=\"3\">Top5</td></tr><tr><td>ResNet</td><td>1%</td><td>10%</td><td>100%</td><td>1%</td><td>10%</td><td>100%</td></tr><tr><td>50 (1x)</td><td>52.1</td><td>67.9</td><td>77.2</td><td>77.7</td><td>88.6</td><td>93.6</td></tr><tr><td>50 (2x)</td><td>61.2</td><td>72.6</td><td>79.3</td><td>83.8</td><td>91.2</td><td>94.7</td></tr><tr><td>50 (4x)</td><td>67.0</td><td>75.4</td><td>79.7</td><td>87.4</td><td>92.5</td><td>94.8</td></tr><tr><td>200(2x)</td><td>69.0</td><td>76.3</td><td>80.5</td><td>88.3</td><td>92.9</td><td>95.2</td></tr></table>",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
531,
|
| 1129 |
+
525,
|
| 1130 |
+
823,
|
| 1131 |
+
608
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 8
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Regularization term We compare performance of InfoNCE with SSL-HSIC in Table 8a since they can be seen as approximating the same $\\mathrm { H S I C } ( Z , Y )$ objective but with different forms of regularization. We reproduce the InfoNCE result in our codebase, using the same architecture and data augmentiation as for SSL-HSIC. Trained for 100 epochs (without a target network), InfoNCE achieves $6 6 . 0 \\%$ top-1 and $8 6 . 9 \\%$ top-5 accuracies, which is better than the result reported in [19]. For comparison, SSL-HSIC reaches $6 6 . 7 \\%$ top-1 and $8 7 . 6 \\%$ top-5 accuracies. This suggests that the regularization employed by SSL-HSIC is more effective. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
174,
|
| 1140 |
+
614,
|
| 1141 |
+
825,
|
| 1142 |
+
712
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Kernel type We investigate the effect of using different a kernel on latents $Z$ . Training without a target network or random Fourier feature approximation, the top-1 accuracies for linear, Gaussian, and inverse multiquadric (IMQ) kernels are $6 5 . 2 7 \\%$ , $6 6 . 6 7 \\%$ and $6 6 . 7 2 \\%$ respectively. Non-linear kernels indeed improve the performance; Gaussian and IMQ kernels reach very similar performance for 100 epochs. We choose IMQ kernel for longer runs, because its heavy-tail property can capture more signal when points are far apart. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
717,
|
| 1152 |
+
825,
|
| 1153 |
+
801
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Number of RFF Features Table 8b shows the performance of SSL-HSIC with different numbers of Fourier features. The RFF approximation has a minor impact on the overall performance, as long as we resample them; fixed sets of features performed poorly. Our main result picked 512 features, for substantial computational savings with minor loss in accuracy. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
174,
|
| 1162 |
+
808,
|
| 1163 |
+
825,
|
| 1164 |
+
863
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 8
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Batch size Similar to most of the self-supervised learning methods [19, 25], SSL-HSIC benefits from using a larger batch size during training. However, the drop of performance from using smaller batch size is not as pronounced as it is in SimCLR[19] as shown in Table 8c. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
176,
|
| 1173 |
+
869,
|
| 1174 |
+
825,
|
| 1175 |
+
911
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 8
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "table",
|
| 1181 |
+
"img_path": "images/9035c053c539fa3c75259cd473bf307a2eeffeb6c29d7088e0a836195d641218.jpg",
|
| 1182 |
+
"table_caption": [
|
| 1183 |
+
"(a) Regularization "
|
| 1184 |
+
],
|
| 1185 |
+
"table_footnote": [],
|
| 1186 |
+
"table_body": "<table><tr><td></td><td>Top-1</td><td>Top-5</td></tr><tr><td>SSL-HSIC</td><td>66.7</td><td>87.6</td></tr><tr><td>InfoNCE</td><td>66.0</td><td>86.9</td></tr></table>",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
176,
|
| 1189 |
+
140,
|
| 1190 |
+
323,
|
| 1191 |
+
186
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "table",
|
| 1197 |
+
"img_path": "images/35caf24f4a2c86fccd84be89c5db0321f33bf20deaa7fd070e4337c8837c3314.jpg",
|
| 1198 |
+
"table_caption": [
|
| 1199 |
+
"Table 8: Linear evaluation results when varying different hyperparameters. ",
|
| 1200 |
+
"(d) Projector/predictor size "
|
| 1201 |
+
],
|
| 1202 |
+
"table_footnote": [],
|
| 1203 |
+
"table_body": "<table><tr><td>Output Dim</td><td>Top-1(%)</td></tr><tr><td>64</td><td>65.4</td></tr><tr><td>128</td><td>66.0</td></tr><tr><td>256</td><td>66.4</td></tr><tr><td>512</td><td>66.6</td></tr><tr><td>1024</td><td>66.6</td></tr></table>",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
681,
|
| 1206 |
+
138,
|
| 1207 |
+
805,
|
| 1208 |
+
217
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 9
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "table",
|
| 1214 |
+
"img_path": "images/1d5b2f05662825431d99f28568973bde10e24f890522e49407153fb772150317.jpg",
|
| 1215 |
+
"table_caption": [
|
| 1216 |
+
"(b) # Fourier features "
|
| 1217 |
+
],
|
| 1218 |
+
"table_footnote": [],
|
| 1219 |
+
"table_body": "<table><tr><td>#RFFs</td><td>Top-1(%)</td></tr><tr><td>64</td><td>66.0</td></tr><tr><td>128</td><td>66.2</td></tr><tr><td>256</td><td>66.2</td></tr><tr><td>512</td><td>66.4</td></tr><tr><td>1024</td><td>66.5</td></tr><tr><td>2048</td><td>66.5</td></tr><tr><td>No Approx.</td><td>66.7</td></tr></table>",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
331,
|
| 1222 |
+
140,
|
| 1223 |
+
464,
|
| 1224 |
+
237
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 9
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "table",
|
| 1230 |
+
"img_path": "images/f748bd0018c5619e5b3b530a607f0d56d93a2079015f5736d08550c3905c2787.jpg",
|
| 1231 |
+
"table_caption": [
|
| 1232 |
+
"(c) Batch size "
|
| 1233 |
+
],
|
| 1234 |
+
"table_footnote": [],
|
| 1235 |
+
"table_body": "<table><tr><td colspan=\"4\">Top-1(%)</td></tr><tr><td>Batch Size</td><td>SSL-HSIC</td><td>SimCLR</td><td></td></tr><tr><td>256</td><td>63.7</td><td>57.5</td><td></td></tr><tr><td>512</td><td>65.6</td><td></td><td>60.7</td></tr><tr><td>1024</td><td>66.7</td><td></td><td>62.8</td></tr><tr><td>2048</td><td>67.1</td><td></td><td>64.0</td></tr><tr><td>4096</td><td>66.7</td><td></td><td>64.6</td></tr></table>",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
478,
|
| 1238 |
+
140,
|
| 1239 |
+
661,
|
| 1240 |
+
233
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 9
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Projector and predictor output size Table 8d shows the performance when using different output dimension for the projector/predictor networks. The performance saturates at 512 dimensions. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
171,
|
| 1249 |
+
268,
|
| 1250 |
+
823,
|
| 1251 |
+
297
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 9
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "6 Conclusions ",
|
| 1258 |
+
"text_level": 1,
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
174,
|
| 1261 |
+
324,
|
| 1262 |
+
305,
|
| 1263 |
+
340
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 9
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "We introduced SSL-HSIC, a loss function for self-supervised representation learning based on kernel dependence maximization. We provided a unified view on various self-supervised learning losses: we proved that InfoNCE, a lower bound of mutual information, actually approximates SSL-HSIC with a variance-based regularization, and we can also interpret SSL-HSIC as metric learning where the cluster structure is imposed by the self-supervised label, of which the BYOL objective is a special case. We showed that training with SSL-HSIC achieves performance on par with the state-of-the-art on the standard self-supervised benchmarks. ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
174,
|
| 1272 |
+
358,
|
| 1273 |
+
825,
|
| 1274 |
+
455
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 9
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "Although using the image identity as self-supervised label provides a good inductive bias, it might not be wholly satisfactory; we expect that some images pairs are in fact more similar than others, based e.g. on their ImageNet class label. It will be interesting to explore methods that combine label structure discovery with representation learning (as in SwAV [18]). In this paper, we only explored learning image representations, but in future work SSL-HSIC can be extended to learning structure for $Y$ as well, building on existing work [41, 45]. ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
174,
|
| 1283 |
+
462,
|
| 1284 |
+
825,
|
| 1285 |
+
546
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 9
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "Broader impact ",
|
| 1292 |
+
"text_level": 1,
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
174,
|
| 1295 |
+
571,
|
| 1296 |
+
307,
|
| 1297 |
+
589
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 9
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Our work concentrates on providing a more theoretically grounded and interpretable loss function for self-supervised learning. A better understanding of self-supervised learning, especially through more interpretable learning dynamics, is likely to lead to better and more explicit control over societal biases of these algorithms. SSL-HSIC yields an alternative, clearer understanding of existing selfsupervised methods. As such, it is unlikely that our method introduces further biases than those already present for self-supervised learning. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
174,
|
| 1306 |
+
607,
|
| 1307 |
+
825,
|
| 1308 |
+
690
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 9
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "The broader impacts of the self-supervised learning framework is an area that has not been studied by the AI ethics community, but we think it calls for closer inspection. An important concern for fairness of ML algorithms is dataset bias. ImageNet is known for a number of problems such as offensive annotations, non-visual concepts and lack of diversity, in particular for underrepresented groups. Existing works and remedies typically focus on label bias. Since SSL doesn’t use labels, however, the type and degree of bias could be very different from that of supervised learning. To mitigate the risk of dataset bias, one could employ dataset re-balancing to correct sampling bias [68] or completely exclude human images from the dataset while achieving the same performance [69]. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
174,
|
| 1317 |
+
696,
|
| 1318 |
+
825,
|
| 1319 |
+
808
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 9
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "A new topic to investigate for self-supervised learning is how the bias/unbiased representation could be transferred to downstream tasks. We are not aware of any work in this direction. Another area of concern is security and robustness. Compared to supervised learning, self-supervised learning typically involves more intensive data augmentation such as color jittering, brightness adjustment, etc. There is some initial evidence suggesting self-supervised learning improves model robustness [70]. However, since data augmentation can either be beneficial [71] or detrimental [72] depending on the type of adversarial attacks, more studies are needed to assess its role for self-supervised learning. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
174,
|
| 1328 |
+
814,
|
| 1329 |
+
825,
|
| 1330 |
+
911
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 9
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1337 |
+
"text_level": 1,
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
174,
|
| 1340 |
+
88,
|
| 1341 |
+
553,
|
| 1342 |
+
107
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "The authors would like to thank Olivier J. Hénaff for valuable feedback on the manuscript and the help for evaluating object detection task. We thank Aaron Van den Oord and Oriol Vinyals for providing valuable feedback on the manuscript. We are grateful to Yonglong Tian, Ting Chen and the BYOL authors for the help with reproducing baselines and evaluating downstream tasks. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
119,
|
| 1352 |
+
825,
|
| 1353 |
+
176
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "This work was supported by DeepMind, the Gatsby Charitable Foundation, the Wellcome Trust, NSERC, and the Canada CIFAR AI Chairs program. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
174,
|
| 1362 |
+
181,
|
| 1363 |
+
823,
|
| 1364 |
+
212
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "References ",
|
| 1371 |
+
"text_level": 1,
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
174,
|
| 1374 |
+
231,
|
| 1375 |
+
266,
|
| 1376 |
+
246
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 10
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "[1] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. “ImageNet large scale visual recognition challenge.” International Journal of Computer Vision 115.3 (2015), pp. 211–252. \n[2] G. E. Hinton and R. R. Salakhutdinov. “Reducing the dimensionality of data with neural networks.” Science 313.5786 (2006), pp. 504–507. \n[3] P. Vincent, H. Larochelle, I. Lajoie, Y. Bengio, P.-A. Manzagol, and L. Bottou. “Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion.” Journal of Machine Learning Research 11.12 (2010). \n[4] A. Coates and A. Y. Ng. “Learning feature representations with k-means.” Neural networks: Tricks of the trade. Springer, 2012, pp. 561–580. \n[5] I. Higgins, L. Matthey, A. Pal, C. Burgess, X. Glorot, M. Botvinick, S. Mohamed, and A. Lerchner. “beta-VAE: Learning basic visual concepts with a constrained variational framework.” ICLR. 2016. \n[6] A. van den Oord, O. Vinyals, and K. Kavukcuoglu. “Neural Discrete Representation Learning.” NeurIPS. 2017. arXiv: 1711.00937. \n[7] W. Grathwohl, R. T. Q. Chen, J. Bettencourt, and D. Duvenaud. “Scalable Reversible Generative Models with Free-form Continuous Dynamics.” ICLR. 2019. arXiv: 1810.01367. \n[8] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. “Language Models are Few-Shot Learners.” NeurIPS. 2020. arXiv: 2005.14165. \n[9] C. Doersch, A. Gupta, and A. A. Efros. “Unsupervised Visual Representation Learning by Context Prediction.” ICCV. 2015. arXiv: 1505.05192. \n[10] G. Larsson, M. Maire, and G. Shakhnarovich. “Learning representations for automatic colorization.” ECCV. Springer. 2016, pp. 577–593. \n[11] M. Noroozi and P. Favaro. “Unsupervised learning of visual representations by solving jigsaw puzzles.” ECCV. Springer. 2016, pp. 69–84. \n[12] D. Pathak, P. Krahenbuhl, J. Donahue, T. Darrell, and A. A. Efros. “Context encoders: Feature learning by inpainting.” CVPR. 2016, pp. 2536–2544. \n[13] R. Zhang, P. Isola, and A. A. Efros. “Colorful image colorization.” ECCV. Springer. 2016, pp. 649–666. \n[14] S. Gidaris, P. Singh, and N. Komodakis. “Unsupervised representation learning by predicting image rotations.” ICLR. 2018. arXiv: 1803.07728. \n[15] A. van den Oord, Y. Li, and O. Vinyals. “Representation learning with contrastive predictive coding.” 2018. arXiv: 1807.03748. \n[16] P. Bachman, R. D. Hjelm, and W. Buchwalter. “Learning representations by maximizing mutual information across views.” NeurIPS. 2019. arXiv: 1906.00910. \n[17] K. He, H. Fan, Y. Wu, S. Xie, and R. B. Girshick. “Momentum Contrast for Unsupervised Visual Representation Learning.” CVPR. 2019. arXiv: 1911.05722. \n[18] M. Caron, I. Misra, J. Mairal, P. Goyal, P. Bojanowski, and A. Joulin. “Unsupervised learning of visual features by contrasting cluster assignments.” NeurIPS. 2020. arXiv: 2006.09882. \n[19] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton. “A Simple Framework for Contrastive Learning of Visual Representations.” ICML. 2020. arXiv: 2002.05709. \n[20] X. Chen, H. Fan, R. B. Girshick, and K. He. “Improved Baselines with Momentum Contrastive Learning.” 2020. arXiv: 2003.04297. \n[21] O. Henaff. “Data-efficient image recognition with contrastive predictive coding.” ICML. 2020. arXiv: 1905.09272. \n[22] J. Zbontar, L. Jing, I. Misra, Y. LeCun, and S. Deny. “Barlow Twins: Self-Supervised Learning via Redundancy Reduction.” 2021. arXiv: 2103.03230. \n[23] T. Wang and P. Isola. “Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere.” 2020. arXiv: 2005.10242. \n[24] X. Chen and K. He. “Exploring Simple Siamese Representation Learning.” 2020. arXiv: 2011.10566. \n[25] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. H. Richemond, E. Buchatskaya, C. Doersch, B. A. Pires, Z. D. Guo, M. G. Azar, B. Piot, K. Kavukcuoglu, R. Munos, and M. Valko. “Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning.” NeurIPS. 2020. arXiv: 2006.07733. \n[26] A. Gretton, O. Bousquet, A. Smola, and B. Schölkopf. “Measuring statistical dependence with Hilbert-Schmidt norms.” ALT. Springer. 2005, pp. 63–77. \n[27] K. W.-D. Ma, J. P. Lewis, and W. B. Kleijn. “The HSIC Bottleneck: Deep Learning without Back-Propagation.” AAAI. 2020. \n[28] R. Pogodin and P. Latham. “Kernelized information bottleneck leads to biologically plausible 3-factor Hebbian learning in deep networks.” NeurIPS (2020). \n[29] N. Tishby and N. Zaslavsky. “Deep Learning and the Information Bottleneck Principle.” IEEE Information Theory Workshop. 2015. arXiv: 1503.02406. \n[30] M. Tschannen, J. Djolonga, P. K. Rubenstein, S. Gelly, and M. Lucic. “On mutual information maximization for representation learning.” ICLR. 2020. arXiv: 1907.13625. \n[31] I. Belghazi, S. Rajeswar, A. Baratin, R. D. Hjelm, and A. C. Courville. “MINE: Mutual Information Neural Estimation.” ICML. 2018. arXiv: 1801.04062. \n[32] B. Poole, S. Ozair, A. van den Oord, A. A. Alemi, and G. Tucker. “On Variational Bounds of Mutual Information.” ICML. 2019. arXiv: 1905.06922. \n[33] A. Rahimi and B. Recht. “Random Features for Large-Scale Kernel Machines.” NeurIPS. 2007. \n[34] T. Chen, S. Kornblith, K. Swersky, M. Norouzi, and G. Hinton. “Big Self-Supervised Models are Strong Semi-Supervised Learners.” NeurIPS. 2020. arXiv: 2006.10029. \n[35] Y.-H. H. Tsai, S. Bai, L.-P. Morency, and R. Salakhutdinov. “A note on connecting barlow twins with negative-sample-free contrastive learning.” arXiv preprint arXiv:2104.13712 (2021). \n[36] T. Chen and L. Li. “Intriguing Properties of Contrastive Losses.” 2020. arXiv: 2011.02803. \n[37] Z. Szabó and B. K. Sriperumbudur. “Characteristic and Universal Tensor Product Kernels.” Journal of Machine Learning Research 18.233 (2018), pp. 1–29. \n[38] A. Gretton, K. Fukumizu, C. H. Teo, L. Song, B. Schölkopf, and A. J. Smola. “A kernel statistical test of independence.” NeurIPS. 2007. \n[39] L. Song, A. Smola, A. Gretton, J. Bedo, and K. Borgwardt. “Feature selection via dependence maximization.” Journal of Machine Learning Research 13.5 (2012). \n[40] L. Song, A. Smola, A. Gretton, and K. M. Borgwardt. “A Dependence Maximization View of Clustering.” ICML. 2007. \n[41] M. B. Blaschko and A. Gretton. “Learning Taxonomies by Dependence Maximization.” NeurIPS. 2009. \n[42] S. Jain, G. Liu, and D. Gifford. “Information Condensing Active Learning.” 2020. arXiv: 2002.07916. \n[43] D. Wu, Y. Zhao, Y.-H. H. Tsai, M. Yamada, and R. Salakhutdinov. “‘Dependency Bottleneck’ in Auto-encoding Architectures: an Empirical Study.” 2018. arXiv: 1802.05408. \n[44] A. Nøkland and L. H. Eidnes. “Training neural networks with local error signals.” ICML. 2019. arXiv: 1901.06656. \n[45] M. B. Blaschko, W. Zaremba, and A. Gretton. “Taxonomic Prediction with Tree-Structured Covariances.” Machine Learning and Knowledge Discovery in Databases. Springer Berlin Heidelberg, 2013, pp. 304–319. \n[46] based and RKHS-based statistics in hypothesis testing.” The Annals of Statistics 41.5 (2013), pp. 2263–2291. \n[47] G. J. Székely, M. L. Rizzo, and N. K. Bakirov. “Measuring and testing dependence by correlation of distances.” The Annals of Statistics 35.6 (2007), pp. 2769–2794. \n[48] N. Cristianini, J. Shawe-Taylor, A. Elisseeff, and J. Kandola. “On Kernel-Target Alignment.” NeurIPS. Vol. 14. 2002. \n[49] C. Cortes, M. Mohri, and A. Rostamizadeh. “Algorithms for learning kernels based on centered alignment.” The Journal of Machine Learning Research 13.1 (2012), pp. 795–828. \n[50] R. S. Zimmermann, Y. Sharma, S. Schneider, M. Bethge, and W. Brendel. “Contrastive Learning Inverts the Data Generating Process.” 2021. arXiv: 2102.08850. \n[51] H. Zha, X. He, C. Ding, M. Gu, and H. D. Simon. “Spectral relaxation for $\\mathbf { k }$ -means clustering.” NeurIPS. 2001, pp. 1057–1064. \n[52] Y. You, I. Gitman, and B. Ginsburg. “Scaling SGD Batch Size to 32K for ImageNet Training.” 2017. arXiv: 1708.03888. \n[53] P. Goyal, P. Dollár, R. B. Girshick, P. Noordhuis, L. Wesolowski, A. Kyrola, A. Tulloch, Y. Jia, and K. He. “Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour.” 2017. arXiv: 1706.02677. \n[54] X. Zhai, A. Oliver, A. Kolesnikov, and L. Beyer. ${ } ^ { \\cdot } \\mathrm { s } ^ { 4 } \\mathrm { L }$ : Self-Supervised Semi-Supervised Learning.” ICCV. 2019. arXiv: 1905.03670. \n[55] L. Fei-Fei, R. Fergus, and P. Perona. “Learning Generative Visual Models from Few Training Examples: An Incremental Bayesian Approach Tested on 101 Object Categories.” CVPR Workshop. 2004. \n[56] M.-E. Nilsback and A. Zisserman. “Automated flower classification over a large number of classes.” 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing. IEEE. 2008, pp. 722–729. \n[57] A. Krizhevsky. “Learning multiple layers of features from tiny images.” 2009. URL: https: //www.cs.toronto.edu/\\~kriz/learning-features-2009-TR.pdf. \n[58] M. Everingham, L. Van Gool, C. K. Williams, J. Winn, and A. Zisserman. “The Pascal visual object classes (VOC) challenge.” IJCV 88.2 (2010), pp. 303–338. \n[59] J. Xiao, J. Hays, K. A. Ehinger, A. Oliva, and A. Torralba. “SUN database: Large-scale scene recognition from abbey to zoo.” CVPR. 2010. \n[60] O. M. Parkhi, A. Vedaldi, A. Zisserman, and C. V. Jawahar. “Cats and Dogs.” CVPR. 2012. \n[61] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, and A. Vedaldi. “Describing Textures in the Wild.” CVPR. 2013. arXiv: 1311.3618. \n[62] J. Krause, J. Deng, M. Stark, and L. Fei-fei. “Collecting a large-scale dataset of fine-grained cars. The Second Workshop on Fine-Grained Visual Categorization.” 2013. \n[63] L. Bossard, M. Guillaumin, and L. Van Gool. “Food-101–mining discriminative components with random forests.” ECCV. Springer. 2014, pp. 446–461. \n[64] S. Maji, E. Rahtu, J. Kannala, M. B. Blaschko, and A. Vedaldi. “Fine-Grained Visual Classification of Aircraft.” arXiv: 1306.5151. \n[65] S. Kornblith, J. Shlens, and Q. V. Le. “Do Better ImageNet Models Transfer Better?” CVPR. 2019. arXiv: 1805.08974. \n[66] N. Silberman, D. Hoiem, P. Kohli, and R. Fergus. “Indoor Segmentation and Support Inference from RGBD Images.” ECCV. 2012. \n[67] T.-Y. Lin, M. Maire, S. J. Belongie, L. D. Bourdev, R. B. Girshick, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. “Microsoft COCO: Common Objects in Context.” ECCV. 2014. arXiv: 1405.0312. \n[68] K. Yang, K. Qinami, L. Fei-Fei, J. Deng, and O. Russakovsky. “Towards fairer datasets: Filtering and balancing the distribution of the people subtree in the imagenet hierarchy.” Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency. 2020, pp. 547–558. \n[69] Y. Asano, C. Rupprecht, A. Zisserman, and A. Vedaldi. “PASS: An ImageNet replacement for self-supervised pretraining without humans” (2021). \n[70] D. Hendrycks, M. Mazeika, S. Kadavath, and D. Song. “Using self-supervised learning can improve model robustness and uncertainty.” arXiv preprint arXiv:1906.12340 (2019). \n[71] A. Sablayrolles, M. Douze, C. Schmid, Y. Ollivier, and H. Jégou. “White-box vs black-box: Bayes optimal strategies for membership inference.” International Conference on Machine Learning. PMLR. 2019, pp. 5558–5567. \n[72] D. Yu, H. Zhang, W. Chen, J. Yin, and T.-Y. Liu. “How Does Data Augmentation Affect Privacy in Machine Learning?” Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 35. 12. 2021, pp. 10746–10753. \n[73] L. Grafakos. Classical Fourier Analysis. Vol. 2. Springer, 2008. \n[74] R. Piessens. “The Hankel transform.” The Transforms and Applications Handbook 2.9 (2000). \n[75] F. Johansson et al. mpmath: a Python library for arbitrary-precision floating-point arithmetic (version 0.18). http://mpmath.org/. 2013. \n[76] J. Long, E. Shelhamer, and T. Darrell. “Fully Convolutional Networks for Semantic Segmentation.” CVPR. 2015. arXiv: 1411.4038. \n[77] O. J. Hénaff, S. Koppula, J.-B. Alayrac, A. van den Oord, O. Vinyals, and J. Carreira. “Efficient Visual Pretraining with Contrastive Detection.” 2021. arXiv: 2103.10957. \n[78] K. He, G. Gkioxari, P. Dollár, and R. B. Girshick. “Mask R-CNN.” ICCV. 2017. arXiv: 1703.06870. \n[79] T.-Y. Lin, P. Dollár, R. B. Girshick, K. He, B. Hariharan, and S. J. Belongie. “Feature Pyramid Networks for Object Detection.” CVPR. 2017. arXiv: 1612.03144. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
174,
|
| 1385 |
+
250,
|
| 1386 |
+
826,
|
| 1387 |
+
906
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 10
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
171,
|
| 1396 |
+
99,
|
| 1397 |
+
828,
|
| 1398 |
+
898
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 11
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
171,
|
| 1407 |
+
102,
|
| 1408 |
+
828,
|
| 1409 |
+
895
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 12
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
171,
|
| 1418 |
+
90,
|
| 1419 |
+
828,
|
| 1420 |
+
391
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 13
|
| 1423 |
+
}
|
| 1424 |
+
]
|
parse/train/0HW7A5YZjq7/0HW7A5YZjq7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/0HW7A5YZjq7/0HW7A5YZjq7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/3ccoZ40Us0N/3ccoZ40Us0N.md
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CLIP-It! Language-Guided Video Summarization
|
| 2 |
+
|
| 3 |
+
Medhini Narasimhan Anna Rohrbach Trevor Darrell
|
| 4 |
+
|
| 5 |
+
University of California, Berkeley {medhini, anna.rohrbach, trevordarrell}@berkeley.edu https://medhini.github.io/clip_it
|
| 6 |
+
|
| 7 |
+

|
| 8 |
+
Figure 1: We introduce CLIP-It, a language-guided multimodal transformer for generic and query-focused video summarization. The figure shows results from our method. Given a day-long video of a national park tour, the generic summary (top) is a video with relevant and diverse keyframes. When using the query “All the scenes containing restaurants and shopping centers”, the generated query-focused summary includes all the matching scenes. Similarly, the query “All water bodies such as lakes, rivers, and waterfalls”, yields a short summary containing all the water bodies present in the video.
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
A generic video summary is an abridged version of a video that conveys the whole story and features the most important scenes. Yet the importance of scenes in a video is often subjective, and users should have the option of customizing the summary by using natural language to specify what is important to them. Further, existing models for fully automatic generic summarization have not exploited available language models, which can serve as an effective prior for saliency. This work introduces CLIP-It, a single framework for addressing both generic and queryfocused video summarization, typically approached separately in the literature. We propose a language-guided multimodal transformer that learns to score frames in a video based on their importance relative to one another and their correlation with a user-defined query (for query-focused summarization) or an automatically generated dense video caption (for generic video summarization). Our model can be extended to the unsupervised setting by training without ground-truth supervision. We outperform baselines and prior work by a significant margin on both standard video summarization datasets (TVSum and SumMe) and a query-focused video summarization dataset (QFVS). Particularly, we achieve large improvements in the transfer setting, attesting to our method’s strong generalization capabilities.
|
| 13 |
+
|
| 14 |
+
# 1 Introduction
|
| 15 |
+
|
| 16 |
+
An effective video summary captures the essence of the video and provides a quick overview as an alternative to viewing the whole video; it should be succinct yet representative of the entire video. Summarizing videos has many use cases - for example, viewers on YouTube may want to watch a short summary of the video to assess its relevance. While a generic summary is useful for capturing the important scenes in a video, it is even more practical if the summary can be customized by the user. As seen in Fig. 1, users should be able to indicate the concepts of the video they would like to see in the summary using natural language queries.
|
| 17 |
+
|
| 18 |
+
Generic video summarization datasets such as TVSum [36] and SumMe [7] provide ground-truth annotations in the form of frame or shot-level importance scores specified by multiple annotators. Several learning-based methods reduce the task to a frame-wise score prediction problem. Sequence labeling methods [5, 42, 43, 44, 18] model variable-range dependencies between frames but fail to capture relationships across all frames simultaneously. While attention [3] and graph based [26] methods address this partly, they disregard ordering of the input frames which is useful when predicting scores. Moreover, these methods use only visual cues to produce the summaries and cannot be customized with a natural language input. Another line of work, query-focused video summarization [32], allows the users to customize the summary by specifying a query containing two concepts (eg., food and drinks). However, in their work the query can only be chosen from a fixed set of predefined concepts which limits the flexibility for the user.
|
| 19 |
+
|
| 20 |
+
It is important to note that efforts in generic and query-focused video summarization have so far been disjoint, with no single method for both. Our key innovation is to unify these tasks in one language-guided framework. We introduce CLIP-It, a multimodal summarization model which takes two inputs, a video and a natural language text, and synthesizes a summary video conditioned on the text. In case of generic video summarization, the natural language text is a video description obtained using an off-the-shelf dense video captioning method. Alternatively, in the case of query-focused video summarization, the language input is a user-defined query. Unlike existing generic methods which only use visual cues, we show that adding language as an input leads to the “discovery” of relevant concepts and actions resulting in better summaries. Our method uses a Transformer with positional encoding, which can attend to all frames at once (unlike LSTM based methods) and also keep track of the ordering of frames (unlike graph based methods). In contrast to existing query-focused methods [32] which only allow keyword based queries, we aim to enable open-ended natural language queries for users to customize video summaries. For example, as seen in Fig. 1, using our method users can specify long and descriptive queries such as, “All water bodies such as lakes, rivers, and waterfalls” which is not possible with previous methods.
|
| 21 |
+
|
| 22 |
+
Given an input video, CLIP-It generates a video summary guided by either a user-defined natural language query or a system generated description. It uses a Language-Guided Attention head to compute a joint representation of the image and language embeddings, and a Frame-Scoring Transformer to assign scores to individual frames in the video using the fused representations. Following [43, 42], the summary video is constructed from high scoring frames by converting framelevel scores to shot-level scores and using knapsack algorithm to fit the maximum number of high scoring shots in a timed window. Fig. 1 shows an output from our method. Given an hour long video of a national park tour, we generate a 2 minute generic summary comprising of all the important scenes in the video. Given the two language queries, our method picks the matching keyframes in both cases. We can train CLIP-It without ground-truth supervision by leveraging the reconstruction and diversity losses [9, 31]. For generic video summarization, we evaluate our approach on the standard benchmarks, TVSum and SumMe. We achieve performance improvement on F1 score of nearly $3 \%$ in the supervised setting and $4 \%$ in the unsupervised setting on both datasets. We show large gains $( 5 \% )$ in the Transfer setting, where CLIP-It is trained and evaluated on disjoint sets of data. For the queryfocused scenario we evaluate on the QFVS dataset [33], where we also achieve state-of-the-art results.
|
| 23 |
+
|
| 24 |
+
To summarize our contributions, we introduce CLIP-It, a language-guided model that unifies generic and query-focused video summarization. Our approach uses language conditioning in the form of off-the-shelf video descriptions (for generic summarization) or user-defined natural language queries (for query-focused summarization). We show that the Transformer design enables effective contextualization across frames, benefiting our tasks. We also demonstrate the impact of language guidance on generic summarization. Finally, we establish the new state-of-the-art on both generic and query-focused datasets in supervised and unsupervised settings.
|
| 25 |
+
|
| 26 |
+
# 2 Related Work
|
| 27 |
+
|
| 28 |
+
Generic Video Summarization. A video summary is a short synopsis created by stitching together important clips from the original video. Early works [21, 35, 34] referred to it as Video Skimming or Dynamic Video Summarization and used hand-designed features to generate summaries. Likewise, non-parametric unsupervised methods [13, 16, 23, 19, 20, 28] used various heuristics to represent the importance of frames. Introduction of benchmark datasets such as TVSum [36] and SumMe [7] provided relevance scores for frames in videos annotated by users, resulting in multiple human generated summaries. This enabled automatic evaluation of video summarization techniques and has lead to the development of many supervised learning based methods [6, 8, 22, 26, 31, 30, 41, 42, 43, 44, 45]. These approaches capture high-level semantic information and outperform the heuristic unsupervised methods. Fully convolutional sequence networks [31] treat video summarization as a binary label prediction problem. Determinantal point processes [15] and LSTM [10] based approaches [5, 18, 42, 43, 44] model variable-range dependencies between frames. However, these are sequential and fail to capture relationships across all frames simultaneously. Attention [3] and graph based methods [26] address this issue by modeling relationships across all frames, but they disregard the ordering of frames in a video, which is also useful for summarization. Our method uses a Transformer [38] with positional encoding, which allows for joint attention across all frames while maintaining an ordering of the input sequence of frames.
|
| 29 |
+
|
| 30 |
+
Some of the above works have supervised and unsupervised variants with modifications to the objective function. Specifically, for the unsupervised variant, they use reconstruction and diversity losses which do not require ground truth. We follow prior work in terms of using the same loss functions. Other notable unsupervised approaches include an adversarial LSTM based method [22], a generative adversarial network to learn from unpaired data [30], and a cycle consistent learning objective [41].
|
| 31 |
+
|
| 32 |
+
Video-Text Summarization. Plummer et al. [27] use image-language embeddings for generating video summaries but evaluate their approach in the text domain, and not on the generic video summarization benchmarks. Furthermore, they require text to be provided as input and don’t have a mechanism to generate captions if absent. On the other hand, our method works well with off-theshelf captions and we evaluate on both generic and query-focused benchmark datasets. Chen et al. [1] jointly train a text and video summarization network but rely on ground-truth text summaries.
|
| 33 |
+
|
| 34 |
+
Query-Focused Video Summarization. Oftentimes users browsing videos on YouTube are looking for something specific so a generic summary might not suffice. In this case, there should be an option to customize the generated summary using a natural language query. Sharghi et al. [32] introduce the Query-Focused Video Summarization (QFVS) dataset for UT Egocentric [16] videos containing user-defined video summaries for a set of pre-defined concepts. Sharghi et al. [33] propose a memory network to attend over different video frames and shots with the user query as input. However, this recurrent attention mechanism precludes parallelization and limits modeling long-range dependencies, which is overcome by our Transformer architecture. Moreover, their method only works with the pre-defined set of keyword based queries in QFVS dataset. Since we use CLIP [29] to encode the language input and train our method on dense video descriptions, this allows users to define freeform queries at test time (as seen in Fig. 1). Other works [12, 39] similarly condition the summary generation on keyword based queries but haven’t released their data.
|
| 35 |
+
|
| 36 |
+
Transformers. Transformers [38] were introduced for neural machine translation and have since been applied to video-language tasks such as video-retrieval [4] and video captioning [17, 48]. In this work we adapt transformers for video summarization. We modify self-attention [38] to a LanguageGuided Attention block that accepts inputs from two modalities. Additionally, our method also relies on CLIP [29] for extracting image and text features and a Bi-Modal Transformer [11] for dense video caption generation, both of which also have transformer backbone.
|
| 37 |
+
|
| 38 |
+
# 3 CLIP-It: Language-Guided Video Summarization
|
| 39 |
+
|
| 40 |
+
CLIP-It is a unified language-guided framework for both generic and query-focused video summarization. It takes an input video and a user-defined query or a system generated dense video caption and constructs a summary by selecting key frames from the video. First, we explain the intuition behind our approach. In the case of query-focused summarization, clearly, it is necessary to model the user query as input in order to produce an appropriate summary. In the case of generic video summarization no user query is available; nonetheless, we show here that we can leverage the semantic information contained in associated natural language descriptions to guide the summarization process. Assuming we had a generic description that accompanies a video (e.g., A person is walking a dog. The person throws a ball. The dog runs after it.), we could leverage its semantic embedding to match $i t$ to the most relevant portions of the video. Such a description could be obtained automatically by generating dense video captions [11]. We first present an overview of our approach, CLIP-It, followed by a detailed description of the individual components.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: Overview of CLIP-It. Given an input video, CLIP-It generates a summary conditioned on either a user-defined natural language query or an automatically generated dense video caption. The Language-Guided Attention head fuses the image and language embeddings and the Frame-Scoring Transformer jointly attends to all frames to predict their relevance scores. During inference, the video summary is constructed by converting frame scores to shot scores and using Knapsack algorithm to select high scoring shots.
|
| 44 |
+
|
| 45 |
+
Overview. Our approach, CLIP-It, is outlined in $\mathrm { F i g } 2$ . Given a video, we extract $N$ frames denoted by $F _ { i }$ , $i \in [ 1 , \dots \bar { N } ]$ . We formulate the video summarization task as a per-frame binary classification problem. We embed the frames using a pretrained network $f _ { i m g }$ . If a query is provided (in the form of a natural language string), we embed the query using a pretrained network $f _ { t x t }$ . Alternatively, as seen in the figure, we use an off-the-shelf video captioning model to generate a dense video caption with $M$ sentences denoted by $C _ { j }$ , $j \in [ 1 , \bar { \dots { M } } ]$ and embed each sentence using the pretrained network $f _ { t x t }$ . Next, we compute language attended image embeddings $I ^ { * }$ using learned Language-Guided Multi-head Attention $f _ { i m g \_ t x t } ^ { * }$ . Finally, we train a Frame-Scoring Transformer which assigns scores to each frame in the video (green indicating a high score and red indicating a low score). To construct the video summary during inference, we convert frame-level scores to shot-level scores and finally, use 0/1 knapsack algorithm to pick the key shots [43]. In the following, we describe the Language-Guided Attention and the Frame-Selection Transformer modules, followed by discussing the visual and language encoders.
|
| 46 |
+
|
| 47 |
+
Language-Guided Attention. We use Language-Guided Multi-head Attention to efficiently fuse information across the video and language modalities and to infer long-term dependencies across both. Using a single attention head does not suffice as our goal is to allow all captions to attend to all frames in the video. We modify the Multi-Head Attention described in Vaswani et al. [38] to take in inputs from both modalities. We set Query $Q$ , Key $K$ , and Value $V$ as follows,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\begin{array} { c } { { \therefore , \nu \ - \jmath \iota x \iota \mathrm { ( } \mathrm { V } _ { \mathcal { I } } \mathrm { ) , ~ } \mathrm { w a n g e - } \mathrm { G u i d e d ~ A t t n . } ( Q , K , V ) = \mathrm { C o n c a t ( h e a d _ 1 , } . . . , \mathrm { h e a d _ h } ) W ^ { O } , } } \\ { { \mathrm { L a n g u a g e - } \mathrm { G u i d e d ~ A t t n . } ( Q , K , V ) = \mathrm { C o n c a t ( h e a d _ 1 , } . . . , \mathrm { h e a d _ h } ) W ^ { O } , } } \\ { { \mathrm { w h e r e ~ h e a d _ i = A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } } \\ { { \mathrm { a n d ~ A t t e n t i o n } ( Q , K , V ) = \mathrm { s o f m a x } ( \displaystyle \frac { Q K ^ { T } } { \sqrt { d _ { k } } } ) V } } \end{array}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
$\it { W _ { i } ^ { Q } }$ , $W _ { i } ^ { K }$ , and $W _ { i } ^ { V }$ are learned parameter matrices and $d _ { k }$ is the dimensions of $K$ . The output of the Language-Guided Multi-Head Attention are the attended image embeddings, denoted as $F _ { i } ^ { ' }$ .
|
| 54 |
+
|
| 55 |
+
Frame-Scoring Transformer. Finally, it is also important to ensure that we do not include redundant information, e.g., several key shots from the same event. To better model interactions across frames and contextualize them w.r.t. each other, we add a Frame-Scoring Transformer that takes image-text representations as input and outputs one score per frame. Based on the Transformer model [38], this module assigns relevance scores to the attended image embeddings $F _ { i } ^ { ' }$ . We feed $F _ { i } ^ { ' }$ to the bottom of both the encoder and decoder stacks. Similar to [38], we use positional encoding to insert information about the relative positions of the tokens in the sequence. We add positional encodings to the input embeddings at the bottom of the encoder and decoder stacks.
|
| 56 |
+
|
| 57 |
+
Image Encoding. We encode the image using a pre-trained network $f _ { i m g }$ . We experiment with the following networks: GoogleNet [37] (for a fair comparison to prior work), ResNet [8], and CLIP [29].
|
| 58 |
+
|
| 59 |
+
Text Encoding. We encode the user-defined query or the system generated dense caption using a pre-trained network $f _ { t x t }$ . In this case we tried the CLIP (ViT and RN101) model. In case of generic video summarization, we generate dense video captions for the whole video in order to condition on language and incorporate added semantics into our video summarization pipeline. We use the Bi-Modal Transformer [11] dense video captioning model that generates a multi-sentence description given a video with audio. Since there are multiple sentences in the dense video caption, we first embed each sentence of the caption using the text encoder $f _ { t x t }$ described above. They are then concatenated and fused using a multi-layer perceptron (MLP).
|
| 60 |
+
|
| 61 |
+
# 3.1 Learning
|
| 62 |
+
|
| 63 |
+
We employ 3 loss functions (classification, diversity, and reconstruction) to train our model. The supervised setting uses all 3 and the unsupervised setting uses only diversity and reconstruction losses.
|
| 64 |
+
|
| 65 |
+
Classification loss. We use a weighted binary cross entropy loss for classifying each frame:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\mathcal { L } _ { c } = - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } w ^ { * } [ x _ { i } ^ { * } \mathrm { l o g } ( x _ { i } ) ] + ( 1 - w ^ { * } ) [ ( 1 - x _ { i } ^ { * } ) \mathrm { l o g } ( 1 - x _ { i } ) ] ,
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $\boldsymbol { x } _ { i } ^ { * }$ is the ground-truth label of the $i$ -th frame and $N$ is the total number of frames in the $w ^ { * }$ weif ht assigned to the class is a background frame $\boldsymbol { x } _ { i } ^ { * }$ , which is set to $\frac { \# k e y f r a m e s } { N }$ if $\boldsymbol { x } _ { i } ^ { * }$ is a keyframe and $1 - { \frac { \# k e y f r a m e s } { N } }$ $\boldsymbol { x } _ { i } ^ { * }$
|
| 72 |
+
|
| 73 |
+
For the purpose of training without any supervision, we employ two additional losses that enforce diversity in the selected keyframes. We first select keyframes $X$ based on the scores assigned by the Frame-Scoring Transformer. We pass the output features of the transformer model for the selected keyframes through a decoder network consisting of $1 \times 1$ convolution layers to obtain reconstructed feature vectors for the selected keyframes such that each keyframe feature vector is of the same dimension as its corresponding input frame-level feature vector.
|
| 74 |
+
|
| 75 |
+
Reconstruction Loss. The reconstruction loss $\mathcal { L } _ { r }$ is defined as the mean squared error between the reconstructed features and the original features corresponding to the selected keyframes, such that:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\mathcal { L } _ { r } = \frac { 1 } { X } \sum _ { i \in X } | | \mathbf { x } _ { i } - \hat { \mathbf { y } } _ { i } | | _ { 2 } ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $\hat { \mathbf { y } }$ denotes the reconstructed features.
|
| 82 |
+
|
| 83 |
+
Diversity Loss. We employ a repelling regularizer [45] to enforce diversity among selected keyframes. Similar to [31, 30], we compute the diversity loss, $\mathcal { L } _ { d }$ , as the pairwise cosine similarity between the selected keyframes:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathcal { L } _ { d } = \frac { 1 } { X ( X - 1 ) } \sum _ { i \in X } \sum _ { j \in X , j \neq i } \frac { \hat { \mathbf { y } } _ { i } \cdot \hat { \mathbf { y } } _ { j } } { \vert \vert \hat { \mathbf { y } } _ { i } \vert \vert _ { 2 } \cdot \vert \vert \hat { \mathbf { y } } _ { j } \vert \vert _ { 2 } } ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\hat { \mathbf { y } } _ { i }$ and $\hat { \mathbf { y } _ { j } }$ denote the reconstructed feature vectors of the $i$ -th and $j$ -th node.
|
| 90 |
+
|
| 91 |
+
The final loss function for supervised learning is then,
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\mathcal { L } _ { s u p } = \alpha \cdot \mathcal { L } _ { c } + \beta \cdot \mathcal { L } _ { d } + \lambda \cdot \mathcal { L } _ { r } ,
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $\alpha , \beta ,$ , and $\lambda$ control the trade-off between the three loss functions. We modify the loss function to extend CLIP-It to the unsupervised video summarization setting. We omit $\mathcal { L } _ { c }$ since the groundtruth summary cannot be used for supervision and represent the final loss function for unsupervised learning as:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\mathcal { L } _ { u n s u p } = \beta \cdot \mathcal { L } _ { d } + \lambda \cdot \mathcal { L } _ { r } ,
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $\beta$ and $\lambda$ are balancing parameters to control the trade-off between the two terms. We include implementation details of our method in the Supp.
|
| 104 |
+
|
| 105 |
+
Table 1: Supervised. Comparing F1 Scores of our methods with supervised baselines on the SumMe [7] and TVSum [36] datasets using Standard, Augment, and Transfer data configurations.
|
| 106 |
+
|
| 107 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">SumMe</td><td colspan="3">TVSum</td></tr><tr><td>Standard AugmentTransfer Standard AugmentTransfer</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Zhang et al. (SumTransfer) [42]</td><td>40.9</td><td>41.3</td><td>38.5</td><td>-</td><td>=</td><td>1</td></tr><tr><td>Zhang et al. (LSTM) [43]</td><td>38.6</td><td>42.9</td><td>41.8</td><td>54.7</td><td>59.6</td><td>58.7</td></tr><tr><td>Mahasseni et al. (SUM-GANsup) [22]</td><td>41.7</td><td>43.6</td><td>-</td><td>56.3</td><td>61.2</td><td>=</td></tr><tr><td>Rochan et al. (SUM-FCN) [31]</td><td>47.5</td><td>51.1</td><td>44.1</td><td>56.8</td><td>59.2</td><td>58.2</td></tr><tr><td>Rochan et al. (SUM-DeepLab) [31]</td><td>48.8</td><td>50.2</td><td>45.0</td><td>58.4</td><td>59.1</td><td>57.4</td></tr><tr><td>Zhou et al. [47]</td><td>42.1</td><td>43.9</td><td>42.6</td><td>58.1</td><td>59.8</td><td>58.9</td></tr><tr><td> Zhang et al. [44]</td><td>=</td><td>44.9</td><td>1</td><td>=</td><td>63.9</td><td>1</td></tr><tr><td>Fajtl et al. [3]</td><td>49.7</td><td>51.1</td><td>-</td><td>61.4</td><td>62.4</td><td>1</td></tr><tr><td>Rochan et al. [30]</td><td>1</td><td>48.0</td><td>41.6</td><td></td><td>56.1</td><td>55.7</td></tr><tr><td>Chen et al. (V2TS) [1]</td><td>-</td><td>1</td><td>1</td><td>62.1</td><td>1</td><td>1</td></tr><tr><td>He et al. [9]</td><td>47.2</td><td>-</td><td>-</td><td>59.4</td><td>-</td><td>-</td></tr><tr><td>Park et al. (SumGraph) [26]</td><td>51.4</td><td>52.9</td><td>48.7</td><td>63.9</td><td>65.8</td><td>60.5</td></tr><tr><td>GoogleNet+bi-LSTM</td><td>38.5</td><td>42.4</td><td>40.7</td><td>53.9</td><td>59.6</td><td>58.6</td></tr><tr><td>ResNet+bi-LSTM</td><td>39.4</td><td>44.0</td><td>42.6</td><td>55.0</td><td>61.0</td><td>59.9</td></tr><tr><td>CLIP-Image+bi-LSTM</td><td>41.1</td><td>45.9</td><td>44.9</td><td>56.8</td><td>63.7</td><td>61.6</td></tr><tr><td>CLIP-Image+Video Caption+bi-LSTM</td><td>41.2</td><td>46.1</td><td>45.5</td><td>57.1</td><td>64.3</td><td>62.4</td></tr><tr><td>GoogleNet+Transformer</td><td>51.6</td><td>53.5</td><td>49.4</td><td>64.2</td><td>66.3</td><td>61.3</td></tr><tr><td>ResNet+Transformer</td><td>52.8</td><td>54.9</td><td>50.3</td><td>65.0</td><td>67.5</td><td>62.8</td></tr><tr><td>CLIP-Image+Transformer</td><td>53.5</td><td>55.3</td><td>51.0</td><td>65.5</td><td>68.1</td><td>63.4</td></tr><tr><td>CLIP-It: CLIP-Image+Video Caption+Transformer</td><td>54.2</td><td>56.4</td><td>51.9</td><td>66.3</td><td>69.0</td><td>65.5</td></tr></table>
|
| 108 |
+
|
| 109 |
+
# 4 Experiments
|
| 110 |
+
|
| 111 |
+
In this section, we describe the experimental setup and evaluation of our method on two tasks: generic video summarization and query-focused video summarization.
|
| 112 |
+
|
| 113 |
+
# 4.1 Generic Video Summarization
|
| 114 |
+
|
| 115 |
+
Generic video summarization involves generating a single general-purpose summary to describe the input video. Note that while prior works only use visual cues from the video, our method also allows for video captions as an input feature. For a fair comparison, we include ablations of our method that do not use any language cues and only the visual features used in earlier works [43].
|
| 116 |
+
|
| 117 |
+
Datasets. We evaluate our approach on two standard video summarization datasets (TVSum [36] and SumMe [7]) and on the generic summaries for UT Egocentric videos [16] provided by the QFVS dataset [33]. TVSum [36] consists of 50 videos pertaining to 10 categories (how to videos, news, documentary, etc) with 5 videos from each category, typically 1-5 minutes in length. SumMe [7] consists of 25 videos capturing multiple events such as cooking and sports, and the lengths of the videos vary from 1 to 6 minutes. In addition to training on each dataset independently, we follow prior work and augment training data with 39 videos from the YouTube dataset [2] and 50 videos from the Open Video Project (OVP) dataset [24]. YouTube dataset consists of news, sports and cartoon videos. OVP dataset consists of multiple different genres including documentary videos. These datasets are diverse in nature and come with different types of annotations, frame-level scores for TVSum and shot-level scores for SumMe. They are integrated to create the ground-truth using the procedure in [43]. The UT Egocentric dataset consists of 4 videos captured from head-mounted cameras. Each video is about 3-5 hours long, captured in a natural, uncontrolled setting and contains a diverse set of events. The QFVS dataset [33] provides ground-truth generic summaries for these 4 videos. The summaries were constructed by dividing the video into shots and asking 3 users to select the relevant shots. The final ground-truth is an average of annotations from all users.
|
| 118 |
+
|
| 119 |
+
Note. All the datasets - YouTube [2], Open Video Project (OVP) dataset [24], TVSum [36], SumMe [7], and QFVS [32] were collected by the creators (cited) and consent for any personally identifiable information (PII) was ascertained by the authors where necessary.
|
| 120 |
+
|
| 121 |
+
Data configuration for TVSum and SumMe. Following previous works [43, 42, 31, 26], we evaluate our approach in three different data settings: Standard, Augment, and Transfer. In the Standard setting, the training and test splits are from the same dataset (i.e. either TVSum or SumMe). For SumMe we use available splits, and for TVSum we randomly select $20 \%$ of the videos for testing and construct 5 different splits and report an average result on all 5 splits. For the Augment setting, the training set from one dataset (e.g., TVSum) is combined with all the data from the remaining three datasets (e.g., SumMe, OVP, and YouTube). This setting yields the best performing models due to the additional training data. The Transfer setting is the most challenging of the three. It involves training a model on three datasets and evaluating on the fourth unseen dataset.
|
| 122 |
+
|
| 123 |
+
Table 2: Unsupervised. Comparing F1 Scores of our methods with unsupervised baselines on the SumMe [7] and TVSum [36] datasets using Standard, Augment, and Transfer data configurations.
|
| 124 |
+
|
| 125 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">SumMe</td><td colspan="3">TVSum</td></tr><tr><td colspan="6">Standard AugmentTransfer Standard AugmentTransfer</td></tr><tr><td>Mahasseni et al. [22]</td><td>39.1</td><td>43.4</td><td></td><td>51.7</td><td>59.5</td><td></td></tr><tr><td>Yuan et al. [41]</td><td>41.9</td><td>1</td><td>=</td><td>57.6</td><td>1</td><td></td></tr><tr><td>Rochan et al. (SUM-FCNun sup) [31]</td><td>41.5</td><td>1</td><td>39.5</td><td>52.7</td><td>1</td><td>-</td></tr><tr><td>Rochan et al. [30]</td><td>47.5</td><td>=</td><td>41.6</td><td>55.6</td><td>=</td><td>55.7</td></tr><tr><td>He et al. [9]</td><td>46.0</td><td>47.0</td><td>44.5</td><td>58.5</td><td>58.9</td><td>57.8</td></tr><tr><td>Park et al. (SumGraph) [26]</td><td>49.8</td><td>52.1</td><td>47.0</td><td>59.3</td><td>61.2</td><td>57.6</td></tr><tr><td>GoogleNet+bi-LSTM</td><td>33.1</td><td>38.0</td><td>36.5</td><td>47.7</td><td>54.9</td><td>52.3</td></tr><tr><td>ResNet+bi-LSTM</td><td>34.5</td><td>40.1</td><td>39.6</td><td>51.0</td><td>56.2</td><td>53.8</td></tr><tr><td>CLIP-Image+bi-LSTM</td><td>35.7</td><td>41.0</td><td>41.4</td><td>52.8</td><td>58.7</td><td>56.0</td></tr><tr><td>CLIP-Image+Video Caption+bi-LSTM</td><td>36.9</td><td>42.4</td><td>42.5</td><td>53.5</td><td>59.4</td><td>57.6</td></tr><tr><td>GoogleNet+Transformer</td><td>50.0</td><td>52.7</td><td>47.6</td><td>59.9</td><td>62.1</td><td>58.4</td></tr><tr><td>ResNet+Transformer</td><td>50.8</td><td>53.9</td><td>49.3</td><td>61.1</td><td>63.0</td><td>59.9</td></tr><tr><td>CLIP-Image+Transformer</td><td>51.2</td><td>53.6</td><td>49.2</td><td>61.9</td><td>64.0</td><td>60.6</td></tr><tr><td>CLIP-It: CLIP-Image+Video Caption+Transformer</td><td>52.5</td><td>54.7</td><td>50.0</td><td>63.0</td><td>65.7</td><td>62.8</td></tr></table>
|
| 126 |
+
|
| 127 |
+
Table 3: Comparing F1 Scores for generic video summarization on the QFVS datase
|
| 128 |
+
|
| 129 |
+
<table><tr><td>Supervised</td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>SubMod [6]</td><td>49.51</td><td>51.03</td><td>64.52</td><td>35.82</td><td>50.22</td></tr><tr><td>QFVS [33]</td><td>62.66</td><td>46.11</td><td>58.85</td><td>33.50</td><td>50.29</td></tr><tr><td>CLIP-Image + bi-LSTM ResNet +Transformer</td><td>65.43</td><td>56.55</td><td>68.63</td><td>40.06</td><td>57.67</td></tr><tr><td></td><td>66.97</td><td>58.32</td><td>70.10</td><td>43.31</td><td>59.67</td></tr><tr><td>CLIP-Image + Transformer</td><td>70.8</td><td>61.67</td><td>72.43</td><td>47.48</td><td>63.11</td></tr><tr><td>CLIP-It (Gen. Caption)</td><td>74.13</td><td>63.44</td><td>75.86</td><td>50.23</td><td>65.92</td></tr><tr><td>CLIP-It (GT Caption)</td><td>84.98</td><td>71.26</td><td>82.55</td><td>61.46</td><td>75.06</td></tr><tr><td> Unsupervised</td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>Quasi [46]</td><td>53.06</td><td>53.80</td><td>49.91</td><td>22.31</td><td>44.77</td></tr><tr><td>CLIP-Image + Transformer</td><td>65.44</td><td>57.21</td><td>65.10</td><td>41.63</td><td>57.35</td></tr><tr><td>CLIP-It (Gen. Caption)</td><td>67.02</td><td>59.48</td><td>66.43</td><td>44.19</td><td>59.28</td></tr><tr><td>CLIP-It (GT Caption)</td><td>73.90</td><td>66.83</td><td>75.44</td><td>52.31</td><td>67.12</td></tr></table>
|
| 130 |
+
|
| 131 |
+
Quantitative Results. We compare our method and its ablations to supervised video summarization baselines in Tab.1. We report F1 scores on the TVSum and SumMe datasets for all three data settings. Our full method, CLIP-It (CLIP-Image $+$ Video Caption $^ +$ Transformer), described in Sec. 3, outperforms state-of-the-art by a large margin on all three settings. Particularly, in the Transfer setting we outperform the previous state-of-the-art SumGraph [26] by $5 \%$ on TVSum and $3 \%$ on SumMe, indicating that our model is better than the baselines in generalizing to out-of-distribution data.
|
| 132 |
+
|
| 133 |
+
To prove the effectiveness of each component of our model, we include comparisons to different ablations. In CLIP-Image+Transformer, we ablate the Language-Guided Attention module and directly pass the CLIP-Image features as input to the transformer. As seen, the performance drops by $2 \%$ indicating that conditioning on CLIP language embeddings leads to better summaries. Substituting the Frame-Scoring Transformer with a Bidirectional LSTM in CLIP-Image+bi-LSTM and CLIP-Image $^ +$ Video Caption+bi-LSTM again results in a performance drop, thus highlighting the need for the Transformer module in our model. For a fair comparison with the baselines, in GoogleNet+Transformer we use the same GoogleNet features provided by Zhang et al. [43] and used by all the other baselines and do not include language features. This method still outperforms Sum
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 3: Comparison of ground-truth summary to results from CLIP-Image $^ +$ Transformer and the full CLIP-It model (CLIP-Image $^ +$ Video Caption $^ +$ Transformer). The input is a recipe video. Without captions, the model assigns high scores to certain irrelevant frames such as scenes of the woman talking or eating which hurts the precision. With captions, the cross-attention mechanism ensures that frames with important actions and objects are assigned high scores.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 4: Qualitative result comparing the generic summary from CLIP-It with the ground-truth summary. The plots showing predicted and ground-truth frame-level scores are similar, indicating that frames that were given a high score in ground-truth were also assigned high scores by our model.
|
| 140 |
+
|
| 141 |
+
Graph [26]. Replacing the GoogleNet features with ResNet features results in a small performance improvement but CLIP-Image features prove to be most effective.
|
| 142 |
+
|
| 143 |
+
Tab. 2 compares F1 scores in the unsupervised setting to other unsupervised baselines. CLIP-It (CLIP-Image $+$ Video Caption+Transformer), outperforms the best performing baseline on all settings on both datasets. We again observe large performance improvements in the Transfer setting and notice that overall our unsupervised method performs almost as well as our supervised counterpart. In CLIP-Image+Transformer we ablate the language component which causes a drop in performance, thus proving that language cues are useful in the unsupervised setting as well. Other ablations yield similar results reiterating the need for each component of our method. We also follow Otani et al. [25] and report results on rank based metrics, Kendall’s $\tau$ [14] and Spearman’s $\rho$ [49] correlation coefficients in the Supp.
|
| 144 |
+
|
| 145 |
+
Table 4: Results on UT Egocentric dataset [16]
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Method</td><td>F-Measure</td><td>Recall</td></tr><tr><td colspan="3">Supervised</td></tr><tr><td>Submod-V+Both et al. [27]</td><td>34.15</td><td>31.59</td></tr><tr><td>CLIP Image + Transformer</td><td>41.58</td><td>39.96</td></tr><tr><td>CLIP-It: CLIP Image + Gen. Video Caption + Transformer</td><td>44.70</td><td>43.28</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>52.10</td><td>50.76</td></tr><tr><td colspan="3">Unsupervised</td></tr><tr><td>CLIP Image + Transformer</td><td>39.22</td><td>37.46</td></tr><tr><td>CLIP-It: CLIP Image + Gen.Video Caption + Transformer</td><td>42.10</td><td>40.65</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>49.98</td><td>47.91</td></tr><tr><td colspan="3">Table 5: Results on TV Episodes dataset [16]</td></tr><tr><td>Method</td><td>F-Measure</td><td>Recall</td></tr><tr><td colspan="3">Supervised</td></tr><tr><td>Submod-V+Sem. Rep. et al. [27]</td><td>40.90</td><td>37.02</td></tr><tr><td>CLIP Image+ Transformer</td><td>47.82</td><td>46.02</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>55.34</td><td>53.90</td></tr><tr><td colspan="3">Unsupervised</td></tr><tr><td>CLIP Image + Transformer</td><td>45.77</td><td>44.01</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption+ Transformer</td><td>53.42</td><td>52.50</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Tab. 3 shows F1 scores for the generic setting on the QFVS Dataset [33]. Following [33], we run four rounds of experiments leaving out one video for testing and one for validation, while keeping the remaining two for training. Our method, CLIP-It (Gen. Captions) outperforms both supervised and unsupervised baselines by a large margin on all four videos, and particularly on Video 4, which happens to be the most difficult for all methods. Adding captions helps significantly improve $( 2 \% )$ the summaries and outperforms the CLIP Image $^ +$ Transformer baseline. To see how well our model would perform if we had perfect captions, we also show results by using the ground-truth captions obtained from VideoSet [40]. Replacing CLIP-Image features with ResNet features causes a drop in performance. Likewise, replacing the Transformer with a bi-LSTM also hurts performance.
|
| 150 |
+
|
| 151 |
+
We include results of our method (1) without captions (2) using generated captions (3) using the ground truth captions provided by VideoSet [40] for UT Egocentric and TV Episodes datasets in Tables 4 and 5. As ground truth, we obtain 15 summaries for each video using the same greedy n-gram matching and ordered subshot selection procedures as previous work [27]. We follow the same procedure as in prior work [40, 27] for creating and evaluating text summaries from video summaries. Our method outperforms [27] in both the supervised and unsupervised settings on both datasets.
|
| 152 |
+
|
| 153 |
+
Qualitative Results. We highlight the need to use language, specifically dense video captions, for constructing generic video summaries through a qualitative example in Fig. 3. The input is a video of a woman demonstrating how to make a chicken sandwich. The ground truth summary shows the scores computed by averaging the annotations from all users as in [43] and the keyframes that received high scores. Next we show the result from the baseline CLIP-Image+Transformer, which uses only visual features and no language input. The predicted scores show that the high scoring frames in the ground truth also receive a high score by our baseline, however a lot of irrelevant frames end up receiving a high score too. Thus, when the model finally picks the keyframes it ends up selecting frames where the person is talking or eating the sandwich (shown in red) which do not correspond to the key steps in the video. Adding language guidance via generated captions helps address this problem. The last row shows the captions generated by BMT [11]. The results shown are from our full CLIP-It model. The predicted scores are more similar to ground truth scores and the highest scoring keyframes are the same as the ground truth.
|
| 154 |
+
|
| 155 |
+
Table 6: Comparing F1 Scores of different methods on the QFVS dataset.
|
| 156 |
+
|
| 157 |
+
<table><tr><td></td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>SeqDPP[51</td><td>36.59</td><td>43.67</td><td>25.26</td><td>18.15</td><td>30.92</td></tr><tr><td>SH-DPP [32]</td><td>35.67</td><td>42.74</td><td>36.51</td><td>18.62</td><td>33.38</td></tr><tr><td>QFVS [33]</td><td>48.68</td><td>41.66</td><td>56.47</td><td>29.96</td><td>44.19</td></tr><tr><td>CLIP-Image + Query + bi-LSTM</td><td>54.47</td><td>48.59</td><td>62.81</td><td>38.64</td><td>51.13</td></tr><tr><td>ResNet + Query + Transformer</td><td>55.19</td><td>51.03</td><td>64.26</td><td>39.47</td><td>52.49</td></tr><tr><td>CLIP-It: CLIP-Image + Query + Transformer</td><td>57.13</td><td>53.60</td><td>66.08</td><td>41.41</td><td>54.55</td></tr></table>
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 5: Result of our method on the QFVS dataset. The first row shows some frames from the 4 hour long input video. Given the query "book and chair", Summary 1 shows some frames selected by our method. Summary 2 shows frames for the query "Sun and Tree".
|
| 161 |
+
|
| 162 |
+
Fig. 4 shows compares summaries generated by our method to the ground truth summary on a cooking video from the SumMe dataset. Predicted scores are the frame-wise scores predicted by CLIP-It and GT Scores are the scores computed from user annotations [43]. The top row (True Positives) shows high scoring keyframes which are chosen by both our method and the ground truth, and the green arrows point to the assigned scores. As we see, they are clear, distinct and represent key actions in the recipe. The bottom row (True Negatives) shows frames which are assigned a low score (shown by the red arrows) and are not part of the final summaries (both GT and predicted). E.g., the first frame is irrelevant and corresponds to a segment between key steps, while the second frame has poor lighting and its hard to tell what is being done.
|
| 163 |
+
|
| 164 |
+
# 4.2 Query-Focused Video Summarization
|
| 165 |
+
|
| 166 |
+
In Query-Focused Video Summarization, the summarization process is conditioned on an input user query, thus, multiple summaries can be obtained for the same video using different input queries.
|
| 167 |
+
|
| 168 |
+
Dataset. We evaluate our method on the QFVS dataset based on the UT Egocentric videos described earlier. The dataset consists of 46 queries for each of the four videos and user-annotated video summaries for each query.
|
| 169 |
+
|
| 170 |
+
Quantitative Results. In Tab. 6, we compare F1 scores of our method to 3 baselines, SH-DPP [32], Seq-DPP [5], and QFVS [33]. Following [33], we run four rounds of experiments leaving out one video for testing and one for validation, while keeping the remaining two for training. Our full model achieves an avg F1 score of $5 4 . 5 5 \%$ outperforming the best baseline $( 4 4 . 1 9 \% )$ by $10 \%$ . We would like to point out that our method uses more recent image features compared to the baselines. At the same time, when switching from CLIP to ResNet image embedding, we still improve significantly over the baselines. We expect the improvement to also hold with weaker features (e.g., as demonstrated with GoogleNet results in Tab. 1, 2).
|
| 171 |
+
|
| 172 |
+
Qualitative Results. Fig. 5 shows a result on the QFVS dataset for UT Egocentric videos. The input is an egocentric video shot from a head-mounted camera and spans 4 hours. It consists of multiple events from a person’s day, such as reading books, working on the laptop, walking in the streets, and so on. Summary 1 and 2 show results from our CLIP-It method when the input query is “Book and chair” and “Sun and tree” respectively. The frames shown are frames assigned high-scores by our method. As seen, given the same input video, different queries yield different summaries.
|
| 173 |
+
|
| 174 |
+
# 5 Discussion and Broader Impacts
|
| 175 |
+
|
| 176 |
+
We introduced CLIP-It, a unified language-guided framework for generic and query focused video summarization. Video summarization is a relevant problem with many use-cases, and our approach provides greater flexibility to the users, allowing them to guide summarization with open-ended natural language queries. We envision potential positive impact from improved user experience if adopted on video platforms such as YouTube. We rely on an off-the-shelf video captioning model [11] and a large-scale vision-language model (CLIP [29]) which may have encoded some inappropriate biases that could propagate to our model. Our visual inspection of the obtained summarization results did not raise any apparent concerns. However, practitioners who wish to use our approach should be mindful of the sources of bias we have outlined above depending on the specific use case they are addressing.
|
| 177 |
+
|
| 178 |
+
Acknowledgements. We thank Arun Mallya for very helpful discussions and feedback. We’d also like to thank Huijuan Xu for feedback on the draft. This work was supported in part by DoD including DARPA’s XAI, LwLL, and SemaFor programs, as well as BAIR’s industrial alliance programs.
|
| 179 |
+
|
| 180 |
+
# References
|
| 181 |
+
|
| 182 |
+
[1] Chen, B.C., Chen, Y.Y., Chen, F.: Video to text summary: Joint video summarization and captioning with recurrent neural networks. British Machine Vision Conference (BMVC) (2017) 3, 6 [2] De Avila, S.E.F., Lopes, A.P.B., da Luz Jr, A., de Albuquerque Araújo, A.: Vsumm: A mechanism designed to produce static video summaries and a novel evaluation method. Patt. Rec. Letters (2011) 6
|
| 183 |
+
[3] Fajtl, J., Sokeh, H.S., Argyriou, V., Monekosso, D., Remagnino, P.: Summarizing videos with attention. Asian Conference on Computer Vision (ACCV) (2018) 2, 3, 6 [4] Gabeur, V., Sun, C., Alahari, K., Schmid, C.: Multi-modal transformer for video retrieval. European Conference on Computer Vision (ECCV) (2020) 3 [5] Gong, B., Chao, W.L., Grauman, K., Sha, F.: Diverse sequential subset selection for supervised video summarization. Advances in Neural Information Processing Systems (NeurIPS) (2014) 2, 3, 9, 10 [6] Gygli, M., Grabner, H., Gool, L.V.: Video summarization by learning submodular mixtures of objectives. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 3, 7 [7] Gygli, M., Grabner, H., Riemenschneider, H., Gool, L.V.: Creating summaries from user videos. European Conference on Computer Vision (ECCV) (2014) 2, 3, 6, 7
|
| 184 |
+
[8] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016) 3, 5 [9] He, X., Hua, Y., Song, T., Zhang, Z., Xue, Z., Ma, R., Robertson, N., Guan, H.: Unsupervised video summarization with attentive conditional generative adversarial networks. ACM international conference on Multimedia (2019) 2, 6, 7
|
| 185 |
+
[10] Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural computation (1997) 3
|
| 186 |
+
[11] Iashin, V., Rahtu, E.: A better use of audio-visual cues: Dense video captioning with bi-modal transformer. British Machine Vision Conference (BMVC) (2020) 3, 5, 10, 11
|
| 187 |
+
[12] Kanehira, A., Gool, L.V., Ushiku, Y., Harada, T.: Viewpoint-aware video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2018) 3
|
| 188 |
+
[13] Kang, H.W., Matsushita, Y., Tang, X., Chen, X.Q.: Space-time video montage. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2006) 3
|
| 189 |
+
[14] Kendall, M.G.: The treatment of ties in ranking problems. Biometrika 33(3), 239–251 (1945) 8
|
| 190 |
+
[15] Lavancier, F., Møller, J., Rubak, E.: Determinantal point process models and statistical inference. Journal of the Royal Statistical Society: Series B: Statistical Methodology (2015) 3
|
| 191 |
+
[16] Lee, Y.J., Ghosh, J., Grauman, K.: Discovering important people and objects for egocentric video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2012) 3, 6, 9
|
| 192 |
+
[17] Lei, J., Wang, L., Shen, Y., Yu, D., Berg, T., Bansal, M.: Mart: Memory-augmented recurrent transformer for coherent video paragraph captioning. Association for Computational Linguistics (2020) 3
|
| 193 |
+
[18] Li, Y., Wang, L., Yang, T., Gong, B.: How local is the local diversity? reinforcing sequential determinantal point processes with dynamic ground sets for supervised video summarization. European Conference on Computer Vision (ECCV) (2018) 2, 3
|
| 194 |
+
[19] Liu, T., Kender, J.R.: Optimization algorithms for the selection of key frame sequences of variable length. European Conference on Computer Vision (ECCV) (2002) 3
|
| 195 |
+
[20] Lu, Z., Grauman, K.: Story-driven summarization for egocentric video. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2013) 3
|
| 196 |
+
[21] Ma, Y.F., Zhang, H.J.: A model of motion attention for video skimming. International Conference on Image Processing (ICIP) (2002) 2
|
| 197 |
+
[22] Mahasseni, B., Lam, M., Todorovic, S.: Unsupervised video summarization with adversarial lstm networks. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 3, 6, 7
|
| 198 |
+
[23] Ngo, C.W., Ma, Y.F., Zhang, H.J.: Automatic video summarization by graph modeling. IEEE International Conference on Computer Vision (ICCV) (2003) 3
|
| 199 |
+
[24] Open video project. https://open-video.org/ 6
|
| 200 |
+
[25] Otani, M., Nakashima, Y., Rahtu, E., Heikkilä, J.: Rethinking the evaluation of video summaries. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2019) 8
|
| 201 |
+
[26] Park, J., Lee, J., Kim, I.J., Sohn, K.: Sumgraph: Video summarization via recursive graph modeling. European Conference on Computer Vision (ECCV) (2020) 2, 3, 6, 7, 8
|
| 202 |
+
[27] Plummer, B.A., Brown, M., Lazebnik, S.: Enhancing video summarization via vision-language embedding. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 3, 9
|
| 203 |
+
[28] Potapov, D., Douze, M., Harchaoui, Z., Schmid, C.: Category-specific video summarization. European Conference on Computer Vision (ECCV) (2014) 3
|
| 204 |
+
[29] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020 (2021) 3, 5, 11
|
| 205 |
+
[30] Rochan, M., Wang, Y.: Video summarization by learning from unpaired data. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2019) 3, 5, 6, 7
|
| 206 |
+
[31] Rochan, M., Ye, L., Wang, Y.: Video summarization using fully convolutional sequence networks. European Conference on Computer Vision (ECCV) (2018) 2, 3, 5, 6, 7
|
| 207 |
+
[32] Sharghi, A., Gong, B., Shah, M.: Query-focused extractive video summarization. European Conference on Computer Vision (ECCV) (2016) 2, 3, 6, 9, 10
|
| 208 |
+
[33] Sharghi, A., Laurel, J.S., Gong, B.: Query-focused video summarization: Dataset, evaluation, and a memory network based approach. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 2, 3, 6, 7, 9, 10
|
| 209 |
+
[34] Smith, M.A., Kanade, T.: Video skimming for quick browsing based on audio and image characterization. School of Computer Science, Carnegie Mellon University (1995) 2
|
| 210 |
+
[35] Smith, M.A., Kanade, T.: Video skimming and characterization through the combination of image and language understanding techniques. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (1997) 2
|
| 211 |
+
[36] Song, Y., Vallmitjana, J., Stent, A., Jaimes, A.: Tvsum: Summarizing web videos using titles. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 2, 3, 6, 7
|
| 212 |
+
[37] Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., Rabinovich, A.: Going deeper with convolutions. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 5
|
| 213 |
+
[38] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I.: Attention is all you need. Advances in Neural Information Processing Systems (NeurIPS) (2017) 3, 4
|
| 214 |
+
[39] Wei, H., Ni, B., Yan, Y., Yu, H., Yang, X., Yao, C.: Video summarization via semantic attended networks. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2018) 3
|
| 215 |
+
[40] Yeung, S., Fathi, A., Fei-Fei, L.: Videoset: Video summary evaluation through text. arXiv preprint arXiv:1406.5824 (2014) 9
|
| 216 |
+
[41] Yuan, L., Tay, F.E., Li, P., Zhou, L., Feng, J.: Cycle-sum: Cycle-consistent adversarial lstm networks for unsupervised video summarization. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2019) 3, 7
|
| 217 |
+
[42] Zhang, K., Chao, W.L., Sha, F., Grauman, K.: Summary transfer: Examplar-based subset selection for video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016) 2, 3, 6
|
| 218 |
+
[43] Zhang, K., Chao, W.L., Sha, F., Grauman, K.: Video summarization with long short-term memory. European Conference on Computer Vision (ECCV) (2016) 2, 3, 4, 6, 7, 9, 10
|
| 219 |
+
[44] Zhang, K., Grauman, K., Sha, F.: Retrospective encoders for video summarization. European Conference on Computer Vision (ECCV) (2018) 2, 3, 6
|
| 220 |
+
[45] Zhao, B., Li, X., Lu, X.: Hierarchical recurrent neural network for video summarization. ACM international conference on Multimedia (2017) 3, 5
|
| 221 |
+
[46] Zhao, B., Xing, E.P.: Quasi real-time summarization for consumer videos. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2014) 7
|
| 222 |
+
[47] Zhou, K., Qiao, Y., Xiang, T.: Deep reinforcement learning for unsupervised video summarization with diversity-representativeness reward. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2018) 6
|
| 223 |
+
[48] Zhou, L., Zhou, Y., Corso, J.J., Socher, R., Xiong, C.: End-to-end dense video captioning with masked transformer. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2018) 3
|
| 224 |
+
[49] Zwillinger, D., Kokoska, S.: Crc standard probability and statistics tables and formulae. CRC Press (1999) 8
|
parse/train/3ccoZ40Us0N/3ccoZ40Us0N_content_list.json
ADDED
|
@@ -0,0 +1,1005 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CLIP-It! Language-Guided Video Summarization ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
251,
|
| 8 |
+
122,
|
| 9 |
+
745,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Medhini Narasimhan Anna Rohrbach Trevor Darrell ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
297,
|
| 19 |
+
226,
|
| 20 |
+
704,
|
| 21 |
+
239
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "University of California, Berkeley {medhini, anna.rohrbach, trevordarrell}@berkeley.edu https://medhini.github.io/clip_it ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
297,
|
| 30 |
+
241,
|
| 31 |
+
700,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "image",
|
| 38 |
+
"img_path": "images/d7d642572e87e426a8435e58d17586d42b74fd301a04f4a0c71e972de49e802f.jpg",
|
| 39 |
+
"image_caption": [
|
| 40 |
+
"Figure 1: We introduce CLIP-It, a language-guided multimodal transformer for generic and query-focused video summarization. The figure shows results from our method. Given a day-long video of a national park tour, the generic summary (top) is a video with relevant and diverse keyframes. When using the query “All the scenes containing restaurants and shopping centers”, the generated query-focused summary includes all the matching scenes. Similarly, the query “All water bodies such as lakes, rivers, and waterfalls”, yields a short summary containing all the water bodies present in the video. "
|
| 41 |
+
],
|
| 42 |
+
"image_footnote": [],
|
| 43 |
+
"bbox": [
|
| 44 |
+
174,
|
| 45 |
+
290,
|
| 46 |
+
825,
|
| 47 |
+
469
|
| 48 |
+
],
|
| 49 |
+
"page_idx": 0
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "text",
|
| 53 |
+
"text": "Abstract ",
|
| 54 |
+
"text_level": 1,
|
| 55 |
+
"bbox": [
|
| 56 |
+
462,
|
| 57 |
+
560,
|
| 58 |
+
535,
|
| 59 |
+
577
|
| 60 |
+
],
|
| 61 |
+
"page_idx": 0
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"type": "text",
|
| 65 |
+
"text": "A generic video summary is an abridged version of a video that conveys the whole story and features the most important scenes. Yet the importance of scenes in a video is often subjective, and users should have the option of customizing the summary by using natural language to specify what is important to them. Further, existing models for fully automatic generic summarization have not exploited available language models, which can serve as an effective prior for saliency. This work introduces CLIP-It, a single framework for addressing both generic and queryfocused video summarization, typically approached separately in the literature. We propose a language-guided multimodal transformer that learns to score frames in a video based on their importance relative to one another and their correlation with a user-defined query (for query-focused summarization) or an automatically generated dense video caption (for generic video summarization). Our model can be extended to the unsupervised setting by training without ground-truth supervision. We outperform baselines and prior work by a significant margin on both standard video summarization datasets (TVSum and SumMe) and a query-focused video summarization dataset (QFVS). Particularly, we achieve large improvements in the transfer setting, attesting to our method’s strong generalization capabilities. ",
|
| 66 |
+
"bbox": [
|
| 67 |
+
233,
|
| 68 |
+
590,
|
| 69 |
+
766,
|
| 70 |
+
825
|
| 71 |
+
],
|
| 72 |
+
"page_idx": 0
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"type": "text",
|
| 76 |
+
"text": "1 Introduction ",
|
| 77 |
+
"text_level": 1,
|
| 78 |
+
"bbox": [
|
| 79 |
+
174,
|
| 80 |
+
844,
|
| 81 |
+
312,
|
| 82 |
+
862
|
| 83 |
+
],
|
| 84 |
+
"page_idx": 0
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"type": "text",
|
| 88 |
+
"text": "An effective video summary captures the essence of the video and provides a quick overview as an alternative to viewing the whole video; it should be succinct yet representative of the entire video. Summarizing videos has many use cases - for example, viewers on YouTube may want to watch a short summary of the video to assess its relevance. While a generic summary is useful for capturing the important scenes in a video, it is even more practical if the summary can be customized by the user. As seen in Fig. 1, users should be able to indicate the concepts of the video they would like to see in the summary using natural language queries. ",
|
| 89 |
+
"bbox": [
|
| 90 |
+
176,
|
| 91 |
+
867,
|
| 92 |
+
826,
|
| 93 |
+
909
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
92,
|
| 103 |
+
825,
|
| 104 |
+
147
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Generic video summarization datasets such as TVSum [36] and SumMe [7] provide ground-truth annotations in the form of frame or shot-level importance scores specified by multiple annotators. Several learning-based methods reduce the task to a frame-wise score prediction problem. Sequence labeling methods [5, 42, 43, 44, 18] model variable-range dependencies between frames but fail to capture relationships across all frames simultaneously. While attention [3] and graph based [26] methods address this partly, they disregard ordering of the input frames which is useful when predicting scores. Moreover, these methods use only visual cues to produce the summaries and cannot be customized with a natural language input. Another line of work, query-focused video summarization [32], allows the users to customize the summary by specifying a query containing two concepts (eg., food and drinks). However, in their work the query can only be chosen from a fixed set of predefined concepts which limits the flexibility for the user. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
154,
|
| 114 |
+
825,
|
| 115 |
+
305
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "It is important to note that efforts in generic and query-focused video summarization have so far been disjoint, with no single method for both. Our key innovation is to unify these tasks in one language-guided framework. We introduce CLIP-It, a multimodal summarization model which takes two inputs, a video and a natural language text, and synthesizes a summary video conditioned on the text. In case of generic video summarization, the natural language text is a video description obtained using an off-the-shelf dense video captioning method. Alternatively, in the case of query-focused video summarization, the language input is a user-defined query. Unlike existing generic methods which only use visual cues, we show that adding language as an input leads to the “discovery” of relevant concepts and actions resulting in better summaries. Our method uses a Transformer with positional encoding, which can attend to all frames at once (unlike LSTM based methods) and also keep track of the ordering of frames (unlike graph based methods). In contrast to existing query-focused methods [32] which only allow keyword based queries, we aim to enable open-ended natural language queries for users to customize video summaries. For example, as seen in Fig. 1, using our method users can specify long and descriptive queries such as, “All water bodies such as lakes, rivers, and waterfalls” which is not possible with previous methods. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
313,
|
| 125 |
+
825,
|
| 126 |
+
518
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Given an input video, CLIP-It generates a video summary guided by either a user-defined natural language query or a system generated description. It uses a Language-Guided Attention head to compute a joint representation of the image and language embeddings, and a Frame-Scoring Transformer to assign scores to individual frames in the video using the fused representations. Following [43, 42], the summary video is constructed from high scoring frames by converting framelevel scores to shot-level scores and using knapsack algorithm to fit the maximum number of high scoring shots in a timed window. Fig. 1 shows an output from our method. Given an hour long video of a national park tour, we generate a 2 minute generic summary comprising of all the important scenes in the video. Given the two language queries, our method picks the matching keyframes in both cases. We can train CLIP-It without ground-truth supervision by leveraging the reconstruction and diversity losses [9, 31]. For generic video summarization, we evaluate our approach on the standard benchmarks, TVSum and SumMe. We achieve performance improvement on F1 score of nearly $3 \\%$ in the supervised setting and $4 \\%$ in the unsupervised setting on both datasets. We show large gains $( 5 \\% )$ in the Transfer setting, where CLIP-It is trained and evaluated on disjoint sets of data. For the queryfocused scenario we evaluate on the QFVS dataset [33], where we also achieve state-of-the-art results. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
525,
|
| 136 |
+
825,
|
| 137 |
+
733
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "To summarize our contributions, we introduce CLIP-It, a language-guided model that unifies generic and query-focused video summarization. Our approach uses language conditioning in the form of off-the-shelf video descriptions (for generic summarization) or user-defined natural language queries (for query-focused summarization). We show that the Transformer design enables effective contextualization across frames, benefiting our tasks. We also demonstrate the impact of language guidance on generic summarization. Finally, we establish the new state-of-the-art on both generic and query-focused datasets in supervised and unsupervised settings. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
738,
|
| 147 |
+
825,
|
| 148 |
+
835
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 Related Work ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
847,
|
| 159 |
+
321,
|
| 160 |
+
863
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Generic Video Summarization. A video summary is a short synopsis created by stitching together important clips from the original video. Early works [21, 35, 34] referred to it as Video Skimming or Dynamic Video Summarization and used hand-designed features to generate summaries. Likewise, non-parametric unsupervised methods [13, 16, 23, 19, 20, 28] used various heuristics to represent the importance of frames. Introduction of benchmark datasets such as TVSum [36] and SumMe [7] provided relevance scores for frames in videos annotated by users, resulting in multiple human generated summaries. This enabled automatic evaluation of video summarization techniques and has lead to the development of many supervised learning based methods [6, 8, 22, 26, 31, 30, 41, 42, 43, 44, 45]. These approaches capture high-level semantic information and outperform the heuristic unsupervised methods. Fully convolutional sequence networks [31] treat video summarization as a binary label prediction problem. Determinantal point processes [15] and LSTM [10] based approaches [5, 18, 42, 43, 44] model variable-range dependencies between frames. However, these are sequential and fail to capture relationships across all frames simultaneously. Attention [3] and graph based methods [26] address this issue by modeling relationships across all frames, but they disregard the ordering of frames in a video, which is also useful for summarization. Our method uses a Transformer [38] with positional encoding, which allows for joint attention across all frames while maintaining an ordering of the input sequence of frames. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
869,
|
| 170 |
+
825,
|
| 171 |
+
911
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
90,
|
| 181 |
+
825,
|
| 182 |
+
285
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Some of the above works have supervised and unsupervised variants with modifications to the objective function. Specifically, for the unsupervised variant, they use reconstruction and diversity losses which do not require ground truth. We follow prior work in terms of using the same loss functions. Other notable unsupervised approaches include an adversarial LSTM based method [22], a generative adversarial network to learn from unpaired data [30], and a cycle consistent learning objective [41]. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
291,
|
| 192 |
+
825,
|
| 193 |
+
361
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Video-Text Summarization. Plummer et al. [27] use image-language embeddings for generating video summaries but evaluate their approach in the text domain, and not on the generic video summarization benchmarks. Furthermore, they require text to be provided as input and don’t have a mechanism to generate captions if absent. On the other hand, our method works well with off-theshelf captions and we evaluate on both generic and query-focused benchmark datasets. Chen et al. [1] jointly train a text and video summarization network but rely on ground-truth text summaries. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
367,
|
| 203 |
+
825,
|
| 204 |
+
449
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Query-Focused Video Summarization. Oftentimes users browsing videos on YouTube are looking for something specific so a generic summary might not suffice. In this case, there should be an option to customize the generated summary using a natural language query. Sharghi et al. [32] introduce the Query-Focused Video Summarization (QFVS) dataset for UT Egocentric [16] videos containing user-defined video summaries for a set of pre-defined concepts. Sharghi et al. [33] propose a memory network to attend over different video frames and shots with the user query as input. However, this recurrent attention mechanism precludes parallelization and limits modeling long-range dependencies, which is overcome by our Transformer architecture. Moreover, their method only works with the pre-defined set of keyword based queries in QFVS dataset. Since we use CLIP [29] to encode the language input and train our method on dense video descriptions, this allows users to define freeform queries at test time (as seen in Fig. 1). Other works [12, 39] similarly condition the summary generation on keyword based queries but haven’t released their data. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
457,
|
| 214 |
+
825,
|
| 215 |
+
622
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Transformers. Transformers [38] were introduced for neural machine translation and have since been applied to video-language tasks such as video-retrieval [4] and video captioning [17, 48]. In this work we adapt transformers for video summarization. We modify self-attention [38] to a LanguageGuided Attention block that accepts inputs from two modalities. Additionally, our method also relies on CLIP [29] for extracting image and text features and a Bi-Modal Transformer [11] for dense video caption generation, both of which also have transformer backbone. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
628,
|
| 225 |
+
825,
|
| 226 |
+
712
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "3 CLIP-It: Language-Guided Video Summarization ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
722,
|
| 237 |
+
622,
|
| 238 |
+
739
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "CLIP-It is a unified language-guided framework for both generic and query-focused video summarization. It takes an input video and a user-defined query or a system generated dense video caption and constructs a summary by selecting key frames from the video. First, we explain the intuition behind our approach. In the case of query-focused summarization, clearly, it is necessary to model the user query as input in order to produce an appropriate summary. In the case of generic video summarization no user query is available; nonetheless, we show here that we can leverage the semantic information contained in associated natural language descriptions to guide the summarization process. Assuming we had a generic description that accompanies a video (e.g., A person is walking a dog. The person throws a ball. The dog runs after it.), we could leverage its semantic embedding to match $i t$ to the most relevant portions of the video. Such a description could be obtained automatically by generating dense video captions [11]. We first present an overview of our approach, CLIP-It, followed by a detailed description of the individual components. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
746,
|
| 248 |
+
826,
|
| 249 |
+
911
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "image",
|
| 255 |
+
"img_path": "images/5cf0ec307f855e688d0cd7ddc67c06c5416e4e5a59a1eb7b6e6c867ced503bf9.jpg",
|
| 256 |
+
"image_caption": [
|
| 257 |
+
"Figure 2: Overview of CLIP-It. Given an input video, CLIP-It generates a summary conditioned on either a user-defined natural language query or an automatically generated dense video caption. The Language-Guided Attention head fuses the image and language embeddings and the Frame-Scoring Transformer jointly attends to all frames to predict their relevance scores. During inference, the video summary is constructed by converting frame scores to shot scores and using Knapsack algorithm to select high scoring shots. "
|
| 258 |
+
],
|
| 259 |
+
"image_footnote": [],
|
| 260 |
+
"bbox": [
|
| 261 |
+
178,
|
| 262 |
+
90,
|
| 263 |
+
807,
|
| 264 |
+
315
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 3
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Overview. Our approach, CLIP-It, is outlined in $\\mathrm { F i g } 2$ . Given a video, we extract $N$ frames denoted by $F _ { i }$ , $i \\in [ 1 , \\dots \\bar { N } ]$ . We formulate the video summarization task as a per-frame binary classification problem. We embed the frames using a pretrained network $f _ { i m g }$ . If a query is provided (in the form of a natural language string), we embed the query using a pretrained network $f _ { t x t }$ . Alternatively, as seen in the figure, we use an off-the-shelf video captioning model to generate a dense video caption with $M$ sentences denoted by $C _ { j }$ , $j \\in [ 1 , \\bar { \\dots { M } } ]$ and embed each sentence using the pretrained network $f _ { t x t }$ . Next, we compute language attended image embeddings $I ^ { * }$ using learned Language-Guided Multi-head Attention $f _ { i m g \\_ t x t } ^ { * }$ . Finally, we train a Frame-Scoring Transformer which assigns scores to each frame in the video (green indicating a high score and red indicating a low score). To construct the video summary during inference, we convert frame-level scores to shot-level scores and finally, use 0/1 knapsack algorithm to pick the key shots [43]. In the following, we describe the Language-Guided Attention and the Frame-Selection Transformer modules, followed by discussing the visual and language encoders. ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
173,
|
| 273 |
+
404,
|
| 274 |
+
826,
|
| 275 |
+
585
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 3
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "text",
|
| 281 |
+
"text": "Language-Guided Attention. We use Language-Guided Multi-head Attention to efficiently fuse information across the video and language modalities and to infer long-term dependencies across both. Using a single attention head does not suffice as our goal is to allow all captions to attend to all frames in the video. We modify the Multi-Head Attention described in Vaswani et al. [38] to take in inputs from both modalities. We set Query $Q$ , Key $K$ , and Value $V$ as follows, ",
|
| 282 |
+
"bbox": [
|
| 283 |
+
176,
|
| 284 |
+
590,
|
| 285 |
+
823,
|
| 286 |
+
660
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 3
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "equation",
|
| 292 |
+
"img_path": "images/cb199205e7555bb1154bf2fb4a6e5141233c44b2977fd77e0a7e8f33b9c60c16.jpg",
|
| 293 |
+
"text": "$$\n\\begin{array} { c } { { \\therefore , \\nu \\ - \\jmath \\iota x \\iota \\mathrm { ( } \\mathrm { V } _ { \\mathcal { I } } \\mathrm { ) , ~ } \\mathrm { w a n g e - } \\mathrm { G u i d e d ~ A t t n . } ( Q , K , V ) = \\mathrm { C o n c a t ( h e a d _ 1 , } . . . , \\mathrm { h e a d _ h } ) W ^ { O } , } } \\\\ { { \\mathrm { L a n g u a g e - } \\mathrm { G u i d e d ~ A t t n . } ( Q , K , V ) = \\mathrm { C o n c a t ( h e a d _ 1 , } . . . , \\mathrm { h e a d _ h } ) W ^ { O } , } } \\\\ { { \\mathrm { w h e r e ~ h e a d _ i = A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) } } \\\\ { { \\mathrm { a n d ~ A t t e n t i o n } ( Q , K , V ) = \\mathrm { s o f m a x } ( \\displaystyle \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } ) V } } \\end{array}\n$$",
|
| 294 |
+
"text_format": "latex",
|
| 295 |
+
"bbox": [
|
| 296 |
+
254,
|
| 297 |
+
694,
|
| 298 |
+
745,
|
| 299 |
+
780
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 3
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "$\\it { W _ { i } ^ { Q } }$ , $W _ { i } ^ { K }$ , and $W _ { i } ^ { V }$ are learned parameter matrices and $d _ { k }$ is the dimensions of $K$ . The output of the Language-Guided Multi-Head Attention are the attended image embeddings, denoted as $F _ { i } ^ { ' }$ . ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
173,
|
| 308 |
+
787,
|
| 309 |
+
826,
|
| 310 |
+
820
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "Frame-Scoring Transformer. Finally, it is also important to ensure that we do not include redundant information, e.g., several key shots from the same event. To better model interactions across frames and contextualize them w.r.t. each other, we add a Frame-Scoring Transformer that takes image-text representations as input and outputs one score per frame. Based on the Transformer model [38], this module assigns relevance scores to the attended image embeddings $F _ { i } ^ { ' }$ . We feed $F _ { i } ^ { ' }$ to the bottom of both the encoder and decoder stacks. Similar to [38], we use positional encoding to insert information about the relative positions of the tokens in the sequence. We add positional encodings to the input embeddings at the bottom of the encoder and decoder stacks. ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
825,
|
| 320 |
+
825,
|
| 321 |
+
912
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "",
|
| 328 |
+
"bbox": [
|
| 329 |
+
173,
|
| 330 |
+
90,
|
| 331 |
+
823,
|
| 332 |
+
119
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 4
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "Image Encoding. We encode the image using a pre-trained network $f _ { i m g }$ . We experiment with the following networks: GoogleNet [37] (for a fair comparison to prior work), ResNet [8], and CLIP [29]. ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
171,
|
| 341 |
+
126,
|
| 342 |
+
823,
|
| 343 |
+
155
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 4
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "Text Encoding. We encode the user-defined query or the system generated dense caption using a pre-trained network $f _ { t x t }$ . In this case we tried the CLIP (ViT and RN101) model. In case of generic video summarization, we generate dense video captions for the whole video in order to condition on language and incorporate added semantics into our video summarization pipeline. We use the Bi-Modal Transformer [11] dense video captioning model that generates a multi-sentence description given a video with audio. Since there are multiple sentences in the dense video caption, we first embed each sentence of the caption using the text encoder $f _ { t x t }$ described above. They are then concatenated and fused using a multi-layer perceptron (MLP). ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
173,
|
| 352 |
+
160,
|
| 353 |
+
825,
|
| 354 |
+
272
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 4
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "3.1 Learning ",
|
| 361 |
+
"text_level": 1,
|
| 362 |
+
"bbox": [
|
| 363 |
+
174,
|
| 364 |
+
279,
|
| 365 |
+
279,
|
| 366 |
+
294
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 4
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "We employ 3 loss functions (classification, diversity, and reconstruction) to train our model. The supervised setting uses all 3 and the unsupervised setting uses only diversity and reconstruction losses. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
297,
|
| 376 |
+
826,
|
| 377 |
+
339
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 4
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "Classification loss. We use a weighted binary cross entropy loss for classifying each frame: ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
171,
|
| 386 |
+
344,
|
| 387 |
+
774,
|
| 388 |
+
361
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 4
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "equation",
|
| 394 |
+
"img_path": "images/97e15b9ce3a49ab5a72cb5809875e3e18ddca3b297d27441b6b535f6d5eafee2.jpg",
|
| 395 |
+
"text": "$$\n\\mathcal { L } _ { c } = - \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } w ^ { * } [ x _ { i } ^ { * } \\mathrm { l o g } ( x _ { i } ) ] + ( 1 - w ^ { * } ) [ ( 1 - x _ { i } ^ { * } ) \\mathrm { l o g } ( 1 - x _ { i } ) ] ,\n$$",
|
| 396 |
+
"text_format": "latex",
|
| 397 |
+
"bbox": [
|
| 398 |
+
285,
|
| 399 |
+
367,
|
| 400 |
+
710,
|
| 401 |
+
411
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "where $\\boldsymbol { x } _ { i } ^ { * }$ is the ground-truth label of the $i$ -th frame and $N$ is the total number of frames in the $w ^ { * }$ weif ht assigned to the class is a background frame $\\boldsymbol { x } _ { i } ^ { * }$ , which is set to $\\frac { \\# k e y f r a m e s } { N }$ if $\\boldsymbol { x } _ { i } ^ { * }$ is a keyframe and $1 - { \\frac { \\# k e y f r a m e s } { N } }$ $\\boldsymbol { x } _ { i } ^ { * }$ ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
173,
|
| 410 |
+
422,
|
| 411 |
+
826,
|
| 412 |
+
472
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 4
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "For the purpose of training without any supervision, we employ two additional losses that enforce diversity in the selected keyframes. We first select keyframes $X$ based on the scores assigned by the Frame-Scoring Transformer. We pass the output features of the transformer model for the selected keyframes through a decoder network consisting of $1 \\times 1$ convolution layers to obtain reconstructed feature vectors for the selected keyframes such that each keyframe feature vector is of the same dimension as its corresponding input frame-level feature vector. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
173,
|
| 421 |
+
477,
|
| 422 |
+
825,
|
| 423 |
+
561
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 4
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Reconstruction Loss. The reconstruction loss $\\mathcal { L } _ { r }$ is defined as the mean squared error between the reconstructed features and the original features corresponding to the selected keyframes, such that: ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
171,
|
| 432 |
+
566,
|
| 433 |
+
823,
|
| 434 |
+
595
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 4
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"img_path": "images/cfa3e99f4ed6b7899a92854fede6a172f1b755f8d7055df221b74adb4bf92716.jpg",
|
| 441 |
+
"text": "$$\n\\mathcal { L } _ { r } = \\frac { 1 } { X } \\sum _ { i \\in X } | | \\mathbf { x } _ { i } - \\hat { \\mathbf { y } } _ { i } | | _ { 2 } ,\n$$",
|
| 442 |
+
"text_format": "latex",
|
| 443 |
+
"bbox": [
|
| 444 |
+
411,
|
| 445 |
+
602,
|
| 446 |
+
584,
|
| 447 |
+
640
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 4
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "where $\\hat { \\mathbf { y } }$ denotes the reconstructed features. ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
174,
|
| 456 |
+
647,
|
| 457 |
+
457,
|
| 458 |
+
661
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 4
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "Diversity Loss. We employ a repelling regularizer [45] to enforce diversity among selected keyframes. Similar to [31, 30], we compute the diversity loss, $\\mathcal { L } _ { d }$ , as the pairwise cosine similarity between the selected keyframes: ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
174,
|
| 467 |
+
667,
|
| 468 |
+
823,
|
| 469 |
+
708
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 4
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "equation",
|
| 475 |
+
"img_path": "images/910f8740d5eb273a22ec55fb15f42428482be59bf06e80987f7ef31eead07a6f.jpg",
|
| 476 |
+
"text": "$$\n\\mathcal { L } _ { d } = \\frac { 1 } { X ( X - 1 ) } \\sum _ { i \\in X } \\sum _ { j \\in X , j \\neq i } \\frac { \\hat { \\mathbf { y } } _ { i } \\cdot \\hat { \\mathbf { y } } _ { j } } { \\vert \\vert \\hat { \\mathbf { y } } _ { i } \\vert \\vert _ { 2 } \\cdot \\vert \\vert \\hat { \\mathbf { y } } _ { j } \\vert \\vert _ { 2 } } ,\n$$",
|
| 477 |
+
"text_format": "latex",
|
| 478 |
+
"bbox": [
|
| 479 |
+
346,
|
| 480 |
+
707,
|
| 481 |
+
650,
|
| 482 |
+
747
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "where $\\hat { \\mathbf { y } } _ { i }$ and $\\hat { \\mathbf { y } _ { j } }$ denote the reconstructed feature vectors of the $i$ -th and $j$ -th node. ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
176,
|
| 491 |
+
750,
|
| 492 |
+
714,
|
| 493 |
+
765
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 4
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "The final loss function for supervised learning is then, ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
173,
|
| 502 |
+
770,
|
| 503 |
+
529,
|
| 504 |
+
785
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"img_path": "images/d8287bbf9be4046f51dd3f56f06d1358bcf676c0bae40776503fdbc844dfc940.jpg",
|
| 511 |
+
"text": "$$\n\\mathcal { L } _ { s u p } = \\alpha \\cdot \\mathcal { L } _ { c } + \\beta \\cdot \\mathcal { L } _ { d } + \\lambda \\cdot \\mathcal { L } _ { r } ,\n$$",
|
| 512 |
+
"text_format": "latex",
|
| 513 |
+
"bbox": [
|
| 514 |
+
387,
|
| 515 |
+
792,
|
| 516 |
+
609,
|
| 517 |
+
809
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "where $\\alpha , \\beta ,$ , and $\\lambda$ control the trade-off between the three loss functions. We modify the loss function to extend CLIP-It to the unsupervised video summarization setting. We omit $\\mathcal { L } _ { c }$ since the groundtruth summary cannot be used for supervision and represent the final loss function for unsupervised learning as: ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
173,
|
| 526 |
+
815,
|
| 527 |
+
825,
|
| 528 |
+
871
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "equation",
|
| 534 |
+
"img_path": "images/87ecf7bd16141466368284bd870634928e447d886071afb86350da2b657bc5a0.jpg",
|
| 535 |
+
"text": "$$\n\\mathcal { L } _ { u n s u p } = \\beta \\cdot \\mathcal { L } _ { d } + \\lambda \\cdot \\mathcal { L } _ { r } ,\n$$",
|
| 536 |
+
"text_format": "latex",
|
| 537 |
+
"bbox": [
|
| 538 |
+
410,
|
| 539 |
+
871,
|
| 540 |
+
588,
|
| 541 |
+
887
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 4
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "where $\\beta$ and $\\lambda$ are balancing parameters to control the trade-off between the two terms. We include implementation details of our method in the Supp. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
171,
|
| 550 |
+
890,
|
| 551 |
+
823,
|
| 552 |
+
920
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 4
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "table",
|
| 558 |
+
"img_path": "images/0a457e51185718c2ccebd26e980cbf0b4be695ca09bbc09811abbe800366204f.jpg",
|
| 559 |
+
"table_caption": [
|
| 560 |
+
"Table 1: Supervised. Comparing F1 Scores of our methods with supervised baselines on the SumMe [7] and TVSum [36] datasets using Standard, Augment, and Transfer data configurations. "
|
| 561 |
+
],
|
| 562 |
+
"table_footnote": [],
|
| 563 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">SumMe</td><td colspan=\"3\">TVSum</td></tr><tr><td>Standard AugmentTransfer Standard AugmentTransfer</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Zhang et al. (SumTransfer) [42]</td><td>40.9</td><td>41.3</td><td>38.5</td><td>-</td><td>=</td><td>1</td></tr><tr><td>Zhang et al. (LSTM) [43]</td><td>38.6</td><td>42.9</td><td>41.8</td><td>54.7</td><td>59.6</td><td>58.7</td></tr><tr><td>Mahasseni et al. (SUM-GANsup) [22]</td><td>41.7</td><td>43.6</td><td>-</td><td>56.3</td><td>61.2</td><td>=</td></tr><tr><td>Rochan et al. (SUM-FCN) [31]</td><td>47.5</td><td>51.1</td><td>44.1</td><td>56.8</td><td>59.2</td><td>58.2</td></tr><tr><td>Rochan et al. (SUM-DeepLab) [31]</td><td>48.8</td><td>50.2</td><td>45.0</td><td>58.4</td><td>59.1</td><td>57.4</td></tr><tr><td>Zhou et al. [47]</td><td>42.1</td><td>43.9</td><td>42.6</td><td>58.1</td><td>59.8</td><td>58.9</td></tr><tr><td> Zhang et al. [44]</td><td>=</td><td>44.9</td><td>1</td><td>=</td><td>63.9</td><td>1</td></tr><tr><td>Fajtl et al. [3]</td><td>49.7</td><td>51.1</td><td>-</td><td>61.4</td><td>62.4</td><td>1</td></tr><tr><td>Rochan et al. [30]</td><td>1</td><td>48.0</td><td>41.6</td><td></td><td>56.1</td><td>55.7</td></tr><tr><td>Chen et al. (V2TS) [1]</td><td>-</td><td>1</td><td>1</td><td>62.1</td><td>1</td><td>1</td></tr><tr><td>He et al. [9]</td><td>47.2</td><td>-</td><td>-</td><td>59.4</td><td>-</td><td>-</td></tr><tr><td>Park et al. (SumGraph) [26]</td><td>51.4</td><td>52.9</td><td>48.7</td><td>63.9</td><td>65.8</td><td>60.5</td></tr><tr><td>GoogleNet+bi-LSTM</td><td>38.5</td><td>42.4</td><td>40.7</td><td>53.9</td><td>59.6</td><td>58.6</td></tr><tr><td>ResNet+bi-LSTM</td><td>39.4</td><td>44.0</td><td>42.6</td><td>55.0</td><td>61.0</td><td>59.9</td></tr><tr><td>CLIP-Image+bi-LSTM</td><td>41.1</td><td>45.9</td><td>44.9</td><td>56.8</td><td>63.7</td><td>61.6</td></tr><tr><td>CLIP-Image+Video Caption+bi-LSTM</td><td>41.2</td><td>46.1</td><td>45.5</td><td>57.1</td><td>64.3</td><td>62.4</td></tr><tr><td>GoogleNet+Transformer</td><td>51.6</td><td>53.5</td><td>49.4</td><td>64.2</td><td>66.3</td><td>61.3</td></tr><tr><td>ResNet+Transformer</td><td>52.8</td><td>54.9</td><td>50.3</td><td>65.0</td><td>67.5</td><td>62.8</td></tr><tr><td>CLIP-Image+Transformer</td><td>53.5</td><td>55.3</td><td>51.0</td><td>65.5</td><td>68.1</td><td>63.4</td></tr><tr><td>CLIP-It: CLIP-Image+Video Caption+Transformer</td><td>54.2</td><td>56.4</td><td>51.9</td><td>66.3</td><td>69.0</td><td>65.5</td></tr></table>",
|
| 564 |
+
"bbox": [
|
| 565 |
+
171,
|
| 566 |
+
117,
|
| 567 |
+
828,
|
| 568 |
+
424
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "4 Experiments ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
440,
|
| 579 |
+
313,
|
| 580 |
+
458
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "In this section, we describe the experimental setup and evaluation of our method on two tasks: generic video summarization and query-focused video summarization. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
464,
|
| 590 |
+
823,
|
| 591 |
+
491
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 5
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "4.1 Generic Video Summarization ",
|
| 598 |
+
"text_level": 1,
|
| 599 |
+
"bbox": [
|
| 600 |
+
176,
|
| 601 |
+
500,
|
| 602 |
+
423,
|
| 603 |
+
515
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Generic video summarization involves generating a single general-purpose summary to describe the input video. Note that while prior works only use visual cues from the video, our method also allows for video captions as an input feature. For a fair comparison, we include ablations of our method that do not use any language cues and only the visual features used in earlier works [43]. ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
174,
|
| 612 |
+
518,
|
| 613 |
+
825,
|
| 614 |
+
573
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "Datasets. We evaluate our approach on two standard video summarization datasets (TVSum [36] and SumMe [7]) and on the generic summaries for UT Egocentric videos [16] provided by the QFVS dataset [33]. TVSum [36] consists of 50 videos pertaining to 10 categories (how to videos, news, documentary, etc) with 5 videos from each category, typically 1-5 minutes in length. SumMe [7] consists of 25 videos capturing multiple events such as cooking and sports, and the lengths of the videos vary from 1 to 6 minutes. In addition to training on each dataset independently, we follow prior work and augment training data with 39 videos from the YouTube dataset [2] and 50 videos from the Open Video Project (OVP) dataset [24]. YouTube dataset consists of news, sports and cartoon videos. OVP dataset consists of multiple different genres including documentary videos. These datasets are diverse in nature and come with different types of annotations, frame-level scores for TVSum and shot-level scores for SumMe. They are integrated to create the ground-truth using the procedure in [43]. The UT Egocentric dataset consists of 4 videos captured from head-mounted cameras. Each video is about 3-5 hours long, captured in a natural, uncontrolled setting and contains a diverse set of events. The QFVS dataset [33] provides ground-truth generic summaries for these 4 videos. The summaries were constructed by dividing the video into shots and asking 3 users to select the relevant shots. The final ground-truth is an average of annotations from all users. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
580,
|
| 624 |
+
825,
|
| 625 |
+
800
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 5
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "Note. All the datasets - YouTube [2], Open Video Project (OVP) dataset [24], TVSum [36], SumMe [7], and QFVS [32] were collected by the creators (cited) and consent for any personally identifiable information (PII) was ascertained by the authors where necessary. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
176,
|
| 634 |
+
808,
|
| 635 |
+
825,
|
| 636 |
+
849
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Data configuration for TVSum and SumMe. Following previous works [43, 42, 31, 26], we evaluate our approach in three different data settings: Standard, Augment, and Transfer. In the Standard setting, the training and test splits are from the same dataset (i.e. either TVSum or SumMe). For SumMe we use available splits, and for TVSum we randomly select $20 \\%$ of the videos for testing and construct 5 different splits and report an average result on all 5 splits. For the Augment setting, the training set from one dataset (e.g., TVSum) is combined with all the data from the remaining three datasets (e.g., SumMe, OVP, and YouTube). This setting yields the best performing models due to the additional training data. The Transfer setting is the most challenging of the three. It involves training a model on three datasets and evaluating on the fourth unseen dataset. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
856,
|
| 646 |
+
825,
|
| 647 |
+
911
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "table",
|
| 653 |
+
"img_path": "images/1e90156464a6e77f236a52b37e7699134f1d634fb362a051e16479788d1b376b.jpg",
|
| 654 |
+
"table_caption": [
|
| 655 |
+
"Table 2: Unsupervised. Comparing F1 Scores of our methods with unsupervised baselines on the SumMe [7] and TVSum [36] datasets using Standard, Augment, and Transfer data configurations. "
|
| 656 |
+
],
|
| 657 |
+
"table_footnote": [],
|
| 658 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">SumMe</td><td colspan=\"3\">TVSum</td></tr><tr><td colspan=\"6\">Standard AugmentTransfer Standard AugmentTransfer</td></tr><tr><td>Mahasseni et al. [22]</td><td>39.1</td><td>43.4</td><td></td><td>51.7</td><td>59.5</td><td></td></tr><tr><td>Yuan et al. [41]</td><td>41.9</td><td>1</td><td>=</td><td>57.6</td><td>1</td><td></td></tr><tr><td>Rochan et al. (SUM-FCNun sup) [31]</td><td>41.5</td><td>1</td><td>39.5</td><td>52.7</td><td>1</td><td>-</td></tr><tr><td>Rochan et al. [30]</td><td>47.5</td><td>=</td><td>41.6</td><td>55.6</td><td>=</td><td>55.7</td></tr><tr><td>He et al. [9]</td><td>46.0</td><td>47.0</td><td>44.5</td><td>58.5</td><td>58.9</td><td>57.8</td></tr><tr><td>Park et al. (SumGraph) [26]</td><td>49.8</td><td>52.1</td><td>47.0</td><td>59.3</td><td>61.2</td><td>57.6</td></tr><tr><td>GoogleNet+bi-LSTM</td><td>33.1</td><td>38.0</td><td>36.5</td><td>47.7</td><td>54.9</td><td>52.3</td></tr><tr><td>ResNet+bi-LSTM</td><td>34.5</td><td>40.1</td><td>39.6</td><td>51.0</td><td>56.2</td><td>53.8</td></tr><tr><td>CLIP-Image+bi-LSTM</td><td>35.7</td><td>41.0</td><td>41.4</td><td>52.8</td><td>58.7</td><td>56.0</td></tr><tr><td>CLIP-Image+Video Caption+bi-LSTM</td><td>36.9</td><td>42.4</td><td>42.5</td><td>53.5</td><td>59.4</td><td>57.6</td></tr><tr><td>GoogleNet+Transformer</td><td>50.0</td><td>52.7</td><td>47.6</td><td>59.9</td><td>62.1</td><td>58.4</td></tr><tr><td>ResNet+Transformer</td><td>50.8</td><td>53.9</td><td>49.3</td><td>61.1</td><td>63.0</td><td>59.9</td></tr><tr><td>CLIP-Image+Transformer</td><td>51.2</td><td>53.6</td><td>49.2</td><td>61.9</td><td>64.0</td><td>60.6</td></tr><tr><td>CLIP-It: CLIP-Image+Video Caption+Transformer</td><td>52.5</td><td>54.7</td><td>50.0</td><td>63.0</td><td>65.7</td><td>62.8</td></tr></table>",
|
| 659 |
+
"bbox": [
|
| 660 |
+
173,
|
| 661 |
+
117,
|
| 662 |
+
828,
|
| 663 |
+
348
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 6
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "table",
|
| 669 |
+
"img_path": "images/edbbe4b194ce3f4e335a9daf81d51972596e4b6ddfd4062e1716af3d656f231e.jpg",
|
| 670 |
+
"table_caption": [
|
| 671 |
+
"Table 3: Comparing F1 Scores for generic video summarization on the QFVS datase "
|
| 672 |
+
],
|
| 673 |
+
"table_footnote": [],
|
| 674 |
+
"table_body": "<table><tr><td>Supervised</td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>SubMod [6]</td><td>49.51</td><td>51.03</td><td>64.52</td><td>35.82</td><td>50.22</td></tr><tr><td>QFVS [33]</td><td>62.66</td><td>46.11</td><td>58.85</td><td>33.50</td><td>50.29</td></tr><tr><td>CLIP-Image + bi-LSTM ResNet +Transformer</td><td>65.43</td><td>56.55</td><td>68.63</td><td>40.06</td><td>57.67</td></tr><tr><td></td><td>66.97</td><td>58.32</td><td>70.10</td><td>43.31</td><td>59.67</td></tr><tr><td>CLIP-Image + Transformer</td><td>70.8</td><td>61.67</td><td>72.43</td><td>47.48</td><td>63.11</td></tr><tr><td>CLIP-It (Gen. Caption)</td><td>74.13</td><td>63.44</td><td>75.86</td><td>50.23</td><td>65.92</td></tr><tr><td>CLIP-It (GT Caption)</td><td>84.98</td><td>71.26</td><td>82.55</td><td>61.46</td><td>75.06</td></tr><tr><td> Unsupervised</td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>Quasi [46]</td><td>53.06</td><td>53.80</td><td>49.91</td><td>22.31</td><td>44.77</td></tr><tr><td>CLIP-Image + Transformer</td><td>65.44</td><td>57.21</td><td>65.10</td><td>41.63</td><td>57.35</td></tr><tr><td>CLIP-It (Gen. Caption)</td><td>67.02</td><td>59.48</td><td>66.43</td><td>44.19</td><td>59.28</td></tr><tr><td>CLIP-It (GT Caption)</td><td>73.90</td><td>66.83</td><td>75.44</td><td>52.31</td><td>67.12</td></tr></table>",
|
| 675 |
+
"bbox": [
|
| 676 |
+
253,
|
| 677 |
+
371,
|
| 678 |
+
740,
|
| 679 |
+
590
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "",
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
607,
|
| 689 |
+
825,
|
| 690 |
+
676
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 6
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Quantitative Results. We compare our method and its ablations to supervised video summarization baselines in Tab.1. We report F1 scores on the TVSum and SumMe datasets for all three data settings. Our full method, CLIP-It (CLIP-Image $+$ Video Caption $^ +$ Transformer), described in Sec. 3, outperforms state-of-the-art by a large margin on all three settings. Particularly, in the Transfer setting we outperform the previous state-of-the-art SumGraph [26] by $5 \\%$ on TVSum and $3 \\%$ on SumMe, indicating that our model is better than the baselines in generalizing to out-of-distribution data. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
683,
|
| 700 |
+
825,
|
| 701 |
+
766
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "To prove the effectiveness of each component of our model, we include comparisons to different ablations. In CLIP-Image+Transformer, we ablate the Language-Guided Attention module and directly pass the CLIP-Image features as input to the transformer. As seen, the performance drops by $2 \\%$ indicating that conditioning on CLIP language embeddings leads to better summaries. Substituting the Frame-Scoring Transformer with a Bidirectional LSTM in CLIP-Image+bi-LSTM and CLIP-Image $^ +$ Video Caption+bi-LSTM again results in a performance drop, thus highlighting the need for the Transformer module in our model. For a fair comparison with the baselines, in GoogleNet+Transformer we use the same GoogleNet features provided by Zhang et al. [43] and used by all the other baselines and do not include language features. This method still outperforms Sum",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
772,
|
| 711 |
+
825,
|
| 712 |
+
897
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "image",
|
| 718 |
+
"img_path": "images/7358c9804a60b78676570b2d26780d98322d1dee29fa09714b106bd270f41b48.jpg",
|
| 719 |
+
"image_caption": [
|
| 720 |
+
"Figure 3: Comparison of ground-truth summary to results from CLIP-Image $^ +$ Transformer and the full CLIP-It model (CLIP-Image $^ +$ Video Caption $^ +$ Transformer). The input is a recipe video. Without captions, the model assigns high scores to certain irrelevant frames such as scenes of the woman talking or eating which hurts the precision. With captions, the cross-attention mechanism ensures that frames with important actions and objects are assigned high scores. "
|
| 721 |
+
],
|
| 722 |
+
"image_footnote": [],
|
| 723 |
+
"bbox": [
|
| 724 |
+
176,
|
| 725 |
+
90,
|
| 726 |
+
823,
|
| 727 |
+
376
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 7
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "image",
|
| 733 |
+
"img_path": "images/3c1b4747417c0ee5ce5f793081633a4249bd4d0f0c0be562dedda1199fe5b01d.jpg",
|
| 734 |
+
"image_caption": [
|
| 735 |
+
"Figure 4: Qualitative result comparing the generic summary from CLIP-It with the ground-truth summary. The plots showing predicted and ground-truth frame-level scores are similar, indicating that frames that were given a high score in ground-truth were also assigned high scores by our model. "
|
| 736 |
+
],
|
| 737 |
+
"image_footnote": [],
|
| 738 |
+
"bbox": [
|
| 739 |
+
183,
|
| 740 |
+
449,
|
| 741 |
+
823,
|
| 742 |
+
672
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 7
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Graph [26]. Replacing the GoogleNet features with ResNet features results in a small performance improvement but CLIP-Image features prove to be most effective. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
733,
|
| 752 |
+
820,
|
| 753 |
+
761
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 7
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Tab. 2 compares F1 scores in the unsupervised setting to other unsupervised baselines. CLIP-It (CLIP-Image $+$ Video Caption+Transformer), outperforms the best performing baseline on all settings on both datasets. We again observe large performance improvements in the Transfer setting and notice that overall our unsupervised method performs almost as well as our supervised counterpart. In CLIP-Image+Transformer we ablate the language component which causes a drop in performance, thus proving that language cues are useful in the unsupervised setting as well. Other ablations yield similar results reiterating the need for each component of our method. We also follow Otani et al. [25] and report results on rank based metrics, Kendall’s $\\tau$ [14] and Spearman’s $\\rho$ [49] correlation coefficients in the Supp. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
173,
|
| 762 |
+
767,
|
| 763 |
+
825,
|
| 764 |
+
892
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 7
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "table",
|
| 770 |
+
"img_path": "images/14764633006cbbd0468cb459a47e92d35cb3c23edd4e58b2a63fd00bb96c188e.jpg",
|
| 771 |
+
"table_caption": [
|
| 772 |
+
"Table 4: Results on UT Egocentric dataset [16] "
|
| 773 |
+
],
|
| 774 |
+
"table_footnote": [],
|
| 775 |
+
"table_body": "<table><tr><td>Method</td><td>F-Measure</td><td>Recall</td></tr><tr><td colspan=\"3\">Supervised</td></tr><tr><td>Submod-V+Both et al. [27]</td><td>34.15</td><td>31.59</td></tr><tr><td>CLIP Image + Transformer</td><td>41.58</td><td>39.96</td></tr><tr><td>CLIP-It: CLIP Image + Gen. Video Caption + Transformer</td><td>44.70</td><td>43.28</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>52.10</td><td>50.76</td></tr><tr><td colspan=\"3\">Unsupervised</td></tr><tr><td>CLIP Image + Transformer</td><td>39.22</td><td>37.46</td></tr><tr><td>CLIP-It: CLIP Image + Gen.Video Caption + Transformer</td><td>42.10</td><td>40.65</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>49.98</td><td>47.91</td></tr><tr><td colspan=\"3\">Table 5: Results on TV Episodes dataset [16]</td></tr><tr><td>Method</td><td>F-Measure</td><td>Recall</td></tr><tr><td colspan=\"3\">Supervised</td></tr><tr><td>Submod-V+Sem. Rep. et al. [27]</td><td>40.90</td><td>37.02</td></tr><tr><td>CLIP Image+ Transformer</td><td>47.82</td><td>46.02</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption + Transformer</td><td>55.34</td><td>53.90</td></tr><tr><td colspan=\"3\">Unsupervised</td></tr><tr><td>CLIP Image + Transformer</td><td>45.77</td><td>44.01</td></tr><tr><td>CLIP-It: CLIP Image + GT Video Caption+ Transformer</td><td>53.42</td><td>52.50</td></tr></table>",
|
| 776 |
+
"bbox": [
|
| 777 |
+
214,
|
| 778 |
+
104,
|
| 779 |
+
779,
|
| 780 |
+
448
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Tab. 3 shows F1 scores for the generic setting on the QFVS Dataset [33]. Following [33], we run four rounds of experiments leaving out one video for testing and one for validation, while keeping the remaining two for training. Our method, CLIP-It (Gen. Captions) outperforms both supervised and unsupervised baselines by a large margin on all four videos, and particularly on Video 4, which happens to be the most difficult for all methods. Adding captions helps significantly improve $( 2 \\% )$ the summaries and outperforms the CLIP Image $^ +$ Transformer baseline. To see how well our model would perform if we had perfect captions, we also show results by using the ground-truth captions obtained from VideoSet [40]. Replacing CLIP-Image features with ResNet features causes a drop in performance. Likewise, replacing the Transformer with a bi-LSTM also hurts performance. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
173,
|
| 789 |
+
463,
|
| 790 |
+
825,
|
| 791 |
+
589
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 8
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "We include results of our method (1) without captions (2) using generated captions (3) using the ground truth captions provided by VideoSet [40] for UT Egocentric and TV Episodes datasets in Tables 4 and 5. As ground truth, we obtain 15 summaries for each video using the same greedy n-gram matching and ordered subshot selection procedures as previous work [27]. We follow the same procedure as in prior work [40, 27] for creating and evaluating text summaries from video summaries. Our method outperforms [27] in both the supervised and unsupervised settings on both datasets. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
173,
|
| 800 |
+
595,
|
| 801 |
+
825,
|
| 802 |
+
693
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 8
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Qualitative Results. We highlight the need to use language, specifically dense video captions, for constructing generic video summaries through a qualitative example in Fig. 3. The input is a video of a woman demonstrating how to make a chicken sandwich. The ground truth summary shows the scores computed by averaging the annotations from all users as in [43] and the keyframes that received high scores. Next we show the result from the baseline CLIP-Image+Transformer, which uses only visual features and no language input. The predicted scores show that the high scoring frames in the ground truth also receive a high score by our baseline, however a lot of irrelevant frames end up receiving a high score too. Thus, when the model finally picks the keyframes it ends up selecting frames where the person is talking or eating the sandwich (shown in red) which do not correspond to the key steps in the video. Adding language guidance via generated captions helps address this problem. The last row shows the captions generated by BMT [11]. The results shown are from our full CLIP-It model. The predicted scores are more similar to ground truth scores and the highest scoring keyframes are the same as the ground truth. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
698,
|
| 812 |
+
825,
|
| 813 |
+
755
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 8
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "table",
|
| 819 |
+
"img_path": "images/bf1ab8fad45ed422cb09bb2d772b5e4e5900b4e6dbf40f63aa8eb4fe634018e7.jpg",
|
| 820 |
+
"table_caption": [
|
| 821 |
+
"Table 6: Comparing F1 Scores of different methods on the QFVS dataset. "
|
| 822 |
+
],
|
| 823 |
+
"table_footnote": [],
|
| 824 |
+
"table_body": "<table><tr><td></td><td>Vid 1</td><td>Vid 2</td><td>Vid 3</td><td>Vid 4</td><td>Avg</td></tr><tr><td>SeqDPP[51</td><td>36.59</td><td>43.67</td><td>25.26</td><td>18.15</td><td>30.92</td></tr><tr><td>SH-DPP [32]</td><td>35.67</td><td>42.74</td><td>36.51</td><td>18.62</td><td>33.38</td></tr><tr><td>QFVS [33]</td><td>48.68</td><td>41.66</td><td>56.47</td><td>29.96</td><td>44.19</td></tr><tr><td>CLIP-Image + Query + bi-LSTM</td><td>54.47</td><td>48.59</td><td>62.81</td><td>38.64</td><td>51.13</td></tr><tr><td>ResNet + Query + Transformer</td><td>55.19</td><td>51.03</td><td>64.26</td><td>39.47</td><td>52.49</td></tr><tr><td>CLIP-It: CLIP-Image + Query + Transformer</td><td>57.13</td><td>53.60</td><td>66.08</td><td>41.41</td><td>54.55</td></tr></table>",
|
| 825 |
+
"bbox": [
|
| 826 |
+
192,
|
| 827 |
+
786,
|
| 828 |
+
802,
|
| 829 |
+
907
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 8
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "image",
|
| 835 |
+
"img_path": "images/8598abec91315572d62925e9e2ddce1b0bafa26350dcb4469546767f520beafd.jpg",
|
| 836 |
+
"image_caption": [
|
| 837 |
+
"Figure 5: Result of our method on the QFVS dataset. The first row shows some frames from the 4 hour long input video. Given the query \"book and chair\", Summary 1 shows some frames selected by our method. Summary 2 shows frames for the query \"Sun and Tree\". "
|
| 838 |
+
],
|
| 839 |
+
"image_footnote": [],
|
| 840 |
+
"bbox": [
|
| 841 |
+
186,
|
| 842 |
+
88,
|
| 843 |
+
826,
|
| 844 |
+
234
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 9
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
301,
|
| 854 |
+
825,
|
| 855 |
+
426
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Fig. 4 shows compares summaries generated by our method to the ground truth summary on a cooking video from the SumMe dataset. Predicted scores are the frame-wise scores predicted by CLIP-It and GT Scores are the scores computed from user annotations [43]. The top row (True Positives) shows high scoring keyframes which are chosen by both our method and the ground truth, and the green arrows point to the assigned scores. As we see, they are clear, distinct and represent key actions in the recipe. The bottom row (True Negatives) shows frames which are assigned a low score (shown by the red arrows) and are not part of the final summaries (both GT and predicted). E.g., the first frame is irrelevant and corresponds to a segment between key steps, while the second frame has poor lighting and its hard to tell what is being done. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
433,
|
| 865 |
+
825,
|
| 866 |
+
558
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 9
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "4.2 Query-Focused Video Summarization ",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
176,
|
| 876 |
+
602,
|
| 877 |
+
473,
|
| 878 |
+
617
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 9
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "In Query-Focused Video Summarization, the summarization process is conditioned on an input user query, thus, multiple summaries can be obtained for the same video using different input queries. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
176,
|
| 887 |
+
636,
|
| 888 |
+
823,
|
| 889 |
+
664
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 9
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Dataset. We evaluate our method on the QFVS dataset based on the UT Egocentric videos described earlier. The dataset consists of 46 queries for each of the four videos and user-annotated video summaries for each query. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
670,
|
| 899 |
+
825,
|
| 900 |
+
712
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 9
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Quantitative Results. In Tab. 6, we compare F1 scores of our method to 3 baselines, SH-DPP [32], Seq-DPP [5], and QFVS [33]. Following [33], we run four rounds of experiments leaving out one video for testing and one for validation, while keeping the remaining two for training. Our full model achieves an avg F1 score of $5 4 . 5 5 \\%$ outperforming the best baseline $( 4 4 . 1 9 \\% )$ by $10 \\%$ . We would like to point out that our method uses more recent image features compared to the baselines. At the same time, when switching from CLIP to ResNet image embedding, we still improve significantly over the baselines. We expect the improvement to also hold with weaker features (e.g., as demonstrated with GoogleNet results in Tab. 1, 2). ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
173,
|
| 909 |
+
718,
|
| 910 |
+
825,
|
| 911 |
+
829
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 9
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Qualitative Results. Fig. 5 shows a result on the QFVS dataset for UT Egocentric videos. The input is an egocentric video shot from a head-mounted camera and spans 4 hours. It consists of multiple events from a person’s day, such as reading books, working on the laptop, walking in the streets, and so on. Summary 1 and 2 show results from our CLIP-It method when the input query is “Book and chair” and “Sun and tree” respectively. The frames shown are frames assigned high-scores by our method. As seen, given the same input video, different queries yield different summaries. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
835,
|
| 921 |
+
825,
|
| 922 |
+
919
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 9
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "5 Discussion and Broader Impacts ",
|
| 929 |
+
"text_level": 1,
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
89,
|
| 933 |
+
475,
|
| 934 |
+
107
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 10
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "We introduced CLIP-It, a unified language-guided framework for generic and query focused video summarization. Video summarization is a relevant problem with many use-cases, and our approach provides greater flexibility to the users, allowing them to guide summarization with open-ended natural language queries. We envision potential positive impact from improved user experience if adopted on video platforms such as YouTube. We rely on an off-the-shelf video captioning model [11] and a large-scale vision-language model (CLIP [29]) which may have encoded some inappropriate biases that could propagate to our model. Our visual inspection of the obtained summarization results did not raise any apparent concerns. However, practitioners who wish to use our approach should be mindful of the sources of bias we have outlined above depending on the specific use case they are addressing. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
111,
|
| 944 |
+
825,
|
| 945 |
+
237
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 10
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Acknowledgements. We thank Arun Mallya for very helpful discussions and feedback. We’d also like to thank Huijuan Xu for feedback on the draft. This work was supported in part by DoD including DARPA’s XAI, LwLL, and SemaFor programs, as well as BAIR’s industrial alliance programs. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
242,
|
| 955 |
+
825,
|
| 956 |
+
285
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 10
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "References ",
|
| 963 |
+
"text_level": 1,
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
310,
|
| 967 |
+
266,
|
| 968 |
+
327
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 10
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "[1] Chen, B.C., Chen, Y.Y., Chen, F.: Video to text summary: Joint video summarization and captioning with recurrent neural networks. British Machine Vision Conference (BMVC) (2017) 3, 6 [2] De Avila, S.E.F., Lopes, A.P.B., da Luz Jr, A., de Albuquerque Araújo, A.: Vsumm: A mechanism designed to produce static video summaries and a novel evaluation method. Patt. Rec. Letters (2011) 6 \n[3] Fajtl, J., Sokeh, H.S., Argyriou, V., Monekosso, D., Remagnino, P.: Summarizing videos with attention. Asian Conference on Computer Vision (ACCV) (2018) 2, 3, 6 [4] Gabeur, V., Sun, C., Alahari, K., Schmid, C.: Multi-modal transformer for video retrieval. European Conference on Computer Vision (ECCV) (2020) 3 [5] Gong, B., Chao, W.L., Grauman, K., Sha, F.: Diverse sequential subset selection for supervised video summarization. Advances in Neural Information Processing Systems (NeurIPS) (2014) 2, 3, 9, 10 [6] Gygli, M., Grabner, H., Gool, L.V.: Video summarization by learning submodular mixtures of objectives. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 3, 7 [7] Gygli, M., Grabner, H., Riemenschneider, H., Gool, L.V.: Creating summaries from user videos. European Conference on Computer Vision (ECCV) (2014) 2, 3, 6, 7 \n[8] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016) 3, 5 [9] He, X., Hua, Y., Song, T., Zhang, Z., Xue, Z., Ma, R., Robertson, N., Guan, H.: Unsupervised video summarization with attentive conditional generative adversarial networks. ACM international conference on Multimedia (2019) 2, 6, 7 \n[10] Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural computation (1997) 3 \n[11] Iashin, V., Rahtu, E.: A better use of audio-visual cues: Dense video captioning with bi-modal transformer. British Machine Vision Conference (BMVC) (2020) 3, 5, 10, 11 \n[12] Kanehira, A., Gool, L.V., Ushiku, Y., Harada, T.: Viewpoint-aware video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2018) 3 \n[13] Kang, H.W., Matsushita, Y., Tang, X., Chen, X.Q.: Space-time video montage. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2006) 3 \n[14] Kendall, M.G.: The treatment of ties in ranking problems. Biometrika 33(3), 239–251 (1945) 8 \n[15] Lavancier, F., Møller, J., Rubak, E.: Determinantal point process models and statistical inference. Journal of the Royal Statistical Society: Series B: Statistical Methodology (2015) 3 \n[16] Lee, Y.J., Ghosh, J., Grauman, K.: Discovering important people and objects for egocentric video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2012) 3, 6, 9 \n[17] Lei, J., Wang, L., Shen, Y., Yu, D., Berg, T., Bansal, M.: Mart: Memory-augmented recurrent transformer for coherent video paragraph captioning. Association for Computational Linguistics (2020) 3 \n[18] Li, Y., Wang, L., Yang, T., Gong, B.: How local is the local diversity? reinforcing sequential determinantal point processes with dynamic ground sets for supervised video summarization. European Conference on Computer Vision (ECCV) (2018) 2, 3 \n[19] Liu, T., Kender, J.R.: Optimization algorithms for the selection of key frame sequences of variable length. European Conference on Computer Vision (ECCV) (2002) 3 \n[20] Lu, Z., Grauman, K.: Story-driven summarization for egocentric video. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2013) 3 \n[21] Ma, Y.F., Zhang, H.J.: A model of motion attention for video skimming. International Conference on Image Processing (ICIP) (2002) 2 \n[22] Mahasseni, B., Lam, M., Todorovic, S.: Unsupervised video summarization with adversarial lstm networks. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 3, 6, 7 \n[23] Ngo, C.W., Ma, Y.F., Zhang, H.J.: Automatic video summarization by graph modeling. IEEE International Conference on Computer Vision (ICCV) (2003) 3 \n[24] Open video project. https://open-video.org/ 6 \n[25] Otani, M., Nakashima, Y., Rahtu, E., Heikkilä, J.: Rethinking the evaluation of video summaries. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2019) 8 \n[26] Park, J., Lee, J., Kim, I.J., Sohn, K.: Sumgraph: Video summarization via recursive graph modeling. European Conference on Computer Vision (ECCV) (2020) 2, 3, 6, 7, 8 \n[27] Plummer, B.A., Brown, M., Lazebnik, S.: Enhancing video summarization via vision-language embedding. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 3, 9 \n[28] Potapov, D., Douze, M., Harchaoui, Z., Schmid, C.: Category-specific video summarization. European Conference on Computer Vision (ECCV) (2014) 3 \n[29] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020 (2021) 3, 5, 11 \n[30] Rochan, M., Wang, Y.: Video summarization by learning from unpaired data. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2019) 3, 5, 6, 7 \n[31] Rochan, M., Ye, L., Wang, Y.: Video summarization using fully convolutional sequence networks. European Conference on Computer Vision (ECCV) (2018) 2, 3, 5, 6, 7 \n[32] Sharghi, A., Gong, B., Shah, M.: Query-focused extractive video summarization. European Conference on Computer Vision (ECCV) (2016) 2, 3, 6, 9, 10 \n[33] Sharghi, A., Laurel, J.S., Gong, B.: Query-focused video summarization: Dataset, evaluation, and a memory network based approach. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2017) 2, 3, 6, 7, 9, 10 \n[34] Smith, M.A., Kanade, T.: Video skimming for quick browsing based on audio and image characterization. School of Computer Science, Carnegie Mellon University (1995) 2 \n[35] Smith, M.A., Kanade, T.: Video skimming and characterization through the combination of image and language understanding techniques. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (1997) 2 \n[36] Song, Y., Vallmitjana, J., Stent, A., Jaimes, A.: Tvsum: Summarizing web videos using titles. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 2, 3, 6, 7 \n[37] Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., Rabinovich, A.: Going deeper with convolutions. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2015) 5 \n[38] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I.: Attention is all you need. Advances in Neural Information Processing Systems (NeurIPS) (2017) 3, 4 \n[39] Wei, H., Ni, B., Yan, Y., Yu, H., Yang, X., Yao, C.: Video summarization via semantic attended networks. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2018) 3 \n[40] Yeung, S., Fathi, A., Fei-Fei, L.: Videoset: Video summary evaluation through text. arXiv preprint arXiv:1406.5824 (2014) 9 \n[41] Yuan, L., Tay, F.E., Li, P., Zhou, L., Feng, J.: Cycle-sum: Cycle-consistent adversarial lstm networks for unsupervised video summarization. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2019) 3, 7 \n[42] Zhang, K., Chao, W.L., Sha, F., Grauman, K.: Summary transfer: Examplar-based subset selection for video summarization. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016) 2, 3, 6 \n[43] Zhang, K., Chao, W.L., Sha, F., Grauman, K.: Video summarization with long short-term memory. European Conference on Computer Vision (ECCV) (2016) 2, 3, 4, 6, 7, 9, 10 \n[44] Zhang, K., Grauman, K., Sha, F.: Retrospective encoders for video summarization. European Conference on Computer Vision (ECCV) (2018) 2, 3, 6 \n[45] Zhao, B., Li, X., Lu, X.: Hierarchical recurrent neural network for video summarization. ACM international conference on Multimedia (2017) 3, 5 \n[46] Zhao, B., Xing, E.P.: Quasi real-time summarization for consumer videos. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2014) 7 \n[47] Zhou, K., Qiao, Y., Xiang, T.: Deep reinforcement learning for unsupervised video summarization with diversity-representativeness reward. The Association for the Advancement of Artificial Intelligence Conference (AAAI) (2018) 6 \n[48] Zhou, L., Zhou, Y., Corso, J.J., Socher, R., Xiong, C.: End-to-end dense video captioning with masked transformer. IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2018) 3 \n[49] Zwillinger, D., Kokoska, S.: Crc standard probability and statistics tables and formulae. CRC Press (1999) 8 ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
174,
|
| 977 |
+
333,
|
| 978 |
+
826,
|
| 979 |
+
917
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 10
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "",
|
| 986 |
+
"bbox": [
|
| 987 |
+
171,
|
| 988 |
+
94,
|
| 989 |
+
828,
|
| 990 |
+
919
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 11
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "",
|
| 997 |
+
"bbox": [
|
| 998 |
+
171,
|
| 999 |
+
92,
|
| 1000 |
+
826,
|
| 1001 |
+
251
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 12
|
| 1004 |
+
}
|
| 1005 |
+
]
|
parse/train/3ccoZ40Us0N/3ccoZ40Us0N_middle.json
ADDED
|
The diff for this file is too large to render.
See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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RETHINKING SAMPLING IN 3D POINT CLOUD GENERATIVE ADVERSARIAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this paper, we examine the long-neglected yet important effects of point sampling patterns in point cloud GANs. Through extensive experiments, we show that sampling-insensitive discriminators (e.g. PointNet-Max) produce shape point clouds with point clustering artifacts while sampling-oversensitive discriminators (e.g. PointNet++, DGCNN, PointConv, KPConv) fail to guide valid shape generation. We propose the concept of sampling spectrum to depict the different sampling sensitivities of discriminators. We further study how different evaluation metrics weigh the sampling pattern against the geometry and propose several perceptual metrics forming a sampling spectrum of metrics. Guided by the proposed sampling spectrum, we discover a middle-point sampling-aware baseline discriminator, PointNet-Mix, which improves all existing point cloud generators by a large margin on sampling-related metrics. We point out that, given that recent research has been focused on the generator design, the discriminator design needs more attention. Our work provides both suggestions and tools for building future discriminators. We will release the code to facilitate future research.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Point cloud, as the most common form of 3D sensor data, has been widely used in a variety of 3D vision applications due to its compact yet expressive nature and its amenability to geometric manipulations. It is natural to consider how to generate point cloud through deep learning approaches, which has been a popular research topic recently. The previous research efforts in the community have been mainly devoted to conditional generation of point clouds with 3D supervision. The condition could either be images (Fan et al., 2017; Groueix et al., 2018; Park et al., 2019) or partial point clouds (Li et al., 2019; Yang et al., 2018).
|
| 12 |
+
|
| 13 |
+

|
| 14 |
+
Figure 1: We visualize the behavior of different discriminators when judging four different chair point clouds. (a) and (b) are generated results, (c) and (d) are point clouds sampled using FPS and uniform sampling from a real chair surface. When training the discriminators on data like (d), different discriminators make distinct decisions on the point cloud realness forming a sampling spectrum ranging from sampling-insensitive, sampling-aware to sampling-oversensitive. We advocate samplingaware discriminators in the middle of the spectrum, which provide good guidance for fixing geometric flaws (a) and big sample artifacts (b) and tolerate subtle sampling differences between (c) and (d).
|
| 15 |
+
|
| 16 |
+
Generating 3D point clouds with GANs in an unsupervised manner is an important but less explored problem. 3D point cloud GAN learns to transform a random latent code into a 3D surface point cloud by playing an adversarial game. Its development is still in an early stage compared with 2D image GANs. While existing works such as (Achlioptas et al., 2018; Valsesia et al., 2018; Shu et al., 2019) have developed a variety of generators, they all use PointNet (Qi et al., 2017a) with max pooling (PointNet-Max) as their discriminator. PointNet, which is essentially a pointwise MLP followed by a global pooling operation, is too limited in capturing shape details for a successful GAN. However, advanced networks, e.g. PointNet++(Qi et al., 2017b), DGCNN(Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019), which leverage relative positions between points and hierarchical feature extraction, may not help. From our empirical study, we find they all fail to be a functioning discriminator. Understanding their failure mechanism and improving discriminator design are hence important and urgent.
|
| 17 |
+
|
| 18 |
+
To design a better discriminator, we first need to answer the following question: what should the discriminator examine for improving the generation quality? Or, even more fundamentally, what does it mean by the quality of generated point clouds?
|
| 19 |
+
|
| 20 |
+
Since a shape point cloud are the points sampled from an object surface, its quality should be evaluated from two perspectives: the depicted surface geometry and the point sampling. Arguably, geometry plays a decisive role and should be the main focus of a discriminator. However, when the generated point clouds have a good shape, there is still a full spectrum on how much a discriminator cares about the sampling patterns. We introduce the concept of Sampling Spectrum to depict the sampling sensitivity of discriminators, as illustrated in Figure 1. A sampling-insensitive discriminator (e.g. PointNet-Max) may ignore the point density variations as long as it perceives a good overall shape. Such a discriminator could identify big geometric flaws as shown in Figure 1 (a), but turns a blind eye to highly non-uniform density distribution, e.g. point clusters in Figure 1 (b). On the other extreme, a sampling-oversensitive discriminator (e.g. PointNet $^ { + + }$ , DGCNN, KPConv) can even tell the subtle difference in sampling patterns, e.g. between furthest point sampling (FPS) in Figure 1 (c) and uniform sampling in Figure 1 (d), and hence can be very narrow-minded about what a real point cloud should look like. A sampling-aware discriminator, e.g. PointNet-Mix/Attention, which lies in the middle of the spectrum, is able to identify density-related artifacts such as point clusters in Figure 1 (b), while not being too sensitive to different sampling patterns, such as Figure 1 (c) and (d).
|
| 21 |
+
|
| 22 |
+
Resembling the sampling spectrum of discriminators, we also examine the existing point-cloud GAN evaluation metrics from the perspective of sampling sensitivity and propose several perceptual metrics forming a Sampling Spectrum of evaluation metrics. Understanding how the metrics weigh between sampling and geometry is a prerequisite for evaluating point cloud GANs. Many of the existing sampling-insensitive metrics only evaluate the geometry factor of the generated point clouds shapes, which are blind to the obvious point clustering artifacts and uneven point density. We propose novel sampling-sensitive metrics to further complete the spectrum of point-cloud GAN evaluation metrics.
|
| 23 |
+
|
| 24 |
+
Guided by the proposed sampling spectrum of discriminators and evaluation metrics, experiments show that different discriminators in the spectrum could provide very different suggestions to improve a generator according to its sampling sensitivity. Sampling-insensitive discriminators, e.g. PointNetMax, is unaware of point density variations and hence its generated point cloud inevitably suffer from clustering artifacts, while sampling-oversensitive discriminators, e.g. PointNe $^ { + + }$ , DGCNN, KPConv, PointConv, simply fail to function as the discriminators and can generate much degraded point cloud shapes. We design a diagnostic “no generator” experiment to factor out the impact from generators and reveal that the gradients of sampling-oversensitive discriminators prioritize adjusting sampling patterns over producing better shape geometry. Picking a middle-point on the sampling spectrum, we discover a simple yet effective sampling-aware discriminator, PointNet-Mix, and find that it can supervise both shape generation and point density uniformity. It improves all existing generators by a large margin on sampling-related metrics. Surprisingly, we find that even the most naive fully-connected generator, coupled with PointNet-Mix, simply beats all the start-of-the-art point cloud GANs. This discovery conveys an important message to the community: instead of focusing on the generator design, people should invest more time into discriminator and seek for more powerful sampling-aware discriminators.
|
| 25 |
+
|
| 26 |
+
# 2 POINT CLOUD GAN LANDSCAPE
|
| 27 |
+
|
| 28 |
+
In this section, we review the current state of point cloud GAN covering the generators, the discriminators, and the evaluation metrics we are examining in this work.
|
| 29 |
+
|
| 30 |
+
# 2.1 POINT CLOUD GAN GENERATORS
|
| 31 |
+
|
| 32 |
+
Recent point cloud GAN works primarily focus on the generator design. The generator takes input a random noise $\cdot$ and outputs a point cloud $\boldsymbol { p } \in \mathbb { R } ^ { N \times 3 }$ . The existing generators can be categorized into two classes: fully-connected (FC) generators and graph convolutional generators. The first point cloud GAN, r-GAN (Achlioptas et al., 2018), simply uses an FC network as its generator. GraphCNN-GAN (Valsesia et al., 2018) and TreeGAN (Shu et al., 2019) are the rest two published works in this field that use graph convolutional generators. The two methods are very similar in principle. The main difference lies in how they build graphs. GraphCNN-GAN builds a dynamic $k$ -nn graph based upon feature space distance while TreeGAN enforces a tree structure throughout its sequential graph expansion and the messages can only be passed from ancestors vertices to descendants vertices.
|
| 33 |
+
|
| 34 |
+
Deformation-based decoders (Groueix et al., 2018; Yang et al., 2018) are widely used in the point cloud auto-encoder networks for 3D shape reconstruction. The decoders leverage Multiple-layer Perceptrons (MLP) to deform template surfaces into shape surfaces taking as inputs the concatenation of template point coordinates and the latent shape feature vectors. Though the decoders can truly act as generators for point cloud GANs, they have not yet been used in unconditioned point cloud GAN literature. Recently, Mo et al. (Mo et al., 2020) use deformation-based decoder as part generators for structure-conditioned point cloud GAN.
|
| 35 |
+
|
| 36 |
+
# 2.2 POINT CLOUD GAN DISCRIMINATORS
|
| 37 |
+
|
| 38 |
+
All existing works on unconditioned point cloud GANs use PointNet with max-pooling (PointNetMax) as their discriminators. The discriminator takes input a point cloud $p \in \mathbb { R } ^ { N \times 3 }$ and outputs a score from 0 to 1. PointNet learns a function $h$ that maps each point $p _ { i }$ in the point cloud to a per-point feature $h ( p _ { i } ) \in \mathbb { R } ^ { d }$ and then extracts a permutation-invariant global feature $F \in \mathbb { R } ^ { d }$ by pooling the per-point features across all points using a symmetric function $g$ , which can be max pooling, average pooling, etc. Namely, we have $F = \overline { { g } } ( \{ \dot { h ( p _ { 1 } ) } , h ( p _ { 2 } ) , \cdots , h ( \overline { { p _ { N } } } ) \} )$ .
|
| 39 |
+
|
| 40 |
+
PointNet-Max/Avg. Though $g$ can be any symmetric function, most existing works use maxpooling. In PointNet, the authors show that max-pooling outperforms average-pooling on 3D shape classification tasks. They further show that the global feature $F$ obtained from max-pooling is determined by only a sparse subset of the points, namely critical points $\mathcal { C } _ { S }$ , bringing PointNet-Max with robustness against small data perturbation and corruption. However, this property may limit its discriminative power on telling the density variations and classifying different sampling patterns. To investigate how different aggregation operations affect the sampling sensitivity and generation quality, we study the two common choices of the symmetric function $g$ , max-pooling, and average-pooling, in this paper. We will show in Sec. 3 that using different aggregation operations makes huge differences when adapting PointNet-based networks as point cloud GAN discriminators.
|
| 41 |
+
|
| 42 |
+
PointNet-Mix. By simply concatenating the max-pooling feature and the average pool feature, we obtain another permutation-invariant feature. We name this PointNet-Mix. Formally, $F _ { \mathrm { m i x } } =$ $[ \operatorname* { m a x } \{ h ( p _ { 1 } ) , . . . , h ( p _ { N } ) \}$ ; $\arg \{ h ( p _ { 1 } ) , . . . , h ( p _ { N } ) \} ] \in \mathbb { R } ^ { 2 d }$ . The mix-pooling operation is a special choice of the symmetric function $g$ . We will show in our experiments that PointNet-Mix, though simple, surprisingly improves the performance for most point cloud GANs by a large margin on sampling-aware metrics.
|
| 43 |
+
|
| 44 |
+
PointNet-Attention. A recent point cloud upsampling work (Li et al., 2019) incorporates a selfattention module into PointNet for its discriminator and shows improved point density in the upsampled point cloud. We denote this discriminator as PointNet-Attention. The self-attention module learns three separate MLPs to transform each $h ( p _ { i } )$ into $f ( p _ { i } ) , l ( p _ { i } ) , k ( p _ { i } ) \in \mathbb { R } ^ { d }$ correspondingly. Then an attention weight matrix is formed by $W =$ SoftMax $\left( [ f ( p _ { 1 } ) , . . . , f ( p _ { N } ) ] ^ { T } [ ( l ( p _ { 1 } ) , . . . , l ( p _ { N } ) ) ] \right) \ \in$ $\mathbb { R } ^ { N \times N }$ . A weighted features is then obtained through $w ( p _ { i } ) \ = \ h ( p _ { i } ) \ + \ W ^ { T } k ( p _ { i } )$ . The final aggregated features of PointNet-Attention is a max-pooling of the weighted feature, namely $F _ { \mathrm { a t t e n t i o n } } = \operatorname* { m a x } \{ w ( p _ { 1 } ) , . . . , w ( p _ { N } ) \}$ . Note that PointNet-Attention allows the per-point features to communicate with each other according to their similarity, which is more sensitive to sampling patterns than PointNet-Max. We investigate this strategy in our paper as well.
|
| 45 |
+
|
| 46 |
+
Discriminators beyond PointNet. Recently, there have been many works (Qi et al., 2017a; Li et al., 2018; Wang et al., 2019; Hermosilla et al., 2018; Thomas et al., 2019) extending PointNet to more advanced 3D deep learning architectures on point clouds. They improve PointNet by extracting more local or hierarchical geometric features via point cloud convolutions or point cloud graph learning. Though proven to be effective on shape classification and segmentation tasks, no published work examines adapting them as point cloud GAN discriminators. In this paper, we investigate four exemplar beyond-PointNet discriminators: PointNet $^ { + + }$ (Qi et al., 2017b), DGCNN (Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019).
|
| 47 |
+
|
| 48 |
+
# 2.3 POINT CLOUD GAN EVALUATION METRICS
|
| 49 |
+
|
| 50 |
+
Achlioptas et al. (Achlioptas et al., 2018) introduces two distance metrics in the Euclidean space for evaluating point cloud GAN: the coverage scores (COV) computing the fraction of the point clouds in $B$ that are closed to the point clouds in $A$ using either Earth Mover’s distance (EMD) or Chamfer distance (CD), and the Minimum matching distance (MMD) scores measuring the fidelity of $A$ with respect to $B$ using either EMD or CD. In the field of 2D image GAN, it is common to use perceptual metrics, such as the Frechét distance (Heusel et al., 2017) between real and fake Gaussian measures in the feature spaces, for evaluating the generated image results. Formally, Frechet Distance $= | | \mu _ { r } - \mu _ { g } | | ^ { 2 } + \operatorname { T r } ( \Sigma _ { r } + \Sigma _ { g } - 2 \left( \Sigma _ { r } \Sigma _ { g } \right) ^ { 1 / 2 } )$ , where $\mu$ and $\Sigma$ are the mean vector and the covariance matrix of the features calculated from either real or fake data distribution, and $\mathrm { T r }$ is the matrix trace. For point clouds, Shu et al. (Shu et al., 2019) proposes Frechét Point Cloud Distance (FPD), which uses the features extracted from a pre-trained PointNet-Max model. In this paper, we position the existing metrics on a sampling spectrum according to their sampling sensitivity and propose novel sampling-aware metrics to augment the spectrum.
|
| 51 |
+
|
| 52 |
+
# 3 SAMPLING SPECTRUM OF DISCRIMINATORS
|
| 53 |
+
|
| 54 |
+
While recent works propose many advanced generator improvements for point cloud GANs, we find that designing a good discriminator is of equal importance, if not more. In this section, we introduce the sampling spectrum of discriminators, on which we thoroughly examine the positions of different discriminators that explain their behaviors when training point cloud GANs.
|
| 55 |
+
|
| 56 |
+
# 3.1 SAMPLING SENSITIVITY OF DISCRIMINATORS
|
| 57 |
+
|
| 58 |
+
The sampling sensitivity of a discriminator depicts how much it responds to a change in the point density or sampling pattern of an input point cloud. We find it extremely hard to quantitatively measure this sensitivity given the difficulty of measuring changes in the sampling patterns. Naively using Euclidean metrics (e.g. CD or EMD) to measure the distance between two sampled point sets is not a solution, since given the same distance budget, the discriminator’s responses can be dramatically different depending on how the sampled points move. Instead, we can set landmarks in the continuous spectrum of sampling sensitivity by examining the discriminative power of the discriminators against different sampling patterns under a series of experiments from easy to hard. Specifically, we design two experiments to test whether a discriminator could tell clustering artifacts in point clouds and whether it could distinguish between FPS and uniform sampling patterns. Accordingly, we divide the spectrum into three regimes: sampling-insensitive/-aware/-oversensitive, as shown in Fig.1.
|
| 59 |
+
|
| 60 |
+
A sampling-insensitive discriminator does not respond to local point density changes if the overall shape remains roughly the same. This kind of discriminators can’t tell clustering artifacts, i.e. Fig.1 (b), and thus may cause the non-uniform density in the generated point clouds.
|
| 61 |
+
|
| 62 |
+
A sampling-aware discriminator can notice the significant point non-uniformity and is hence capable of supervising the generator to enforce a similar sampling distribution to the training data, while being ignorant to subtle changes when the sampling is already uniform in an intermediate scale. Such discriminator will judge Fig.1 (b) as fake but can’t tell the difference between Fig.1 (c) and (d).
|
| 63 |
+
|
| 64 |
+
A sampling-oversensitive discriminator can tell very subtle difference in the sampling patterns, e.g.
|
| 65 |
+
between FPS and uniform sampling, even if the underlying shapes are the same (Fig.1 (c) and (d)).
|
| 66 |
+
|
| 67 |
+
# 3.2 SAMPLING SENSITIVITY EXAMINATION RESULTS
|
| 68 |
+
|
| 69 |
+
We design diagnostic experiments to categorize point cloud GAN discriminators on the sampling spectrum: sampling-insensitive (PointNet-Max), sampling-aware (PointNet-Avg, PointNet-Mix, PointNet-Attention (Li et al., 2019)), and sampling-oversensitive (PointNet+ $^ { - + }$ , DGCNN, KPConv, PointConv).
|
| 70 |
+
|
| 71 |
+
The Discriminating Power against Clustering Artifacts. To examine whether the discriminators can tell clustering artifacts or not, we create a diagnostic classification dataset using the models from ShapeNet (Chang et al., 2015). Taking 100 chairs, we uniformly sample 2048 points from each shape, forming a set of real point clouds. To form a fake set of point clouds, for each chair, we first uniformly sample 1024 points, and then densely sample another 1024 points around a random position on the chair within a 0.1 radius. The real/fake point clouds are used as the labeled training dataset. We repeat the same process to generate a test dataset using a different set of 100 chairs.
|
| 72 |
+
|
| 73 |
+
<table><tr><td>Experiment</td><td>PN-Max</td><td>PN-Avg</td><td>PN-Mix</td><td>PN-Att</td><td>PN++</td><td>DGCNN</td><td>PointConv</td><td>KPConv</td></tr><tr><td>Clustering art.</td><td>56%/53%</td><td>98%/99%</td><td>97%/96%</td><td>94%/93%</td><td>100%/98%</td><td>100%/99%</td><td>100%/99%</td><td>100%/99%</td></tr><tr><td>FPS vs.uniform</td><td>50%/50%</td><td>50.3%/50%</td><td>51.5%/50%</td><td>50.1%/50%</td><td>100%/97%</td><td>100%/96%</td><td>100%/98%</td><td>100%/99%</td></tr><tr><td>ESS</td><td>0.03</td><td>0.49</td><td>0.46</td><td>0.43</td><td>0.95</td><td>0.95</td><td>0.97</td><td>0.99</td></tr></table>
|
| 74 |
+
|
| 75 |
+
Table 1: Evaluating the discriminating power of the discriminators against clustering artifacts and sutble change in sampling patterns along with their empirical sampling sensitivity (ESS). In each cell of the top two rows, the left shows the training accuracy while the right shows the test accuracy.
|
| 76 |
+
|
| 77 |
+
We supervisely train each discriminator to classify the real/fake point clouds. We train them 200 epochs until convergence. The training and test accuracies are shown in the first row of Table 1. Despite the huge density variation and the remarkable clustering artifacts, PointNet-Max is just barely better than a random guess while the rest of the discriminators are very successful in telling the fake from the real. This indicates that PointNet-Max is sampling-insensitive. Note that the discriminating power of a network towards certain artifacts is maximized under such supervised training scheme. A network will fail to identify such artifacts in an adversarial training scheme if it fails in a supervised training scheme. We will see in Sec. 5.2, point clouds generated by GAN using PointNet-Max as the discriminator indeed suffer from non-uniform density artifacts.
|
| 78 |
+
|
| 79 |
+
Our insight why PointNet-Avg/Mix can tell the artifacts but PointNet-Max fails is that the average pooling feature computes the center of the mass of the points in feature space and is hence aware to certain global non-uniform density distributions. PointNet-Attention leverages a learnable weighted averaging and is hence capable to identify the difference.
|
| 80 |
+
|
| 81 |
+
Distinguishing between FPS and Uniform Sampling. We construct another diagnostic dataset with real and fake data which are the same in their shapes but only differ in their sampling patterns. Specifically, we perform uniform sampling to generate real data and use FPS to generate fake data from 100 chairs. Figure 1 (c) and (d) illustrate the different sampling pattern outcomes.
|
| 82 |
+
|
| 83 |
+
We present the training and test accuracies in the second row of Table 1 and show that PointNet $^ { + + }$ , DGCNN, KPConv, and PointConv can perfectly distinguish the subtle difference in sampling patterns while the rest discriminators make no progress even on the training set. The experiment indicates that PointNet-Avg/Mix/Attention are sampling-aware while PointNet++, DGCNN, KPConv, and PointConv are sampling-oversensitive.
|
| 84 |
+
|
| 85 |
+
We believe, for PointNet+ $^ +$ , DGCNN, KPConv, and PointConv, their capability of distinguishing FPS from uniform sampling owes to their usage of relative point positions or edge information, which are highly sensitive to any change in sampling. We will show in Sec. 5.3 that their remarkable discriminating power on sampling patterns actually leads to the failures as functioning discriminators to train point cloud GANs.
|
| 86 |
+
|
| 87 |
+
Empirical Definition of Sampling Sensitivity Given the difficulty of measuring the change in sampling pattern, we would like to provide an empirical definition of sampling sensitivity of one discriminator according to its performance on the two experiments above: when the discriminator fails in telling clustering artifacts and telling the difference between FPS and uniform sampling pattern, its sampling sensitivity should be closed to 0; when the discriminator can tell clustering artifacts but can’t distinguish between FPS and uniform sampling, we want to assign it a sampling sensitivity closed to 0.5 ; when the discriminator can do both, we want to assign a sampling sensitivity closed to 1 to it. Based on this, we define empirical sampling sensitivity $\cdot$ as:
|
| 88 |
+
|
| 89 |
+
ESS = Acc(Tell clustering art.) $^ +$ Acc(Tell FPS from uniform sampling) $^ { - 1 }$ , where Acc denotes the test accuracy of an experiment. See Table 1 for results. Using this metric, we would form a continuous sampling sensitivity spectrum.
|
| 90 |
+
|
| 91 |
+
# 4 SAMPLING SPECTRUM OF EVALUATION METRICS
|
| 92 |
+
|
| 93 |
+
Similar to the discriminator design, it is very important to understand how different evaluation metrics weigh the differences in sampling patterns against geometry quality. Thus, we introduce the sampling spectrum of evaluation metrics, which exactly resembles the sampling spectrum of discriminators introduced in Sec. 3. On the spectrum, we have sampling-insensitive metrics that measure only the shape geometry and are ignorant of the sampling patterns, and sampling-sensitive metrics that measure both at the same time.
|
| 94 |
+
|
| 95 |
+
For perceptual metrics, i.e. Frechét distances in feature spaces, the sampling sensitivity of the metric purely depends on the sampling sensitivity of its feature extractor. Frechét distance measured in different feature spaces may respond very differently to changes in point density and sampling patterns. In this work, we examine three Frechét distance metrics that extract features using PointNetMax, PointNet-Mix, and DGCNN, respectively. We denote them as Frechét PointNet-Max Distance (FPD-Max), Frechét PointNet-Mix Distance (FPD-Mix), and Frechét DGCNN Distance (FGD). We pretrain all the three feature extraction networks on ModelNet40 (Wu et al., 2015) shape classification.
|
| 96 |
+
|
| 97 |
+
Table 2: Examining sampling sensitivity of evaluation metrics.
|
| 98 |
+
|
| 99 |
+
<table><tr><td>Data</td><td>FPD-Mix↓</td><td>FPD-Max↓</td><td>FGD↓</td><td>MMD-E↓</td><td>MMD-C↓</td><td>COV-E↑</td><td>COV-C↑</td></tr><tr><td>Uniformre-sampling</td><td>0.1153</td><td>0.0926</td><td>0.8141</td><td>0.1104</td><td>0.00145</td><td>70.69</td><td>72.16</td></tr><tr><td>Farthest point sampling</td><td>0.1700</td><td>0.1558</td><td>1.8833</td><td>0.1064</td><td>0.00137</td><td>67.74</td><td>69.36</td></tr><tr><td>Biased sampling</td><td>2.8631</td><td>0.3524</td><td>9.6719</td><td>0.2469</td><td>0.00145</td><td>23.12</td><td>71.28</td></tr></table>
|
| 100 |
+
|
| 101 |
+
To examine the sampling sensitivity of FPD-Mix/Max and FGD, we create several copies of the training split of our ShapeNet chair dataset (see Sec.5.1), each of which uses a different sampling strategy to obtain the shape point clouds. The reference one used as the ground truth is using uniform sampling. Then we consider 1) uniform sampling with a different random seed; 2) FPS; and 3) biased sampling with clustered artifacts (as described in Sec. 3.2). We use all the available metrics to evaluate their distances to the ground truth data. The results are shown in Table 2.
|
| 102 |
+
|
| 103 |
+
We observe that the Frechét distance metrics share the same sampling sensitivity of their corresponding discriminators. For example, since PointNet-Max is sampling-insensitive, FPD-Max remains very low even on biased sampling data, hence FPD-Max serves as a perceptual geometry metric, which is ignorant to sampling patterns. Similarly, we find that FPD-Mix is sampling-aware since it clearly detects the biased sampling patterns while not being able to distinguish the uniform sampling and FPS, while FGD is sampling-oversensitive in that it can tell apart FPS and uniform sampling.
|
| 104 |
+
|
| 105 |
+
For Euclidean distance metrics, results in Table 2 show that COV-EMD and MMD-EMD are samplingaware, which is intuitively reasonable since EMD enforces a one-to-one matching and is aware of the point density, while COV-CD and MMD-CD are sampling-insensitive.
|
| 106 |
+
|
| 107 |
+
# 5 EXPERIMENTS
|
| 108 |
+
|
| 109 |
+
Aware of both the sampling spectrums, we conduct experiments to further evaluate the performance of point cloud GANs under various evaluation metrics. We show that the point cloud GANs using sampling-insensitive discriminators may produce point clustering artifacts, while samplingoversensitive discriminators fail to supervise point cloud GAN training at all. We further devise a diagnostic "no-generator" experiment that factors out the generators to better illustrate our discoveries on discriminators. More interesting, we find that the simple PointNet-Mix paired of any generator, even with the most naive fully-connected one, achieves the state-of-the-art performance.
|
| 110 |
+
|
| 111 |
+
# 5.1 SETTING AND DATASETS
|
| 112 |
+
|
| 113 |
+
We provide a thorough comparison of all the discriminators investigated in Sec.3 combining with all the available generators in the published literature, including the FC generator proposed in rGAN (Achlioptas et al., 2018), and graph convolutional generators used in TreeGAN (Shu et al., 2019). We also add a deformation-based generator into the comparison given its popularity for supervised point cloud reconstruction (Groueix et al., 2018; Yang et al., 2018).
|
| 114 |
+
|
| 115 |
+
We use two datasets to evaluate the GANs. One is a single-category dataset containing point clouds sampled from all 6,778 chair meshes in ShapeNet (Chang et al., 2015). The other is a multi-category dataset combining shapes from airplane, car, chair, rifle, sofa, table, vessel categories in ShapeNet. The multi-category dataset contains 34,313 shapes in total. We uniformly sample 2048 points from each shape to form the two datasets. We follow the $8 5 \% / 5 \% / 1 0 \%$ train/validation/test split in (Achlioptas et al., 2018) and use WGAN-gp (Gulrajani et al., 2017) for the GAN training, similar to previous works (Achlioptas et al., 2018; Valsesia et al., 2018; Shu et al., 2019).
|
| 116 |
+
|
| 117 |
+
# 5.2 EVALUATING POINTNET-BASED DISCRIMINATORS WITH VARIOUS GENERATORS
|
| 118 |
+
|
| 119 |
+
We report the performance for point cloud GANs that combine PointNet-Max/Min/Attention discriminators and FC/Deform/TreeGAN/Graph-CNN generators in Table 3. We observe that GANs using PointNet-Mix as the discriminator outperform the ones using PointNet-Max/Attention across all different generators. On sampling-aware/sensitive metrics (i.e. FPD-Mix, FGD, MMD-EMD, COV-EMD), PointNet-Mix is always significantly better than PointNet-Max and is better than PointNet-Attention mainly on FPD-Mix and FGD. Regarding geometry quality evaluated using sampling-insensitive metrics (i.e. FPD-Max, MMD-CD, COV-CD), PointNet-Mix is always significantly better than PointNet-Attention on FPD-Max and COV-CD while remaining on a par with PointNet-Max.
|
| 120 |
+
|
| 121 |
+
Table 3: Evaluating PointNet-based discriminators with different generators. We observe that PointNet-Mix can significantly improve all sampling-aware/sensitive metric, including FPD-Mix, FGD, MMD-EMD, COV-EMD for all the generators. When paired with FC generator, PointNet-Mix achieves the best performance. We include PointFlow(Yang et al., 2019) and Oracle for a comparison.
|
| 122 |
+
|
| 123 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>Generator</td><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=1>FPD-Mix↓</td><td rowspan=1 colspan=1>FPD-Max↓</td><td rowspan=1 colspan=1>FGD↓</td><td rowspan=1 colspan=1>MMD-E↓</td><td rowspan=1 colspan=1>MMD-C↓</td><td rowspan=1 colspan=1>COV-E↑</td><td rowspan=1 colspan=1>COV-C↑</td></tr><tr><td rowspan=10 colspan=1>Chair</td><td rowspan=2 colspan=1>FCFC</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>1.5710.184</td><td rowspan=2 colspan=1>0.2110.209</td><td rowspan=1 colspan=1>7.030</td><td rowspan=1 colspan=1>0.1017</td><td rowspan=1 colspan=1>0.00164</td><td rowspan=1 colspan=1>23.56</td><td rowspan=1 colspan=1>72.75</td></tr><tr><td rowspan=1 colspan=1>2.124</td><td rowspan=1 colspan=1>0.0674</td><td rowspan=1 colspan=1>0.00196</td><td rowspan=1 colspan=1>73.64</td><td rowspan=1 colspan=1>74.96</td></tr><tr><td rowspan=7 colspan=1>FCDeformDeformDeformTreeGANTreeGANGraph-CNN</td><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.635</td><td rowspan=1 colspan=1>0.672</td><td rowspan=1 colspan=1>4.971</td><td rowspan=1 colspan=1>0.1156</td><td rowspan=1 colspan=1>0.00160</td><td rowspan=1 colspan=1>68.92</td><td rowspan=1 colspan=1>70.54</td></tr><tr><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>0.9130.534</td><td rowspan=2 colspan=1>0.2680.373</td><td rowspan=1 colspan=1>5.602</td><td rowspan=2 colspan=1>0.09080.0695</td><td rowspan=2 colspan=1>0.002010.00200</td><td rowspan=2 colspan=1>68.576.29</td><td rowspan=2 colspan=1>72.6175.11</td></tr><tr><td rowspan=1 colspan=1>2.836</td></tr><tr><td rowspan=4 colspan=1>AttentionMaxMixMax</td><td rowspan=1 colspan=1>0.696</td><td rowspan=1 colspan=1>0.755</td><td rowspan=1 colspan=1>2.987</td><td rowspan=1 colspan=1>0.1141</td><td rowspan=1 colspan=1>0.00160</td><td rowspan=1 colspan=1>68.77</td><td rowspan=1 colspan=1>69.36</td></tr><tr><td rowspan=3 colspan=1>1.4420.2931.034</td><td rowspan=1 colspan=1>0.654</td><td rowspan=2 colspan=1>7.8084.032</td><td rowspan=2 colspan=1>0.09620.0704</td><td rowspan=2 colspan=1>0.001910.00211</td><td rowspan=3 colspan=1>24,7474.8248.90</td><td rowspan=3 colspan=1>73.4978.7963.18</td></tr><tr><td rowspan=1 colspan=1>0.334</td></tr><tr><td rowspan=1 colspan=1>0.981</td><td rowspan=1 colspan=1>7.494</td><td rowspan=1 colspan=1>0.0812</td><td rowspan=1 colspan=1>0.00191</td></tr><tr><td rowspan=1 colspan=2>PointFlowOracle</td><td rowspan=1 colspan=1>1.7820.088</td><td rowspan=1 colspan=1>1.4050.093</td><td rowspan=1 colspan=1>3.2560.814</td><td rowspan=1 colspan=1>0.13350.0594</td><td rowspan=1 colspan=1>0.001900.00165</td><td rowspan=1 colspan=1>71.7679.56</td><td rowspan=1 colspan=1>71.7379.69</td></tr><tr><td rowspan=9 colspan=1>Multi-Cat</td><td rowspan=3 colspan=1>FCFCFC</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=1 colspan=1>1.553</td><td rowspan=1 colspan=1>0.354</td><td rowspan=1 colspan=1>6.981</td><td rowspan=1 colspan=1>0.0842</td><td rowspan=1 colspan=1>0.00153</td><td rowspan=1 colspan=1>35.16</td><td rowspan=1 colspan=1>64.16</td></tr><tr><td rowspan=1 colspan=1>0.255</td><td rowspan=1 colspan=1>0.285</td><td rowspan=1 colspan=1>2.550</td><td rowspan=1 colspan=1>0.0656</td><td rowspan=2 colspan=1>0.001840.00134</td><td rowspan=2 colspan=1>73.572.19</td><td rowspan=2 colspan=1>72.1669.63</td></tr><tr><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.414</td><td rowspan=1 colspan=1>0.453</td><td rowspan=1 colspan=1>4.234</td><td rowspan=1 colspan=1>0.1188</td></tr><tr><td rowspan=5 colspan=1>DeformDeformDeformTreeGANTreeGAN</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=1 colspan=1>1.072</td><td rowspan=1 colspan=1>0.633</td><td rowspan=1 colspan=1>3.845</td><td rowspan=1 colspan=1>0.0799</td><td rowspan=1 colspan=1>0.00179</td><td rowspan=1 colspan=1>62.5</td><td rowspan=1 colspan=1>64.5</td></tr><tr><td rowspan=1 colspan=1>0.614</td><td rowspan=1 colspan=1>0.349</td><td rowspan=1 colspan=1>2.451</td><td rowspan=1 colspan=1>0.0670</td><td rowspan=1 colspan=1>0.00191</td><td rowspan=1 colspan=1>70.83</td><td rowspan=2 colspan=1>68.8369.60</td></tr><tr><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.616</td><td rowspan=1 colspan=1>0.720</td><td rowspan=1 colspan=1>2.531</td><td rowspan=1 colspan=1>0.1113</td><td rowspan=1 colspan=1>0.00141</td><td rowspan=1 colspan=1>72.04</td></tr><tr><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>1.7140.388</td><td rowspan=1 colspan=1>0.437</td><td rowspan=1 colspan=1>6.342</td><td rowspan=1 colspan=1>0.1093</td><td rowspan=1 colspan=1>0.00158</td><td rowspan=2 colspan=1>25.3372.66</td><td rowspan=2 colspan=1>67.071.0</td></tr><tr><td rowspan=1 colspan=1>0.420</td><td rowspan=1 colspan=1>4.300</td><td rowspan=1 colspan=1>0.0699</td><td rowspan=1 colspan=1>0.00184</td></tr><tr><td rowspan=1 colspan=2>Oracle</td><td rowspan=1 colspan=1>0.131</td><td rowspan=1 colspan=1>0.177</td><td rowspan=1 colspan=1>0.673</td><td rowspan=1 colspan=1>0.06012</td><td rowspan=1 colspan=1>0.00124</td><td rowspan=1 colspan=1>77.14</td><td rowspan=1 colspan=1>77.57</td></tr></table>
|
| 124 |
+
|
| 125 |
+
In Figure 2, we present the generated point clouds for all the experiments with color-coding for the local point density. We see that the generators trained using PointNet-Max usually suffer from non-uniform density, except for the deformation generator. On the chair class, points are usually clustering around the seat area while being sparse at the back. On the contrary, PointNet-Mix enforces a globally uniform point density and hence greatly improves the visual quality of the generated point clouds. PointNet-Attention is in the between.
|
| 126 |
+
|
| 127 |
+
With PointNet-Mix, we observe that the most naive FC generator works the best outperforming the previously state-of-the-state generators on almost of metrics. This showcases the importance of being sampling-aware but not sampling-insensitive/oversensitive as a discriminator. It also suggests that future works may focus on designing more powerful sampling-aware discriminators.
|
| 128 |
+
|
| 129 |
+
# 5.3 DIAGNOSING FAILURES FOR VARIOUS DISCRIMINATORS
|
| 130 |
+
|
| 131 |
+
Observing that the discriminator forms the bottleneck of the point cloud GAN, it is important to examine whether advanced networks, e.g. PointNet+ $^ +$ (Qi et al., 2017b), DGCNN (Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019) can outperform PointNet-based discriminator.
|
| 132 |
+
|
| 133 |
+
Surprisingly, we fail to observe any of them ever to be successful to train a GAN in our extensive experiments, in which we perform a systematic search, including varying generator architecture, changing hyperparameters (e.g. the number of layers and parameters in discriminator, learning rate), whether use batch norm, etc. During GAN training, we observe the four advanced discriminator behave very similarly: they are very discriminative in the sense that the gaps between the real and fake scores remain significantly large, but the quality of the generated point clouds stays very bad. The contradictory behaviors seem unreasonable at the first glance: how can a discriminator be very discriminative but teach nothing to the generator? Thus, we design a diagnostic "no generator" experiment to examine the underlying reasons.
|
| 134 |
+
|
| 135 |
+
No Generator Experiments. During GAN training, the gradients from discriminator output scores back-propagate to the generated point clouds and then further back-propagate to the weights of the generator to update the generator. We design a diagnostic experiment that removes the generator and examines whether the discriminator gradients are informative enough for supervising point cloud GANs.
|
| 136 |
+
|
| 137 |
+
Concretely, we take $\cdot$ real chairs as real data and we randomly initialize $M$ learnable point clouds $p \in \mathbb { R } ^ { N \times 3 }$ with i.i.d Gaussian noises $\cdot$ . For each training iteration, we sample $\cdot$ point clouds from the real dataset as the real data and sample $\cdot$ point clouds from the learnable point
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 2: Visualization of point clouds generated by different methods. We show generated point clouds in few exemplar shapes for a fair and easier comparison regarding their sampling quality and geometry quality. We color-code the local point density that ranges from sparse (dark blue) to dense (light yellow).
|
| 143 |
+
Figure 3: The diagnostic "no generator" experiment results. On the left, we show exemplar point clouds generated by different discriminators. On the right, we plot the training curves for the experiments. The $x$ - and $y$ -axis respectively represent training iterations and Wasserstein estimates.
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Discriminator</td><td>FPD-Mix↓</td><td>FPD-Max↓</td><td>FGD↓</td><td>MMD-E↓</td><td>MMD-C↓</td><td>COV-E↑</td><td>COV-C↑</td></tr><tr><td>PointNet-Max</td><td>3.828</td><td>2.456</td><td>19.279</td><td>0.1039</td><td>0.00287</td><td>26</td><td>56</td></tr><tr><td>PointNet-Avg</td><td>19.640</td><td>19.604</td><td>39.793</td><td>0.1154</td><td>0.00642</td><td>32</td><td>12</td></tr><tr><td>PointNet-Mix</td><td>1.835</td><td>2.208</td><td>13.197</td><td>0.0898</td><td>0.00331</td><td>50</td><td>51</td></tr><tr><td>PointNet-Attention</td><td>1.350</td><td>1.642</td><td>12.359</td><td>0.1622</td><td>0.00271</td><td>52</td><td>48</td></tr><tr><td>PointNet++</td><td>15.081</td><td>14.187</td><td>33.958</td><td>0.1155</td><td>0.00503</td><td>19</td><td>37</td></tr><tr><td>DGCNN</td><td>10.629</td><td>9.939</td><td>14.882</td><td>0.0932</td><td>0.00396</td><td>46</td><td>48</td></tr><tr><td>KPConv</td><td>41.15</td><td>49.96</td><td>57.32</td><td>0.2695</td><td>0.01135</td><td>6</td><td>2.5</td></tr><tr><td>PointConv</td><td>27.69</td><td>27.05</td><td>46.82</td><td>0.2832</td><td>0.00721</td><td>3</td><td>8</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 4: Quantitative evaluation for the diagnostic "no generator" experiments. We see that PointNet-Max/Mix/Attention are successful while PointNetAvg/PointNet++/DGCNN/KPConv/PointConv fail.
|
| 148 |
+
|
| 149 |
+
clouds as the fake data. Then, we conduct adversarial training where the discriminator gradients directly update the location of each points in the learnable point clouds. We adopt the same training protocol and losses as experiments in Sec. 5.2. The goal of this "no generator" experiment is to see whether the discriminator can modify the point clouds to approximate the real shapes, or in other words, we factorize the impact from generator architectures and only focus whether the gradients from discriminators can guide shape generation. Here $M = 1 0 0$ , $\cdot$ , and $B = 3 2$ . We train each experiment for 10,000 epoches until convergence.
|
| 150 |
+
|
| 151 |
+
Results and Analysis. Table 4 summarizes the results and Figure 3 (left) shows exemplar generated point clouds. We clearly see that only PointNet-Max/Mix/Attention can successfully modify the learnable point clouds to get high quality shapes, while PointNet $^ { + + }$ /DGCNN/KPConv/PointConv/PointNetAvg produce much worse results. Figure 3 (right) presents the training curves of the Wasserstein estimates, which essentially describe the gap between the real and fake scores. The large score gaps for PointNet $^ { + + }$ , DGCNN and KPConv throughout the training indicate the two models are very discriminative in telling apart the fake samples from the real data. However, their gradients simply don’t help improve the learned point clouds. Note that both of them leverage relative point positions/edge information during their feature extraction, which leads to a huge amount of gradients flowing along the surface direction focusing on changing sampling patterns instead of supervising shape geometry. As a suggestion, for developing future discriminators, people may need to avoid using the relative position features. For PointNet-Avg, the failure is simply because the discriminating power is not sufficient, evident from the low Wasserstein estimates. Note that training such "no generator" experiment shares a similar flavor to the SGD sampling in introspective CNN(Jin et al., 2017).
|
| 152 |
+
|
| 153 |
+
# 6 CONCLUSION AND SUGGESTIONS FOR FUTURE DISCRIMINATOR DESIGN
|
| 154 |
+
|
| 155 |
+
In this work, we study the importance of sampling for 3D point cloud GAN design. We propose the sampling spectrum of discriminators and evaluation metrics that provide insights on the behaviors of point cloud GANs. We propose several empirical experiments for identifying the sampling sensitivity of a discriminator or an evaluation metric. Experiments indicate that, no matter what generator is employed, a sampling-insensitive discriminator, e.g. the commonly used PointNet-Max, will produce point cloud shapes with non-uniform density and clustering artifacts, while a sampling-oversensitive discriminator (e.g. PointNet+ $^ +$ , DGCNN, PointConv, KPConv) will lead to disastrous failures when adapting them to training point cloud GANs. Interestingly, a simple PointNet-Mix baseline coupled with the most naive fully-connected generator achieves the best performance, indicating that the current bottleneck of point cloud GAN is on the discriminator side. For future discriminators, we suggest they should be more discriminative in shape and aware but not oversensitive to sampling patterns. For the sanity check of any novel discriminators, one can leverage our proposed "no generator" experiment.
|
| 156 |
+
|
| 157 |
+
# REFERENCES
|
| 158 |
+
|
| 159 |
+
Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds, 2018. URL https://openreview.net/forum? id=BJInEZsTb.
|
| 160 |
+
|
| 161 |
+
Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
|
| 162 |
+
|
| 163 |
+
Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 605–613, 2017.
|
| 164 |
+
|
| 165 |
+
Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 216–224, 2018.
|
| 166 |
+
|
| 167 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017.
|
| 168 |
+
|
| 169 |
+
Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vázquez, Àlvar Vinacua, and Timo Ropinski. Monte carlo convolution for learning on non-uniformly sampled point clouds. In SIGGRAPH Asia 2018 Technical Papers, pp. 235. ACM, 2018.
|
| 170 |
+
|
| 171 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, pp. 6626–6637, 2017.
|
| 172 |
+
|
| 173 |
+
Long Jin, Justin Lazarow, and Zhuowen Tu. Introspective classification with convolutional nets. In Advances in Neural Information Processing Systems, pp. 823–833, 2017.
|
| 174 |
+
|
| 175 |
+
Ruihui Li, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. Pu-gan: a point cloud upsampling adversarial network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 7203–7212, 2019.
|
| 176 |
+
|
| 177 |
+
Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in neural information processing systems, pp. 820–830, 2018.
|
| 178 |
+
|
| 179 |
+
Kaichun Mo, He Wang, Xinchen Yan, and Leonidas Guibas. PT2PC: Learning to generate 3d point cloud shapes from part tree conditions. arXiv preprint arXiv:2003.08624, 2020.
|
| 180 |
+
|
| 181 |
+
Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 165–174, 2019.
|
| 182 |
+
|
| 183 |
+
Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017a.
|
| 184 |
+
|
| 185 |
+
Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pp. 5099–5108, 2017b.
|
| 186 |
+
|
| 187 |
+
Dong Wook Shu, Sung Woo Park, and Junseok Kwon. 3d point cloud generative adversarial network based on tree structured graph convolutions. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3859–3868, 2019.
|
| 188 |
+
|
| 189 |
+
Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, François Goulette, and Leonidas J Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6411–6420, 2019.
|
| 190 |
+
|
| 191 |
+
Diego Valsesia, Giulia Fracastoro, and Enrico Magli. Learning localized generative models for 3d point clouds via graph convolution. 2018.
|
| 192 |
+
|
| 193 |
+
Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 38(5): 146, 2019.
|
| 194 |
+
|
| 195 |
+
Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9621–9630, 2019.
|
| 196 |
+
|
| 197 |
+
Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1912–1920, 2015.
|
| 198 |
+
|
| 199 |
+
Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. In Proceedings of the IEEE International Conference on Computer Vision, pp. 4541–4550, 2019.
|
| 200 |
+
|
| 201 |
+
Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 206–215, 2018.
|
parse/train/784_F-WCW46/784_F-WCW46_content_list.json
ADDED
|
@@ -0,0 +1,1179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "RETHINKING SAMPLING IN 3D POINT CLOUD GENERATIVE ADVERSARIAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
725,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
398,
|
| 21 |
+
195
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
232,
|
| 32 |
+
544,
|
| 33 |
+
247
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In this paper, we examine the long-neglected yet important effects of point sampling patterns in point cloud GANs. Through extensive experiments, we show that sampling-insensitive discriminators (e.g. PointNet-Max) produce shape point clouds with point clustering artifacts while sampling-oversensitive discriminators (e.g. PointNet++, DGCNN, PointConv, KPConv) fail to guide valid shape generation. We propose the concept of sampling spectrum to depict the different sampling sensitivities of discriminators. We further study how different evaluation metrics weigh the sampling pattern against the geometry and propose several perceptual metrics forming a sampling spectrum of metrics. Guided by the proposed sampling spectrum, we discover a middle-point sampling-aware baseline discriminator, PointNet-Mix, which improves all existing point cloud generators by a large margin on sampling-related metrics. We point out that, given that recent research has been focused on the generator design, the discriminator design needs more attention. Our work provides both suggestions and tools for building future discriminators. We will release the code to facilitate future research. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
766,
|
| 44 |
+
462
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
453,
|
| 54 |
+
571,
|
| 55 |
+
465
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
503,
|
| 66 |
+
336,
|
| 67 |
+
518
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Point cloud, as the most common form of 3D sensor data, has been widely used in a variety of 3D vision applications due to its compact yet expressive nature and its amenability to geometric manipulations. It is natural to consider how to generate point cloud through deep learning approaches, which has been a popular research topic recently. The previous research efforts in the community have been mainly devoted to conditional generation of point clouds with 3D supervision. The condition could either be images (Fan et al., 2017; Groueix et al., 2018; Park et al., 2019) or partial point clouds (Li et al., 2019; Yang et al., 2018). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
530,
|
| 77 |
+
825,
|
| 78 |
+
625
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/c2faa45a97279dcce0b62c1f7a939ffd1317175ba945bb4c981516043c089985.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: We visualize the behavior of different discriminators when judging four different chair point clouds. (a) and (b) are generated results, (c) and (d) are point clouds sampled using FPS and uniform sampling from a real chair surface. When training the discriminators on data like (d), different discriminators make distinct decisions on the point cloud realness forming a sampling spectrum ranging from sampling-insensitive, sampling-aware to sampling-oversensitive. We advocate samplingaware discriminators in the middle of the spectrum, which provide good guidance for fixing geometric flaws (a) and big sample artifacts (b) and tolerate subtle sampling differences between (c) and (d). "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
173,
|
| 91 |
+
642,
|
| 92 |
+
823,
|
| 93 |
+
827
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "Generating 3D point clouds with GANs in an unsupervised manner is an important but less explored problem. 3D point cloud GAN learns to transform a random latent code into a 3D surface point cloud by playing an adversarial game. Its development is still in an early stage compared with 2D image GANs. While existing works such as (Achlioptas et al., 2018; Valsesia et al., 2018; Shu et al., 2019) have developed a variety of generators, they all use PointNet (Qi et al., 2017a) with max pooling (PointNet-Max) as their discriminator. PointNet, which is essentially a pointwise MLP followed by a global pooling operation, is too limited in capturing shape details for a successful GAN. However, advanced networks, e.g. PointNet++(Qi et al., 2017b), DGCNN(Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019), which leverage relative positions between points and hierarchical feature extraction, may not help. From our empirical study, we find they all fail to be a functioning discriminator. Understanding their failure mechanism and improving discriminator design are hence important and urgent. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
103,
|
| 103 |
+
825,
|
| 104 |
+
262
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "To design a better discriminator, we first need to answer the following question: what should the discriminator examine for improving the generation quality? Or, even more fundamentally, what does it mean by the quality of generated point clouds? ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
178,
|
| 113 |
+
270,
|
| 114 |
+
823,
|
| 115 |
+
309
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Since a shape point cloud are the points sampled from an object surface, its quality should be evaluated from two perspectives: the depicted surface geometry and the point sampling. Arguably, geometry plays a decisive role and should be the main focus of a discriminator. However, when the generated point clouds have a good shape, there is still a full spectrum on how much a discriminator cares about the sampling patterns. We introduce the concept of Sampling Spectrum to depict the sampling sensitivity of discriminators, as illustrated in Figure 1. A sampling-insensitive discriminator (e.g. PointNet-Max) may ignore the point density variations as long as it perceives a good overall shape. Such a discriminator could identify big geometric flaws as shown in Figure 1 (a), but turns a blind eye to highly non-uniform density distribution, e.g. point clusters in Figure 1 (b). On the other extreme, a sampling-oversensitive discriminator (e.g. PointNet $^ { + + }$ , DGCNN, KPConv) can even tell the subtle difference in sampling patterns, e.g. between furthest point sampling (FPS) in Figure 1 (c) and uniform sampling in Figure 1 (d), and hence can be very narrow-minded about what a real point cloud should look like. A sampling-aware discriminator, e.g. PointNet-Mix/Attention, which lies in the middle of the spectrum, is able to identify density-related artifacts such as point clusters in Figure 1 (b), while not being too sensitive to different sampling patterns, such as Figure 1 (c) and (d). ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
315,
|
| 125 |
+
825,
|
| 126 |
+
515
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Resembling the sampling spectrum of discriminators, we also examine the existing point-cloud GAN evaluation metrics from the perspective of sampling sensitivity and propose several perceptual metrics forming a Sampling Spectrum of evaluation metrics. Understanding how the metrics weigh between sampling and geometry is a prerequisite for evaluating point cloud GANs. Many of the existing sampling-insensitive metrics only evaluate the geometry factor of the generated point clouds shapes, which are blind to the obvious point clustering artifacts and uneven point density. We propose novel sampling-sensitive metrics to further complete the spectrum of point-cloud GAN evaluation metrics. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
521,
|
| 136 |
+
825,
|
| 137 |
+
614
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Guided by the proposed sampling spectrum of discriminators and evaluation metrics, experiments show that different discriminators in the spectrum could provide very different suggestions to improve a generator according to its sampling sensitivity. Sampling-insensitive discriminators, e.g. PointNetMax, is unaware of point density variations and hence its generated point cloud inevitably suffer from clustering artifacts, while sampling-oversensitive discriminators, e.g. PointNe $^ { + + }$ , DGCNN, KPConv, PointConv, simply fail to function as the discriminators and can generate much degraded point cloud shapes. We design a diagnostic “no generator” experiment to factor out the impact from generators and reveal that the gradients of sampling-oversensitive discriminators prioritize adjusting sampling patterns over producing better shape geometry. Picking a middle-point on the sampling spectrum, we discover a simple yet effective sampling-aware discriminator, PointNet-Mix, and find that it can supervise both shape generation and point density uniformity. It improves all existing generators by a large margin on sampling-related metrics. Surprisingly, we find that even the most naive fully-connected generator, coupled with PointNet-Mix, simply beats all the start-of-the-art point cloud GANs. This discovery conveys an important message to the community: instead of focusing on the generator design, people should invest more time into discriminator and seek for more powerful sampling-aware discriminators. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
619,
|
| 147 |
+
825,
|
| 148 |
+
832
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 POINT CLOUD GAN LANDSCAPE ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
864,
|
| 159 |
+
482,
|
| 160 |
+
881
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "In this section, we review the current state of point cloud GAN covering the generators, the discriminators, and the evaluation metrics we are examining in this work. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
900,
|
| 170 |
+
825,
|
| 171 |
+
928
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 POINT CLOUD GAN GENERATORS ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
103,
|
| 182 |
+
454,
|
| 183 |
+
117
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Recent point cloud GAN works primarily focus on the generator design. The generator takes input a random noise $\\cdot$ and outputs a point cloud $\\boldsymbol { p } \\in \\mathbb { R } ^ { N \\times 3 }$ . The existing generators can be categorized into two classes: fully-connected (FC) generators and graph convolutional generators. The first point cloud GAN, r-GAN (Achlioptas et al., 2018), simply uses an FC network as its generator. GraphCNN-GAN (Valsesia et al., 2018) and TreeGAN (Shu et al., 2019) are the rest two published works in this field that use graph convolutional generators. The two methods are very similar in principle. The main difference lies in how they build graphs. GraphCNN-GAN builds a dynamic $k$ -nn graph based upon feature space distance while TreeGAN enforces a tree structure throughout its sequential graph expansion and the messages can only be passed from ancestors vertices to descendants vertices. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
122,
|
| 193 |
+
825,
|
| 194 |
+
256
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Deformation-based decoders (Groueix et al., 2018; Yang et al., 2018) are widely used in the point cloud auto-encoder networks for 3D shape reconstruction. The decoders leverage Multiple-layer Perceptrons (MLP) to deform template surfaces into shape surfaces taking as inputs the concatenation of template point coordinates and the latent shape feature vectors. Though the decoders can truly act as generators for point cloud GANs, they have not yet been used in unconditioned point cloud GAN literature. Recently, Mo et al. (Mo et al., 2020) use deformation-based decoder as part generators for structure-conditioned point cloud GAN. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
262,
|
| 204 |
+
825,
|
| 205 |
+
356
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "2.2 POINT CLOUD GAN DISCRIMINATORS ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
367,
|
| 216 |
+
482,
|
| 217 |
+
381
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "All existing works on unconditioned point cloud GANs use PointNet with max-pooling (PointNetMax) as their discriminators. The discriminator takes input a point cloud $p \\in \\mathbb { R } ^ { N \\times 3 }$ and outputs a score from 0 to 1. PointNet learns a function $h$ that maps each point $p _ { i }$ in the point cloud to a per-point feature $h ( p _ { i } ) \\in \\mathbb { R } ^ { d }$ and then extracts a permutation-invariant global feature $F \\in \\mathbb { R } ^ { d }$ by pooling the per-point features across all points using a symmetric function $g$ , which can be max pooling, average pooling, etc. Namely, we have $F = \\overline { { g } } ( \\{ \\dot { h ( p _ { 1 } ) } , h ( p _ { 2 } ) , \\cdots , h ( \\overline { { p _ { N } } } ) \\} )$ . ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
386,
|
| 227 |
+
825,
|
| 228 |
+
469
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "PointNet-Max/Avg. Though $g$ can be any symmetric function, most existing works use maxpooling. In PointNet, the authors show that max-pooling outperforms average-pooling on 3D shape classification tasks. They further show that the global feature $F$ obtained from max-pooling is determined by only a sparse subset of the points, namely critical points $\\mathcal { C } _ { S }$ , bringing PointNet-Max with robustness against small data perturbation and corruption. However, this property may limit its discriminative power on telling the density variations and classifying different sampling patterns. To investigate how different aggregation operations affect the sampling sensitivity and generation quality, we study the two common choices of the symmetric function $g$ , max-pooling, and average-pooling, in this paper. We will show in Sec. 3 that using different aggregation operations makes huge differences when adapting PointNet-based networks as point cloud GAN discriminators. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
473,
|
| 238 |
+
825,
|
| 239 |
+
606
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "PointNet-Mix. By simply concatenating the max-pooling feature and the average pool feature, we obtain another permutation-invariant feature. We name this PointNet-Mix. Formally, $F _ { \\mathrm { m i x } } =$ $[ \\operatorname* { m a x } \\{ h ( p _ { 1 } ) , . . . , h ( p _ { N } ) \\}$ ; $\\arg \\{ h ( p _ { 1 } ) , . . . , h ( p _ { N } ) \\} ] \\in \\mathbb { R } ^ { 2 d }$ . The mix-pooling operation is a special choice of the symmetric function $g$ . We will show in our experiments that PointNet-Mix, though simple, surprisingly improves the performance for most point cloud GANs by a large margin on sampling-aware metrics. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
612,
|
| 249 |
+
825,
|
| 250 |
+
693
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "PointNet-Attention. A recent point cloud upsampling work (Li et al., 2019) incorporates a selfattention module into PointNet for its discriminator and shows improved point density in the upsampled point cloud. We denote this discriminator as PointNet-Attention. The self-attention module learns three separate MLPs to transform each $h ( p _ { i } )$ into $f ( p _ { i } ) , l ( p _ { i } ) , k ( p _ { i } ) \\in \\mathbb { R } ^ { d }$ correspondingly. Then an attention weight matrix is formed by $W =$ SoftMax $\\left( [ f ( p _ { 1 } ) , . . . , f ( p _ { N } ) ] ^ { T } [ ( l ( p _ { 1 } ) , . . . , l ( p _ { N } ) ) ] \\right) \\ \\in$ $\\mathbb { R } ^ { N \\times N }$ . A weighted features is then obtained through $w ( p _ { i } ) \\ = \\ h ( p _ { i } ) \\ + \\ W ^ { T } k ( p _ { i } )$ . The final aggregated features of PointNet-Attention is a max-pooling of the weighted feature, namely $F _ { \\mathrm { a t t e n t i o n } } = \\operatorname* { m a x } \\{ w ( p _ { 1 } ) , . . . , w ( p _ { N } ) \\}$ . Note that PointNet-Attention allows the per-point features to communicate with each other according to their similarity, which is more sensitive to sampling patterns than PointNet-Max. We investigate this strategy in our paper as well. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
699,
|
| 260 |
+
825,
|
| 261 |
+
838
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Discriminators beyond PointNet. Recently, there have been many works (Qi et al., 2017a; Li et al., 2018; Wang et al., 2019; Hermosilla et al., 2018; Thomas et al., 2019) extending PointNet to more advanced 3D deep learning architectures on point clouds. They improve PointNet by extracting more local or hierarchical geometric features via point cloud convolutions or point cloud graph learning. Though proven to be effective on shape classification and segmentation tasks, no published work examines adapting them as point cloud GAN discriminators. In this paper, we investigate four exemplar beyond-PointNet discriminators: PointNet $^ { + + }$ (Qi et al., 2017b), DGCNN (Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019). ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
843,
|
| 271 |
+
825,
|
| 272 |
+
924
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "",
|
| 279 |
+
"bbox": [
|
| 280 |
+
173,
|
| 281 |
+
103,
|
| 282 |
+
823,
|
| 283 |
+
131
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "2.3 POINT CLOUD GAN EVALUATION METRICS ",
|
| 290 |
+
"text_level": 1,
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
147,
|
| 294 |
+
521,
|
| 295 |
+
161
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "Achlioptas et al. (Achlioptas et al., 2018) introduces two distance metrics in the Euclidean space for evaluating point cloud GAN: the coverage scores (COV) computing the fraction of the point clouds in $B$ that are closed to the point clouds in $A$ using either Earth Mover’s distance (EMD) or Chamfer distance (CD), and the Minimum matching distance (MMD) scores measuring the fidelity of $A$ with respect to $B$ using either EMD or CD. In the field of 2D image GAN, it is common to use perceptual metrics, such as the Frechét distance (Heusel et al., 2017) between real and fake Gaussian measures in the feature spaces, for evaluating the generated image results. Formally, Frechet Distance $= | | \\mu _ { r } - \\mu _ { g } | | ^ { 2 } + \\operatorname { T r } ( \\Sigma _ { r } + \\Sigma _ { g } - 2 \\left( \\Sigma _ { r } \\Sigma _ { g } \\right) ^ { 1 / 2 } )$ , where $\\mu$ and $\\Sigma$ are the mean vector and the covariance matrix of the features calculated from either real or fake data distribution, and $\\mathrm { T r }$ is the matrix trace. For point clouds, Shu et al. (Shu et al., 2019) proposes Frechét Point Cloud Distance (FPD), which uses the features extracted from a pre-trained PointNet-Max model. In this paper, we position the existing metrics on a sampling spectrum according to their sampling sensitivity and propose novel sampling-aware metrics to augment the spectrum. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
173,
|
| 304 |
+
166,
|
| 305 |
+
825,
|
| 306 |
+
342
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "3 SAMPLING SPECTRUM OF DISCRIMINATORS ",
|
| 313 |
+
"text_level": 1,
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
354,
|
| 317 |
+
571,
|
| 318 |
+
371
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "While recent works propose many advanced generator improvements for point cloud GANs, we find that designing a good discriminator is of equal importance, if not more. In this section, we introduce the sampling spectrum of discriminators, on which we thoroughly examine the positions of different discriminators that explain their behaviors when training point cloud GANs. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
380,
|
| 328 |
+
825,
|
| 329 |
+
433
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "3.1 SAMPLING SENSITIVITY OF DISCRIMINATORS ",
|
| 336 |
+
"text_level": 1,
|
| 337 |
+
"bbox": [
|
| 338 |
+
178,
|
| 339 |
+
443,
|
| 340 |
+
531,
|
| 341 |
+
457
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "The sampling sensitivity of a discriminator depicts how much it responds to a change in the point density or sampling pattern of an input point cloud. We find it extremely hard to quantitatively measure this sensitivity given the difficulty of measuring changes in the sampling patterns. Naively using Euclidean metrics (e.g. CD or EMD) to measure the distance between two sampled point sets is not a solution, since given the same distance budget, the discriminator’s responses can be dramatically different depending on how the sampled points move. Instead, we can set landmarks in the continuous spectrum of sampling sensitivity by examining the discriminative power of the discriminators against different sampling patterns under a series of experiments from easy to hard. Specifically, we design two experiments to test whether a discriminator could tell clustering artifacts in point clouds and whether it could distinguish between FPS and uniform sampling patterns. Accordingly, we divide the spectrum into three regimes: sampling-insensitive/-aware/-oversensitive, as shown in Fig.1. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
460,
|
| 351 |
+
825,
|
| 352 |
+
607
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "A sampling-insensitive discriminator does not respond to local point density changes if the overall shape remains roughly the same. This kind of discriminators can’t tell clustering artifacts, i.e. Fig.1 (b), and thus may cause the non-uniform density in the generated point clouds. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
613,
|
| 362 |
+
820,
|
| 363 |
+
654
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "A sampling-aware discriminator can notice the significant point non-uniformity and is hence capable of supervising the generator to enforce a similar sampling distribution to the training data, while being ignorant to subtle changes when the sampling is already uniform in an intermediate scale. Such discriminator will judge Fig.1 (b) as fake but can’t tell the difference between Fig.1 (c) and (d). ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
660,
|
| 373 |
+
825,
|
| 374 |
+
714
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "A sampling-oversensitive discriminator can tell very subtle difference in the sampling patterns, e.g. \nbetween FPS and uniform sampling, even if the underlying shapes are the same (Fig.1 (c) and (d)). ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
173,
|
| 383 |
+
719,
|
| 384 |
+
821,
|
| 385 |
+
747
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "3.2 SAMPLING SENSITIVITY EXAMINATION RESULTS ",
|
| 392 |
+
"text_level": 1,
|
| 393 |
+
"bbox": [
|
| 394 |
+
173,
|
| 395 |
+
757,
|
| 396 |
+
558,
|
| 397 |
+
771
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "We design diagnostic experiments to categorize point cloud GAN discriminators on the sampling spectrum: sampling-insensitive (PointNet-Max), sampling-aware (PointNet-Avg, PointNet-Mix, PointNet-Attention (Li et al., 2019)), and sampling-oversensitive (PointNet+ $^ { - + }$ , DGCNN, KPConv, PointConv). ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
173,
|
| 406 |
+
775,
|
| 407 |
+
826,
|
| 408 |
+
829
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "The Discriminating Power against Clustering Artifacts. To examine whether the discriminators can tell clustering artifacts or not, we create a diagnostic classification dataset using the models from ShapeNet (Chang et al., 2015). Taking 100 chairs, we uniformly sample 2048 points from each shape, forming a set of real point clouds. To form a fake set of point clouds, for each chair, we first uniformly sample 1024 points, and then densely sample another 1024 points around a random position on the chair within a 0.1 radius. The real/fake point clouds are used as the labeled training dataset. We repeat the same process to generate a test dataset using a different set of 100 chairs. ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
174,
|
| 417 |
+
830,
|
| 418 |
+
825,
|
| 419 |
+
924
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "table",
|
| 425 |
+
"img_path": "images/3ae82dce49479ace6c8954ee595b6c8228b7e2314af5e5c672162bd1b4dfc6b9.jpg",
|
| 426 |
+
"table_caption": [],
|
| 427 |
+
"table_footnote": [],
|
| 428 |
+
"table_body": "<table><tr><td>Experiment</td><td>PN-Max</td><td>PN-Avg</td><td>PN-Mix</td><td>PN-Att</td><td>PN++</td><td>DGCNN</td><td>PointConv</td><td>KPConv</td></tr><tr><td>Clustering art.</td><td>56%/53%</td><td>98%/99%</td><td>97%/96%</td><td>94%/93%</td><td>100%/98%</td><td>100%/99%</td><td>100%/99%</td><td>100%/99%</td></tr><tr><td>FPS vs.uniform</td><td>50%/50%</td><td>50.3%/50%</td><td>51.5%/50%</td><td>50.1%/50%</td><td>100%/97%</td><td>100%/96%</td><td>100%/98%</td><td>100%/99%</td></tr><tr><td>ESS</td><td>0.03</td><td>0.49</td><td>0.46</td><td>0.43</td><td>0.95</td><td>0.95</td><td>0.97</td><td>0.99</td></tr></table>",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
102,
|
| 432 |
+
841,
|
| 433 |
+
148
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 4
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Table 1: Evaluating the discriminating power of the discriminators against clustering artifacts and sutble change in sampling patterns along with their empirical sampling sensitivity (ESS). In each cell of the top two rows, the left shows the training accuracy while the right shows the test accuracy. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
165,
|
| 443 |
+
826,
|
| 444 |
+
205
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "We supervisely train each discriminator to classify the real/fake point clouds. We train them 200 epochs until convergence. The training and test accuracies are shown in the first row of Table 1. Despite the huge density variation and the remarkable clustering artifacts, PointNet-Max is just barely better than a random guess while the rest of the discriminators are very successful in telling the fake from the real. This indicates that PointNet-Max is sampling-insensitive. Note that the discriminating power of a network towards certain artifacts is maximized under such supervised training scheme. A network will fail to identify such artifacts in an adversarial training scheme if it fails in a supervised training scheme. We will see in Sec. 5.2, point clouds generated by GAN using PointNet-Max as the discriminator indeed suffer from non-uniform density artifacts. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
217,
|
| 454 |
+
825,
|
| 455 |
+
337
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Our insight why PointNet-Avg/Mix can tell the artifacts but PointNet-Max fails is that the average pooling feature computes the center of the mass of the points in feature space and is hence aware to certain global non-uniform density distributions. PointNet-Attention leverages a learnable weighted averaging and is hence capable to identify the difference. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
343,
|
| 465 |
+
825,
|
| 466 |
+
397
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "Distinguishing between FPS and Uniform Sampling. We construct another diagnostic dataset with real and fake data which are the same in their shapes but only differ in their sampling patterns. Specifically, we perform uniform sampling to generate real data and use FPS to generate fake data from 100 chairs. Figure 1 (c) and (d) illustrate the different sampling pattern outcomes. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
404,
|
| 476 |
+
825,
|
| 477 |
+
457
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "We present the training and test accuracies in the second row of Table 1 and show that PointNet $^ { + + }$ , DGCNN, KPConv, and PointConv can perfectly distinguish the subtle difference in sampling patterns while the rest discriminators make no progress even on the training set. The experiment indicates that PointNet-Avg/Mix/Attention are sampling-aware while PointNet++, DGCNN, KPConv, and PointConv are sampling-oversensitive. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
463,
|
| 487 |
+
825,
|
| 488 |
+
531
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "We believe, for PointNet+ $^ +$ , DGCNN, KPConv, and PointConv, their capability of distinguishing FPS from uniform sampling owes to their usage of relative point positions or edge information, which are highly sensitive to any change in sampling. We will show in Sec. 5.3 that their remarkable discriminating power on sampling patterns actually leads to the failures as functioning discriminators to train point cloud GANs. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
536,
|
| 498 |
+
825,
|
| 499 |
+
604
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Empirical Definition of Sampling Sensitivity Given the difficulty of measuring the change in sampling pattern, we would like to provide an empirical definition of sampling sensitivity of one discriminator according to its performance on the two experiments above: when the discriminator fails in telling clustering artifacts and telling the difference between FPS and uniform sampling pattern, its sampling sensitivity should be closed to 0; when the discriminator can tell clustering artifacts but can’t distinguish between FPS and uniform sampling, we want to assign it a sampling sensitivity closed to 0.5 ; when the discriminator can do both, we want to assign a sampling sensitivity closed to 1 to it. Based on this, we define empirical sampling sensitivity $\\cdot$ as: ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
173,
|
| 508 |
+
619,
|
| 509 |
+
825,
|
| 510 |
+
728
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "ESS = Acc(Tell clustering art.) $^ +$ Acc(Tell FPS from uniform sampling) $^ { - 1 }$ , where Acc denotes the test accuracy of an experiment. See Table 1 for results. Using this metric, we would form a continuous sampling sensitivity spectrum. ",
|
| 517 |
+
"bbox": [
|
| 518 |
+
232,
|
| 519 |
+
729,
|
| 520 |
+
759,
|
| 521 |
+
744
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 4
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "",
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
748,
|
| 531 |
+
825,
|
| 532 |
+
776
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "4 SAMPLING SPECTRUM OF EVALUATION METRICS ",
|
| 539 |
+
"text_level": 1,
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
786,
|
| 543 |
+
617,
|
| 544 |
+
803
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Similar to the discriminator design, it is very important to understand how different evaluation metrics weigh the differences in sampling patterns against geometry quality. Thus, we introduce the sampling spectrum of evaluation metrics, which exactly resembles the sampling spectrum of discriminators introduced in Sec. 3. On the spectrum, we have sampling-insensitive metrics that measure only the shape geometry and are ignorant of the sampling patterns, and sampling-sensitive metrics that measure both at the same time. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
809,
|
| 554 |
+
825,
|
| 555 |
+
890
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "For perceptual metrics, i.e. Frechét distances in feature spaces, the sampling sensitivity of the metric purely depends on the sampling sensitivity of its feature extractor. Frechét distance measured in different feature spaces may respond very differently to changes in point density and sampling patterns. In this work, we examine three Frechét distance metrics that extract features using PointNetMax, PointNet-Mix, and DGCNN, respectively. We denote them as Frechét PointNet-Max Distance (FPD-Max), Frechét PointNet-Mix Distance (FPD-Mix), and Frechét DGCNN Distance (FGD). We pretrain all the three feature extraction networks on ModelNet40 (Wu et al., 2015) shape classification. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
895,
|
| 565 |
+
823,
|
| 566 |
+
924
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "table",
|
| 572 |
+
"img_path": "images/2ae5f2cf923fea9d318098171de62c1544d26af427878d0d5240f4db7813e788.jpg",
|
| 573 |
+
"table_caption": [
|
| 574 |
+
"Table 2: Examining sampling sensitivity of evaluation metrics. "
|
| 575 |
+
],
|
| 576 |
+
"table_footnote": [],
|
| 577 |
+
"table_body": "<table><tr><td>Data</td><td>FPD-Mix↓</td><td>FPD-Max↓</td><td>FGD↓</td><td>MMD-E↓</td><td>MMD-C↓</td><td>COV-E↑</td><td>COV-C↑</td></tr><tr><td>Uniformre-sampling</td><td>0.1153</td><td>0.0926</td><td>0.8141</td><td>0.1104</td><td>0.00145</td><td>70.69</td><td>72.16</td></tr><tr><td>Farthest point sampling</td><td>0.1700</td><td>0.1558</td><td>1.8833</td><td>0.1064</td><td>0.00137</td><td>67.74</td><td>69.36</td></tr><tr><td>Biased sampling</td><td>2.8631</td><td>0.3524</td><td>9.6719</td><td>0.2469</td><td>0.00145</td><td>23.12</td><td>71.28</td></tr></table>",
|
| 578 |
+
"bbox": [
|
| 579 |
+
202,
|
| 580 |
+
102,
|
| 581 |
+
792,
|
| 582 |
+
148
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "",
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
193,
|
| 592 |
+
825,
|
| 593 |
+
258
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "To examine the sampling sensitivity of FPD-Mix/Max and FGD, we create several copies of the training split of our ShapeNet chair dataset (see Sec.5.1), each of which uses a different sampling strategy to obtain the shape point clouds. The reference one used as the ground truth is using uniform sampling. Then we consider 1) uniform sampling with a different random seed; 2) FPS; and 3) biased sampling with clustered artifacts (as described in Sec. 3.2). We use all the available metrics to evaluate their distances to the ground truth data. The results are shown in Table 2. ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
174,
|
| 602 |
+
265,
|
| 603 |
+
825,
|
| 604 |
+
345
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "We observe that the Frechét distance metrics share the same sampling sensitivity of their corresponding discriminators. For example, since PointNet-Max is sampling-insensitive, FPD-Max remains very low even on biased sampling data, hence FPD-Max serves as a perceptual geometry metric, which is ignorant to sampling patterns. Similarly, we find that FPD-Mix is sampling-aware since it clearly detects the biased sampling patterns while not being able to distinguish the uniform sampling and FPS, while FGD is sampling-oversensitive in that it can tell apart FPS and uniform sampling. ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
352,
|
| 614 |
+
825,
|
| 615 |
+
433
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "For Euclidean distance metrics, results in Table 2 show that COV-EMD and MMD-EMD are samplingaware, which is intuitively reasonable since EMD enforces a one-to-one matching and is aware of the point density, while COV-CD and MMD-CD are sampling-insensitive. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
438,
|
| 625 |
+
825,
|
| 626 |
+
479
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "5 EXPERIMENTS ",
|
| 633 |
+
"text_level": 1,
|
| 634 |
+
"bbox": [
|
| 635 |
+
176,
|
| 636 |
+
494,
|
| 637 |
+
326,
|
| 638 |
+
510
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Aware of both the sampling spectrums, we conduct experiments to further evaluate the performance of point cloud GANs under various evaluation metrics. We show that the point cloud GANs using sampling-insensitive discriminators may produce point clustering artifacts, while samplingoversensitive discriminators fail to supervise point cloud GAN training at all. We further devise a diagnostic \"no-generator\" experiment that factors out the generators to better illustrate our discoveries on discriminators. More interesting, we find that the simple PointNet-Mix paired of any generator, even with the most naive fully-connected one, achieves the state-of-the-art performance. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
520,
|
| 648 |
+
825,
|
| 649 |
+
613
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "5.1 SETTING AND DATASETS ",
|
| 656 |
+
"text_level": 1,
|
| 657 |
+
"bbox": [
|
| 658 |
+
174,
|
| 659 |
+
626,
|
| 660 |
+
387,
|
| 661 |
+
640
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 5
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "We provide a thorough comparison of all the discriminators investigated in Sec.3 combining with all the available generators in the published literature, including the FC generator proposed in rGAN (Achlioptas et al., 2018), and graph convolutional generators used in TreeGAN (Shu et al., 2019). We also add a deformation-based generator into the comparison given its popularity for supervised point cloud reconstruction (Groueix et al., 2018; Yang et al., 2018). ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
645,
|
| 671 |
+
825,
|
| 672 |
+
712
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "We use two datasets to evaluate the GANs. One is a single-category dataset containing point clouds sampled from all 6,778 chair meshes in ShapeNet (Chang et al., 2015). The other is a multi-category dataset combining shapes from airplane, car, chair, rifle, sofa, table, vessel categories in ShapeNet. The multi-category dataset contains 34,313 shapes in total. We uniformly sample 2048 points from each shape to form the two datasets. We follow the $8 5 \\% / 5 \\% / 1 0 \\%$ train/validation/test split in (Achlioptas et al., 2018) and use WGAN-gp (Gulrajani et al., 2017) for the GAN training, similar to previous works (Achlioptas et al., 2018; Valsesia et al., 2018; Shu et al., 2019). ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
718,
|
| 682 |
+
825,
|
| 683 |
+
811
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "5.2 EVALUATING POINTNET-BASED DISCRIMINATORS WITH VARIOUS GENERATORS ",
|
| 690 |
+
"text_level": 1,
|
| 691 |
+
"bbox": [
|
| 692 |
+
173,
|
| 693 |
+
824,
|
| 694 |
+
769,
|
| 695 |
+
838
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "We report the performance for point cloud GANs that combine PointNet-Max/Min/Attention discriminators and FC/Deform/TreeGAN/Graph-CNN generators in Table 3. We observe that GANs using PointNet-Mix as the discriminator outperform the ones using PointNet-Max/Attention across all different generators. On sampling-aware/sensitive metrics (i.e. FPD-Mix, FGD, MMD-EMD, COV-EMD), PointNet-Mix is always significantly better than PointNet-Max and is better than PointNet-Attention mainly on FPD-Mix and FGD. Regarding geometry quality evaluated using sampling-insensitive metrics (i.e. FPD-Max, MMD-CD, COV-CD), PointNet-Mix is always significantly better than PointNet-Attention on FPD-Max and COV-CD while remaining on a par with PointNet-Max. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
843,
|
| 705 |
+
825,
|
| 706 |
+
924
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "table",
|
| 712 |
+
"img_path": "images/bb0b6d2514c2aef60eea70ee2a670c45a56e495ce19debe24e184b17ef906f14.jpg",
|
| 713 |
+
"table_caption": [
|
| 714 |
+
"Table 3: Evaluating PointNet-based discriminators with different generators. We observe that PointNet-Mix can significantly improve all sampling-aware/sensitive metric, including FPD-Mix, FGD, MMD-EMD, COV-EMD for all the generators. When paired with FC generator, PointNet-Mix achieves the best performance. We include PointFlow(Yang et al., 2019) and Oracle for a comparison. "
|
| 715 |
+
],
|
| 716 |
+
"table_footnote": [],
|
| 717 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>Generator</td><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=1>FPD-Mix↓</td><td rowspan=1 colspan=1>FPD-Max↓</td><td rowspan=1 colspan=1>FGD↓</td><td rowspan=1 colspan=1>MMD-E↓</td><td rowspan=1 colspan=1>MMD-C↓</td><td rowspan=1 colspan=1>COV-E↑</td><td rowspan=1 colspan=1>COV-C↑</td></tr><tr><td rowspan=10 colspan=1>Chair</td><td rowspan=2 colspan=1>FCFC</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>1.5710.184</td><td rowspan=2 colspan=1>0.2110.209</td><td rowspan=1 colspan=1>7.030</td><td rowspan=1 colspan=1>0.1017</td><td rowspan=1 colspan=1>0.00164</td><td rowspan=1 colspan=1>23.56</td><td rowspan=1 colspan=1>72.75</td></tr><tr><td rowspan=1 colspan=1>2.124</td><td rowspan=1 colspan=1>0.0674</td><td rowspan=1 colspan=1>0.00196</td><td rowspan=1 colspan=1>73.64</td><td rowspan=1 colspan=1>74.96</td></tr><tr><td rowspan=7 colspan=1>FCDeformDeformDeformTreeGANTreeGANGraph-CNN</td><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.635</td><td rowspan=1 colspan=1>0.672</td><td rowspan=1 colspan=1>4.971</td><td rowspan=1 colspan=1>0.1156</td><td rowspan=1 colspan=1>0.00160</td><td rowspan=1 colspan=1>68.92</td><td rowspan=1 colspan=1>70.54</td></tr><tr><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>0.9130.534</td><td rowspan=2 colspan=1>0.2680.373</td><td rowspan=1 colspan=1>5.602</td><td rowspan=2 colspan=1>0.09080.0695</td><td rowspan=2 colspan=1>0.002010.00200</td><td rowspan=2 colspan=1>68.576.29</td><td rowspan=2 colspan=1>72.6175.11</td></tr><tr><td rowspan=1 colspan=1>2.836</td></tr><tr><td rowspan=4 colspan=1>AttentionMaxMixMax</td><td rowspan=1 colspan=1>0.696</td><td rowspan=1 colspan=1>0.755</td><td rowspan=1 colspan=1>2.987</td><td rowspan=1 colspan=1>0.1141</td><td rowspan=1 colspan=1>0.00160</td><td rowspan=1 colspan=1>68.77</td><td rowspan=1 colspan=1>69.36</td></tr><tr><td rowspan=3 colspan=1>1.4420.2931.034</td><td rowspan=1 colspan=1>0.654</td><td rowspan=2 colspan=1>7.8084.032</td><td rowspan=2 colspan=1>0.09620.0704</td><td rowspan=2 colspan=1>0.001910.00211</td><td rowspan=3 colspan=1>24,7474.8248.90</td><td rowspan=3 colspan=1>73.4978.7963.18</td></tr><tr><td rowspan=1 colspan=1>0.334</td></tr><tr><td rowspan=1 colspan=1>0.981</td><td rowspan=1 colspan=1>7.494</td><td rowspan=1 colspan=1>0.0812</td><td rowspan=1 colspan=1>0.00191</td></tr><tr><td rowspan=1 colspan=2>PointFlowOracle</td><td rowspan=1 colspan=1>1.7820.088</td><td rowspan=1 colspan=1>1.4050.093</td><td rowspan=1 colspan=1>3.2560.814</td><td rowspan=1 colspan=1>0.13350.0594</td><td rowspan=1 colspan=1>0.001900.00165</td><td rowspan=1 colspan=1>71.7679.56</td><td rowspan=1 colspan=1>71.7379.69</td></tr><tr><td rowspan=9 colspan=1>Multi-Cat</td><td rowspan=3 colspan=1>FCFCFC</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=1 colspan=1>1.553</td><td rowspan=1 colspan=1>0.354</td><td rowspan=1 colspan=1>6.981</td><td rowspan=1 colspan=1>0.0842</td><td rowspan=1 colspan=1>0.00153</td><td rowspan=1 colspan=1>35.16</td><td rowspan=1 colspan=1>64.16</td></tr><tr><td rowspan=1 colspan=1>0.255</td><td rowspan=1 colspan=1>0.285</td><td rowspan=1 colspan=1>2.550</td><td rowspan=1 colspan=1>0.0656</td><td rowspan=2 colspan=1>0.001840.00134</td><td rowspan=2 colspan=1>73.572.19</td><td rowspan=2 colspan=1>72.1669.63</td></tr><tr><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.414</td><td rowspan=1 colspan=1>0.453</td><td rowspan=1 colspan=1>4.234</td><td rowspan=1 colspan=1>0.1188</td></tr><tr><td rowspan=5 colspan=1>DeformDeformDeformTreeGANTreeGAN</td><td rowspan=2 colspan=1>MaxMix</td><td rowspan=1 colspan=1>1.072</td><td rowspan=1 colspan=1>0.633</td><td rowspan=1 colspan=1>3.845</td><td rowspan=1 colspan=1>0.0799</td><td rowspan=1 colspan=1>0.00179</td><td rowspan=1 colspan=1>62.5</td><td rowspan=1 colspan=1>64.5</td></tr><tr><td rowspan=1 colspan=1>0.614</td><td rowspan=1 colspan=1>0.349</td><td rowspan=1 colspan=1>2.451</td><td rowspan=1 colspan=1>0.0670</td><td rowspan=1 colspan=1>0.00191</td><td rowspan=1 colspan=1>70.83</td><td rowspan=2 colspan=1>68.8369.60</td></tr><tr><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>0.616</td><td rowspan=1 colspan=1>0.720</td><td rowspan=1 colspan=1>2.531</td><td rowspan=1 colspan=1>0.1113</td><td rowspan=1 colspan=1>0.00141</td><td rowspan=1 colspan=1>72.04</td></tr><tr><td rowspan=2 colspan=1>MaxMix</td><td rowspan=2 colspan=1>1.7140.388</td><td rowspan=1 colspan=1>0.437</td><td rowspan=1 colspan=1>6.342</td><td rowspan=1 colspan=1>0.1093</td><td rowspan=1 colspan=1>0.00158</td><td rowspan=2 colspan=1>25.3372.66</td><td rowspan=2 colspan=1>67.071.0</td></tr><tr><td rowspan=1 colspan=1>0.420</td><td rowspan=1 colspan=1>4.300</td><td rowspan=1 colspan=1>0.0699</td><td rowspan=1 colspan=1>0.00184</td></tr><tr><td rowspan=1 colspan=2>Oracle</td><td rowspan=1 colspan=1>0.131</td><td rowspan=1 colspan=1>0.177</td><td rowspan=1 colspan=1>0.673</td><td rowspan=1 colspan=1>0.06012</td><td rowspan=1 colspan=1>0.00124</td><td rowspan=1 colspan=1>77.14</td><td rowspan=1 colspan=1>77.57</td></tr></table>",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
102,
|
| 721 |
+
828,
|
| 722 |
+
327
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "",
|
| 729 |
+
"bbox": [
|
| 730 |
+
173,
|
| 731 |
+
414,
|
| 732 |
+
821,
|
| 733 |
+
441
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 6
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "In Figure 2, we present the generated point clouds for all the experiments with color-coding for the local point density. We see that the generators trained using PointNet-Max usually suffer from non-uniform density, except for the deformation generator. On the chair class, points are usually clustering around the seat area while being sparse at the back. On the contrary, PointNet-Mix enforces a globally uniform point density and hence greatly improves the visual quality of the generated point clouds. PointNet-Attention is in the between. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
174,
|
| 742 |
+
448,
|
| 743 |
+
825,
|
| 744 |
+
527
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 6
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "With PointNet-Mix, we observe that the most naive FC generator works the best outperforming the previously state-of-the-state generators on almost of metrics. This showcases the importance of being sampling-aware but not sampling-insensitive/oversensitive as a discriminator. It also suggests that future works may focus on designing more powerful sampling-aware discriminators. ",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
534,
|
| 754 |
+
825,
|
| 755 |
+
588
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 6
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "5.3 DIAGNOSING FAILURES FOR VARIOUS DISCRIMINATORS ",
|
| 762 |
+
"text_level": 1,
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
599,
|
| 766 |
+
606,
|
| 767 |
+
613
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Observing that the discriminator forms the bottleneck of the point cloud GAN, it is important to examine whether advanced networks, e.g. PointNet+ $^ +$ (Qi et al., 2017b), DGCNN (Wang et al., 2019), KPConv (Thomas et al., 2019), PointConv (Wu et al., 2019) can outperform PointNet-based discriminator. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
174,
|
| 776 |
+
618,
|
| 777 |
+
825,
|
| 778 |
+
672
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 6
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Surprisingly, we fail to observe any of them ever to be successful to train a GAN in our extensive experiments, in which we perform a systematic search, including varying generator architecture, changing hyperparameters (e.g. the number of layers and parameters in discriminator, learning rate), whether use batch norm, etc. During GAN training, we observe the four advanced discriminator behave very similarly: they are very discriminative in the sense that the gaps between the real and fake scores remain significantly large, but the quality of the generated point clouds stays very bad. The contradictory behaviors seem unreasonable at the first glance: how can a discriminator be very discriminative but teach nothing to the generator? Thus, we design a diagnostic \"no generator\" experiment to examine the underlying reasons. ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
174,
|
| 787 |
+
679,
|
| 788 |
+
825,
|
| 789 |
+
799
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 6
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "No Generator Experiments. During GAN training, the gradients from discriminator output scores back-propagate to the generated point clouds and then further back-propagate to the weights of the generator to update the generator. We design a diagnostic experiment that removes the generator and examines whether the discriminator gradients are informative enough for supervising point cloud GANs. ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
174,
|
| 798 |
+
808,
|
| 799 |
+
825,
|
| 800 |
+
876
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 6
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "Concretely, we take $\\cdot$ real chairs as real data and we randomly initialize $M$ learnable point clouds $p \\in \\mathbb { R } ^ { N \\times 3 }$ with i.i.d Gaussian noises $\\cdot$ . For each training iteration, we sample $\\cdot$ point clouds from the real dataset as the real data and sample $\\cdot$ point clouds from the learnable point ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
174,
|
| 809 |
+
882,
|
| 810 |
+
823,
|
| 811 |
+
924
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 6
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "image",
|
| 817 |
+
"img_path": "images/9ab46f0bd251aa0ef4577907186cc5ad8e8d73246239da39a1cce07f60003cd8.jpg",
|
| 818 |
+
"image_caption": [],
|
| 819 |
+
"image_footnote": [],
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
99,
|
| 823 |
+
825,
|
| 824 |
+
433
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "image",
|
| 830 |
+
"img_path": "images/e359eb374e57942b0203cde57d30eb2a3b5555e59ff8408d26bfd94052794c2d.jpg",
|
| 831 |
+
"image_caption": [
|
| 832 |
+
"Figure 2: Visualization of point clouds generated by different methods. We show generated point clouds in few exemplar shapes for a fair and easier comparison regarding their sampling quality and geometry quality. We color-code the local point density that ranges from sparse (dark blue) to dense (light yellow). ",
|
| 833 |
+
"Figure 3: The diagnostic \"no generator\" experiment results. On the left, we show exemplar point clouds generated by different discriminators. On the right, we plot the training curves for the experiments. The $x$ - and $y$ -axis respectively represent training iterations and Wasserstein estimates. "
|
| 834 |
+
],
|
| 835 |
+
"image_footnote": [],
|
| 836 |
+
"bbox": [
|
| 837 |
+
186,
|
| 838 |
+
493,
|
| 839 |
+
810,
|
| 840 |
+
621
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 7
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "table",
|
| 846 |
+
"img_path": "images/a6502f96127bea14acbd72cf43811ba4be0dad6184ce827043f8ab3e9573dc5e.jpg",
|
| 847 |
+
"table_caption": [],
|
| 848 |
+
"table_footnote": [],
|
| 849 |
+
"table_body": "<table><tr><td>Discriminator</td><td>FPD-Mix↓</td><td>FPD-Max↓</td><td>FGD↓</td><td>MMD-E↓</td><td>MMD-C↓</td><td>COV-E↑</td><td>COV-C↑</td></tr><tr><td>PointNet-Max</td><td>3.828</td><td>2.456</td><td>19.279</td><td>0.1039</td><td>0.00287</td><td>26</td><td>56</td></tr><tr><td>PointNet-Avg</td><td>19.640</td><td>19.604</td><td>39.793</td><td>0.1154</td><td>0.00642</td><td>32</td><td>12</td></tr><tr><td>PointNet-Mix</td><td>1.835</td><td>2.208</td><td>13.197</td><td>0.0898</td><td>0.00331</td><td>50</td><td>51</td></tr><tr><td>PointNet-Attention</td><td>1.350</td><td>1.642</td><td>12.359</td><td>0.1622</td><td>0.00271</td><td>52</td><td>48</td></tr><tr><td>PointNet++</td><td>15.081</td><td>14.187</td><td>33.958</td><td>0.1155</td><td>0.00503</td><td>19</td><td>37</td></tr><tr><td>DGCNN</td><td>10.629</td><td>9.939</td><td>14.882</td><td>0.0932</td><td>0.00396</td><td>46</td><td>48</td></tr><tr><td>KPConv</td><td>41.15</td><td>49.96</td><td>57.32</td><td>0.2695</td><td>0.01135</td><td>6</td><td>2.5</td></tr><tr><td>PointConv</td><td>27.69</td><td>27.05</td><td>46.82</td><td>0.2832</td><td>0.00721</td><td>3</td><td>8</td></tr></table>",
|
| 850 |
+
"bbox": [
|
| 851 |
+
207,
|
| 852 |
+
700,
|
| 853 |
+
789,
|
| 854 |
+
795
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 7
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "Table 4: Quantitative evaluation for the diagnostic \"no generator\" experiments. We see that PointNet-Max/Mix/Attention are successful while PointNetAvg/PointNet++/DGCNN/KPConv/PointConv fail. ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
173,
|
| 863 |
+
806,
|
| 864 |
+
826,
|
| 865 |
+
848
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 7
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "clouds as the fake data. Then, we conduct adversarial training where the discriminator gradients directly update the location of each points in the learnable point clouds. We adopt the same training protocol and losses as experiments in Sec. 5.2. The goal of this \"no generator\" experiment is to see whether the discriminator can modify the point clouds to approximate the real shapes, or in other words, we factorize the impact from generator architectures and only focus whether the gradients from discriminators can guide shape generation. Here $M = 1 0 0$ , $\\cdot$ , and $B = 3 2$ . We train each experiment for 10,000 epoches until convergence. ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
173,
|
| 874 |
+
857,
|
| 875 |
+
825,
|
| 876 |
+
924
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 7
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "",
|
| 883 |
+
"bbox": [
|
| 884 |
+
173,
|
| 885 |
+
103,
|
| 886 |
+
823,
|
| 887 |
+
131
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 8
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"text": "Results and Analysis. Table 4 summarizes the results and Figure 3 (left) shows exemplar generated point clouds. We clearly see that only PointNet-Max/Mix/Attention can successfully modify the learnable point clouds to get high quality shapes, while PointNet $^ { + + }$ /DGCNN/KPConv/PointConv/PointNetAvg produce much worse results. Figure 3 (right) presents the training curves of the Wasserstein estimates, which essentially describe the gap between the real and fake scores. The large score gaps for PointNet $^ { + + }$ , DGCNN and KPConv throughout the training indicate the two models are very discriminative in telling apart the fake samples from the real data. However, their gradients simply don’t help improve the learned point clouds. Note that both of them leverage relative point positions/edge information during their feature extraction, which leads to a huge amount of gradients flowing along the surface direction focusing on changing sampling patterns instead of supervising shape geometry. As a suggestion, for developing future discriminators, people may need to avoid using the relative position features. For PointNet-Avg, the failure is simply because the discriminating power is not sufficient, evident from the low Wasserstein estimates. Note that training such \"no generator\" experiment shares a similar flavor to the SGD sampling in introspective CNN(Jin et al., 2017). ",
|
| 894 |
+
"bbox": [
|
| 895 |
+
173,
|
| 896 |
+
138,
|
| 897 |
+
825,
|
| 898 |
+
337
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 8
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "6 CONCLUSION AND SUGGESTIONS FOR FUTURE DISCRIMINATOR DESIGN ",
|
| 905 |
+
"text_level": 1,
|
| 906 |
+
"bbox": [
|
| 907 |
+
173,
|
| 908 |
+
349,
|
| 909 |
+
808,
|
| 910 |
+
366
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 8
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "In this work, we study the importance of sampling for 3D point cloud GAN design. We propose the sampling spectrum of discriminators and evaluation metrics that provide insights on the behaviors of point cloud GANs. We propose several empirical experiments for identifying the sampling sensitivity of a discriminator or an evaluation metric. Experiments indicate that, no matter what generator is employed, a sampling-insensitive discriminator, e.g. the commonly used PointNet-Max, will produce point cloud shapes with non-uniform density and clustering artifacts, while a sampling-oversensitive discriminator (e.g. PointNet+ $^ +$ , DGCNN, PointConv, KPConv) will lead to disastrous failures when adapting them to training point cloud GANs. Interestingly, a simple PointNet-Mix baseline coupled with the most naive fully-connected generator achieves the best performance, indicating that the current bottleneck of point cloud GAN is on the discriminator side. For future discriminators, we suggest they should be more discriminative in shape and aware but not oversensitive to sampling patterns. For the sanity check of any novel discriminators, one can leverage our proposed \"no generator\" experiment. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
174,
|
| 919 |
+
373,
|
| 920 |
+
825,
|
| 921 |
+
545
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "REFERENCES ",
|
| 928 |
+
"text_level": 1,
|
| 929 |
+
"bbox": [
|
| 930 |
+
176,
|
| 931 |
+
103,
|
| 932 |
+
287,
|
| 933 |
+
117
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 9
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds, 2018. URL https://openreview.net/forum? id=BJInEZsTb. ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
126,
|
| 943 |
+
826,
|
| 944 |
+
165
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 9
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
173,
|
| 953 |
+
174,
|
| 954 |
+
823,
|
| 955 |
+
217
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 9
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 605–613, 2017. ",
|
| 962 |
+
"bbox": [
|
| 963 |
+
173,
|
| 964 |
+
224,
|
| 965 |
+
823,
|
| 966 |
+
266
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 9
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 216–224, 2018. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
173,
|
| 975 |
+
273,
|
| 976 |
+
825,
|
| 977 |
+
316
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 9
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
173,
|
| 986 |
+
324,
|
| 987 |
+
825,
|
| 988 |
+
366
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vázquez, Àlvar Vinacua, and Timo Ropinski. Monte carlo convolution for learning on non-uniformly sampled point clouds. In SIGGRAPH Asia 2018 Technical Papers, pp. 235. ACM, 2018. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
173,
|
| 997 |
+
373,
|
| 998 |
+
823,
|
| 999 |
+
416
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 9
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, pp. 6626–6637, 2017. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
173,
|
| 1008 |
+
424,
|
| 1009 |
+
823,
|
| 1010 |
+
465
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 9
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Long Jin, Justin Lazarow, and Zhuowen Tu. Introspective classification with convolutional nets. In Advances in Neural Information Processing Systems, pp. 823–833, 2017. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
173,
|
| 1019 |
+
473,
|
| 1020 |
+
825,
|
| 1021 |
+
502
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 9
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "Ruihui Li, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. Pu-gan: a point cloud upsampling adversarial network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 7203–7212, 2019. ",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
510,
|
| 1031 |
+
823,
|
| 1032 |
+
553
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 9
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in neural information processing systems, pp. 820–830, 2018. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
559,
|
| 1042 |
+
825,
|
| 1043 |
+
602
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 9
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "Kaichun Mo, He Wang, Xinchen Yan, and Leonidas Guibas. PT2PC: Learning to generate 3d point cloud shapes from part tree conditions. arXiv preprint arXiv:2003.08624, 2020. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
173,
|
| 1052 |
+
609,
|
| 1053 |
+
821,
|
| 1054 |
+
638
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 9
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 165–174, 2019. ",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
173,
|
| 1063 |
+
646,
|
| 1064 |
+
823,
|
| 1065 |
+
689
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 9
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017a. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
174,
|
| 1074 |
+
695,
|
| 1075 |
+
825,
|
| 1076 |
+
738
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 9
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pp. 5099–5108, 2017b. ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
171,
|
| 1085 |
+
746,
|
| 1086 |
+
826,
|
| 1087 |
+
787
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 9
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "Dong Wook Shu, Sung Woo Park, and Junseok Kwon. 3d point cloud generative adversarial network based on tree structured graph convolutions. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3859–3868, 2019. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
173,
|
| 1096 |
+
796,
|
| 1097 |
+
823,
|
| 1098 |
+
838
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 9
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, François Goulette, and Leonidas J Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6411–6420, 2019. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
173,
|
| 1107 |
+
845,
|
| 1108 |
+
823,
|
| 1109 |
+
887
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 9
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "Diego Valsesia, Giulia Fracastoro, and Enrico Magli. Learning localized generative models for 3d point clouds via graph convolution. 2018. ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
174,
|
| 1118 |
+
895,
|
| 1119 |
+
821,
|
| 1120 |
+
924
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 9
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 38(5): 146, 2019. ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
176,
|
| 1129 |
+
103,
|
| 1130 |
+
825,
|
| 1131 |
+
143
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 10
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9621–9630, 2019. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
173,
|
| 1140 |
+
152,
|
| 1141 |
+
823,
|
| 1142 |
+
194
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 10
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1912–1920, 2015. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
202,
|
| 1152 |
+
821,
|
| 1153 |
+
244
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 10
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. In Proceedings of the IEEE International Conference on Computer Vision, pp. 4541–4550, 2019. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
176,
|
| 1162 |
+
252,
|
| 1163 |
+
823,
|
| 1164 |
+
294
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 10
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 206–215, 2018. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
176,
|
| 1173 |
+
301,
|
| 1174 |
+
821,
|
| 1175 |
+
342
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 10
|
| 1178 |
+
}
|
| 1179 |
+
]
|
parse/train/784_F-WCW46/784_F-WCW46_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/784_F-WCW46/784_F-WCW46_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ALvt7nXa2q/ALvt7nXa2q.md
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Overcoming Catastrophic Forgetting in Incremental Few-Shot Learning by Finding Flat Minima
|
| 2 |
+
|
| 3 |
+
Guangyuan Shi,∗ Jiaxin Chen∗, Wenlong Zhang, Li-Ming Zhan, Xiao-Ming Wu† Department of Computing The Hong Kong Polytechnic University {guang-yuan.shi, jiax.chen, wenlong.zhang, lmzhan.zhan}@connect.polyu.hk xiao-ming.wu@polyu.edu.hk
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
This paper considers incremental few-shot learning, which requires a model to continually recognize new categories with only a few examples provided. Our study shows that existing methods severely suffer from catastrophic forgetting, a well-known problem in incremental learning, which is aggravated due to data scarcity and imbalance in the few-shot setting. Our analysis further suggests that to prevent catastrophic forgetting, actions need to be taken in the primitive stage – the training of base classes instead of later few-shot learning sessions. Therefore, we propose to search for flat local minima of the base training objective function and then fine-tune the model parameters within the flat region on new tasks. In this way, the model can efficiently learn new classes while preserving the old ones. Comprehensive experimental results demonstrate that our approach outperforms all prior state-of-the-art methods and is very close to the approximate upper bound. The source code is available at https://github.com/moukamisama/F2M.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Why study incremental few-shot learning? Incremental learning enables a model to continually learn new concepts from new data without forgetting previously learned knowledge. Rooted from real-world applications, this topic has attracted a significant amount of interest in recent years [5, 30, 31, 40, 26]. Incremental learning assumes sufficient training data is provided for new classes, which is impractical in many application scenarios, especially when the new classes are rare categories which are costly or difficult to collect. This motivates the study of incremental few-shot learning, a more difficult paradigm that aims to continually learn new tasks with only a few examples.
|
| 12 |
+
|
| 13 |
+
Challenges. The major challenge for incremental learning is catastrophic forgetting [14, 28, 35], which refers to the drastic performance drop on previous tasks after learning new tasks. This phenomenon is caused by the inaccessibility to previous data while learning on new data. Catastrophic forgetting presents a bigger challenge for incremental few-shot learning. Due to the small amount of training data in new tasks, the model tends to severely overfit on new classes while quickly forgetting old classes, resulting in catastrophic performance.
|
| 14 |
+
|
| 15 |
+
Current research. The study of incremental few-shot learning has just started [47, 41, 60, 9, 8, 34, 59]. Current works mainly borrow ideas from research in incremental learning to overcome the forgetting problem, by enforcing strong constraints on model parameters to penalize the changes of parameters [34, 28, 56], or by saving a small amount of exemplars from old classes and adding constraints on the exemplars to avoid forgetting [40, 20, 4]. However, in our empirical study, we find that an intransigent model that only trains on base classes and does not tune on new tasks consistently outperforms state-of-the-art methods, including a joint-training method [47] that uses all encountered data for training and hence suffers from severe data imbalance. This observation motivates us to address this harsh problem from a different angle.
|
| 16 |
+
|
| 17 |
+
Our solution. Unlike existing solutions that try to overcome the catastrophic forgetting problem during the process of learning new tasks, we adopt a different approach by considering this issue during the training of base classes. Specifically, we propose to search for flat local minima of the base training objective function. For any parameter vector in the flat region around the minima, the loss is small, and the base classes are supposed to be well separated. The flat local minima can be found by adding random noise to the model parameters for multiple times and jointly optimizing multiple loss functions. During the following incremental few-shot learning stage, we fine-tune the model parameters within the flat region, which can be achieved by clamping the parameters after updating them on few-shot tasks. In this way, the model can efficiently learn new classes while preserving the old ones. Our key contributions are summarized as follows:
|
| 18 |
+
|
| 19 |
+
• We conduct a comprehensive empirical study on existing incremental few-shot learning methods and discover that a simple baseline model that only trains on base classes outperforms state-of-the-art methods, which demonstrates the severity of catastrophic forgetting. • We propose a novel approach for incremental few-shot learning by addressing the catastrophic forgetting problem in the primitive stage. Through finding the flat minima region during training on base classes and fine-tuning within the region while learning on new tasks, our model can overcome catastrophic forgetting and avoid overfitting. • Comprehensive experimental results on CIFAR-100, miniImageNet, and CUB-200-2011 show that our approach outperforms all state-of-the-art methods and achieves performance that is very close to the approximate upper bound.
|
| 20 |
+
|
| 21 |
+
# 2 Related Work
|
| 22 |
+
|
| 23 |
+
Few-shot learning aims to learn to generalize to new categories with a few labeled samples in each class. Current few-shot methods mainly include optimization-based methods [12, 23, 32, 39, 45, 46, 55] and metric-based methods [13, 19, 44, 49, 52, 58, 57, 53]. Optimization-based methods can achieve fast adaptation to new tasks with limited samples by learning a specific optimization algorithm. Metric-based approaches exploit different distance metrics such as L2 distance [44], cosine similarity [49], and DeepEMD [58] in the learned metric/embedding space to measure the similarity between samples. Recently, Tian et al. [48] find that standard supervised training can learn a good metric space for unseen classes, which echoes with our observation on the proposed baseline model in Sec. 3.
|
| 24 |
+
|
| 25 |
+
Incremental learning focuses on the challenging problem of continually learning to recognize new classes in new coming data without forgetting old classes [6, 7, 10, 51]. Previous research mainly includes multi-class incremental learning [4, 38, 22, 33, 54, 51] and multi-task incremental learning [21, 31, 42]. To overcome the catastrophic forgetting problem, some attempts propose to impose strong constraints on model parameters by penalizing the changes of parameters [28, 1]. Other attempts try to enforce constraints on the exemplars of old classes by restricting the output logits [40] or penalizing the changes of embedding angles [20]. In this work, our empirical study shows that imposing strong constraints on the arriving new classes may not be a promising way to tackle incremental few-shot learning, due to the scarcity of training data for new classes.
|
| 26 |
+
|
| 27 |
+
Incremental few-shot learning [47, 41, 60, 9, 8] aims to incrementally learn from very few samples. TOPCI [47] proposes a neural gas network to learn and preserve the topology of the feature manifold formed by different classes. FSLL [34] only selects few model parameters for incremental learning and ensures the parameters are close to the optimal ones. To overcome catastrophic forgetting, IDLVQC [8] imposes constraints on the saved exemplars of each class by restricting the embedding drift, and Zhang et al. [59] propose to fix the embedding network for incremental learning. Similar to the finding of Zhang et al., we also discover that an intransigent model that simply does not adapt to new tasks can outperform prior state-of-the-art methods.
|
| 28 |
+
|
| 29 |
+
Robust optimization. It has been found that flat local minima leads to better generalization capabilities than sharp minima in the sense that a flat minimizer is more robust when the test loss is shifted due to random perturbations [18, 17, 24]. A substantial body of methods [2, 37, 11, 15] have been proposed to optimize neural networks towards flat local minima. In this paper, we show that for incremental few-shot learning, finding flat minima in the base session and tuning the model within the flat region on new tasks can significantly mitigate catastrophic forgetting.
|
| 30 |
+
|
| 31 |
+
# 3 Severity of Catastrophic Forgetting in Incremental Few-Shot Learning
|
| 32 |
+
|
| 33 |
+
# 3.1 Problem Statement
|
| 34 |
+
|
| 35 |
+
Incremental few-shot learning (IFL) aims to continually learn to recognize new classes with only few examples. Similar to incremental learning $\left( \operatorname { I L } \right)$ , an IFL model is trained by a sequence of training sessions $\{ \mathcal { D } ^ { 1 } , \cdots , \mathcal { D } ^ { t } \}$ , where $\mathcal { D } ^ { t } = \{ z _ { i } = ( x _ { i } ^ { t } , y _ { i } ^ { t } ) \} _ { i }$ is the training data of session $t$ and $\ v x _ { i } ^ { t }$ is an example of class $y _ { i } ^ { t } \in \mathcal { C } ^ { t }$ (the class set of session $t$ ). In IFL, the base session $\mathcal { D } ^ { 1 }$ usually contains a large number of classes with sufficient training data for each class, while the following sessions $\left( t \geq 2 \right)$ ) only have a small number of classes with few training samples per class, e.g., $\bar { \mathcal { D } } ^ { t }$ is often presented as an $N$ -way $K$ -shot task with small $N$ and $K$ . The key difference between $\mathrm { I L }$ and IFL is, for $\mathrm { I L }$ , sufficient training data is provided in each session. Similar to $\mathrm { I L }$ , in each training session $t$ of IFL, the model has only access to the training data $\mathcal { D } ^ { t }$ and possibly a small amount of saved exemplars from previous sessions. When the training of session $t$ is completed, the model is evaluated on test samples from all encountered classes ${ \mathcal { C } } = \textstyle \bigcup _ { i = 1 } ^ { t } { \mathcal { C } } ^ { i }$ , where it is assumed that there is no overlap between the classes of different sessions, i.e., $\forall i , j$ and $i \neq j$ , ${ \mathcal { C } } ^ { i } \cap { \mathcal { C } } ^ { j } = \emptyset$ .
|
| 36 |
+
|
| 37 |
+
Catastrophic forgetting. IFL is undoubtedly a more challenging problem than $\mathrm { I L }$ due to the data scarcity setting. IL suffers from catastrophic forgetting, a well-known phenomenon and long-standing issue, which refers to the drastic drop in test performance on previous (old) classes, caused by the inaccessibility of old data in the current training session. Unfortunately, catastrophic forgetting is an even bigger issue for IFL, because data scarcity makes it difficult to adapt well to new tasks and learn new concepts, while the adaptation process could easily lead to the forgetting of base classes. In the following, we illustrate this point by evaluating a simple baseline model for IFL.
|
| 38 |
+
|
| 39 |
+
# 3.2 A Simple Baseline Model for IFL
|
| 40 |
+
|
| 41 |
+
We consider an intransigent model that simply does not adapt to new tasks. Particularly, the model only needs to be trained in the base session $\bar { \mathcal { D } } ^ { 1 }$ and is directly used for inference in all sessions.
|
| 42 |
+
|
| 43 |
+
Training $( t = 1$ ). We train a feature extractor $f$ parameterized by $\phi$ with a fully-connected layer as classifier by minimizing the standard cross-entropy loss using the training examples of $\mathcal { D } ^ { 1 }$ . The feature extractor $f$ is fixed for the following sessions $\left( t \geq 2 \right)$ ) without any fine-tuning on new classes.
|
| 44 |
+
|
| 45 |
+
Inference (test). In each session, the inference is conducted by a simple nearest class mean (NCM) classification algorithm [36]. Specifically, all the training and test samples are mapped to the embedding space of the feature extractor $f$ , and Euclidean distance $d ( \cdot , \cdot )$ is used to measure the similarity between them. The classifier is given by
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
c _ { k } ^ { \star } = \operatorname * { a r g m i n } _ { c \in \mathcal { C } } d ( f ( x ; \phi ) , p _ { c } ) , \mathrm { ~ w h e r e ~ } p _ { c } = \frac { 1 } { N _ { c } } \sum _ { i } \mathbb { 1 } ( y _ { i } = c ) f ( x _ { i } ; \phi ) ,
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
where $\mathcal { C }$ denotes all the encountered classes, $p _ { c }$ refers to the prototype of class $c$ (the mean vector of all the training samples of class $c$ in the embedding space), and $N _ { c }$ denotes the number of the training images of class $c$ . Note that we save the prototypes of all classes in ${ \mathcal { C } } ^ { t }$ for later evaluation.
|
| 52 |
+
|
| 53 |
+
The baseline model outperforms state-of-the-art IFL and IL methods. We compare the above baseline model against state-of-the-art IFL methods including FSLL [34], IDLVQC [8] and TOPIC [47], IL methods including Rebalance [20] and iCarl [40], and a joint-training method that uses all previously seen data including the base and the following few-shot tasks for training, for IFL. The performance is evaluated on miniImageNet, CIFAR-100, and CUB-200. We tune the methods re-implemented by us to the best performance. For the other methods, we use the results reported in the original papers. The experimental details are provided in Sec. 5. As shown in Fig. 1, the baseline model consistently outperforms all the compared methods including the joint-training method (which suffers from severe data imbalance) on every dataset3. The fact that an intransigent model performs best suggests that
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
Figure 1: Comparison of the proposed baseline model with state-of-the-art IFL and $\mathrm { I L }$ methods and the joint-training method.The baseline model outperforms all the other methods.
|
| 57 |
+
|
| 58 |
+
• For IFL, preserving the old (base classes) may be more critical than adapting to the new. Due to data scarcity, the performance gain on new classes is limited and cannot make up for the significant performance drop on base classes. • Prior works [47, 8, 34, 20, 40] that enforce strong constraints on model parameters or exemplars during fine-tuning on new classes cannot effectively prevent catastrophic forgetting in IFL, indicating that actions may need to be taken in the base training stage.
|
| 59 |
+
|
| 60 |
+
# 4 Overcoming Catastrophic Forgetting in IFL by Finding Flat Minima
|
| 61 |
+
|
| 62 |
+
The goal of IFL is to preserve the old while adapting to the new efficiently. The results and analysis in Sec. 3 suggest that it might be “a bit late” to try to prevent catastrophic forgetting in the few-shot learning sessions $\left( t \geq 2 \right)$ ), which motivates us to consider this problem in the base training session.
|
| 63 |
+
|
| 64 |
+
Overview of our approach. To overcome catastrophic forgetting in IFL, we propose to find a $b$ -flat $( b > 0$ ) local minima $\theta ^ { \star }$ of the base training objective function and then fine-tune the model within the flat region in later few-shot learning sessions. Specifically, for any parameter vector $\theta$ in the flat region, i.e., $\theta ^ { \star } - b \preceq \theta \preceq \theta ^ { \star } + b$ , the risk (loss) of the base classes is minimized such that the classes are well separated in the embedding space of $f _ { \theta }$ . In the later incremental few-shot learning sessions $\left( t \geq 2 \right)$ ), we fine-tune the model parameters within this region to learn new classes, i.e., to find
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\theta ^ { \prime } = \arg \operatorname* { m i n } _ { \theta } \sum _ { z \in \mathcal { D } ^ { t } } \mathcal { L } ( z ; \theta ) , \mathrm { s . t . } \theta ^ { \star } - b \preceq \theta \preceq \theta ^ { \star } + b .
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
As such, the fine-tuned model $\theta ^ { \prime }$ can adapt to new classes while preserving the old ones. Also, due to the nature of few-shot learning, to avoid excessive training and overfitting, it suffices to tune the model in a relatively small region. A graphical illustration of our approach and prior arts, as well as the notions of sharp minima and flat minima, are presented in Fig. 2.
|
| 71 |
+
|
| 72 |
+
# 4.1 Searching for Flat Local Minima in the Base Training Stage
|
| 73 |
+
|
| 74 |
+
A formal definition of $b$ -flat local minima is given as follows.
|
| 75 |
+
|
| 76 |
+
Definition 1 ( $b$ -Flat Local Minima). Given a real-valued objective function $\mathcal { L } ( z ; \theta )$ , for any $b > 0$ , $\theta ^ { \star }$ is a $b$ -flat local minima of $\mathcal { L } ( z ; \theta )$ , if the following conditions are satisfied.
|
| 77 |
+
|
| 78 |
+
• Condition 1: $\mathcal { L } ( z ; \theta ^ { \star } ) = \mathcal { L } ( z ; \theta ^ { \star } + \epsilon )$ , where $- \mathbf { b } \preceq \epsilon \preceq \mathbf { b }$ and $\mathbf { b } _ { i } = b$ .
|
| 79 |
+
|
| 80 |
+
• Condition 2: there exist $\mathbf { c } _ { 1 } \prec \theta ^ { \star } - b$ and ${ \bf c } _ { 2 } \succ \theta ^ { \star } + b ,$ , s.t. $\mathcal { L } ( z ; \theta ) > \mathcal { L } ( z ; \theta ^ { \star } )$ , where $\mathbf { c } _ { 1 } \prec \theta \prec \theta ^ { \star } - b$ and $\mathcal { L } ( z ; \theta ^ { \star } ) < \mathcal { L } ( z ; \theta )$ , where $\theta ^ { \star } + b \prec \theta \prec \mathbf { c } _ { 2 }$ .
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 2: Illustration of our approach and existing solutions. indicates the incremental learning steps on new classes. $R _ { 1 }$ and $R _ { 2 }$ respectively denote the loss of base classes before and after minimizing the loss of new classes. (a) SGD finds sharp minima in the base training. Directly tuning the model on new classes will result in a severe performance drop on base classes. (b) Enforcing strong constraints on parameters by penalizing parameter changes [1, 28, 34] may still lead to a significant performance drop on base classes. (c) Finding flat local minima of base classes and clamping the parameters after trained on new classes to make them fall within the flat region can effectively mitigate catastrophic forgetting.
|
| 84 |
+
|
| 85 |
+
In practice, it is hard to find the flat local minima that strictly satisfies the above definition, which may not even exist. Hence, our goal is to find an approximately flat local minima of the base training objective function. To this end, we propose to add some small random noise to the model parameters. The noise can be added for multiple times to obtain similar but different loss functions, which will be optimized together to locate the flat minima region. The intuition is clear – the parameter vectors around the flat local minima also have small function values.
|
| 86 |
+
|
| 87 |
+
To formally state the idea, we assume that the model is parameterized by $\theta = \{ \phi , \psi \}$ , where $\phi$ denotes the parameters of the embedding network and $\psi$ denotes the parameters of the classifier. $z$ denotes a labelled training sample. Denote the loss function by $\mathcal { L } \colon \dot { \mathbb { R } } ^ { d _ { z } } \mathbb { R }$ . Our target is to minimize the expected loss function $R$ $\ ? \colon \mathbb { R } ^ { d } \mathbb { R }$ w.r.t. the joint distribution of data $z$ and noise $\epsilon$ , i.e.,
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
R ( \theta ) = \int _ { \mathbb { R } ^ { d _ { \epsilon } } } \int _ { \mathbb { R } ^ { d _ { z } } } \mathcal { L } ( z ; \phi + \epsilon , \psi ) d P ( z ) d P ( \epsilon ) = \mathbb { E } [ \mathcal { L } ( z ; \phi + \epsilon , \psi ) ] ,
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $P ( z )$ is the data distribution and $P ( \epsilon )$ is the noise distribution, and $z$ and $\epsilon$ are independent. Since it is impossible to minimize the expected loss, we minimize its estimation, the empirical loss, which is given by
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\mathcal { L } ( \theta ) = \frac { 1 } { M } \sum _ { j = 1 } ^ { M } \mathcal { L } _ { \mathrm { b a s e } } ( z ; \phi + \epsilon _ { j } , \psi ) , \mathrm { w h e r e }
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\mathcal { L } _ { \mathrm { b a s e } } ( z ; \phi + \epsilon _ { j } , \psi ) = \frac { 1 } { | \mathcal { D } ^ { 1 } | } \sum _ { z \in \mathcal { D } ^ { 1 } } \mathcal { L } _ { c e } ( z ; \phi + \epsilon _ { j } , \psi ) + \lambda \frac { 1 } { | \mathcal { C } ^ { 1 } | } \sum _ { c \in \mathcal { C } ^ { 1 } } \| p _ { c } - p _ { c } ^ { * } \| _ { 2 } ^ { 2 } ,
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $\epsilon _ { j }$ is a noise vector sampled from $P ( \epsilon )$ , $M$ is the sampling times, $\mathcal { L } _ { c e } ( z ; \phi + \epsilon _ { j } , \psi )$ refers to the cross-entropy loss of a training sample $z$ , and $p _ { c }$ and $p _ { c } ^ { * }$ are the class prototypes before and after injecting noise respectively. The first term of $\mathcal { L } _ { b a s e }$ is designed to find the flat region where the parameters $\phi$ of the embedding network can well separate the base classes. The second term enforces the class prototypes fixed within such region, which is designed to solve the prototype drift problem [54, 8] (the class prototypes change after updating the network) in later incremental learning sessions such that the saved base class prototypes can be directly used for evaluation in later sessions.
|
| 104 |
+
|
| 105 |
+
# 4.2 Incremental Few-shot Learning within the Flat Region
|
| 106 |
+
|
| 107 |
+
In the incremental few-shot learning sessions $\left( t \geq 2 \right)$ ), we fine-tune the parameters $\phi$ of the embedding network within the flat region to learn new classes. It is worth noting that while the flat region might be relatively small, it is enough for incremental few-shot learning. Because only few training samples are provided for each new class, to prevent overfitting in few-shot learning, excessive training should be avoided and only a small number of update iterations should be applied.
|
| 108 |
+
|
| 109 |
+
# Algorithm 1: F2M
|
| 110 |
+
|
| 111 |
+
Input: the flat region bound $b$ , randomly initialized $\theta = \{ \phi , \psi \}$ , the step sizes $\alpha$ and $\beta$ .
|
| 112 |
+
// Training over base classes $t = 1$
|
| 113 |
+
for epoch $k = 1 , 2 , \dots$ do for $j = 1 , 2 , . . . , M$ do Sample a noise vector $\epsilon _ { j } \sim P ( \epsilon )$ , s.t. $- \mathbf { b } \preceq \epsilon _ { j } \preceq \mathbf { b }$ ; Add the noise to the parameters of the embedding network, i.e., $\theta = \{ \phi + \epsilon _ { j } , \psi \}$ ; Compute the base loss $\mathcal { L } _ { b a s e }$ with Eq. 4; Reset the parameters, i.e., $\theta = \{ \phi , \psi \}$ ; end Update $\theta = \theta - \alpha \nabla { \mathcal { L } } ( \theta )$ with the loss $\mathcal { L }$ defined in Eq. 3.
|
| 114 |
+
end
|
| 115 |
+
Normalize and save the prototype of each base class;
|
| 116 |
+
// Incremental learning $t \geq 2$
|
| 117 |
+
Combine the training data $\mathcal { D } ^ { t }$ and the exemplars saved in previous few-shot sessions $2 \leq t _ { e } < t$ ;
|
| 118 |
+
for epoch $k = 1 , 2 , . .$ . do Compute the metric-based classification loss ${ \mathcal { L } } _ { m }$ by Eq. 5; Update $\phi = \phi - \beta \nabla \mathcal { L } _ { m } ( z ; \phi )$ ; Clamp the parameters $\phi$ to ensure they fall in the flat minima region;
|
| 119 |
+
end
|
| 120 |
+
Randomly select and save a few exemplars from the training data $\mathcal { D } ^ { t }$ ;
|
| 121 |
+
Normalize and save the prototype of each new class;
|
| 122 |
+
Output: Model parameters $\theta = \{ \phi , \psi \}$ .
|
| 123 |
+
|
| 124 |
+
We employ a metric-based classification algorithm with Euclidean distance to fine-tune the parameters. The loss function is defined as
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\mathcal { L } _ { m } ( z ; \phi ) = - \sum _ { z \in \mathcal { D } } \sum _ { c \in \mathcal { C } } \mathbb { 1 } ( y = c ) \log \big ( \frac { e ^ { - d ( p _ { c } , f ( x ; \phi ) ) } } { \sum _ { c _ { k } \in \mathcal { C } } e ^ { - d ( p _ { c _ { k } } , f ( x ; \phi ) ) } } \big ) , z
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $d ( \cdot , \cdot )$ denotes Euclidean distance, $p _ { c }$ is the prototype of class $c$ , $\textstyle { \mathcal { C } } = \bigcup _ { i = 1 } ^ { t } { \mathcal { C } } ^ { i }$ refers to all encountered classes, and ${ \mathcal { D } } = { \mathcal { D } } ^ { t } \cup { \mathcal { P } }$ denotes the union of the current training data $\mathcal { D } ^ { t }$ and the exemplar set $\mathcal { P } = \{ P _ { 2 } , . . . , P _ { t - 1 } \}$ , where $P _ { t _ { e } } ( 2 \leq t _ { e } < t )$ is the set of saved exemplars in session $t _ { e }$ . Note that the prototypes of new classes are computed by Eq. 1, and those of base classes are saved in the base session. After updating the embedding network parameters, we clamp them to ensure that they fall within the flat region, i.e. $\phi ^ { \star } - b \preceq \phi \preceq \phi ^ { \star } + b$ , where $\phi ^ { \star }$ denotes the optimal parameter vector learned in the base session. After fine-tuning, we evaluate the model using the nearest class mean classifier as in Eq. 1, with previously saved prototypes and newly computed ones. The whole training process is described in Algorithm 1. Note that to calibrate the estimates of the classifier, we normalize all prototypes to make those of base classes and those of new classes have the same norm.
|
| 131 |
+
|
| 132 |
+
# 4.3 Convergence Analysis
|
| 133 |
+
|
| 134 |
+
Our aim is to find a flat region within which all parameter vectors work well. We then minimize the expected loss w.r.t. the joint distribution of noise $\epsilon$ and data $z$ . To approximate this expected loss, we sample from $P ( \epsilon )$ for multiple times in each iteration and optimize the objective function using stochastic gradient descent (SGD). Here, we provide theoretical guarantees for our method. Given the non-convex loss function in Eq. 3, we prove the convergence of our proposed method. The proof idea is inspired by the convergence analysis of SGD [3, 27].
|
| 135 |
+
|
| 136 |
+
Formally, in each batch $k$ , let $z _ { k }$ denote the batch data, $\{ \epsilon _ { j } \} _ { j = 1 } ^ { M }$ be the sampled noises, and $\alpha _ { k }$ be the step size. In the base training session, we update the model parameters as follows:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\theta _ { k + 1 } = \theta _ { k } - \frac { \alpha _ { k } } { M } \sum _ { j = 1 } ^ { M } \nabla \mathcal { L } _ { \mathrm { b a s e } } \big ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } \big ) = \theta _ { k } - \frac { \alpha _ { k } } { M } \sum _ { j = 1 } ^ { M } g \big ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } \big ) ,
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
where $g ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } ) = \nabla { \mathcal { L } } _ { \mathrm { b a s e } } ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } )$ is the gradient. To formally analyze the convergence of our algorithm, we define the following assumptions.
|
| 143 |
+
|
| 144 |
+
Assumption 4.1 (L-smooth risk function). The expected loss function $R : \mathbb { R } ^ { d } \mathbb { R }$ (Eq. 2) is continuously differentiable and $L$ -smooth with constant $L > 0$ such that
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\| \nabla R ( \theta ) - \nabla R ( \theta ^ { \prime } ) \| _ { 2 } \leq L \| \theta - \theta ^ { \prime } \| .
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
This assumption is significant for the convergence analysis of gradient-based optimization algorithms, since it limits how fast the gradient of the loss function can change w.r.t. the parameter vector.
|
| 151 |
+
|
| 152 |
+
Assumption 4.2. The expected loss function satisfies the following conditions:
|
| 153 |
+
|
| 154 |
+
• Condition 1: $R$ is bounded below by a scalar $R ^ { \star }$ , given the sequence of parameters $\{ \theta _ { k } \}$
|
| 155 |
+
|
| 156 |
+
• Condition 2: For all $k \in \mathbb N$ and $j \in [ 1 , M ]$ ,
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
\begin{array} { r } { \mathbb { E } _ { z _ { k } , \epsilon _ { j } } \big [ g \big ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } \big ) \big ] = \nabla R ( \theta _ { k } ) . } \end{array}
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
• Condition $^ 3$ : There exist scalars $m _ { 1 } \geq 0$ and $m _ { 2 } \geq 0 ,$ , for all $k \in \mathbb N$ and $j \in [ 1 , M ]$ ,
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
\begin{array} { r } { \mathbb { V } _ { z _ { k } , \epsilon _ { j } } [ g ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } ) ] \le m _ { 1 } + m _ { 2 } \| \nabla R ( \theta _ { k } ) \| _ { 2 } ^ { 2 } . } \end{array}
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
$\mathbb { E } _ { z _ { k } , \epsilon _ { j } } [ \cdot ]$ denotes the expectation w.r.t. the joint distribution of random variables $z _ { k }$ and $\epsilon _ { j }$ , and $\mathbb { V } _ { z _ { k } , \epsilon _ { j } } [ \cdot ]$ denotes the variance. Condition 1 ensures that the expected loss $R$ is bounded by a minimum value $R ^ { \star }$ during the updates, which is a natural and practical assumption. Condition 2 assumes that the gradient $g ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } )$ is an unbiased estimate of $\nabla R ( \theta _ { k } )$ . This is a strict assumption made to simplify the proof, but it can be easily relaxed to a general and easily-met condition that there exist $\mu _ { 1 } \geq \mu _ { 2 } > 0$ satisfying $\| \mathbb { E } _ { z _ { k } , \epsilon _ { j } } [ \bar { g ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } ) } ] \| _ { 2 } \leq \mu _ { 1 } \| \nabla \bar { R ( \theta _ { k } ) } \| _ { 2 }$ and $\nabla R ( \theta _ { k } ) ^ { T } \mathbb { E } _ { z _ { k } , \epsilon _ { j } } [ g ( \underline { { z _ { k } } } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } ) ] \geq \mu _ { 2 } \| \nabla R ( \theta _ { k } ) \| _ { 2 } ^ { 2 }$ . Therefore, the convergence can be proved in a similar way using the techniques presented in the Appendix. Condition 3 assumes the variance of the gradient $g ( z _ { k } ; \phi _ { k } + \epsilon _ { j } , \psi _ { k } )$ cannot be arbitrarily large, which is also reasonable in practice. To facilitate later analysis, similar to [43], we restrict the step sizes as follows.
|
| 169 |
+
|
| 170 |
+
Assumption 4.3. The learning rates satisfy:
|
| 171 |
+
|
| 172 |
+
$$
|
| 173 |
+
\sum _ { k = 1 } ^ { \infty } \alpha _ { k } = \infty , \ \sum _ { k = 1 } ^ { \infty } \alpha _ { k } ^ { 2 } < \infty .
|
| 174 |
+
$$
|
| 175 |
+
|
| 176 |
+
This assumption can be easily met, since in practice the learning rate $\alpha _ { k }$ is usually far less than 1 and decreases w.r.t. $k$ . Based on the above assumptions, we can derive the following theorem.
|
| 177 |
+
|
| 178 |
+
Theorem 4.1. Under assumptions 4.1, 4.2 and 4.3, we further assume that the risk function $R$ is twice differentiable, and that $\| \nabla R ( \theta ) \| _ { 2 } ^ { 2 }$ is $L _ { 2 }$ -smooth with constant $L _ { 2 } > 0$ , then we have
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\operatorname* { l i m } _ { k \to \infty } \mathbb { E } [ \| \nabla R ( \theta _ { k } ) \| _ { 2 } ^ { 2 } ] = 0 .
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
This theorem establishes the convergence of our algorithm. The proof is provided in Appendix A.1.
|
| 185 |
+
|
| 186 |
+
# 5 Experiments
|
| 187 |
+
|
| 188 |
+
In this section, we empirically evaluate our proposed method for incremental few-shot learning and demonstrate its effectiveness by comparison with state-of-the-art methods.
|
| 189 |
+
|
| 190 |
+
# 5.1 Experimental Setup
|
| 191 |
+
|
| 192 |
+
Datasets. For CIFAR-100 and miniImageNet, we randomly select 60 classes as the base classes and the remaining 40 classes as the new classes. In each incremental learning session, we construct 5-way 5-shot tasks by randomly picking 5 classes and sampling 5 examples for each class. For CUB-200-2011 with 200 classes, we select 100 classes as the base classes and 100 classes as the new ones. We test 10-way 5-shot tasks on this dataset.
|
| 193 |
+
|
| 194 |
+
Baselines. We compare our method F2M with 8 methods: the Baseline proposed in Sec. 3, a jointtraining method that uses all previously seen data including the base and the following few-shot tasks for training, the classifier re-training method (cRT) [25] for long-tailed classification trained with all encountered data, iCaRL [40], Rebalance [20], TOPIC [47], FSLL [34], and IDLVQ-C [8]. For a fair comparison, we re-implement cRT [25], iCaRL [40], Rebalance [20], FSLL [34], and the joint-training method and tune them to their best performance. We also provide the results reported in the original papers for comparison. The results of TOPIC [47] and IDLVQ-C [8] are copied from the original papers. Note that for IL, joint-training is naturally the upper bound of incremental learning algorithms, however, for IFL, joint-training is not a good approximation of the upper bound because data imbalance makes the model perform significantly poorer on new classes (long-tailed classes). To address the data imbalance issue, we re-implement the cRT method as the approximate upper bound.
|
| 195 |
+
|
| 196 |
+
Table 1: Classification accuracy on CIFAR-100 for 5-way 5-shot incremental learning. ∗ indicates our re-implementation.
|
| 197 |
+
|
| 198 |
+
<table><tr><td rowspan="2">Method</td><td colspan="9">sessions</td><td rowspan="2">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>cRT[25]*</td><td>65.18</td><td>63.89</td><td>60.20</td><td>57.23</td><td>53.71</td><td>50.39</td><td>48.77</td><td>47.29</td><td>45.28</td><td>=</td></tr><tr><td>Joint-training*</td><td>65.18</td><td>61.45</td><td>57.36</td><td>53.68</td><td>50.84</td><td>47.33</td><td>44.79</td><td>42.62</td><td>40.08</td><td>-5.20</td></tr><tr><td>Baseline</td><td>65.18</td><td>61.67</td><td>58.61</td><td>55.11</td><td>51.86</td><td>49.43</td><td>47.60</td><td>45.64</td><td>43.83</td><td>-1.45</td></tr><tr><td>iCaRL[40]*</td><td>66.52</td><td>57.26</td><td>54.27</td><td>50.62</td><td>47.33</td><td>44.99</td><td>43.14</td><td>41.16</td><td>39.49</td><td>-5.79</td></tr><tr><td>Rebalance [20]*</td><td>66.66</td><td>61.42</td><td>57.29</td><td>53.02</td><td>48.85</td><td>45.68</td><td>43.06</td><td>40.56</td><td>38.35</td><td>-6.93</td></tr><tr><td>FSLL [34]*</td><td>65.18</td><td>56.24</td><td>54.55</td><td>51.61</td><td>49.11</td><td>47.27</td><td>45.35</td><td>43.95</td><td>42.22</td><td>-3.08</td></tr><tr><td>iCaRL[40]</td><td>64.10</td><td>53.28</td><td>41.69</td><td>34.13</td><td>27.93</td><td>25.06</td><td>20.41</td><td>15.48</td><td>13.73</td><td>-31.55</td></tr><tr><td>Rebalance [20]</td><td>64.10</td><td>53.05</td><td>43.96</td><td>36.97</td><td>31.61</td><td>26.73</td><td>21.23</td><td>16.78</td><td>13.54</td><td>-31.74</td></tr><tr><td>TOPIC [47]</td><td>64.10</td><td>55.88</td><td>47.07</td><td>45.16</td><td>40.11</td><td>36.38</td><td>33.96</td><td>31.55</td><td>29.37</td><td>-15.91</td></tr><tr><td>FSLL [34]</td><td>64.10</td><td>55.85</td><td>51.71</td><td>48.59</td><td>45.34</td><td>43.25</td><td>41.52</td><td>39.81</td><td>38.16</td><td>-7.12</td></tr><tr><td>FSLL+SS [34]</td><td>66.76</td><td>55.52</td><td>52.20</td><td>49.17</td><td>46.23</td><td>44.64</td><td>43.07</td><td>41.20</td><td>39.57</td><td>-5.71</td></tr><tr><td>F2M</td><td>64.71</td><td>62.05</td><td>59.01</td><td>55.58</td><td>52.55</td><td>49.96</td><td>48.08</td><td>46.28</td><td>44.67</td><td>-0.61</td></tr></table>
|
| 199 |
+
|
| 200 |
+
Table 2: Classification accuracy on miniImageNet for 5-way 5-shot incremental learning. ∗ indicates our re-implementation.
|
| 201 |
+
|
| 202 |
+
<table><tr><td rowspan="2">Method</td><td colspan="9">sessions</td><td rowspan="2">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>cRT[25]*</td><td>67.30</td><td>64.15</td><td>60.59</td><td>57.32</td><td>54.22</td><td>51.43</td><td>48.92</td><td>46.78</td><td>44.85</td><td>=</td></tr><tr><td>Joint-training*</td><td>67.30</td><td>62.34</td><td>57.79</td><td>54.08</td><td>50.93</td><td>47.65</td><td>44.64</td><td>42.61</td><td>40.29</td><td>-4.56</td></tr><tr><td>Baseline</td><td>67.30</td><td>63.18</td><td>59.62</td><td>56.33</td><td>53.28</td><td>50.50</td><td>47.96</td><td>45.85</td><td>43.88</td><td>-0.97</td></tr><tr><td>iCaRL [40]*</td><td>67.35</td><td>59.91</td><td>55.64</td><td>52.60</td><td>49.43</td><td>46.73</td><td>44.13</td><td>42.17</td><td>40.29</td><td>-4.56</td></tr><tr><td>Rebalance [20]*</td><td>67.91</td><td>63.11</td><td>58.75</td><td>54.83</td><td>50.68</td><td>47.11</td><td>43.88</td><td>41.19</td><td>38.72</td><td>-6.13</td></tr><tr><td>FSLL [34]*</td><td>67.30</td><td>59.81</td><td>57.26</td><td>54.57</td><td>52.05</td><td>49.42</td><td>46.95</td><td>44.94</td><td>42.87</td><td>-1.11</td></tr><tr><td>iCaRL[40]</td><td>61.31</td><td>46.32</td><td>42.94</td><td>37.63</td><td>30.49</td><td>24.00</td><td>20.89</td><td>18.80</td><td>17.21</td><td>-27.64</td></tr><tr><td>Rebalance [20]</td><td>61.31</td><td>47.80</td><td>39.31</td><td>31.91</td><td>25.68</td><td>21.35</td><td>18.67</td><td>17.24</td><td>14.17</td><td>-30.68</td></tr><tr><td>TOPIC [47]</td><td>61.31</td><td>50.09</td><td>45.17</td><td>41.16</td><td>37.48</td><td>35.52</td><td>32.19</td><td>29.46</td><td>24.42</td><td>-20.43</td></tr><tr><td>FSLL [34]</td><td>66.48</td><td>61.75</td><td>58.16</td><td>54.16</td><td>51.10</td><td>48.53</td><td>46.54</td><td>44.20</td><td>42.28</td><td>-2.57</td></tr><tr><td>FSLL+SS[34]</td><td>68.85</td><td>63.14</td><td>59.24</td><td>55.23</td><td>52.24</td><td>49.65</td><td>47.74</td><td>45.23</td><td>43.92</td><td>-0.93</td></tr><tr><td>IDLVQ-C[8]</td><td>64.77</td><td>59.87</td><td>55.93</td><td>52.62</td><td>49.88</td><td>47.55</td><td>44.83</td><td>43.14</td><td>41.84</td><td>-3.01</td></tr><tr><td>F2M</td><td>67.28</td><td>63.80</td><td>60.38</td><td>57.06</td><td>54.08</td><td>51.39</td><td>48.82</td><td>46.58</td><td>44.65</td><td>-0.20</td></tr></table>
|
| 203 |
+
|
| 204 |
+
Experimental details. The experiments are conducted with NVIDIA GPU RTX3090 on CUDA 11.0. We randomly split each dataset into multiple tasks (sessions). For each dataset (with a fixed split), we run each algorithm for 10 times and report the mean accuracy. We adopt ResNet18 [16] as the backbone network. For data augmentation, we use standard random crop and horizontal flip. In the base training stage, we select the last 4 or 8 convolution layers to inject noise, because these layers output higher-level feature representations. The flat region bound $b$ is set as 0.01. We set the number of times for noise sampling as $M = 2 \sim 4$ , since a larger $M$ will increase the training time. In each incremental few-shot learning session, the total number of training epochs is 6, and the learning rate is 0.02. To verify the correctness of our implementation, we conduct experiments on incremental learning and compare our results to those reported on CIFAR-100 in Appendix A.3. More experiment details are provided in Appendix A.2.
|
| 205 |
+
|
| 206 |
+
Table 3: Classification accuracy on CUB-200-2011 for 10-way 5-shot incremental learning.∗ indicates our re-implementation.
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">Method</td><td colspan="10">sessions</td><td rowspan="2">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>cRT[25]*</td><td>80.83</td><td>78.51</td><td>76.12</td><td>73.93</td><td>71.46</td><td>68.96</td><td>67.73</td><td>66.75</td><td>64.22</td><td>62.53</td><td>61.08</td><td></td></tr><tr><td>Joint-training*</td><td>80.83</td><td>77.57</td><td>74.11</td><td>70.75</td><td>68.52</td><td>65.97</td><td>64.58</td><td>62.22</td><td>60.18</td><td>58.49</td><td>56.78</td><td>-4.30</td></tr><tr><td>Baseline</td><td>80.87</td><td>77.15</td><td>74.46</td><td>72.26</td><td>69.47</td><td>67.18</td><td>65.62</td><td>63.68</td><td>61.30</td><td>59.72</td><td>58.12</td><td>-2.96</td></tr><tr><td>iCaRL [40]*</td><td>79.58</td><td>67.63</td><td>64.17</td><td>61.80</td><td>58.10</td><td>55.51</td><td>53.34</td><td>50.89</td><td>48.62</td><td>47.34</td><td>45.60</td><td>-15.48</td></tr><tr><td>Rebalance [20]*</td><td>80.94</td><td>70.32</td><td>62.96</td><td>57.19</td><td>51.06</td><td>46.70</td><td>44.03</td><td>40.15</td><td>36.75</td><td>34.88</td><td>32.09</td><td>-28.99</td></tr><tr><td>FSLL [34]*</td><td>80.83</td><td>77.38</td><td>72.37</td><td>71.84</td><td>67.51</td><td>65.30</td><td>63.75</td><td>61.16</td><td>59.05</td><td>58.03</td><td>55.82</td><td>-5.26</td></tr><tr><td>iCaRL [40]</td><td>68.68</td><td>52.65</td><td>48.61</td><td>44.16</td><td>36.62</td><td>29.52</td><td>27.83</td><td>26.26</td><td>24.01</td><td>23.89</td><td>21.16</td><td>-39.92</td></tr><tr><td>Rebalance [20]</td><td>68.68</td><td>57.12</td><td>44.21</td><td>28.78</td><td>26.71</td><td>25.66</td><td>24.62</td><td>21.52</td><td>20.12</td><td>20.06</td><td>19.87</td><td>-41.21</td></tr><tr><td>TOPIC[47]</td><td>68.68</td><td>62.49</td><td>54.81</td><td>49.99</td><td>45.25</td><td>41.40</td><td>38.35</td><td>35.36</td><td>32.22</td><td>28.31</td><td>26.28</td><td>-34.80</td></tr><tr><td>FSLL [34]</td><td>72.77</td><td>69.33</td><td>65.51</td><td>62.66</td><td>61.10</td><td>58.65</td><td>57.78</td><td>57.26</td><td>55.59</td><td>55.39</td><td>54.21</td><td>-6.87</td></tr><tr><td>FSLL+SS [34]</td><td>75.63</td><td>71.81</td><td>68.16</td><td>64.32</td><td>62.61</td><td>60.10</td><td>58.82</td><td>58.70</td><td>56.45</td><td>56.41</td><td>55.82</td><td>-5.26</td></tr><tr><td>IDLVQ-C [8]</td><td>77.37</td><td>74.72</td><td>70.28</td><td>67.13</td><td>65.34</td><td>63.52</td><td>62.10</td><td>61.54</td><td>59.04</td><td>58.68</td><td>57.81</td><td>-3.27</td></tr><tr><td>F2M</td><td>81.07</td><td>78.16</td><td>75.57</td><td>72.89</td><td>70.86</td><td>68.17</td><td>67.01</td><td>65.26</td><td>63.36</td><td>61.76</td><td>60.26</td><td>-0.82</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 4: Comparison of the flatness of the local minima found by the Baseline and our F2M.
|
| 211 |
+
|
| 212 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Indicator I</td><td colspan="2">Variance g2</td></tr><tr><td>Training Set</td><td>Testing Set</td><td>Training Set</td><td>Testing Set</td></tr><tr><td>Baseline</td><td>0.2993</td><td>0.4582</td><td>0.1451</td><td>0.2395</td></tr><tr><td>F2M</td><td>0.0506</td><td>0.0800</td><td>0.0296</td><td>0.0334</td></tr></table>
|
| 213 |
+
|
| 214 |
+
# 5.2 Comparison with the State-of-the-Art
|
| 215 |
+
|
| 216 |
+
F2M outperforms the state-of-the-art methods. The main results on CIFAR-100, miniImageNet and CUB-200-2011 are presented in Table 1, Table 2 and Table 3 respectively. Based on the experiment results, we have the following observations: 1) The Baseline introduced in Sec. 3 outperforms the state-of-the-art approaches on all incremental sessions. 2) As expected, cRT consistently outperforms the Baseline up to $1 \%$ to $3 \%$ by considering the data imbalance problem and applying proper techniques to tackle the long-tailed classification problem to improve performance. Hence, it is reasonable to use cRT as the approximate upper bound of IFL. 3) Our F2M outperforms the state-ofthe-art methods and the Baseline. Moreover, the performance of F2M is very close to the approximate upper bound, i.e., the gap with cRT is only $0 . 2 \%$ in the last session on miniImageNet. The results show that even with strong constraints [20, 40, 34] and saved examplars of base classes [20, 40, 8], current methods cannot effectively address the catastrophic forgetting problem. In contrast, finding flat minima seems a promising approach to overcome this harsh problem.
|
| 217 |
+
|
| 218 |
+
# 5.3 Ablation Study and Analysis
|
| 219 |
+
|
| 220 |
+
Analysis on the flatness of local minima. Here, we verify that our method can find a more flat local minima than the Baseline. For a found local minima $\theta ^ { \star }$ , we measure its flatness as follows. We sample the noise for 1000 times. For each time, we inject the sampled noise to $\theta ^ { \star }$ and calculate the loss $\mathcal { L } _ { i }$ . to measure the flatness. Then, we adopt the indicator I = 11000 P1000i=1 $\mathcal { L } ^ { * }$ denotes the loss of $\begin{array} { r } { I = \frac { 1 } { 1 0 0 0 } \sum _ { i = 1 } ^ { 1 0 0 0 } ( \mathcal { L } _ { i } - \mathcal { L } ^ { * } ) ^ { 2 } } \end{array}$ $\theta ^ { \star }$ , and $\overline { { \mathcal { L } } }$ 1000denotes the average loss of and variance $\begin{array} { r } { \sigma ^ { 2 } = \frac { 1 } { 1 0 0 0 } \sum _ { i = 1 } ^ { 1 0 0 0 } ( \mathcal { L } _ { i } - \overline { { \mathcal { L } } } ) ^ { 2 } } \end{array}$ $\{ \mathcal { L } _ { i } \} _ { i = 1 } ^ { 1 0 0 0 }$ . The values of the indicator and variance of F2M and the Baseline are presented in Table 4, which clearly demonstrate that our method can find a more flat local minima.
|
| 221 |
+
|
| 222 |
+
Ablation study on the designs of our method. Here, we study the effectiveness of each design of our method, including adding noise to the model parameters for finding $b$ -flat local minima (FM) during the base training session, the prototype fixing term (PF) used in the base training objective (Eq. 4), parameter clamping (PC) during incremental learning, and prototype normalization (PN). We conduct an ablation study by removing each component in turn and report the experimental results in Table 5.
|
| 223 |
+
|
| 224 |
+
Finding b-flat local minima. Standard supervised training with SGD as the optimizer tends to converge to a sharp local minima. It leads to a significant drop in performance because the loss changes quickly in the neighborhood of the sharp local minima. As shown in Table 5, even with parameter clamping during incremental learning, the performance still drops significantly. In contrast, restricting the parameters in a small flat region can mitigate the forgetting problem.
|
| 225 |
+
|
| 226 |
+
Table 5: Ablation study of our F2M on CIFAR-100. PD refers to the performance dropping rate.
|
| 227 |
+
|
| 228 |
+
<table><tr><td rowspan="2">FM</td><td rowspan="2">PF</td><td rowspan="2">PC</td><td rowspan="2">PN</td><td colspan="10">sessions</td><td rowspan="2">PD↓</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td rowspan="4">广</td><td></td><td></td><td></td><td>65.18</td><td>60.83</td><td>53.13</td><td>43.57</td><td>23.75</td><td>10.76</td><td>08.26</td><td>07.24</td><td>06.45</td><td>58.73</td></tr><tr><td></td><td>√</td><td></td><td>65.18</td><td>59.48</td><td>56.77</td><td>52.99</td><td>50.09</td><td>47.80</td><td>45.92</td><td>44.20</td><td>42.55</td><td>22.63</td></tr><tr><td>√</td><td></td><td>√</td><td>64.71</td><td>59.54</td><td>53.03</td><td>45.09</td><td>41.68</td><td>39.04</td><td>38.64</td><td>37.19</td><td>36.01</td><td>28.70</td></tr><tr><td></td><td>√</td><td>√</td><td>64.55</td><td>61.27</td><td>58.33</td><td>54.82</td><td>51.60</td><td>49.22</td><td>47.48</td><td>45.78</td><td>44.08</td><td>20.47</td></tr><tr><td>√</td><td>√</td><td>√</td><td></td><td>64.71</td><td>61.75</td><td>58.80</td><td>55.33</td><td>52.27</td><td>49.75</td><td>47.72</td><td>46.01</td><td>44.43</td><td>20.28</td></tr><tr><td>√</td><td></td><td>√</td><td>√</td><td>64.71</td><td>61.99</td><td>58.99</td><td>55.58</td><td>52.55</td><td>49.96</td><td>48.08</td><td>46.28</td><td>44.67</td><td>20.04</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 6: Study of the flat region bound $b$ for 5-way 5-shot incremental learning on CIFAR-100. The top 3 results in each row are in boldface.
|
| 231 |
+
|
| 232 |
+
<table><tr><td rowspan="2">Session</td><td colspan="6">The hyperparameter b</td></tr><tr><td>0.0025</td><td>0.005</td><td>0.01</td><td>0.02</td><td>0.04</td><td>0.08</td></tr><tr><td>Session 1(60 bases classes)</td><td>64.85</td><td>64.67</td><td>64.81</td><td>64.71</td><td>63.30</td><td>62.25</td></tr><tr><td>Session 9 (All 100 classes)</td><td>44.16</td><td>44.54</td><td>44.58</td><td>44.67</td><td>43.75</td><td>43.04</td></tr><tr><td>Session 9 (60 base classes)</td><td>59.58</td><td>59.69</td><td>59.73</td><td>59.44</td><td>58.38</td><td>57.21</td></tr><tr><td>Session 9 (40 new classes)</td><td>21.03</td><td>21.81</td><td>21.86</td><td>22.52</td><td>21.80</td><td>21.77</td></tr></table>
|
| 233 |
+
|
| 234 |
+
Prototype fixing. Without fixing the prototypes after injecting noise to selected layers during the process of finding local minima, i.e. removing the second term of Eq. 4, it is still possible to tune the model within the flat region to well separate base classes. However, the saved prototypes of base classes will become less accurate because the embeddings of the base samples suffer from semantic drift [54]. As shown in Table 5, it results in a performance drop of nearly $0 . 6 \%$ .
|
| 235 |
+
|
| 236 |
+
Parameter clamping. Parameter clamping restricts the model parameters to the $b$ -flat region after incremental few-shot learning. Outside the $b$ -flat region, the performance drops quickly. It can be seen from Table 5 that removing parameter clamping leads to a significant drop in performance.
|
| 237 |
+
|
| 238 |
+
Prototype normalization. As mentioned in Sec. 4.2, we normalize the class prototypes to calibrate the estimates of the class mean classifier. The results in Table 5 show the effectiveness of normalization, which helps to further improve the performance.
|
| 239 |
+
|
| 240 |
+
Study of the flat region bound $b$ . We study the effect of the flat region bound $b$ for 5-way 5-shot incremental learning on CIFAR-100. We report the test accuracy in session 1 (base session) and session 9 (last session) w.r.t. different $b$ in Table 6. It can be seen that the best results are achieved for $b \in [ 0 . 0 0 5 , 0 . 0 2 ]$ . A larger $b$ (e.g., 0.04 or 0.08) leads to a significant performance drop on base classes, even for those in session 1, indicating that there may not exist a large flat region around a good local minima. Meanwhile, a smaller $b$ (e.g., 0.0025) results in a performance decline on new classes, due to the overly small capacity of the flat region. This illustrates the trade-off effect of $b$ .
|
| 241 |
+
|
| 242 |
+
# 6 Conclusion
|
| 243 |
+
|
| 244 |
+
We have proposed a novel approach to overcome catastrophic forgetting in incremental few-shot learning by finding flat local minima of the objective function in the base training stage and then fine-tuning the model within the flat region on new tasks. Extensive experiments on benchmark datasets show that our model can effectively mitigate catastrophic forgetting and adapt to new classes. A limitation of our method is that it may not be suitable for medium- or high-shot tasks, since the flat region is relatively small, which limits the model capacity. However, it is still possible to adapt our core idea for incremental learning. For example, one can search for a less flat but wider local minima region in the base training stage and tune the model within this region during incremental learning sessions, where previous techniques such as elastic weight consolidation (EWC) [28] can be used to constraint the model parameters. This could be an interesting direction for future research.
|
| 245 |
+
|
| 246 |
+
# Acknowledgments and Disclosure of Funding
|
| 247 |
+
|
| 248 |
+
We would like to thank the anonymous reviewers for their insightful and helpful comments. This research was supported by the grant of DaSAIL project P0030935 funded by PolyU/UGC.
|
| 249 |
+
|
| 250 |
+
References
|
| 251 |
+
[1] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pages 139–154, 2018.
|
| 252 |
+
[2] Carlo Baldassi, Fabrizio Pittorino, and Riccardo Zecchina. Shaping the learning landscape in neural networks around wide flat minima. Proc. Natl. Acad. Sci. USA, 117(1):161–170, 2020.
|
| 253 |
+
[3] Léon Bottou, Frank E Curtis, and Jorge Nocedal. Optimization methods for large-scale machine learning. Siam Review, 60(2):223–311, 2018.
|
| 254 |
+
[4] Francisco M Castro, Manuel J Marín-Jiménez, Nicolás Guil, Cordelia Schmid, and Karteek Alahari. End-to-end incremental learning. In Proceedings of the European conference on computer vision (ECCV), pages 233–248, 2018.
|
| 255 |
+
[5] Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In Proceedings of the European Conference on Computer Vision (ECCV), pages 532–547, 2018.
|
| 256 |
+
[6] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. In International Conference on Learning Representations, 2018.
|
| 257 |
+
[7] Hung-Jen Chen, An-Chieh Cheng, Da-Cheng Juan, Wei Wei, and Min Sun. Mitigating forgetting in online continual learning via instance-aware parameterization. Advances in Neural Information Processing Systems, 33, 2020.
|
| 258 |
+
[8] Kuilin Chen and Chi-Guhn Lee. Incremental few-shot learning via vector quantization in deep embedded space. In International Conference on Learning Representations, 2021.
|
| 259 |
+
[9] Ali Cheraghian, Shafin Rahman, Pengfei Fang, Soumava Kumar Roy, Lars Petersson, and Mehrtash Harandi. Semantic-aware knowledge distillation for few-shot class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2534–2543, 2021.
|
| 260 |
+
[10] Prithviraj Dhar, Rajat Vikram Singh, Kuan-Chuan Peng, Ziyan Wu, and Rama Chellappa. Learning without memorizing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 261 |
+
[11] Gintare Karolina Dziugaite and Daniel M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Gal Elidan, Kristian Kersting, and Alexander T. Ihler, editors, Proceedings of the Thirty-Third Conference on Uncertainty in Artificial Intelligence, UAI 2017, Sydney, Australia, August 11-15, 2017. AUAI Press, 2017.
|
| 262 |
+
[12] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135. PMLR, 2017.
|
| 263 |
+
[13] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4367–4375, 2018.
|
| 264 |
+
[14] Ian J Goodfellow, Mehdi Mirza, Da Xiao, Aaron Courville, and Yoshua Bengio. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211, 2013.
|
| 265 |
+
|
| 266 |
+
[15] Haowei He, Gao Huang, and Yang Yuan. Asymmetric valleys: Beyond sharp and flat local minima. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché- Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 2549–2560, 2019.
|
| 267 |
+
|
| 268 |
+
[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
|
| 269 |
+
|
| 270 |
+
[17] Geoffrey E. Hinton and Drew van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Lenny Pitt, editor, Proceedings of the Sixth Annual ACM Conference on Computational Learning Theory, COLT 1993, Santa Cruz, CA, USA, July 26-28, 1993, pages 5–13. ACM, 1993.
|
| 271 |
+
|
| 272 |
+
[18] Sepp Hochreiter and Jürgen Schmidhuber. Simplifying neural nets by discovering flat minima. In Gerald Tesauro, David S. Touretzky, and Todd K. Leen, editors, Advances in Neural Information Processing Systems 7, [NIPS Conference, Denver, Colorado, USA, 1994], pages 529–536. MIT Press, 1994.
|
| 273 |
+
|
| 274 |
+
[19] Ruibing Hou, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cross attention network for few-shot classification. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pages 4003–4014, 2019.
|
| 275 |
+
|
| 276 |
+
[20] Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and Dahua Lin. Learning a unified classifier incrementally via rebalancing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 831–839, 2019.
|
| 277 |
+
|
| 278 |
+
[21] Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting for continual learning via model adaptation. In International Conference on Learning Representations, 2018.
|
| 279 |
+
|
| 280 |
+
[22] Xinting Hu, Kaihua Tang, Chunyan Miao, Xian-Sheng Hua, and Hanwang Zhang. Distilling causal effect of data in class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3957–3966, 2021.
|
| 281 |
+
|
| 282 |
+
[23] Muhammad Abdullah Jamal and Guo-Jun Qi. Task agnostic meta-learning for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11719–11727, 2019.
|
| 283 |
+
|
| 284 |
+
[24] Yiding Jiang\*, Behnam Neyshabur\*, Hossein Mobahi, Dilip Krishnan, and Samy Bengio. Fantastic generalization measures and where to find them. In International Conference on Learning Representations, 2020.
|
| 285 |
+
|
| 286 |
+
[25] Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In International Conference on Learning Representations, 2019.
|
| 287 |
+
|
| 288 |
+
[26] Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. In International Conference on Learning Representations, 2018.
|
| 289 |
+
|
| 290 |
+
[27] J. Kiefer and J. Wolfowitz. Stochastic estimation of the maximum of a regression function. Annals of Mathematical Statistics, 23:462–466, 1952.
|
| 291 |
+
|
| 292 |
+
[28] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
|
| 293 |
+
|
| 294 |
+
[29] Alex Krizhevsky et al. Learning multiple layers of features from tiny images. 2009.
|
| 295 |
+
|
| 296 |
+
[30] Ilja Kuzborskij, Francesco Orabona, and Barbara Caputo. From n to $\mathrm { n } + 1$ : Multiclass transfer incremental learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3358–3365, 2013.
|
| 297 |
+
|
| 298 |
+
[31] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
|
| 299 |
+
[32] Yaoyao Liu, Bernt Schiele, and Qianru Sun. An ensemble of epoch-wise empirical bayes for few-shot learning. In European Conference on Computer Vision, pages 404–421. Springer, 2020.
|
| 300 |
+
[33] Yaoyao Liu, Yuting Su, An-An Liu, Bernt Schiele, and Qianru Sun. Mnemonics training: Multiclass incremental learning without forgetting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12245–12254, 2020.
|
| 301 |
+
[34] Pratik Mazumder, Pravendra Singh, and Piyush Rai. Few-shot lifelong learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 2337–2345, 2021.
|
| 302 |
+
[35] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier, 1989.
|
| 303 |
+
[36] Thomas Mensink, Jakob Verbeek, Florent Perronnin, and Gabriela Csurka. Distance-based image classification: Generalizing to new classes at near-zero cost. IEEE transactions on pattern analysis and machine intelligence, 35(11):2624–2637, 2013.
|
| 304 |
+
[37] Fabrizio Pittorino, Carlo Lucibello, Christoph Feinauer, Gabriele Perugini, Carlo Baldassi, Elizaveta Demyanenko, and Riccardo Zecchina. Entropic gradient descent algorithms and wide flat minima. In International Conference on Learning Representations, 2021.
|
| 305 |
+
[38] Jathushan Rajasegaran, Salman Khan, Munawar Hayat, Fahad Shahbaz Khan, and Mubarak Shah. itaml: An incremental task-agnostic meta-learning approach. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13588–13597, 2020.
|
| 306 |
+
[39] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. 2016.
|
| 307 |
+
[40] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 2001–2010, 2017.
|
| 308 |
+
[41] Mengye Ren, Renjie Liao, Ethan Fetaya, and Richard S Zemel. Incremental few-shot learning with attention attractor networks. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pages 5275–5285, 2019.
|
| 309 |
+
[42] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In International Conference on Learning Representations, 2018.
|
| 310 |
+
[43] H. Robbins. A stochastic approximation method. Annals of Mathematical Statistics, 22:400–407, 2007.
|
| 311 |
+
[44] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 4080–4090, 2017.
|
| 312 |
+
[45] Qianru Sun, Yaoyao Liu, Zhaozheng Chen, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning through hard tasks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
|
| 313 |
+
[46] Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for fewshot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 403–412, 2019.
|
| 314 |
+
[47] Xiaoyu Tao, Xiaopeng Hong, Xinyuan Chang, Songlin Dong, Xing Wei, and Yihong Gong. Few-shot class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12183–12192, 2020.
|
| 315 |
+
[48] Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: a good embedding is all you need? In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XIV 16, pages 266–282. Springer, 2020.
|
| 316 |
+
[49] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 3637–3645, 2016.
|
| 317 |
+
[50] Peter Welinder, Steve Branson, Takeshi Mita, Catherine Wah, Florian Schroff, Serge Belongie, and Pietro Perona. Caltech-ucsd birds 200. 2010.
|
| 318 |
+
[51] Qianru Sun Yaoyao Liu, Bernt Schiele. Adaptive aggregation networks for class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021.
|
| 319 |
+
[52] Han-Jia Ye, Hexiang Hu, and De-Chuan Zhan. Learning adaptive classifiers synthesis for generalized few-shot learning. International Journal of Computer Vision, pages 1–24, 2021.
|
| 320 |
+
[53] Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8808–8817, 2020.
|
| 321 |
+
[54] Lu Yu, Bartlomiej Twardowski, X. Liu, Luis Herranz, Kai Wang, Yong mei Cheng, Shangling Jui, and Joost van de Weijer. Semantic drift compensation for class-incremental learning. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6980–6989, 2020.
|
| 322 |
+
[55] Zhongqi Yue, Hanwang Zhang, Qianru Sun, and Xian-Sheng Hua. Interventional few-shot learning. Advances in Neural Information Processing Systems, 33, 2020.
|
| 323 |
+
[56] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International Conference on Machine Learning, pages 3987–3995. PMLR, 2017.
|
| 324 |
+
[57] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Differentiable earth mover’s distance for few-shot learning. arXiv e-prints, pages arXiv–2003, 2020.
|
| 325 |
+
[58] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12203–12213, 2020.
|
| 326 |
+
[59] Chi Zhang, Nan Song, Guosheng Lin, Yun Zheng, Pan Pan, and Yinghui Xu. Few-shot incremental learning with continually evolved classifiers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12455–12464, 2021.
|
| 327 |
+
[60] Hanbin Zhao, Yongjian Fu, Mintong Kang, Q Tian, F Wu, and X Li. Mgsvf: Multi-grained slow vs. fast framework for few-shot class-incremental learning. arXiv preprint arXiv:2006.15524.
|
| 328 |
+
|
| 329 |
+
# Checklist
|
| 330 |
+
|
| 331 |
+
1. For all authors...
|
| 332 |
+
|
| 333 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 334 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 6.
|
| 335 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 336 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 337 |
+
|
| 338 |
+
2. If you are including theoretical results...
|
| 339 |
+
|
| 340 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 4.3.
|
| 341 |
+
(b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A.1.
|
| 342 |
+
|
| 343 |
+
3. If you ran experiments...
|
| 344 |
+
|
| 345 |
+
(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] The link to the source code is provided in the abstract.
|
| 346 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5.1 and Appendix A.2.
|
| 347 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Appendix A.3.
|
| 348 |
+
(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 Section 5.1
|
| 349 |
+
|
| 350 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 351 |
+
|
| 352 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] We have cited [29, 49, 50].
|
| 353 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 354 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 355 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 356 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 357 |
+
|
| 358 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 359 |
+
|
| 360 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 361 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 362 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/ALvt7nXa2q/ALvt7nXa2q_content_list.json
ADDED
|
@@ -0,0 +1,1568 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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15 |
+
"type": "text",
|
| 16 |
+
"text": "Guangyuan Shi,∗ Jiaxin Chen∗, Wenlong Zhang, Li-Ming Zhan, Xiao-Ming Wu† Department of Computing The Hong Kong Polytechnic University {guang-yuan.shi, jiax.chen, wenlong.zhang, lmzhan.zhan}@connect.polyu.hk xiao-ming.wu@polyu.edu.hk ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
187,
|
| 19 |
+
224,
|
| 20 |
+
808,
|
| 21 |
+
296
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
330,
|
| 32 |
+
535,
|
| 33 |
+
348
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "This paper considers incremental few-shot learning, which requires a model to continually recognize new categories with only a few examples provided. Our study shows that existing methods severely suffer from catastrophic forgetting, a well-known problem in incremental learning, which is aggravated due to data scarcity and imbalance in the few-shot setting. Our analysis further suggests that to prevent catastrophic forgetting, actions need to be taken in the primitive stage – the training of base classes instead of later few-shot learning sessions. Therefore, we propose to search for flat local minima of the base training objective function and then fine-tune the model parameters within the flat region on new tasks. In this way, the model can efficiently learn new classes while preserving the old ones. Comprehensive experimental results demonstrate that our approach outperforms all prior state-of-the-art methods and is very close to the approximate upper bound. The source code is available at https://github.com/moukamisama/F2M. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
363,
|
| 43 |
+
767,
|
| 44 |
+
542
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
568,
|
| 55 |
+
312,
|
| 56 |
+
585
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Why study incremental few-shot learning? Incremental learning enables a model to continually learn new concepts from new data without forgetting previously learned knowledge. Rooted from real-world applications, this topic has attracted a significant amount of interest in recent years [5, 30, 31, 40, 26]. Incremental learning assumes sufficient training data is provided for new classes, which is impractical in many application scenarios, especially when the new classes are rare categories which are costly or difficult to collect. This motivates the study of incremental few-shot learning, a more difficult paradigm that aims to continually learn new tasks with only a few examples. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
601,
|
| 66 |
+
825,
|
| 67 |
+
696
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Challenges. The major challenge for incremental learning is catastrophic forgetting [14, 28, 35], which refers to the drastic performance drop on previous tasks after learning new tasks. This phenomenon is caused by the inaccessibility to previous data while learning on new data. Catastrophic forgetting presents a bigger challenge for incremental few-shot learning. Due to the small amount of training data in new tasks, the model tends to severely overfit on new classes while quickly forgetting old classes, resulting in catastrophic performance. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
704,
|
| 77 |
+
825,
|
| 78 |
+
787
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Current research. The study of incremental few-shot learning has just started [47, 41, 60, 9, 8, 34, 59]. Current works mainly borrow ideas from research in incremental learning to overcome the forgetting problem, by enforcing strong constraints on model parameters to penalize the changes of parameters [34, 28, 56], or by saving a small amount of exemplars from old classes and adding constraints on the exemplars to avoid forgetting [40, 20, 4]. However, in our empirical study, we find that an intransigent model that only trains on base classes and does not tune on new tasks consistently outperforms state-of-the-art methods, including a joint-training method [47] that uses all encountered data for training and hence suffers from severe data imbalance. This observation motivates us to address this harsh problem from a different angle. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
792,
|
| 88 |
+
825,
|
| 89 |
+
863
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
92,
|
| 99 |
+
825,
|
| 100 |
+
147
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Our solution. Unlike existing solutions that try to overcome the catastrophic forgetting problem during the process of learning new tasks, we adopt a different approach by considering this issue during the training of base classes. Specifically, we propose to search for flat local minima of the base training objective function. For any parameter vector in the flat region around the minima, the loss is small, and the base classes are supposed to be well separated. The flat local minima can be found by adding random noise to the model parameters for multiple times and jointly optimizing multiple loss functions. During the following incremental few-shot learning stage, we fine-tune the model parameters within the flat region, which can be achieved by clamping the parameters after updating them on few-shot tasks. In this way, the model can efficiently learn new classes while preserving the old ones. Our key contributions are summarized as follows: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
154,
|
| 110 |
+
825,
|
| 111 |
+
291
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• We conduct a comprehensive empirical study on existing incremental few-shot learning methods and discover that a simple baseline model that only trains on base classes outperforms state-of-the-art methods, which demonstrates the severity of catastrophic forgetting. • We propose a novel approach for incremental few-shot learning by addressing the catastrophic forgetting problem in the primitive stage. Through finding the flat minima region during training on base classes and fine-tuning within the region while learning on new tasks, our model can overcome catastrophic forgetting and avoid overfitting. • Comprehensive experimental results on CIFAR-100, miniImageNet, and CUB-200-2011 show that our approach outperforms all state-of-the-art methods and achieves performance that is very close to the approximate upper bound. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
217,
|
| 120 |
+
304,
|
| 121 |
+
825,
|
| 122 |
+
454
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 Related Work ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
473,
|
| 133 |
+
321,
|
| 134 |
+
489
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Few-shot learning aims to learn to generalize to new categories with a few labeled samples in each class. Current few-shot methods mainly include optimization-based methods [12, 23, 32, 39, 45, 46, 55] and metric-based methods [13, 19, 44, 49, 52, 58, 57, 53]. Optimization-based methods can achieve fast adaptation to new tasks with limited samples by learning a specific optimization algorithm. Metric-based approaches exploit different distance metrics such as L2 distance [44], cosine similarity [49], and DeepEMD [58] in the learned metric/embedding space to measure the similarity between samples. Recently, Tian et al. [48] find that standard supervised training can learn a good metric space for unseen classes, which echoes with our observation on the proposed baseline model in Sec. 3. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
503,
|
| 144 |
+
825,
|
| 145 |
+
628
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Incremental learning focuses on the challenging problem of continually learning to recognize new classes in new coming data without forgetting old classes [6, 7, 10, 51]. Previous research mainly includes multi-class incremental learning [4, 38, 22, 33, 54, 51] and multi-task incremental learning [21, 31, 42]. To overcome the catastrophic forgetting problem, some attempts propose to impose strong constraints on model parameters by penalizing the changes of parameters [28, 1]. Other attempts try to enforce constraints on the exemplars of old classes by restricting the output logits [40] or penalizing the changes of embedding angles [20]. In this work, our empirical study shows that imposing strong constraints on the arriving new classes may not be a promising way to tackle incremental few-shot learning, due to the scarcity of training data for new classes. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
635,
|
| 155 |
+
825,
|
| 156 |
+
760
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Incremental few-shot learning [47, 41, 60, 9, 8] aims to incrementally learn from very few samples. TOPCI [47] proposes a neural gas network to learn and preserve the topology of the feature manifold formed by different classes. FSLL [34] only selects few model parameters for incremental learning and ensures the parameters are close to the optimal ones. To overcome catastrophic forgetting, IDLVQC [8] imposes constraints on the saved exemplars of each class by restricting the embedding drift, and Zhang et al. [59] propose to fix the embedding network for incremental learning. Similar to the finding of Zhang et al., we also discover that an intransigent model that simply does not adapt to new tasks can outperform prior state-of-the-art methods. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
766,
|
| 166 |
+
825,
|
| 167 |
+
877
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Robust optimization. It has been found that flat local minima leads to better generalization capabilities than sharp minima in the sense that a flat minimizer is more robust when the test loss is shifted due to random perturbations [18, 17, 24]. A substantial body of methods [2, 37, 11, 15] have been proposed to optimize neural networks towards flat local minima. In this paper, we show that for incremental few-shot learning, finding flat minima in the base session and tuning the model within the flat region on new tasks can significantly mitigate catastrophic forgetting. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
173,
|
| 176 |
+
883,
|
| 177 |
+
821,
|
| 178 |
+
911
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
90,
|
| 188 |
+
825,
|
| 189 |
+
147
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "3 Severity of Catastrophic Forgetting in Incremental Few-Shot Learning ",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
171,
|
| 200 |
+
794,
|
| 201 |
+
189
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 2
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "3.1 Problem Statement ",
|
| 208 |
+
"text_level": 1,
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
205,
|
| 212 |
+
346,
|
| 213 |
+
220
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "Incremental few-shot learning (IFL) aims to continually learn to recognize new classes with only few examples. Similar to incremental learning $\\left( \\operatorname { I L } \\right)$ , an IFL model is trained by a sequence of training sessions $\\{ \\mathcal { D } ^ { 1 } , \\cdots , \\mathcal { D } ^ { t } \\}$ , where $\\mathcal { D } ^ { t } = \\{ z _ { i } = ( x _ { i } ^ { t } , y _ { i } ^ { t } ) \\} _ { i }$ is the training data of session $t$ and $\\ v x _ { i } ^ { t }$ is an example of class $y _ { i } ^ { t } \\in \\mathcal { C } ^ { t }$ (the class set of session $t$ ). In IFL, the base session $\\mathcal { D } ^ { 1 }$ usually contains a large number of classes with sufficient training data for each class, while the following sessions $\\left( t \\geq 2 \\right)$ ) only have a small number of classes with few training samples per class, e.g., $\\bar { \\mathcal { D } } ^ { t }$ is often presented as an $N$ -way $K$ -shot task with small $N$ and $K$ . The key difference between $\\mathrm { I L }$ and IFL is, for $\\mathrm { I L }$ , sufficient training data is provided in each session. Similar to $\\mathrm { I L }$ , in each training session $t$ of IFL, the model has only access to the training data $\\mathcal { D } ^ { t }$ and possibly a small amount of saved exemplars from previous sessions. When the training of session $t$ is completed, the model is evaluated on test samples from all encountered classes ${ \\mathcal { C } } = \\textstyle \\bigcup _ { i = 1 } ^ { t } { \\mathcal { C } } ^ { i }$ , where it is assumed that there is no overlap between the classes of different sessions, i.e., $\\forall i , j$ and $i \\neq j$ , ${ \\mathcal { C } } ^ { i } \\cap { \\mathcal { C } } ^ { j } = \\emptyset$ . ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
173,
|
| 222 |
+
233,
|
| 223 |
+
825,
|
| 224 |
+
404
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Catastrophic forgetting. IFL is undoubtedly a more challenging problem than $\\mathrm { I L }$ due to the data scarcity setting. IL suffers from catastrophic forgetting, a well-known phenomenon and long-standing issue, which refers to the drastic drop in test performance on previous (old) classes, caused by the inaccessibility of old data in the current training session. Unfortunately, catastrophic forgetting is an even bigger issue for IFL, because data scarcity makes it difficult to adapt well to new tasks and learn new concepts, while the adaptation process could easily lead to the forgetting of base classes. In the following, we illustrate this point by evaluating a simple baseline model for IFL. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
409,
|
| 234 |
+
825,
|
| 235 |
+
506
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "3.2 A Simple Baseline Model for IFL ",
|
| 242 |
+
"text_level": 1,
|
| 243 |
+
"bbox": [
|
| 244 |
+
176,
|
| 245 |
+
527,
|
| 246 |
+
441,
|
| 247 |
+
542
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "We consider an intransigent model that simply does not adapt to new tasks. Particularly, the model only needs to be trained in the base session $\\bar { \\mathcal { D } } ^ { 1 }$ and is directly used for inference in all sessions. ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
173,
|
| 256 |
+
555,
|
| 257 |
+
823,
|
| 258 |
+
583
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "Training $( t = 1$ ). We train a feature extractor $f$ parameterized by $\\phi$ with a fully-connected layer as classifier by minimizing the standard cross-entropy loss using the training examples of $\\mathcal { D } ^ { 1 }$ . The feature extractor $f$ is fixed for the following sessions $\\left( t \\geq 2 \\right)$ ) without any fine-tuning on new classes. ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
174,
|
| 267 |
+
589,
|
| 268 |
+
823,
|
| 269 |
+
632
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "Inference (test). In each session, the inference is conducted by a simple nearest class mean (NCM) classification algorithm [36]. Specifically, all the training and test samples are mapped to the embedding space of the feature extractor $f$ , and Euclidean distance $d ( \\cdot , \\cdot )$ is used to measure the similarity between them. The classifier is given by ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
174,
|
| 278 |
+
637,
|
| 279 |
+
825,
|
| 280 |
+
694
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "equation",
|
| 286 |
+
"img_path": "images/70bb73688b8fe489dd1aa8a5c9a04f2e856743c6d0b79e46945ef624058d89b6.jpg",
|
| 287 |
+
"text": "$$\nc _ { k } ^ { \\star } = \\operatorname * { a r g m i n } _ { c \\in \\mathcal { C } } d ( f ( x ; \\phi ) , p _ { c } ) , \\mathrm { ~ w h e r e ~ } p _ { c } = \\frac { 1 } { N _ { c } } \\sum _ { i } \\mathbb { 1 } ( y _ { i } = c ) f ( x _ { i } ; \\phi ) ,\n$$",
|
| 288 |
+
"text_format": "latex",
|
| 289 |
+
"bbox": [
|
| 290 |
+
271,
|
| 291 |
+
704,
|
| 292 |
+
723,
|
| 293 |
+
741
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "where $\\mathcal { C }$ denotes all the encountered classes, $p _ { c }$ refers to the prototype of class $c$ (the mean vector of all the training samples of class $c$ in the embedding space), and $N _ { c }$ denotes the number of the training images of class $c$ . Note that we save the prototypes of all classes in ${ \\mathcal { C } } ^ { t }$ for later evaluation. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
752,
|
| 303 |
+
823,
|
| 304 |
+
795
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "The baseline model outperforms state-of-the-art IFL and IL methods. We compare the above baseline model against state-of-the-art IFL methods including FSLL [34], IDLVQC [8] and TOPIC [47], IL methods including Rebalance [20] and iCarl [40], and a joint-training method that uses all previously seen data including the base and the following few-shot tasks for training, for IFL. The performance is evaluated on miniImageNet, CIFAR-100, and CUB-200. We tune the methods re-implemented by us to the best performance. For the other methods, we use the results reported in the original papers. The experimental details are provided in Sec. 5. As shown in Fig. 1, the baseline model consistently outperforms all the compared methods including the joint-training method (which suffers from severe data imbalance) on every dataset3. The fact that an intransigent model performs best suggests that ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
173,
|
| 313 |
+
800,
|
| 314 |
+
825,
|
| 315 |
+
911
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "image",
|
| 321 |
+
"img_path": "images/a3479acb9b05770da7d6c9d886cf4da1b35bd210974b3e33e48344c785552875.jpg",
|
| 322 |
+
"image_caption": [
|
| 323 |
+
"Figure 1: Comparison of the proposed baseline model with state-of-the-art IFL and $\\mathrm { I L }$ methods and the joint-training method.The baseline model outperforms all the other methods. "
|
| 324 |
+
],
|
| 325 |
+
"image_footnote": [],
|
| 326 |
+
"bbox": [
|
| 327 |
+
176,
|
| 328 |
+
88,
|
| 329 |
+
816,
|
| 330 |
+
234
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
303,
|
| 340 |
+
823,
|
| 341 |
+
332
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "• For IFL, preserving the old (base classes) may be more critical than adapting to the new. Due to data scarcity, the performance gain on new classes is limited and cannot make up for the significant performance drop on base classes. • Prior works [47, 8, 34, 20, 40] that enforce strong constraints on model parameters or exemplars during fine-tuning on new classes cannot effectively prevent catastrophic forgetting in IFL, indicating that actions may need to be taken in the base training stage. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
217,
|
| 350 |
+
342,
|
| 351 |
+
826,
|
| 352 |
+
433
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "4 Overcoming Catastrophic Forgetting in IFL by Finding Flat Minima ",
|
| 359 |
+
"text_level": 1,
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
457,
|
| 363 |
+
777,
|
| 364 |
+
476
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "The goal of IFL is to preserve the old while adapting to the new efficiently. The results and analysis in Sec. 3 suggest that it might be “a bit late” to try to prevent catastrophic forgetting in the few-shot learning sessions $\\left( t \\geq 2 \\right)$ ), which motivates us to consider this problem in the base training session. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
488,
|
| 374 |
+
825,
|
| 375 |
+
531
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "Overview of our approach. To overcome catastrophic forgetting in IFL, we propose to find a $b$ -flat $( b > 0$ ) local minima $\\theta ^ { \\star }$ of the base training objective function and then fine-tune the model within the flat region in later few-shot learning sessions. Specifically, for any parameter vector $\\theta$ in the flat region, i.e., $\\theta ^ { \\star } - b \\preceq \\theta \\preceq \\theta ^ { \\star } + b$ , the risk (loss) of the base classes is minimized such that the classes are well separated in the embedding space of $f _ { \\theta }$ . In the later incremental few-shot learning sessions $\\left( t \\geq 2 \\right)$ ), we fine-tune the model parameters within this region to learn new classes, i.e., to find ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
173,
|
| 384 |
+
536,
|
| 385 |
+
826,
|
| 386 |
+
621
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"img_path": "images/758a474c9172aeff13667cc308644ad00c4565c26fbc1968815a0123a8bcbf50.jpg",
|
| 393 |
+
"text": "$$\n\\theta ^ { \\prime } = \\arg \\operatorname* { m i n } _ { \\theta } \\sum _ { z \\in \\mathcal { D } ^ { t } } \\mathcal { L } ( z ; \\theta ) , \\mathrm { s . t . } \\theta ^ { \\star } - b \\preceq \\theta \\preceq \\theta ^ { \\star } + b .\n$$",
|
| 394 |
+
"text_format": "latex",
|
| 395 |
+
"bbox": [
|
| 396 |
+
313,
|
| 397 |
+
627,
|
| 398 |
+
681,
|
| 399 |
+
662
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "As such, the fine-tuned model $\\theta ^ { \\prime }$ can adapt to new classes while preserving the old ones. Also, due to the nature of few-shot learning, to avoid excessive training and overfitting, it suffices to tune the model in a relatively small region. A graphical illustration of our approach and prior arts, as well as the notions of sharp minima and flat minima, are presented in Fig. 2. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
173,
|
| 408 |
+
670,
|
| 409 |
+
825,
|
| 410 |
+
727
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "4.1 Searching for Flat Local Minima in the Base Training Stage ",
|
| 417 |
+
"text_level": 1,
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
742,
|
| 421 |
+
629,
|
| 422 |
+
758
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "A formal definition of $b$ -flat local minima is given as follows. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
768,
|
| 432 |
+
575,
|
| 433 |
+
784
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Definition 1 ( $b$ -Flat Local Minima). Given a real-valued objective function $\\mathcal { L } ( z ; \\theta )$ , for any $b > 0$ , $\\theta ^ { \\star }$ is a $b$ -flat local minima of $\\mathcal { L } ( z ; \\theta )$ , if the following conditions are satisfied. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
787,
|
| 443 |
+
826,
|
| 444 |
+
818
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "• Condition 1: $\\mathcal { L } ( z ; \\theta ^ { \\star } ) = \\mathcal { L } ( z ; \\theta ^ { \\star } + \\epsilon )$ , where $- \\mathbf { b } \\preceq \\epsilon \\preceq \\mathbf { b }$ and $\\mathbf { b } _ { i } = b$ . ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
217,
|
| 453 |
+
827,
|
| 454 |
+
697,
|
| 455 |
+
844
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "• Condition 2: there exist $\\mathbf { c } _ { 1 } \\prec \\theta ^ { \\star } - b$ and ${ \\bf c } _ { 2 } \\succ \\theta ^ { \\star } + b ,$ , s.t. $\\mathcal { L } ( z ; \\theta ) > \\mathcal { L } ( z ; \\theta ^ { \\star } )$ , where $\\mathbf { c } _ { 1 } \\prec \\theta \\prec \\theta ^ { \\star } - b$ and $\\mathcal { L } ( z ; \\theta ^ { \\star } ) < \\mathcal { L } ( z ; \\theta )$ , where $\\theta ^ { \\star } + b \\prec \\theta \\prec \\mathbf { c } _ { 2 }$ . ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
212,
|
| 464 |
+
851,
|
| 465 |
+
823,
|
| 466 |
+
881
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "image",
|
| 472 |
+
"img_path": "images/4aa02a309c91762f668ef9d87403ca2452fa0984b7055d381e241148d4136b17.jpg",
|
| 473 |
+
"image_caption": [
|
| 474 |
+
"Figure 2: Illustration of our approach and existing solutions. indicates the incremental learning steps on new classes. $R _ { 1 }$ and $R _ { 2 }$ respectively denote the loss of base classes before and after minimizing the loss of new classes. (a) SGD finds sharp minima in the base training. Directly tuning the model on new classes will result in a severe performance drop on base classes. (b) Enforcing strong constraints on parameters by penalizing parameter changes [1, 28, 34] may still lead to a significant performance drop on base classes. (c) Finding flat local minima of base classes and clamping the parameters after trained on new classes to make them fall within the flat region can effectively mitigate catastrophic forgetting. "
|
| 475 |
+
],
|
| 476 |
+
"image_footnote": [],
|
| 477 |
+
"bbox": [
|
| 478 |
+
179,
|
| 479 |
+
90,
|
| 480 |
+
810,
|
| 481 |
+
239
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "In practice, it is hard to find the flat local minima that strictly satisfies the above definition, which may not even exist. Hence, our goal is to find an approximately flat local minima of the base training objective function. To this end, we propose to add some small random noise to the model parameters. The noise can be added for multiple times to obtain similar but different loss functions, which will be optimized together to locate the flat minima region. The intuition is clear – the parameter vectors around the flat local minima also have small function values. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
387,
|
| 491 |
+
825,
|
| 492 |
+
472
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "To formally state the idea, we assume that the model is parameterized by $\\theta = \\{ \\phi , \\psi \\}$ , where $\\phi$ denotes the parameters of the embedding network and $\\psi$ denotes the parameters of the classifier. $z$ denotes a labelled training sample. Denote the loss function by $\\mathcal { L } \\colon \\dot { \\mathbb { R } } ^ { d _ { z } } \\mathbb { R }$ . Our target is to minimize the expected loss function $R$ $\\ ? \\colon \\mathbb { R } ^ { d } \\mathbb { R }$ w.r.t. the joint distribution of data $z$ and noise $\\epsilon$ , i.e., ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
477,
|
| 502 |
+
825,
|
| 503 |
+
534
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "equation",
|
| 509 |
+
"img_path": "images/b3a756bf9a16e8cc90d5c6fa60b915c0691b3ef26adf8cd52a8a008429be1de2.jpg",
|
| 510 |
+
"text": "$$\nR ( \\theta ) = \\int _ { \\mathbb { R } ^ { d _ { \\epsilon } } } \\int _ { \\mathbb { R } ^ { d _ { z } } } \\mathcal { L } ( z ; \\phi + \\epsilon , \\psi ) d P ( z ) d P ( \\epsilon ) = \\mathbb { E } [ \\mathcal { L } ( z ; \\phi + \\epsilon , \\psi ) ] ,\n$$",
|
| 511 |
+
"text_format": "latex",
|
| 512 |
+
"bbox": [
|
| 513 |
+
274,
|
| 514 |
+
541,
|
| 515 |
+
722,
|
| 516 |
+
575
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 4
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "where $P ( z )$ is the data distribution and $P ( \\epsilon )$ is the noise distribution, and $z$ and $\\epsilon$ are independent. Since it is impossible to minimize the expected loss, we minimize its estimation, the empirical loss, which is given by ",
|
| 523 |
+
"bbox": [
|
| 524 |
+
178,
|
| 525 |
+
577,
|
| 526 |
+
825,
|
| 527 |
+
618
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "equation",
|
| 533 |
+
"img_path": "images/c9d538eacc0da614704f9f7afd89c148c7c17ddb6eaf97d6db3174866778fcfe.jpg",
|
| 534 |
+
"text": "$$\n\\mathcal { L } ( \\theta ) = \\frac { 1 } { M } \\sum _ { j = 1 } ^ { M } \\mathcal { L } _ { \\mathrm { b a s e } } ( z ; \\phi + \\epsilon _ { j } , \\psi ) , \\mathrm { w h e r e }\n$$",
|
| 535 |
+
"text_format": "latex",
|
| 536 |
+
"bbox": [
|
| 537 |
+
357,
|
| 538 |
+
616,
|
| 539 |
+
642,
|
| 540 |
+
661
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "equation",
|
| 546 |
+
"img_path": "images/05bd6bf14baee9feb9e7e27de4100c40dd1dd920a7b2b2c1d45352a0ed68f0ae.jpg",
|
| 547 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { b a s e } } ( z ; \\phi + \\epsilon _ { j } , \\psi ) = \\frac { 1 } { | \\mathcal { D } ^ { 1 } | } \\sum _ { z \\in \\mathcal { D } ^ { 1 } } \\mathcal { L } _ { c e } ( z ; \\phi + \\epsilon _ { j } , \\psi ) + \\lambda \\frac { 1 } { | \\mathcal { C } ^ { 1 } | } \\sum _ { c \\in \\mathcal { C } ^ { 1 } } \\| p _ { c } - p _ { c } ^ { * } \\| _ { 2 } ^ { 2 } ,\n$$",
|
| 548 |
+
"text_format": "latex",
|
| 549 |
+
"bbox": [
|
| 550 |
+
246,
|
| 551 |
+
664,
|
| 552 |
+
750,
|
| 553 |
+
702
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "where $\\epsilon _ { j }$ is a noise vector sampled from $P ( \\epsilon )$ , $M$ is the sampling times, $\\mathcal { L } _ { c e } ( z ; \\phi + \\epsilon _ { j } , \\psi )$ refers to the cross-entropy loss of a training sample $z$ , and $p _ { c }$ and $p _ { c } ^ { * }$ are the class prototypes before and after injecting noise respectively. The first term of $\\mathcal { L } _ { b a s e }$ is designed to find the flat region where the parameters $\\phi$ of the embedding network can well separate the base classes. The second term enforces the class prototypes fixed within such region, which is designed to solve the prototype drift problem [54, 8] (the class prototypes change after updating the network) in later incremental learning sessions such that the saved base class prototypes can be directly used for evaluation in later sessions. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
173,
|
| 562 |
+
703,
|
| 563 |
+
825,
|
| 564 |
+
801
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 4
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "4.2 Incremental Few-shot Learning within the Flat Region ",
|
| 571 |
+
"text_level": 1,
|
| 572 |
+
"bbox": [
|
| 573 |
+
173,
|
| 574 |
+
815,
|
| 575 |
+
593,
|
| 576 |
+
832
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "In the incremental few-shot learning sessions $\\left( t \\geq 2 \\right)$ ), we fine-tune the parameters $\\phi$ of the embedding network within the flat region to learn new classes. It is worth noting that while the flat region might be relatively small, it is enough for incremental few-shot learning. Because only few training samples are provided for each new class, to prevent overfitting in few-shot learning, excessive training should be avoided and only a small number of update iterations should be applied. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
174,
|
| 585 |
+
842,
|
| 586 |
+
825,
|
| 587 |
+
911
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Algorithm 1: F2M ",
|
| 594 |
+
"text_level": 1,
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
94,
|
| 598 |
+
302,
|
| 599 |
+
108
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 5
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "Input: the flat region bound $b$ , randomly initialized $\\theta = \\{ \\phi , \\psi \\}$ , the step sizes $\\alpha$ and $\\beta$ . \n// Training over base classes $t = 1$ \nfor epoch $k = 1 , 2 , \\dots$ do for $j = 1 , 2 , . . . , M$ do Sample a noise vector $\\epsilon _ { j } \\sim P ( \\epsilon )$ , s.t. $- \\mathbf { b } \\preceq \\epsilon _ { j } \\preceq \\mathbf { b }$ ; Add the noise to the parameters of the embedding network, i.e., $\\theta = \\{ \\phi + \\epsilon _ { j } , \\psi \\}$ ; Compute the base loss $\\mathcal { L } _ { b a s e }$ with Eq. 4; Reset the parameters, i.e., $\\theta = \\{ \\phi , \\psi \\}$ ; end Update $\\theta = \\theta - \\alpha \\nabla { \\mathcal { L } } ( \\theta )$ with the loss $\\mathcal { L }$ defined in Eq. 3. \nend \nNormalize and save the prototype of each base class; \n// Incremental learning $t \\geq 2$ \nCombine the training data $\\mathcal { D } ^ { t }$ and the exemplars saved in previous few-shot sessions $2 \\leq t _ { e } < t$ ; \nfor epoch $k = 1 , 2 , . .$ . do Compute the metric-based classification loss ${ \\mathcal { L } } _ { m }$ by Eq. 5; Update $\\phi = \\phi - \\beta \\nabla \\mathcal { L } _ { m } ( z ; \\phi )$ ; Clamp the parameters $\\phi$ to ensure they fall in the flat minima region; \nend \nRandomly select and save a few exemplars from the training data $\\mathcal { D } ^ { t }$ ; \nNormalize and save the prototype of each new class; \nOutput: Model parameters $\\theta = \\{ \\phi , \\psi \\}$ . ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
171,
|
| 608 |
+
113,
|
| 609 |
+
802,
|
| 610 |
+
431
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 5
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "We employ a metric-based classification algorithm with Euclidean distance to fine-tune the parameters. The loss function is defined as ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
173,
|
| 619 |
+
457,
|
| 620 |
+
823,
|
| 621 |
+
484
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 5
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "equation",
|
| 627 |
+
"img_path": "images/cbd0eea1d58f8b6facc442c6b0aaff2ab86faf776744b94665336624169f0ba3.jpg",
|
| 628 |
+
"text": "$$\n\\mathcal { L } _ { m } ( z ; \\phi ) = - \\sum _ { z \\in \\mathcal { D } } \\sum _ { c \\in \\mathcal { C } } \\mathbb { 1 } ( y = c ) \\log \\big ( \\frac { e ^ { - d ( p _ { c } , f ( x ; \\phi ) ) } } { \\sum _ { c _ { k } \\in \\mathcal { C } } e ^ { - d ( p _ { c _ { k } } , f ( x ; \\phi ) ) } } \\big ) , z\n$$",
|
| 629 |
+
"text_format": "latex",
|
| 630 |
+
"bbox": [
|
| 631 |
+
289,
|
| 632 |
+
484,
|
| 633 |
+
709,
|
| 634 |
+
526
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 5
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "where $d ( \\cdot , \\cdot )$ denotes Euclidean distance, $p _ { c }$ is the prototype of class $c$ , $\\textstyle { \\mathcal { C } } = \\bigcup _ { i = 1 } ^ { t } { \\mathcal { C } } ^ { i }$ refers to all encountered classes, and ${ \\mathcal { D } } = { \\mathcal { D } } ^ { t } \\cup { \\mathcal { P } }$ denotes the union of the current training data $\\mathcal { D } ^ { t }$ and the exemplar set $\\mathcal { P } = \\{ P _ { 2 } , . . . , P _ { t - 1 } \\}$ , where $P _ { t _ { e } } ( 2 \\leq t _ { e } < t )$ is the set of saved exemplars in session $t _ { e }$ . Note that the prototypes of new classes are computed by Eq. 1, and those of base classes are saved in the base session. After updating the embedding network parameters, we clamp them to ensure that they fall within the flat region, i.e. $\\phi ^ { \\star } - b \\preceq \\phi \\preceq \\phi ^ { \\star } + b$ , where $\\phi ^ { \\star }$ denotes the optimal parameter vector learned in the base session. After fine-tuning, we evaluate the model using the nearest class mean classifier as in Eq. 1, with previously saved prototypes and newly computed ones. The whole training process is described in Algorithm 1. Note that to calibrate the estimates of the classifier, we normalize all prototypes to make those of base classes and those of new classes have the same norm. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
530,
|
| 644 |
+
826,
|
| 645 |
+
669
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 5
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "4.3 Convergence Analysis ",
|
| 652 |
+
"text_level": 1,
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
684,
|
| 656 |
+
366,
|
| 657 |
+
699
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 5
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "Our aim is to find a flat region within which all parameter vectors work well. We then minimize the expected loss w.r.t. the joint distribution of noise $\\epsilon$ and data $z$ . To approximate this expected loss, we sample from $P ( \\epsilon )$ for multiple times in each iteration and optimize the objective function using stochastic gradient descent (SGD). Here, we provide theoretical guarantees for our method. Given the non-convex loss function in Eq. 3, we prove the convergence of our proposed method. The proof idea is inspired by the convergence analysis of SGD [3, 27]. ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
709,
|
| 667 |
+
825,
|
| 668 |
+
792
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 5
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Formally, in each batch $k$ , let $z _ { k }$ denote the batch data, $\\{ \\epsilon _ { j } \\} _ { j = 1 } ^ { M }$ be the sampled noises, and $\\alpha _ { k }$ be the step size. In the base training session, we update the model parameters as follows: ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
173,
|
| 677 |
+
797,
|
| 678 |
+
823,
|
| 679 |
+
828
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 5
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "equation",
|
| 685 |
+
"img_path": "images/f6c9a3d87022e40ce81b39a403fe4cc48a58bc675e9f86e603ac16bde127748e.jpg",
|
| 686 |
+
"text": "$$\n\\theta _ { k + 1 } = \\theta _ { k } - \\frac { \\alpha _ { k } } { M } \\sum _ { j = 1 } ^ { M } \\nabla \\mathcal { L } _ { \\mathrm { b a s e } } \\big ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } \\big ) = \\theta _ { k } - \\frac { \\alpha _ { k } } { M } \\sum _ { j = 1 } ^ { M } g \\big ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } \\big ) ,\n$$",
|
| 687 |
+
"text_format": "latex",
|
| 688 |
+
"bbox": [
|
| 689 |
+
230,
|
| 690 |
+
829,
|
| 691 |
+
766,
|
| 692 |
+
875
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 5
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "where $g ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } ) = \\nabla { \\mathcal { L } } _ { \\mathrm { b a s e } } ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } )$ is the gradient. To formally analyze the convergence of our algorithm, we define the following assumptions. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
173,
|
| 701 |
+
882,
|
| 702 |
+
823,
|
| 703 |
+
912
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 5
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Assumption 4.1 (L-smooth risk function). The expected loss function $R : \\mathbb { R } ^ { d } \\mathbb { R }$ (Eq. 2) is continuously differentiable and $L$ -smooth with constant $L > 0$ such that ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
171,
|
| 712 |
+
90,
|
| 713 |
+
823,
|
| 714 |
+
119
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 6
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "equation",
|
| 720 |
+
"img_path": "images/c79ae89ed0149ed19421c38fca4ad7578dc6b6f98eb0b23f11ea9772ff205480.jpg",
|
| 721 |
+
"text": "$$\n\\| \\nabla R ( \\theta ) - \\nabla R ( \\theta ^ { \\prime } ) \\| _ { 2 } \\leq L \\| \\theta - \\theta ^ { \\prime } \\| .\n$$",
|
| 722 |
+
"text_format": "latex",
|
| 723 |
+
"bbox": [
|
| 724 |
+
380,
|
| 725 |
+
126,
|
| 726 |
+
617,
|
| 727 |
+
143
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "This assumption is significant for the convergence analysis of gradient-based optimization algorithms, since it limits how fast the gradient of the loss function can change w.r.t. the parameter vector. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
173,
|
| 736 |
+
156,
|
| 737 |
+
826,
|
| 738 |
+
185
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "Assumption 4.2. The expected loss function satisfies the following conditions: ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
176,
|
| 747 |
+
189,
|
| 748 |
+
692,
|
| 749 |
+
204
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 6
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "• Condition 1: $R$ is bounded below by a scalar $R ^ { \\star }$ , given the sequence of parameters $\\{ \\theta _ { k } \\}$ ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
209,
|
| 758 |
+
214,
|
| 759 |
+
816,
|
| 760 |
+
232
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 6
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "• Condition 2: For all $k \\in \\mathbb N$ and $j \\in [ 1 , M ]$ , ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
218,
|
| 769 |
+
238,
|
| 770 |
+
517,
|
| 771 |
+
255
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 6
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "equation",
|
| 777 |
+
"img_path": "images/5bc16b0b8564721592171d4aa24ec24ad8a4402750b2216466dfbe55ca25b01d.jpg",
|
| 778 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } _ { z _ { k } , \\epsilon _ { j } } \\big [ g \\big ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } \\big ) \\big ] = \\nabla R ( \\theta _ { k } ) . } \\end{array}\n$$",
|
| 779 |
+
"text_format": "latex",
|
| 780 |
+
"bbox": [
|
| 781 |
+
400,
|
| 782 |
+
260,
|
| 783 |
+
655,
|
| 784 |
+
279
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 6
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "• Condition $^ 3$ : There exist scalars $m _ { 1 } \\geq 0$ and $m _ { 2 } \\geq 0 ,$ , for all $k \\in \\mathbb N$ and $j \\in [ 1 , M ]$ , ",
|
| 791 |
+
"bbox": [
|
| 792 |
+
217,
|
| 793 |
+
290,
|
| 794 |
+
784,
|
| 795 |
+
308
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 6
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "equation",
|
| 801 |
+
"img_path": "images/5096183562af805022f33c150d89bccb14263ee7a806f9ee4921f24c132bfe54.jpg",
|
| 802 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { V } _ { z _ { k } , \\epsilon _ { j } } [ g ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } ) ] \\le m _ { 1 } + m _ { 2 } \\| \\nabla R ( \\theta _ { k } ) \\| _ { 2 } ^ { 2 } . } \\end{array}\n$$",
|
| 803 |
+
"text_format": "latex",
|
| 804 |
+
"bbox": [
|
| 805 |
+
356,
|
| 806 |
+
313,
|
| 807 |
+
699,
|
| 808 |
+
333
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "$\\mathbb { E } _ { z _ { k } , \\epsilon _ { j } } [ \\cdot ]$ denotes the expectation w.r.t. the joint distribution of random variables $z _ { k }$ and $\\epsilon _ { j }$ , and $\\mathbb { V } _ { z _ { k } , \\epsilon _ { j } } [ \\cdot ]$ denotes the variance. Condition 1 ensures that the expected loss $R$ is bounded by a minimum value $R ^ { \\star }$ during the updates, which is a natural and practical assumption. Condition 2 assumes that the gradient $g ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } )$ is an unbiased estimate of $\\nabla R ( \\theta _ { k } )$ . This is a strict assumption made to simplify the proof, but it can be easily relaxed to a general and easily-met condition that there exist $\\mu _ { 1 } \\geq \\mu _ { 2 } > 0$ satisfying $\\| \\mathbb { E } _ { z _ { k } , \\epsilon _ { j } } [ \\bar { g ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } ) } ] \\| _ { 2 } \\leq \\mu _ { 1 } \\| \\nabla \\bar { R ( \\theta _ { k } ) } \\| _ { 2 }$ and $\\nabla R ( \\theta _ { k } ) ^ { T } \\mathbb { E } _ { z _ { k } , \\epsilon _ { j } } [ g ( \\underline { { z _ { k } } } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } ) ] \\geq \\mu _ { 2 } \\| \\nabla R ( \\theta _ { k } ) \\| _ { 2 } ^ { 2 }$ . Therefore, the convergence can be proved in a similar way using the techniques presented in the Appendix. Condition 3 assumes the variance of the gradient $g ( z _ { k } ; \\phi _ { k } + \\epsilon _ { j } , \\psi _ { k } )$ cannot be arbitrarily large, which is also reasonable in practice. To facilitate later analysis, similar to [43], we restrict the step sizes as follows. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
344,
|
| 818 |
+
825,
|
| 819 |
+
489
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 6
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Assumption 4.3. The learning rates satisfy: ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
492,
|
| 829 |
+
467,
|
| 830 |
+
507
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 6
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "equation",
|
| 836 |
+
"img_path": "images/11b47e921b3b0cb564364a1725626d441628fc2d3166e3268b98c43dcd1fe07f.jpg",
|
| 837 |
+
"text": "$$\n\\sum _ { k = 1 } ^ { \\infty } \\alpha _ { k } = \\infty , \\ \\sum _ { k = 1 } ^ { \\infty } \\alpha _ { k } ^ { 2 } < \\infty .\n$$",
|
| 838 |
+
"text_format": "latex",
|
| 839 |
+
"bbox": [
|
| 840 |
+
401,
|
| 841 |
+
513,
|
| 842 |
+
593,
|
| 843 |
+
555
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 6
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "This assumption can be easily met, since in practice the learning rate $\\alpha _ { k }$ is usually far less than 1 and decreases w.r.t. $k$ . Based on the above assumptions, we can derive the following theorem. ",
|
| 850 |
+
"bbox": [
|
| 851 |
+
171,
|
| 852 |
+
568,
|
| 853 |
+
825,
|
| 854 |
+
597
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 6
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "Theorem 4.1. Under assumptions 4.1, 4.2 and 4.3, we further assume that the risk function $R$ is twice differentiable, and that $\\| \\nabla R ( \\theta ) \\| _ { 2 } ^ { 2 }$ is $L _ { 2 }$ -smooth with constant $L _ { 2 } > 0$ , then we have ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
173,
|
| 863 |
+
599,
|
| 864 |
+
826,
|
| 865 |
+
630
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 6
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "equation",
|
| 871 |
+
"img_path": "images/19bd76fc1ebc8d0c84ad22f6f47d9db08d8dec6c80681989c406d1873676a886.jpg",
|
| 872 |
+
"text": "$$\n\\operatorname* { l i m } _ { k \\to \\infty } \\mathbb { E } [ \\| \\nabla R ( \\theta _ { k } ) \\| _ { 2 } ^ { 2 } ] = 0 .\n$$",
|
| 873 |
+
"text_format": "latex",
|
| 874 |
+
"bbox": [
|
| 875 |
+
411,
|
| 876 |
+
635,
|
| 877 |
+
584,
|
| 878 |
+
660
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 6
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "This theorem establishes the convergence of our algorithm. The proof is provided in Appendix A.1. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
171,
|
| 887 |
+
671,
|
| 888 |
+
823,
|
| 889 |
+
688
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 6
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "5 Experiments ",
|
| 896 |
+
"text_level": 1,
|
| 897 |
+
"bbox": [
|
| 898 |
+
173,
|
| 899 |
+
705,
|
| 900 |
+
313,
|
| 901 |
+
723
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 6
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "In this section, we empirically evaluate our proposed method for incremental few-shot learning and demonstrate its effectiveness by comparison with state-of-the-art methods. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
173,
|
| 910 |
+
737,
|
| 911 |
+
825,
|
| 912 |
+
766
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 6
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "5.1 Experimental Setup ",
|
| 919 |
+
"text_level": 1,
|
| 920 |
+
"bbox": [
|
| 921 |
+
174,
|
| 922 |
+
781,
|
| 923 |
+
352,
|
| 924 |
+
796
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 6
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "Datasets. For CIFAR-100 and miniImageNet, we randomly select 60 classes as the base classes and the remaining 40 classes as the new classes. In each incremental learning session, we construct 5-way 5-shot tasks by randomly picking 5 classes and sampling 5 examples for each class. For CUB-200-2011 with 200 classes, we select 100 classes as the base classes and 100 classes as the new ones. We test 10-way 5-shot tasks on this dataset. ",
|
| 931 |
+
"bbox": [
|
| 932 |
+
173,
|
| 933 |
+
806,
|
| 934 |
+
825,
|
| 935 |
+
877
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 6
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "Baselines. We compare our method F2M with 8 methods: the Baseline proposed in Sec. 3, a jointtraining method that uses all previously seen data including the base and the following few-shot tasks for training, the classifier re-training method (cRT) [25] for long-tailed classification trained with all encountered data, iCaRL [40], Rebalance [20], TOPIC [47], FSLL [34], and IDLVQ-C [8]. For a fair comparison, we re-implement cRT [25], iCaRL [40], Rebalance [20], FSLL [34], and the joint-training method and tune them to their best performance. We also provide the results reported in the original papers for comparison. The results of TOPIC [47] and IDLVQ-C [8] are copied from the original papers. Note that for IL, joint-training is naturally the upper bound of incremental learning algorithms, however, for IFL, joint-training is not a good approximation of the upper bound because data imbalance makes the model perform significantly poorer on new classes (long-tailed classes). To address the data imbalance issue, we re-implement the cRT method as the approximate upper bound. ",
|
| 942 |
+
"bbox": [
|
| 943 |
+
173,
|
| 944 |
+
882,
|
| 945 |
+
821,
|
| 946 |
+
911
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 6
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "table",
|
| 952 |
+
"img_path": "images/3835b07fcacb259d9fc8f7adfa333925ec8fddfe46906fed2c496f5cf8b28580.jpg",
|
| 953 |
+
"table_caption": [
|
| 954 |
+
"Table 1: Classification accuracy on CIFAR-100 for 5-way 5-shot incremental learning. ∗ indicates our re-implementation. "
|
| 955 |
+
],
|
| 956 |
+
"table_footnote": [],
|
| 957 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"9\">sessions</td><td rowspan=\"2\">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>cRT[25]*</td><td>65.18</td><td>63.89</td><td>60.20</td><td>57.23</td><td>53.71</td><td>50.39</td><td>48.77</td><td>47.29</td><td>45.28</td><td>=</td></tr><tr><td>Joint-training*</td><td>65.18</td><td>61.45</td><td>57.36</td><td>53.68</td><td>50.84</td><td>47.33</td><td>44.79</td><td>42.62</td><td>40.08</td><td>-5.20</td></tr><tr><td>Baseline</td><td>65.18</td><td>61.67</td><td>58.61</td><td>55.11</td><td>51.86</td><td>49.43</td><td>47.60</td><td>45.64</td><td>43.83</td><td>-1.45</td></tr><tr><td>iCaRL[40]*</td><td>66.52</td><td>57.26</td><td>54.27</td><td>50.62</td><td>47.33</td><td>44.99</td><td>43.14</td><td>41.16</td><td>39.49</td><td>-5.79</td></tr><tr><td>Rebalance [20]*</td><td>66.66</td><td>61.42</td><td>57.29</td><td>53.02</td><td>48.85</td><td>45.68</td><td>43.06</td><td>40.56</td><td>38.35</td><td>-6.93</td></tr><tr><td>FSLL [34]*</td><td>65.18</td><td>56.24</td><td>54.55</td><td>51.61</td><td>49.11</td><td>47.27</td><td>45.35</td><td>43.95</td><td>42.22</td><td>-3.08</td></tr><tr><td>iCaRL[40]</td><td>64.10</td><td>53.28</td><td>41.69</td><td>34.13</td><td>27.93</td><td>25.06</td><td>20.41</td><td>15.48</td><td>13.73</td><td>-31.55</td></tr><tr><td>Rebalance [20]</td><td>64.10</td><td>53.05</td><td>43.96</td><td>36.97</td><td>31.61</td><td>26.73</td><td>21.23</td><td>16.78</td><td>13.54</td><td>-31.74</td></tr><tr><td>TOPIC [47]</td><td>64.10</td><td>55.88</td><td>47.07</td><td>45.16</td><td>40.11</td><td>36.38</td><td>33.96</td><td>31.55</td><td>29.37</td><td>-15.91</td></tr><tr><td>FSLL [34]</td><td>64.10</td><td>55.85</td><td>51.71</td><td>48.59</td><td>45.34</td><td>43.25</td><td>41.52</td><td>39.81</td><td>38.16</td><td>-7.12</td></tr><tr><td>FSLL+SS [34]</td><td>66.76</td><td>55.52</td><td>52.20</td><td>49.17</td><td>46.23</td><td>44.64</td><td>43.07</td><td>41.20</td><td>39.57</td><td>-5.71</td></tr><tr><td>F2M</td><td>64.71</td><td>62.05</td><td>59.01</td><td>55.58</td><td>52.55</td><td>49.96</td><td>48.08</td><td>46.28</td><td>44.67</td><td>-0.61</td></tr></table>",
|
| 958 |
+
"bbox": [
|
| 959 |
+
209,
|
| 960 |
+
125,
|
| 961 |
+
790,
|
| 962 |
+
309
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 7
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "table",
|
| 968 |
+
"img_path": "images/a4fbc03180e63e236407b6f9ed5fcce1cee014bd347b0f0a3ce14d1440d31067.jpg",
|
| 969 |
+
"table_caption": [
|
| 970 |
+
"Table 2: Classification accuracy on miniImageNet for 5-way 5-shot incremental learning. ∗ indicates our re-implementation. "
|
| 971 |
+
],
|
| 972 |
+
"table_footnote": [],
|
| 973 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"9\">sessions</td><td rowspan=\"2\">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>cRT[25]*</td><td>67.30</td><td>64.15</td><td>60.59</td><td>57.32</td><td>54.22</td><td>51.43</td><td>48.92</td><td>46.78</td><td>44.85</td><td>=</td></tr><tr><td>Joint-training*</td><td>67.30</td><td>62.34</td><td>57.79</td><td>54.08</td><td>50.93</td><td>47.65</td><td>44.64</td><td>42.61</td><td>40.29</td><td>-4.56</td></tr><tr><td>Baseline</td><td>67.30</td><td>63.18</td><td>59.62</td><td>56.33</td><td>53.28</td><td>50.50</td><td>47.96</td><td>45.85</td><td>43.88</td><td>-0.97</td></tr><tr><td>iCaRL [40]*</td><td>67.35</td><td>59.91</td><td>55.64</td><td>52.60</td><td>49.43</td><td>46.73</td><td>44.13</td><td>42.17</td><td>40.29</td><td>-4.56</td></tr><tr><td>Rebalance [20]*</td><td>67.91</td><td>63.11</td><td>58.75</td><td>54.83</td><td>50.68</td><td>47.11</td><td>43.88</td><td>41.19</td><td>38.72</td><td>-6.13</td></tr><tr><td>FSLL [34]*</td><td>67.30</td><td>59.81</td><td>57.26</td><td>54.57</td><td>52.05</td><td>49.42</td><td>46.95</td><td>44.94</td><td>42.87</td><td>-1.11</td></tr><tr><td>iCaRL[40]</td><td>61.31</td><td>46.32</td><td>42.94</td><td>37.63</td><td>30.49</td><td>24.00</td><td>20.89</td><td>18.80</td><td>17.21</td><td>-27.64</td></tr><tr><td>Rebalance [20]</td><td>61.31</td><td>47.80</td><td>39.31</td><td>31.91</td><td>25.68</td><td>21.35</td><td>18.67</td><td>17.24</td><td>14.17</td><td>-30.68</td></tr><tr><td>TOPIC [47]</td><td>61.31</td><td>50.09</td><td>45.17</td><td>41.16</td><td>37.48</td><td>35.52</td><td>32.19</td><td>29.46</td><td>24.42</td><td>-20.43</td></tr><tr><td>FSLL [34]</td><td>66.48</td><td>61.75</td><td>58.16</td><td>54.16</td><td>51.10</td><td>48.53</td><td>46.54</td><td>44.20</td><td>42.28</td><td>-2.57</td></tr><tr><td>FSLL+SS[34]</td><td>68.85</td><td>63.14</td><td>59.24</td><td>55.23</td><td>52.24</td><td>49.65</td><td>47.74</td><td>45.23</td><td>43.92</td><td>-0.93</td></tr><tr><td>IDLVQ-C[8]</td><td>64.77</td><td>59.87</td><td>55.93</td><td>52.62</td><td>49.88</td><td>47.55</td><td>44.83</td><td>43.14</td><td>41.84</td><td>-3.01</td></tr><tr><td>F2M</td><td>67.28</td><td>63.80</td><td>60.38</td><td>57.06</td><td>54.08</td><td>51.39</td><td>48.82</td><td>46.58</td><td>44.65</td><td>-0.20</td></tr></table>",
|
| 974 |
+
"bbox": [
|
| 975 |
+
209,
|
| 976 |
+
382,
|
| 977 |
+
790,
|
| 978 |
+
578
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 7
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
627,
|
| 988 |
+
825,
|
| 989 |
+
752
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Experimental details. The experiments are conducted with NVIDIA GPU RTX3090 on CUDA 11.0. We randomly split each dataset into multiple tasks (sessions). For each dataset (with a fixed split), we run each algorithm for 10 times and report the mean accuracy. We adopt ResNet18 [16] as the backbone network. For data augmentation, we use standard random crop and horizontal flip. In the base training stage, we select the last 4 or 8 convolution layers to inject noise, because these layers output higher-level feature representations. The flat region bound $b$ is set as 0.01. We set the number of times for noise sampling as $M = 2 \\sim 4$ , since a larger $M$ will increase the training time. In each incremental few-shot learning session, the total number of training epochs is 6, and the learning rate is 0.02. To verify the correctness of our implementation, we conduct experiments on incremental learning and compare our results to those reported on CIFAR-100 in Appendix A.3. More experiment details are provided in Appendix A.2. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
758,
|
| 999 |
+
825,
|
| 1000 |
+
911
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "table",
|
| 1006 |
+
"img_path": "images/60bfafebee6bfe1f989d8626c31f85d26fba947b336f7e74dd693733a3e8bad9.jpg",
|
| 1007 |
+
"table_caption": [
|
| 1008 |
+
"Table 3: Classification accuracy on CUB-200-2011 for 10-way 5-shot incremental learning.∗ indicates our re-implementation. "
|
| 1009 |
+
],
|
| 1010 |
+
"table_footnote": [],
|
| 1011 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"10\">sessions</td><td rowspan=\"2\">The gap with cRT</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>cRT[25]*</td><td>80.83</td><td>78.51</td><td>76.12</td><td>73.93</td><td>71.46</td><td>68.96</td><td>67.73</td><td>66.75</td><td>64.22</td><td>62.53</td><td>61.08</td><td></td></tr><tr><td>Joint-training*</td><td>80.83</td><td>77.57</td><td>74.11</td><td>70.75</td><td>68.52</td><td>65.97</td><td>64.58</td><td>62.22</td><td>60.18</td><td>58.49</td><td>56.78</td><td>-4.30</td></tr><tr><td>Baseline</td><td>80.87</td><td>77.15</td><td>74.46</td><td>72.26</td><td>69.47</td><td>67.18</td><td>65.62</td><td>63.68</td><td>61.30</td><td>59.72</td><td>58.12</td><td>-2.96</td></tr><tr><td>iCaRL [40]*</td><td>79.58</td><td>67.63</td><td>64.17</td><td>61.80</td><td>58.10</td><td>55.51</td><td>53.34</td><td>50.89</td><td>48.62</td><td>47.34</td><td>45.60</td><td>-15.48</td></tr><tr><td>Rebalance [20]*</td><td>80.94</td><td>70.32</td><td>62.96</td><td>57.19</td><td>51.06</td><td>46.70</td><td>44.03</td><td>40.15</td><td>36.75</td><td>34.88</td><td>32.09</td><td>-28.99</td></tr><tr><td>FSLL [34]*</td><td>80.83</td><td>77.38</td><td>72.37</td><td>71.84</td><td>67.51</td><td>65.30</td><td>63.75</td><td>61.16</td><td>59.05</td><td>58.03</td><td>55.82</td><td>-5.26</td></tr><tr><td>iCaRL [40]</td><td>68.68</td><td>52.65</td><td>48.61</td><td>44.16</td><td>36.62</td><td>29.52</td><td>27.83</td><td>26.26</td><td>24.01</td><td>23.89</td><td>21.16</td><td>-39.92</td></tr><tr><td>Rebalance [20]</td><td>68.68</td><td>57.12</td><td>44.21</td><td>28.78</td><td>26.71</td><td>25.66</td><td>24.62</td><td>21.52</td><td>20.12</td><td>20.06</td><td>19.87</td><td>-41.21</td></tr><tr><td>TOPIC[47]</td><td>68.68</td><td>62.49</td><td>54.81</td><td>49.99</td><td>45.25</td><td>41.40</td><td>38.35</td><td>35.36</td><td>32.22</td><td>28.31</td><td>26.28</td><td>-34.80</td></tr><tr><td>FSLL [34]</td><td>72.77</td><td>69.33</td><td>65.51</td><td>62.66</td><td>61.10</td><td>58.65</td><td>57.78</td><td>57.26</td><td>55.59</td><td>55.39</td><td>54.21</td><td>-6.87</td></tr><tr><td>FSLL+SS [34]</td><td>75.63</td><td>71.81</td><td>68.16</td><td>64.32</td><td>62.61</td><td>60.10</td><td>58.82</td><td>58.70</td><td>56.45</td><td>56.41</td><td>55.82</td><td>-5.26</td></tr><tr><td>IDLVQ-C [8]</td><td>77.37</td><td>74.72</td><td>70.28</td><td>67.13</td><td>65.34</td><td>63.52</td><td>62.10</td><td>61.54</td><td>59.04</td><td>58.68</td><td>57.81</td><td>-3.27</td></tr><tr><td>F2M</td><td>81.07</td><td>78.16</td><td>75.57</td><td>72.89</td><td>70.86</td><td>68.17</td><td>67.01</td><td>65.26</td><td>63.36</td><td>61.76</td><td>60.26</td><td>-0.82</td></tr></table>",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
176,
|
| 1014 |
+
125,
|
| 1015 |
+
823,
|
| 1016 |
+
313
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 8
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "table",
|
| 1022 |
+
"img_path": "images/a77af395b80eaa563bb4d8acb99dd5af27c8760a1d705c17e16f8c7db5a960dc.jpg",
|
| 1023 |
+
"table_caption": [
|
| 1024 |
+
"Table 4: Comparison of the flatness of the local minima found by the Baseline and our F2M. "
|
| 1025 |
+
],
|
| 1026 |
+
"table_footnote": [],
|
| 1027 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Indicator I</td><td colspan=\"2\">Variance g2</td></tr><tr><td>Training Set</td><td>Testing Set</td><td>Training Set</td><td>Testing Set</td></tr><tr><td>Baseline</td><td>0.2993</td><td>0.4582</td><td>0.1451</td><td>0.2395</td></tr><tr><td>F2M</td><td>0.0506</td><td>0.0800</td><td>0.0296</td><td>0.0334</td></tr></table>",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
272,
|
| 1030 |
+
349,
|
| 1031 |
+
723,
|
| 1032 |
+
421
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 8
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "5.2 Comparison with the State-of-the-Art ",
|
| 1039 |
+
"text_level": 1,
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
174,
|
| 1042 |
+
449,
|
| 1043 |
+
475,
|
| 1044 |
+
463
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 8
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "F2M outperforms the state-of-the-art methods. The main results on CIFAR-100, miniImageNet and CUB-200-2011 are presented in Table 1, Table 2 and Table 3 respectively. Based on the experiment results, we have the following observations: 1) The Baseline introduced in Sec. 3 outperforms the state-of-the-art approaches on all incremental sessions. 2) As expected, cRT consistently outperforms the Baseline up to $1 \\%$ to $3 \\%$ by considering the data imbalance problem and applying proper techniques to tackle the long-tailed classification problem to improve performance. Hence, it is reasonable to use cRT as the approximate upper bound of IFL. 3) Our F2M outperforms the state-ofthe-art methods and the Baseline. Moreover, the performance of F2M is very close to the approximate upper bound, i.e., the gap with cRT is only $0 . 2 \\%$ in the last session on miniImageNet. The results show that even with strong constraints [20, 40, 34] and saved examplars of base classes [20, 40, 8], current methods cannot effectively address the catastrophic forgetting problem. In contrast, finding flat minima seems a promising approach to overcome this harsh problem. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
474,
|
| 1054 |
+
826,
|
| 1055 |
+
641
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 8
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "5.3 Ablation Study and Analysis ",
|
| 1062 |
+
"text_level": 1,
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
174,
|
| 1065 |
+
659,
|
| 1066 |
+
411,
|
| 1067 |
+
674
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 8
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Analysis on the flatness of local minima. Here, we verify that our method can find a more flat local minima than the Baseline. For a found local minima $\\theta ^ { \\star }$ , we measure its flatness as follows. We sample the noise for 1000 times. For each time, we inject the sampled noise to $\\theta ^ { \\star }$ and calculate the loss $\\mathcal { L } _ { i }$ . to measure the flatness. Then, we adopt the indicator I = 11000 P1000i=1 $\\mathcal { L } ^ { * }$ denotes the loss of $\\begin{array} { r } { I = \\frac { 1 } { 1 0 0 0 } \\sum _ { i = 1 } ^ { 1 0 0 0 } ( \\mathcal { L } _ { i } - \\mathcal { L } ^ { * } ) ^ { 2 } } \\end{array}$ $\\theta ^ { \\star }$ , and $\\overline { { \\mathcal { L } } }$ 1000denotes the average loss of and variance $\\begin{array} { r } { \\sigma ^ { 2 } = \\frac { 1 } { 1 0 0 0 } \\sum _ { i = 1 } ^ { 1 0 0 0 } ( \\mathcal { L } _ { i } - \\overline { { \\mathcal { L } } } ) ^ { 2 } } \\end{array}$ $\\{ \\mathcal { L } _ { i } \\} _ { i = 1 } ^ { 1 0 0 0 }$ . The values of the indicator and variance of F2M and the Baseline are presented in Table 4, which clearly demonstrate that our method can find a more flat local minima. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
173,
|
| 1076 |
+
685,
|
| 1077 |
+
825,
|
| 1078 |
+
787
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Ablation study on the designs of our method. Here, we study the effectiveness of each design of our method, including adding noise to the model parameters for finding $b$ -flat local minima (FM) during the base training session, the prototype fixing term (PF) used in the base training objective (Eq. 4), parameter clamping (PC) during incremental learning, and prototype normalization (PN). We conduct an ablation study by removing each component in turn and report the experimental results in Table 5. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
174,
|
| 1087 |
+
794,
|
| 1088 |
+
825,
|
| 1089 |
+
876
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 8
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Finding b-flat local minima. Standard supervised training with SGD as the optimizer tends to converge to a sharp local minima. It leads to a significant drop in performance because the loss changes quickly in the neighborhood of the sharp local minima. As shown in Table 5, even with parameter clamping during incremental learning, the performance still drops significantly. In contrast, restricting the parameters in a small flat region can mitigate the forgetting problem. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
882,
|
| 1099 |
+
821,
|
| 1100 |
+
911
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 8
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "table",
|
| 1106 |
+
"img_path": "images/d977f14d1af3cb4fbf8c66feb0d1ae35cc2c4ff64227c1cc271d7baf8cf1dedb.jpg",
|
| 1107 |
+
"table_caption": [
|
| 1108 |
+
"Table 5: Ablation study of our F2M on CIFAR-100. PD refers to the performance dropping rate. "
|
| 1109 |
+
],
|
| 1110 |
+
"table_footnote": [],
|
| 1111 |
+
"table_body": "<table><tr><td rowspan=\"2\">FM</td><td rowspan=\"2\">PF</td><td rowspan=\"2\">PC</td><td rowspan=\"2\">PN</td><td colspan=\"10\">sessions</td><td rowspan=\"2\">PD↓</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td rowspan=\"4\">广</td><td></td><td></td><td></td><td>65.18</td><td>60.83</td><td>53.13</td><td>43.57</td><td>23.75</td><td>10.76</td><td>08.26</td><td>07.24</td><td>06.45</td><td>58.73</td></tr><tr><td></td><td>√</td><td></td><td>65.18</td><td>59.48</td><td>56.77</td><td>52.99</td><td>50.09</td><td>47.80</td><td>45.92</td><td>44.20</td><td>42.55</td><td>22.63</td></tr><tr><td>√</td><td></td><td>√</td><td>64.71</td><td>59.54</td><td>53.03</td><td>45.09</td><td>41.68</td><td>39.04</td><td>38.64</td><td>37.19</td><td>36.01</td><td>28.70</td></tr><tr><td></td><td>√</td><td>√</td><td>64.55</td><td>61.27</td><td>58.33</td><td>54.82</td><td>51.60</td><td>49.22</td><td>47.48</td><td>45.78</td><td>44.08</td><td>20.47</td></tr><tr><td>√</td><td>√</td><td>√</td><td></td><td>64.71</td><td>61.75</td><td>58.80</td><td>55.33</td><td>52.27</td><td>49.75</td><td>47.72</td><td>46.01</td><td>44.43</td><td>20.28</td></tr><tr><td>√</td><td></td><td>√</td><td>√</td><td>64.71</td><td>61.99</td><td>58.99</td><td>55.58</td><td>52.55</td><td>49.96</td><td>48.08</td><td>46.28</td><td>44.67</td><td>20.04</td></tr></table>",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
202,
|
| 1114 |
+
111,
|
| 1115 |
+
795,
|
| 1116 |
+
223
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "table",
|
| 1122 |
+
"img_path": "images/10f2e54af4ac4a6df16159258b656661085cb0924e08a7dd026b9539505353a3.jpg",
|
| 1123 |
+
"table_caption": [
|
| 1124 |
+
"Table 6: Study of the flat region bound $b$ for 5-way 5-shot incremental learning on CIFAR-100. The top 3 results in each row are in boldface. "
|
| 1125 |
+
],
|
| 1126 |
+
"table_footnote": [],
|
| 1127 |
+
"table_body": "<table><tr><td rowspan=\"2\">Session</td><td colspan=\"6\">The hyperparameter b</td></tr><tr><td>0.0025</td><td>0.005</td><td>0.01</td><td>0.02</td><td>0.04</td><td>0.08</td></tr><tr><td>Session 1(60 bases classes)</td><td>64.85</td><td>64.67</td><td>64.81</td><td>64.71</td><td>63.30</td><td>62.25</td></tr><tr><td>Session 9 (All 100 classes)</td><td>44.16</td><td>44.54</td><td>44.58</td><td>44.67</td><td>43.75</td><td>43.04</td></tr><tr><td>Session 9 (60 base classes)</td><td>59.58</td><td>59.69</td><td>59.73</td><td>59.44</td><td>58.38</td><td>57.21</td></tr><tr><td>Session 9 (40 new classes)</td><td>21.03</td><td>21.81</td><td>21.86</td><td>22.52</td><td>21.80</td><td>21.77</td></tr></table>",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
240,
|
| 1130 |
+
272,
|
| 1131 |
+
756,
|
| 1132 |
+
371
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 9
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
176,
|
| 1141 |
+
396,
|
| 1142 |
+
823,
|
| 1143 |
+
439
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 9
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Prototype fixing. Without fixing the prototypes after injecting noise to selected layers during the process of finding local minima, i.e. removing the second term of Eq. 4, it is still possible to tune the model within the flat region to well separate base classes. However, the saved prototypes of base classes will become less accurate because the embeddings of the base samples suffer from semantic drift [54]. As shown in Table 5, it results in a performance drop of nearly $0 . 6 \\%$ . ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
174,
|
| 1152 |
+
444,
|
| 1153 |
+
823,
|
| 1154 |
+
513
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 9
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Parameter clamping. Parameter clamping restricts the model parameters to the $b$ -flat region after incremental few-shot learning. Outside the $b$ -flat region, the performance drops quickly. It can be seen from Table 5 that removing parameter clamping leads to a significant drop in performance. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
520,
|
| 1164 |
+
825,
|
| 1165 |
+
563
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 9
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Prototype normalization. As mentioned in Sec. 4.2, we normalize the class prototypes to calibrate the estimates of the class mean classifier. The results in Table 5 show the effectiveness of normalization, which helps to further improve the performance. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
569,
|
| 1175 |
+
825,
|
| 1176 |
+
611
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 9
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Study of the flat region bound $b$ . We study the effect of the flat region bound $b$ for 5-way 5-shot incremental learning on CIFAR-100. We report the test accuracy in session 1 (base session) and session 9 (last session) w.r.t. different $b$ in Table 6. It can be seen that the best results are achieved for $b \\in [ 0 . 0 0 5 , 0 . 0 2 ]$ . A larger $b$ (e.g., 0.04 or 0.08) leads to a significant performance drop on base classes, even for those in session 1, indicating that there may not exist a large flat region around a good local minima. Meanwhile, a smaller $b$ (e.g., 0.0025) results in a performance decline on new classes, due to the overly small capacity of the flat region. This illustrates the trade-off effect of $b$ . ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
174,
|
| 1185 |
+
616,
|
| 1186 |
+
825,
|
| 1187 |
+
714
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "6 Conclusion ",
|
| 1194 |
+
"text_level": 1,
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
733,
|
| 1198 |
+
299,
|
| 1199 |
+
750
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "We have proposed a novel approach to overcome catastrophic forgetting in incremental few-shot learning by finding flat local minima of the objective function in the base training stage and then fine-tuning the model within the flat region on new tasks. Extensive experiments on benchmark datasets show that our model can effectively mitigate catastrophic forgetting and adapt to new classes. A limitation of our method is that it may not be suitable for medium- or high-shot tasks, since the flat region is relatively small, which limits the model capacity. However, it is still possible to adapt our core idea for incremental learning. For example, one can search for a less flat but wider local minima region in the base training stage and tune the model within this region during incremental learning sessions, where previous techniques such as elastic weight consolidation (EWC) [28] can be used to constraint the model parameters. This could be an interesting direction for future research. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
763,
|
| 1209 |
+
825,
|
| 1210 |
+
904
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1217 |
+
"text_level": 1,
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
174,
|
| 1220 |
+
88,
|
| 1221 |
+
553,
|
| 1222 |
+
107
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "We would like to thank the anonymous reviewers for their insightful and helpful comments. This research was supported by the grant of DaSAIL project P0030935 funded by PolyU/UGC. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
121,
|
| 1232 |
+
826,
|
| 1233 |
+
150
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "References \n[1] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pages 139–154, 2018. \n[2] Carlo Baldassi, Fabrizio Pittorino, and Riccardo Zecchina. Shaping the learning landscape in neural networks around wide flat minima. Proc. Natl. Acad. Sci. USA, 117(1):161–170, 2020. \n[3] Léon Bottou, Frank E Curtis, and Jorge Nocedal. Optimization methods for large-scale machine learning. Siam Review, 60(2):223–311, 2018. \n[4] Francisco M Castro, Manuel J Marín-Jiménez, Nicolás Guil, Cordelia Schmid, and Karteek Alahari. End-to-end incremental learning. In Proceedings of the European conference on computer vision (ECCV), pages 233–248, 2018. \n[5] Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In Proceedings of the European Conference on Computer Vision (ECCV), pages 532–547, 2018. \n[6] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. In International Conference on Learning Representations, 2018. \n[7] Hung-Jen Chen, An-Chieh Cheng, Da-Cheng Juan, Wei Wei, and Min Sun. Mitigating forgetting in online continual learning via instance-aware parameterization. Advances in Neural Information Processing Systems, 33, 2020. \n[8] Kuilin Chen and Chi-Guhn Lee. Incremental few-shot learning via vector quantization in deep embedded space. In International Conference on Learning Representations, 2021. \n[9] Ali Cheraghian, Shafin Rahman, Pengfei Fang, Soumava Kumar Roy, Lars Petersson, and Mehrtash Harandi. Semantic-aware knowledge distillation for few-shot class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2534–2543, 2021. \n[10] Prithviraj Dhar, Rajat Vikram Singh, Kuan-Chuan Peng, Ziyan Wu, and Rama Chellappa. Learning without memorizing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[11] Gintare Karolina Dziugaite and Daniel M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Gal Elidan, Kristian Kersting, and Alexander T. Ihler, editors, Proceedings of the Thirty-Third Conference on Uncertainty in Artificial Intelligence, UAI 2017, Sydney, Australia, August 11-15, 2017. AUAI Press, 2017. \n[12] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135. PMLR, 2017. \n[13] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4367–4375, 2018. \n[14] Ian J Goodfellow, Mehdi Mirza, Da Xiao, Aaron Courville, and Yoshua Bengio. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211, 2013. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
173,
|
| 1242 |
+
162,
|
| 1243 |
+
828,
|
| 1244 |
+
919
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 10
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "[15] Haowei He, Gao Huang, and Yang Yuan. Asymmetric valleys: Beyond sharp and flat local minima. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché- Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 2549–2560, 2019. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
173,
|
| 1253 |
+
92,
|
| 1254 |
+
828,
|
| 1255 |
+
161
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
169,
|
| 1265 |
+
823,
|
| 1266 |
+
212
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "[17] Geoffrey E. Hinton and Drew van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Lenny Pitt, editor, Proceedings of the Sixth Annual ACM Conference on Computational Learning Theory, COLT 1993, Santa Cruz, CA, USA, July 26-28, 1993, pages 5–13. ACM, 1993. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
173,
|
| 1275 |
+
219,
|
| 1276 |
+
825,
|
| 1277 |
+
276
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 11
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "[18] Sepp Hochreiter and Jürgen Schmidhuber. Simplifying neural nets by discovering flat minima. In Gerald Tesauro, David S. Touretzky, and Todd K. Leen, editors, Advances in Neural Information Processing Systems 7, [NIPS Conference, Denver, Colorado, USA, 1994], pages 529–536. MIT Press, 1994. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
171,
|
| 1286 |
+
285,
|
| 1287 |
+
823,
|
| 1288 |
+
342
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 11
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "[19] Ruibing Hou, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cross attention network for few-shot classification. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pages 4003–4014, 2019. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
173,
|
| 1297 |
+
349,
|
| 1298 |
+
823,
|
| 1299 |
+
393
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 11
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "[20] Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and Dahua Lin. Learning a unified classifier incrementally via rebalancing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 831–839, 2019. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
173,
|
| 1308 |
+
400,
|
| 1309 |
+
823,
|
| 1310 |
+
444
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 11
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "[21] Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting for continual learning via model adaptation. In International Conference on Learning Representations, 2018. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
174,
|
| 1319 |
+
450,
|
| 1320 |
+
825,
|
| 1321 |
+
494
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 11
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "[22] Xinting Hu, Kaihua Tang, Chunyan Miao, Xian-Sheng Hua, and Hanwang Zhang. Distilling causal effect of data in class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3957–3966, 2021. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
174,
|
| 1330 |
+
502,
|
| 1331 |
+
823,
|
| 1332 |
+
546
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 11
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "[23] Muhammad Abdullah Jamal and Guo-Jun Qi. Task agnostic meta-learning for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11719–11727, 2019. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
174,
|
| 1341 |
+
553,
|
| 1342 |
+
825,
|
| 1343 |
+
597
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 11
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "[24] Yiding Jiang\\*, Behnam Neyshabur\\*, Hossein Mobahi, Dilip Krishnan, and Samy Bengio. Fantastic generalization measures and where to find them. In International Conference on Learning Representations, 2020. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
174,
|
| 1352 |
+
604,
|
| 1353 |
+
825,
|
| 1354 |
+
647
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 11
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "[25] Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In International Conference on Learning Representations, 2019. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
173,
|
| 1363 |
+
655,
|
| 1364 |
+
823,
|
| 1365 |
+
698
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 11
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "[26] Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. In International Conference on Learning Representations, 2018. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
173,
|
| 1374 |
+
707,
|
| 1375 |
+
823,
|
| 1376 |
+
736
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 11
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "[27] J. Kiefer and J. Wolfowitz. Stochastic estimation of the maximum of a regression function. Annals of Mathematical Statistics, 23:462–466, 1952. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
168,
|
| 1385 |
+
743,
|
| 1386 |
+
825,
|
| 1387 |
+
772
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 11
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "[28] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
173,
|
| 1396 |
+
781,
|
| 1397 |
+
826,
|
| 1398 |
+
837
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 11
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "[29] Alex Krizhevsky et al. Learning multiple layers of features from tiny images. 2009. ",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
168,
|
| 1407 |
+
845,
|
| 1408 |
+
759,
|
| 1409 |
+
861
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 11
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "[30] Ilja Kuzborskij, Francesco Orabona, and Barbara Caputo. From n to $\\mathrm { n } + 1$ : Multiclass transfer incremental learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3358–3365, 2013. ",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
869,
|
| 1419 |
+
826,
|
| 1420 |
+
911
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 11
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "[31] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017. \n[32] Yaoyao Liu, Bernt Schiele, and Qianru Sun. An ensemble of epoch-wise empirical bayes for few-shot learning. In European Conference on Computer Vision, pages 404–421. Springer, 2020. \n[33] Yaoyao Liu, Yuting Su, An-An Liu, Bernt Schiele, and Qianru Sun. Mnemonics training: Multiclass incremental learning without forgetting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12245–12254, 2020. \n[34] Pratik Mazumder, Pravendra Singh, and Piyush Rai. Few-shot lifelong learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 2337–2345, 2021. \n[35] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier, 1989. \n[36] Thomas Mensink, Jakob Verbeek, Florent Perronnin, and Gabriela Csurka. Distance-based image classification: Generalizing to new classes at near-zero cost. IEEE transactions on pattern analysis and machine intelligence, 35(11):2624–2637, 2013. \n[37] Fabrizio Pittorino, Carlo Lucibello, Christoph Feinauer, Gabriele Perugini, Carlo Baldassi, Elizaveta Demyanenko, and Riccardo Zecchina. Entropic gradient descent algorithms and wide flat minima. In International Conference on Learning Representations, 2021. \n[38] Jathushan Rajasegaran, Salman Khan, Munawar Hayat, Fahad Shahbaz Khan, and Mubarak Shah. itaml: An incremental task-agnostic meta-learning approach. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13588–13597, 2020. \n[39] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. 2016. \n[40] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 2001–2010, 2017. \n[41] Mengye Ren, Renjie Liao, Ethan Fetaya, and Richard S Zemel. Incremental few-shot learning with attention attractor networks. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pages 5275–5285, 2019. \n[42] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In International Conference on Learning Representations, 2018. \n[43] H. Robbins. A stochastic approximation method. Annals of Mathematical Statistics, 22:400–407, 2007. \n[44] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 4080–4090, 2017. \n[45] Qianru Sun, Yaoyao Liu, Zhaozheng Chen, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning through hard tasks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. \n[46] Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for fewshot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 403–412, 2019. \n[47] Xiaoyu Tao, Xiaopeng Hong, Xinyuan Chang, Songlin Dong, Xing Wei, and Yihong Gong. Few-shot class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12183–12192, 2020. \n[48] Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: a good embedding is all you need? In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XIV 16, pages 266–282. Springer, 2020. \n[49] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 3637–3645, 2016. \n[50] Peter Welinder, Steve Branson, Takeshi Mita, Catherine Wah, Florian Schroff, Serge Belongie, and Pietro Perona. Caltech-ucsd birds 200. 2010. \n[51] Qianru Sun Yaoyao Liu, Bernt Schiele. Adaptive aggregation networks for class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021. \n[52] Han-Jia Ye, Hexiang Hu, and De-Chuan Zhan. Learning adaptive classifiers synthesis for generalized few-shot learning. International Journal of Computer Vision, pages 1–24, 2021. \n[53] Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8808–8817, 2020. \n[54] Lu Yu, Bartlomiej Twardowski, X. Liu, Luis Herranz, Kai Wang, Yong mei Cheng, Shangling Jui, and Joost van de Weijer. Semantic drift compensation for class-incremental learning. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6980–6989, 2020. \n[55] Zhongqi Yue, Hanwang Zhang, Qianru Sun, and Xian-Sheng Hua. Interventional few-shot learning. Advances in Neural Information Processing Systems, 33, 2020. \n[56] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International Conference on Machine Learning, pages 3987–3995. PMLR, 2017. \n[57] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Differentiable earth mover’s distance for few-shot learning. arXiv e-prints, pages arXiv–2003, 2020. \n[58] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12203–12213, 2020. \n[59] Chi Zhang, Nan Song, Guosheng Lin, Yun Zheng, Pan Pan, and Yinghui Xu. Few-shot incremental learning with continually evolved classifiers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12455–12464, 2021. \n[60] Hanbin Zhao, Yongjian Fu, Mintong Kang, Q Tian, F Wu, and X Li. Mgsvf: Multi-grained slow vs. fast framework for few-shot class-incremental learning. arXiv preprint arXiv:2006.15524. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
169,
|
| 1429 |
+
73,
|
| 1430 |
+
826,
|
| 1431 |
+
921
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 12
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
171,
|
| 1440 |
+
90,
|
| 1441 |
+
828,
|
| 1442 |
+
731
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 13
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "Checklist ",
|
| 1449 |
+
"text_level": 1,
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
174,
|
| 1452 |
+
755,
|
| 1453 |
+
254,
|
| 1454 |
+
771
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 13
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "1. For all authors... ",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
214,
|
| 1463 |
+
782,
|
| 1464 |
+
339,
|
| 1465 |
+
796
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 13
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"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 6. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
238,
|
| 1474 |
+
801,
|
| 1475 |
+
825,
|
| 1476 |
+
893
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 13
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "2. If you are including theoretical results... ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
214,
|
| 1485 |
+
897,
|
| 1486 |
+
493,
|
| 1487 |
+
911
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 13
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 4.3. \n(b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A.1. ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
236,
|
| 1496 |
+
90,
|
| 1497 |
+
823,
|
| 1498 |
+
122
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 14
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "3. If you ran experiments... ",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
214,
|
| 1507 |
+
127,
|
| 1508 |
+
393,
|
| 1509 |
+
141
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 14
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"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] The link to the source code is provided in the abstract. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5.1 and Appendix A.2. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Appendix A.3. \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 Section 5.1 ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
238,
|
| 1518 |
+
145,
|
| 1519 |
+
825,
|
| 1520 |
+
277
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 14
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
212,
|
| 1529 |
+
281,
|
| 1530 |
+
825,
|
| 1531 |
+
296
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 14
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We have cited [29, 49, 50]. \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? [N/A] \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] ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
238,
|
| 1540 |
+
300,
|
| 1541 |
+
825,
|
| 1542 |
+
435
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 14
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
214,
|
| 1551 |
+
439,
|
| 1552 |
+
705,
|
| 1553 |
+
454
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 14
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"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] ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
238,
|
| 1562 |
+
458,
|
| 1563 |
+
825,
|
| 1564 |
+
547
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 14
|
| 1567 |
+
}
|
| 1568 |
+
]
|
parse/train/ALvt7nXa2q/ALvt7nXa2q_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ALvt7nXa2q/ALvt7nXa2q_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJij4yg0Z/BJij4yg0Z.md
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A BAYESIAN PERSPECTIVE ON GENERALIZATION AND STOCHASTIC GRADIENT DESCENT
|
| 2 |
+
|
| 3 |
+
Samuel L. Smith∗ & Quoc V. Le Google Brain {slsmith, qvl}@google.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We consider two questions at the heart of machine learning; how can we predict if a minimum will generalize to the test set, and why does stochastic gradient descent find minima that generalize well? Our work responds to Zhang et al. (2016), who showed deep neural networks can easily memorize randomly labeled training data, despite generalizing well on real labels of the same inputs. We show that the same phenomenon occurs in small linear models. These observations are explained by the Bayesian evidence, which penalizes sharp minima but is invariant to model parameterization. We also demonstrate that, when one holds the learning rate fixed, there is an optimum batch size which maximizes the test set accuracy. We propose that the noise introduced by small mini-batches drives the parameters towards minima whose evidence is large. Interpreting stochastic gradient descent as a stochastic differential equation, we identify the “noise scale” $\begin{array} { r } { \overline { { g } } = \epsilon ( \frac { N } { B } - 1 ) \approx } \end{array}$ $\epsilon N / B$ , where $\epsilon$ is the learning rate, $N$ the training set size and $B$ the batch size. Consequently the optimum batch size is proportional to both the learning rate and the size of the training set, $B _ { o p t } \propto \epsilon N$ . We verify these predictions empirically.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
This paper shows Bayesian principles can explain many recent observations in the deep learning literature, while also discovering practical new insights. Zhang et al. (2016) trained deep convolutional networks on ImageNet and CIFAR10, achieving excellent accuracy on both training and test sets. They then took the same input images, but randomized the labels, and found that while their networks were now unable to generalize to the test set, they still memorized the training labels. They claimed these results contradict learning theory, although this claim is disputed (Kawaguchi et al., 2017; Dziugaite & Roy, 2017). Nonetheless, their results beg the question; if our models can assign arbitrary labels to the training set, why do they work so well in practice? Meanwhile Keskar et al. (2016) observed that if we hold the learning rate fixed and increase the batch size, the test accuracy usually falls. This striking result shows improving our estimate of the full-batch gradient can harm performance. Goyal et al. (2017) observed a linear scaling rule between batch size and learning rate in a deep ResNet, while Hoffer et al. (2017) proposed a square root rule on theoretical grounds.
|
| 12 |
+
|
| 13 |
+
Many authors have suggested “broad minima” whose curvature is small may generalize better than “sharp minima” whose curvature is large (Chaudhari et al., 2016; Hochreiter & Schmidhuber, 1997). Indeed, Dziugaite & Roy (2017) argued the results of Zhang et al. (2016) can be understood using “nonvacuous” PAC-Bayes generalization bounds which penalize sharp minima, while Keskar et al. (2016) showed stochastic gradient descent (SGD) finds wider minima as the batch size is reduced. However Dinh et al. (2017) challenged this interpretation, by arguing that the curvature of a minimum can be arbitrarily increased by changing the model parameterization. In this work we show:
|
| 14 |
+
|
| 15 |
+
• The results of Zhang et al. (2016) are not unique to deep learning; we observe the same phenomenon in a small “over-parameterized” linear model. We demonstrate that this phenomenon is straightforwardly understood by evaluating the Bayesian evidence in favor of each model, which penalizes sharp minima but is invariant to the model parameterization.
|
| 16 |
+
|
| 17 |
+
• SGD integrates a stochastic differential equation whose “noise scale” $g \approx \epsilon N / B$ , where $\epsilon$ is the learning rate, $N$ training set size and $B$ batch size. Noise drives SGD away from sharp minima, and therefore there is an optimal batch size which maximizes the test set accuracy. This optimal batch size is proportional to the learning rate and training set size1.
|
| 18 |
+
|
| 19 |
+
We describe Bayesian model comparison in section 2. In section 3 we replicate the observations of Zhang et al. (2016) in a linear model, and show they are explained by the Bayesian evidence. In section 4 we show there is an optimum batch size which maximizes the test set accuracy, and in section 5 we derive scaling rules between the optimum batch size, learning rate, training set size and momentum coefficient. Throughout this work, “generalization gap” refers to the gap in test accuracy between small and large batch SGD training, not the gap in accuracy between training and test sets.
|
| 20 |
+
|
| 21 |
+
# 2 BAYESIAN MODEL COMPARISON
|
| 22 |
+
|
| 23 |
+
Bayesian model comparison was first applied to neural networks in MacKay (1992). We provide a brief tutorial here, since the theory is central to the remainder of the paper. For simplicity we first consider a classification model $M$ with a single parameter $\omega$ , training inputs $x$ and training labels $y$ . We can infer a posterior probability distribution over the parameter by applying Bayes theorem,
|
| 24 |
+
|
| 25 |
+
$$
|
| 26 |
+
\begin{array} { r c l } { P ( \omega | y , x ; M ) } & { = } & { \frac { P ( y | \omega , x ; M ) P ( \omega ; M ) } { P ( y | x ; M ) } } \end{array}
|
| 27 |
+
$$
|
| 28 |
+
|
| 29 |
+
The likelihood, $\begin{array} { r c l c l } { P ( y | \omega , x ; M ) } & { = } & { \prod _ { i } P ( y _ { i } | \omega , x _ { i } ; M ) } & { = } & { e ^ { - H ( \omega ; M ) } } \end{array}$ , where $\begin{array} { r l } { H ( \omega ; M ) } & { { } = } \end{array}$ $\begin{array} { r } { - \sum _ { i } \ln \left( P ( y _ { i } | \omega , x _ { i } ; \dot { M } ) \right) } \end{array}$ denotes the cross-entropy of unique categorical labels. We typically use a Gaussian prior, $P ( \omega ; M ) = \sqrt { \lambda / 2 \pi } e ^ { - \lambda \omega ^ { 2 } / 2 }$ , and therefore the posterior probability density of the parameter given the training data, $P ( \omega | y , x ; M ) \propto \sqrt { \lambda / 2 \pi } e ^ { - C ( \omega ; M ) }$ , where $C ( \omega ; M ) =$ $H ( \omega ; M ) + \lambda \omega ^ { 2 } / 2$ denotes the L2 regularized cross entropy, or “cost function”, and $\lambda$ is the regularization coefficient. The value $\omega _ { 0 }$ which minimizes the cost function lies at the maximum of this posterior. To predict an unknown label $y _ { t }$ of a new input $x _ { t }$ , we should compute the integral,
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\begin{array} { r c l } { P ( y _ { t } | x _ { t } , y , x ; M ) } & { = } & { \displaystyle \int d \omega P ( y _ { t } | \omega , x _ { t } ; M ) P ( \omega | y , x ; M ) } \\ & { = } & { \displaystyle \frac { \int d \omega P ( y _ { t } | \omega , x _ { t } ; M ) e ^ { - C ( \omega ; M ) } } { \int d \omega e ^ { - C ( \omega ; M ) } } . } \end{array}
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
However these integrals are dominated by the region near $\omega _ { 0 }$ , and since $P ( y _ { t } | \omega , x _ { t } ; M )$ is smooth we usually approximate $P ( y _ { t } | x _ { t } , x , y ; M ) \approx P ( y _ { t } | \omega _ { 0 } , x _ { t } ; M )$ . Having minimized $C ( \omega ; M )$ to find $\omega _ { 0 }$ , we now wish to compare two different models and select the best one. The probability ratio,
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\frac { P ( M _ { 1 } | y , x ) } { P ( M _ { 2 } | y , x ) } = \frac { P ( y | x ; M _ { 1 } ) } { P ( y | x ; M _ { 2 } ) } \frac { P ( M _ { 1 } ) } { P ( M _ { 2 } ) } .
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
The second factor on the right is the prior ratio, which describes which model is most plausible. To avoid unnecessary subjectivity, we usually set this to 1. Meanwhile the first factor on the right is the evidence ratio, which controls how much the training data changes our prior beliefs. Germain et al. (2016) showed that maximizing the evidence (or “marginal likelihood”) minimizes a PAC-Bayes generalization bound. To compute it, we evaluate the normalizing constant of equation 1,
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\begin{array} { r c l } { { P ( y | x ; M ) } } & { { = } } & { { \displaystyle \int d \omega P ( y | \omega , x ; M ) P ( \omega ; M ) } } \\ { { } } & { { = } } & { { \displaystyle \sqrt { \frac { \lambda } { 2 \pi } } \int d \omega e ^ { - C ( \omega ; M ) } . } } \end{array}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Notice that the evidence is computed by integrating out the parameters; and consequently it is invariant to the model parameterization. Since this integral is dominated by the region near the minimum $\omega _ { 0 }$ , we can estimate the evidence by Taylor expanding $C ( \omega ; M ) \approx \dot { C } ( \omega _ { 0 } ) + \dot { C } ^ { \prime \prime } ( \omega _ { 0 } ) ( \omega - \omega _ { 0 } ) ^ { 2 } / 2 .$ ,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\begin{array} { r c l } { P ( y | x ; M ) } & { \approx } & { { { e } ^ { - C ( \omega _ { 0 } ) } } \displaystyle \sqrt { \frac { \lambda } { 2 \pi } } \int d \omega { e } ^ { - C ^ { \prime \prime } ( \omega _ { 0 } ) ( \omega - \omega _ { 0 } ) ^ { 2 } / 2 } } \\ & { = } & { \exp \bigg \{ - \bigg ( C ( \omega _ { 0 } ) + \frac { 1 } { 2 } \ln \left( C ^ { \prime \prime } ( \omega _ { 0 } ) / \lambda \right) \bigg ) \bigg \} . } \end{array}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
1Equivalently, there is an optimal learning rate proportional to the batch size and the training set size.
|
| 54 |
+
|
| 55 |
+
Within this “Laplace” approximation, the evidence is controlled by the value of the cost function at the minimum, and by the logarithm of the ratio of the curvature about this minimum compared to the regularization constant. Thus far we have considered models of a single parameter; in realistic models with many parameters $P ( y | x ; M ) \approx \lambda ^ { \frac { p } { 2 } } e ^ { - C ( \omega _ { 0 } ) } / | \nabla \nabla C ( \omega ) | _ { \omega _ { 0 } } ^ { 1 / 2 }$ , where $| \nabla \nabla C ( \omega ) | _ { \omega _ { 0 } }$ is the determinant of the Hessian, and $p$ denotes the number of model parameters (Kass & Raftery, 1995). The determinant of the Hessian is simply the product of its eigenvalues, $( \prod _ { i = 1 } ^ { p } \lambda _ { i } )$ , and thus,
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
P ( y | x ; M ) \approx \exp \Bigg \{ - \left( C ( \omega _ { 0 } ) + \frac { 1 } { 2 } \sum _ { i = 1 } ^ { p } \ln ( \lambda _ { i } / \lambda ) \right) \Bigg \} .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
The contribution $( \lambda ^ { \frac { p } { 2 } } / | \nabla \nabla C ( \omega ) | _ { \omega _ { 0 } } ^ { 1 / 2 } )$ is often called the “Occam factor”, because it enforces Occam’s razor; when two models describe the data equally well, the simpler model is usually better (Gull, 1988). Minima with low curvature are simple, because the parameters do not have to be finetuned to fit the data. Intuitively, the Occam factor describes the fraction of the prior parameter space consistent with the data. Since this fraction is always less than one, we propose to approximate equation 9 away from local minima by only performing the summation over eigenvalues $\lambda _ { i } \geq \lambda$ . The evidence can be reframed in the language of information theory, whereby Occam’s factor penalizes the amount of information the model must learn about the parameters to accurately model the training data (Hinton & Van Camp, 1993; Achille & Soatto, 2017; Shwartz-Ziv & Tishby, 2017).
|
| 62 |
+
|
| 63 |
+
In this work, we will compare the evidence against a null model which assumes the labels are entirely random, assigning equal probability to each class. This unusual model has no parameters, and so the evidence is controlled by the likelihood alone, $P ( y | x ; N U L L ) = ( 1 / n ) ^ { N } \stackrel { - } { = } e ^ { - N \ln { ( n ) } }$ , where $n$ denotes the number of model classes and $N$ the number of training labels. Thus the evidence ratio,
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\frac { P ( y | x ; M ) } { P ( y | x ; N U L L ) } = e ^ { - E ( \omega _ { 0 } ) } ,
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Where $\begin{array} { r } { E ( \omega _ { 0 } ) = C ( \omega _ { 0 } ) + ( 1 / 2 ) \sum _ { i } \ln ( \lambda _ { i } / \lambda ) - N \ln ( n ) } \end{array}$ is the log evidence ratio in favor of the null model. Clearly, we should only assign any confidence to the predictions of our model if $E ( \omega _ { 0 } ) < 0$ .
|
| 70 |
+
|
| 71 |
+
The evidence supports the intuition that broad minima generalize better than sharp minima, but unlike the curvature it does not depend on the model parameterization. Dinh et al. (2017) showed one can increase the Hessian eigenvalues by rescaling the parameters, but they must simultaneously rescale the regularization coefficients, otherwise the model changes. Since Occam’s factor arises from the log ratio, $\ln \left( \lambda _ { i } / \lambda \right)$ , these two effects cancel out2. It is difficult to evaluate the evidence for deep networks, as we cannot compute the Hessian of millions of parameters. Additionally, neural networks exhibit many equivalent minima, since we can permute the hidden units without changing the model. To compute the evidence we must carefully account for this “degeneracy”. We argue these issues are not a major limitation, since the intuition we build studying the evidence in simple cases will be sufficient to explain the results of both Zhang et al. (2016) and Keskar et al. (2016).
|
| 72 |
+
|
| 73 |
+
# 3 BAYES THEOREM AND GENERALIZATION
|
| 74 |
+
|
| 75 |
+
Zhang et al. (2016) showed that deep neural networks generalize well on training inputs with informative labels, and yet the same model can drastically overfit on the same input images when the labels are randomized; perfectly memorizing the training set. To demonstrate that these observations are not unique to deep networks, let’s consider a far simpler model; logistic regression. We form a small balanced training set comprising 800 images from MNIST, of which half have true label $\mathbf { \vec { \Delta } } ^ { 6 } 0 ^ { 9 }$ and half true label “1”. Our test set is also balanced, comprising 5000 MNIST images of zeros and 5000 MNIST images of ones. There are two tasks. In the first task, the labels of both the training and test sets are randomized. In the second task, the labels are informative, matching the true MNIST labels. Since the images contain 784 pixels, our model has just 784 weights and 1 bias.
|
| 76 |
+
|
| 77 |
+
We show the accuracy of the model predictions on both the training and test sets in figure 1. When trained on the informative labels, the model generalizes well to the test set, so long as it is weakly regularized. However the model also perfectly memorizes the random labels, replicating the observations of Zhang et al. (2016) in deep networks. No significant improvement in model performance is observed as the regularization coefficient increases. For completeness, we also evaluate the mean margin between training examples and the decision boundary. For both random and informative labels, the margin drops significantly as we reduce the regularization coefficient. When weakly regularized, the mean margin is roughly $5 0 \%$ larger for informative labels than for random labels.
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 1: Prediction accuracy and mean training set margin as a function of regularization coefficient, for a logistic regression trained on random (a) and informative (b) labels of the same inputs. The weakly regularized model generalizes well on informative labels but memorizes random labels.
|
| 81 |
+
|
| 82 |
+
Now consider figure 2, where we plot the mean cross-entropy of the model predictions, evaluated on both training and test sets, as well as the Bayesian log evidence ratio defined in the previous section. Looking first at the random label experiment in figure 2a, while the cross-entropy on the training set vanishes when the model is weakly regularized, the cross-entropy on the test set explodes. Not only does the model make random predictions, but it is extremely confident in those predictions. As the regularization coefficient is increased the test set cross-entropy falls, settling at $\ln 2$ , the crossentropy of assigning equal probability to both classes. Now consider the Bayesian evidence, which we evaluate on the training set. The log evidence ratio is large and positive when the model is weakly regularized, indicating that the model is exponentially less plausible than assigning equal probabilities to each class. As the regularization parameter is increased, the log evidence ratio falls, but it is always positive, indicating that the model can never be expected to generalize well.
|
| 83 |
+
|
| 84 |
+
Now consider figure 2b (informative labels). Once again, the training cross-entropy falls to zero when the model is weakly regularized, while the test cross-entropy is high. Even though the model makes accurate predictions, those predictions are overconfident. As the regularization coefficient increases, the test cross-entropy falls below $\ln 2$ , indicating that the model is successfully generalizing to the test set. Now consider the Bayesian evidence. The log evidence ratio is large and positive when the model is weakly regularized, but as the regularization coefficient increases, the log evidence ratio drops below zero, indicating that the model is exponentially more plausible than assigning equal probabilities to each class. As we further increase the regularization, the log evidence ratio rises to zero while the test cross-entropy rises to $\ln 2$ . Test cross-entropy and Bayesian evidence are strongly correlated, with minima at the same regularization strength.
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 2: The cross-entropy and log evidence ratio, evaluated on random (a) or informative (b) labels. The evidence, evaluated on the training set, is strongly correlated with the test cross-entropy.
|
| 88 |
+
|
| 89 |
+
Bayesian model comparison has explained our results in a logistic regression. Meanwhile, Krueger et al. (2017) showed the largest Hessian eigenvalue also increased when training on random labels in deep networks, implying the evidence is falling. We conclude that Bayesian model comparison is quantitatively consistent with the results of Zhang et al. (2016) in linear models where we can compute the evidence, and qualitatively consistent with their results in deep networks where we cannot. Dziugaite & Roy (2017) recently demonstrated the results of Zhang et al. (2016) can also be understood by minimising a PAC-Bayes generalization bound which penalizes sharp minima.
|
| 90 |
+
|
| 91 |
+
# 4 BAYES THEOREM AND STOCHASTIC GRADIENT DESCENT
|
| 92 |
+
|
| 93 |
+
We showed above that generalization is strongly correlated with the Bayesian evidence, a weighted combination of the depth of a minimum (the cost function) and its breadth (the Occam factor). Consequently Bayesians often add isotropic Gaussian noise to the gradient (Welling & Teh, 2011). In appendix A, we show this drives the parameters towards broad minima whose evidence is large. The noise introduced by small batch training is not isotropic, and its covariance matrix is a function of the parameter values, but empirically Keskar et al. (2016) found it has similar effects, driving the SGD away from sharp minima. This paper therefore proposes Bayesian principles also account for the “generalization gap”, whereby the test set accuracy often falls as the SGD batch size is increased (holding all other hyper-parameters constant). Since the gradient drives the SGD towards deep minima, while noise drives the SGD towards broad minima, we expect the test set performance to show a peak at an optimal batch size, which balances these competing contributions to the evidence.
|
| 94 |
+
|
| 95 |
+
We were unable to observe a generalization gap in linear models (since linear models are convex there are no sharp minima to avoid). Instead we consider a shallow neural network with 800 hidden units and RELU hidden activations, trained on MNIST without regularization. We use SGD with a momentum parameter of 0.9. Unless otherwise stated, we use a constant learning rate of 1.0 which does not depend on the batch size or decay during training. Furthermore, we train on just 1000 images, selected at random from the MNIST training set. This enables us to compare small batch to full batch training. We emphasize that we are not trying to achieve optimal performance, but to study a simple model which shows a generalization gap between small and large batch training.
|
| 96 |
+
|
| 97 |
+
In figure 3, we exhibit the evolution of the test accuracy and test cross-entropy during training. Our small batches are composed of 30 images, randomly sampled from the training set. Looking first at figure 3a, small batch training takes longer to converge, but after a thousand gradient updates a clear generalization gap in model accuracy emerges between small and large training batches. Now consider figure 3b. While the test cross-entropy for small batch training is lower at the end of training; the cross-entropy of both small and large training batches is increasing, indicative of over-fitting. Both models exhibit a minimum test cross-entropy, although after different numbers of gradient updates. Intriguingly, we show in appendix B that the generalization gap between small and large batch training shrinks significantly when we introduce L2 regularization.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 3: The evolution during training of the test accuracy (a), and the test set cross-entropy (b). Full batches are composed of 1000 images, while small batches comprise 30 images.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 4: The test accuracy for a range of batch sizes, during training (a) and after 10000 steps (b).
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 5: a) The test set accuracy as a function of batch size, for a range of learning rates $\epsilon$ . The performance peak shifts to the right as we increase $\epsilon$ , but the overall performance falls once $\epsilon \gtrsim 3$ . b) The best observed batch size is proportional to the learning rate across two orders of magnitude.
|
| 107 |
+
|
| 108 |
+
From now on we focus on the test set accuracy (since this converges as the number of gradient updates increases). In figure 4a, we exhibit training curves for a range of batch sizes between 1 and 1000. We find that the model cannot train when the batch size $B \lessapprox \bar { 1 0 }$ . In figure 4b we plot the mean test set accuracy after 10000 training steps. A clear peak emerges, indicating that there is indeed an optimum batch size which maximizes the test accuracy, consistent with Bayesian intuition. The results of Keskar et al. (2016) focused on the decay in test accuracy above this optimum batch size.
|
| 109 |
+
|
| 110 |
+
# 5 STOCHASTIC DIFFERENTIAL EQUATIONS AND THE SCALING RULES
|
| 111 |
+
|
| 112 |
+
We showed above that the test accuracy peaks at an optimal batch size, if one holds the other SGD hyper-parameters constant. We argued that this peak arises from the tradeoff between depth and breadth in the Bayesian evidence. However it is not the batch size itself which controls this tradeoff, but the underlying scale of random fluctuations in the SGD dynamics. We now identify this SGD “noise scale”, and use it to derive three scaling rules which predict how the optimal batch size depends on the learning rate, training set size and momentum coefficient. A gradient update,
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\begin{array} { r c l } { \Delta \omega } & { = } & { - \displaystyle \frac { \epsilon } { N } \left( \frac { d C } { d \omega } + \left( \frac { d \hat { C } } { d \omega } - \frac { d C } { d \omega } \right) \right) , } \end{array}
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 6: a) The test accuracy as a function of batch size, for a range of training set sizes. To reduce noise, we average each curve over five experiments. The performance peak shift to the right as we increase the size of the training set. Unsurprisingly, the overall model performance also improves. b) The best observed batch size is proportional to the size of the training set once $N \gtrsim 2 0 0 0 \bar { 0 }$ .
|
| 120 |
+
|
| 121 |
+
where is the learning rate, N the training set size, dCdω $\begin{array} { r } { \frac { d C } { d \omega } = \sum _ { i = 1 } ^ { N } \frac { d C _ { i } } { d \omega } } \end{array}$ the true gradient, and $\begin{array} { r } { \frac { d \hat { C } } { d \omega } = } \end{array}$ NB PBi=1 dCidω the estimated gradient evaluated on a mini-batch. The expected gradient of a single example, $\begin{array} { r } { \left. \frac { d C _ { i } } { d \omega } \right. = \frac { 1 } { N } \frac { d C } { d \omega } } \end{array}$ , while $\begin{array} { r } { \left. \frac { d C _ { i } } { d \omega } \frac { d C _ { j } } { d \omega } \right. = \left( \frac { 1 } { N } \frac { d C } { d \omega } \right) ^ { 2 } + F ( \omega ) \delta _ { i j } . \mathrm { ~ } F ( \omega } \end{array}$ is a matrix describing the gradient covariances, which are a functheorem and model the gradient error $\begin{array} { r } { \alpha = ( \frac { d \hat { C } } { d \omega } - \frac { d C } { d \omega } ) } \end{array}$ nt par with alues. n rando approximation briefly in appendix C). It is easy to show that $\langle \alpha \rangle = 0$ $\begin{array} { r } { \langle \alpha ^ { 2 } \rangle = N ( \frac { N } { B } - 1 ) F ( \omega ) } \end{array}$ . Typically $N \gg B$ , such that $\langle \alpha ^ { 2 } \rangle \approx N ^ { 2 } F ( \omega ) / B$ . To continue, we interpret equation 11 as the discrete update of a stochastic differential equation (Li et al., 2017; Gardiner, 1985),
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\frac { d \omega } { d t } = - \frac { d C } { d \omega } + \eta ( t ) ,
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Where $t$ is a continuous variable, $\eta ( t )$ represents noise, $\langle \eta ( t ) \rangle = 0$ and $\langle \eta ( t ) \eta ( t ^ { \prime } ) \rangle = g F ( \omega ) \delta ( t { - } t ^ { \prime } )$ . The constant $g$ controls the scale of random fluctuations in the dynamics. To relate this differential equation to the SGD, we compute a gradient update $\begin{array} { r } { \Delta \omega = \int _ { 0 . } ^ { \epsilon / N } \frac { d \omega } { d t } d t = - \frac { \epsilon } { N } \frac { d C } { d \omega } + \int _ { 0 } ^ { \epsilon / N } \eta ( t ) d t } \end{array}$ Finally, to measure $\mathbf { g }$ , we equate the variance in this gradient update to the variance in equation 11,
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\begin{array} { r c l } { \displaystyle \left( \frac { \epsilon } { N } \right) ^ { 2 } \langle \alpha ^ { 2 } \rangle } & { = } & { \displaystyle \epsilon ^ { 2 } ( \frac { N } { B } - 1 ) F ( \omega ) / N } \\ { \displaystyle } & { = } & { \displaystyle \langle ( \int _ { 0 } ^ { \epsilon / N } d t \eta ( t ) ) ^ { 2 } \rangle = \int _ { 0 } ^ { \epsilon / N } d t \int _ { 0 } ^ { \epsilon / N } d t ^ { \prime } \langle \eta ( t ) \eta ( t ^ { \prime } ) \rangle = \epsilon g F ( \omega ) / N . } \end{array}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
Rearranging, the SGD noise scale $\begin{array} { r } { g = \epsilon ( \frac { N } { B } - 1 ) \approx \epsilon N / B } \end{array}$ . The noise scale falls when the batch size increases, consistent with our earlier observation of an optimal batch size $B _ { o p t }$ while holding the other hyper-parameters fixed. Notice that one would equivalently observe an optimal learning rate if one held the batch size constant. A similar analysis of the SGD was recently performed by Mandt et al. (2017), although their treatment only holds near local minima where the covariances $F ( \omega )$ are stationary. Our analysis holds throughout training, which is necessary since Keskar et al. (2016) found that the beneficial influence of noise was most pronounced at the start of training.
|
| 134 |
+
|
| 135 |
+
When we vary the learning rate or the training set size, we should keep the noise scale fixed, which implies that $B _ { o p t } \propto \epsilon N$ . In figure 5a, we plot the test accuracy as a function of batch size after $( 1 0 0 0 0 / \epsilon )$ training steps, for a range of learning rates. Exactly as predicted, the peak moves to the right as $\epsilon$ increases. Additionally, the peak test accuracy achieved at a given learning rate does not begin to fall until $\epsilon \sim 3$ , indicating that there is no significant discretization error in integrating the stochastic differential equation below this point. Above this point, the discretization error begins to dominate and the peak test accuracy falls rapidly. In figure 5b, we plot the best observed batch size as a function of learning rate, observing a clear linear trend, $B _ { o p t } \propto \epsilon$ . The error bars indicate the distance from the best observed batch size to the next batch size sampled in our experiments.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 7: a) The test set accuracy as a function of batch size for a range of momentum coefficients. As expected, the peak moves to the right as the momentum coefficient increases. b) The best observed batch size for a range of momentum coefficients. The green curve exhibits the scaling rule.
|
| 139 |
+
|
| 140 |
+
This scaling rule allows us to increase the learning rate with no loss in test accuracy and no increase in computational cost, simply by simultaneously increasing the batch size. We can then exploit increased parallelism across multiple GPUs, reducing model training times (Goyal et al., 2017). A similar scaling rule was independently proposed by Jastrzebski et al. (2017) and Chaudhari & Soatto (2017), although neither work identifies the existence of an optimal noise scale. A number of authors have proposed adjusting the batch size adaptively during training (Friedlander & Schmidt, 2012; Byrd et al., 2012; De et al., 2017), while Balles et al. (2016) proposed linearly coupling the learning rate and batch size within this framework. In Smith et al. (2017), we show empirically that decaying the learning rate during training and increasing the batch size during training are equivalent.
|
| 141 |
+
|
| 142 |
+
In figure 6a we exhibit the test set accuracy as a function of batch size, for a range of training set sizes after 10000 steps $\mathbf { \epsilon } \cdot \mathbf { \epsilon } = 1$ everywhere). Once again, the peak shifts right as the training set size rises, although the generalization gap becomes less pronounced as the training set size increases. In figure 6b, we plot the best observed batch size as a function of training set size; observing another linear trend, $B _ { o p t } \propto N$ . This scaling rule could be applied to production models, progressively growing the batch size as new training data is collected. We expect production datasets to grow considerably over time, and consequently large batch training is likely to become increasingly common.
|
| 143 |
+
|
| 144 |
+
Finally, in appendix $\mathrm { D }$ we extend our analysis to SGD with momentum, identifying the noise scale, $\begin{array} { r } { g \approx \frac { \epsilon N ^ { \mathrm { ~ \scriptsize ~ \cdots ~ } } } { B ( 1 - m ) } } \end{array}$ , where $m$ denotes the momentum coefficient. Notice that this reduces to the noise scale of conventional SGD as $m 0$ . When $m > 0$ , we obtain an additional scaling rule $B _ { o p t } \propto$ $1 / ( 1 - m )$ . This scaling rule predicts that the optimal batch size will increase when the momentum coefficient is increased. In figure 7a we plot the test set performance as a function of batch size after 10000 gradient updates ( $\mathbf { \epsilon } _ { \epsilon } = 1$ everywhere), for a range of momentum coefficients. In figure 7b, we plot the best observed batch size as a function of the momentum coefficient, and fit our results to the scaling rule above; obtaining remarkably good agreement. We propose a simple heuristic for tuning the batch size, learning rate and momentum coefficient in appendix E.
|
| 145 |
+
|
| 146 |
+
# 6 CONCLUSIONS
|
| 147 |
+
|
| 148 |
+
Just like deep neural networks, linear models which generalize well on informative labels can memorize random labels of the same inputs. These observations are explained by the Bayesian evidence, which is composed of the cost function and an “Occam factor”. The Occam factor penalizes sharp minima but it is invariant to changes in model parameterization. Mini-batch noise drives SGD away from sharp minima, and therefore there is an optimum batch size which maximizes the test accuracy. Interpreting SGD as the discretization of a stochastic differential equation, we predict this optimum batch size should scale linearly with both the learning rate and the training set size, $B _ { o p t } \propto \epsilon N$ . We derive an additional scaling rule, $B _ { o p t } \propto 1 / ( 1 - \stackrel { \textstyle - } { m } )$ , between the optimal batch size and the momentum coefficient. We verify these scaling rules empirically and discuss their implications.
|
| 149 |
+
|
| 150 |
+
# ACKNOWLEDGMENTS
|
| 151 |
+
|
| 152 |
+
We thank Pieter-Jan Kindermans, Prajit Ramachandran, Jascha Sohl-Dickstein, Jon Shlens, Kevin Murphy, Samy Bengio, Yasaman Bahri and Saeed Saremi for helpful comments on the manuscript.
|
| 153 |
+
|
| 154 |
+
# REFERENCES
|
| 155 |
+
|
| 156 |
+
Alessandro Achille and Stefano Soatto. On the emergence of invariance and disentangling in deep representations. arXiv preprint arXiv:1706.01350, 2017.
|
| 157 |
+
|
| 158 |
+
Lukas Balles, Javier Romero, and Philipp Hennig. Coupling adaptive batch sizes with learning rates. arXiv preprint arXiv:1612.05086, 2016.
|
| 159 |
+
|
| 160 |
+
Richard H Byrd, Gillian M Chin, Jorge Nocedal, and Yuchen Wu. Sample size selection in optimization methods for machine learning. Mathematical programming, 134(1):127–155, 2012.
|
| 161 |
+
|
| 162 |
+
Pratik Chaudhari and Stefano Soatto. Stochastic gradient descent performs variational inference, converges to limit cycles for deep networks. arXiv preprint arXiv:1710.11029, 2017.
|
| 163 |
+
|
| 164 |
+
Pratik Chaudhari, Anna Choromanska, Stefano Soatto, and Yann LeCun. Entropy-SGD: Biasing gradient descent into wide valleys. arXiv preprint arXiv:1611.01838, 2016.
|
| 165 |
+
|
| 166 |
+
Soham De, Abhay Yadav, David Jacobs, and Tom Goldstein. Automated inference with adaptive batches. In Artificial Intelligence and Statistics, pp. 1504–1513, 2017.
|
| 167 |
+
|
| 168 |
+
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv preprint arXiv:1703.04933, 2017.
|
| 169 |
+
|
| 170 |
+
Gintare Karolina Dziugaite and Daniel M Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. arXiv preprint arXiv:1703.11008, 2017.
|
| 171 |
+
|
| 172 |
+
Michael P Friedlander and Mark Schmidt. Hybrid deterministic-stochastic methods for data fitting. SIAM Journal on Scientific Computing, 34(3):A1380–A1405, 2012.
|
| 173 |
+
|
| 174 |
+
Crispin W Gardiner. Handbook of Stochastic Methods, volume 4. Springer Berlin, 1985.
|
| 175 |
+
|
| 176 |
+
Pascal Germain, Francis Bach, Alexandre Lacoste, and Simon Lacoste-Julien. PAC-bayesian theory meets bayesian inference. In Advances in Neural Information Processing Systems, pp. 1884– 1892, 2016.
|
| 177 |
+
|
| 178 |
+
Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An- ´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
|
| 179 |
+
|
| 180 |
+
Stephen F Gull. Bayesian inductive inference and maximum entropy. In Maximum-entropy and Bayesian methods in science and engineering, pp. 53–74. Springer, 1988.
|
| 181 |
+
|
| 182 |
+
Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993.
|
| 183 |
+
|
| 184 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Flat minima. ¨ Neural Computation, 9(1):1–42, 1997.
|
| 185 |
+
|
| 186 |
+
Elad Hoffer, Itay Hubara, and Daniel Soudry. Train longer, generalize better: closing the generalization gap in large batch training of neural networks. arXiv preprint arXiv:1705.08741, 2017.
|
| 187 |
+
|
| 188 |
+
Stanisław Jastrzebski, Zachary Kenton, Devansh Arpit, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. Three factors influencing minima in SGD. arXiv preprint arXiv:1711.04623, 2017.
|
| 189 |
+
|
| 190 |
+
Robert E Kass and Adrian E Raftery. Bayes factors. Journal of the american statistical association, 90(430):773–795, 1995.
|
| 191 |
+
|
| 192 |
+
Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv preprint arXiv:1710.05468, 2017.
|
| 193 |
+
|
| 194 |
+
Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016.
|
| 195 |
+
|
| 196 |
+
David Krueger, Nicolas Ballas, Stanislaw Jastrzebski, Devansh Arpit, Maxinder S Kanwal, Tegan Maharaj, Emmanuel Bengio, Asja Fischer, and Aaron Courville. Deep nets don’t learn via memorization. ICLR Workshop, 2017.
|
| 197 |
+
|
| 198 |
+
Qianxiao Li, Cheng Tai, and E Weinan. Stochastic modified equations and adaptive stochastic gradient algorithms. In International Conference on Machine Learning, pp. 2101–2110, 2017.
|
| 199 |
+
|
| 200 |
+
David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448–472, 1992.
|
| 201 |
+
|
| 202 |
+
Stephan Mandt, Matthew D Hoffman, and David M Blei. Stochastic gradient descent as approximate bayesian inference. arXiv preprint arXiv:1704.04289, 2017.
|
| 203 |
+
|
| 204 |
+
Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017.
|
| 205 |
+
|
| 206 |
+
Samuel L. Smith, Pieter-Jan Kindermans, and Quoc V. Le. Don’t decay the learning rate, increase the batch size. arXiv preprint arXiv:1711.00489, 2017.
|
| 207 |
+
|
| 208 |
+
Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 681–688, 2011.
|
| 209 |
+
|
| 210 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
|
| 211 |
+
|
| 212 |
+
# A BAYESIAN POSTERIOR SAMPLING AND LANGEVIN DYNAMICS
|
| 213 |
+
|
| 214 |
+
Instead of minimizing the cost function, Bayesian usually prefer to sample parameter values from the posterior (MacKay, 1992),
|
| 215 |
+
|
| 216 |
+
$$
|
| 217 |
+
P ( \omega | y , x ; M ) \propto e ^ { - C ( \omega ; M ) } ,
|
| 218 |
+
$$
|
| 219 |
+
|
| 220 |
+
where $C ( \omega ; M )$ is the regularized summed cost function, as shown in section 2 of the main text. It is well known that one can sample this posterior by simulating the overdamped Langevin equation (Gardiner, 1985), which is described by the stochastic differential equation,
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
\frac { d \omega } { d t } = - \frac { d C } { d \omega } + \eta ( t ) ,
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
where $t$ is a continuous variable, and $\eta ( t )$ describes Gaussian noise with mean $\langle \eta ( t ) \rangle = 0$ and variance $\langle \eta ( t ) \eta ( t ^ { \prime } ) \rangle = 2 T I \delta ( t - t ^ { \prime } )$ . The matrix $I$ denotes the identity, while $T$ is the “temperature”. Notice this Langevin equation is extremely similar to the stochastic differential equation of SGD, discussed in section 5 of the main text. Indeed, if the gradient covariances $F ( \omega )$ were stationary and proportional to the identity, then the SGD would integrate an overdamped Langevin equation with temperature proportional to the SGD noise scale $g$ . As $t \to \infty$ , the probability of sampling any particular parameter vector $\omega$ from the Langevin equation, $P ( \omega , t \infty ) \propto e ^ { - C / \dot { T } }$ .
|
| 227 |
+
|
| 228 |
+
We obtain posterior samples if $T = 1$ . In order to draw posterior samples in practice, we repeatedly integrate the Langevin equation (at temperature $T = 1$ ), over a finite step $t \to t + \epsilon / N$ ,
|
| 229 |
+
|
| 230 |
+
$$
|
| 231 |
+
\begin{array} { r c l } { \Delta \omega } & { = } & { - \displaystyle \frac { \epsilon } { N } \frac { d C } { d \omega } + \int _ { t } ^ { t + \frac { \epsilon } { N } } \eta ( t ) d t } \\ & { = } & { \displaystyle - \frac { \epsilon } { N } \frac { d C } { d \omega } + \alpha , } \end{array}
|
| 232 |
+
$$
|
| 233 |
+
|
| 234 |
+
where $\alpha$ denotes a Gaussian random variable with mean $\langle \alpha \rangle = 0$ and variance $\langle \alpha ^ { 2 } \rangle \ : = \ : 2 \epsilon I / N$ , which introduces isotropic noise to the gradient update as described in section 4 of the main text. Note that, since $C ( \omega ; M )$ denotes the summed cost function, we chose to scale our step size by the training set size $N$ . This also matches our treatment of SGD in section 5 of the main text. The larger the step size $\epsilon$ , the greater the discretization error, but if $\epsilon$ is sufficiently small and we iterate equation 17 sufficiently many times, we will obtain valid samples from the posterior.
|
| 235 |
+
|
| 236 |
+
Since the probability of sampling any given parameter vector $\omega$ is proportional to the posterior, the probability of sampling a parameter vector belonging to any given local minimum is proportional to the integral of the posterior over the bowl of attraction $D$ which surrounds that minimum.
|
| 237 |
+
|
| 238 |
+
$$
|
| 239 |
+
P ( \omega \in D , t \infty ) \propto \int _ { D } d \omega \ e ^ { - C ( \omega ; M ) } .
|
| 240 |
+
$$
|
| 241 |
+
|
| 242 |
+
Meanwhile we showed in section 2 of the main text that the evidence in favor of a model is proportional to the integral of the posterior over all parameter space.
|
| 243 |
+
|
| 244 |
+
$$
|
| 245 |
+
P ( y | x ; M ) \propto \int d \omega e ^ { - C ( \omega ; M ) } .
|
| 246 |
+
$$
|
| 247 |
+
|
| 248 |
+
As we discussed, this evidence is dominated by the contributions to the integral near local minima. In a convex model, there is only one such minimum; which allows us to accurately estimate the model evidence. Meanwhile, in non-convex models, there are many such minima, and so we can instead define the evidence as a sum over local evidences in favor of each minimum,
|
| 249 |
+
|
| 250 |
+
$$
|
| 251 |
+
P ( y | x ; M ) = \sum _ { i } P ( y | x , \omega \in D _ { i } ; M ) ,
|
| 252 |
+
$$
|
| 253 |
+
|
| 254 |
+
where we define the evidence in favor of a minimum as the integral over the local bowl of attraction,
|
| 255 |
+
|
| 256 |
+
$$
|
| 257 |
+
P ( y | x , \omega \in D ; M ) \propto \int _ { D } d \omega \ e ^ { - C ( \omega ; M ) } .
|
| 258 |
+
$$
|
| 259 |
+
|
| 260 |
+
Since the combined bowls of attraction of all the minima perfectly tile the entire parameter space, equations 19 and 20 are equivalent. Meanwhile, equating equations 18 and 21 we find that, when one performs Bayesian posterior sampling, the probability of sampling the parameter vector from a local minimum is proportional to the evidence in favor of that minimum. This demonstrates that bayesian posterior samples are biased in favor of local minima whose evidence is large, which explains why a single posterior sample $\omega _ { p }$ often achieves lower test error than the cost function minimum $\omega _ { 0 }$ .
|
| 261 |
+
|
| 262 |
+
# B THE EFFECT OF REGULARIZATION ON THE GENERALIZATION GAP
|
| 263 |
+
|
| 264 |
+
In the experiments of section 4 of the main text, the L2 regularization coefficient $\lambda = 0$ . In figure 8, we plot the evolution of the training curves when $\lambda = 0 . 1$ , for both small batch and full batch training. Excluding the regularization parameter, these experiments are identical to figure 3. To our surprise, regularized full batch training took longer to converge than small batch training. In another surprise, regularization significantly reduced the size of the generalization gap. While large batch regularized training achieves slightly lower test set accuracy than unregularized small batch training, it also achieves lower test cross-entropy. The test cross-entropy of our regularized models does not degrade after many gradient updates, removing the need for early stopping.
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
Figure 8: The mean test accuracy (a) and the mean test cross-entropy (b) of a regularized model during training. While full batch training takes longer to converge, it achieves similar performance at long times. The noise inherent in small batch training causes the performance to fluctuate.
|
| 268 |
+
|
| 269 |
+

|
| 270 |
+
Figure 9: The gradient distribution of a randomly selected parameter in the softmax layer, when measured over a single training example (a), and when averaged over mini-batches of 30 images (b).
|
| 271 |
+
|
| 272 |
+
# C THE GAUSSIAN APPROXIMATION TO THE MINI-BATCH ERROR
|
| 273 |
+
|
| 274 |
+
In section 5 of the main text, we approximated the difference between the full batch gradient and the mini-batch gradient estimate, $\begin{array} { r } { \alpha = ( \frac { d \hat { C } } { d \omega } - \frac { d C } { d \omega } ) } \end{array}$ , by a Gaussian random variable. This enabled us to derive the scaling rules, which we verified empirically. We motivated this assumption by reference to the central limit theorem, which states that the gradient error will tend towards Gaussian noise as $\{ N \to \infty , B \to \infty , B \ll N \}$ , so long as the distribution of gradients over individual training examples does not have heavy tails. In practice neither $\mathbf { N }$ nor B is infinite, and the gradient distribution may be heavy tailed, especially when gradients are sparse. Nonetheless the central limit theorem tends to be surprisingly robust in practice, and is consequently widely used.
|
| 275 |
+
|
| 276 |
+
It is beyond the scope of this work to perform a thorough study of the gradient noise distribution in deep networks. However as a brief proof of principle, we present the distribution of the gradient immediately after random initialization in figure 9, for the shallow neural network discussed in sections 4 and 5 of the main text. In figure 9a, we present the distribution over the individual training examples, of the gradient of a single matrix element in the softmax output layer, chosen randomly. The distribution is double peaked and clearly not Gaussian. However in figure 7b, we plot the distribution of the gradient of the same matrix element, when averaged over randomly sampled mini-batches of 30 images (without replacement). A single peak emerges, and while the distribution is still slightly skewed, it is clearly already approaching the Gaussian limit. We conclude that the Gaussian approximation is likely to be reasonable for commonly used mini-batch sizes.
|
| 277 |
+
|
| 278 |
+
# D DERIVING THE SCALING RULES FOR SGD WITH MOMENTUM
|
| 279 |
+
|
| 280 |
+
Momentum simulates a generalized Langevin equation (with structured fluctuations),
|
| 281 |
+
|
| 282 |
+
$$
|
| 283 |
+
\frac { d ^ { 2 } \omega } { d t ^ { 2 } } = - \lambda \frac { d \omega } { d t } - \frac { d C } { d \omega } + \eta ( t ) .
|
| 284 |
+
$$
|
| 285 |
+
|
| 286 |
+
$\lambda$ is the “damping coefficient” and $\eta ( t )$ describes Gaussian noise, whose statistics $\langle \eta ( t ) \rangle = 0$ and $\langle \eta ( t ) \eta ( t ^ { \prime } ) \rangle = \bar { g } \lambda \bar { F } ( w ) \delta ( t - t ^ { \prime } )$ . As before, the coefficient $g$ describes the scale of random fluctuations in the dynamics, and $F ( \omega )$ describes the gradient covariances between parameters. We include a factor of $\lambda$ in the noise variance to satisfy the fluctuation-dissipation theorem, which states that we can vary the damping coefficient without changing the probability of sampling any particular configuration of parameters in the limit $t \to \infty$ , if we proportionally increase the noise variance.
|
| 287 |
+
|
| 288 |
+
To relate this Langevin equation to the usual momentum equations, we first re-express it as two coupled first order differential equations,
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
\begin{array} { r c l } { \displaystyle \frac { d p } { d t } } & { = } & { \displaystyle - \lambda p - \frac { d C } { d \omega } + \eta ( t ) , } \\ { \displaystyle \frac { d \omega } { d t } } & { = } & { p . } \end{array}
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
Integrating over a single step $\Delta t / N$ ,
|
| 295 |
+
|
| 296 |
+
$$
|
| 297 |
+
\begin{array} { r c l } { { \Delta p } } & { { = } } & { { \displaystyle - ( \lambda \Delta t / N ) p - \frac { \Delta t } { N } \frac { d C } { d \omega } + \eta , } } \\ { { \Delta \omega } } & { { = } } & { { p \Delta t / N . } } \end{array}
|
| 298 |
+
$$
|
| 299 |
+
|
| 300 |
+
Where now $\langle \eta \rangle = 0$ and $\langle \eta ^ { 2 } \rangle = g \Delta t \lambda F ( w ) / N$ . We define the accumulation $A = p / \Delta t$ ,
|
| 301 |
+
|
| 302 |
+
$$
|
| 303 |
+
\begin{array} { r c l } { \Delta A } & { = } & { - ( \lambda \Delta t / N ) A - \displaystyle \frac { 1 } { N } \frac { d C } { d \omega } + \frac { \eta } { \Delta t } , } \\ { \Delta \omega } & { = } & { ( \Delta t ) ^ { 2 } A / N . } \end{array}
|
| 304 |
+
$$
|
| 305 |
+
|
| 306 |
+
These equations can be compared to the TensorFlow update equations for momentum,
|
| 307 |
+
|
| 308 |
+
$$
|
| 309 |
+
\begin{array} { r c l } { { \Delta A } } & { { = } } & { { ( m - 1 ) A - \displaystyle \frac { 1 } { N } \left( \displaystyle \frac { d C } { d \omega } + \alpha \right) , } } \\ { { \Delta \omega } } & { { = } } & { { \epsilon A . } } \end{array}
|
| 310 |
+
$$
|
| 311 |
+
|
| 312 |
+
Where $\begin{array} { r } { \alpha = \left( \frac { d \hat { C } } { d \omega } - \frac { d C } { d \omega } \right) } \end{array}$ denotes the error in the gradient update. As discussed in the main text, we can approximate this error as Gaussian noise with statistics $\langle \alpha \rangle = 0$ and $\langle \alpha ^ { 2 } \rangle \approx N ^ { 2 } F ( \omega ) / B$ . Equations 27 and 28 match equations 29 and 30 if the step size $\dot { \epsilon } = ( \Delta t ) ^ { 2 } / N$ , and the momentum parameter $m = ( 1 - \lambda \Delta t / N )$ . Finally we equate the noise by setting $\langle \alpha ^ { 2 } \rangle / N ^ { 2 } = \langle \eta ^ { 2 } \rangle / ( \Delta t ) ^ { 2 }$ , and solve for the noise scale $g$ to obtain,
|
| 313 |
+
|
| 314 |
+
$$
|
| 315 |
+
\begin{array} { l l l } { { g } } & { { \approx } } & { { \displaystyle \frac { \Delta t N } { B \lambda } = \frac { ( \Delta t ) ^ { 2 } } { B ( 1 - m ) } } } \\ { { } } & { { = } } & { { \displaystyle \frac { \epsilon N } { B ( 1 - m ) } . } } \end{array}
|
| 316 |
+
$$
|
| 317 |
+
|
| 318 |
+
As observed in the main text, if we wish to keep the scale of random fluctuations constant, then we should scale the batch size $B \propto \epsilon N$ . We also predict an additional scaling relation between the batch size and the momentum parameter, $B \propto \mathsf { \bar { 1 } } / ( 1 - m )$ . Note that one can also interpret $\epsilon _ { e f f } = \epsilon / ( 1 - m )$ as the “effective learning rate”.
|
| 319 |
+
|
| 320 |
+
# E HOW TO ACHIEVE LARGE BATCH TRAINING
|
| 321 |
+
|
| 322 |
+
Here we propose a simple heuristic for tuning the batch size, learning rate and momentum parameter; in order to maximize both test accuracy and batch size (enabling parallel training across many machines). Note that this is only worthwhile if one expects to retrain a model many times.
|
| 323 |
+
|
| 324 |
+
1. Set the learning rate to 0.1 and the momentum coefficient to 0.9. Run experiments at a range of batch sizes on a logarithmic scale, and identify the optimal batch size which maximizes the validation set accuracy. If training is not stable, reduce the learning rate, and repeat. 2. Repeatedly increase the batch size by a factor of 3, while scaling the learning rate $\epsilon \propto B$ , until the validation set accuracy starts to fall. Then repeatedly increase the batch size by a factor of 3, while scaling the momentum coefficient $( 1 - \dot { m } ) \propto 1 / B$ , until either the validation set accuracy falls or the batch size reaches the limits of your hardware. 3. Having identified the final learning rate and momentum parameter, retune the batch size on a linear scale in the local neighborhood of the current batch size.
|
| 325 |
+
|
| 326 |
+
We believe that this simple procedure will increase the test accuracy, reduce the cost of tuning hyperparameters, and significantly reduce the final number of gradient updates required to train a model.
|
parse/train/BJij4yg0Z/BJij4yg0Z_content_list.json
ADDED
|
@@ -0,0 +1,1650 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A BAYESIAN PERSPECTIVE ON GENERALIZATION AND STOCHASTIC GRADIENT DESCENT ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Samuel L. Smith∗ & Quoc V. Le Google Brain {slsmith, qvl}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
428,
|
| 21 |
+
213
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
250,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We consider two questions at the heart of machine learning; how can we predict if a minimum will generalize to the test set, and why does stochastic gradient descent find minima that generalize well? Our work responds to Zhang et al. (2016), who showed deep neural networks can easily memorize randomly labeled training data, despite generalizing well on real labels of the same inputs. We show that the same phenomenon occurs in small linear models. These observations are explained by the Bayesian evidence, which penalizes sharp minima but is invariant to model parameterization. We also demonstrate that, when one holds the learning rate fixed, there is an optimum batch size which maximizes the test set accuracy. We propose that the noise introduced by small mini-batches drives the parameters towards minima whose evidence is large. Interpreting stochastic gradient descent as a stochastic differential equation, we identify the “noise scale” $\\begin{array} { r } { \\overline { { g } } = \\epsilon ( \\frac { N } { B } - 1 ) \\approx } \\end{array}$ $\\epsilon N / B$ , where $\\epsilon$ is the learning rate, $N$ the training set size and $B$ the batch size. Consequently the optimum batch size is proportional to both the learning rate and the size of the training set, $B _ { o p t } \\propto \\epsilon N$ . We verify these predictions empirically. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
282,
|
| 43 |
+
764,
|
| 44 |
+
491
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
521,
|
| 55 |
+
334,
|
| 56 |
+
537
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "This paper shows Bayesian principles can explain many recent observations in the deep learning literature, while also discovering practical new insights. Zhang et al. (2016) trained deep convolutional networks on ImageNet and CIFAR10, achieving excellent accuracy on both training and test sets. They then took the same input images, but randomized the labels, and found that while their networks were now unable to generalize to the test set, they still memorized the training labels. They claimed these results contradict learning theory, although this claim is disputed (Kawaguchi et al., 2017; Dziugaite & Roy, 2017). Nonetheless, their results beg the question; if our models can assign arbitrary labels to the training set, why do they work so well in practice? Meanwhile Keskar et al. (2016) observed that if we hold the learning rate fixed and increase the batch size, the test accuracy usually falls. This striking result shows improving our estimate of the full-batch gradient can harm performance. Goyal et al. (2017) observed a linear scaling rule between batch size and learning rate in a deep ResNet, while Hoffer et al. (2017) proposed a square root rule on theoretical grounds. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
554,
|
| 66 |
+
825,
|
| 67 |
+
720
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Many authors have suggested “broad minima” whose curvature is small may generalize better than “sharp minima” whose curvature is large (Chaudhari et al., 2016; Hochreiter & Schmidhuber, 1997). Indeed, Dziugaite & Roy (2017) argued the results of Zhang et al. (2016) can be understood using “nonvacuous” PAC-Bayes generalization bounds which penalize sharp minima, while Keskar et al. (2016) showed stochastic gradient descent (SGD) finds wider minima as the batch size is reduced. However Dinh et al. (2017) challenged this interpretation, by arguing that the curvature of a minimum can be arbitrarily increased by changing the model parameterization. In this work we show: ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
728,
|
| 77 |
+
825,
|
| 78 |
+
825
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "• The results of Zhang et al. (2016) are not unique to deep learning; we observe the same phenomenon in a small “over-parameterized” linear model. We demonstrate that this phenomenon is straightforwardly understood by evaluating the Bayesian evidence in favor of each model, which penalizes sharp minima but is invariant to the model parameterization. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
217,
|
| 87 |
+
840,
|
| 88 |
+
823,
|
| 89 |
+
896
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "• SGD integrates a stochastic differential equation whose “noise scale” $g \\approx \\epsilon N / B$ , where $\\epsilon$ is the learning rate, $N$ training set size and $B$ batch size. Noise drives SGD away from sharp minima, and therefore there is an optimal batch size which maximizes the test set accuracy. This optimal batch size is proportional to the learning rate and training set size1. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
217,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
160
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "We describe Bayesian model comparison in section 2. In section 3 we replicate the observations of Zhang et al. (2016) in a linear model, and show they are explained by the Bayesian evidence. In section 4 we show there is an optimum batch size which maximizes the test set accuracy, and in section 5 we derive scaling rules between the optimum batch size, learning rate, training set size and momentum coefficient. Throughout this work, “generalization gap” refers to the gap in test accuracy between small and large batch SGD training, not the gap in accuracy between training and test sets. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
169,
|
| 110 |
+
825,
|
| 111 |
+
253
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 BAYESIAN MODEL COMPARISON ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
273,
|
| 122 |
+
473,
|
| 123 |
+
289
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Bayesian model comparison was first applied to neural networks in MacKay (1992). We provide a brief tutorial here, since the theory is central to the remainder of the paper. For simplicity we first consider a classification model $M$ with a single parameter $\\omega$ , training inputs $x$ and training labels $y$ . We can infer a posterior probability distribution over the parameter by applying Bayes theorem, ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
303,
|
| 133 |
+
825,
|
| 134 |
+
359
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "equation",
|
| 140 |
+
"img_path": "images/638dd4ddf5315d75a1652360e2d31405a240f2094aae9efc929ab7fea5338e6a.jpg",
|
| 141 |
+
"text": "$$\n\\begin{array} { r c l } { P ( \\omega | y , x ; M ) } & { = } & { \\frac { P ( y | \\omega , x ; M ) P ( \\omega ; M ) } { P ( y | x ; M ) } } \\end{array}\n$$",
|
| 142 |
+
"text_format": "latex",
|
| 143 |
+
"bbox": [
|
| 144 |
+
351,
|
| 145 |
+
359,
|
| 146 |
+
647,
|
| 147 |
+
393
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "The likelihood, $\\begin{array} { r c l c l } { P ( y | \\omega , x ; M ) } & { = } & { \\prod _ { i } P ( y _ { i } | \\omega , x _ { i } ; M ) } & { = } & { e ^ { - H ( \\omega ; M ) } } \\end{array}$ , where $\\begin{array} { r l } { H ( \\omega ; M ) } & { { } = } \\end{array}$ $\\begin{array} { r } { - \\sum _ { i } \\ln \\left( P ( y _ { i } | \\omega , x _ { i } ; \\dot { M } ) \\right) } \\end{array}$ denotes the cross-entropy of unique categorical labels. We typically use a Gaussian prior, $P ( \\omega ; M ) = \\sqrt { \\lambda / 2 \\pi } e ^ { - \\lambda \\omega ^ { 2 } / 2 }$ , and therefore the posterior probability density of the parameter given the training data, $P ( \\omega | y , x ; M ) \\propto \\sqrt { \\lambda / 2 \\pi } e ^ { - C ( \\omega ; M ) }$ , where $C ( \\omega ; M ) =$ $H ( \\omega ; M ) + \\lambda \\omega ^ { 2 } / 2$ denotes the L2 regularized cross entropy, or “cost function”, and $\\lambda$ is the regularization coefficient. The value $\\omega _ { 0 }$ which minimizes the cost function lies at the maximum of this posterior. To predict an unknown label $y _ { t }$ of a new input $x _ { t }$ , we should compute the integral, ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
173,
|
| 156 |
+
395,
|
| 157 |
+
825,
|
| 158 |
+
502
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "equation",
|
| 164 |
+
"img_path": "images/5a66ef55f712d0bbc7f7a762975b13c55f437b17b7e6894f815d285a9f163ce5.jpg",
|
| 165 |
+
"text": "$$\n\\begin{array} { r c l } { P ( y _ { t } | x _ { t } , y , x ; M ) } & { = } & { \\displaystyle \\int d \\omega P ( y _ { t } | \\omega , x _ { t } ; M ) P ( \\omega | y , x ; M ) } \\\\ & { = } & { \\displaystyle \\frac { \\int d \\omega P ( y _ { t } | \\omega , x _ { t } ; M ) e ^ { - C ( \\omega ; M ) } } { \\int d \\omega e ^ { - C ( \\omega ; M ) } } . } \\end{array}\n$$",
|
| 166 |
+
"text_format": "latex",
|
| 167 |
+
"bbox": [
|
| 168 |
+
299,
|
| 169 |
+
502,
|
| 170 |
+
699,
|
| 171 |
+
571
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "However these integrals are dominated by the region near $\\omega _ { 0 }$ , and since $P ( y _ { t } | \\omega , x _ { t } ; M )$ is smooth we usually approximate $P ( y _ { t } | x _ { t } , x , y ; M ) \\approx P ( y _ { t } | \\omega _ { 0 } , x _ { t } ; M )$ . Having minimized $C ( \\omega ; M )$ to find $\\omega _ { 0 }$ , we now wish to compare two different models and select the best one. The probability ratio, ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
179,
|
| 180 |
+
573,
|
| 181 |
+
821,
|
| 182 |
+
614
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "equation",
|
| 188 |
+
"img_path": "images/dcefd7747160699b3d2c79f64482749cf659571784bd1b9a54cfb67fdc34e033.jpg",
|
| 189 |
+
"text": "$$\n\\frac { P ( M _ { 1 } | y , x ) } { P ( M _ { 2 } | y , x ) } = \\frac { P ( y | x ; M _ { 1 } ) } { P ( y | x ; M _ { 2 } ) } \\frac { P ( M _ { 1 } ) } { P ( M _ { 2 } ) } .\n$$",
|
| 190 |
+
"text_format": "latex",
|
| 191 |
+
"bbox": [
|
| 192 |
+
375,
|
| 193 |
+
614,
|
| 194 |
+
622,
|
| 195 |
+
650
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "The second factor on the right is the prior ratio, which describes which model is most plausible. To avoid unnecessary subjectivity, we usually set this to 1. Meanwhile the first factor on the right is the evidence ratio, which controls how much the training data changes our prior beliefs. Germain et al. (2016) showed that maximizing the evidence (or “marginal likelihood”) minimizes a PAC-Bayes generalization bound. To compute it, we evaluate the normalizing constant of equation 1, ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
650,
|
| 205 |
+
823,
|
| 206 |
+
718
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "equation",
|
| 212 |
+
"img_path": "images/7273c681ce2981db1167b6c0ac81b39d37907cba1378976e53e9f1d2f50ba37e.jpg",
|
| 213 |
+
"text": "$$\n\\begin{array} { r c l } { { P ( y | x ; M ) } } & { { = } } & { { \\displaystyle \\int d \\omega P ( y | \\omega , x ; M ) P ( \\omega ; M ) } } \\\\ { { } } & { { = } } & { { \\displaystyle \\sqrt { \\frac { \\lambda } { 2 \\pi } } \\int d \\omega e ^ { - C ( \\omega ; M ) } . } } \\end{array}\n$$",
|
| 214 |
+
"text_format": "latex",
|
| 215 |
+
"bbox": [
|
| 216 |
+
341,
|
| 217 |
+
720,
|
| 218 |
+
656,
|
| 219 |
+
790
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 1
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "Notice that the evidence is computed by integrating out the parameters; and consequently it is invariant to the model parameterization. Since this integral is dominated by the region near the minimum $\\omega _ { 0 }$ , we can estimate the evidence by Taylor expanding $C ( \\omega ; M ) \\approx \\dot { C } ( \\omega _ { 0 } ) + \\dot { C } ^ { \\prime \\prime } ( \\omega _ { 0 } ) ( \\omega - \\omega _ { 0 } ) ^ { 2 } / 2 .$ , ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
789,
|
| 229 |
+
823,
|
| 230 |
+
832
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 1
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "equation",
|
| 236 |
+
"img_path": "images/4d35e3757beb121e0bd4a872e8801447132e1c4aea77012af4697d8b49190471.jpg",
|
| 237 |
+
"text": "$$\n\\begin{array} { r c l } { P ( y | x ; M ) } & { \\approx } & { { { e } ^ { - C ( \\omega _ { 0 } ) } } \\displaystyle \\sqrt { \\frac { \\lambda } { 2 \\pi } } \\int d \\omega { e } ^ { - C ^ { \\prime \\prime } ( \\omega _ { 0 } ) ( \\omega - \\omega _ { 0 } ) ^ { 2 } / 2 } } \\\\ & { = } & { \\exp \\bigg \\{ - \\bigg ( C ( \\omega _ { 0 } ) + \\frac { 1 } { 2 } \\ln \\left( C ^ { \\prime \\prime } ( \\omega _ { 0 } ) / \\lambda \\right) \\bigg ) \\bigg \\} . } \\end{array}\n$$",
|
| 238 |
+
"text_format": "latex",
|
| 239 |
+
"bbox": [
|
| 240 |
+
302,
|
| 241 |
+
832,
|
| 242 |
+
696,
|
| 243 |
+
905
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 1
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "1Equivalently, there is an optimal learning rate proportional to the batch size and the training set size. ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
192,
|
| 252 |
+
910,
|
| 253 |
+
789,
|
| 254 |
+
924
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 1
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Within this “Laplace” approximation, the evidence is controlled by the value of the cost function at the minimum, and by the logarithm of the ratio of the curvature about this minimum compared to the regularization constant. Thus far we have considered models of a single parameter; in realistic models with many parameters $P ( y | x ; M ) \\approx \\lambda ^ { \\frac { p } { 2 } } e ^ { - C ( \\omega _ { 0 } ) } / | \\nabla \\nabla C ( \\omega ) | _ { \\omega _ { 0 } } ^ { 1 / 2 }$ , where $| \\nabla \\nabla C ( \\omega ) | _ { \\omega _ { 0 } }$ is the determinant of the Hessian, and $p$ denotes the number of model parameters (Kass & Raftery, 1995). The determinant of the Hessian is simply the product of its eigenvalues, $( \\prod _ { i = 1 } ^ { p } \\lambda _ { i } )$ , and thus, ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
174,
|
| 263 |
+
102,
|
| 264 |
+
825,
|
| 265 |
+
191
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "equation",
|
| 271 |
+
"img_path": "images/4078e8618d773291ae1f3438d48fd4149d358d3f863d89216c7f967746d94848.jpg",
|
| 272 |
+
"text": "$$\nP ( y | x ; M ) \\approx \\exp \\Bigg \\{ - \\left( C ( \\omega _ { 0 } ) + \\frac { 1 } { 2 } \\sum _ { i = 1 } ^ { p } \\ln ( \\lambda _ { i } / \\lambda ) \\right) \\Bigg \\} .\n$$",
|
| 273 |
+
"text_format": "latex",
|
| 274 |
+
"bbox": [
|
| 275 |
+
318,
|
| 276 |
+
194,
|
| 277 |
+
678,
|
| 278 |
+
238
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "The contribution $( \\lambda ^ { \\frac { p } { 2 } } / | \\nabla \\nabla C ( \\omega ) | _ { \\omega _ { 0 } } ^ { 1 / 2 } )$ is often called the “Occam factor”, because it enforces Occam’s razor; when two models describe the data equally well, the simpler model is usually better (Gull, 1988). Minima with low curvature are simple, because the parameters do not have to be finetuned to fit the data. Intuitively, the Occam factor describes the fraction of the prior parameter space consistent with the data. Since this fraction is always less than one, we propose to approximate equation 9 away from local minima by only performing the summation over eigenvalues $\\lambda _ { i } \\geq \\lambda$ . The evidence can be reframed in the language of information theory, whereby Occam’s factor penalizes the amount of information the model must learn about the parameters to accurately model the training data (Hinton & Van Camp, 1993; Achille & Soatto, 2017; Shwartz-Ziv & Tishby, 2017). ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
173,
|
| 287 |
+
242,
|
| 288 |
+
825,
|
| 289 |
+
371
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "In this work, we will compare the evidence against a null model which assumes the labels are entirely random, assigning equal probability to each class. This unusual model has no parameters, and so the evidence is controlled by the likelihood alone, $P ( y | x ; N U L L ) = ( 1 / n ) ^ { N } \\stackrel { - } { = } e ^ { - N \\ln { ( n ) } }$ , where $n$ denotes the number of model classes and $N$ the number of training labels. Thus the evidence ratio, ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
376,
|
| 299 |
+
825,
|
| 300 |
+
434
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/308e11f4919465f708f251adcb3731dc2ceb7ea6fcb80afc3aa7e9027ac7d11e.jpg",
|
| 307 |
+
"text": "$$\n\\frac { P ( y | x ; M ) } { P ( y | x ; N U L L ) } = e ^ { - E ( \\omega _ { 0 } ) } ,\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
401,
|
| 311 |
+
438,
|
| 312 |
+
593,
|
| 313 |
+
472
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Where $\\begin{array} { r } { E ( \\omega _ { 0 } ) = C ( \\omega _ { 0 } ) + ( 1 / 2 ) \\sum _ { i } \\ln ( \\lambda _ { i } / \\lambda ) - N \\ln ( n ) } \\end{array}$ is the log evidence ratio in favor of the null model. Clearly, we should only assign any confidence to the predictions of our model if $E ( \\omega _ { 0 } ) < 0$ . ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
474,
|
| 323 |
+
826,
|
| 324 |
+
503
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "The evidence supports the intuition that broad minima generalize better than sharp minima, but unlike the curvature it does not depend on the model parameterization. Dinh et al. (2017) showed one can increase the Hessian eigenvalues by rescaling the parameters, but they must simultaneously rescale the regularization coefficients, otherwise the model changes. Since Occam’s factor arises from the log ratio, $\\ln \\left( \\lambda _ { i } / \\lambda \\right)$ , these two effects cancel out2. It is difficult to evaluate the evidence for deep networks, as we cannot compute the Hessian of millions of parameters. Additionally, neural networks exhibit many equivalent minima, since we can permute the hidden units without changing the model. To compute the evidence we must carefully account for this “degeneracy”. We argue these issues are not a major limitation, since the intuition we build studying the evidence in simple cases will be sufficient to explain the results of both Zhang et al. (2016) and Keskar et al. (2016). ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
510,
|
| 334 |
+
825,
|
| 335 |
+
650
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "3 BAYES THEOREM AND GENERALIZATION ",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
176,
|
| 345 |
+
670,
|
| 346 |
+
544,
|
| 347 |
+
685
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "Zhang et al. (2016) showed that deep neural networks generalize well on training inputs with informative labels, and yet the same model can drastically overfit on the same input images when the labels are randomized; perfectly memorizing the training set. To demonstrate that these observations are not unique to deep networks, let’s consider a far simpler model; logistic regression. We form a small balanced training set comprising 800 images from MNIST, of which half have true label $\\mathbf { \\vec { \\Delta } } ^ { 6 } 0 ^ { 9 }$ and half true label “1”. Our test set is also balanced, comprising 5000 MNIST images of zeros and 5000 MNIST images of ones. There are two tasks. In the first task, the labels of both the training and test sets are randomized. In the second task, the labels are informative, matching the true MNIST labels. Since the images contain 784 pixels, our model has just 784 weights and 1 bias. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
173,
|
| 356 |
+
700,
|
| 357 |
+
825,
|
| 358 |
+
825
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "We show the accuracy of the model predictions on both the training and test sets in figure 1. When trained on the informative labels, the model generalizes well to the test set, so long as it is weakly regularized. However the model also perfectly memorizes the random labels, replicating the observations of Zhang et al. (2016) in deep networks. No significant improvement in model performance is observed as the regularization coefficient increases. For completeness, we also evaluate the mean margin between training examples and the decision boundary. For both random and informative labels, the margin drops significantly as we reduce the regularization coefficient. When weakly regularized, the mean margin is roughly $5 0 \\%$ larger for informative labels than for random labels. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
832,
|
| 368 |
+
823,
|
| 369 |
+
888
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "image",
|
| 375 |
+
"img_path": "images/b54a96e24409024f1dba39245529ce32aa588511ceab8602abf0ec1f279994eb.jpg",
|
| 376 |
+
"image_caption": [
|
| 377 |
+
"Figure 1: Prediction accuracy and mean training set margin as a function of regularization coefficient, for a logistic regression trained on random (a) and informative (b) labels of the same inputs. The weakly regularized model generalizes well on informative labels but memorizes random labels. "
|
| 378 |
+
],
|
| 379 |
+
"image_footnote": [],
|
| 380 |
+
"bbox": [
|
| 381 |
+
191,
|
| 382 |
+
108,
|
| 383 |
+
807,
|
| 384 |
+
281
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "",
|
| 391 |
+
"bbox": [
|
| 392 |
+
174,
|
| 393 |
+
366,
|
| 394 |
+
825,
|
| 395 |
+
421
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "Now consider figure 2, where we plot the mean cross-entropy of the model predictions, evaluated on both training and test sets, as well as the Bayesian log evidence ratio defined in the previous section. Looking first at the random label experiment in figure 2a, while the cross-entropy on the training set vanishes when the model is weakly regularized, the cross-entropy on the test set explodes. Not only does the model make random predictions, but it is extremely confident in those predictions. As the regularization coefficient is increased the test set cross-entropy falls, settling at $\\ln 2$ , the crossentropy of assigning equal probability to both classes. Now consider the Bayesian evidence, which we evaluate on the training set. The log evidence ratio is large and positive when the model is weakly regularized, indicating that the model is exponentially less plausible than assigning equal probabilities to each class. As the regularization parameter is increased, the log evidence ratio falls, but it is always positive, indicating that the model can never be expected to generalize well. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
173,
|
| 404 |
+
429,
|
| 405 |
+
825,
|
| 406 |
+
582
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "Now consider figure 2b (informative labels). Once again, the training cross-entropy falls to zero when the model is weakly regularized, while the test cross-entropy is high. Even though the model makes accurate predictions, those predictions are overconfident. As the regularization coefficient increases, the test cross-entropy falls below $\\ln 2$ , indicating that the model is successfully generalizing to the test set. Now consider the Bayesian evidence. The log evidence ratio is large and positive when the model is weakly regularized, but as the regularization coefficient increases, the log evidence ratio drops below zero, indicating that the model is exponentially more plausible than assigning equal probabilities to each class. As we further increase the regularization, the log evidence ratio rises to zero while the test cross-entropy rises to $\\ln 2$ . Test cross-entropy and Bayesian evidence are strongly correlated, with minima at the same regularization strength. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
174,
|
| 415 |
+
588,
|
| 416 |
+
825,
|
| 417 |
+
672
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "image",
|
| 423 |
+
"img_path": "images/0f494f2c4f939d075fe13acb31a80bfe22b0322c78ac900bdee3b4d30d954879.jpg",
|
| 424 |
+
"image_caption": [
|
| 425 |
+
"Figure 2: The cross-entropy and log evidence ratio, evaluated on random (a) or informative (b) labels. The evidence, evaluated on the training set, is strongly correlated with the test cross-entropy. "
|
| 426 |
+
],
|
| 427 |
+
"image_footnote": [],
|
| 428 |
+
"bbox": [
|
| 429 |
+
189,
|
| 430 |
+
710,
|
| 431 |
+
807,
|
| 432 |
+
881
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "",
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
103,
|
| 442 |
+
823,
|
| 443 |
+
159
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "Bayesian model comparison has explained our results in a logistic regression. Meanwhile, Krueger et al. (2017) showed the largest Hessian eigenvalue also increased when training on random labels in deep networks, implying the evidence is falling. We conclude that Bayesian model comparison is quantitatively consistent with the results of Zhang et al. (2016) in linear models where we can compute the evidence, and qualitatively consistent with their results in deep networks where we cannot. Dziugaite & Roy (2017) recently demonstrated the results of Zhang et al. (2016) can also be understood by minimising a PAC-Bayes generalization bound which penalizes sharp minima. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
166,
|
| 453 |
+
825,
|
| 454 |
+
265
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "4 BAYES THEOREM AND STOCHASTIC GRADIENT DESCENT ",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
176,
|
| 464 |
+
287,
|
| 465 |
+
676,
|
| 466 |
+
301
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "We showed above that generalization is strongly correlated with the Bayesian evidence, a weighted combination of the depth of a minimum (the cost function) and its breadth (the Occam factor). Consequently Bayesians often add isotropic Gaussian noise to the gradient (Welling & Teh, 2011). In appendix A, we show this drives the parameters towards broad minima whose evidence is large. The noise introduced by small batch training is not isotropic, and its covariance matrix is a function of the parameter values, but empirically Keskar et al. (2016) found it has similar effects, driving the SGD away from sharp minima. This paper therefore proposes Bayesian principles also account for the “generalization gap”, whereby the test set accuracy often falls as the SGD batch size is increased (holding all other hyper-parameters constant). Since the gradient drives the SGD towards deep minima, while noise drives the SGD towards broad minima, we expect the test set performance to show a peak at an optimal batch size, which balances these competing contributions to the evidence. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
318,
|
| 476 |
+
825,
|
| 477 |
+
472
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "We were unable to observe a generalization gap in linear models (since linear models are convex there are no sharp minima to avoid). Instead we consider a shallow neural network with 800 hidden units and RELU hidden activations, trained on MNIST without regularization. We use SGD with a momentum parameter of 0.9. Unless otherwise stated, we use a constant learning rate of 1.0 which does not depend on the batch size or decay during training. Furthermore, we train on just 1000 images, selected at random from the MNIST training set. This enables us to compare small batch to full batch training. We emphasize that we are not trying to achieve optimal performance, but to study a simple model which shows a generalization gap between small and large batch training. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
478,
|
| 487 |
+
825,
|
| 488 |
+
589
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "In figure 3, we exhibit the evolution of the test accuracy and test cross-entropy during training. Our small batches are composed of 30 images, randomly sampled from the training set. Looking first at figure 3a, small batch training takes longer to converge, but after a thousand gradient updates a clear generalization gap in model accuracy emerges between small and large training batches. Now consider figure 3b. While the test cross-entropy for small batch training is lower at the end of training; the cross-entropy of both small and large training batches is increasing, indicative of over-fitting. Both models exhibit a minimum test cross-entropy, although after different numbers of gradient updates. Intriguingly, we show in appendix B that the generalization gap between small and large batch training shrinks significantly when we introduce L2 regularization. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
597,
|
| 498 |
+
825,
|
| 499 |
+
666
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "image",
|
| 505 |
+
"img_path": "images/574a250cd29b8f09e8b5e4a578f9b9c70694cd5769423b16b172e086607be672.jpg",
|
| 506 |
+
"image_caption": [
|
| 507 |
+
"Figure 3: The evolution during training of the test accuracy (a), and the test set cross-entropy (b). Full batches are composed of 1000 images, while small batches comprise 30 images. "
|
| 508 |
+
],
|
| 509 |
+
"image_footnote": [],
|
| 510 |
+
"bbox": [
|
| 511 |
+
191,
|
| 512 |
+
700,
|
| 513 |
+
805,
|
| 514 |
+
881
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "image",
|
| 520 |
+
"img_path": "images/cb26d4d2e14c04d96237c32396fee654dc10720f0b6d94dc657d790de21c8f2c.jpg",
|
| 521 |
+
"image_caption": [
|
| 522 |
+
"Figure 4: The test accuracy for a range of batch sizes, during training (a) and after 10000 steps (b). "
|
| 523 |
+
],
|
| 524 |
+
"image_footnote": [],
|
| 525 |
+
"bbox": [
|
| 526 |
+
191,
|
| 527 |
+
111,
|
| 528 |
+
810,
|
| 529 |
+
291
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "image",
|
| 535 |
+
"img_path": "images/f3aa0fc16a2e26860bdf9e12234b09eee37b95e9b1f81d398ddde5651cd5ec96.jpg",
|
| 536 |
+
"image_caption": [
|
| 537 |
+
"Figure 5: a) The test set accuracy as a function of batch size, for a range of learning rates $\\epsilon$ . The performance peak shifts to the right as we increase $\\epsilon$ , but the overall performance falls once $\\epsilon \\gtrsim 3$ . b) The best observed batch size is proportional to the learning rate across two orders of magnitude. "
|
| 538 |
+
],
|
| 539 |
+
"image_footnote": [],
|
| 540 |
+
"bbox": [
|
| 541 |
+
189,
|
| 542 |
+
343,
|
| 543 |
+
807,
|
| 544 |
+
522
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 5
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "",
|
| 551 |
+
"bbox": [
|
| 552 |
+
173,
|
| 553 |
+
599,
|
| 554 |
+
825,
|
| 555 |
+
656
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 5
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "From now on we focus on the test set accuracy (since this converges as the number of gradient updates increases). In figure 4a, we exhibit training curves for a range of batch sizes between 1 and 1000. We find that the model cannot train when the batch size $B \\lessapprox \\bar { 1 0 }$ . In figure 4b we plot the mean test set accuracy after 10000 training steps. A clear peak emerges, indicating that there is indeed an optimum batch size which maximizes the test accuracy, consistent with Bayesian intuition. The results of Keskar et al. (2016) focused on the decay in test accuracy above this optimum batch size. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
173,
|
| 564 |
+
662,
|
| 565 |
+
825,
|
| 566 |
+
747
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 5
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "5 STOCHASTIC DIFFERENTIAL EQUATIONS AND THE SCALING RULES ",
|
| 573 |
+
"text_level": 1,
|
| 574 |
+
"bbox": [
|
| 575 |
+
173,
|
| 576 |
+
767,
|
| 577 |
+
758,
|
| 578 |
+
782
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 5
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "We showed above that the test accuracy peaks at an optimal batch size, if one holds the other SGD hyper-parameters constant. We argued that this peak arises from the tradeoff between depth and breadth in the Bayesian evidence. However it is not the batch size itself which controls this tradeoff, but the underlying scale of random fluctuations in the SGD dynamics. We now identify this SGD “noise scale”, and use it to derive three scaling rules which predict how the optimal batch size depends on the learning rate, training set size and momentum coefficient. A gradient update, ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
173,
|
| 587 |
+
797,
|
| 588 |
+
825,
|
| 589 |
+
882
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 5
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "equation",
|
| 595 |
+
"img_path": "images/ca2c1619d6fe760545e15462bc4d39b3b0f599e15e0f990417a56ab1927ff7e2.jpg",
|
| 596 |
+
"text": "$$\n\\begin{array} { r c l } { \\Delta \\omega } & { = } & { - \\displaystyle \\frac { \\epsilon } { N } \\left( \\frac { d C } { d \\omega } + \\left( \\frac { d \\hat { C } } { d \\omega } - \\frac { d C } { d \\omega } \\right) \\right) , } \\end{array}\n$$",
|
| 597 |
+
"text_format": "latex",
|
| 598 |
+
"bbox": [
|
| 599 |
+
357,
|
| 600 |
+
886,
|
| 601 |
+
638,
|
| 602 |
+
929
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "image",
|
| 608 |
+
"img_path": "images/98b0bc094f9ff0d411a45850540a3de33d0a1a5554b328c700b05f4ca887c2a0.jpg",
|
| 609 |
+
"image_caption": [
|
| 610 |
+
"Figure 6: a) The test accuracy as a function of batch size, for a range of training set sizes. To reduce noise, we average each curve over five experiments. The performance peak shift to the right as we increase the size of the training set. Unsurprisingly, the overall model performance also improves. b) The best observed batch size is proportional to the size of the training set once $N \\gtrsim 2 0 0 0 \\bar { 0 }$ . "
|
| 611 |
+
],
|
| 612 |
+
"image_footnote": [],
|
| 613 |
+
"bbox": [
|
| 614 |
+
189,
|
| 615 |
+
112,
|
| 616 |
+
807,
|
| 617 |
+
291
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 6
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "where \u000f is the learning rate, N the training set size, dCdω $\\begin{array} { r } { \\frac { d C } { d \\omega } = \\sum _ { i = 1 } ^ { N } \\frac { d C _ { i } } { d \\omega } } \\end{array}$ the true gradient, and $\\begin{array} { r } { \\frac { d \\hat { C } } { d \\omega } = } \\end{array}$ NB PBi=1 dCidω the estimated gradient evaluated on a mini-batch. The expected gradient of a single example, $\\begin{array} { r } { \\left. \\frac { d C _ { i } } { d \\omega } \\right. = \\frac { 1 } { N } \\frac { d C } { d \\omega } } \\end{array}$ , while $\\begin{array} { r } { \\left. \\frac { d C _ { i } } { d \\omega } \\frac { d C _ { j } } { d \\omega } \\right. = \\left( \\frac { 1 } { N } \\frac { d C } { d \\omega } \\right) ^ { 2 } + F ( \\omega ) \\delta _ { i j } . \\mathrm { ~ } F ( \\omega } \\end{array}$ is a matrix describing the gradient covariances, which are a functheorem and model the gradient error $\\begin{array} { r } { \\alpha = ( \\frac { d \\hat { C } } { d \\omega } - \\frac { d C } { d \\omega } ) } \\end{array}$ nt par with alues. n rando approximation briefly in appendix C). It is easy to show that $\\langle \\alpha \\rangle = 0$ $\\begin{array} { r } { \\langle \\alpha ^ { 2 } \\rangle = N ( \\frac { N } { B } - 1 ) F ( \\omega ) } \\end{array}$ . Typically $N \\gg B$ , such that $\\langle \\alpha ^ { 2 } \\rangle \\approx N ^ { 2 } F ( \\omega ) / B$ . To continue, we interpret equation 11 as the discrete update of a stochastic differential equation (Li et al., 2017; Gardiner, 1985), ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
381,
|
| 627 |
+
825,
|
| 628 |
+
518
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 6
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "equation",
|
| 634 |
+
"img_path": "images/8158d684a1a27720bd6009bc60d70996048f1cedc99bee78a4e04e9ca506dc5c.jpg",
|
| 635 |
+
"text": "$$\n\\frac { d \\omega } { d t } = - \\frac { d C } { d \\omega } + \\eta ( t ) ,\n$$",
|
| 636 |
+
"text_format": "latex",
|
| 637 |
+
"bbox": [
|
| 638 |
+
429,
|
| 639 |
+
522,
|
| 640 |
+
566,
|
| 641 |
+
553
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 6
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Where $t$ is a continuous variable, $\\eta ( t )$ represents noise, $\\langle \\eta ( t ) \\rangle = 0$ and $\\langle \\eta ( t ) \\eta ( t ^ { \\prime } ) \\rangle = g F ( \\omega ) \\delta ( t { - } t ^ { \\prime } )$ . The constant $g$ controls the scale of random fluctuations in the dynamics. To relate this differential equation to the SGD, we compute a gradient update $\\begin{array} { r } { \\Delta \\omega = \\int _ { 0 . } ^ { \\epsilon / N } \\frac { d \\omega } { d t } d t = - \\frac { \\epsilon } { N } \\frac { d C } { d \\omega } + \\int _ { 0 } ^ { \\epsilon / N } \\eta ( t ) d t } \\end{array}$ Finally, to measure $\\mathbf { g }$ , we equate the variance in this gradient update to the variance in equation 11, ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
556,
|
| 651 |
+
823,
|
| 652 |
+
617
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "equation",
|
| 658 |
+
"img_path": "images/fb3ddc24790224f84790dc706c3ab25786d957d852bd27c1a3eb6ed8c54924b1.jpg",
|
| 659 |
+
"text": "$$\n\\begin{array} { r c l } { \\displaystyle \\left( \\frac { \\epsilon } { N } \\right) ^ { 2 } \\langle \\alpha ^ { 2 } \\rangle } & { = } & { \\displaystyle \\epsilon ^ { 2 } ( \\frac { N } { B } - 1 ) F ( \\omega ) / N } \\\\ { \\displaystyle } & { = } & { \\displaystyle \\langle ( \\int _ { 0 } ^ { \\epsilon / N } d t \\eta ( t ) ) ^ { 2 } \\rangle = \\int _ { 0 } ^ { \\epsilon / N } d t \\int _ { 0 } ^ { \\epsilon / N } d t ^ { \\prime } \\langle \\eta ( t ) \\eta ( t ^ { \\prime } ) \\rangle = \\epsilon g F ( \\omega ) / N . } \\end{array}\n$$",
|
| 660 |
+
"text_format": "latex",
|
| 661 |
+
"bbox": [
|
| 662 |
+
215,
|
| 663 |
+
621,
|
| 664 |
+
782,
|
| 665 |
+
689
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 6
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "Rearranging, the SGD noise scale $\\begin{array} { r } { g = \\epsilon ( \\frac { N } { B } - 1 ) \\approx \\epsilon N / B } \\end{array}$ . The noise scale falls when the batch size increases, consistent with our earlier observation of an optimal batch size $B _ { o p t }$ while holding the other hyper-parameters fixed. Notice that one would equivalently observe an optimal learning rate if one held the batch size constant. A similar analysis of the SGD was recently performed by Mandt et al. (2017), although their treatment only holds near local minima where the covariances $F ( \\omega )$ are stationary. Our analysis holds throughout training, which is necessary since Keskar et al. (2016) found that the beneficial influence of noise was most pronounced at the start of training. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
693,
|
| 675 |
+
825,
|
| 676 |
+
792
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "When we vary the learning rate or the training set size, we should keep the noise scale fixed, which implies that $B _ { o p t } \\propto \\epsilon N$ . In figure 5a, we plot the test accuracy as a function of batch size after $( 1 0 0 0 0 / \\epsilon )$ training steps, for a range of learning rates. Exactly as predicted, the peak moves to the right as $\\epsilon$ increases. Additionally, the peak test accuracy achieved at a given learning rate does not begin to fall until $\\epsilon \\sim 3$ , indicating that there is no significant discretization error in integrating the stochastic differential equation below this point. Above this point, the discretization error begins to dominate and the peak test accuracy falls rapidly. In figure 5b, we plot the best observed batch size as a function of learning rate, observing a clear linear trend, $B _ { o p t } \\propto \\epsilon$ . The error bars indicate the distance from the best observed batch size to the next batch size sampled in our experiments. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
797,
|
| 686 |
+
825,
|
| 687 |
+
924
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "image",
|
| 693 |
+
"img_path": "images/f65c1d948657f9b8bf2cf5faeff5b3749c8f5c3f8c2d509c3f217f125dee5dd5.jpg",
|
| 694 |
+
"image_caption": [
|
| 695 |
+
"Figure 7: a) The test set accuracy as a function of batch size for a range of momentum coefficients. As expected, the peak moves to the right as the momentum coefficient increases. b) The best observed batch size for a range of momentum coefficients. The green curve exhibits the scaling rule. "
|
| 696 |
+
],
|
| 697 |
+
"image_footnote": [],
|
| 698 |
+
"bbox": [
|
| 699 |
+
189,
|
| 700 |
+
112,
|
| 701 |
+
807,
|
| 702 |
+
292
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 7
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "This scaling rule allows us to increase the learning rate with no loss in test accuracy and no increase in computational cost, simply by simultaneously increasing the batch size. We can then exploit increased parallelism across multiple GPUs, reducing model training times (Goyal et al., 2017). A similar scaling rule was independently proposed by Jastrzebski et al. (2017) and Chaudhari & Soatto (2017), although neither work identifies the existence of an optimal noise scale. A number of authors have proposed adjusting the batch size adaptively during training (Friedlander & Schmidt, 2012; Byrd et al., 2012; De et al., 2017), while Balles et al. (2016) proposed linearly coupling the learning rate and batch size within this framework. In Smith et al. (2017), we show empirically that decaying the learning rate during training and increasing the batch size during training are equivalent. ",
|
| 709 |
+
"bbox": [
|
| 710 |
+
174,
|
| 711 |
+
376,
|
| 712 |
+
825,
|
| 713 |
+
501
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 7
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "In figure 6a we exhibit the test set accuracy as a function of batch size, for a range of training set sizes after 10000 steps $\\mathbf { \\epsilon } \\cdot \\mathbf { \\epsilon } = 1$ everywhere). Once again, the peak shifts right as the training set size rises, although the generalization gap becomes less pronounced as the training set size increases. In figure 6b, we plot the best observed batch size as a function of training set size; observing another linear trend, $B _ { o p t } \\propto N$ . This scaling rule could be applied to production models, progressively growing the batch size as new training data is collected. We expect production datasets to grow considerably over time, and consequently large batch training is likely to become increasingly common. ",
|
| 720 |
+
"bbox": [
|
| 721 |
+
174,
|
| 722 |
+
508,
|
| 723 |
+
825,
|
| 724 |
+
606
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 7
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Finally, in appendix $\\mathrm { D }$ we extend our analysis to SGD with momentum, identifying the noise scale, $\\begin{array} { r } { g \\approx \\frac { \\epsilon N ^ { \\mathrm { ~ \\scriptsize ~ \\cdots ~ } } } { B ( 1 - m ) } } \\end{array}$ , where $m$ denotes the momentum coefficient. Notice that this reduces to the noise scale of conventional SGD as $m 0$ . When $m > 0$ , we obtain an additional scaling rule $B _ { o p t } \\propto$ $1 / ( 1 - m )$ . This scaling rule predicts that the optimal batch size will increase when the momentum coefficient is increased. In figure 7a we plot the test set performance as a function of batch size after 10000 gradient updates ( $\\mathbf { \\epsilon } _ { \\epsilon } = 1$ everywhere), for a range of momentum coefficients. In figure 7b, we plot the best observed batch size as a function of the momentum coefficient, and fit our results to the scaling rule above; obtaining remarkably good agreement. We propose a simple heuristic for tuning the batch size, learning rate and momentum coefficient in appendix E. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
173,
|
| 733 |
+
612,
|
| 734 |
+
825,
|
| 735 |
+
741
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "6 CONCLUSIONS ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
176,
|
| 745 |
+
765,
|
| 746 |
+
328,
|
| 747 |
+
780
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 7
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "Just like deep neural networks, linear models which generalize well on informative labels can memorize random labels of the same inputs. These observations are explained by the Bayesian evidence, which is composed of the cost function and an “Occam factor”. The Occam factor penalizes sharp minima but it is invariant to changes in model parameterization. Mini-batch noise drives SGD away from sharp minima, and therefore there is an optimum batch size which maximizes the test accuracy. Interpreting SGD as the discretization of a stochastic differential equation, we predict this optimum batch size should scale linearly with both the learning rate and the training set size, $B _ { o p t } \\propto \\epsilon N$ . We derive an additional scaling rule, $B _ { o p t } \\propto 1 / ( 1 - \\stackrel { \\textstyle - } { m } )$ , between the optimal batch size and the momentum coefficient. We verify these scaling rules empirically and discuss their implications. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
173,
|
| 756 |
+
797,
|
| 757 |
+
825,
|
| 758 |
+
924
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 7
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 765 |
+
"text_level": 1,
|
| 766 |
+
"bbox": [
|
| 767 |
+
176,
|
| 768 |
+
104,
|
| 769 |
+
328,
|
| 770 |
+
117
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 8
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "We thank Pieter-Jan Kindermans, Prajit Ramachandran, Jascha Sohl-Dickstein, Jon Shlens, Kevin Murphy, Samy Bengio, Yasaman Bahri and Saeed Saremi for helpful comments on the manuscript. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
127,
|
| 780 |
+
823,
|
| 781 |
+
156
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 8
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "REFERENCES ",
|
| 788 |
+
"text_level": 1,
|
| 789 |
+
"bbox": [
|
| 790 |
+
176,
|
| 791 |
+
178,
|
| 792 |
+
287,
|
| 793 |
+
193
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 8
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Alessandro Achille and Stefano Soatto. On the emergence of invariance and disentangling in deep representations. arXiv preprint arXiv:1706.01350, 2017. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
171,
|
| 802 |
+
202,
|
| 803 |
+
823,
|
| 804 |
+
229
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 8
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Lukas Balles, Javier Romero, and Philipp Hennig. Coupling adaptive batch sizes with learning rates. arXiv preprint arXiv:1612.05086, 2016. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
171,
|
| 813 |
+
238,
|
| 814 |
+
821,
|
| 815 |
+
268
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 8
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Richard H Byrd, Gillian M Chin, Jorge Nocedal, and Yuchen Wu. Sample size selection in optimization methods for machine learning. Mathematical programming, 134(1):127–155, 2012. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
169,
|
| 824 |
+
277,
|
| 825 |
+
823,
|
| 826 |
+
308
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 8
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Pratik Chaudhari and Stefano Soatto. Stochastic gradient descent performs variational inference, converges to limit cycles for deep networks. arXiv preprint arXiv:1710.11029, 2017. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
171,
|
| 835 |
+
315,
|
| 836 |
+
823,
|
| 837 |
+
345
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 8
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Pratik Chaudhari, Anna Choromanska, Stefano Soatto, and Yann LeCun. Entropy-SGD: Biasing gradient descent into wide valleys. arXiv preprint arXiv:1611.01838, 2016. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
171,
|
| 846 |
+
354,
|
| 847 |
+
823,
|
| 848 |
+
383
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 8
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "Soham De, Abhay Yadav, David Jacobs, and Tom Goldstein. Automated inference with adaptive batches. In Artificial Intelligence and Statistics, pp. 1504–1513, 2017. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
171,
|
| 857 |
+
392,
|
| 858 |
+
823,
|
| 859 |
+
422
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 8
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv preprint arXiv:1703.04933, 2017. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
169,
|
| 868 |
+
431,
|
| 869 |
+
823,
|
| 870 |
+
460
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 8
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Gintare Karolina Dziugaite and Daniel M Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. arXiv preprint arXiv:1703.11008, 2017. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
469,
|
| 880 |
+
826,
|
| 881 |
+
512
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Michael P Friedlander and Mark Schmidt. Hybrid deterministic-stochastic methods for data fitting. SIAM Journal on Scientific Computing, 34(3):A1380–A1405, 2012. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
171,
|
| 890 |
+
521,
|
| 891 |
+
823,
|
| 892 |
+
551
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Crispin W Gardiner. Handbook of Stochastic Methods, volume 4. Springer Berlin, 1985. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
169,
|
| 901 |
+
559,
|
| 902 |
+
756,
|
| 903 |
+
575
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Pascal Germain, Francis Bach, Alexandre Lacoste, and Simon Lacoste-Julien. PAC-bayesian theory meets bayesian inference. In Advances in Neural Information Processing Systems, pp. 1884– 1892, 2016. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
173,
|
| 912 |
+
584,
|
| 913 |
+
825,
|
| 914 |
+
627
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An- ´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
173,
|
| 923 |
+
636,
|
| 924 |
+
826,
|
| 925 |
+
680
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Stephen F Gull. Bayesian inductive inference and maximum entropy. In Maximum-entropy and Bayesian methods in science and engineering, pp. 53–74. Springer, 1988. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
169,
|
| 934 |
+
689,
|
| 935 |
+
825,
|
| 936 |
+
719
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
173,
|
| 945 |
+
727,
|
| 946 |
+
821,
|
| 947 |
+
771
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Flat minima. ¨ Neural Computation, 9(1):1–42, 1997. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
171,
|
| 956 |
+
780,
|
| 957 |
+
799,
|
| 958 |
+
796
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Elad Hoffer, Itay Hubara, and Daniel Soudry. Train longer, generalize better: closing the generalization gap in large batch training of neural networks. arXiv preprint arXiv:1705.08741, 2017. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
171,
|
| 967 |
+
804,
|
| 968 |
+
823,
|
| 969 |
+
834
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 8
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "Stanisław Jastrzebski, Zachary Kenton, Devansh Arpit, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. Three factors influencing minima in SGD. arXiv preprint arXiv:1711.04623, 2017. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
173,
|
| 978 |
+
843,
|
| 979 |
+
823,
|
| 980 |
+
886
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Robert E Kass and Adrian E Raftery. Bayes factors. Journal of the american statistical association, 90(430):773–795, 1995. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
173,
|
| 989 |
+
895,
|
| 990 |
+
821,
|
| 991 |
+
924
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv preprint arXiv:1710.05468, 2017. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
171,
|
| 1000 |
+
103,
|
| 1001 |
+
823,
|
| 1002 |
+
132
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 9
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
140,
|
| 1012 |
+
821,
|
| 1013 |
+
184
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 9
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "David Krueger, Nicolas Ballas, Stanislaw Jastrzebski, Devansh Arpit, Maxinder S Kanwal, Tegan Maharaj, Emmanuel Bengio, Asja Fischer, and Aaron Courville. Deep nets don’t learn via memorization. ICLR Workshop, 2017. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
176,
|
| 1022 |
+
193,
|
| 1023 |
+
823,
|
| 1024 |
+
236
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 9
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Qianxiao Li, Cheng Tai, and E Weinan. Stochastic modified equations and adaptive stochastic gradient algorithms. In International Conference on Machine Learning, pp. 2101–2110, 2017. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
244,
|
| 1034 |
+
820,
|
| 1035 |
+
275
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 9
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448–472, 1992. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
282,
|
| 1045 |
+
820,
|
| 1046 |
+
311
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Stephan Mandt, Matthew D Hoffman, and David M Blei. Stochastic gradient descent as approximate bayesian inference. arXiv preprint arXiv:1704.04289, 2017. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
173,
|
| 1055 |
+
320,
|
| 1056 |
+
821,
|
| 1057 |
+
349
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 9
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
358,
|
| 1067 |
+
821,
|
| 1068 |
+
387
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 9
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Samuel L. Smith, Pieter-Jan Kindermans, and Quoc V. Le. Don’t decay the learning rate, increase the batch size. arXiv preprint arXiv:1711.00489, 2017. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
396,
|
| 1078 |
+
821,
|
| 1079 |
+
426
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 9
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 681–688, 2011. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
176,
|
| 1088 |
+
434,
|
| 1089 |
+
823,
|
| 1090 |
+
477
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 9
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
174,
|
| 1099 |
+
486,
|
| 1100 |
+
825,
|
| 1101 |
+
515
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 9
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "A BAYESIAN POSTERIOR SAMPLING AND LANGEVIN DYNAMICS ",
|
| 1108 |
+
"text_level": 1,
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
174,
|
| 1111 |
+
541,
|
| 1112 |
+
720,
|
| 1113 |
+
558
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "Instead of minimizing the cost function, Bayesian usually prefer to sample parameter values from the posterior (MacKay, 1992), ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
173,
|
| 1122 |
+
571,
|
| 1123 |
+
825,
|
| 1124 |
+
602
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 9
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "equation",
|
| 1130 |
+
"img_path": "images/25ecff15d1d1ee78f02b54607b9bb88464578a2200b1baf5b139a154417faa00.jpg",
|
| 1131 |
+
"text": "$$\nP ( \\omega | y , x ; M ) \\propto e ^ { - C ( \\omega ; M ) } ,\n$$",
|
| 1132 |
+
"text_format": "latex",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
406,
|
| 1135 |
+
608,
|
| 1136 |
+
591,
|
| 1137 |
+
627
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "where $C ( \\omega ; M )$ is the regularized summed cost function, as shown in section 2 of the main text. It is well known that one can sample this posterior by simulating the overdamped Langevin equation (Gardiner, 1985), which is described by the stochastic differential equation, ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
174,
|
| 1146 |
+
633,
|
| 1147 |
+
825,
|
| 1148 |
+
676
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "equation",
|
| 1154 |
+
"img_path": "images/8a64a4e88036d9e419e523788d5b40160e27a75b0e22726c6891189a4d9c36c4.jpg",
|
| 1155 |
+
"text": "$$\n\\frac { d \\omega } { d t } = - \\frac { d C } { d \\omega } + \\eta ( t ) ,\n$$",
|
| 1156 |
+
"text_format": "latex",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
429,
|
| 1159 |
+
683,
|
| 1160 |
+
566,
|
| 1161 |
+
714
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 9
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "where $t$ is a continuous variable, and $\\eta ( t )$ describes Gaussian noise with mean $\\langle \\eta ( t ) \\rangle = 0$ and variance $\\langle \\eta ( t ) \\eta ( t ^ { \\prime } ) \\rangle = 2 T I \\delta ( t - t ^ { \\prime } )$ . The matrix $I$ denotes the identity, while $T$ is the “temperature”. Notice this Langevin equation is extremely similar to the stochastic differential equation of SGD, discussed in section 5 of the main text. Indeed, if the gradient covariances $F ( \\omega )$ were stationary and proportional to the identity, then the SGD would integrate an overdamped Langevin equation with temperature proportional to the SGD noise scale $g$ . As $t \\to \\infty$ , the probability of sampling any particular parameter vector $\\omega$ from the Langevin equation, $P ( \\omega , t \\infty ) \\propto e ^ { - C / \\dot { T } }$ . ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
173,
|
| 1170 |
+
719,
|
| 1171 |
+
825,
|
| 1172 |
+
820
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 9
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "We obtain posterior samples if $T = 1$ . In order to draw posterior samples in practice, we repeatedly integrate the Langevin equation (at temperature $T = 1$ ), over a finite step $t \\to t + \\epsilon / N$ , ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
169,
|
| 1181 |
+
825,
|
| 1182 |
+
825,
|
| 1183 |
+
854
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 9
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "equation",
|
| 1189 |
+
"img_path": "images/297d5a317e1bfec16b10ffb8e7983fb04010fb2f576126cd6c90a74727bb0ef1.jpg",
|
| 1190 |
+
"text": "$$\n\\begin{array} { r c l } { \\Delta \\omega } & { = } & { - \\displaystyle \\frac { \\epsilon } { N } \\frac { d C } { d \\omega } + \\int _ { t } ^ { t + \\frac { \\epsilon } { N } } \\eta ( t ) d t } \\\\ & { = } & { \\displaystyle - \\frac { \\epsilon } { N } \\frac { d C } { d \\omega } + \\alpha , } \\end{array}\n$$",
|
| 1191 |
+
"text_format": "latex",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
379,
|
| 1194 |
+
861,
|
| 1195 |
+
620,
|
| 1196 |
+
933
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 9
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "where $\\alpha$ denotes a Gaussian random variable with mean $\\langle \\alpha \\rangle = 0$ and variance $\\langle \\alpha ^ { 2 } \\rangle \\ : = \\ : 2 \\epsilon I / N$ , which introduces isotropic noise to the gradient update as described in section 4 of the main text. Note that, since $C ( \\omega ; M )$ denotes the summed cost function, we chose to scale our step size by the training set size $N$ . This also matches our treatment of SGD in section 5 of the main text. The larger the step size $\\epsilon$ , the greater the discretization error, but if $\\epsilon$ is sufficiently small and we iterate equation 17 sufficiently many times, we will obtain valid samples from the posterior. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
174,
|
| 1205 |
+
102,
|
| 1206 |
+
825,
|
| 1207 |
+
188
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Since the probability of sampling any given parameter vector $\\omega$ is proportional to the posterior, the probability of sampling a parameter vector belonging to any given local minimum is proportional to the integral of the posterior over the bowl of attraction $D$ which surrounds that minimum. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
174,
|
| 1216 |
+
194,
|
| 1217 |
+
825,
|
| 1218 |
+
236
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "equation",
|
| 1224 |
+
"img_path": "images/a67abd61022557b8527f0ceadb80a46befc91282e1cd1c40bfff4965dfd908a0.jpg",
|
| 1225 |
+
"text": "$$\nP ( \\omega \\in D , t \\infty ) \\propto \\int _ { D } d \\omega \\ e ^ { - C ( \\omega ; M ) } .\n$$",
|
| 1226 |
+
"text_format": "latex",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
364,
|
| 1229 |
+
239,
|
| 1230 |
+
632,
|
| 1231 |
+
273
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 10
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Meanwhile we showed in section 2 of the main text that the evidence in favor of a model is proportional to the integral of the posterior over all parameter space. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
176,
|
| 1240 |
+
275,
|
| 1241 |
+
823,
|
| 1242 |
+
304
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "equation",
|
| 1248 |
+
"img_path": "images/645eab6b826d2ff9c83f869bf1f7b717a71bcdf29443928aef6d566e2f195ad3.jpg",
|
| 1249 |
+
"text": "$$\nP ( y | x ; M ) \\propto \\int d \\omega e ^ { - C ( \\omega ; M ) } .\n$$",
|
| 1250 |
+
"text_format": "latex",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
392,
|
| 1253 |
+
306,
|
| 1254 |
+
606,
|
| 1255 |
+
339
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 10
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "As we discussed, this evidence is dominated by the contributions to the integral near local minima. In a convex model, there is only one such minimum; which allows us to accurately estimate the model evidence. Meanwhile, in non-convex models, there are many such minima, and so we can instead define the evidence as a sum over local evidences in favor of each minimum, ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
342,
|
| 1265 |
+
825,
|
| 1266 |
+
397
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 10
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "equation",
|
| 1272 |
+
"img_path": "images/9d21a0bc2f36dbe12c5a5f6c1e18aa3112145d4a431dcd517692d713c252e91b.jpg",
|
| 1273 |
+
"text": "$$\nP ( y | x ; M ) = \\sum _ { i } P ( y | x , \\omega \\in D _ { i } ; M ) ,\n$$",
|
| 1274 |
+
"text_format": "latex",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
369,
|
| 1277 |
+
401,
|
| 1278 |
+
627,
|
| 1279 |
+
434
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 10
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "where we define the evidence in favor of a minimum as the integral over the local bowl of attraction, ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
174,
|
| 1288 |
+
436,
|
| 1289 |
+
821,
|
| 1290 |
+
452
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 10
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "equation",
|
| 1296 |
+
"img_path": "images/1585219cdde94fb4528524bae5b3410dec703bc1860283c24f667d7be7f7137f.jpg",
|
| 1297 |
+
"text": "$$\nP ( y | x , \\omega \\in D ; M ) \\propto \\int _ { D } d \\omega \\ e ^ { - C ( \\omega ; M ) } .\n$$",
|
| 1298 |
+
"text_format": "latex",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
364,
|
| 1301 |
+
460,
|
| 1302 |
+
633,
|
| 1303 |
+
493
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 10
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Since the combined bowls of attraction of all the minima perfectly tile the entire parameter space, equations 19 and 20 are equivalent. Meanwhile, equating equations 18 and 21 we find that, when one performs Bayesian posterior sampling, the probability of sampling the parameter vector from a local minimum is proportional to the evidence in favor of that minimum. This demonstrates that bayesian posterior samples are biased in favor of local minima whose evidence is large, which explains why a single posterior sample $\\omega _ { p }$ often achieves lower test error than the cost function minimum $\\omega _ { 0 }$ . ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
173,
|
| 1312 |
+
493,
|
| 1313 |
+
825,
|
| 1314 |
+
578
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 10
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "B THE EFFECT OF REGULARIZATION ON THE GENERALIZATION GAP ",
|
| 1321 |
+
"text_level": 1,
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
171,
|
| 1324 |
+
598,
|
| 1325 |
+
751,
|
| 1326 |
+
613
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 10
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "In the experiments of section 4 of the main text, the L2 regularization coefficient $\\lambda = 0$ . In figure 8, we plot the evolution of the training curves when $\\lambda = 0 . 1$ , for both small batch and full batch training. Excluding the regularization parameter, these experiments are identical to figure 3. To our surprise, regularized full batch training took longer to converge than small batch training. In another surprise, regularization significantly reduced the size of the generalization gap. While large batch regularized training achieves slightly lower test set accuracy than unregularized small batch training, it also achieves lower test cross-entropy. The test cross-entropy of our regularized models does not degrade after many gradient updates, removing the need for early stopping. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
171,
|
| 1335 |
+
627,
|
| 1336 |
+
825,
|
| 1337 |
+
656
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 10
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "image",
|
| 1343 |
+
"img_path": "images/9b725df1b2851f06eebf187dcc70cd8ce8c558a8b2aed25f92d9127ad2a42bfe.jpg",
|
| 1344 |
+
"image_caption": [
|
| 1345 |
+
"Figure 8: The mean test accuracy (a) and the mean test cross-entropy (b) of a regularized model during training. While full batch training takes longer to converge, it achieves similar performance at long times. The noise inherent in small batch training causes the performance to fluctuate. "
|
| 1346 |
+
],
|
| 1347 |
+
"image_footnote": [],
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
191,
|
| 1350 |
+
688,
|
| 1351 |
+
803,
|
| 1352 |
+
867
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "image",
|
| 1358 |
+
"img_path": "images/0e9f4bc9e0527e3032e6c0929c574be057d50f2e1d13b90d5cc6350b4fcdf353.jpg",
|
| 1359 |
+
"image_caption": [
|
| 1360 |
+
"Figure 9: The gradient distribution of a randomly selected parameter in the softmax layer, when measured over a single training example (a), and when averaged over mini-batches of 30 images (b). "
|
| 1361 |
+
],
|
| 1362 |
+
"image_footnote": [],
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
191,
|
| 1365 |
+
106,
|
| 1366 |
+
808,
|
| 1367 |
+
286
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 11
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
174,
|
| 1376 |
+
353,
|
| 1377 |
+
825,
|
| 1378 |
+
438
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 11
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "C THE GAUSSIAN APPROXIMATION TO THE MINI-BATCH ERROR ",
|
| 1385 |
+
"text_level": 1,
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
176,
|
| 1388 |
+
460,
|
| 1389 |
+
715,
|
| 1390 |
+
476
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 11
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "In section 5 of the main text, we approximated the difference between the full batch gradient and the mini-batch gradient estimate, $\\begin{array} { r } { \\alpha = ( \\frac { d \\hat { C } } { d \\omega } - \\frac { d C } { d \\omega } ) } \\end{array}$ , by a Gaussian random variable. This enabled us to derive the scaling rules, which we verified empirically. We motivated this assumption by reference to the central limit theorem, which states that the gradient error will tend towards Gaussian noise as $\\{ N \\to \\infty , B \\to \\infty , B \\ll N \\}$ , so long as the distribution of gradients over individual training examples does not have heavy tails. In practice neither $\\mathbf { N }$ nor B is infinite, and the gradient distribution may be heavy tailed, especially when gradients are sparse. Nonetheless the central limit theorem tends to be surprisingly robust in practice, and is consequently widely used. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
174,
|
| 1399 |
+
491,
|
| 1400 |
+
825,
|
| 1401 |
+
607
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 11
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "It is beyond the scope of this work to perform a thorough study of the gradient noise distribution in deep networks. However as a brief proof of principle, we present the distribution of the gradient immediately after random initialization in figure 9, for the shallow neural network discussed in sections 4 and 5 of the main text. In figure 9a, we present the distribution over the individual training examples, of the gradient of a single matrix element in the softmax output layer, chosen randomly. The distribution is double peaked and clearly not Gaussian. However in figure 7b, we plot the distribution of the gradient of the same matrix element, when averaged over randomly sampled mini-batches of 30 images (without replacement). A single peak emerges, and while the distribution is still slightly skewed, it is clearly already approaching the Gaussian limit. We conclude that the Gaussian approximation is likely to be reasonable for commonly used mini-batch sizes. ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
173,
|
| 1410 |
+
613,
|
| 1411 |
+
825,
|
| 1412 |
+
752
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 11
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "D DERIVING THE SCALING RULES FOR SGD WITH MOMENTUM ",
|
| 1419 |
+
"text_level": 1,
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
174,
|
| 1422 |
+
773,
|
| 1423 |
+
714,
|
| 1424 |
+
790
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 11
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Momentum simulates a generalized Langevin equation (with structured fluctuations), ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
174,
|
| 1433 |
+
805,
|
| 1434 |
+
728,
|
| 1435 |
+
820
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 11
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "equation",
|
| 1441 |
+
"img_path": "images/16e299b6d82ae6a50ef8986f4a0a56d4aff5be1686a4f726b75f607a014315fa.jpg",
|
| 1442 |
+
"text": "$$\n\\frac { d ^ { 2 } \\omega } { d t ^ { 2 } } = - \\lambda \\frac { d \\omega } { d t } - \\frac { d C } { d \\omega } + \\eta ( t ) .\n$$",
|
| 1443 |
+
"text_format": "latex",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
400,
|
| 1446 |
+
828,
|
| 1447 |
+
598,
|
| 1448 |
+
861
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 11
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "$\\lambda$ is the “damping coefficient” and $\\eta ( t )$ describes Gaussian noise, whose statistics $\\langle \\eta ( t ) \\rangle = 0$ and $\\langle \\eta ( t ) \\eta ( t ^ { \\prime } ) \\rangle = \\bar { g } \\lambda \\bar { F } ( w ) \\delta ( t - t ^ { \\prime } )$ . As before, the coefficient $g$ describes the scale of random fluctuations in the dynamics, and $F ( \\omega )$ describes the gradient covariances between parameters. We include a factor of $\\lambda$ in the noise variance to satisfy the fluctuation-dissipation theorem, which states that we can vary the damping coefficient without changing the probability of sampling any particular configuration of parameters in the limit $t \\to \\infty$ , if we proportionally increase the noise variance. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
174,
|
| 1457 |
+
867,
|
| 1458 |
+
823,
|
| 1459 |
+
924
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 11
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
171,
|
| 1468 |
+
103,
|
| 1469 |
+
823,
|
| 1470 |
+
132
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 12
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "To relate this Langevin equation to the usual momentum equations, we first re-express it as two coupled first order differential equations, ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
174,
|
| 1479 |
+
138,
|
| 1480 |
+
821,
|
| 1481 |
+
167
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 12
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "equation",
|
| 1487 |
+
"img_path": "images/14b1af7cbf0612e821a8578c052eb4002b59937c43eb316113a8b9a7f75d56c3.jpg",
|
| 1488 |
+
"text": "$$\n\\begin{array} { r c l } { \\displaystyle \\frac { d p } { d t } } & { = } & { \\displaystyle - \\lambda p - \\frac { d C } { d \\omega } + \\eta ( t ) , } \\\\ { \\displaystyle \\frac { d \\omega } { d t } } & { = } & { p . } \\end{array}\n$$",
|
| 1489 |
+
"text_format": "latex",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
397,
|
| 1492 |
+
169,
|
| 1493 |
+
596,
|
| 1494 |
+
232
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 12
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "Integrating over a single step $\\Delta t / N$ , ",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
173,
|
| 1503 |
+
233,
|
| 1504 |
+
416,
|
| 1505 |
+
248
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 12
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "equation",
|
| 1511 |
+
"img_path": "images/527e2c6b8556aa2e9cfdf1a776a8ed658b8aa5b27d1699cdc2818fec6eb54a4c.jpg",
|
| 1512 |
+
"text": "$$\n\\begin{array} { r c l } { { \\Delta p } } & { { = } } & { { \\displaystyle - ( \\lambda \\Delta t / N ) p - \\frac { \\Delta t } { N } \\frac { d C } { d \\omega } + \\eta , } } \\\\ { { \\Delta \\omega } } & { { = } } & { { p \\Delta t / N . } } \\end{array}\n$$",
|
| 1513 |
+
"text_format": "latex",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
367,
|
| 1516 |
+
250,
|
| 1517 |
+
627,
|
| 1518 |
+
299
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 12
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "Where now $\\langle \\eta \\rangle = 0$ and $\\langle \\eta ^ { 2 } \\rangle = g \\Delta t \\lambda F ( w ) / N$ . We define the accumulation $A = p / \\Delta t$ , ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
173,
|
| 1527 |
+
300,
|
| 1528 |
+
754,
|
| 1529 |
+
316
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 12
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "equation",
|
| 1535 |
+
"img_path": "images/d2524bb54c465e3bf98a6c473a33cef667411bfca45d9b50835703c85a98557d.jpg",
|
| 1536 |
+
"text": "$$\n\\begin{array} { r c l } { \\Delta A } & { = } & { - ( \\lambda \\Delta t / N ) A - \\displaystyle \\frac { 1 } { N } \\frac { d C } { d \\omega } + \\frac { \\eta } { \\Delta t } , } \\\\ { \\Delta \\omega } & { = } & { ( \\Delta t ) ^ { 2 } A / N . } \\end{array}\n$$",
|
| 1537 |
+
"text_format": "latex",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
359,
|
| 1540 |
+
318,
|
| 1541 |
+
633,
|
| 1542 |
+
368
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 12
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "These equations can be compared to the TensorFlow update equations for momentum, ",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
174,
|
| 1551 |
+
369,
|
| 1552 |
+
736,
|
| 1553 |
+
385
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 12
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "equation",
|
| 1559 |
+
"img_path": "images/bb7199cb470e8913109de33649db9c87f6bd9c85ffff3aeff0506100287f699a.jpg",
|
| 1560 |
+
"text": "$$\n\\begin{array} { r c l } { { \\Delta A } } & { { = } } & { { ( m - 1 ) A - \\displaystyle \\frac { 1 } { N } \\left( \\displaystyle \\frac { d C } { d \\omega } + \\alpha \\right) , } } \\\\ { { \\Delta \\omega } } & { { = } } & { { \\epsilon A . } } \\end{array}\n$$",
|
| 1561 |
+
"text_format": "latex",
|
| 1562 |
+
"bbox": [
|
| 1563 |
+
361,
|
| 1564 |
+
387,
|
| 1565 |
+
632,
|
| 1566 |
+
439
|
| 1567 |
+
],
|
| 1568 |
+
"page_idx": 12
|
| 1569 |
+
},
|
| 1570 |
+
{
|
| 1571 |
+
"type": "text",
|
| 1572 |
+
"text": "Where $\\begin{array} { r } { \\alpha = \\left( \\frac { d \\hat { C } } { d \\omega } - \\frac { d C } { d \\omega } \\right) } \\end{array}$ denotes the error in the gradient update. As discussed in the main text, we can approximate this error as Gaussian noise with statistics $\\langle \\alpha \\rangle = 0$ and $\\langle \\alpha ^ { 2 } \\rangle \\approx N ^ { 2 } F ( \\omega ) / B$ . Equations 27 and 28 match equations 29 and 30 if the step size $\\dot { \\epsilon } = ( \\Delta t ) ^ { 2 } / N$ , and the momentum parameter $m = ( 1 - \\lambda \\Delta t / N )$ . Finally we equate the noise by setting $\\langle \\alpha ^ { 2 } \\rangle / N ^ { 2 } = \\langle \\eta ^ { 2 } \\rangle / ( \\Delta t ) ^ { 2 }$ , and solve for the noise scale $g$ to obtain, ",
|
| 1573 |
+
"bbox": [
|
| 1574 |
+
174,
|
| 1575 |
+
441,
|
| 1576 |
+
825,
|
| 1577 |
+
520
|
| 1578 |
+
],
|
| 1579 |
+
"page_idx": 12
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "equation",
|
| 1583 |
+
"img_path": "images/1250fa8ad6b646385b1e82ba5b00b1623c3499d996f37b0e6dd9e4e343faa1b5.jpg",
|
| 1584 |
+
"text": "$$\n\\begin{array} { l l l } { { g } } & { { \\approx } } & { { \\displaystyle \\frac { \\Delta t N } { B \\lambda } = \\frac { ( \\Delta t ) ^ { 2 } } { B ( 1 - m ) } } } \\\\ { { } } & { { = } } & { { \\displaystyle \\frac { \\epsilon N } { B ( 1 - m ) } . } } \\end{array}\n$$",
|
| 1585 |
+
"text_format": "latex",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
401,
|
| 1588 |
+
522,
|
| 1589 |
+
593,
|
| 1590 |
+
593
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 12
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "As observed in the main text, if we wish to keep the scale of random fluctuations constant, then we should scale the batch size $B \\propto \\epsilon N$ . We also predict an additional scaling relation between the batch size and the momentum parameter, $B \\propto \\mathsf { \\bar { 1 } } / ( 1 - m )$ . Note that one can also interpret $\\epsilon _ { e f f } = \\epsilon / ( 1 - m )$ as the “effective learning rate”. ",
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
174,
|
| 1599 |
+
593,
|
| 1600 |
+
825,
|
| 1601 |
+
650
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 12
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "E HOW TO ACHIEVE LARGE BATCH TRAINING ",
|
| 1608 |
+
"text_level": 1,
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
174,
|
| 1611 |
+
669,
|
| 1612 |
+
568,
|
| 1613 |
+
684
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 12
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "Here we propose a simple heuristic for tuning the batch size, learning rate and momentum parameter; in order to maximize both test accuracy and batch size (enabling parallel training across many machines). Note that this is only worthwhile if one expects to retrain a model many times. ",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
174,
|
| 1622 |
+
698,
|
| 1623 |
+
825,
|
| 1624 |
+
741
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 12
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "1. Set the learning rate to 0.1 and the momentum coefficient to 0.9. Run experiments at a range of batch sizes on a logarithmic scale, and identify the optimal batch size which maximizes the validation set accuracy. If training is not stable, reduce the learning rate, and repeat. 2. Repeatedly increase the batch size by a factor of 3, while scaling the learning rate $\\epsilon \\propto B$ , until the validation set accuracy starts to fall. Then repeatedly increase the batch size by a factor of 3, while scaling the momentum coefficient $( 1 - \\dot { m } ) \\propto 1 / B$ , until either the validation set accuracy falls or the batch size reaches the limits of your hardware. 3. Having identified the final learning rate and momentum parameter, retune the batch size on a linear scale in the local neighborhood of the current batch size. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
210,
|
| 1633 |
+
752,
|
| 1634 |
+
825,
|
| 1635 |
+
886
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 12
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "We believe that this simple procedure will increase the test accuracy, reduce the cost of tuning hyperparameters, and significantly reduce the final number of gradient updates required to train a model. ",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
174,
|
| 1644 |
+
895,
|
| 1645 |
+
821,
|
| 1646 |
+
924
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 12
|
| 1649 |
+
}
|
| 1650 |
+
]
|
parse/train/BJij4yg0Z/BJij4yg0Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJij4yg0Z/BJij4yg0Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Byl1W1rtvH/Byl1W1rtvH.md
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RECURRENT HIERARCHICAL TOPIC-GUIDEDNEURAL LANGUAGE MODELS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
To simultaneously capture syntax and global semantics from a text corpus, we propose a new larger-context recurrent neural network (RNN) based language model, which extracts recurrent hierarchical semantic structure via a dynamic deep topic model to guide natural language generation. Moving beyond a conventional RNN based language model that ignores long-range word dependencies and sentence order, the proposed model captures not only intra-sentence word dependencies, but also temporal transitions between sentences and inter-sentence topic dependences. For inference, we develop a hybrid of stochastic-gradient MCMC and recurrent autoencoding variational Bayes. Experimental results on a variety of real-world text corpora demonstrate that the proposed model not only outperforms state-ofthe-art larger-context RNN-based language models, but also learns interpretable recurrent multilayer topics and generates diverse sentences and paragraphs that are syntactically correct and semantically coherent.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Both topic and language models are widely used for text analysis. Topic models, such as latent Dirichlet allocation (LDA) (Blei et al., 2003; Griffiths & Steyvers, 2004; Hoffman et al., 2013) and its nonparametric Bayesian generalizations (Teh et al., 2006; Zhou & Carin, 2015), are well suited to extract document-level word concurrence patterns into latent topics from a text corpus. Their modeling power has been further enhanced by introducing multilayer deep representation (Srivastava et al., 2013; Mnih & Gregor, 2014; Gan et al., 2015; Zhou et al., 2016; Zhao et al., 2018; Zhang et al., 2018). While having semantically meaningful latent representation, they typically treat each document as a bag of words (BoW), ignoring word order (Griffiths et al., 2004; Wallach, 2006). Language models have become key components of various natural language processing (NLP) tasks, such as text summarization (Rush et al., 2015; Gehrmann et al., 2018), speech recognition (Mikolov et al., 2010; Graves et al., 2013), machine translation (Sutskever et al., 2014; Cho et al., 2014), and image captioning (Vinyals et al., 2015; Mao et al., 2015; Xu et al., 2015; Gan et al., 2017; Rennie et al., 2017). The primary purpose of a language model is to capture the distribution of a word sequence, commonly with a recurrent neural network (RNN) (Mikolov et al., 2011; Graves, 2013) or a Transformer based neural network (Vaswani et al., 2017; Dai et al., 2019; Devlin et al., 2019; Radford et al., 2018; 2019). In this paper, we focus on improving RNN-based language models that often have much fewer parameters and are easier to perform end-to-end training.
|
| 12 |
+
|
| 13 |
+
While RNN-based language models do not ignore word order, they often assume that the sentences of a document are independent to each other. This simplifies the modeling task to independently assigning probabilities to individual sentences, ignoring their orders and document context (Tian & Cho, 2016). Such language models may consequently fail to capture the long-range dependencies and global semantic meaning of a document (Dieng et al., 2017; Wang et al., 2018). To relax the sentence independence assumption in language modeling, Tian & Cho (2016) propose larger-context language models that model the context of a sentence by representing its preceding sentences as either a single or a sequence of BoW vectors, which are then fed directly into the sentence modeling RNN. An alternative approach attracting significant recent interest is leveraging topic models to improve RNN-based language models. Mikolov & Zweig (2012) use pre-trained topic model features as an additional input to the RNN hidden states and/or output. Dieng et al. (2017); Ahn et al. (2017) combine the predicted word distributions, given by both a topic model and a language model, under variational autoencoder (Kingma & Welling, 2013). Lau et al. (2017) introduce an attention based convolutional neural network to extract semantic topics, which are used to extend the RNN cell. Wang et al. (2018) learn the global semantic coherence of a document via a neural topic model and use the learned latent topics to build a mixture-of-experts language model. Wang et al. (2019) further specify a Gaussian mixture model as the prior of the latent code in variational autoencoder, where each mixture component corresponds to a topic.
|
| 14 |
+
|
| 15 |
+
While clearly improving the performance of the end task, these existing topic-guided methods still have clear limitations. For example, they only utilize shallow topic models with only a single stochastic hidden layer in their data generation process. Note several neural topic models use deep neural networks to construct their variational encoders, but still use shallow generative models (decoders) (Miao et al., 2017; Srivastava & Sutton, 2017). Another key limitation lies in ignoring the sentence order, as they treat each document as a bag of sentences. Thus once the topic weight vector learned from the document context is given, the task is often reduced to independently assigning probabilities to individual sentences (Lau et al., 2017; Wang et al., 2018; 2019).
|
| 16 |
+
|
| 17 |
+
In this paper, as depicted in Fig. 1, we propose to use recurrent gamma belief network (rGBN) to guide a stacked RNN for language modeling. We refer to the model as rGBN-RNN, which integrates rGBN (Guo et al., 2018), a deep recurrent topic model, and stacked RNN (Graves, 2013; Chung et al., 2017), a neural language model, into a novel larger-context RNN-based language model. It simultaneously learns a deep recurrent topic model, extracting document-level multi-layer word concurrence patterns and sequential topic weight vectors for sentences, and an expressive language model, capturing both short- and long-range word sequential dependencies. For inference, we equip rGBN-RNN (decoder) with a novel variational recurrent inference network (encoder), and train it end-to-end by maximizing the evidence lower bound (ELBO). Different from the stacked RNN based language model in Chung et al. (2017), which relies on three types of customized training operations (UPDATE, COPY, FLUSH) to extract multi-scale structures, the language model in rGBN-RNN learns such structures purely under the guidance of the temporally and hierarchically connected stochastic layers of rGBN. The effectiveness of rGBN-RNN as a new larger-context language model is demonstrated both quantitatively, with perplexity and BLEU scores, and qualitatively, with interpretable latent structures and randomly generated sentences and paragraphs. Notably, rGBN-RNN can generate a paragraph consisting of a sequence of semantically coherent sentences.
|
| 18 |
+
|
| 19 |
+
# 2 RECURRENT HIERARCHICAL TOPIC-GUIDED LANGUAGE MODEL
|
| 20 |
+
|
| 21 |
+
Denote a document of $J$ sentences as $\mathcal { D } = ( S _ { 1 } , S _ { 2 } , \ldots , S _ { J } )$ , where $S _ { j } = ( y _ { j , 1 } , \ldots , y _ { j , T _ { j } } )$ consists of $T _ { j }$ words from a vocabulary of size $V$ . Conventional statistical language models often only focus on the word sequence within a sentence. Assuming that the sentences of a document are independent to each other, they often define $\begin{array} { r } { P ( \mathcal { D } ) \approx \prod _ { j = 1 } ^ { J } \bar { P } \left( S _ { j } \right) = \prod _ { j = 1 } ^ { J } \prod _ { t = 2 } ^ { T _ { j } } p \left( y _ { j , t } \vert y _ { j , < t } \right) p \left( y _ { j , 1 } \right) } \end{array}$ . RNN based neural language models define the conditional probability of each word $y _ { j , t }$ given all the previous words $y _ { j , < t }$ within the sentence $S _ { j }$ , through the softmax function of a hidden state $h _ { j , t }$ , as
|
| 22 |
+
|
| 23 |
+
$$
|
| 24 |
+
p \left( y _ { j , t } \mid y _ { j , < t } \right) = p \left( y _ { j , t } \mid h _ { j , t } \right) , \quad h _ { j , t } = f \left( h _ { j , < t } , y _ { j , t - 1 } \right) ,
|
| 25 |
+
$$
|
| 26 |
+
|
| 27 |
+
where $f ( \cdot )$ is a non-linear function typically defined as an RNN cell, such as long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997) and gated recurrent unit (GRU) (Cho et al., 2014).
|
| 28 |
+
|
| 29 |
+
These RNN-based statistical language models are typically applied only at the word level, without exploiting the document context, and hence often fail to capture long-range dependencies. While Dieng et al. (2017); Lau et al. (2017); Wang et al. (2018; 2019) remedy the issue by guiding the language model with a topic model, they still treat a document as a bag of sentences, ignoring the order of sentences, and lack the ability to extract hierarchical and recurrent topic structures.
|
| 30 |
+
|
| 31 |
+
We introduce rGBN-RNN, as depicted in Fig. 1(a), as a new larger-context language model. It consists of two key components: (i) a hierarchical recurrent topic model (rGBN), and (ii) a stacked RNN based language model. We use rGBN to capture both global semantics across documents and long-range inter-sentence dependencies within a document, and use the language model to learn the local syntactic relationships between the words within a sentence. Similar to Lau et al. (2017); Wang et al. (2018), we represent a document as a sequence of sentence-context pairs as $( \{ S _ { 1 } , d _ { 1 } \} , \dots , \{ S _ { J } , d _ { J } \} )$ , where $\bar { d } _ { j } \in \mathbb { Z } _ { + } ^ { V _ { c } }$ summarizes the document excluding $S _ { j }$ , specifically $( S _ { 1 } , . . . , S _ { j - 1 } , S _ { j + 1 } , . . . , S _ { J } )$ , into a BoW count vector, with $V _ { c }$ as the size of the vocabulary excluding stop words. Note a naive way is to treat each sentence as a document, use a dynamic topic model (Blei & Lafferty, 2006) to capture the temporal dependencies of the latent topic-weight vectors, which is fed to the RNN to model the word sequence of the corresponding sentence. However, the sentences are often too short to be well modeled by a topic model. In our setting, as $d _ { j }$ summarizes the document-level context of $S _ { j }$ , it is in general sufficiently long for topic modeling. Note during testing, we redefine $d _ { j }$ as the BoW vector summarizing only the preceding sentences, i.e., $S _ { 1 : j - 1 }$ , which will be further clarified when presenting experimental results.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
Figure 1: (a) The generative model of a three-hidden-layer rGBN-RNN, where the bottom part is the deep recurrent topic model (rGBN), document contexts of consecutive sentences are used as observed data, and upper is the language model. (b) Overview of the language model component, where input $x _ { j , t }$ denotes the tth word in $j$ th sentence of a document, $x _ { j , t } = y _ { j , t - 1 } , h _ { j , t } ^ { l }$ is the hidden state of the stacked RNN at time step $t$ , and $\theta _ { j } ^ { l }$ is the topic weight vector of sentence $j$ at layer $l$ . (c) The overall architecture of the proposed model, including the decoder (rGBN and language model) and encoder (variational recurrent inference), where the red arrows denote the inference of latent topic weight vectors, black ones the data generation.
|
| 35 |
+
|
| 36 |
+
# 2.1 HIERARCHICAL RECURRENT TOPIC MODEL
|
| 37 |
+
|
| 38 |
+
Shown in Fig. 1 (a), to model the time-varying sentence-context count vectors $d _ { j }$ in document $\mathcal { D }$ , the generative process of the rGBN component, from the top to bottom hidden layers, is expressed as
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\begin{array} { r l } & { \pmb { \theta } _ { j } ^ { L } \sim \mathrm { G a m } \left( \mathbf { \Pi } \mathbf { \ } \mathbf { \Pi } ^ { L } \pmb { \theta } _ { j - 1 } ^ { L } , \mathbf { \Delta } \tau _ { 0 } \right) , \cdots , \pmb { \theta } _ { j } ^ { l } \sim \mathrm { G a m } \left( \Phi ^ { l + 1 } \pmb { \theta } _ { j } ^ { l + 1 } + \mathbf { \Pi } \mathbf { \Pi } ^ { l } \pmb { \theta } _ { j - 1 } ^ { l } , \mathbf { \Delta } \tau _ { 0 } \right) , \cdots , } \\ & { \pmb { \theta } _ { j } ^ { 1 } \sim \mathrm { G a m } \left( \Phi ^ { 2 } \pmb { \theta } _ { j } ^ { 2 } + \mathbf { \Pi } \mathbf { \ } ^ { 1 } \pmb { \theta } _ { j - 1 } ^ { 1 } , \mathbf { \Delta } \tau _ { 0 } \right) , \pmb { d } _ { j } \sim \mathrm { P o i s } \left( \Phi ^ { 1 } \pmb { \theta } _ { j } ^ { 1 } \right) , } \end{array}
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where $\pmb { \theta } _ { j } ^ { l } \in \mathbb { R } _ { + } ^ { K _ { l } }$ denotes the gamma distributed topic weight vectors of sentence $j$ at layer $l$ $\mathbf { I I } ^ { l } \in \mathbb { R } _ { + } ^ { \bar { K } _ { l } \times K _ { l } }$ the transition matrix of layer $l$ that captures cross-topic temporal dependencies, $\Phi ^ { l } \in$ RKl−1×Kl+ the loading matrix at layer l, Kl the number of topics of layer l, and τ0 ∈ R+ a scaling hyperparameter. At $j = 1$ , $\pmb { \theta } _ { 1 } ^ { l } \sim \mathrm { G a m } \left( \pmb { \Phi } ^ { l + 1 } \pmb { \theta } _ { 1 } ^ { l + 1 } , \tau _ { 0 } \right)$ for $l = 1 , \ldots , L - 1$ and $\pmb { \theta } _ { 1 } ^ { L } \sim \mathbf { G a m } ( \nu , \tau _ { 0 } )$ , where $\nu = \mathbf { 1 } _ { K _ { L } }$ . Finally, Dirichlet priors are placed on the columns of $\Pi ^ { l }$ and $\Phi ^ { l }$ , i.e., $\pi _ { k } ^ { l }$ and $\phi _ { k } ^ { l }$ , which not only makes the latent representation more identifiable and interpretable, but also facilitates inference. The count vector $d _ { j }$ can be factorized into the product of $\Phi ^ { \hat { 1 } }$ and $\theta _ { j } ^ { 1 }$ under the Poisson likelihood. The shape parameters of $\pmb { \theta } _ { j } ^ { l } \in \mathbb { R } _ { + } ^ { K _ { l } }$ can be factorized into the sum of $\Phi ^ { l + 1 } \pmb { \theta } _ { j } ^ { l + 1 }$ , capturing inter-layer hierarchical dependence, and $\Pi ^ { l } \theta _ { j - 1 } ^ { l }$ , capturing intra-layer temporal dependence. rGBN not only captures the document-level word occurrence patterns inside the training text corpus, but also the sequential dependencies of the sentences inside a document. Note ignoring the recurrent structure, rGBN will reduce to the gamma belief network (GBN) of Zhou et al. (2016), which can be considered as a multi-stochastic-layer deep generalization of LDA (Cong et al., 2017a). If ignoring its hierarchical structure (i.e., $L = 1$ ), rGBN reduces to Poisson–gamma dynamical systems (Schein et al., 2016). We refer to the rGBN-RNN without its recurrent structure as GBN-RNN, which no longer models sequential sentence dependencies; see Appendix A for more details.
|
| 45 |
+
|
| 46 |
+
# 2.2 LANGUAGE MODEL
|
| 47 |
+
|
| 48 |
+
Different from a conventional RNN-based language model, which predicts the next word only using the preceding words within the sentence, we integrate the hierarchical recurrent topic weight vectors $\theta _ { j } ^ { l }$ into the language model to predict the word sequence in the $j$ th sentence. Our proposed language model is built upon the stacked RNN proposed in Graves (2013); Chung et al. (2017), but with the help of rGBN, it no longer requires specialized training heuristics to extract multi-scale structures. As shown in Fig. 1 (b), to generate $y _ { j , t }$ , the $t ^ { \mathrm { { t h } } }$ token of sentence $j$ in a document, we construct the hidden states $h _ { j , t } ^ { l }$ of the language model, from the bottom to top layers, as
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\begin{array} { r } { h _ { j , t } ^ { l } = \left\{ \begin{array} { l l } { \mathrm { L S T M } _ { \mathrm { w o r d } } ^ { l } \left( h _ { j , t - 1 } ^ { l } , W _ { e } \left[ x _ { j , t } \right] \right) , } & { \mathrm { i f } l = 1 , } \\ { \mathrm { L S T M } _ { \mathrm { w o r d } } ^ { l } \left( h _ { j , t - 1 } ^ { l } , a _ { j , t } ^ { l - 1 } \right) , } & { \mathrm { i f } L \geq l > 1 , } \end{array} \right. } \end{array}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $\mathrm { L S T M } _ { \mathrm { w o r d } } ^ { l }$ denotes the word-level LSTM at layer $l$ , ${ \bf W } _ { e } \in \mathbb { R } ^ { V }$ are word embeddings to be learned, and $x _ { j , t } = y _ { j , t - 1 }$ . Note $\pmb { a } _ { j , t } ^ { l }$ denotes the coupling vector, which combines the temporal topic weight vectors $\theta _ { j } ^ { l }$ and hidden output of the word-level LSTM $h _ { j , t - 1 } ^ { l }$ at each time step $t$ .
|
| 55 |
+
|
| 56 |
+
Following Lau et al. (2017), a gating unit similar to GRU (Cho et al., 2014) combines $\theta _ { j } ^ { l }$ of sentence $j$ with its hidden state $h _ { j , t } ^ { l }$ of word-level LSTM at layer $l$ and time $t$ as $\mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf $ . We defer the details on $g ^ { l }$ to Appendix B. Denote $\mathbf { W } _ { o }$ as a weight matrix with $V$ rows and $\pmb { a } _ { j , t } ^ { 1 : L }$ as the concatenation of $\boldsymbol { a } _ { j , t } ^ { l }$ across all layers; different from (1), the conditional probability of $y _ { j , t }$ becomes
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
p \left( y _ { j , t } \mid y _ { j , < t } , \pmb { \theta } _ { j } ^ { l } \right) = \mathrm { s o f t m a x } \left( \mathbf { W } _ { o } \pmb { a } _ { j , t } ^ { 1 : L } \right) .
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
There are two main reasons for combining all the latent representations $\cdot$ for language modeling. First, the latent representations exhibit different statistical properties at different stochastic layers of rGBN-RNN, and hence are combined together to enhance their representation power. Second, having “skip connections” from all hidden layers to the output one makes it easier to train the proposed network, reducing the number of processing steps between the bottom of the network and the top and hence mitigating the “vanishing gradient” problem (Graves, 2013).
|
| 63 |
+
|
| 64 |
+
To sum up, as depicted in Fig. 1 (a), the topic weight vector $\theta _ { j } ^ { l }$ of sentence $j$ quantifies the topic usage of its document context $d _ { j }$ at layer $l$ . It is further used as an additional feature of the language model to guide the word generation inside sentence $j$ , as shown in Fig. 1 (b). It is clear that rGBN-RNN has two temporal structures: a deep recurrent topic model to extract the temporal topic weight vectors from the sequential document contexts, and a language model to estimate the probability of each sentence given its corresponding hierarchical topic weight vector. Characterizing the word-sentencedocument hierarchy to incorporate both intra- and inter-sentence information, rGBN-RNN learns more coherent and interpretable topics and increases the generative power of the language model. Distinct from existing topic-guided language models, the temporally related hierarchical topics of rGBN exhibit different statistical properties across layers, which better guides language model to improve its language generation ability.
|
| 65 |
+
|
| 66 |
+
# 2.3 MODEL LIKELIHOOD AND INFERENCE
|
| 67 |
+
|
| 68 |
+
For rGBN-RNN, given $\{ \Phi ^ { l } , \pmb { \Pi } ^ { l } \} _ { l = 1 } ^ { L }$ , the marginal likelihood of the sequence of sentence-context pairs $( \{ s _ { 1 } , d _ { 1 } \} , \dots , \{ s _ { J } , d _ { J } \} )$ of document $\mathcal { D }$ is defined as
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\begin{array} { r } { P \left( \mathcal { D } \mid \{ \Phi ^ { l } , \mathbf { T } ^ { l } \} _ { l = 1 } ^ { L } \right) = \int \prod _ { j = 1 } ^ { J } \left\{ p \left( d _ { j } \mid \Phi ^ { 1 } \theta _ { j } ^ { 1 } \right) \left[ \prod _ { t = 1 } ^ { T _ { j } } p \left( y _ { j t } \mid y _ { j , < t } , \theta _ { j } ^ { 1 ; L } \right) \right] \left[ \prod _ { l = 1 } ^ { L } p \left( \theta _ { j } ^ { l } \mid e _ { j } ^ { l } , \tau _ { 0 } \right) \right] \right\} d \theta _ { 1 : J } ^ { 1 : L } , } \end{array}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $\mathbf { \boldsymbol { e } } _ { j } ^ { l } : = \Phi ^ { l + 1 } \mathbf { \boldsymbol { \theta } } _ { j } ^ { l + 1 } + \Pi ^ { l } \mathbf { \boldsymbol { \theta } } _ { j - 1 } ^ { l }$ . The inference task is to learn the parameters of both the topic model and language model components. One naive solution is to alternate the training between these two components in each iteration: First, the topic model is trained using a sampling based iterative algorithm provided in Guo et al. (2018); Second, the language model is trained with maximum likelihood estimation under a standard cross-entropy loss. While this naive solution can utilize readily available inference algorithms for both rGBN and the language model, it may suffer from stability and convergence issues. Moreover, the need to perform a sampling based iterative algorithm for rGBN inside each iteration limits the scalability of the model for both training and testing.
|
| 75 |
+
|
| 76 |
+
Algorithm 1 Hybrid SG-MCMC and recurrent autoencoding variational inference for rGBN-RNN.
|
| 77 |
+
|
| 78 |
+
<table><tr><td>Set mini-batch size m and the number of layer L Initialize encoder and neural languagemodel parameter parameter Ω,and topic model parameter {Φl,l}=1·</td></tr><tr><td>foriter=1,2,. do</td></tr><tr><td>Randomly select a mini-batch of m documents consisting of J sentences to form a subset X =</td></tr><tr><td>{di,1:J,Si,1:J}m1; m,J,L</td></tr><tr><td>Draw random noise {e',j }i=1.j=1,l=1 from uniform distribution;</td></tr><tr><td>Calculate VΩL (S2, Φl,II'; X,e,j) according to (6),and update Ω; Sample 0’,j from (7) and (8) via Ω</td></tr><tr><td>to update {II′}=1 and {Φ′}𝑖=1, will be described in Appendix C; end for</td></tr></table>
|
| 79 |
+
|
| 80 |
+
To this end, we introduce a variational recurrent inference network (encoder) to learn the latent temporal topic weight vectors $\cdot$ . Denoting $\begin{array} { r } { Q = \prod _ { j = 1 } ^ { J } \prod _ { l = 1 } ^ { L } q ( \pmb { \theta } _ { j } ^ { l } | \pmb { d } _ { \leq j } ) } \end{array}$ , the ELBO of the log marginal likelihood shown in (5) can be constructed as
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\begin{array} { r } { L = \sum _ { j = 1 } ^ { J } \mathbb { E } _ { Q } \left[ \ln p \left( d _ { j } | \Phi | ^ { \mathbf { i } } \pmb { \Phi } _ { j } ^ { 1 } \right) + \sum _ { t = 1 } ^ { T _ { j } } \ln p \left( y _ { j , t } | y _ { j , < t } , \pmb { \theta } _ { j } ^ { 1 ; L } \right) \right] - \sum _ { j = 1 } ^ { J } \sum _ { l = 1 } ^ { L } \mathbb { E } _ { Q } \left[ \ln \frac { q \left( \pmb { \theta } _ { j } ^ { l } | \pmb { d } _ { \pmb { \theta } _ { j } ^ { l } } \right) } { p \left( \pmb { \theta } _ { j } ^ { l } | \mathbf { e } _ { j } ^ { l } , \tau _ { 0 } \right) } \right] , } \end{array}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
which unites both the terms that are primarily responsible for training the recurrent hierarchical topic model component, and terms for training the neural language model component. Similar to Zhang et al. (2018), we define $q ( \pmb { \theta } _ { j } ^ { l } \ \vert \ \pmb { d } _ { \leq j } ) = \bar { \mathrm { W e i b u l l } } ( \pmb { k } _ { j } ^ { l } , \pmb { \lambda } _ { j } ^ { l } )$ , a random sample from which can be obtained by transforming standard uniform variables $\epsilon _ { j } ^ { l }$ as
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\pmb { \theta } _ { j } ^ { l } = \lambda _ { j } ^ { l } \big ( - \ln ( 1 - \epsilon _ { j } ^ { l } ) \big ) ^ { 1 / { k _ { j } ^ { l } } } .
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
To capture the temporal dependencies between the topic weight vectors, both $k _ { j } ^ { l }$ and $\lambda _ { j } ^ { l }$ , from the bottom to top layers, can be expressed as
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r } { \pmb { h } _ { j } ^ { s , l } = \mathrm { R N N } _ { \mathrm { s e n t } } ^ { l } \big ( \pmb { h } _ { j - 1 } ^ { s , l } , \pmb { h } _ { j } ^ { s , l - 1 } \big ) , \pmb { k } _ { j } ^ { l } = f _ { k } ^ { l } \big ( \pmb { h } _ { j } ^ { s , l } \big ) , \pmb { \lambda } _ { j } ^ { l } = f _ { \lambda } ^ { l } \big ( \pmb { h } _ { j } ^ { s , l } \big ) , } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $h _ { j } ^ { s , 0 } = d _ { j } , h _ { 0 } ^ { s , l } = 0 , $ denotes the sentence-level recurrent encoder at layer $\it l$ implemented with a basic RNN cell, capturing the sequential relationship between sentences within a document, $h _ { j } ^ { s , l }$ denotes the hidden state of $\mathrm { R N N } _ { \mathrm { s e n t } } ^ { l }$ , and superscript $s$ in $h _ { j } ^ { s , l }$ denotes “sentencelevel RNN” used to distinguish the hidden state of language model in (3) . Note both $f _ { k } ^ { l }$ and $f _ { \lambda } ^ { l }$ are nonlinear functions mapping state $h _ { j } ^ { s , l }$ to the parameters of $\theta _ { j } ^ { l }$ , implemented with $f ( { \pmb x } ) =$ $\ln ( 1 + \exp ( \mathbf { W } x + b ) )$ .
|
| 99 |
+
|
| 100 |
+
Rather than finding a point estimate of the global parameters $\{ \Phi ^ { l } , \Pi ^ { l } \} _ { l = 1 } ^ { L }$ of the rGBN, we adopt a hybrid inference algorithm by combining TLASGR-MCMC described in Cong et al. (2017a); Zhang et al. (2018) and our proposed recurrent variational inference network. In other words, the global parameters $\{ \bar { \boldsymbol { \Phi } } ^ { l } , \boldsymbol { \Pi } ^ { l } \} _ { l = 1 } ^ { \bar { L } }$ can be sampled with TLASGR-MCMC, while the parameters of the language model and variational recurrent inference network, denoted by $\pmb { \Omega }$ , can be updated via stochastic gradient descent (SGD) by maximizing the ELBO in (6). We describe a hybrid variational/sampling inference for rGBN-RNN in Algorithm 1 and provide more details about sampling $\{ \Phi ^ { l } , \pmb { \Pi } ^ { l } \} _ { l = 1 } ^ { L }$ with TLASGR-MCMC in Appendix C. We defer the details on model complexity to Appendix E.
|
| 101 |
+
|
| 102 |
+
To sum up, as shown in Fig. 1(c), the proposed rGBN-RNN works with a recurrent variational autoencoder inference framework, which takes the document context of the $j$ th sentence within a document as input and learns hierarchical topic weight vectors $\theta _ { j } ^ { 1 : L }$ that evolve sequentially with $j$ The learned topic vectors in different layer are then used to reconstruct the document context input and as an additional feature for the language model to generate the $j$ th sentence.
|
| 103 |
+
|
| 104 |
+
# 3 EXPERIMENTAL RESULTS
|
| 105 |
+
|
| 106 |
+
We consider three publicly available corpora, including APNEWS, IMDB, and BNC. The links, preprocessing steps, and summary statistics for them are deferred to Appendix D. We consider a recurrent variational inference network for rGBN-RNN to infer $\theta _ { j } ^ { l }$ , as shown in Fig. 1(c), whose number of hidden units in (8) are set the same as the number of topics in the corresponding layer.
|
| 107 |
+
|
| 108 |
+
Following Lau et al. (2017), word embeddings are pre-trained 300-dimension word2vec Google News vectors (https://code.google.com/archive/p/word2vec/). Dropout with a rate of 0.4 is used to the input of the stacked-RNN at each layer, i.e., $\dot { a } _ { j , t } ^ { l }$ or $W _ { e } \left[ \boldsymbol { x } _ { j , t } \right]$ in (3). The gradients are clipped if the norm of the parameter vector exceeds 5. We use the Adam optimizer (Kingma & Ba, 2015) with learning rate $1 0 ^ { - 3 }$ . The length of an input sentence is fixed to 30. We set the mini-batch size as 8, number of training epochs as 5, and scaling hyperparameter $\tau _ { 0 }$ as 1. Code in TensorFlow is provided.
|
| 109 |
+
|
| 110 |
+
# 3.1 QUANTITATIVE COMPARISON
|
| 111 |
+
|
| 112 |
+
Perplexity: For fair comparison, we use standard language model perplexity as the evaluation metric, by considering the following baselines: $( i )$ a standard LSTM language model (Hochreiter & Schmidhuber, 1997); (ii) LCLM (Tian & Cho, 2016), a larger-context language model that incorporates context from preceding sentences, which are treated as a bag of words; (iii) a standard LSTM language model incorporating the topic information of a separately trained LDA (LDA+LSTM); (iv) Topic-RNN (Dieng et al., 2017), a hybrid model rescoring the prediction of the next word by incorporating the topic information through a linear transformation; $( \nu )$ TDLM (Lau et al., 2017), a joint learning framework which learns a convolutional based topic model and a language model simultaneously. (vi) TCNLM (Wang et al., 2018), which extracts the global semantic coherence of a document via a neural topic model, with the probability of each learned latent topic further adopted to build a mixture-of-experts language model; (vii) TGVAE (Wang et al., 2019), combining a variational auto-encoder based neural sequence model with a neural topic model; (viii) GBN-RNN, a simplified rGBN-RNN that removes the recurrent structure of its rGBN component.
|
| 113 |
+
|
| 114 |
+
For rGBN-RNN, to ensure the information about the words in the $j$ th sentence to be predicted is not leaking through the sequential document context vectors at the testing stage, the input $d _ { j }$ in (8) only summarizes the preceding sentences $S _ { < j }$ . For GBN-RNN, following TDLM (Lau et al., 2017) and TCNLM (Wang et al., 2018), all the sentences in a document, excluding the one being predicted, are used to obtain the BoW document context. As shown in Table 1, rGBN-RNN outperforms all baselines, and the trend of improvement continues as its number of layers increases, indicating the effectiveness of assimilating recurrent hierarchical topic information. rGBN-RNN consistently outperforms GBN-RNN, suggesting the benefits of exploiting the sequential dependencies of the sentence-contexts for language modeling. Moreover, comparing Table 1 and Table 4 of Appendix E suggests rGBN-RNN, with its hierarchical and temporal topical guidance, achieves better performance with fewer parameters than comparable RNN-based baselines.
|
| 115 |
+
|
| 116 |
+
Note that for language modeling, there has been significant recent interest in replacing RNNs with Transformer (Vaswani et al., 2017), which consists of stacked multi-head self-attention modules, and its variants (Dai et al., 2019; Devlin et al., 2019; Radford et al., 2018; 2019). While Transformer based language models have been shown to be powerful in various natural language processing tasks, they often have significantly more parameters, require much more training data, and take much longer to train than RNN-based language models. For example, Transformer-XL with 12L and that with 24L (Dai et al., 2019), which improve Transformer to capture longer-range dependencies, have 41M and 277M parameters, respectively, while the proposed rGBN-RNN with three stochastic hidden layers has as few as $\cdot$ parameters, as shown in Table 4, when used for language modeling. From a structural point-of-view, we consider the proposed rGBN-RNN as complementary to rather than competing with Transformer based language models, and consider replacing RNN with Transformer to construct rGBN guided Transformer as a promising future extension.
|
| 117 |
+
|
| 118 |
+
BLEU: Following Wang et al. (2019), we use test-BLEU to evaluate the quality of generated sentences with a set of real test sentences as the reference, and self-BLEU to evaluate the diversity of the generated sentences (Zhu et al., 2018). Given the global parameters of the deep recurrent topic model (rGBN) and language model, we can generate the sentences by following the data generation process of rGBN-RNN: we first generate topic weight vectors $\theta _ { j } ^ { L }$ randomly and then downward propagate it through the rGBN as in (2) to generate $\theta _ { j } ^ { < L }$ . By assimilating the random draw topic weight vectors with the hidden states of the language model in each layer depicted in (3), we generate a corresponding sentence, where we start from a zero hidden state at each layer in the language model, and sample words sequentially until the end-of-the-sentence symbol is generated. Comparisons of the BLEU scores between different methods are shown in Fig. 2, using the benchmark tool in Texygen (Zhu et al., 2018); We show below BLEU-3 and BLEU-4 for BNC and defer the analogous plots for IMDB and APNEWS to Appendix G and H. Note we set the validation dataset as the ground-truth.
|
| 119 |
+
|
| 120 |
+
Table 1: Comparison of perplexity on three different datasets.
|
| 121 |
+
|
| 122 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">LSTM Size</td><td rowspan="2">Topic Size</td><td colspan="3">Perplexity</td></tr><tr><td>APNEWS</td><td>IMDB</td><td>BNC</td></tr><tr><td rowspan="2">LCLM(Tian & Cho,2016)</td><td>600</td><td></td><td>54.18</td><td>67.78</td><td>96.50</td></tr><tr><td>900-900</td><td>一</td><td>50.63</td><td>67.86</td><td>87.77</td></tr><tr><td rowspan="2">LDA+LSTM (Lau et al., 2017)</td><td>600</td><td>100</td><td>55.52</td><td>69.64</td><td>96.50</td></tr><tr><td>900-900</td><td>100</td><td>50.75</td><td>63.04</td><td>87.77</td></tr><tr><td rowspan="2">TopicRNN (Dieng et al.,2017)</td><td>600</td><td>100</td><td>54.54</td><td>67.83</td><td>93.57</td></tr><tr><td>900-900</td><td>100</td><td>50.24</td><td>61.59</td><td>84.62</td></tr><tr><td rowspan="2">TDLM (Lau et al., 2017)</td><td>600</td><td>100</td><td>52.75</td><td>63.45</td><td>85.99</td></tr><tr><td>900-900</td><td>100</td><td>48.97</td><td>59.04</td><td>81.83</td></tr><tr><td>TCNLM (Wang et al.,2018)</td><td>600</td><td>100</td><td>52.63</td><td>62.64</td><td>86.44</td></tr><tr><td rowspan="2">TGVAE (Wang et al.,2019)</td><td>900-900</td><td>100</td><td>47.81</td><td>56.38</td><td>80.14</td></tr><tr><td>600</td><td>50</td><td>48.73</td><td>57.11</td><td>87.86</td></tr><tr><td rowspan="2">basic-LSTM(Hochreiter & Schmidhuber,1997)</td><td>600</td><td>一</td><td>64.13</td><td>72.14</td><td>102.89</td></tr><tr><td>900-900</td><td></td><td>58.89</td><td>66.47</td><td>94.23</td></tr><tr><td rowspan="2">GBN-RNN</td><td>900-900-900</td><td>一</td><td>60.13</td><td>65.16</td><td>95.73</td></tr><tr><td>600 600-512</td><td>100</td><td>47.42</td><td>57.01</td><td>86.39</td></tr><tr><td rowspan="3"></td><td></td><td>100-80</td><td>44.64</td><td>55.42</td><td>82.95</td></tr><tr><td>600-512-256</td><td>100-80-50</td><td>44.35</td><td>54.53</td><td>80.25</td></tr><tr><td>600</td><td>100</td><td>46.35</td><td>55.76</td><td>81.94</td></tr><tr><td rowspan="2">rGBN-RNN</td><td>600-512</td><td>100-80</td><td>43.26</td><td>53.82</td><td>80.25</td></tr><tr><td>600-512-256</td><td>100-80-50</td><td>42.71</td><td>51.36</td><td>79.13</td></tr></table>
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 2: BLEU scores of different methods for BNC. $\mathbf { X }$ -axis denotes test-BLEU, y-axis self-BLEU, and a better BLEU score would fall within the lower right corner.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 3: Visualization of the $L _ { 2 }$ -norm of the hidden states of the language model of rGBN-RNN, shown in the top-row, and that of GBN-RNN, shown in the bottom row.
|
| 131 |
+
|
| 132 |
+
For all datasets, it is clear that rGBN-RNN yields both higher test-BLEU and lower self-BLEU scores than related methods do, indicating the stacked-RNN based language model in rGBN-RNN generalizes well and does not suffer from mode collapse (i.e., low diversity).
|
| 133 |
+
|
| 134 |
+
# 3.2 QUALITATIVE ANALYSIS
|
| 135 |
+
|
| 136 |
+
Hierarchical structure of language model: In Fig. 3, we visualize the hierarchical multi-scale structures learned with the language model of rGBN-RNN and that of GBN-RNN, by visualizing the $L _ { 2 }$ -norm of the hidden states in each layer, while reading a sentence from the APNEWS validation set as “the service employee international union asked why cme group needs tax relief when it is making huge amounts of money?” As shown in Fig. 3(a), in the bottom hidden layer (h1), the $\cdot$ norm sequence varies quickly from word to word, except within short phrases such “service employee”, “international union,” and “tax relief,” suggesting layer h1 is in charge of capturing short-term local dependencies. By contrast, in the top hidden layer (h3), the $L _ { 2 }$ norm sequence varies slowly and exhibits semantic/syntactic meaningful long segments, such as “service employee international union,” “asked why cme group needs tax relief,” “when it is,” and “making huge amounts of,” suggesting that layer h3 is in charge of capturing long-range dependencies. Therefore, the language model in rGBN-RNN can allow more specific information to transmit through lower layers, while allowing more general higher level information to transmit through higher layers. Our proposed model have the ability to learn hierarchical structure of the sequence, despite without designing the multiscale RNNs on purpose like Chung et al. (2017). We also visualize the language model of GBN-RNN in Fig. 3(b); with much less smoothly time-evolved deeper layers, GBN-RNN fails to utilize its stacked RNN structure as effectively as rGBN-RNN does. This suggests that the language model is much better trained in rGBN-RNN than in GBN-RNN for capturing long-range temporal dependencies, which helps explain why rGBN-RNN exhibits clearly boosted BLEU scores in comparison to GBN-RNN.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 4: Topics and their temporal trajectories inferred by a three-hidden-layer rGBN-RNN from the APNEWS dataset, and the generated sentences under topic guidance (best viewed in color). Top words of each topic at layer 3, 2, 1 are shown in orange, yellow and blue boxes respectively, and each sentence is shown in a dotted line box labeled with the corresponding topic index. Sentences generated with a combination of topics in different layers are at the bottom of the figure.
|
| 140 |
+
|
| 141 |
+
Hierarchical topics: We present an example topic hierarchy inferred by a three-layer rGBN-RNN from APNEWS. In Fig. 4, we select a large-weighted topic at the top hidden layer and move down the network to include any lower-layer topics connected to their ancestors with sufficiently large weights. Horizontal arrows link temporally related topics at the same layer, while top-down arrows link hierarchically related topics across layers. For example, topic 48 of layer 3 on “budget, lawmakers, gov., revenue,” is related not only in hierarchy to topic 57 on “lawmakers, pay, proposal, legislation” and topic 60 of the lower layer on “budget, gov., revenue, vote, costs, mayor,” but also in time to topic 35 of the same layer on “democratic, taxes, proposed, future, state.” Highly interpretable hierarchical relationships between the topics at different layers, and temporal relationships between the topics at the same layer are captured by rGBN-RNN, and the topics are often quite specific semantically at the bottom layer while becoming increasingly more general when moving upwards.
|
| 142 |
+
|
| 143 |
+
Sentence generation under topic guidance: Given the learned rGBN-RNN, we can sample the sentences both conditioning on a single topic of a certain layer and on a combination of the topics from different layers. Shown in the dotted-line boxes in Fig. 4, most of the generated sentences conditioned on a single topic or a combination of topics are highly related to the given topics in terms of their semantical meanings but not necessarily in key words, indicating the language model is successfully guided by the recurrent hierarchical topics. These observations suggest that rGBN-RNN has successfully captured syntax and global semantics simultaneously for natural language generation.
|
| 144 |
+
|
| 145 |
+
Sentence/paragraph generation conditioning on a paragraph: Given the GBN-RNN and rGBNRNN learned on APNEWS, we further present the generated sentences conditioning on a paragraph, as shown in Fig. 5. To randomly generate sentences, we encode the paragraph into a hierarchical latent representation and then feed it into the stacked-RNN. Besides, we can generate a paragraph with rGBN-RNN, using its recurrent inference network to encode the paragraph into a dynamic hierarchical latent representation, which is fed into the language model to predict the word sequence
|
| 146 |
+
|
| 147 |
+
# Document
|
| 148 |
+
|
| 149 |
+
。 the senate sponsor (…) , a house committee last week removed photo ids issued by public colleges and universities from the measure sponsored by republican rep. susan lynn , who said she agreed with the change . the house approved the bill on a 65-30 vote on monday evening . but republican sen. bill ketron in a statement noted that the upper chamber overwhelmingly rejected efforts to take student ids out of the bill when it passed 21-8 earlier this month . ketron said he would take the bill to conference committee if needed .
|
| 150 |
+
|
| 151 |
+
# Generated Sentences with GBN-RNN
|
| 152 |
+
|
| 153 |
+
$^ { \circ }$ if the house and senate agree , it will be the first time they 'll have to seek their first meeting .
|
| 154 |
+
。 the proposal would also give lawmakers with more money to protect public safety , he said .
|
| 155 |
+
|
| 156 |
+
# Generated Sentences with rGBN-RNN
|
| 157 |
+
|
| 158 |
+
the proposal , which was introduced in the house on a vote on wednesday , has already passed the senate floor to the house the city commission voted last week to approve the law , which would have allowed the council to approve the new bill .
|
| 159 |
+
|
| 160 |
+
# Generated temporal Sentences with rGBN-RNN (Paragraph)
|
| 161 |
+
|
| 162 |
+
senate president pro tem joe scarnati said the governor 's office has never resolved the deadline for a vote in the house . the proposal is a new measure version of the bill to enact a senate committee to approve the emergency manager ‘s emergency license . the house gave the bill to six weeks of testimony , but the vote now goes to the full house for consideration . jackson signed his paperwork wednesday with the legislature .the proposal would also give lawmakers with more money to protect public safety , he said . "a spokesman for the federal department of public safety says it has been selected for a special meeting for the state senate to investigate his proposed law . a new state house committee has voted to approve a measure to let idaho join a national plan to ban private school systems at public schools . the campaign also launched a website at the university of california , irvine , which are studying the current proposal .
|
| 163 |
+
|
| 164 |
+
Figure 5: Examples of generated sentences and paragraph conditioned on a document from APNEWS (green denotes novel words, blue the key words in document and generated sentences.)
|
| 165 |
+
|
| 166 |
+
in each sentence of the input paragraph. It is clear that both the proposed GBN-RNN and rGBN-RNN can successfully capture the key textual information of the input paragraph, and generate diverse realistic sentences. Interestingly, the rGBN-RNN can generate semantically coherent paragraphs, incorporating contextual information both within and beyond the sentences. Note that with the topics that extract the document-level word cooccurrence patterns, our proposed models can generate semantically-meaningful words, which may not exist in the original document.
|
| 167 |
+
|
| 168 |
+
# 4 CONCLUSION
|
| 169 |
+
|
| 170 |
+
We propose a recurrent gamma belief network (rGBN) guided neural language modeling framework, a novel method to learn a language model and a deep recurrent topic model simultaneously. For scalable inference, we develop hybrid SG-MCMC and recurrent autoencoding variational inference, allowing efficient end-to-end training. Experiments results conducted on real world corpora demonstrate that the proposed models outperform a variety of shallow-topic-model-guided neural language models, and effectively generate the sentences from the designated multi-level topics or noise, while inferring interpretable hierarchical latent topic structure of document and hierarchical multiscale structures of sequences. For future work, we plan to extend the proposed models to specific natural language processing tasks, such as machine translation, image paragraph captioning, and text summarization. Another promising extension is to replace the stacked-RNN in rGBN-RNN with Transformer, i.e., constructing an rGBN guided Transformer as a new larger-context neural language model.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Sungjin Ahn, Heeyoul Choi, Tanel Parnamaa, and Yoshua Bengio. A neural knowledge language model. arXiv: Computation and Language, 2017.
|
| 175 |
+
|
| 176 |
+
D. M. Blei and J. D. Lafferty. Dynamic topic models. In ICML, 2006.
|
| 177 |
+
|
| 178 |
+
David M Blei, Andrew Y Ng, and Michael I Jordan. Latent Dirichlet allocation. Journal of Machine Learning Research, 3:993–1022, 2003.
|
| 179 |
+
|
| 180 |
+
Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Fethi Bougares, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Computer Science, 2014.
|
| 181 |
+
|
| 182 |
+
Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. In ICLR, 2017.
|
| 183 |
+
|
| 184 |
+
Yulai Cong, Bo Chen, Hongwei Liu, and Mingyuan Zhou. Deep latent Dirichlet allocation with topic-layer-adaptive stochastic gradient Riemannian MCMC. In ICML, 2017a.
|
| 185 |
+
|
| 186 |
+
Yulai Cong, Bo Chen, and Mingyuan Zhou. Fast simulation of hyperplane-truncated multivariate normal distributions. Bayesian Anal., 12(4):1017–1037, 2017b.
|
| 187 |
+
|
| 188 |
+
BNC Consortium. The British National Corpus, version 3 (BNC XML Edition). http://www. natcorp.ox.ac.uk, 2007.
|
| 189 |
+
|
| 190 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime G Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In ACL, 2019.
|
| 191 |
+
|
| 192 |
+
Jacob Devlin, Mingwei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In north american chapter of the association for computational linguistics, pp. 4171–4186, 2019.
|
| 193 |
+
|
| 194 |
+
Adji B Dieng, Chong Wang, Jianfeng Gao, and John Paisley. TopicRNN: A recurrent neural network with long-range semantic dependency. In ICLR, 2017.
|
| 195 |
+
|
| 196 |
+
Zhe Gan, Changyou Chen, Ricardo Henao, David Carlson, and Lawrence Carin. Scalable deep Poisson factor analysis for topic modeling. In ICML, pp. 1823–1832, 2015.
|
| 197 |
+
|
| 198 |
+
Zhe Gan, Chuang Gan, Xiaodong He, Yunchen Pu, Kenneth Tran, Jianfeng Gao, Lawrence Carin, and Li Deng. Semantic compositional networks for visual captioning. In CVPR, pp. 1141–1150, 2017.
|
| 199 |
+
|
| 200 |
+
Sebastian Gehrmann, Yuntian Deng, and Alexander Rush. Bottom-up abstractive summarization. In EMNLP, pp. 4098–4109, 2018.
|
| 201 |
+
|
| 202 |
+
Mark A Girolami and Ben Calderhead. Riemann manifold Langevin and Hamiltonian Monte Carlo methods. Journal of The Royal Statistical Society Series B-statistical Methodology, 73(2):123–214, 2011.
|
| 203 |
+
|
| 204 |
+
A. Graves, A. Mohamed, and G. Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, pp. 6645–6649, 2013.
|
| 205 |
+
|
| 206 |
+
Alex Graves. Generating sequences with recurrent neural networks. arXiv: Neural and Evolutionary Computing, 2013.
|
| 207 |
+
|
| 208 |
+
T. L. Griffiths and M. Steyvers. Finding scientific topics. Proceedings of the National Academy of Sciences, 101:5228–5235, 2004.
|
| 209 |
+
|
| 210 |
+
Thomas L Griffiths, Mark Steyvers, David M Blei, and Joshua B Tenenbaum. Integrating topics and syntax. In NeurIPS, pp. 537–544, 2004.
|
| 211 |
+
|
| 212 |
+
Dandan Guo, Bo Chen, Hao Zhang, and Mingyuan Zhou. Deep Poisson gamma dynamical systems. In NeurIPS, pp. 8451–8461, 2018.
|
| 213 |
+
|
| 214 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. Neural Computation, 9(8): 1735–1780, 1997.
|
| 215 |
+
|
| 216 |
+
Matthew D Hoffman, David M Blei, Chong Wang, and John Paisley. Stochastic variational inference. The Journal of Machine Learning Research, 14(1):1303–1347, 2013.
|
| 217 |
+
|
| 218 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 219 |
+
|
| 220 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2013.
|
| 221 |
+
|
| 222 |
+
D Klein and Christopher D Manning. Accurate unlexicalized parsing. In Meeting of the Association for Computational Linguistics, 2003.
|
| 223 |
+
|
| 224 |
+
Jey Han Lau, Timothy Baldwin, and Trevor Cohn. Topically driven neural language model. In meeting of the association for computational linguistics, pp. 355–365, 2017.
|
| 225 |
+
|
| 226 |
+
C. Li, C. Chen, D. Carlson, and L. Carin. Preconditioned stochastic gradient Langevin dynamics for deep neural networks. arXiv, 2015.
|
| 227 |
+
|
| 228 |
+
Y. Ma, T. Chen, and E. Fox. A complete recipe for stochastic gradient MCMC. In NIPS, pp. 2899–2907, 2015.
|
| 229 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Huang Dan, Andrew Y. Ng, and Christopher Potts.
|
| 230 |
+
Learning Word Vectors for Sentiment Analysis. In Meeting of the Association for Computational Linguistics: Human Language Technologies, 2011.
|
| 231 |
+
Junhua Mao, Wei Xu, Yi Yang, Jiang Wang, Zhiheng Huang, and Alan L Yuille. Deep captioning with multimodal recurrent neural networks (m-RNN). In ICLR, 2015.
|
| 232 |
+
Yishu Miao, Edward Grefenstette, and Phil Blunsom. Discovering discrete latent topics with neural variational inference. In ICML, pp. 2410–2419, 2017.
|
| 233 |
+
Tomas Mikolov and Geoffrey Zweig. Context dependent recurrent neural network language model. In SLT, pp. 234–239, 2012.
|
| 234 |
+
Tomas Mikolov, Martin Karafiat, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Recurrent neural network based language model. In Interspeech, 2010.
|
| 235 |
+
Tomas Mikolov, Stefan Kombrink, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Extensions of recurrent neural network language model. In ICASSP, pp. 5528–5531, 2011.
|
| 236 |
+
Andriy Mnih and Karol Gregor. Neural variational inference and learning in belief networks. In
|
| 237 |
+
ICML, pp. 1791–1799, 2014.
|
| 238 |
+
Sam Patterson and Yee Whye Teh. Stochastic gradient Riemannian Langevin dynamics on the
|
| 239 |
+
probability simplex. In NIPS, pp. 3102–3110, 2013.
|
| 240 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language under
|
| 241 |
+
standing by generative pre-training. 2018.
|
| 242 |
+
Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language
|
| 243 |
+
models are unsupervised multitask learners. 2019.
|
| 244 |
+
Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. Self-critical
|
| 245 |
+
sequence training for image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7008–7024, 2017.
|
| 246 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, pp. 1278–1286, 2014.
|
| 247 |
+
Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In EMNLP, pp. 379–389, 2015.
|
| 248 |
+
Aaron Schein, Hanna Wallach, and Mingyuan Zhou. Poisson–gamma dynamical systems. In Neural Information Processing Systems, 2016.
|
| 249 |
+
Akash Srivastava and Charles Sutton. Autoencoding variational inference for topic models. In ICLR, 2017.
|
| 250 |
+
Nitish Srivastava, Ruslan Salakhutdinov, and Geoffrey E Hinton. Modeling documents with deep Boltzmann machines. In Uncertainty in Artificial Intelligence, 2013.
|
| 251 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks.
|
| 252 |
+
In Advances in neural information processing systems, pp. 3104–3112, 2014.
|
| 253 |
+
Yee Whye Teh, Michael I Jordan, Matthew J Beal, and David M Blei. Hierarchical Dirichlet processes. Publications of the American Statistical Association, 101(476):1566–1581, 2006.
|
| 254 |
+
Wang Tian and Kyunghyun Cho. Larger-context language modelling with recurrent neural network. In Meeting of the Association for Computational Linguistics, 2016.
|
| 255 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Neural Information Processing Systems, pp. 6000–6010, 2017.
|
| 256 |
+
Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, 2015.
|
| 257 |
+
Hanna M Wallach. Topic modeling: beyond bag-of-words. In ICML, pp. 977–984, 2006.
|
| 258 |
+
Wenlin Wang, Zhe Gan, Wenqi Wang, Dinghan Shen, Jiaji Huang, Wei Ping, Sanjeev Satheesh, and Lawrence Carin. Topic compositional neural language model. In AISTATS, pp. 356–365, 2018.
|
| 259 |
+
Wenlin Wang, Zhe Gan, Hongteng Xu, Ruiyi Zhang, Guoyin Wang, Dinghan Shen, Changyou Chen, and Lawrence Carin. Topic-guided variational autoencoders for text generation. In NAACL, 2019.
|
| 260 |
+
Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient Langevin dynamics. In ICML, pp. 681–688, 2011.
|
| 261 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron C Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, pp. 2048–2057, 2015.
|
| 262 |
+
Hao Zhang, Bo Chen, Dandan Guo, and Mingyuan Zhou. WHAI: Weibull hybrid autoencoding inference for deep topic modeling. In ICLR, 2018.
|
| 263 |
+
He Zhao, Lan Du, Wray Buntine, and Mingyuan Zhou. Dirichlet belief networks for topic structure learning. In Neural Information Processing Systems, pp. 7955–7966, 2018.
|
| 264 |
+
Mingyuan Zhou and Lawrence Carin. Negative binomial process count and mixture modeling. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(2):307–320, 2015.
|
| 265 |
+
Mingyuan Zhou, Yulai Cong, and Bo Chen. Augmentable gamma belief networks. J. Mach. Learn. Res., 17(163):1–44, 2016.
|
| 266 |
+
Yaoming Zhu, Sidi Lu, Lei Zheng, Jiaxian Guo, Weinan Zhang, Jun Wang, and Yong Yu. Texygen: A benchmarking platform for text generation models. SIGIR, 2018.
|
| 267 |
+
|
| 268 |
+
# A THE GBN-RNN
|
| 269 |
+
|
| 270 |
+
GBN-RNN: $\{ y _ { 1 : T } , d \}$ denotes a sentence-context pair, where $d \in \mathbb { Z } _ { + } ^ { V _ { c } }$ represents the document-level context as a word frequency count vector, the vth element of which counts the number of times the vth word in the vocabulary appears in the document excluding sentence $y _ { 1 : T }$ . The hierarchical model of a $L$ -hidden-layer GBN, from top to bottom, is expressed as
|
| 271 |
+
|
| 272 |
+
$$
|
| 273 |
+
\begin{array} { r l } & { \pmb { \theta } ^ { L } \sim \mathrm { G a m } \left( r , c ^ { L + 1 } \right) , \ldots , \pmb { \theta } ^ { l } \sim \mathrm { G a m } \left( \Phi ^ { l + 1 } \pmb { \theta } ^ { l + 1 } , c ^ { l + 1 } \right) , \ldots , } \\ & { \pmb { \theta } ^ { 1 } \sim \mathrm { G a m } \left( \Phi ^ { 2 } \pmb { \theta } ^ { 2 } , c ^ { 2 } \right) , \ d \sim \mathrm { P o i s } \left( \Phi ^ { 1 } \pmb { \theta } ^ { 1 } \right) , } \end{array}
|
| 274 |
+
$$
|
| 275 |
+
|
| 276 |
+
The stacked-RNN based language model described in (3) is also used in GBN-RNN.
|
| 277 |
+
|
| 278 |
+
Statistical inference: To infer GBN-RNN, we consider a hybrid of stochastic gradient MCMC (Welling & Teh, 2011; Patterson & Teh, 2013; Li et al., 2015; Ma et al., 2015; Cong et al., 2017a), used for the GBN topics $\phi _ { k } ^ { l }$ , and auto-encoding variational inference (Kingma & Welling, 2013; Rezende et al., 2014), used for the parameters of both the inference network (encoder) and RNN. More specifically, GBN-RNN generalizes Weibull hybrid auto-encoding inference (WHAI) of Zhang et al. (2018): it uses a deterministic-downward-stochastic-upward inference network to encode the bag-of-words representation of $^ d$ into the latent topic-weight variables $\pmb { \theta } ^ { l }$ across all hidden layers, which are fed into not only GBN to reconstruct $\textbf { \em d }$ , but also a stacked RNN in language model, as shown in (3), to predict the word sequence in $y _ { 1 : T }$ . The topics $\phi _ { k } ^ { l }$ can be sampled with topic-layeradaptive stochastic gradient Riemannian (TLASGR) MCMC, whose details can be found in Cong et al. (2017a); Zhang et al. (2018), omitted here for brevity. Given the sampled topics $\phi _ { k } ^ { l }$ , the joint marginal likelihood of $\{ y _ { 1 : T } , d \}$ is defined as
|
| 279 |
+
|
| 280 |
+
$$
|
| 281 |
+
p \left( \boldsymbol { y } _ { 1 : T } , d \mid \{ \Phi ^ { l } \} _ { l } \right) = \int p \left( d \mid \Phi ^ { 1 } \theta ^ { 1 } \right) \left[ \prod _ { t = 1 } ^ { T } p \left( \boldsymbol { y } _ { t } \mid \boldsymbol { y } _ { 1 : t - 1 } , \boldsymbol { \theta } ^ { 1 : L } \right) \right] \left[ \prod _ { l = 1 } ^ { L } p \left( \boldsymbol { \theta } ^ { l } \mid \Phi ^ { l + 1 } \boldsymbol { \theta } ^ { l + 1 } \right) \right] d \boldsymbol { \theta } ^ { 1 : L } .
|
| 282 |
+
$$
|
| 283 |
+
|
| 284 |
+
For efficient inference, an inference network as $\begin{array} { r } { Q = \prod _ { l = 1 } ^ { L } q ( \pmb { \theta } ^ { l } | \pmb { d } , \pmb { \Phi } ^ { l + 1 } \pmb { \theta } ^ { l + 1 } ) } \end{array}$ is used to provide a ELBO of the log joint marginal likelihood as
|
| 285 |
+
|
| 286 |
+
$$
|
| 287 |
+
{ \overset { , } { \left( } { y _ { 1 : T } , d \right) } } = \mathbb { E } _ { Q } \left[ \ln p \left( d \mid \Phi ^ { 1 } \theta ^ { 1 } \right) + \sum _ { t = 1 } ^ { T } \ln p \left( y _ { t } \mid y _ { 1 : t - 1 } , \theta ^ { 1 : L } \right) \right] - \sum _ { l = 1 } ^ { L } \mathbb { E } _ { Q } \left[ \ln { \frac { q \left( \theta ^ { l } \mid d , \Phi ^ { l + 1 } \theta ^ { l + 1 } \right) } { p \left( \theta ^ { l } \mid \Phi ^ { l + 1 } \theta ^ { l + 1 } \right) } } \right]
|
| 288 |
+
$$
|
| 289 |
+
|
| 290 |
+
and the training is performed by maximizing $\mathbb { E } _ { p _ { \mathrm { d a t a } } ( y _ { 1 : T } , d ) } [ L ( y _ { 1 : T } , d ) ]$ ; following Zhang et al. (2018), we define $q ( \pmb { \theta } ^ { l } \mid d , \pmb { \Phi } ^ { l + 1 } , \pmb { \theta } ^ { l + 1 } ) = \mathrm { W e i b u l l } ( \pmb { k } ^ { l } + \pmb { \Phi } ^ { l + 1 } \pmb { \theta } ^ { l + 1 } , \pmb { \lambda } ^ { l } )$ , where both $k ^ { l }$ and $\lambda ^ { l }$ are deterministically transformed from $^ d$ using neural networks. Distinct from a usual variational auto-encoder whose inference network has a pure bottom-up structure, the inference network here has a determisticupward–stoachstic-downward ladder structure (Zhang et al., 2018).
|
| 291 |
+
|
| 292 |
+
# B THE COUPLING VECTOR
|
| 293 |
+
|
| 294 |
+
Following Lau et al. (2017), the $\mathbf { \Delta } _ { \cdot \cdot } ^ { a _ { j , t } ^ { l } } = g ^ { l } \left( h _ { j , t } ^ { l } , \theta _ { j } ^ { l } \right)$ can be implemented with a gating unit similar to a GRU (Cho et al., 2014), describe as
|
| 295 |
+
|
| 296 |
+
$$
|
| 297 |
+
\begin{array} { r l } & { z _ { j , t } ^ { l } = \sigma \left( \mathbf { W } _ { z } ^ { l } \pmb { \theta } _ { j } ^ { l } + \mathbf { U } _ { z } ^ { l } \pmb { h } _ { j , t } ^ { l } + \mathbf { b } _ { z } ^ { l } \right) } \\ & { r _ { j , t } ^ { l } = \sigma \left( \mathbf { W } _ { r } ^ { l } \pmb { \theta } _ { j } ^ { l } + \mathbf { U } _ { r } ^ { l } \pmb { h } _ { j , t } ^ { l } + \mathbf { b } _ { r } ^ { l } \right) } \\ & { \hat { h } _ { j , t } ^ { l } = \operatorname { t a n h } \left( \mathbf { W } _ { h } ^ { l } \pmb { \theta } _ { j } ^ { l } + \mathbf { U } _ { h } ^ { l } \left( r _ { j , t } ^ { l } \odot { h } _ { j , t } ^ { l } \right) + \mathbf { b } _ { h } ^ { l } \right) } \\ & { a _ { j , t } ^ { l } = \left( 1 - z _ { j , t } ^ { l } \right) \odot { h } _ { j , t } ^ { l } + z _ { j , t } ^ { l } \odot \hat { h } _ { j , t } ^ { l } } \end{array}
|
| 298 |
+
$$
|
| 299 |
+
|
| 300 |
+
# C SGMCMC FOR RGBN-RNN
|
| 301 |
+
|
| 302 |
+
To allow for scalable inference, we apply the topic-layer-adaptive stochastic gradient Riemannian (TLASGR) MCMC algorithm described in Cong et al. (2017a); Zhang et al. (2018), which can be used to sample simplex-constrained global parameters Cong et al. (2017b) in a mini-batch based manner. It improves its sampling efficiency via the use of the Fisher information matrix (FIM)
|
| 303 |
+
|
| 304 |
+
Girolami & Calderhead (2011), with adaptive step-sizes for the latent factors and transition matrices of different layers. In this section, we discuss how to update the global parameters $\{ \Phi ^ { l } , \Pi ^ { l } \} _ { l = 1 } ^ { L }$ of rGBN in detail and give a complete one in Algorithm in 1.
|
| 305 |
+
|
| 306 |
+
Sample the auxiliary counts: This step is about the “backward” and “upward” pass. Let us denote $\_$ Kl , $\cdot$ , and $x _ { k j } ^ { ( 1 , 1 ) } = d _ { v j }$ , where $-$ is shown in (2). Working backward for $\cdot$ and upward for $\cdot$ , we draw
|
| 307 |
+
|
| 308 |
+
$$
|
| 309 |
+
\begin{array} { r l } & { ( A _ { k 1 j } ^ { l } , . . . , . , A _ { k K _ { l } j } ^ { l } ) \sim \mathrm { M u l t i } \left( x _ { k j } ^ { ( l , l ) } ; \frac { \phi _ { k 1 } ^ { l } \theta _ { 1 j } ^ { l } } { \sum _ { k _ { l } = 1 } ^ { K _ { l } } \phi _ { k k _ { l } } ^ { l } \theta _ { k l } ^ { l } } , . . . , \frac { \phi _ { k K _ { l } } ^ { l } \theta _ { K l } ^ { l } } { \sum _ { k _ { l } = 1 } ^ { K _ { l } } \phi _ { k l } ^ { l } \theta _ { k l } ^ { l } } \right) , } \\ & { x _ { k j } ^ { l + 1 } \sim \mathrm { C R T } \left[ A _ { \cdot k j } ^ { l } + Z _ { \cdot k , j + 1 } ^ { l } , \tau _ { 0 } \left( \sum _ { k _ { l + 1 } = 1 } ^ { K _ { l + 1 } } \phi _ { k k _ { l + 1 } } ^ { l + 1 } \theta _ { k _ { l + 1 } j } ^ { l + 1 } + \sum _ { k _ { l } = 1 } ^ { K _ { l } } \pi _ { k k _ { 1 } } ^ { l } \theta _ { k _ { 1 } , j - 1 } ^ { l } \right) \right] . } \end{array}
|
| 310 |
+
$$
|
| 311 |
+
|
| 312 |
+
Note that via the deep structure, the latent counts xl+1kj will be influenced by the effects from both time $\cdot$ at layer $\cdot$ and time $j$ at layer ${ \it l } + 1$ . With $\_$ and $p _ { 2 } : =$ $\cdot$ , we can sample the latent counts at layer $\cdot$ and ${ \it l } + 1$ by
|
| 313 |
+
|
| 314 |
+
$$
|
| 315 |
+
( x _ { k j } ^ { l + 1 , l } , x _ { k j } ^ { l + 1 , l + 1 } ) \sim \mathrm { M u l t i } \left( x _ { k j } ^ { l + 1 } , p _ { 1 } / ( p _ { 1 } + p _ { 2 } ) , p _ { 2 } / ( p _ { 1 } + p _ { 2 } ) \right) ,
|
| 316 |
+
$$
|
| 317 |
+
|
| 318 |
+
and then draw
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
-
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
In rGBN, the prior and the likelihood of $\{ \Phi ^ { l } \} _ { l = 1 } ^ { L }$ is very similar with $\{ \boldsymbol { \Pi } ^ { l } \} _ { l = 1 } ^ { L }$ , so we also apply the TLASGR MCMC sampling algorithm on both of them conditioned on the auxiliary counts.
|
| 325 |
+
|
| 326 |
+
Sample the hierarchical components $\{ \Phi ^ { l } \} _ { l = 1 } ^ { L }$ : For $\phi _ { k } ^ { l }$ , the $k$ th column of the loading matrix $\Phi ^ { l }$ of layer $l$ , its sampling can be efficiently realized as
|
| 327 |
+
|
| 328 |
+
$$
|
| 329 |
+
\begin{array} { r l r } { { ( \phi _ { k } ^ { l } ) _ { n + 1 } = [ ( \phi _ { k } ^ { l } ) _ { n } + \frac { \varepsilon _ { n } } { P _ { k } ^ { l } } [ ( \rho \tilde { A } _ { : k \cdot } ^ { l } + \eta _ { 0 } ^ { l } ) - ( \rho \tilde { A } _ { : k \cdot } ^ { l } + K _ { l - 1 } \eta _ { 0 } ^ { l } ) ( \phi _ { k } ^ { l } ) _ { n } ] } } \\ & { } & { + \ N ( 0 , \frac { 2 \varepsilon _ { n } } { P _ { k } ^ { l } } [ \mathrm { d i a g } ( \phi _ { k } ^ { l } ) _ { n } - ( \phi _ { k } ^ { l } ) _ { n } ( \phi _ { k } ^ { l } ) _ { n } ^ { T } ] ) ] _ { \angle } , } \end{array}
|
| 330 |
+
$$
|
| 331 |
+
|
| 332 |
+
where $P _ { k } ^ { l }$ is calculated using the estimated FIM, $\begin{array} { r } { \tilde { A } _ { k _ { l } j . } ^ { l } = \sum _ { j = 1 } ^ { J } A _ { k _ { l } k { j } } ^ { l } , \tilde { A } _ { : k \cdot } ^ { l } = \{ \tilde { A } _ { 1 j \cdot } ^ { l } , \cdot \cdot \cdot , \tilde { A } _ { K _ { l } j \cdot } ^ { l } \} ^ { T } } \end{array}$ and $\begin{array} { r } { \tilde { A } _ { \cdot k \cdot } ^ { l } = \sum _ { k _ { l } = 1 } ^ { k _ { l } } \tilde { A } _ { k _ { l } j } ^ { l } . } \end{array}$ , $A _ { k _ { l } k j } ^ { l }$ l l comes from the augmented latent counts $A ^ { l }$ in (13), $\eta _ { 0 } ^ { l }$ l denote the prior of $\phi _ { k } ^ { l }$ , and $[ \cdot ] _ { \angle }$ denotes a simplex constraint.
|
| 333 |
+
|
| 334 |
+
Sample the transmission matrix $\{ \boldsymbol { \Pi } ^ { l } \} _ { l = 1 } ^ { L }$ : For $\pi _ { k } ^ { l }$ , the $k$ th column of the transition matrix $\Pi ^ { l }$ of layer $l$ , its sampling can be efficiently realized as
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\begin{array} { r l } & { \left( \pi _ { k } ^ { l } \right) _ { n + 1 } = \biggr [ \left( \pi _ { k } ^ { l } \right) _ { n } + \frac { \varepsilon _ { n } } { M _ { k } ^ { l } } \left[ \left( \rho \tilde { Z } _ { : k \cdot } ^ { l } + \eta _ { : k } ^ { l } \right) - \left( \rho \tilde { Z } _ { : k \cdot } ^ { l } + \eta _ { . k } ^ { l } \right) \left( \pi _ { k } ^ { l } \right) _ { n } \right] } \\ & { \qquad + \mathcal { N } \left( 0 , \frac { 2 \varepsilon _ { n } } { M _ { k } ^ { l } } \left[ \mathrm { d i a g } ( \pi _ { k } ^ { l } ) _ { n } - ( \pi _ { k } ^ { l } ) _ { n } ( \pi _ { k } ^ { l } ) _ { n } ^ { T } \right] \right) \biggr ] _ { \angle } , } \end{array}
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
where $M _ { k } ^ { l }$ is calculated using the estimated FIM, $\begin{array} { r } { \tilde { Z } _ { k _ { l } j . } ^ { l } = \sum _ { j = 1 } ^ { J } Z _ { k _ { l } k _ { j } } ^ { l } , \tilde { Z } _ { : k \cdot } ^ { l } = \{ \tilde { Z } _ { 1 j \cdot } ^ { l } , \cdot \cdot \cdot , \tilde { Z } _ { K _ { l } j \cdot } ^ { l } \} ^ { T } } \end{array}$ and $\begin{array} { r } { \tilde { Z } _ { \cdot k \cdot } ^ { l } = \sum _ { k _ { l } = 1 } ^ { k _ { l } } \tilde { Z } _ { k _ { l } j } ^ { l } } \end{array}$ · , $Z _ { k _ { l } k j } ^ { l }$ comes from the augmented latent counts $Z ^ { l }$ in (16), and $[ . ] _ { \angle }$ denotes a simplex constraint, and $\eta _ { ; k } ^ { l }$ denotes the prior of $\pi _ { k } ^ { l }$ , more details about TLASGR-MCMC for our proposed model can be found in Cong et al. (2017a).
|
| 341 |
+
|
| 342 |
+
# D DATASETS
|
| 343 |
+
|
| 344 |
+
We consider three publicly available corpora1. APNEWS is a collection of Associated Press news articles from 2009 to 2016, IMDB is a set of movie reviews collected by Maas et al. (2011), and BNC is the written portion of the British National Corpus (Consortium, 2007). Following the preprocessing steps in Lau et al. (2017), we tokenize words and sentences using Stanford CoreNLP (Klein & Manning, 2003), lowercase all word tokens, and filter out word tokens that occur less than 10 times. For the topic model, we additionally exclude stopwords2 and the top $0 . 1 \%$ most frequent words. All these corpora are partitioned into training, validation, and testing sets, whose summary statistics are provided in Table 2 of the Appendix.
|
| 345 |
+
|
| 346 |
+
Table 2: Summary statistics for the datasets.
|
| 347 |
+
|
| 348 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="2">Vocubalry</td><td colspan="3">Training</td><td colspan="3">Validation</td><td colspan="3">Testing</td></tr><tr><td>LM</td><td>TM</td><td>Docs</td><td>Sents</td><td>Tokens</td><td>Docs</td><td>Sents</td><td>Tokens</td><td>Docs</td><td>Sents</td><td>Tokens</td></tr><tr><td>APNEWS</td><td>34231</td><td>32169</td><td>50K</td><td>0.8M</td><td>15M</td><td>2K</td><td>33K</td><td>0.6M</td><td>2K</td><td>32K</td><td>0.6M</td></tr><tr><td>IMDB</td><td>36009</td><td>34925</td><td>75K</td><td>1.1M</td><td>20M</td><td>12.5K</td><td>0.18M</td><td>0.3M</td><td>12.5K</td><td>0.18M</td><td>0.3M</td></tr><tr><td>BNC</td><td>43703</td><td>41552</td><td>15K</td><td>1M</td><td>18M</td><td>1K</td><td>57K</td><td>1M</td><td>1K</td><td>66K</td><td>1M</td></tr></table>
|
| 349 |
+
|
| 350 |
+
# E COMPLEXITY OF RGBN-RNN
|
| 351 |
+
|
| 352 |
+
The proposed rGBN-RNN consists of both language model and topic model compontopic model component, there are the global parameters of rGBN (decoder), including $\{ \Phi ^ { l } , \Pi ^ { l } \} _ { l = 1 } ^ { L }$ in (2) , and the parameters of the variational recurrent inference network (encoder), consisting of $\cdot$ , $f _ { k } ^ { l }$ , and $\cdot$ in (8). The language model component is parameterized by $\mathrm { L S T M } _ { \mathrm { w o r d } } ^ { l }$ in (3) and the coupling vectors $\cdot$ described in Appendix B. We summarize in Table 3 the complexity of rGBN-RNN (ignoring all bias terms), where $V$ denotes the vocabulary size of the language model, $\cdot$ the dimension of word embedding vectors, $V _ { c }$ the size of the vocabulary of the topic model that excludes stop words, $H _ { l } ^ { w }$ the number of hidden units of the word-level LSTM at layer $\cdot$ (stacked-RNN language model), $H _ { l } ^ { s }$ the number of hidden units of the sentence-level RNN at layer $\cdot$ (variational recurrent inference network), and $\cdot$ the number of topics at layer $\it l$ .
|
| 353 |
+
|
| 354 |
+
Table 4 further compares the number of parameters between various RNN-based language models, where we follow the convention to ignore the word embedding layers. Some models in Table 1 are not included here, because we could not find sufficient information from their corresponding papers or code to accurately calculate the number of model parameters. Note when used for language generation at the testing stage, rGBN-RNN no longer needs its topics $\{ \Phi ^ { l } \}$ , whose parameters are hence not counted. Note the number of parameters of the topic model component is often dominated by that of the language model component.
|
| 355 |
+
|
| 356 |
+
Table 3: Complexity of the three-layer rGBN-RNN.
|
| 357 |
+
|
| 358 |
+
<table><tr><td rowspan="2">Component Param</td><td colspan="2">Language Model</td><td colspan="2"></td><td colspan="4">Topic Model</td></tr><tr><td>LSTMword in (3)</td><td>glinB</td><td>Φin (2)</td><td>II in (2)</td><td></td><td>RNNsent in (8)</td><td>f in (8)</td><td>f in (8)</td></tr><tr><td>Layer1</td><td>O(4×(E+H) ×H")</td><td>O(3×(K1+H)×H1)</td><td>O(Vc × K1)</td><td>O(K1 × K1)</td><td></td><td>O(Vc+H𝑖) × Hi</td><td>O(Hi)</td><td>O(K1 x Hi)</td></tr><tr><td>Layer2</td><td>O(4×(H+H)×H²)</td><td>O(3 × (K2+H) × H)</td><td>O(K1 × K2)</td><td>O(K2 ×K2)</td><td>O((Hi +H²)×H)</td><td></td><td>O(H)</td><td>O(K2 ×H)</td></tr><tr><td>Layer3</td><td>O(4×(H+H)×H))</td><td>1O(3×(K3+H)×H)</td><td></td><td></td><td>[O(K2×K3)|O(K3 × K3)|O(H+H) × H)</td><td></td><td>O(H)</td><td>O(K ×H)</td></tr></table>
|
| 359 |
+
|
| 360 |
+
Table 4: Comparison of the number of parameters of different models when used for language generation.
|
| 361 |
+
|
| 362 |
+
<table><tr><td>Model</td><td>LSTM Size</td><td>Topic Size</td><td># LM Param</td><td>#TMParam</td><td># All Param</td></tr><tr><td>TDLM (Lau et al., 2017)</td><td>600 900-900</td><td>100 100</td><td>3.35M 13.38M</td><td>0.019M 0.019M</td><td>3.37M 13.40M</td></tr><tr><td>basic-LSTM (Hochreiter & Schmidhuber,1997)</td><td>600 900-900 900-900-900</td><td></td><td>2.16M 10.80M 17.68M</td><td></td><td>2.16M 10.80M 17.68M</td></tr><tr><td>GBN-RNN</td><td>600 600-512 600-512-256</td><td>100 100-80 100-80-50</td><td>3.40M 6.50M 7.20M</td><td>0.02M 0.04M 0.05M</td><td>3.42M 6.54M 7.25M</td></tr><tr><td>rGBN-RNN</td><td>600 600-512 600-512-256</td><td>100 100-80 100-80-50</td><td>3.40M 6.50M 7.20M</td><td>0.03M 0.06M 0.07M</td><td>3.43M 6.56M 7.27M</td></tr></table>
|
| 363 |
+
|
| 364 |
+

|
| 365 |
+
Figure 6: Topics and their temporal trajectories inferred by a three-hidden-layer rGBN-RNN from the IMDB dataset, and the generated sentences under topic guidance (best viewed in color). Top words of each topic are shown in orange, yellow and blue box, and each sentence is shown in a dotted line box labeled with the corresponding topic index. Sentences generated with a combination of topics in different layers are at the bottom of the figure.
|
| 366 |
+
|
| 367 |
+

|
| 368 |
+
Figure 7: Topics and their temporal trajectories inferred by a three-hidden-layer rGBN-RNN from the BNC dataset, and the generated sentences under topic guidance (best viewed in color). Top words of each topic are shown in orange, yellow and blue box, and each sentence is shown in a dotted line box labeled with the corresponding topic index. Sentences generated with a combination of topics in different layers are at the bottom of the figure.
|
| 369 |
+
|
| 370 |
+

|
| 371 |
+
Figure 8: BLEU scores of different methods for IMDB. $\mathbf { X }$ -axis denotes test-BLEU, and y-axis self-BLEU. Left panel is BLEU-3 and right is BLEU-4, and a better BLEU score would fall within the lower right corner, where black point represents mean value and circles with different colors denote the elliptical surface of probability of BLEU in a two-dimensional space.
|
| 372 |
+
|
| 373 |
+
# H BLEU SCORES FOR APNEWS
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 9: BLEU scores of different methods for APNEWS. $\mathbf { X }$ -axis denotes test-BLEU, and y-axis self-BLEU. Left panel is BLEU-3 and right is BLEU-4, and a better BLEU score would fall within the lower right corner, where black point represents mean value and circles with different colors denote the elliptical surface of probability of BLEU in a two-dimensional space.
|
parse/train/HJMHpjC9Ym/HJMHpjC9Ym.md
ADDED
|
@@ -0,0 +1,402 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BIG-LITTLE NET: AN EFFICIENT MULTI-SCALE FEATURE REPRESENTATION FOR VISUAL AND SPEECH RECOGNITION
|
| 2 |
+
|
| 3 |
+
Chun-Fu (Richard) Chen, Quanfu Fan, Neil Mallinar, Tom Sercu, Rogerio Feris IBM T.J. Watson Research Center, Yorktown Heights, NY 10598 {chenrich, qfan, neil.r.mallinar, tom.sercu1, rsferis}@us.ibm.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this paper, we propose a novel Convolutional Neural Network (CNN) architecture for learning multi-scale feature representations with good tradeoffs between speed and accuracy. This is achieved by using a multi-branch network, which has different computational complexity at different branches with different resolutions. Through frequent merging of features from branches at distinct scales, our model obtains multi-scale features while using less computation. The proposed approach demonstrates improvement of model efficiency and performance on both object recognition and speech recognition tasks, using popular architectures including ResNet, ResNeXt and SEResNeXt. For object recognition, our approach reduces computation by $1 / 3$ while improving accuracy significantly over $1 \%$ point than the baselines, and the computational savings can be higher up to $1 / 2$ without compromising the accuracy. Our model also surpasses state-of-the-art CNN acceleration approaches by a large margin in terms of accuracy and FLOPs. On the task of speech recognition, our proposed multi-scale CNNs save $30 \%$ FLOPs with slightly better word error rates, showing good generalization across domains.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep Convolutional Neural Network (CNN) models have achieved substantial performance gains in many computer vision and speech recognition tasks (He et al., 2016; 2017; Vinyals et al., 2017; Sercu & Goel, 2016). However, the accuracy obtained by these models usually grows proportionally with their complexity and computational cost. This poses an issue for deploying these models in applications that require real-time inferencing and low-memory footprint, such as self-driving vehicles, human-machine interaction on mobile devices, and robotics.
|
| 12 |
+
|
| 13 |
+
Motivated by these applications, many methods have been proposed for model compression and acceleration, including techniques such as pruning (Dong et al., 2017; Li et al., 2017; Han et al., 2015), quantization (Hubara et al., 2016; Li & Liu, 2016), and low-rank factorization (Wen et al., 2017; Ioannou et al., 2015; Zhang et al., 2016). Most of these methods have been applied to single-scale inputs, without considering multi-resolution processing. More recently, another line of work applies dynamic routing to allocate different workloads in the networks according to image complexity (Wu et al., 2018; Wang et al., 2018; Figurnov et al., 2017; Veit & Belongie, 2018). Multi-scale feature representations have proven successful for many vision and speech recognition tasks compared to single-scale methods (Nah et al., 2017; Chen et al., 2017a; Tóth, 2017; Farabet et al., 2013); however, the computational complexity has not been addressed much in multi-scale networks.
|
| 14 |
+
|
| 15 |
+
The computational cost of a CNN model has much to do with the input image size. A model, if running at half of the image size, can gain a remarkable computational saving of $7 5 \%$ . Based on this fact, we propose an efficient network architecture by combining image information at different scales through a multi-branch network. As shown in Fig. 1, our key idea is to use a high-complexity branch (accurate but costly) for low-scale feature representation and low-complexity branch (efficient but less accurate) for high-scale feature representation. The two types of features are frequently merged together to complement and enrich each other, leading to a stronger feature representation than either of them individually. We refer to the deeper branch operating at low image resolution as Big-Branch and the shallower one as Little-Branch to reflect their differences in computation. The new network architecture is thus called Big-Little Net or bL-Net for short in this paper.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Our proposed Big-Little Net (bL-Net) for efficient multi-scale feature representations. (a) The bL-Net stacks several Big-Little Modules. A bL-module include $K$ branches $K = 2$ in this illustration) where the $k ^ { t h }$ branch represents an image scale of $1 / 2 ^ { k }$ . ‘M’ here denotes a merging operation. (b) Our implementation of the Big-Little Module includes two branches. The Big-Branch has the same structure as the baseline model while the Little-Branch reduces the convolutional layers and feature maps by $\alpha$ and $\beta$ , respectively. Larger values of $\alpha$ and $\beta$ lead to lower computational complexity in Big-Little Net.
|
| 19 |
+
|
| 20 |
+
While being structurally simple, our approach is quite effective. We demonstrate later that when bL-Net is integrated into state-of-the-art CNNs such as ResNet, ResNeXt and SEResNeXt, it yields $2 \times$ computational savings over the baselines without losing any accuracy. It also outperforms many other recently developed approaches based on more sophisticated architectures at the same FLOP count. One work that relates to ours is the Inception model (Szegedy et al., 2016a; 2017), which also leverages parallel pathways in a network building block for efficiency. However, the efficiency of these models relies on substantial use of $1 \times 1$ and separable filters (i.e. $1 \times 3$ and $3 \times 1$ ). In contrast, bL-Net is general and applicable to many architectures including Inception.
|
| 21 |
+
|
| 22 |
+
The main contributions of our paper are summarized as follows:
|
| 23 |
+
|
| 24 |
+
• We propose an efficient and effective multi-scale CNN architecture for object and speech recognition.
|
| 25 |
+
• We demonstrate that our approach reduces computation by $1 / 3$ in models such as ResNet and ResNeXt while improving accuracy over $1 \%$ point than the baselines, and the computational savings can be higher up to $1 / 2$ without losing any accuracy; these results outperform state-of-the-art networks that focus on CNN acceleration by a large margin at the same FLOPs.
|
| 26 |
+
We validate the proposed method on a speech recognition task, where we also achieve better word error rates while reducing the number of FLOPs by $30 \%$ .
|
| 27 |
+
|
| 28 |
+
# 2 RELATED WORK
|
| 29 |
+
|
| 30 |
+
Model Compression and Acceleration. Network pruning (Dong et al., 2017; Li et al., 2017) and quantization (Hubara et al., 2016; Li & Liu, 2016) are popular techniques to remove model redundancy and save computational cost. Another thread of work consists of training a sparse model directly, such as IGCv2 (Xie et al., 2018) and SCConv (Fan et al., 2017). Efficient network architectures like MobileNetV2 (Sandler et al., 2018) and ShuffleNetV2 (Ma et al., 2018) have also been explored for training compact deep networks. Other methods include knowledge distillation (Hinton et al., 2015), compression with structured matrices (Cheng et al., 2015; Sindhwani et al., 2015), and hashing (Chen et al., 2015). Dynamic routing (Wu et al., 2018; Wang et al., 2018; Figurnov et al., 2017; Veit & Belongie, 2018) has also been explored in residual networks to improve efficiency. These methods operate with single-resolution inputs, while our approach processes multi-resolution data. It could be used in tandem with these methods to further improve efficiency.
|
| 31 |
+
|
| 32 |
+
Multi-Resolution Feature Representations. The notion of multi-scale feature representation can be dated back to image pyramids (Adelson et al., 1984) and scale-space theory (Lindeberg & ter Haar Romeny, 1994). More recently, several methods have proposed multi-scale CNN-based architectures for object detection and recognition. MSCNN (Cai et al., 2016), DAG-CNN (Yang & Ramanan, 2015) and FPN (Lin et al., 2017) use features at different layers to form multi-scale features. Hourglass networks (Newell et al., 2016) use a hierarchical multi-resolution model for human pose estimation. However, this approach induces a heavy workload as the complexity of each sub-network in their model is equal. Nah et al. (Nah et al., 2017) and Eigen et al. (Eigen & Fergus, 2015) combine the features from multiple networks working on different resolutions to generate multi-scale features. The overall computational cost grows along with the number of scales, leading to inefficient models. In contrast to existing methods, our approach uses different network capacities for different scales, and yields more powerful multi-scale features by fusing them at multiple levels of the network model.
|
| 33 |
+
|
| 34 |
+
Closely related to our work, approaches such as (Huang et al., 2018; Saxena & Verbeek, 2016), apply multiple branches at multi-scales while aiming at reducing computational complexity. In contrast to our work, their computational gain mostly comes from early exit depending on the input image. Our approach speeds up a network constantly regardless of the input image.
|
| 35 |
+
|
| 36 |
+
# 3 OUR APPROACH
|
| 37 |
+
|
| 38 |
+
We develop a simple, easy-to-implement, yet very efficient and effective network architecture. It learns multi-scale feature representations by fusing multiple branches with different image scales and computational complexity. As shown in Fig. 1, we design a multi-scale feature module with the following principles: (I) each branch corresponds to a single unique image scale (or resolution); (II) the computational cost of a branch is inversely proportional to the scale. Note that the principle (II) implies that we use high-complexity networks at lower resolutions and low-complexity networks at higher resolutions for the sake of efficiency.
|
| 39 |
+
|
| 40 |
+
# 3.1 BIG-LITTLE NET
|
| 41 |
+
|
| 42 |
+
Big-Little Net is a sequence of Big-Little Modules, each one taking input $\mathbf { x } _ { i }$ and producing output $\mathbf { x } _ { i + 1 }$ . Within a Big-Little Module, assume we have $K$ branches working on $K$ scales $[ 1 , \bar { 1 } / 2 , 1 / 4 , . . . , 1 / 2 ^ { K - 1 } ]$ . We denote a feature map $\mathbf { x } _ { i }$ at scale $1 / 2 ^ { k }$ as $\mathbf { x } _ { i } ^ { k }$ , indicating the spatial size of $\mathbf { x } _ { i }$ downsampled by $2 ^ { k }$ with respect to the original input dimension. We use a weighted sum to combine all branches into a feature representation at scale $1 / 2 ^ { k }$ . Mathematically, the module’s output $\mathbf x _ { i + 1 }$ can be expressed by
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\mathbf { x } _ { i + 1 } = F \left( \sum _ { k = 0 } ^ { K - 1 } c ^ { k } S ^ { k } \left( f _ { k } \left( \mathbf { x } _ { i } ^ { k } \right) \right) \right) ,
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
where $f _ { k } ( \cdot )$ denotes a sequence of convolutional layers. Typically for higher $k$ , $f _ { k }$ will have more convolutional layers having more feature maps. $S ^ { k } ( \cdot )$ is the operation that matches the output size of the branches, either: (1) increasing the number feature maps with a $1 \times 1$ convolution, (2) upsampling to match the output size of the $k = 0$ branch, or both. $c ^ { k }$ indicates the weighting coefficients of each scale in the merge while $F ( \cdot )$ is an optional final fusion layer like a convolutional layer.
|
| 49 |
+
|
| 50 |
+
Note that branches are merged at the end of every Big-Little Module and merging the branch outputs happens at the highest resolution and highest number of feature maps between the branches. Maintaining these large intermediate states avoids information loss. A crucial aspect of this design is that through consecutive merging and downsampling, the expensive branches operating at low resolution still have access to the high resolution information, processed by the cheaper branches in the previous module.
|
| 51 |
+
|
| 52 |
+
While our design is suitable for any number of networks, in this work we primarily focus on the case of two networks, i.e., $K = 2$ . We also experimented with $K > 2$ in object and speech recognition; however, the $K = 2$ case provided the best balance between accuracy and computation (See Appendix A.4 and Section 4.2 for details). Following the principles above, we propose a multinetwork architecture that integrates two branches for multi-scale feature representation. Figure 1 (b) shows an example Big-Little Net architecture.
|
| 53 |
+
|
| 54 |
+
The module includes two branches, each of which represents a separate network block from a deep model (accurate but costly) and a less deep counterpart (efficient but less accurate). The two branches are fused at the end through linear combination with unit weights (i.e., $c ^ { 0 } = c ^ { 1 } = 1 . 0$ ). Before fusion, the low resolution feature maps are upsampled using bilinear interpolation to spatially match the higher-resolution counterparts $\bar { ( = { S ^ { 1 } ( \cdot ) } ) }$ . Similarly, the high resolution feature map has an additional $1 \times 1$ convolutional layer to increase the number of output channels $( = S ^ { 0 } ( \cdot ) )$ . Furthermore, since our design is based on ResNet, we add a residual block to further fuse the combined features (i.e., $F ( \cdot )$ is a residual block). For convenience, we refer to these two branches as Big-Branch (more layers and channels at low resolution) and Little-Branch (fewer layers and channels at high resolution), respectively. We also denote the module as Big-Little Module and the entire architecture as Big-Little Net or bL-Net.
|
| 55 |
+
|
| 56 |
+
To control the complexity of bL-Net, we introduce two parameters to specify the complexity of the Little-Branch with respect to the Big-Branch. The Big-Branch typically follows the structure of the original network, but the Little-Branch needs to be heavily slimmed and shortened to reduce computation as it operates on high resolution. Here we use two parameters $\alpha$ and $\beta$ to control the width and depth of the Little-Branch, respectively. As shown in Fig. 1 (b), $\alpha$ specifies the reduction factor of the number of channels in the convolutional layers of Little-Branch with respect to that of the original network while $\beta$ is the reduction factor of the number of convolutional layers. Larger values of $\alpha$ and $\beta$ lead to lower complexity in bL-Net. As demonstrated later, with an appropriate choice of $\alpha$ and $\beta$ (See Table 1 and Table 3), the cost of the Little-Branch can be $1 / 6$ of the $b L$ -Net and $1 / 1 2$ of the original network while still providing sufficient complementary information to the Big-Branch.
|
| 57 |
+
|
| 58 |
+
# 3.2 NETWORK MERGING
|
| 59 |
+
|
| 60 |
+
We consider two options for merging the outputs of the branches. The first option is a linear combination, which joins features from two networks by addition (Newell et al., 2016). The alternative concatenates the outputs of the two networks along the channel dimension, and if needed, a $1 \times 1$ convolution can be subsequently applied to reduce the number of feature maps (Szegedy et al., 2015). Both merging approaches have their pros and cons. With linear combination, the branches can easily compensate each other, meaning each branch can activate output neurons not activated by the other. However, additional cost is added as both the size of feature maps and the number of channels in the two branches need to be adjusted to be the same before addition. On the other hand, merging by concatenation only needs to spatially align the feature maps. On the other hand, concatenation only needs to align the feature map size, however requires a $1 \times 1$ convolution reducing the number of channels after concatenation, which is a more expensive operation than the pointwise addition.
|
| 61 |
+
|
| 62 |
+
While linear combination provides an immediate exchange of the activations of both branches, concatenation relies on the following layers for this exchange. This delay in exchange could possibly be problematic if the information from each branch is destructively altered before merging. For example, a nonlinearity such as ReLU would discard all activations less than zero, effectively ignoring negative features in both branches before merging. Since linear combination does not cause too much overhead and provides better accuracy, we chose linear combination as our merging approach. In Appendix A.4, we empirically show that the linear combination approach performs better than concatenation in object recognition.
|
| 63 |
+
|
| 64 |
+
# 4 EXPERIMENTAL RESULTS
|
| 65 |
+
|
| 66 |
+
We conducted extensive experiments, as discussed below, to validate the effectiveness of our proposed bL-Net on object and speech recognition tasks. bL-Net can be easily integrated with many modern CNNs and here we chose ResNet (He et al., 2016) as the primary architecture to evaluate our approach. For simplicity, from now on, we denote by bL-M the bL-Net using a backbone network $M$ For example, bL-ResNet-50 is the Big-Little net based on ResNet-50.
|
| 67 |
+
|
| 68 |
+
# 4.1 OBJECT RECOGNITION
|
| 69 |
+
|
| 70 |
+
We used the ImageNet dataset (Russakovsky et al., 2015) for all the experiments below on object recognition. This dataset is a common benchmark for object recognition, which contains 1.28 million training images and $5 0 \mathrm { k }$ validation images with labels from 1000 categories. The details of our experimental setup and the network structures for bL-ResNet-50, 101 and 152 can be found in Appendix A.1.
|
| 71 |
+
|
| 72 |
+
Table 1: Complexity study of the Little-Branch $\scriptstyle { \alpha }$ and $\beta$ ) for bL-ResNet-50.
|
| 73 |
+
|
| 74 |
+
<table><tr><td>Model</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td></tr><tr><td>ResNet-50</td><td>23.66%</td><td>4.09</td><td>25.55</td></tr><tr><td>bL-ResNet-50 (α = 2, β = 2)</td><td>22.72%</td><td>2.91 (1.41×)</td><td>26.97</td></tr><tr><td>bL-ResNet-50(α = 2, β= 4)</td><td>22.69%</td><td>2.85 (1.44×)</td><td>26.69</td></tr><tr><td>bL-ResNet-50 (α = 4, β = 2)</td><td>23.20%</td><td>2.49 (1.64×)</td><td>26.31</td></tr><tr><td>bL-ResNet-50 (α= 4, β= 4)</td><td>23.15%</td><td>2.48 (1.65×)</td><td>26.24</td></tr></table>
|
| 75 |
+
|
| 76 |
+
Table 2: Performance comparison for bL-ResNet, bL-ResNeXt and bL-SEResNeXt.
|
| 77 |
+
|
| 78 |
+
<table><tr><td>Model</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td><td>Speed (ms/batch)t</td></tr><tr><td>ResNet-101</td><td>21.95%</td><td>7.80</td><td>44.54</td><td>186</td></tr><tr><td>bL-ResNet-101 (α= 2,β= 4)</td><td>21.80%</td><td>3.89 (2.01×)</td><td>41.85</td><td>140 (1.33×)</td></tr><tr><td>bL-ResNet-101@256(α = 2,β= 4)</td><td>21.04%</td><td>5.08 (1.54×)</td><td>41.85</td><td>162 (1.15×)</td></tr><tr><td>ResNet-152</td><td>21.51%</td><td>11.51</td><td>60.19</td><td>266</td></tr><tr><td>bL-ResNet-152(α = 2,β =4)</td><td>21.16%</td><td>5.04 (2.28×)</td><td>57.36</td><td>178 (1.49×)</td></tr><tr><td>bL-ResNet-152@256 (α= 2, β=4)</td><td>20.34%</td><td>6.58 (1.75x)</td><td>57.36</td><td>205 (1.30×)</td></tr><tr><td>ResNeXt-50 (32×4d)</td><td>22.20%</td><td>4.23</td><td>25.03</td><td>157</td></tr><tr><td>bL-ResNeXt-50 (32×4d) (α =2,β= 4)</td><td>21.60%</td><td>3.03 (1.40×)</td><td>26.19</td><td>125 (1.26×)</td></tr><tr><td>bL-ResNeXt-50@256(α = 2, β= 4)</td><td>20.96%</td><td>3.95 (1.08×)</td><td>26.19</td><td>153 (1.03×)</td></tr><tr><td>ResNeXt-101 (32×4d)</td><td>21.20%</td><td>7.97</td><td>44.17</td><td>269</td></tr><tr><td>bL-ResNeXt-101 (32×4d) (α =2,β =4)</td><td>21.08%</td><td>4.08 (1.95×)</td><td>41.51</td><td>169 (1.59×)</td></tr><tr><td>bL-ResNeXt-101@256(α = 2, β=4)</td><td>20.48%</td><td>5.33 (1.50x)</td><td>41.51</td><td>203 (1.33×)</td></tr><tr><td>ResNeXt-101(64×4d)</td><td>20.73%</td><td>15.46</td><td>83.46</td><td>485</td></tr><tr><td>bL-ResNeXt-101 (64×4d) (α = 2,β =4)</td><td>20.48%</td><td>7.14 (2.17×)</td><td>77.36</td><td>263 (1.98×)</td></tr><tr><td>bL-ResNeXt-101@256 (64×4d) (α = 2, β = 4)</td><td>19.65%</td><td>9.32 (1.66x)</td><td>77.36</td><td>318 (1.53×)</td></tr><tr><td>SEResNeXt-50 (32×4d)</td><td>21.78%</td><td>4.23</td><td>27.56</td><td>216</td></tr><tr><td>bL-SEResNeXt-50 (32×4d) (α = 2,β=4) bL-SEResNeXt-50@256 (32×4d) (α= 2, β = 4)</td><td>21.44%</td><td>3.03 (1.40×)</td><td>28.77</td><td>163 (1.33×)</td></tr><tr><td></td><td>20.74%</td><td>3.95 (1.08×)</td><td>28.77</td><td>192 (1.03×)</td></tr><tr><td>SEResNeXt-101 (32×4d)</td><td>21.00%</td><td>7.97</td><td>48.96</td><td>376</td></tr><tr><td>bL-SEResNeXt-101 (32×4d) (α = 2, β = 4)</td><td>20.87%</td><td>4.08 (1.95×)</td><td>45.88</td><td>235 (1.60×)</td></tr><tr><td>bL-SEResNeXt-101@256 (32×4d) (α = 2,β= 4)</td><td>19.87%</td><td>5.33 (1.50×)</td><td>45.88</td><td>270 (1.39×)</td></tr></table>
|
| 79 |
+
|
| 80 |
+
†: speed is benchmarked on NVIDIA Tesla K80 with batch size 16. Except for $@ 2 5 6$ , speed is evaluated under image size $2 2 4 \times 2 2 4$ . We trained all the ResNet, ResNeXt and SEResNeXt models by ourselves, so the accuracy is slightly different from the papers.
|
| 81 |
+
|
| 82 |
+
ResNet as the backbone network. We experimented with different complexity control factors ( $\overset { \cdot } { \alpha }$ and $\beta$ ) to better understand their effects on performance. $\alpha$ and $\beta$ control both the structural and computational complexity of the Little-Branch, which determines the overall computational cost of bL-Net.
|
| 83 |
+
|
| 84 |
+
As can be seen in Table 1, all the models based on ResNet-50 yield better performance over the baseline with less computation, clearly demonstrating the advantage of combining low- and highcomplexity networks to balance between speed and accuracy. In addition, the small performance gaps between these models suggest that a computationally light Little-Branch ( $\textless 1 5 \%$ of the entire network) can compensate well for the low resolution representation by providing finer image details. We consider $\alpha = 2$ and $\beta = 4$ as the default setting for the following experiments. Furthermore, there are more ablation studies on the design of bL-Net in the Appendix A.4.
|
| 85 |
+
|
| 86 |
+
We further evaluated our approach on deeper models by using ResNet-101 and ResNet-152 as the backbone networks. We see from Table 2 that bL-ResNet-101 and bL-ResNet-152 behave similarly to bL-ResNet-50. As expected, both of them produce better results against the baseline models and achieving notable computational gains. Interestingly, our approach computationally favors deeper models, as evidenced by the fact that more speedups are observed on bL-ResNet-152 $( 2 . 3 \times )$ than on bL-ResNet-101 $( 2 . 0 \times )$ and bL-ResNet-50 $( 1 . 4 \times )$ . This is mainly because the Little Branch operating on low resolution spends less computation in a deeper model.
|
| 87 |
+
|
| 88 |
+
ResNeXt and SEResNeXt as the backbone network. We extended bL-Net to ResNeXt and SEResNeXt, two of the more accurate yet compact network architectures. We also experimented with (SE)ResNeXt-50 and (SE)ResNeXt-101 using the $3 2 \times 4 \mathrm { d }$ and $6 4 \times 4 \mathrm { d }$ setting (Xie et al., 2017; Hu et al., 2018). In our case, the Big-Branch follows the same setting of (SE)ResNeXt; however, we changed the cardinality of the Little-Branch to align with the input channels of a group convolution in the Big-Branch. All the results are shown in Table 2.
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2: Comparison with the ResNet and ResNeXt related works.
|
| 92 |
+
|
| 93 |
+
bL-ResNeXt-50 achieves a moderate speedup $( 1 . 4 0 \times )$ and provides an additional gain of $0 . 6 \%$ i n accuracy. However, bL-ResNeXt-101 $( 3 2 \times 4 \mathrm { d } )$ gains a much more substantial speedup of $2 \times$ and seeing $0 . 1 2 \%$ improvement in accuracy. The same trend can be seen on bL-ResNeXt-101 $( 6 4 \times 4 \mathrm { d } )$ . On the other hand, our bL-SEResNeXts also produce better performance while reducing more FLOPs than SEResNeXts. bL-SEResNeXt-101 achieves $2 \times$ speedups and improves accuracy by $0 . 1 3 \%$ .
|
| 94 |
+
|
| 95 |
+
Since our bL-Net saves more budget in computation, we can evaluate a model at a larger image scale for better performance, e.g., $2 5 6 \times 2 5 6$ . As illustrated in Table 2, our models evaluated at $2 5 6 \times 2 5 6$ is consistently better than their corresponding baselines while still using fewer FLOPs. The advantage becomes more pronounced with deeper models. For instance, with $40 \%$ reduction on FLOPs, bL-ResNeXt-101 $\textcircled { \scriptsize { a } } 2 5 6$ $( 6 4 \times 4 \mathrm { d } )$ boosts the top-1 performance by $1 . 1 \%$ , which is quite impressive given that ResNeXt-101 $( 6 4 \times 4 \mathrm { d } )$ is a very competitive baseline. Table 2 also shows the running times of bL-Net on GPU, which indicate the practical speedups of these models are consistent with the theoretical FLOP reductions reported in Table 2.
|
| 96 |
+
|
| 97 |
+
# 4.1.1 COMPARISON WITH RELATED WORK
|
| 98 |
+
|
| 99 |
+
We first compared our method with the approaches that aim to accelerate ResNets or ResNeXts using techniques such as network pruning and adaptive computations. The results are shown in Figure 2.
|
| 100 |
+
|
| 101 |
+
Our bL-Net significantly outperforms all related works regarding FLOPs reduction and accuracy. Our bL-ResNet-101 is $\sim 5 \%$ better than the network pruning approaches such as PFEC (Li et al., 2017) and LCCL (Dong et al., 2017), but still using less computation. When compared to SACT and ACT (Figurnov et al., 2017), our bL-ResNet-101 improves the accuracy by $5 \%$ while using the same number of FLOPs. On the other hand, our bL-ResNet-101 outperforms some of the most recent works including BlockDrop (Wu et al., 2018), SkipNet (Wang et al., 2018) and ConvNet-AIG (Veit & Belongie, 2018) by $3 . 7 \%$ , $2 . 2 \%$ , $1 . 2 \%$ top-1 accuracy at the same FLOPs, respectively. This clearly demonstrates the advantages of a simple fusion of two branches at different scales over the more sophisticated dynamic routing techniques developed in these approaches. In comparison to SPPoint (Kuen et al., 2018) under the same FLOPs, our bL-ResNet-101 surpasses it by $2 . 2 \%$ in accuracy.
|
| 102 |
+
|
| 103 |
+
We also compared bL-Net with the variants of ResNets, like ResAttNe(X)t (Wang et al., 2017), SEResNeXt (Hu et al., 2018) and CBAM (Woo et al., 2018). These models introduces attention mechanisms to enhance feature representations in either the channel or the spatial domain. From Figure 2, it can be seen that our bL-Net outperforms all of them in both FLOPs and accuracy. Our bL-Net achieves better performance than ResAttNeXt while saving $1 . 5 \times \mathrm { F L O P s }$ . It also surpasses ${ \sim } 1 \%$ point with similar FLOPs or the similar accuracy with ${ \sim } 1 . 7 \times$ FLOPs reduction for both SEResNeXt and CBAM. It’s worth noting that bL-Net can be potentially integrated with these models to further improve their accuracy and efficiency.
|
| 104 |
+
|
| 105 |
+
Finally, we ran a benchmark test on bL-ResNeXt $@ 2 5 6$ under the PyTorch framework with a batch size of 16 on a K80 GPU, and compared against various models that are publicly available. These models include Inception-V3 (Szegedy et al., 2016a), Inception-V4 (Szegedy et al., 2017), Inception-ResNetV2 (Szegedy et al., 2017), PolyNet (Zhang et al., 2017), NASNet (Zoph et al., 2018), PNASNet (Liu et al., 2018), DualPathNet (Chen et al., 2017b) and DenseNet (Huang et al., 2017b). Among them, NASNet currently achieves the best accuracy on ImageNet.
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 3: Comparison performance among other types of networks. (a) FLOPs. (b) GPU Speed.
|
| 109 |
+
|
| 110 |
+
From Fig. 3, we can see that overall, our bL-ResNeXt gains a better tradeoff between efficiency and accuracy. Compared to the Inception networks, bL-Net are better in both FLOPs and GPU running time. The bL-ResNeXt is also $2 \%$ point better than DenseNet at the same running speed, and $2 \times$ faster than DualPathNet at the same performance.
|
| 111 |
+
|
| 112 |
+
NASNet achieves lower FLOPs and higher accuracy than bL-Net; however, the networks result in slow GPU running time since their operations are divided into small pieces (i.e. a fragmented structure), which are not friendly for parallel computations. On the other hand, bL-Net, although requiring more FLOPs, can still enjoy the computation optimization brought by modern GPU cards. Moreover, compared with the lowest FLOP configuration of NASNet, our bL-ResNeXt is $0 . 5 \%$ point better while running $1 . 5 \times$ faster.
|
| 113 |
+
|
| 114 |
+
To further validate the generality of bL-Net, we also integrated the bL-Net with the highly efficient network, ShuffleNetV2 (Ma et al., 2018), and the results can be found in Appendix A.5. We also demonstrate the adaptability of $b L$ -Net on the object detection task (see Appendix A.6).
|
| 115 |
+
|
| 116 |
+
# 4.2 SPEECH RECOGNITION
|
| 117 |
+
|
| 118 |
+
We train ResNet style acoustic models in the hybrid framework on Switchboard $+$ Fisher (2000h) and provide results on Hub5 (Switchboard and Call Home portions). Switchboard is a large dataset with 2000 hours of transcribed speech from 28, 000 speakers, which is actively used as benchmark (Xiong et al., 2016; Saon et al., 2017) akin to ImageNet in the computer vision community. Our ResNet acoustic models are similar to the state of the art models described in (Saon et al., 2017), though slightly simplified (less fully connected layers) and trained with a simpler procedure (no class balancing). We provide results only after Cross-Entropy training and after decoding with a small language model (4M n-grams). Gains from this setting are typically maintained in the standard further pipelines like fine-tuning with sequence training, using more complex language models.
|
| 119 |
+
|
| 120 |
+
Appendix B gives a thorough overview of the architecture of the speech acoustic models. The main difference speech acoustic models have compared to image classification networks, is that striding or pooling only happens along the frequency axis, while along in the time direction we need to output dense predictions per frame (Sercu & Goel, 2016). This means that the branches at different resolutions have a fundamentally different view of the signal as it is propagating through the network; the ratio of resolution in frequency (downsampled in the Big-Branch) vs resolution in time (same between branches) is different. We can think about this as the convolutional kernels having different “aspect ratios” between branches. Therefore we not only expect FLOP reductions in bL-Net, but expect to have increased representational power. In addition, similar to the case in object recognition (Table 2), we could process the speech signal at higher frequency resolution than what is computationally feasible for the baseline ResNets.
|
| 121 |
+
|
| 122 |
+
Table 3 shows the results for the different architectures described in Appendix B. Most results are in line with the observations in the object recognition bL-Net. When comparing the baseline ResNet-22 (line 1) to the best bL-ResNet-22 (line 5), we see not only a reduction in FLOPs, but also a modest gain in Word Error Rate (WER). Comparing lines 2-4, we see that increasing $\beta$ (i.e. shorter little branches at full resolution) causes no WER degradation, while reducing the number of FLOPs. From line 5 we see that, similar to the object recognition ResNet results, decreasing $\alpha$ from 4 to 2 (i.e. keeping more feature maps in the full-resolution little branches) is important for performance, even though this increases the FLOPs again. We can summarize the best setting of $\alpha = 2$ and $\beta = 3$ for the little branches at full resolution: make them shorter but with more feature maps. This is consistent with the image classification results. From line 2 vs. line 6, the concatenation merge mode performs similar to the default additive merging, while increasing the number of FLOPs. Line 7 (compare to line 2) shows an experiment with additional branches on the lower layers (See Appendix B). Although there is some gain in WER, the added parameters and compute on the lower layers may not make this a worthwhile trade-off.
|
| 123 |
+
|
| 124 |
+
Table 3: Speech recognition results. We present results on Hub5 and the CallHome portion of Hub5, while the RT-02 Switchboard set was used for selecting decode epoch and HMM prior settings.
|
| 125 |
+
|
| 126 |
+
<table><tr><td>Model</td><td></td><td>FLOPs (109)</td><td>Params (106)</td><td>WER Avg</td><td>Hub5</td><td>Hub5 CH</td></tr><tr><td>1</td><td>Baseline: ResNet-22</td><td>1.11</td><td>3.02</td><td>14.67%</td><td>11.15%</td><td>18.17%</td></tr><tr><td>2</td><td>bL-ResNet-22 (α = 4,β = 1)</td><td>0.68 (1.63×)</td><td>3.15</td><td>14.72%</td><td>11.24%</td><td>18.18%</td></tr><tr><td>3</td><td>bL-ResNet-22 (α = 4,β = 2)</td><td>0.66 (1.68×)</td><td>3.11</td><td>14.47%</td><td>10.95%</td><td>17.95%</td></tr><tr><td>4</td><td>bL-ResNet-22(α = 4,β= 3)</td><td>0.65 (1.70×)</td><td>3.10</td><td>14.66%</td><td>11.25%</td><td>18.05%</td></tr><tr><td>5</td><td>bL-ResNet-22 (α = 2,β = 3)</td><td>0.77 (1.43×)</td><td>3.07</td><td>14.46%</td><td>11.10%</td><td>17.80%</td></tr><tr><td>6</td><td>bL-ResNet-22 (α = 4,β=1) cat</td><td>0.70 (1.58×)</td><td>3.18</td><td>14.67%</td><td>11.31%</td><td>18.00%</td></tr><tr><td>7</td><td>bL-PYR-ResNet-22 (α = 4, β =1)</td><td>0.98 (1.13×)</td><td>3.32</td><td>14.50%</td><td>11.05%</td><td>17.92%</td></tr></table>
|
| 127 |
+
|
| 128 |
+
# 4.3 DISCUSSION ON bL-Net
|
| 129 |
+
|
| 130 |
+
From the results of both tasks, we observe the following common insights, which enable us to design an efficient multi-scale network with competitive performance: (I) The Little-Branch can be very light-weight, (II) bL-Net performs better when the Little-Branch is wide and shallow (smaller $\alpha$ and larger $\beta$ ), (III) merging is effective when the feature dimension has changed, and (IV) branch merging by addition is more effective than concatenation. (I) is because the Big-Branch can extract essential information, a light Little-Branch is good enough to provide sufficient information the Big-Branch lacks. Regarding (II), wider networks have been shown to perform better than deep networks while using a similar number of parameters. (III) is well-discussed in Appendix A.4. Finally (IV), merging through addition provides better regularization for both branches to learn complementary features to form strong features.
|
| 131 |
+
|
| 132 |
+
# 5 CONCLUSION
|
| 133 |
+
|
| 134 |
+
We proposed an efficient multi-scale feature representation based on integrating multiple networks for object and speech recognition. The Big-Branches gain significant computational reduction by working at low-resolution input but still extract meaningful features while the Little-Branch enriches the features from high-resolution input but with light computation. On object recognition task, we demonstrated that our approach provides approximately $2 \times$ speedup over baselines while improving accuracy, and the result significantly outperforms the state-of-the-art networks by a large margin in terms of accuracy and FLOPs reduction. Furthermore, when using the proposed method on speech recognition task, we gained $0 . 2 \%$ WER and saved $30 \%$ FLOPs at the same time. In pratice, the proposed bL-Net shows that the reduced FLOPs can consistently speed up the running time on GPU. That evidence showed that the proposed bL-Net is an efficient multi-scale feature representation structure for competitive performance with less computation. In this paper, we chose ResNet, ResNeXt and SEResNeXt as our backbone networks but $b L$ -Net can be integrated with other advanced network structures, like DenseNet (Huang et al., 2017b), DualPathNet (Chen et al., 2017b) and NASNet (Zoph et al., 2018) to achieve competitive performance while saving computations. Furthermore, bL-Net can be integrated with those CNN acceleration approaches to make models more compact and efficient.
|
| 135 |
+
|
| 136 |
+
# ACKNOWLEDGMENTS
|
| 137 |
+
|
| 138 |
+
The authors would like to thank Dr. Paul Crumley and Dr. I-Hsin Chung for their help with the hardware infrastructure setup.
|
| 139 |
+
|
| 140 |
+
Quanfu Fan and Rogerio Feris are supported by IARPA via DOI/IBC contract number D17PC00341. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DOI/IBC, or the U.S. Government.
|
| 141 |
+
|
| 142 |
+
# REFERENCES
|
| 143 |
+
|
| 144 |
+
Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org.
|
| 145 |
+
|
| 146 |
+
Edward H Adelson, Charles H Anderson, James R Bergen, Peter J Burt, and Joan M Ogden. Pyramid methods in image processing. RCA engineer, 29(6):33–41, 1984.
|
| 147 |
+
|
| 148 |
+
Zhaowei Cai, Quanfu Fan, Rogerio S Feris, and Nuno Vasconcelos. A Unified Multi-scale Deep Convolutional Neural Network for Fast Object Detection. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (eds.), European Conference on Computer Vision (ECCV), pp. 354–370, 2016.
|
| 149 |
+
|
| 150 |
+
Wenlin Chen, James T. Wilson, Stephen Tyree, Kilian Q. Weinberger, and Yixin Chen. Compressing neural networks with the hashing trick. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 2285–2294. JMLR.org, 2015. URL http: //dl.acm.org/citation.cfm?id=3045118.3045361.
|
| 151 |
+
|
| 152 |
+
Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Person Re-Identification by Deep Learning Multi-Scale Representations. In The IEEE International Conference on Computer Vision (ICCV), October 2017a.
|
| 153 |
+
|
| 154 |
+
Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, and Jiashi Feng. Dual Path Networks. In Advances in Neural Information Processing Systems 30, pp. 4467–4475. Curran Associates, Inc., 2017b.
|
| 155 |
+
|
| 156 |
+
Y Cheng, F X Yu, R S Feris, S Kumar, A Choudhary, and S F Chang. An Exploration of Parameter Redundancy in Deep Networks with Circulant Projections. In 2015 IEEE International Conference on Computer Vision (ICCV), pp. 2857–2865. IEEE, December 2015.
|
| 157 |
+
|
| 158 |
+
Xuanyi Dong, Junshi Huang, Yi Yang, and Shuicheng Yan. More is less: A more complicated network with less inference complexity. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 159 |
+
|
| 160 |
+
David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In The IEEE International Conference on Computer Vision (ICCV), December 2015.
|
| 161 |
+
|
| 162 |
+
Mark Everingham, Luc Van Gool, Christopher K I Williams, John Winn, and Andrew Zisserman. The Pascal Visual Object Classes (VOC) Challenge. International Journal of Computer Vision, 88(2):303–338, June 2010.
|
| 163 |
+
|
| 164 |
+
Quanfu Fan, Chun-Fu (Richard) Chen, and Gwo Giun (Chris) Lee. Sparse Deep Feature Representation for Object Detection from Wearable Cameras. In Proceedings of the British Machine Vision Conference (BMVC). BMVA Press, September 2017.
|
| 165 |
+
|
| 166 |
+
Clement Farabet, Camille Couprie, Laurent Najman, and Yann LeCun. Learning hierarchical features for scene labeling. Pattern Analysis and Machine Intelligence, 2013.
|
| 167 |
+
|
| 168 |
+
Michael Figurnov, Maxwell D. Collins, Yukun Zhu, Li Zhang, Jonathan Huang, Dmitry Vetrov, and Ruslan Salakhutdinov. Spatially adaptive computation time for residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 169 |
+
|
| 170 |
+
Sam Gross and Michael Wilber. Training and investigating residual nets. http://torch.ch/blog/2016/ 02/04/resnets.html, 2016.
|
| 171 |
+
|
| 172 |
+
Song Han, Huizi Mao, and William J Dally. Deep Compression: Compressing Deep Neural Network with Pruning, Trained Quantization and Huffman Coding. ArXiv, abs/1510.00149, 2015.
|
| 173 |
+
|
| 174 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
|
| 175 |
+
|
| 176 |
+
Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask R-CNN. In The IEEE International Conference on Computer Vision (ICCV), October 2017.
|
| 177 |
+
|
| 178 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015.
|
| 179 |
+
|
| 180 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-Excitation Networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 181 |
+
|
| 182 |
+
G. Huang, Y. Li, Z. Liu G. Pleiss, J. E. Hopcroft, and K. Q. Weinberger. Snapshot ensembles: Train 1, get m for free. In International Conference on Learning Representations (ICLR), 2017a.
|
| 183 |
+
|
| 184 |
+
Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely Connected Convolutional Networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017b.
|
| 185 |
+
|
| 186 |
+
Gao Huang, Danlu Chen, Tianhong Li, Felix Wu, Laurens van der Maaten, and Kilian Weinberger. Multiscale dense networks for resource efficient image classification. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\equiv$ Hk2aImxAb.
|
| 187 |
+
|
| 188 |
+
Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized Neural Networks. In D D Lee, M Sugiyama, U V Luxburg, I Guyon, and R Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4107–4115. Curran Associates, Inc., 2016.
|
| 189 |
+
|
| 190 |
+
Yani Ioannou, Duncan P Robertson, Jamie Shotton, Roberto Cipolla, and Antonio Criminisi. Training CNNs with Low-Rank Filters for Efficient Image Classification. ArXiv, abs/1511.06744, 2015.
|
| 191 |
+
|
| 192 |
+
Jason Kuen, Xiangfei Kong, Zhe Lin, Gang Wang, Jianxiong Yin, Simon See, and Yap-Peng Tan. Stochastic downsampling for cost-adjustable inference and improved regularization in convolutional networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 193 |
+
|
| 194 |
+
Fengfu Li and Bin Liu. Ternary weight networks. CoRR, abs/1605.04711, 2016. URL http://arxiv.org/ abs/1605.04711.
|
| 195 |
+
|
| 196 |
+
Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning Filters for Efficient ConvNets. In International Conference on Learning Representation 2017, pp. 1–13, March 2017.
|
| 197 |
+
|
| 198 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO: Common Objects in Context. In David Fleet, Tomas Pajdla, Bernt Schiele, and Tinne Tuytelaars (eds.), Computer Vision – ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V, pp. 740–755. Springer International Publishing, Cham, 2014.
|
| 199 |
+
|
| 200 |
+
Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 201 |
+
|
| 202 |
+
Tony Lindeberg and Bart M ter Haar Romeny. Linear scale-space i: Basic theory. In Geometry-Driven Diffusion in Computer Vision, pp. 1–38. Springer, 1994.
|
| 203 |
+
|
| 204 |
+
Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive Neural Architecture Search. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 205 |
+
|
| 206 |
+
I. Loshchilov and F. Hutter. Sgdr. Stochastic Gradient Descent with Restarts. In International Conference on Learning Representations (ICLR), 2017.
|
| 207 |
+
|
| 208 |
+
Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 209 |
+
|
| 210 |
+
Seungjun Nah, Tae Hyun Kim, and Kyoung Mu Lee. Deep Multi-Scale Convolutional Neural Network for Dynamic Scene Deblurring. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 211 |
+
|
| 212 |
+
Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked Hourglass Networks for Human Pose Estimation. In Computer Vision – ECCV 2016, pp. 483–499, Cham, 2016. Springer International Publishing.
|
| 213 |
+
|
| 214 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS-W, 2017.
|
| 215 |
+
|
| 216 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
|
| 217 |
+
|
| 218 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang Chieh Chen. MobileNetV2: Inverted Residuals and Linear Bottlenecks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 219 |
+
|
| 220 |
+
George Saon, Gakuto Kurata, Tom Sercu, Kartik Audhkhasi, Samuel Thomas, Dimitrios Dimitriadis, Xiaodong Cui, Bhuvana Ramabhadran, Michael Picheny, Lynn-Li Lim, et al. English conversational telephone speech recognition by humans and machines. arXiv preprint arXiv:1703.02136, 2017.
|
| 221 |
+
|
| 222 |
+
Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, pp. 4060–4068, USA, 2016. Curran Associates Inc. ISBN 978-1-5108-3881-9. URL http://dl.acm.org/citation.cfm?id $\equiv$ 3157382.3157551.
|
| 223 |
+
|
| 224 |
+
Tom Sercu and Vaibhava Goel. Dense prediction on sequences with time-dilated convolutions for speech recognition. NIPS End-to-end Learning for Speech and Audio Processing Workshop, 2016.
|
| 225 |
+
|
| 226 |
+
Vikas Sindhwani, Tara Sainath, and Sanjiv Kumar. Structured Transforms for Small-Footprint Deep Learning. In C Cortes, N d Lawrence, D D Lee, M Sugiyama, and R Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 3088–3096. Curran Associates, Inc., 2015.
|
| 227 |
+
|
| 228 |
+
C Szegedy, Wei Liu, Yangqing Jia, P Sermanet, S Reed, D Anguelov, D Erhan, V Vanhoucke, and A Rabinovich. Going deeper with convolutions. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1–9, 2015.
|
| 229 |
+
|
| 230 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception Architecture for Computer Vision. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016a.
|
| 231 |
+
|
| 232 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception Architecture for Computer Vision. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016b.
|
| 233 |
+
|
| 234 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander Alemi. Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. In Conference on Artificial Intelligence (AAAI), 2017.
|
| 235 |
+
|
| 236 |
+
László Tóth. Multi-resolution spectral input for convolutional neural network-based speech recognition. In Speech Technology and Human-Computer Dialogue (SpeD), 2017.
|
| 237 |
+
|
| 238 |
+
Andreas Veit and Serge Belongie. Convolutional Networks with Adaptive Inference Graphs. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 239 |
+
|
| 240 |
+
O Vinyals, A Toshev, S Bengio, and D Erhan. Show and Tell: Lessons Learned from the 2015 MSCOCO Image Captioning Challenge. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 39(4): 652–663, April 2017.
|
| 241 |
+
|
| 242 |
+
Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaoou Tang. Residual Attention Network for Image Classification. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 243 |
+
|
| 244 |
+
Xin Wang, Fisher Yu, Zi-Yi Dou, and Joseph E. Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In SysML, Feb 2018.
|
| 245 |
+
|
| 246 |
+
Wei Wen, Cong Xu, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Coordinating Filters for Faster Deep Neural Networks. In The IEEE International Conference on Computer Vision (ICCV), October 2017.
|
| 247 |
+
|
| 248 |
+
Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. CBAM: Convolutional Block Attention Module. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 249 |
+
|
| 250 |
+
Yuxin Wu. Tensorpack. https://github.com/ppwwyyxx/tensorpack, 2017.
|
| 251 |
+
|
| 252 |
+
Zuxuan Wu, Tushar Nagarajan, Abhishek Kumar, Steven Rennie, Larry S Davis, Kristen Grauman, and Rogerio Feris. Blockdrop: Dynamic inference paths in residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 253 |
+
|
| 254 |
+
Guotian Xie, Jingdong Wang, Ting Zhang, Jianhuang Lai, Richang Hong, and Guo-Jun Qi. IGCV2: Interleaved Structured Sparse Convolutional Neural Networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2018.
|
| 255 |
+
|
| 256 |
+
Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated Residual Transformations for Deep Neural Networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 257 |
+
|
| 258 |
+
W Xiong, J Droppo, X Huang, F Seide, M Seltzer, A Stolcke, D Yu, and G Zweig. Achieving human parity in conversational speech recognition. arXiv:1610.05256, 2016.
|
| 259 |
+
|
| 260 |
+
Songfan Yang and Deva Ramanan. Multi-Scale Recognition With DAG-CNNs. In The IEEE International Conference on Computer Vision (ICCV), December 2015.
|
| 261 |
+
|
| 262 |
+
X Zhang, J Zou, K He, and J Sun. Accelerating Very Deep Convolutional Networks for Classification and Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, PP(38):1943–1955, October 2016.
|
| 263 |
+
|
| 264 |
+
Xingcheng Zhang, Zhizhong Li, Chen Change Loy, and Dahua Lin. PolyNet: A Pursuit of Structural Diversity in Very Deep Networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 265 |
+
|
| 266 |
+
Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 267 |
+
|
| 268 |
+
# Appendix
|
| 269 |
+
|
| 270 |
+
The appendix illustrates the details of our experiments on object recognition and speech recognition and more ablation study.
|
| 271 |
+
|
| 272 |
+
# A bL-Net FOR OBJECT RECOGNITION
|
| 273 |
+
|
| 274 |
+
# A.1 EXPERIMENTAL SETUP
|
| 275 |
+
|
| 276 |
+
We used the ImageNet dataset for all experiments. We trained all the models by Tensorpack (Wu, 2017), a higher-level wrapper for Tensorflow (Abadi et al., 2015). All the models were trained with 110 epochs, batch size 256, weight decay 0.0001, momentum 0.9 and Nesterov momentum optimizer. Furthermore, we used cosine learning-rate schedule as (Huang et al., $2 0 1 7 \mathrm { a }$ ; Loshchilov & Sgdr, 2017). We deployed the popular augmentation technique in (Szegedy et al., 2016b; Gross & Wilber, 2016) to increase the variety of training data, and randomly crop a $2 2 4 \times 2 2 4$ patch as training image. The validation error is evaluated by resizing the shorter side of an image to 256 and then crop a $2 2 4 \times 2 2 4$ from the center. Note that the results reported here for the vanilla ResNet, ResNeXt and SEResNeXt models are difference from those reported in the original paper (He et al., 2016; Gross & Wilber, 2016; Hu et al., 2018). Our vanilla ResNet is better than the original paper while vanilla ResNeXt and SEResNeXt is slightly worse than the original paper.
|
| 277 |
+
|
| 278 |
+
Table 4: Network configurations of bL-ResNet-50. Output size is illustrated in the parenthesis.
|
| 279 |
+
|
| 280 |
+
<table><tr><td rowspan=1 colspan=1>Layers</td><td rowspan=1 colspan=1>bL-ResNet-50</td><td rowspan=1 colspan=1>ResNet-50</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>7 × 7,64, s2 (112 × 112)</td></tr><tr><td rowspan=1 colspan=1>bL-module</td><td rowspan=1 colspan=1>3×3,323 × 3,64,s2 3×3,32,s2(56 × 56)(1×1,64</td><td rowspan=1 colspan=1>MaxPooling (56 × 56)</td></tr><tr><td rowspan=1 colspan=1>bL-module</td><td rowspan=1 colspan=1>ResBlockg,256 ×2 ResBlockL,128 ×1ResBlock,256,s2 (28 × 28)</td><td rowspan=1 colspan=1>ResBlock,256 ×3, s1(56 × 56)</td></tr><tr><td rowspan=1 colspan=1>bL-module</td><td rowspan=1 colspan=1>ResBlockp,512 ×3 ResBlockL,256 ×1ResBlock, 512, s2 (14 × 14)</td><td rowspan=1 colspan=1>ResBlock,512 ×4, s2(28× 28)</td></tr><tr><td rowspan=1 colspan=1>bL-module</td><td rowspan=1 colspan=1>ResBlockb,1024 ×5 ResBlockL,512 ×1ResBlock,1024 (14 × 14)</td><td rowspan=1 colspan=1>ResBlock,1024 ×6, s2(14 × 14)</td></tr><tr><td rowspan=1 colspan=1>ResBlock</td><td rowspan=1 colspan=2>ResBlock,2048 ×3, s2 (7 × 7)</td></tr><tr><td rowspan=1 colspan=1>Average pool</td><td rowspan=1 colspan=2>7 ×7 average pooling</td></tr><tr><td rowspan=1 colspan=1>FC, softmax</td><td rowspan=1 colspan=2>1000</td></tr></table>
|
| 281 |
+
|
| 282 |
+
ResBlockB: the first $3 \times 3$ convolution is with stride 2, and a bi-linear upsampling is applied at the end. $\mathbf { R e s B l o c k } _ { L }$ : a $1 \times 1$ convolution is applied at the end to align the channel size. $\mathbf { s } 2$ : the stride is set to 2 for the $3 \times 3$ convolution in the ResBlock.
|
| 283 |
+
|
| 284 |
+
# A.2 NETWORK STRUCTURE
|
| 285 |
+
|
| 286 |
+
This section shows the details of network structures of our bL-ResNet, and the setting of $\alpha$ and $\beta$ is 2 and 4, respectively. To understand how do we design bL-ResNet-50 based on ResNet-50, Table 4 shows the details of network structure. We used a bottleneck residual block as a ResBlock, and a ResBlock, $C$ denotes a block composed of $1 \times 1 , 3 \times 3$ , and $1 \times 1$ convolutions, where the first $1 \times 1$ and the $3 \times 3$ have $C / 4$ kernels and the last $1 \times 1$ has $C$ kernels.
|
| 287 |
+
|
| 288 |
+
First, the Big-Branch and the Little-Branch shares a residual block at the transition layer, so the number of residual blocks in each branch will be subtracted by 1. The number of residual blocks in the Little-Branch is defined as $\begin{array} { r } { \left\lceil { \frac { L } { \beta } } \right\rceil - 1 } \end{array}$ and at least one, where $L$ is the number of residual blocks in the Big-Branch, and the number of kernels in a convolutional layer would be $\frac { C } { \alpha }$ , where $C$ is the number of kernels in the Big-Branch. Thus, for all stages, the number of blocks in the Little-Branch is only one, and the number of blocks in the Big-Branch would be the number of blocks in ResNet-50 miuns one.
|
| 289 |
+
|
| 290 |
+
For bL-ResNet-101 and bL-ResNet-152, we redistributed the residual blocks to different stages to balance the residual blocks at each stage. A ResNet model has 5 stages, and each stage has the same spatial size. These two models accumulate most of the convolutions (or computations) on the $4 ^ { t h }$ stage, where the size of feature maps is $1 4 \times 1 4$ when input size is $2 2 4 \times 2 2 4$ . While such a design may be suitable for a very deep model, it likely limits the ability of Big-Branch to learn information at large scales, which mostly resides at earlier stages. Thus, we move some blocks in the $4 ^ { t h }$ stage of these two models to the ${ \dot { \mathbf { \zeta } } } _ { 2 ^ { n d } }$ and $3 ^ { r d }$ stages. Table 5 shows the details of bL-ResNet-101 and bLResNet-152.
|
| 291 |
+
|
| 292 |
+
Table 5: Network configurations of bL-ResNets, and $\alpha = 2$ and $\beta = 4$
|
| 293 |
+
|
| 294 |
+
<table><tr><td>Layers</td><td>Output Size</td><td colspan="6">bL-ResNet-101 bL-ResNet-152</td></tr><tr><td>Convolution</td><td>112 × 112</td><td colspan="6">7 × 7,64,s2</td></tr><tr><td>bL-module</td><td>56× 56</td><td colspan="6">(3×3,32 3 ×3,64,s2 3×3,32,s2 (1×1,64</td></tr><tr><td>bL-module</td><td>56×56</td><td>/1×1,64 3×3,64 ×3(2) (1×1,256) B</td><td>/1×1,32 3×3,32 (1×1,128) L</td><td>×1</td><td>/1×1,64 3×3,64 × 4(2) (1×1,256) B</td><td>/1×1,32 3×3,32 (1×1,128)</td><td>×1 L</td></tr><tr><td>transition layer</td><td>28×28</td><td colspan="6">/1×1,64 3×3,64,s2 ×1 (1×1,256</td></tr><tr><td>bL-module</td><td>28×28</td><td>(1×1,128) /1×1,64 3×3,128 ×7(3) 3×3,64 (1×1,512) B</td><td>×1 (1×1,256) L</td><td colspan="2">(1×1,128) 3×3,128 (1×1,512)</td><td>× 11(7)</td><td>/1×1,64 3×3,64 ×2 (1×1,256) L</td></tr><tr><td>transition layer</td><td>14 × 14</td><td colspan="2"></td><td colspan="2">/1×1,128 3×3,128,s2 ×1 (1×1,512</td><td colspan="3">B</td></tr><tr><td>bL-module</td><td>14 × 14</td><td>/1×1,256 3×3,256 �� 17(22) (1×1,1024)B</td><td>(1×1,128) 3×3,128 (1×1,512 L</td><td>×3</td><td>/1×1,256 3×3,256 (1×1,1024) B</td><td>× 29(35)</td><td>(1×1,128) 3×3,128 (1×1,512)</td><td>×6 L</td></tr><tr><td>transition layer</td><td>14 × 14</td><td colspan="6">/1×1,256 3×3,256 ×1 (1×1,1024)</td></tr><tr><td>ResBlock</td><td>7×7</td><td colspan="6">/1×1,512 3 ×3,512,s2 ×3</td></tr><tr><td>Average pool</td><td>1×1</td><td colspan="6">(1×1,2048 7×7 average pooling</td></tr><tr><td>FC, softmax</td><td colspan="7">1000</td></tr></table>
|
| 295 |
+
|
| 296 |
+
For each $\overline { B }$ block, the first $3 \times 3$ convolution is with stride 2, and a bi-linear upsampling is applied at the end. For each $L$ block, a $1 \times 1$ convolution is applied at the end. $^ { s 2 }$ : the stride is set to 2 for the convolutional layer. The number in the parethesis denotes the original number of blocks in ResNet.
|
| 297 |
+
|
| 298 |
+
# A.3 PERFORMANCE ON LOW RESOLUTION INPUT
|
| 299 |
+
|
| 300 |
+
We analyzed what advantages bL-Net could provide as compared to the network which works on low resolution input directly (ResNet-50-lowres). As shown in Table 6, ResNet-50-lowres reduces lots of computations but its accuracy is not acceptable; however, bL-ResNet-50 $\alpha = 2$ and $\beta = 4$ ) achieves a better balance between accuracy and performance. A similar trend is also observed on a deeper model ResNet-101-lowres. While such performance is unsatisfying compared to the state of the art, it is quite reasonable and expected given that almost $3 \sim 4 \times$ reduction of computation are achieved in such a case.
|
| 301 |
+
|
| 302 |
+
Figure 4 shows the prediction results from bL-ResNet-50 and ResNet-50-lowres. When both models predict correctly (4 (a) and (b)), the bL-ResNet-50 provides better confidence for the prediction. Because the object only occupies a small portion of an image, the Little-Branch can still capture the object clearly. On the other hand, when the key features of an object is small, like the shape of beak of a bird (c) and the spots of a ladybug (d), bL-ResNet-50 can easily retain that key feature to predict correctly while ResNet-50-lowres provides wrong predicted label.
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure 4: Prediction results for bL-ResNet-50 and ResNet-50-lowres. True labels, predicted labels and their probability are listed in the table. When both models predicts correctly ((a) and (b)), bL-ResNet-50 achieves much higher probability; on the other hand, bL-ResNet-50 captures the details on the object and then predicts correctly ((c) and (d)).
|
| 306 |
+
|
| 307 |
+
Table 6: Performance of ResNets at different input resolutions.
|
| 308 |
+
|
| 309 |
+
<table><tr><td>Network</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td></tr><tr><td>ResNet-50</td><td>23.66%</td><td>4.09</td><td>25.55</td></tr><tr><td>ResNet-50-lowres</td><td>26.10%</td><td>1.29 (3.17×)</td><td>25.60</td></tr><tr><td>ResNet-101</td><td>21.95%</td><td>7.80</td><td>44.54</td></tr><tr><td>ResNet-101-lowres</td><td>24.80%</td><td>2.22 (3.51x)</td><td>44.57</td></tr></table>
|
| 310 |
+
|
| 311 |
+
# A.4 ABLATION STUDY ON NETWORK MERGING AND MULTI-BRANCH
|
| 312 |
+
|
| 313 |
+
Is linear combination better than concatenation? We adopt the simpler addition in bL-Net. Nonetheless, if we design the Big-Branch in a way that the output channels is identical to the backbone networks, then the number of kernels in the Big-Branch would be only $1 - \alpha$ with respect to the total number of kernels of the backbone network; thus, in this case, the overall $b L$ -Net can be more efficient while the performance degradation could be compromised. We compared the performance of these two different merging schemes in Table 7. Although concatenation approach is more efficient, it performs much worse than addition with a gap of almost $1 . 5 \%$ . This leaves addition as a better choice for bL-Net in both visual and speech tasks.
|
| 314 |
+
|
| 315 |
+
More-branch in bL-Net As mentioned in Section 3.1, our approach can be extended to a scenario with multiple image scales. We experimented with three scales [1/4, 1/2, 1] on bL-ResNet-50 $( K = 3$ ) where ResNet-50 is served as the Big-Branch at the scale of 1/4 of the original input, i.e. $5 6 \times 5 6$ As indicated in Table 7, a 3-scale bL-Net requires more FLOPs and parameters due to the fact that the overhead in merging more branches is significant for ResNet-50, but even though, it still cannot provide superior performance of a 2-scale bL-Net. This is because the Big-Branch in the 3-scale bL-Net is downsampled aggressively by 4 times, thus substantially degrade the capability of feature representation in the Big-Branch.
|
| 316 |
+
|
| 317 |
+
Table 7: Different scales and merging schemes on bL-ResNet.
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Network</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td></tr><tr><td>ResNet-50</td><td>23.66%</td><td>4.09</td><td>25.55</td></tr><tr><td>bL-ResNet-50 (addition,K = 2)</td><td>22.69 %</td><td>2.85 (1.43×)</td><td>26.69</td></tr><tr><td>bL-ResNet-50 (concatenation,K = 2)</td><td>24.04%</td><td>2.01 ( (2.03x)</td><td>20.57</td></tr><tr><td>bL-ResNet-50 (addition,K = 3)</td><td>24.12%</td><td>3.91 (1.04×)</td><td>27.23</td></tr></table>
|
| 320 |
+
|
| 321 |
+
Table 8: Different number of merges in bL-ResNet. $m$ : number of merges. $( \alpha = 2 , \beta = 4 )$
|
| 322 |
+
|
| 323 |
+
<table><tr><td>Model</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td></tr><tr><td>bL-ResNet-50 (m = 4) (baseline)</td><td>22.69%</td><td>2.85</td><td>26.69</td></tr><tr><td>bL-ResNet-50 (m = 2)</td><td>23.48%</td><td>2.74</td><td>26.66</td></tr><tr><td>bL-ResNet-50 (m = 1)</td><td>24.57%</td><td>2.64</td><td>26.64</td></tr><tr><td>bL-ResNet-101 (m= 4) (baseline)</td><td>21.80%</td><td>3.89</td><td>41.85</td></tr><tr><td>bL-ResNet-101 (m = 7)</td><td>21.85%</td><td>5.21</td><td>44.44</td></tr></table>
|
| 324 |
+
|
| 325 |
+
# Number of Merges in bL-Net
|
| 326 |
+
|
| 327 |
+
We also analyzed the number of merges we needed in the bL-Net. One big difference between our approach and others is that $b L$ -Net merges multiple times as opposed to only once in most of the other approaches. Below we provide an explanation of why more information exchange is encouraged in our approach and when is the best moment for merging operation.
|
| 328 |
+
|
| 329 |
+
In the above bL-Net, we merged branches before the feature dimension changes, except for the first stride convolution; thus, we used 4 merges $m = 4 ,$ ). We experimented with a different number of merges for bL-ResNet-50 and bL-ResNet-101, and the results are shown in Table 8. Since there are fewer layers in bL-ResNet-50, we reduce the number of merges to show their importance; on the other hand, there are more layers in bL-ResNet-101, so we add more merges to show that those additional merges would similarly not improve the performance anymore.
|
| 330 |
+
|
| 331 |
+
The accuracy of the bL-ResNet-50 models with less number of merges ( $m = 1$ and $m = 2$ ) is significantly worse than with more $\textlangle m = 4$ ) and they do not save many FLOPs and parameters at all. This justifies frequent information exchange improves the performance. On the other hand, bL-ResNet-101 $m = 7 ,$ ) uses more merges; however, it also does not improve the performance and requires more FLOPs, which comes from more merges. This is because the original setting for the amount of merging happened when either the channel number or feature map size is changed, so extra merges happened at the feature dimension. Thus, those extra merges could be redundant since merging at identical dimension could be reduced to one merging. Hence, it empirically proves that merging before dimension is changed is the most effective.
|
| 332 |
+
|
| 333 |
+
# A.5 bL-Net FOR HIGH-EFFICIENCY NETWORK
|
| 334 |
+
|
| 335 |
+
To demenstrate bL-Net can be applied on different types of network, we deploy bL-Net on the high-efficiency network, ShuffleNetV2 (Ma et al., 2018), and results are shown in Table 9. Our bL-ShuffleNetV2@256 outperforms ShuffleNetV2 by up to $0 . 5 \%$ point under similar FLOPs, which suggests that our approach can also improve the high-efficiency networks.
|
| 336 |
+
|
| 337 |
+
Table 9: Comparison with ShuffleNetV2 (Ma et al., 2018) $( \alpha = 2 , \beta = 2 ) .$
|
| 338 |
+
|
| 339 |
+
<table><tr><td>Model</td><td>|Model width</td><td>Top-1 Error</td><td>FLOPs (106)</td><td>Params (106)</td></tr><tr><td rowspan="3">ShuffleNetV2</td><td>1×</td><td>30.60%</td><td>146</td><td>2.30</td></tr><tr><td>1.5×</td><td>28.03%</td><td>299</td><td>3.51</td></tr><tr><td>2×</td><td>26.85%</td><td>588</td><td>7.40</td></tr><tr><td rowspan="3">bL-ShuffleNetV2 @ 256</td><td>1×</td><td>30.84%</td><td>150</td><td>2.33</td></tr><tr><td>1.5×</td><td>27.83%</td><td>298</td><td>4.80</td></tr><tr><td>2×</td><td>26.38%</td><td>590</td><td>7.60</td></tr></table>
|
| 340 |
+
|
| 341 |
+
All models are trained by ourselves.
|
| 342 |
+
|
| 343 |
+
# A.6 bL-Net FOR OBJECT DETECTION
|
| 344 |
+
|
| 345 |
+
We demonstrate the effectiveness of bL-Net on object detection. We use bL-Net as a backbone network for FasterRCNN $+$ FPN (Lin et al., 2017) on the PASCAL VOC (Everingham et al., 2010) and MS COCO datasets (Lin et al., 2014). Table 10 shows the comparison with the detector with ResNet-101
|
| 346 |
+
|
| 347 |
+
as the backbone network, and the results show that bL-Net achieves competitive performance while saving about $1 . 5 \times \mathrm { F L O P s } ^ { 1 }$ , suggesting that bL-Net is transferable to other vision tasks.
|
| 348 |
+
|
| 349 |
+
Table 10: Objection detection results. Detection performance on the PASCAL VOC 2007test dataset.
|
| 350 |
+
|
| 351 |
+
<table><tr><td>Network</td><td>mAP@[IoU=0.5] (bbox)</td><td>FLOPst (109)</td></tr><tr><td>ResNet-101</td><td>81.5</td><td>137.70</td></tr><tr><td>bL-ResNet-101 (α=2, β=4)</td><td>81.4</td><td>89.21 (1.54×)</td></tr><tr><td>bL-ResNet-101 (α=2, β=2)</td><td>81.5</td><td>93.95 (1.47×)</td></tr></table>
|
| 352 |
+
|
| 353 |
+
Detection performance on the MS COCO val2017 dataset.
|
| 354 |
+
|
| 355 |
+
<table><tr><td>Network</td><td>mAP@[IoU=0.50:0.95](bbox)|FLOPs‡ (109)</td><td></td></tr><tr><td>ResNet-101</td><td>39.2</td><td>234.85</td></tr><tr><td>bL-ResNet-101 (α=2, β=4)</td><td>39.5</td><td>151.11 (1.55×)</td></tr><tr><td>bL-ResNet-101 (α=2, β=2)</td><td>40.4</td><td>160.21 (1.47×)</td></tr></table>
|
| 356 |
+
|
| 357 |
+
†: FLOPs is calculated when the size of input image is $6 0 0 \times 1 0 2 4$ with 300 proposals. ‡: FLOPs is calculated when the size of input image is $8 0 0 \times 1 3 4 4$ with 300 proposals.
|
| 358 |
+
|
| 359 |
+
# A.7 COMPARISON OF MEMORY REQUIREMENT
|
| 360 |
+
|
| 361 |
+
We benchmarked the GPU memory consumption in runtime at both the training and test phases for all the models evaluated in Fig. 3. The results are shown in Fig. 5. The batch size was set to 8, which is the largest number allowed for NASNet on a P100 GPU card. The image size for any model in this benchmark experiment is the same as that used in the experiment reported in Fig. 3. For bL-Net, the input image size is $2 2 4 \times 2 2 4$ in training and $2 5 6 \times 2 5 6$ in test.
|
| 362 |
+
|
| 363 |
+
From Fig. 5, we can see that bL-Net is the most memory-efficient for training among all the approaches. In test, bL-ResNeXt consumes more memory than inception-resnet-v2 and inception-v4 at the same accuracy, but bL-SEResNeXt outperforms all the approaches. Note that NASNet and PNASNet are not memory friendly. This is largely because they are trained on a larger image size $( 3 3 1 \times 3 3 1 )$ ) and these models are composed of many layers.
|
| 364 |
+
|
| 365 |
+

|
| 366 |
+
Figure 5: Comparison memory requirement at the training and test phases among other types of networks. (a) Training. (b) Test. (The batch size is 8.)
|
| 367 |
+
|
| 368 |
+
Table 11: Complexity study of the Little-Branch $\scriptstyle { \alpha }$ and $\beta$ ) for bL-ResNet-50 and bL-ResNet-101.
|
| 369 |
+
|
| 370 |
+
<table><tr><td>Model</td><td>Top-1 Error</td><td>FLOPs (109)</td><td>Params (106)</td></tr><tr><td>ResNet-50</td><td>23.66%</td><td>4.09</td><td>25.55</td></tr><tr><td>bL-ResNet-50 (α =1, β=1)</td><td>21.75%</td><td>5.65</td><td>34.12</td></tr><tr><td>bL-ResNet-50 (α =1, β=2)</td><td>22.11%</td><td>4.34</td><td>30.14</td></tr><tr><td>bL-ResNet-50(α= 2,) β=2)</td><td>22.72%</td><td>2.91</td><td>26.97</td></tr><tr><td>bL-ResNet-50(α =2,) β=4)</td><td>22.69%</td><td>2.85</td><td>26.69</td></tr><tr><td>bL-ResNet-50(α = 4, β = 2)</td><td>23.20%</td><td>2.49</td><td>26.31</td></tr><tr><td>bL-ResNet-50 (α =4, β= 4)</td><td>23.15%</td><td>2.48</td><td>26.24</td></tr><tr><td>ResNet-101</td><td>21.95%</td><td>7.80</td><td>44.54</td></tr><tr><td>bL-ResNet-101 (α=1,β=1)</td><td>20.31%</td><td>10.29</td><td>63.32</td></tr><tr><td>bL-ResNet-101 (α = 2, β= 2)</td><td>21.40%</td><td>4.27</td><td>43.39</td></tr><tr><td>bL-ResNet-101 (α = 2,β=4)</td><td>21.80%</td><td>3.89</td><td>41.85</td></tr></table>
|
| 371 |
+
|
| 372 |
+
# B bL-Net FOR SPEECH RECOGNITION
|
| 373 |
+
|
| 374 |
+
# B.1 EXPERIMENTAL SETUP
|
| 375 |
+
|
| 376 |
+
In our experiments, we start with an input size of $6 4 \times 4 9$ , where 64 is the number of logmel filterbanks, calculated for each utterance on-the-fly. We also stack their first and second derivatives to get 3 input channels, resulting in our final input of dimensionality batch_si $\mathsf { \Omega } : \in \times 3 \times 6 4 \times 4 9$ . Our output is of size batch_si $\mathsf { z e } \times 5 1 2 \times 4 \times 1$ , which is then projected to batch_si $\mathsf { z e } \times 5 1 2 \times 1 \times 1$ and finally to batch_ $\mathrm { ~ s ~ i ~ z ~ e ~ } \times \mathrm { 3 2 k } \times 1 \times 1$ for classification. We then perform softmax cross-entropy over this output space of 32k tied CD states from forced alignment, doing phone prediction on the central frame of the input utterance. We report results after Cross-Entropy training, on ${ \mathrm { H u b } } 5 ^ { \prime } { 0 0 }$ (SWB and CH part) after decoding using the standard small 4M n-gram language model with a $3 0 . 5 \mathrm { k }$ word vocabulary.
|
| 377 |
+
|
| 378 |
+
All models were trained in PyTorch (Paszke et al., 2017) over 16 epochs on 2 GPUs with per-GPU batch size 256 (total batch size of 512), gradient clipping 10.0, weight decay √ $1 \times 1 0 ^ { - 6 }$ , nesterov accelerated momentum 0.9, and learning rate 0.03 (annealed by $\sqrt { 0 . 5 }$ per epoch $\geq 1 0 $ ).
|
| 379 |
+
|
| 380 |
+
# B.2 NETWORK STRUCTURES
|
| 381 |
+
|
| 382 |
+
ResNet-22 Our models follow a ResNet architecture without padding in time (Saon et al., 2017), which accounts for the fact that padding in time adds undesirable artifacts when processing a longer utterance (Sercu & Goel, 2016). Under this constraint, each convolution operation reduces our input sequence in time by $k - 1$ , where $k$ is the kernel width used. This effect can be seen in Table 12, in which the time variable, $T$ , is reduced in accordance with the number of convolutions. For similar reasons, when we stride we only do so in frequency, and not in time. For the rest of this section, when we refer to striding we are referring only to striding in frequency. We define our residual blocks as a series of $3 \times 3$ convolutions. When we transition from one stage to the next, we stride by 2 on the first convolution of the following block. All of our models start with a $5 \times 5$ convolution with stride 2, which downsamples the input from 64 melbins to 32.
|
| 383 |
+
|
| 384 |
+
Our baseline model, ResNet-22, consists of four stages of two-convolution residual blocks: $( 3 \times$ $3 , 6 4 ) \times 3$ $\times 3 ; ( 3 \times 3 , 1 2 8 , s 2 ) \times 3 ; ( 3 \times 3 , 2 5 6 , s 2 ) \times 3 ; ( 3 \times 3 , 5 1 2 , s 2 ) \times 2$ . The output then goes through a bottleneck projection layer to the 32k-dimensional output CD state: $( 4 \times 1 , 5 1 2 )$ and $( 1 \times 1 , 3 2 \mathbf { k } )$ .
|
| 385 |
+
|
| 386 |
+
bL-ResNet-22 $( \alpha = 4 , \beta = 1 ,$ ) Table 12 displays two bL-Net architectures that we experimented with based on the ResNet-22 baseline. The bL-Net baseline, bL-ResNet-22 $( \alpha = 4 , \beta = 1 )$ , consists of two branches in each Big-Little Module and is well-defined through the parameters $\alpha$ and $\beta$ . In between each Big-Little Module we downsample our input using a transition layer consisting of a residual block with a single $3 \times 3$ convolution with stride 2. Therefore, we shift one convolution operation out of the last residual block in each stage that precedes a transition layer.
|
| 387 |
+
|
| 388 |
+
Whenever downsampling is performed in the Big-Branch, it is only in the frequency dimension and not in time. Similarly, bilinear upsampling only occurs in the frequency dimension. All $b L$ -Net variants end with the same projection and output layer as ResNet-22. All merges, unless otherwise specified, are through linear combination with unit weights per branch. For comparison, we experimented with a version of bL-ResNet-22 $\mathbf { \Phi } ( \alpha = 4 , \beta = 1 $ ) using concatenation to merge branches, the results of which are presented in Table 3. Using concatenation instead of linear combination in this model results in each stage having more channels after concatenation than the current stage of the network calls for (i.e. in stage 1 we end up with $6 4 + 1 6 = 8 0$ channels at the end of the relevant Big-Little Module, whereas we only want 64 channels to be outputted). To resolve this, we apply a $1 \times 1$ convolution to reduce the number of channels accordingly and fuse the two separate feature maps.
|
| 389 |
+
|
| 390 |
+
Table 12: Network configurations of bL-ResNets applied to speech for acoustic modeling.
|
| 391 |
+
|
| 392 |
+
<table><tr><td>Layers</td><td>Output Size 一</td><td colspan="3">bL-ResNet-22 (α=4,β=1)</td><td colspan="3">bL-ResNet-22 (α= 2,β=3)</td></tr><tr><td>Convolution</td><td>32×T T=49→45</td><td colspan="6">5×5,64,s2</td></tr><tr><td>bL-module</td><td>32×T T=45→35</td><td>(3×3,64) 3×3,64 ×2 B (3×3,64)g ×1</td><td>(3×3,16) (3×3,16)L (3 ×3,16), × 1</td><td>×2</td><td>(3×3,64) ×2 3×3,64) B (3 ×3,64)B ×1</td><td>(3×3,32) (3×3,32)</td><td>×1</td></tr><tr><td>transition layer</td><td>16×T T=35→33</td><td colspan="6">(3×3,64,s2)×1</td></tr><tr><td>bL-module</td><td>16×T T= 33→23</td><td>(3×3,128) ×2 (3×3,128) B</td><td>(3×3,32) (3×3,32)</td><td>×2 L</td><td>(3×3,128) ×2 3×3,128 B</td><td>(3×3,64) 3×3,64)</td><td>×1 L</td></tr><tr><td>transition layer</td><td>8×T T=23→21</td><td colspan="6">(3×3,128)B ×1 (3×3,32) ×1 (3×3,128)g ×1 (3×3,128,s2)×1</td></tr><tr><td>bL-module</td><td>8×T T=21→11</td><td>(3×3,256) ×2 3×3,256 B</td><td>(3×3,64) (3×3,64) L</td><td>×2</td><td>(3×3,256) ×2 3×3,256 B</td><td>(3×3,128) 3×3,128)</td><td>×1 L</td></tr><tr><td>transition layer</td><td>4×T</td><td colspan="6">(3×3,256)B ×1 (3×3,64) ×1 (3×3,256)g ×1 (3×3,256,s2) ×1</td></tr><tr><td>bL-module</td><td>T=11→9 4×T</td><td colspan="6">(3×3,512) (3×3,128) (3×3,512) ×2 ×2 ×2</td></tr><tr><td>Convolution</td><td>T=9→1 1×1</td><td colspan="6">(3×3,512) (3×3,128) (3×3,512) B L</td></tr><tr><td>Convolution</td><td>1×1</td><td colspan="6">4×1,512 1 × 1,32k</td></tr></table>
|
| 393 |
+
|
| 394 |
+
For each $B$ block, the first $3 \times 3$ convolution is with stride 2 (in frequency), and a bilinear upsampling is applied at the end. For each $L$ block, a $1 \times 1$ convolution is applied at the end to match feature maps. $s 2$ : the stride is set to 2 in the frequency dimension (not in time) for the convolutional layer. $T = T _ { 0 } T _ { 1 }$ indicates that $T _ { 0 }$ is the size of the time dimension at the start of the given layer, which is reduced to $T _ { 1 }$ by the end of the layer.
|
| 395 |
+
|
| 396 |
+
bL-ResNet-22 $( \alpha = 4 , \beta = 2 , 3 )$ We explored two more models where we fix $\alpha = 4$ , one in which we take $\beta = 2$ and another where $\beta = 3$ . All Big-Branchs in these models are the same as bL-ResNet-22 $( \alpha = 4 , \beta = 1 )$ ). The difference in each Little-Branch is based on the setting of $\beta$ . Since the number of convolutions we use in the bL-Net baseline is uneven in the first three stages, we take $\lceil L / \beta \rceil$ to be the depth of the Little-Branch, where $L$ is the depth of the Big-Branch. For $\beta = 2$ , the first three stages of the network have a Little-Branch consisting of one residual block with two $3 \times 3$ convolutions and one residual block with one $3 \times 3$ convolution. This results in a reduction of the number of convolutions from 5 in the Big-Branch to 3 in the Little-Branch. For $\beta = 3$ , the first three stages of the network have a Little-Branch consisting of one residual block with two $3 \times 3$ convolutions, resulting in a reduction in the number of convolutions from 5 in the Big-Branch to 2 in the Little-Branch. For both models, the Little-Branch in the final stage consists of a single residual block with two $3 \times 3$ convolutions, since there are only four convolutions in the Big-Branch of the final stage and $\lceil 4 / 3 \rceil = \lceil 4 / 2 \rceil = 2$ .
|
| 397 |
+
|
| 398 |
+
In all bL-Net variants in which $\beta > 1$ , because we can’t pad in time, we see that the time dimension will get out of sync between the Big-Branch and Little-Branch. Therefore, before merging we need to match the output size of each branch. To do this, we crop the shallower branches in time to match the deepest branch (i.e. the Big-Branch will always have a smaller time dimension due to having more convolutions, so we crop to match it). This is similar to the way the shortcut in ResNet is dealt with in (Saon et al., 2017), and does not introduce edge artifacts when processing longer sequences.
|
| 399 |
+
|
| 400 |
+
bL-ResNet-22 $( \alpha = 2 , \beta = 3 )$ ) The last of our two-branch models is where $\alpha = 2$ and $\beta = 3$ which is also presented in Table 12. This variant is well-defined in $\alpha$ and $\beta$ up to the first three stages of the network. In the last stage, however, we opt to not branch and instead follow identically the final stage of ResNet-22 with two residual blocks operating at the full input resolution with 512 channels.
|
| 401 |
+
|
| 402 |
+
bL-PYR-ResNet-22 $( \alpha = 4 , \beta = 1$ ) We additionally present results on a pyramidal structure, in which the first stage of the network operates with four branches, the second with three, the third with two, and the fourth equivalent to the fourth stage of ResNet-22 (and bL-ResNet-22 $( \alpha = 2 , \beta = 3 )$ ). Due to the setting of $\alpha = 4$ , we increased the number of channels in the first stage Big-Branch to have 256 channels (with the three Little-Branches in this stage having 64, 16, and 4 channels), avoiding a single channel on the smallest branch. Note that the middle branches require both resolution upsampling and $1 \times 1$ convolution to match channels. The third stage Big-Little Module operates on two branches and is identical to the analagous stage in bL-ResNet-22 $\alpha = 4 , \beta = 1$ ).
|
parse/train/HJMHpjC9Ym/HJMHpjC9Ym_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJMHpjC9Ym/HJMHpjC9Ym_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJMHpjC9Ym/HJMHpjC9Ym_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJx81ySKwr/HJx81ySKwr.md
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ITERATIVE ENERGY-BASED PROJECTION ON A NORMAL DATA MANIFOLD FOR ANOMALY LOCALIZATION
|
| 2 |
+
|
| 3 |
+
David Dehaene∗, Oriel Frigo∗, Sébastien Combrexelle, Pierre Eline AnotherBrain, Paris, France {david, oriel, sebastien, pierre}@anotherbrain.ai
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Autoencoder reconstructions are widely used for the task of unsupervised anomaly localization. Indeed, an autoencoder trained on normal data is expected to only be able to reconstruct normal features of the data, allowing the segmentation of anomalous pixels in an image via a simple comparison between the image and its autoencoder reconstruction. In practice however, local defects added to a normal image can deteriorate the whole reconstruction, making this segmentation challenging. To tackle the issue, we propose in this paper a new approach for projecting anomalous data on a autoencoder-learned normal data manifold, by using gradient descent on an energy derived from the autoencoder’s loss function. This energy can be augmented with regularization terms that model priors on what constitutes the user-defined optimal projection. By iteratively updating the input of the autoencoder, we bypass the loss of high-frequency information caused by the autoencoder bottleneck. This allows to produce images of higher quality than classic reconstructions. Our method achieves state-of-the-art results on various anomaly localization datasets. It also shows promising results at an inpainting task on the CelebA dataset.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Automating visual inspection on production lines with artificial intelligence has gained popularity and interest in recent years. Indeed, the analysis of images to segment potential manufacturing defects seems well suited to computer vision algorithms. However these solutions remain data hungry and require knowledge transfer from human to machine via image annotations. Furthermore, the classification in a limited number of user-predefined categories such as non-defective, greasy, scratched and so on, will not generalize well if a previously unseen defect appears. This is even more critical on production lines where a defective product is a rare occurrence. For visual inspection, a better-suited task is unsupervised anomaly detection, in which the segmentation of the defect must be done only via prior knowledge of non-defective samples, constraining the issue to a two-class segmentation problem.
|
| 12 |
+
|
| 13 |
+
From a statistical point of view, an anomaly may be seen as a distribution outlier, or an observation that deviates so much from other observations as to arouse suspicion that it was generated by a different mechanism (Hawkins, 1980). In this setting, generative models such as Variational AutoEncoders (VAE, Kingma & Welling (2014)), are especially interesting because they are capable to infer possible sampling mechanisms for a given dataset. The original autoencoder (AE) jointly learns an encoder model, that compresses input samples into a low dimensional space, and a decoder, that decompresses the low dimensional samples into the original input space, by minimizing the distance between the input of the encoder and the output of the decoder. The more recent variant, VAE, replaces the deterministic encoder and decoder by stochastic functions, enabling the modeling of the distribution of the dataset samples as well as the generation of new, unseen samples. In both models, the output decompressed sample given an input is often called the reconstruction, and is used as some sort of projection of the input on the support of the normal data distribution, which we will call the normal manifold. In most unsupervised anomaly detection methods based on VAE, models are trained on flawless data and defect detection and localization is then performed using a distance metric between the input sample and its reconstruction (Bergmann et al., 2018; 2019; An & Cho, 2015; Baur et al., 2018; Matsubara et al., 2018).
|
| 14 |
+
|
| 15 |
+
One fundamental issue in this approach is that the models learn on the normal manifold, hence there is no guarantee of the generalization of their behavior outside this manifold. This is problematic since it is precisely outside the dataset distribution that such methods intend to use the VAE for anomaly localization. Even in the case of a model that always generates credible samples from the dataset distribution, there is no way to ensure that the reconstruction will be connected to the input sample in any useful way. An example illustrating this limitation is given in figure 1, where a VAE trained on regular grid images provides a globally poor reconstruction despite a local perturbation, making the anomaly localization challenging.
|
| 16 |
+
|
| 17 |
+
In this paper, instead of using the VAE reconstruction, we propose to find a better projection of an input sample on the normal manifold, by optimizing an energy function defined by an autoencoder architecture. Starting at the input sample, we iterate gradient descent steps on the input to converge to an optimum, simultaneously located on the data manifold and closest to the starting input. This method allows us to add prior knowledge about the expected anomalies via regularization terms, which is not possible with the raw VAE reconstruction. We show that such an optimum is better than previously proposed autoencoder reconstructions to localize anomalies on a variety of unsupervised anomaly localization datasets (Bergmann et al., 2019) and present its inpainting capabilities on the CelebA dataset (Liu et al., 2015). We also propose a variant of the standard gradient descent that uses the pixel-wise reconstruction error to speed up the convergence of the energy.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Even though an anomaly is a local perturbation in the image (b), the whole VAEreconstructed image can be disturbed (c). Our gradient descent-based method gives better quality reconstructions (d).
|
| 21 |
+
|
| 22 |
+
# 2 BACKGROUND
|
| 23 |
+
|
| 24 |
+
# 2.1 GENERATIVE MODELS
|
| 25 |
+
|
| 26 |
+
In unsupervised anomaly detection, the only data available during training are samples $\mathbf { x }$ from a non-anomalous dataset $\check { \mathbb { X } } \subset \mathbb { R } ^ { d }$ . In a generative setting, we suppose the existence of a probability function of density $q$ , having its support on all $\mathbb { R } ^ { \bar { d } }$ , from which the dataset was sampled. The generative objective is then to model an estimate of density $q$ , from which we can obtain new samples close to the dataset. Popular generative architectures are Generative Adversarial Networks (GAN, Goodfellow et al. (2014)), that concurrently train a generator $G$ to generate samples from random, low-dimensional noise $\mathbf { z } \ \sim \ p , \ \mathbf { z } \ \in \ \mathbf { \bar { \mathbb { R } } } ^ { l } , \ l \ \ll \ \mathbf { \bar { d } } .$ , and a discriminator $D$ to classify generated samples and dataset samples. This model converges to the equilibrium of the expectation over both real and generated datasets of the binary cross entropy loss of the classifier $m i n _ { G } m a x _ { D }$ [ $\mathbb { E } _ { { \mathbf { x } } \sim q } \left[ \log ( D ( \mathbf { x } ) ) \right] + \mathbb { E } _ { { \mathbf { z } } \sim p } \left[ \log ( 1 - D ( G ( \mathbf { z } ) ) ) \right] ]$ .
|
| 27 |
+
|
| 28 |
+
Disadvantages of GANs are that they are notoriously difficult to train (Goodfellow, 2017), and they suffer from mode collapse, meaning that they have the tendency to only generate a subset of the original dataset. This can be problematic for anomaly detection, in which we do not want some subset of the normal data to be considered as anomalous (Bergmann et al., 2019). Recent works such as Thanh-Tung et al. (2019) offer simple and attractive explanations for GAN behavior and propose substantial upgrades, however Ravuri & Vinyals (2019) still support the point that GANs have more trouble than other generative models to cover the whole distribution support.
|
| 29 |
+
|
| 30 |
+
Another generative model is the VAE (Kingma & Welling (2014)), where, similar to a GAN generator, a decoder model tries to approximate the dataset distribution with a simple latent variables prior $p ( \mathbf { z } )$ , with $\mathbf { z } \in \mathbb { R } ^ { l }$ , and conditional distributions output by the decoder $p ( \mathbf { x } | \mathbf { z } )$ . This leads to the estimate $\begin{array} { r } { p ( \mathbf { x } ) = \int p ( \mathbf { x } | \mathbf { z } ) p ( \mathbf { z } ) d z } \end{array}$ , that we would like to optimize using maximum likelihood estimation on the dataset. To render the learning tractable with a stochastic gradient descent (SGD) estimator with reasonable variance, we use importance sampling, introducing density functions $q ( \mathbf { z } | \mathbf { x } )$ output by an encoder network, and Jensen’s inequality to get the variational lower bound :
|
| 31 |
+
|
| 32 |
+
$$
|
| 33 |
+
\begin{array} { r l } & { \log p ( \mathbf { x } ) = \log \ \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } \mid \mathbf { x } ) } \frac { p ( \mathbf { x } \mid \mathbf { z } ) p ( \mathbf { z } ) } { q ( \mathbf { z } \mid \mathbf { x } ) } } \\ & { \qquad \geq \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } \mid \mathbf { x } ) } \log \ p ( \mathbf { x } \mid \mathbf { z } ) - D _ { \mathrm { K L } } ( q ( \mathbf { z } \mid \mathbf { x } ) \| p ( \mathbf { z } ) ) = - \mathcal { L } ( \mathbf { x } ) } \end{array}
|
| 34 |
+
$$
|
| 35 |
+
|
| 36 |
+
We will use $\mathcal { L } ( \mathbf { x } )$ as our loss function for training. We define the VAE reconstruction, per analogy with an autoencoder reconstruction, as the deterministic sample $f _ { V A E } ( \mathbf { x } )$ that we obtain by encoding $\mathbf { x }$ , decoding the mean of the encoded distribution $q ( \mathbf { z } | \mathbf { x } )$ , and taking again the mean of the decoded distribution $p ( \mathbf { x } | \mathbf { z } )$ .
|
| 37 |
+
|
| 38 |
+
VAEs are known to produce blurry reconstructions and generations, but Dai & Wipf (2019) show that a huge enhancement in image quality can be gained by learning the variance of the decoded distribution $p ( \mathbf { x } | \mathbf { z } )$ . This comes at the cost of the distribution of latent variables produced by the encoder $q ( \mathbf { z } )$ being farther away from the prior $p ( \mathbf { z } )$ , so that samples generated by sampling $\mathbf { z } \sim$ $p ( \mathbf { z } ) , \mathbf { x } \sim p ( \mathbf { x } | \mathbf { z } )$ have poorer quality. The authors show that using a second VAE learned on samples from $q ( \mathbf { z } )$ , and sampling from it with ancestral sampling $\mathbf { u } \sim p ( \mathbf { u } ) , \mathbf { z } \sim p ( \mathbf { z } | \mathbf { u } ) , \mathbf { x } \sim p ( \mathbf { x } | \mathbf { z } )$ , allows to recover samples of GAN-like quality. The original autoencoder can be roughly considered as a VAE whose encoded and decoded distributions have infinitely small variances.
|
| 39 |
+
|
| 40 |
+
# 2.2 ANOMALY DETECTION AND LOCALIZATION
|
| 41 |
+
|
| 42 |
+
We will consider that an anomaly is a sample with low probability under our estimation of the dataset distribution. The VAE loss, being a lower bound on the density, is a good proxy to classify samples between the anomalous and non-anomalous categories. To this effect, a threshold $T$ can be defined on the loss function, delimiting anomalous samples with ${ \mathcal { L } } ( \mathbf { x } ) \geq T$ and normal samples $\mathcal { L } ( \mathbf { x } ) < T$ . However, according to Matsubara et al. (2018), the regularization term $\mathcal { L } _ { K L } ( \mathbf { x } ) = D _ { \mathrm { K L } } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) )$ has a negative influence in the computation of anomaly scores. They propose instead an unregularized score $\mathbf { \bar { \mathcal { L } } } _ { r } ( \mathbf { x } ) = - \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) }$ log $\bar { p } ( { \bf x } | { \bf z } )$ which is equivalent to the reconstruction term of a standard autoencoder and claim a better anomaly detection.
|
| 43 |
+
|
| 44 |
+
Going from anomaly detection to anomaly localization, this reconstruction term becomes crucial to most of existing solutions. Indeed, the inability of the model to reconstruct a given part of an image is used as a way to segment the anomaly, using a pixel-wise threshold on the reconstruction error. Actually, this segmentation is very often given by a pixel-wise (An & Cho, 2015; Baur et al., 2018; Matsubara et al., 2018) or patch-wise comparison of the input image, and some generated image, as in Bergmann et al. (2018; 2019), where the structural dissimilarity (DSSIM, Wang et al. (2004)) between the input and its VAE reconstruction is used.
|
| 45 |
+
|
| 46 |
+
Autoencoder-based methods thus provide a straightforward way of generating an image conditioned on the input image. In the GAN original framework, though, images are generated from random noise $\mathbf { z } \sim p ( \mathbf { z } )$ and are not conditioned by an input. Schlegl et al. (2017) propose with AnoGAN to get the closest generated image to the input using gradient descent on $\mathbf { z }$ for an energy defined by:
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
E _ { A n o G A N } = | | \mathbf { x } - G ( \mathbf { z } ) | | _ { 1 } + \lambda \cdot | | f _ { D } ( \mathbf { x } ) - f _ { D } ( G ( \mathbf { z } ) ) | | _ { 1 }
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
The first term ensures that the generation $G ( \mathbf { z } )$ is close to the input $\mathbf { x }$ . The second term is based on a distance between features of the input and the generated images, where $f _ { D } ( { \bf x } )$ is the output of an intermediate layer of the discriminator. This term ensures that the generated image stays in the vicinity of the original dataset distribution.
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 2: Illustration of our method. We perform gradient descent on $E ( \mathbf { x } _ { t } )$ to iteratively correct $\mathbf { x } _ { t }$ .
|
| 56 |
+
|
| 57 |
+
# 3 PROPOSED METHOD
|
| 58 |
+
|
| 59 |
+
# 3.1 ADVERSARIAL PROJECTIONS
|
| 60 |
+
|
| 61 |
+
According to Zimmerer et al. (2018), the loss gradient with respect to $\mathbf { x }$ gives the direction towards normal data samples, and its magnitude could indicate how abnormal a sample is. In their work on anomaly identification, they use the loss gradient as an anomaly score.
|
| 62 |
+
|
| 63 |
+
Here we propose to use the gradient of the loss to iteratively improve the observed $\mathbf { x }$ . We propose to link this method to the methodology of computing adversarial samples in Szegedy et al. (2014).
|
| 64 |
+
|
| 65 |
+
After training a VAE on non-anomalous data, we can define a threshold $T$ on the reconstruction loss $\mathcal { L } _ { r }$ as in (Matsubara et al., 2018), such that a small proportion of the most improbable samples are identified as anomalies. We obtain a binary classifier defined by
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
A ( \mathbf { x } ) = \left\{ { \begin{array} { l l } { 1 \mathrm { i f } \mathcal { L } _ { r } ( \mathbf { x } ) \geq T } \\ { 0 \mathrm { o t h e r w i s e } } \end{array} } \right.
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
Our method consists in computing adversarial samples of this classifier (Szegedy et al., 2014), that is to say, starting from a sample $\mathbf { x } _ { \mathrm { 0 } }$ with $A ( \mathbf { x } _ { 0 } ) = \bar { 1 }$ , iterate gradient descent steps over the input $\mathbf { x }$ , constructing samples $\mathbf { x } _ { 1 } , \ldots . . . \mathbf { x } _ { N }$ , to minimize the energy $E ( \mathbf { x } )$ , defined as
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\begin{array} { r } { E ( \mathbf { x } _ { t } ) = \mathcal { L } _ { r } ( \mathbf { x } _ { t } ) + \lambda \cdot | | \mathbf { x } _ { t } - \mathbf { x } _ { 0 } | | _ { 1 } } \end{array}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
An iteration is done by calculating $\mathbf { x } _ { t + 1 }$ as
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r } { \mathbf { x } _ { t + 1 } = \mathbf { x } _ { t } - \alpha \cdot \nabla _ { \mathbf { x } } E ( \mathbf { x } _ { t } ) , } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $\alpha$ is a learning rate parameter, and $\lambda$ is a parameter trading off the inclusion of $\mathbf { x } _ { t }$ in the normal manifold, given by $\mathcal { L } _ { r } ( \mathbf { x } _ { t } )$ , and the proximity between $\mathbf { x } _ { t }$ and the input $\mathbf { x } _ { \mathrm { 0 } }$ , assured by the regularization term $| | \mathbf { x } _ { t } - \mathbf { x } _ { 0 } | | _ { 1 }$ .
|
| 84 |
+
|
| 85 |
+
# 3.2 REGULARIZATION TERM
|
| 86 |
+
|
| 87 |
+
We model the anomalous images that we encounter as normal images in which a region or several regions of pixels are altered but the rest of the pixels are left untouched. To recover the best segmentation of the anomalous pixels from an anomalous image $\mathbf { x } _ { a }$ , we want to recover the closest image from the normal manifold $\mathbf { x } _ { g }$ . The term closest has to be understood in the sense that the smallest number of pixels are modified between $\mathbf { x } _ { a }$ and $\mathbf { x } _ { g }$ . In our model, we therefore would like to use the $L ^ { 0 }$ distance as a regularization distance of the energy. Since the $L ^ { 0 }$ distance is not differentiable, we use the $L ^ { 1 }$ distance as an approximation.
|
| 88 |
+
|
| 89 |
+
# 3.3 OPTIMIZATION IN INPUT SPACE
|
| 90 |
+
|
| 91 |
+
While in our method the optimization is done in the input space, in the previously mentioned AnoGAN, the search for the optimal reconstruction is done by iterating over $\mathbf { z }$ samples with the
|
| 92 |
+
|
| 93 |
+
energy defined in equation 2. Following the aforementioned analogy between a GAN generator $G$ and a VAE decoder $D e c$ , a similar approach in the context of a VAE would be to use the energy
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
| | \mathbf { x } - D e c ( \mathbf { z } ) | | _ { 1 } - \lambda \cdot \log p ( \mathbf { z } )
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where the $- \log p ( \mathbf { z } )$ term has the same role as AnoGAN’s $| | f _ { D } ( \mathbf { x } ) - f _ { D } ( G ( \mathbf { z } ) ) | | _ { 1 }$ term, to ensure that $D e c ( \mathbf { z } )$ stays within the learned manifold. We chose not to iterate over $\mathbf { z }$ in the latent space for two reasons. First, because as noted in Dai & Wipf (2019) and Hoffman & Johnson (2016), the prior $p ( \mathbf { z } )$ is not always a good proxy for the real image of the distribution in the latent space $q ( \mathbf { z } )$ . Second, because the VAE tends to ignore some details of the original image in its reconstruction, considering that these details are part of the independent pixel noise allowed by the modeling of $p ( \mathbf { x } | \mathbf { z } )$ as a diagonal Gaussian, which causes its infamous blurriness. An optimization in latent space would have to recreate the high frequency structure of the image, whereas iterating over the input image space, and starting the descent on the input image $\mathbf { x } _ { \mathrm { 0 } }$ , allows us to keep that structure and thus to obtain projections of higher quality.
|
| 100 |
+
|
| 101 |
+
# 3.4 OPTIMIZING GRADIENT DESCENT
|
| 102 |
+
|
| 103 |
+
We observed that using the Adam optimizer (Kingma & Ba, 2015) is beneficial for the quality of the optimization. Moreover, to speed up the convergence and further preserve the aforementioned high frequency structure of the input, we propose to compute our iterative samples using the pixel-wise reconstruction error of the VAE. To explain the intuition behind this improvement, we will consider the inpainting task. In this setting, as in anomaly localization, a local perturbation is added on top of a normal image. However, in the classic inpainting task, the localization of the perturbation is known beforehand, and we can use the localization mask $\pmb { \Omega }$ to only change the value of the anomalous pixels in the gradient descent:
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\mathbf { x } _ { t + 1 } = \mathbf { x } _ { t } - \alpha \cdot \left( \nabla _ { \mathbf { x } } E ( \mathbf { x } _ { t } ) \odot \Omega \right)
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $\odot$ is the Hadamard product.
|
| 110 |
+
|
| 111 |
+
For anomaly localization and blind inpainting, where this information is not available, we compute the pixel-wise reconstruction error which gives a rough estimate of the mask. The term $\nabla _ { \mathbf x } E ( \mathbf x _ { t } )$ is therefore replaced with $\nabla _ { \mathbf x } E ( \mathbf x _ { t } ) \odot ( { \mathbf x _ { t } } - f _ { V A E } ( \mathbf { x } _ { t } ) ) ^ { 2 } .$ ) in equation 5:
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\mathbf { x } _ { t + 1 } = \mathbf { x } _ { t } - \alpha \cdot \left( \nabla _ { \mathbf { x } } E ( \mathbf { x } _ { t } ) \odot ( \mathbf { x } _ { t } - f _ { V A E } ( \mathbf { x } _ { t } ) ) ^ { 2 } \right)
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where $f _ { V A E } ( \mathbf { x } )$ is the standard reconstruction of the VAE. Optimizing the energy this way, a pixel where the reconstruction error is high will update faster, whereas a pixel with good reconstruction will not change easily. This prevents the image to update its pixels where the reconstruction is already good, even with a high learning rate. As can be seen in appendix B, this method converges to the same performance as the method of equation 5, but with fewer iterations. An illustration of our method can be found in figure 2.
|
| 118 |
+
|
| 119 |
+
# 3.5 STOP CRITERION
|
| 120 |
+
|
| 121 |
+
A standard stop criterion based on the convergence of the energy can efficiently be used. Using the adversarial setting introduced in section 3.1, we also propose to stop the gradient descent when a certain predefined threshold on the VAE loss is reached. For example, such a threshold can be chosen to be a quantile of the empirical loss distribution computed on the training set.
|
| 122 |
+
|
| 123 |
+
# 4 EXPERIMENTS
|
| 124 |
+
|
| 125 |
+
In this section, we evaluate the proposed method for two different applications: anomaly segmentation and image inpainting. Both applications are interesting use cases of our method, where we search to reconstruct partially corrupted images, correcting the anomalies while preserving the uncorrupted image regions.
|
| 126 |
+
|
| 127 |
+
# 4.1 UNSUPERVISED ANOMALY SEGMENTATION
|
| 128 |
+
|
| 129 |
+
In order to evaluate the proposed method for the task of anomaly segmentation, we perform experiments with the recently proposed MVTec dataset (Bergmann et al., 2019). This collection of datasets
|
| 130 |
+
|
| 131 |
+
Table 1: Results for anomaly segmentation on MVTec datasets, expressed in AUROC (Area Under the Receiver Operating Characteristics). Four different baselines are trained on normal samples and are augmented by our proposed gradient based reconstruction (grad) for comparison: A deterministic autoencoder trained with $L ^ { \tilde { 2 } }$ loss $( L ^ { 2 } \mathbf { A E } )$ as in (Bergmann et al., 2019); A deterministic autoencoder trained with DSSIM loss (DSAE) as in (Bergmann et al., 2019); A variational autoencoder (VAE); And a variational autoencoder with a learned decoder variance $\langle \gamma \cdot$ -VAE) as in (Dai & Wipf, 2019). For each result a green or red background denotes respectively an improvement or a decrease in performance compared to the baseline. It can be seen that the proposed gradient-based reconstruction achieves the best segmentation for most datasets, with a mean improvement rate of $9 . 5 2 \%$ over all baselines.
|
| 132 |
+
|
| 133 |
+
<table><tr><td colspan="2">Category</td><td>L²AE</td><td>L²AE grad</td><td>DSAE</td><td>DSAE grad</td><td>VAE</td><td>VAE grad</td><td>γ-VAE</td><td>γ-VAE grad</td></tr><tr><td rowspan="5">TJ annes</td><td>carpet</td><td>0.539</td><td>0.734</td><td>0.545</td><td>0.774</td><td>0.580</td><td>0.735</td><td>0.648</td><td>0.727</td></tr><tr><td>grid</td><td>0.960</td><td>0.981</td><td>0.960</td><td>0.980</td><td>0.888</td><td>0.961</td><td>0.950</td><td>0.979</td></tr><tr><td>leather</td><td>0.751</td><td>0.921</td><td>0.710</td><td>0.602</td><td>0.834</td><td>0.925</td><td>0.818</td><td>0.897</td></tr><tr><td>tile</td><td>0.476</td><td>0.575</td><td>0.496</td><td>0.626</td><td>0.465</td><td>0.654</td><td>0.491</td><td>0.581</td></tr><tr><td>wood</td><td>0.630</td><td>0.805</td><td>0.641</td><td>0.738</td><td>0.695</td><td>0.838</td><td>0.665</td><td>0.809</td></tr><tr><td rowspan="9">seetqt</td><td>bottle</td><td>0.909</td><td>0.916</td><td>0.933</td><td>0.951</td><td>0.902</td><td>0.922</td><td>0.913</td><td>0.931</td></tr><tr><td>cable</td><td>0.732</td><td>0.864</td><td>0.790</td><td>0.859</td><td>0.828</td><td>0.910</td><td>0.777</td><td>0.880</td></tr><tr><td>capsule</td><td>0.786</td><td>0.952</td><td>0.769</td><td>0.884</td><td>0.862</td><td>0.917</td><td>0.814</td><td>0.917</td></tr><tr><td>hazelnut</td><td>0.976</td><td>0.984</td><td>0.966</td><td>0.966</td><td>0.977</td><td>0.976</td><td>0.977</td><td>0.988</td></tr><tr><td>metalnut</td><td>0.880</td><td>0.899</td><td>0.881</td><td>0.920</td><td>0.881</td><td>0.907</td><td>0.883</td><td>0.914</td></tr><tr><td>pill</td><td>0.885</td><td>0.912</td><td>0.895</td><td>0.927</td><td>0.888</td><td>0.930</td><td>0.897</td><td>0.935</td></tr><tr><td>screw</td><td>0.979</td><td>0.980</td><td>0.983</td><td>0.925</td><td>0.958</td><td>0.945</td><td>0.976</td><td>0.972</td></tr><tr><td>toothbrush</td><td>0.971</td><td>0.983</td><td>0.973</td><td>0.984</td><td>0.971</td><td>0.985</td><td>0.971</td><td>0.983</td></tr><tr><td>transistor</td><td>0.906</td><td>0.921</td><td>0.904</td><td>0.934</td><td>0.894</td><td>0.919</td><td>0.896</td><td>0.931</td></tr><tr><td>zipper</td><td></td><td>0.680</td><td>0.889</td><td>0.828</td><td>0.887</td><td>0.814</td><td>0.869</td><td>0.706</td><td>0.871</td></tr></table>
|
| 134 |
+
|
| 135 |
+
consists of 15 different categories of objects and textures in the context of industrial inspection, each category containing a number of normal and anomalous samples.
|
| 136 |
+
|
| 137 |
+
We train our model on normal training samples and test it on both normal and anomalous test samples to evaluate the anomaly segmentation performance.
|
| 138 |
+
|
| 139 |
+
We perform experiments with three different baseline autoencoders: A “vanilla” variational autoencoder with decoder covariance matrix fixed to identity (Kingma & Welling, 2014), a variational autoencoder with learned decoder variance (Dai & Wipf, 2019), a “vanilla” deterministic autoencoder trained with $L ^ { 2 }$ as reconstruction loss $( L ^ { 2 } \mathrm { A E } )$ and a deterministic autoencoder trained with DSSIM reconstruction loss (DSAE), as proposed by Bergmann et al. (2018). For the sake of a fair comparison, all the autoencoder models are parameterized by convolutional neural networks with the same architecture, latent space dimensionality (set to 100), learning rate (set to 0.0001) and number of epochs (set to 300). The architecture details (layers, paddings, strides) are the same as described in Bergmann et al. (2018) and Bergmann et al. (2019). Similarly to the authors in Bergmann et al. (2019), for the textures datasets, we first subsample the original dataset images to $5 1 2 \times 5 1 2$ and then crop random patches of size $1 2 8 \times 1 2 8$ which are used to train and test the different models. For the object datasets, we directly subsample the original dataset images to $1 2 8 \times 1 2 8$ unlike in Bergmann et al. (2019) who work on $2 5 6 \times 2 5 6$ images, then we perform rotation and translation data augmentations. For all datasets we train on 10000 images.
|
| 140 |
+
|
| 141 |
+
Anomaly segmentation is then computed by reconstructing the anomalous image and comparing it with the original. We perform the comparison between reconstructed and original with the DSSIM metric as it has been observed in Bergmann et al. (2018) that it provides better anomaly localization than $L ^ { 2 }$ or $L ^ { 1 }$ distances. For the gradient descent, we set the step size $\alpha : = 0 . 5$ , $L ^ { 1 }$ regularization weight $\lambda : = 0 . 0 5$ and the stop criterion is achieved when a sample reconstruction loss is inferior to the minimum reconstruction loss over the training set.
|
| 142 |
+
|
| 143 |
+
In table 1 we show the AUROC (Area Under the Receiver Operating Characteristics) for different autoencoder methods, with different thresholds applied to the DSSIM anomaly map computed between original and reconstructed images. Note that an AUROC of 1 expresses the best possible segmentation in terms of normal and anomalous pixels. For each autoencoder variant we compare the baseline reconstruction with the proposed gradient-based reconstruction (grad.). As in Bergmann et al. (2019) we observe that an overall best model is hard to identify, however we show that our method increases the AUC values for almost all autoencoder variants. Aggregating the results over all datasets and baselines, we report a mean improvement rate of $9 . 5 2 \%$ , with a median of $4 . 3 3 \%$ , a 25th percentile of $1 . 8 6 \%$ , and a 75th percentile of $1 5 . 8 6 \%$ . The histogram of the improvement rate for all datasets and baselines is provided in appendix F, as well as a short analysis.
|
| 144 |
+
|
| 145 |
+
In figure 3 we compare our anomaly segmentation with a baseline $L ^ { 2 }$ autoencoder Bergmann et al. (2019) $( L ^ { 2 } \mathbf { A E } )$ for a number of image categories. For all results in figure 3, we set the same threshold to 0.2 to the anomaly detection map given by the DSSIM metric. The visual results in figure 3 highlights an overall improvement of anomaly localization by our proposed iterative reconstruction $\bar { L ^ { 2 } } \mathrm { A } \bar { \mathrm { E } }$ -grad). See appendix C for additional visual results of anomaly segmentation on remaining categories of MVTec dataset, and on remaining baseline models.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 3: First row: Normal samples of hazelnut, grid, cable, wood, carpet and bottle categories in MVTec dataset; Second row: anomalous samples from the aforementioned dataset categories; Third row: Anomaly segmentation with baseline $\bar { L } ^ { 2 }$ autoencoder (Bergmann et al., 2019); Fourth row: our proposed anomaly segmentation with $L ^ { 2 }$ autoencoder augmented with gradient-based iterative reconstruction. Ground truth is represented by red contour, and each estimated segmentation by a green overlay. It can be seen that anomaly segmentation is refined by our proposed method, with a tendency of detecting less false positives.
|
| 149 |
+
|
| 150 |
+
# 4.2 INPAINTING
|
| 151 |
+
|
| 152 |
+
Image inpainting is a well known image reconstruction problem which consists of reconstructing a corrupted or missing part of an image, where the region to be reconstructed is usually given by a known mask. Many different approaches for inpainting have been proposed in the literature, such as anisotropic diffusion (Bertalmio et al., 2000), patch matching (Criminisi et al., 2004), context autoencoders (Pathak et al., 2016) and conditional variational autoencoders (Ivanov et al., 2019).
|
| 153 |
+
|
| 154 |
+
If we consider that the region to be reconstructed is not known beforehand, the problem is sometimes called blind inpainting (Altinel et al., 2018), and the corrupted part can be seen as an anomaly to be corrected.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 4: Inpainting experiment performed on CelebA dataset, where the test face images are masked with uniform noise. The baseline VAE reconstruction is disturbed by the noise mask, providing a poor inpainting. The proposed gradient-based VAE provides a more convincing inpainting by an iterative process.
|
| 158 |
+
|
| 159 |
+
We performed experiments with image inpainting on the CelebA dataset (Liu et al., 2015), which consists of celebrity faces. In figure 4 we compare the inpainting results obtained with a baseline VAE with learned variance $\left( \gamma { \mathrm { - V A E } } \right)$ and Resnet architecture, as described by Dai & Wipf (2019), with the same VAE model, augmented by our proposed gradient-based iterative reconstruction. Note that for the regular inpainting task, gradients are multiplied by the inpainting mask at each iteration (equation 7), while for the blind inpainting task, the mask is unknown. See appendix D for a comparison with a recent method based on variational autoencoders, proposed by Ivanov et al. (2019).
|
| 160 |
+
|
| 161 |
+
# 5 RELATED WORK
|
| 162 |
+
|
| 163 |
+
Baur et al. (2018) have used autoencoder reconstructions to localize anomalies in MRI scans, and have compared several variants using diverse per-pixel distances as well as perceptual metrics derived from a GAN-like architecture. Bergmann et al. (2018) use the structural similarity metric (Wang et al., 2004) to compare the original image and its reconstruction to achieve better anomaly localization, and also presents the SSIM autoencoder, which is trained directly with this metric.
|
| 164 |
+
|
| 165 |
+
Zimmerer et al. (2018) use the derivative of the VAE loss function with respect to the input, called the score. The amplitude of the score is supposed to indicate how abnormal a pixel is. While we agree that the gradient of the loss is an indication of an anomaly, we think that we have to integrate this gradient over the path from the input to the normal manifold to obtain meaningful information. We compare our results to score-based results for anomaly localization in appendix A.
|
| 166 |
+
|
| 167 |
+
The work that is the most related to ours is AnoGAN (Schlegl et al., 2017). We have mentioned above the differences between the two approaches, which, apart from the change in underlying architectures, boil down to the ability in our method to update directly the input image instead of searching for the optimal latent code. This enables the method to converge faster and above all to keep higher-frequency structures of the input, which would have been deteriorated if it were passed through the AE bottleneck. Bergmann et al. (2019) compare standard AE reconstructions techniques to AnoGAN, and observes that AnoGAN’s performances on anomaly localizations tasks are poorer than AE’s due to the mode collapse tendency of GAN architectures. Interestingly, updates on AnoGAN such as fast AnoGAN (Schlegl et al., 2019) or AnoVAEGAN (Baur et al., 2018) replaced the gradient descent search of the optimal z with a learned encoder model, yielding an approach very similar to the standard VAE reconstruction-based approaches, but with a reconstruction loss learned by a discriminator, which is still prone to mode collapse (Thanh-Tung et al., 2019).
|
| 168 |
+
|
| 169 |
+
# 6 CONCLUSION
|
| 170 |
+
|
| 171 |
+
In this paper, we proposed a novel method for unsupervised anomaly localization, using gradient descent of an energy defined by an autoencoder reconstruction loss. Starting from a sample under test, we iteratively update this sample to reduce its autoencoder reconstruction error. This method offers a way to incorporate human priors into what is the optimal projection of an out-of-distribution sample into the normal data manifold. In particular, we use the pixel-wise reconstruction error to modulate the gradient descent, which gives impressive anomaly localization results in only a few iterations. Using gradient descent in the input data space, starting from the input sample, enables us to overcome the autoencoder tendency to provide blurry reconstructions and keep normal high frequency structures. This significantly reduces the number of pixels that could be wrongly classified as defects when the autoencoder fails to reconstruct high frequencies. We showed that this method, which can easily be added to any previously trained autoencoder architecture, gives state-of-the-art results on a variety of unsupervised anomaly localization datasets, as well as qualitative reconstructions on an inpainting task. Future work can focus on replacing the $L ^ { 1 }$ -based regularization term with a Bayesian prior modeling common types of anomalies, and on further improving the speed of the gradient descent.
|
| 172 |
+
|
| 173 |
+
# REFERENCES
|
| 174 |
+
|
| 175 |
+
Fazil Altinel, Mete Ozay, and Takayuki Okatani. Deep structured energy-based image inpainting. In 2018 24th International Conference on Pattern Recognition (ICPR), pp. 423–428, Aug 2018. doi: 10.1109/ICPR.2018.8546025.
|
| 176 |
+
|
| 177 |
+
Jinwon An and Sungzoon Cho. Variational autoencoder based anomaly detection using reconstruction probability. Technical report, SNU Data Mining Center, 2015.
|
| 178 |
+
|
| 179 |
+
Christoph Baur, Benedikt Wiestler, Shadi Albarqouni, and Nassir Navab. Deep autoencoding models for unsupervised anomaly segmentation in brain MR images. CoRR, abs/1804.04488, 2018.
|
| 180 |
+
|
| 181 |
+
Paul Bergmann, Sindy Löwe, Michael Fauser, David Sattlegger, and Carsten Steger. Improving unsupervised defect segmentation by applying structural similarity to autoencoders. CoRR, abs/1807.02011, 2018.
|
| 182 |
+
|
| 183 |
+
Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad — a comprehensive real-world dataset for unsupervised anomaly detection. CVPR, 2019.
|
| 184 |
+
|
| 185 |
+
Marcelo Bertalmio, Guillermo Sapiro, Vincent Caselles, and Coloma Ballester. Image inpainting. In Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH $\mathbf { \dot { \theta } } _ { 0 0 }$ , pp. 417–424, New York, NY, USA, 2000. ACM Press/Addison-Wesley Publishing Co. ISBN 1-58113-208-5. doi: 10.1145/344779.344972.
|
| 186 |
+
|
| 187 |
+
Antonio Criminisi, Patrick Pérez, and Kentaro Toyama. Region filling and object removal by exemplar-based image inpainting. Trans. Img. Proc., 13(9):1200–1212, September 2004. ISSN 1057-7149. doi: 10.1109/TIP.2004.833105.
|
| 188 |
+
|
| 189 |
+
Bin Dai and David P. Wipf. Diagnosing and enhancing VAE models. CoRR, abs/1903.05789, 2019.
|
| 190 |
+
|
| 191 |
+
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.
|
| 192 |
+
|
| 193 |
+
Ian J. Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. CoRR, abs/1701.00160, 2017.
|
| 194 |
+
|
| 195 |
+
Douglas M Hawkins. Identification of outliers. Monographs on applied probability and statistics. Chapman and Hall, London [u.a.], 1980. ISBN 041221900X.
|
| 196 |
+
|
| 197 |
+
Matthew D. Hoffman and Matthew J. Johnson. Elbo surgery: yet another way to carve up the variational evidence lower bound. In NIPS 2016 Workshop on Advances in Approximate Bayesian Inference, 2016.
|
| 198 |
+
|
| 199 |
+
Oleg Ivanov, Michael Figurnov, and Dmitry Vetrov. Variational autoencoder with arbitrary conditioning. In International Conference on Learning Representations, 2019.
|
| 200 |
+
|
| 201 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
|
| 202 |
+
|
| 203 |
+
Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Yoshua Bengio and Yann LeCun (eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
|
| 204 |
+
|
| 205 |
+
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015.
|
| 206 |
+
|
| 207 |
+
Takashi Matsubara, Ryosuke Tachibana, and Kuniaki Uehara. Anomaly machine component detection by deep generative model with unregularized score. CoRR, abs/1807.05800, 2018.
|
| 208 |
+
|
| 209 |
+
Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei Efros. Context encoders: Feature learning by inpainting. In Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 210 |
+
|
| 211 |
+
Suman V. Ravuri and Oriol Vinyals. Classification accuracy score for conditional generative models. CoRR, abs/1905.10887, 2019.
|
| 212 |
+
|
| 213 |
+
Thomas Schlegl, Philipp Seeböck, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, pp. 146– 157. Springer, 2017.
|
| 214 |
+
|
| 215 |
+
Thomas Schlegl, Philipp Seeböck, Sebastian M. Waldstein, Georg Langs, and Ursula SchmidtErfurth. f-anogan: Fast unsupervised anomaly detection with generative adversarial networks. Medical Image Analysis, 54:30 – 44, 2019. ISSN 1361-8415. doi: https://doi.org/10.1016/j. media.2019.01.010.
|
| 216 |
+
|
| 217 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Yoshua Bengio and Yann LeCun (eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
|
| 218 |
+
|
| 219 |
+
Hoang Thanh-Tung, Truyen Tran, and Svetha Venkatesh. Improving generalization and stability of generative adversarial networks. CoRR, abs/1902.03984, 2019.
|
| 220 |
+
|
| 221 |
+
Zhou Wang, Alan Bovik, Hamid Sheikh, and Eero Simoncelli. Image quality assessment: From error visibility to structural similarity. Image Processing, IEEE Transactions on, 13:600 – 612, 05 2004. doi: 10.1109/TIP.2003.819861.
|
| 222 |
+
|
| 223 |
+
David Zimmerer, Fabian Isensee, Jens Petersen, Simon Kohl A. A., and Klaus H. Maier-Hein. Unsupervised anomaly localization using variational auto-encoders. CoRR, abs/1907.02796, 2019.
|
| 224 |
+
|
| 225 |
+
# A COMPARISON WITH ZIMMERER ET AL. (2019)
|
| 226 |
+
|
| 227 |
+
Table 2: Complementary results for anomaly segmentation on MVTec datasets, expressed in AUROC for different pixel-wise scores derived from a baseline VAE: from left to right, squared error reconstruction $| | { \bf x } - f _ { V A E } ( { \bf x } ) | | ^ { 2 }$ (denoted $\mathcal { L } _ { r } ( \mathbf { x } ) )$ , gradient of the loss $| \nabla _ { \mathbf x } \mathcal L ( \mathbf x ) |$ , combination of both, gradient of the KL divergence $| D _ { \mathrm { K L } } ( q ( \mathbf { z } | \mathbf { x } ) \| p ( \mathbf { z } ) )$ (denoted $| \nabla _ { \mathbf { x } } \mathcal { L } _ { K L } ( \mathbf { x } ) | )$ as well as combination of KL derivative and error reconstruction as suggested in Zimmerer et al. (2018; 2019).
|
| 228 |
+
|
| 229 |
+
<table><tr><td></td><td>Category</td><td>Lr(x)</td><td>VxL(x)</td><td>IVxL(x)) OLr(x)</td><td>IVxLKL(x)l</td><td>IVxLKL(x)) Lr(x)</td><td>VAE-grad</td></tr><tr><td rowspan="5">TJssnets</td><td>carpet</td><td>0.537</td><td>0.580</td><td>0.566</td><td>0.553</td><td>0.555</td><td>0.735</td></tr><tr><td>grid</td><td>0.823</td><td>0.635</td><td>0.812</td><td>0.507</td><td>0.790</td><td>0.961</td></tr><tr><td>leather</td><td>0.783</td><td>0.650</td><td>0.792</td><td>0.627</td><td>0.791</td><td>0.925</td></tr><tr><td>tile</td><td>0.547</td><td>0.606</td><td>0.581</td><td>0.623</td><td>0.588</td><td>0.654</td></tr><tr><td>wood</td><td>0.686</td><td>0.691</td><td>0.726</td><td>0.643</td><td>0.713</td><td>0.838</td></tr><tr><td rowspan="10">seetqt</td><td>bottle</td><td>0.831</td><td>0.762</td><td>0.832</td><td>0.629</td><td>0.830</td><td>0.922</td></tr><tr><td>cable</td><td>0.831</td><td>0.796</td><td>0.846</td><td>0.674</td><td>0.841</td><td>0.910</td></tr><tr><td>capsule</td><td>0.765</td><td>0.754</td><td>0.772</td><td>0.642</td><td>0.795</td><td>0.917.</td></tr><tr><td>hazelnut</td><td>0.907</td><td>0.831</td><td>0.908</td><td>0.468</td><td>0.885</td><td>0.976</td></tr><tr><td>metalnut</td><td>0.833</td><td>0.831</td><td>0.870</td><td>0.710</td><td>0.834</td><td>0.907</td></tr><tr><td>pill</td><td>0.869</td><td>0.833</td><td>0.872</td><td>0.480</td><td>0.826</td><td>0.930</td></tr><tr><td>screw</td><td>0.851</td><td>0.726</td><td>0.842</td><td>0.412</td><td>0.795</td><td>0.945</td></tr><tr><td>toothbrush</td><td>0.942</td><td>0.798</td><td>0.943</td><td>0.619</td><td>0.939</td><td>0.985</td></tr><tr><td>transistor</td><td>0.788</td><td>0.843</td><td>0.834</td><td>0.801</td><td>0.836</td><td>0.919</td></tr><tr><td>zipper</td><td>0.725</td><td>0.674</td><td>0.729</td><td>0.562</td><td>0.727</td><td>0.869</td></tr></table>
|
| 230 |
+
|
| 231 |
+
Zimmerer et al. (2019) proposed to perform anomaly localization using different scores derived from the gradient of the VAE loss. In particular, it has been shown that the product of the VAE reconstruction error with the gradient of the KL divergence was very informative for medical images. In table 2 we compare the pixel-wise anomaly detection AUROC of these different scores with our method. For all experiments, we use the same “vanilla” VAE as described in section 4.1.
|
| 232 |
+
|
| 233 |
+
It can be seen that other VAE-based methods using a single evaluation of the gradient are constantly outperformed by our method.
|
| 234 |
+
|
| 235 |
+
# B CONVERGENCE SPEED
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 5: Evolution of pixel-wise anomaly detection AUROC performance.
|
| 239 |
+
|
| 240 |
+
In figure 5 we compare the number of iterations needed to reach convergence with our two proposals for gradient descent: Standard update as in equation 5 and Tuned update using a gradient mask computed with the VAE reconstruction error, as in equation 8. The model is a VAE with learned decoder variance (Dai & Wipf, 2019), trained on the Grid dataset (Bergmann et al., 2019). We compute the mean pixel-wise anomaly detection AUROC after each iteration on the test set.
|
| 241 |
+
|
| 242 |
+
We can see that the tuned method converges to the same performance as the standard method, with far fewer iterations.
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
Figure 6: From left to right: Normal; Anomalous; Anomaly segmentation with baseline $L ^ { 2 }$ autoencoder (Bergmann et al., 2019); Our proposed anomaly segmentation with $L ^ { 2 }$ autoencoder augmented with gradient-based iterative reconstruction.
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Figure 7: Illustration of anomaly localization comparison over four baselines ( $L ^ { 2 } { \mathrm { A E } }$ , DSAE, VAE, $\gamma$ -VAE). Ground truth is represented by red contour, and each estimated segmentation by a green overlay. It can be seen that anomaly segmentation is overall improved when different baselines are augmented by our proposed gradient descent.
|
| 249 |
+
|
| 250 |
+
# D INPAINTING COMPARISON
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 8: Inpainting comparison. Each batch is made of four rows, from top to bottom: Masked input image; VAE with arbitrary conditioning (VAEAC, Ivanov et al. (2019)); Ours; Ground truth. The quality of the reconstructions is comparable, even though our VAE is trained without any assumptions over the mask’s properties.
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
Figure 9: Principle of the energy optimization to project anomalous sample on the normal manifold
|
| 257 |
+
|
| 258 |
+
Figure 9 illustrates our method principle. We start with a defective input $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ whose reconstruction $\scriptstyle { \hat { \mathbf { x } } } _ { 0 }$ does not necessarily lie on the normal data manifold. As the optimization process carries on, the optimized sample $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ and its reconstruction look more similar and get closer to the manifold. The regularization term of the energy function makes sure that the optimized sample stays close to the original sample.
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 10: Distribution of the improvement rate over all presented baselines and all datasets in MVTec AD.
|
| 262 |
+
|
| 263 |
+
Figure 10 shows the distribution of the AUC improvement rate over all presented baselines and all datasets in MVTec AD using our gradient-based projection method.
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
{ \mathrm { i m p r o v e m e n t r a t e } } = { \frac { A U C _ { g r a d } - A U C _ { b a s e } } { A U C _ { b a s e } } }
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
• $8 . 3 \%$ of data points are under the 0 value delimiting an increase or decrease in AUC due to our method, and $9 1 . 7 \%$ data points are over this value. Our method increases the AUC in a vast majority of cases.
|
| 270 |
+
|
| 271 |
+
• The median is at $4 . 3 3 \%$ , the 25th percentile at $1 . 8 6 \%$ , and the 75th percentile at $1 5 . 8 6 \%$ .
|
parse/train/HJx81ySKwr/HJx81ySKwr_content_list.json
ADDED
|
@@ -0,0 +1,1442 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "David Dehaene∗, Oriel Frigo∗, Sébastien Combrexelle, Pierre Eline AnotherBrain, Paris, France {david, oriel, sebastien, pierre}@anotherbrain.ai ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
169,
|
| 20 |
+
661,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
250,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Autoencoder reconstructions are widely used for the task of unsupervised anomaly localization. Indeed, an autoencoder trained on normal data is expected to only be able to reconstruct normal features of the data, allowing the segmentation of anomalous pixels in an image via a simple comparison between the image and its autoencoder reconstruction. In practice however, local defects added to a normal image can deteriorate the whole reconstruction, making this segmentation challenging. To tackle the issue, we propose in this paper a new approach for projecting anomalous data on a autoencoder-learned normal data manifold, by using gradient descent on an energy derived from the autoencoder’s loss function. This energy can be augmented with regularization terms that model priors on what constitutes the user-defined optimal projection. By iteratively updating the input of the autoencoder, we bypass the loss of high-frequency information caused by the autoencoder bottleneck. This allows to produce images of higher quality than classic reconstructions. Our method achieves state-of-the-art results on various anomaly localization datasets. It also shows promising results at an inpainting task on the CelebA dataset. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
281,
|
| 43 |
+
764,
|
| 44 |
+
501
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
529,
|
| 55 |
+
334,
|
| 56 |
+
545
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Automating visual inspection on production lines with artificial intelligence has gained popularity and interest in recent years. Indeed, the analysis of images to segment potential manufacturing defects seems well suited to computer vision algorithms. However these solutions remain data hungry and require knowledge transfer from human to machine via image annotations. Furthermore, the classification in a limited number of user-predefined categories such as non-defective, greasy, scratched and so on, will not generalize well if a previously unseen defect appears. This is even more critical on production lines where a defective product is a rare occurrence. For visual inspection, a better-suited task is unsupervised anomaly detection, in which the segmentation of the defect must be done only via prior knowledge of non-defective samples, constraining the issue to a two-class segmentation problem. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
560,
|
| 66 |
+
825,
|
| 67 |
+
699
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "From a statistical point of view, an anomaly may be seen as a distribution outlier, or an observation that deviates so much from other observations as to arouse suspicion that it was generated by a different mechanism (Hawkins, 1980). In this setting, generative models such as Variational AutoEncoders (VAE, Kingma & Welling (2014)), are especially interesting because they are capable to infer possible sampling mechanisms for a given dataset. The original autoencoder (AE) jointly learns an encoder model, that compresses input samples into a low dimensional space, and a decoder, that decompresses the low dimensional samples into the original input space, by minimizing the distance between the input of the encoder and the output of the decoder. The more recent variant, VAE, replaces the deterministic encoder and decoder by stochastic functions, enabling the modeling of the distribution of the dataset samples as well as the generation of new, unseen samples. In both models, the output decompressed sample given an input is often called the reconstruction, and is used as some sort of projection of the input on the support of the normal data distribution, which we will call the normal manifold. In most unsupervised anomaly detection methods based on VAE, models are trained on flawless data and defect detection and localization is then performed using a distance metric between the input sample and its reconstruction (Bergmann et al., 2018; 2019; An & Cho, 2015; Baur et al., 2018; Matsubara et al., 2018). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
707,
|
| 77 |
+
825,
|
| 78 |
+
901
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
103,
|
| 88 |
+
823,
|
| 89 |
+
132
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "One fundamental issue in this approach is that the models learn on the normal manifold, hence there is no guarantee of the generalization of their behavior outside this manifold. This is problematic since it is precisely outside the dataset distribution that such methods intend to use the VAE for anomaly localization. Even in the case of a model that always generates credible samples from the dataset distribution, there is no way to ensure that the reconstruction will be connected to the input sample in any useful way. An example illustrating this limitation is given in figure 1, where a VAE trained on regular grid images provides a globally poor reconstruction despite a local perturbation, making the anomaly localization challenging. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
138,
|
| 99 |
+
825,
|
| 100 |
+
251
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this paper, instead of using the VAE reconstruction, we propose to find a better projection of an input sample on the normal manifold, by optimizing an energy function defined by an autoencoder architecture. Starting at the input sample, we iterate gradient descent steps on the input to converge to an optimum, simultaneously located on the data manifold and closest to the starting input. This method allows us to add prior knowledge about the expected anomalies via regularization terms, which is not possible with the raw VAE reconstruction. We show that such an optimum is better than previously proposed autoencoder reconstructions to localize anomalies on a variety of unsupervised anomaly localization datasets (Bergmann et al., 2019) and present its inpainting capabilities on the CelebA dataset (Liu et al., 2015). We also propose a variant of the standard gradient descent that uses the pixel-wise reconstruction error to speed up the convergence of the energy. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
257,
|
| 110 |
+
825,
|
| 111 |
+
397
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/03e889e1384f99d5b868282f7f8d3e7022b6ec4f46e54b7acbfdf86789ae3a07.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Even though an anomaly is a local perturbation in the image (b), the whole VAEreconstructed image can be disturbed (c). Our gradient descent-based method gives better quality reconstructions (d). "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
266,
|
| 124 |
+
422,
|
| 125 |
+
732,
|
| 126 |
+
531
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 BACKGROUND ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
619,
|
| 137 |
+
326,
|
| 138 |
+
636
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "2.1 GENERATIVE MODELS ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
176,
|
| 148 |
+
654,
|
| 149 |
+
369,
|
| 150 |
+
667
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "In unsupervised anomaly detection, the only data available during training are samples $\\mathbf { x }$ from a non-anomalous dataset $\\check { \\mathbb { X } } \\subset \\mathbb { R } ^ { d }$ . In a generative setting, we suppose the existence of a probability function of density $q$ , having its support on all $\\mathbb { R } ^ { \\bar { d } }$ , from which the dataset was sampled. The generative objective is then to model an estimate of density $q$ , from which we can obtain new samples close to the dataset. Popular generative architectures are Generative Adversarial Networks (GAN, Goodfellow et al. (2014)), that concurrently train a generator $G$ to generate samples from random, low-dimensional noise $\\mathbf { z } \\ \\sim \\ p , \\ \\mathbf { z } \\ \\in \\ \\mathbf { \\bar { \\mathbb { R } } } ^ { l } , \\ l \\ \\ll \\ \\mathbf { \\bar { d } } .$ , and a discriminator $D$ to classify generated samples and dataset samples. This model converges to the equilibrium of the expectation over both real and generated datasets of the binary cross entropy loss of the classifier $m i n _ { G } m a x _ { D }$ [ $\\mathbb { E } _ { { \\mathbf { x } } \\sim q } \\left[ \\log ( D ( \\mathbf { x } ) ) \\right] + \\mathbb { E } _ { { \\mathbf { z } } \\sim p } \\left[ \\log ( 1 - D ( G ( \\mathbf { z } ) ) ) \\right] ]$ . ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
173,
|
| 159 |
+
680,
|
| 160 |
+
825,
|
| 161 |
+
821
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "Disadvantages of GANs are that they are notoriously difficult to train (Goodfellow, 2017), and they suffer from mode collapse, meaning that they have the tendency to only generate a subset of the original dataset. This can be problematic for anomaly detection, in which we do not want some subset of the normal data to be considered as anomalous (Bergmann et al., 2019). Recent works such as Thanh-Tung et al. (2019) offer simple and attractive explanations for GAN behavior and propose substantial upgrades, however Ravuri & Vinyals (2019) still support the point that GANs have more trouble than other generative models to cover the whole distribution support. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
173,
|
| 170 |
+
825,
|
| 171 |
+
825,
|
| 172 |
+
924
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Another generative model is the VAE (Kingma & Welling (2014)), where, similar to a GAN generator, a decoder model tries to approximate the dataset distribution with a simple latent variables prior $p ( \\mathbf { z } )$ , with $\\mathbf { z } \\in \\mathbb { R } ^ { l }$ , and conditional distributions output by the decoder $p ( \\mathbf { x } | \\mathbf { z } )$ . This leads to the estimate $\\begin{array} { r } { p ( \\mathbf { x } ) = \\int p ( \\mathbf { x } | \\mathbf { z } ) p ( \\mathbf { z } ) d z } \\end{array}$ , that we would like to optimize using maximum likelihood estimation on the dataset. To render the learning tractable with a stochastic gradient descent (SGD) estimator with reasonable variance, we use importance sampling, introducing density functions $q ( \\mathbf { z } | \\mathbf { x } )$ output by an encoder network, and Jensen’s inequality to get the variational lower bound : ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
173,
|
| 181 |
+
102,
|
| 182 |
+
825,
|
| 183 |
+
202
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "equation",
|
| 189 |
+
"img_path": "images/3b4eca21592992aaa2359b7d1ed03f84b5d6efc2ffa3706c3d3dbff463e11c1d.jpg",
|
| 190 |
+
"text": "$$\n\\begin{array} { r l } & { \\log p ( \\mathbf { x } ) = \\log \\ \\mathbb { E } _ { \\mathbf { z } \\sim q ( \\mathbf { z } \\mid \\mathbf { x } ) } \\frac { p ( \\mathbf { x } \\mid \\mathbf { z } ) p ( \\mathbf { z } ) } { q ( \\mathbf { z } \\mid \\mathbf { x } ) } } \\\\ & { \\qquad \\geq \\mathbb { E } _ { \\mathbf { z } \\sim q ( \\mathbf { z } \\mid \\mathbf { x } ) } \\log \\ p ( \\mathbf { x } \\mid \\mathbf { z } ) - D _ { \\mathrm { K L } } ( q ( \\mathbf { z } \\mid \\mathbf { x } ) \\| p ( \\mathbf { z } ) ) = - \\mathcal { L } ( \\mathbf { x } ) } \\end{array}\n$$",
|
| 191 |
+
"text_format": "latex",
|
| 192 |
+
"bbox": [
|
| 193 |
+
282,
|
| 194 |
+
219,
|
| 195 |
+
715,
|
| 196 |
+
276
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 2
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "We will use $\\mathcal { L } ( \\mathbf { x } )$ as our loss function for training. We define the VAE reconstruction, per analogy with an autoencoder reconstruction, as the deterministic sample $f _ { V A E } ( \\mathbf { x } )$ that we obtain by encoding $\\mathbf { x }$ , decoding the mean of the encoded distribution $q ( \\mathbf { z } | \\mathbf { x } )$ , and taking again the mean of the decoded distribution $p ( \\mathbf { x } | \\mathbf { z } )$ . ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
173,
|
| 205 |
+
294,
|
| 206 |
+
825,
|
| 207 |
+
351
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "VAEs are known to produce blurry reconstructions and generations, but Dai & Wipf (2019) show that a huge enhancement in image quality can be gained by learning the variance of the decoded distribution $p ( \\mathbf { x } | \\mathbf { z } )$ . This comes at the cost of the distribution of latent variables produced by the encoder $q ( \\mathbf { z } )$ being farther away from the prior $p ( \\mathbf { z } )$ , so that samples generated by sampling $\\mathbf { z } \\sim$ $p ( \\mathbf { z } ) , \\mathbf { x } \\sim p ( \\mathbf { x } | \\mathbf { z } )$ have poorer quality. The authors show that using a second VAE learned on samples from $q ( \\mathbf { z } )$ , and sampling from it with ancestral sampling $\\mathbf { u } \\sim p ( \\mathbf { u } ) , \\mathbf { z } \\sim p ( \\mathbf { z } | \\mathbf { u } ) , \\mathbf { x } \\sim p ( \\mathbf { x } | \\mathbf { z } )$ , allows to recover samples of GAN-like quality. The original autoencoder can be roughly considered as a VAE whose encoded and decoded distributions have infinitely small variances. ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
173,
|
| 216 |
+
356,
|
| 217 |
+
825,
|
| 218 |
+
468
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "2.2 ANOMALY DETECTION AND LOCALIZATION ",
|
| 225 |
+
"text_level": 1,
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
501,
|
| 229 |
+
516,
|
| 230 |
+
515
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "We will consider that an anomaly is a sample with low probability under our estimation of the dataset distribution. The VAE loss, being a lower bound on the density, is a good proxy to classify samples between the anomalous and non-anomalous categories. To this effect, a threshold $T$ can be defined on the loss function, delimiting anomalous samples with ${ \\mathcal { L } } ( \\mathbf { x } ) \\geq T$ and normal samples $\\mathcal { L } ( \\mathbf { x } ) < T$ . However, according to Matsubara et al. (2018), the regularization term $\\mathcal { L } _ { K L } ( \\mathbf { x } ) = D _ { \\mathrm { K L } } ( q ( \\mathbf { z } | \\mathbf { x } ) | | p ( \\mathbf { z } ) )$ has a negative influence in the computation of anomaly scores. They propose instead an unregularized score $\\mathbf { \\bar { \\mathcal { L } } } _ { r } ( \\mathbf { x } ) = - \\mathbb { E } _ { \\mathbf { z } \\sim q ( \\mathbf { z } | \\mathbf { x } ) }$ log $\\bar { p } ( { \\bf x } | { \\bf z } )$ which is equivalent to the reconstruction term of a standard autoencoder and claim a better anomaly detection. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
173,
|
| 239 |
+
531,
|
| 240 |
+
825,
|
| 241 |
+
643
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Going from anomaly detection to anomaly localization, this reconstruction term becomes crucial to most of existing solutions. Indeed, the inability of the model to reconstruct a given part of an image is used as a way to segment the anomaly, using a pixel-wise threshold on the reconstruction error. Actually, this segmentation is very often given by a pixel-wise (An & Cho, 2015; Baur et al., 2018; Matsubara et al., 2018) or patch-wise comparison of the input image, and some generated image, as in Bergmann et al. (2018; 2019), where the structural dissimilarity (DSSIM, Wang et al. (2004)) between the input and its VAE reconstruction is used. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
650,
|
| 251 |
+
825,
|
| 252 |
+
747
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Autoencoder-based methods thus provide a straightforward way of generating an image conditioned on the input image. In the GAN original framework, though, images are generated from random noise $\\mathbf { z } \\sim p ( \\mathbf { z } )$ and are not conditioned by an input. Schlegl et al. (2017) propose with AnoGAN to get the closest generated image to the input using gradient descent on $\\mathbf { z }$ for an energy defined by: ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
753,
|
| 262 |
+
825,
|
| 263 |
+
811
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "equation",
|
| 269 |
+
"img_path": "images/2cef368449a906ba7a47ee14692a9cc36d2c8785c2ccbb17b7a10b7436c14cf1.jpg",
|
| 270 |
+
"text": "$$\nE _ { A n o G A N } = | | \\mathbf { x } - G ( \\mathbf { z } ) | | _ { 1 } + \\lambda \\cdot | | f _ { D } ( \\mathbf { x } ) - f _ { D } ( G ( \\mathbf { z } ) ) | | _ { 1 }\n$$",
|
| 271 |
+
"text_format": "latex",
|
| 272 |
+
"bbox": [
|
| 273 |
+
308,
|
| 274 |
+
830,
|
| 275 |
+
689,
|
| 276 |
+
848
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "The first term ensures that the generation $G ( \\mathbf { z } )$ is close to the input $\\mathbf { x }$ . The second term is based on a distance between features of the input and the generated images, where $f _ { D } ( { \\bf x } )$ is the output of an intermediate layer of the discriminator. This term ensures that the generated image stays in the vicinity of the original dataset distribution. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
867,
|
| 286 |
+
825,
|
| 287 |
+
924
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "image",
|
| 293 |
+
"img_path": "images/a40ff0ff9ef4b64b40732d35df0d1beef84532f2f9b25c2bcff5184ca2847666.jpg",
|
| 294 |
+
"image_caption": [
|
| 295 |
+
"Figure 2: Illustration of our method. We perform gradient descent on $E ( \\mathbf { x } _ { t } )$ to iteratively correct $\\mathbf { x } _ { t }$ . "
|
| 296 |
+
],
|
| 297 |
+
"image_footnote": [],
|
| 298 |
+
"bbox": [
|
| 299 |
+
236,
|
| 300 |
+
102,
|
| 301 |
+
761,
|
| 302 |
+
227
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "3 PROPOSED METHOD ",
|
| 309 |
+
"text_level": 1,
|
| 310 |
+
"bbox": [
|
| 311 |
+
176,
|
| 312 |
+
291,
|
| 313 |
+
372,
|
| 314 |
+
308
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 3
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "3.1 ADVERSARIAL PROJECTIONS ",
|
| 321 |
+
"text_level": 1,
|
| 322 |
+
"bbox": [
|
| 323 |
+
176,
|
| 324 |
+
324,
|
| 325 |
+
415,
|
| 326 |
+
338
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "According to Zimmerer et al. (2018), the loss gradient with respect to $\\mathbf { x }$ gives the direction towards normal data samples, and its magnitude could indicate how abnormal a sample is. In their work on anomaly identification, they use the loss gradient as an anomaly score. ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
174,
|
| 335 |
+
349,
|
| 336 |
+
825,
|
| 337 |
+
392
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Here we propose to use the gradient of the loss to iteratively improve the observed $\\mathbf { x }$ . We propose to link this method to the methodology of computing adversarial samples in Szegedy et al. (2014). ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
174,
|
| 346 |
+
398,
|
| 347 |
+
823,
|
| 348 |
+
428
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "After training a VAE on non-anomalous data, we can define a threshold $T$ on the reconstruction loss $\\mathcal { L } _ { r }$ as in (Matsubara et al., 2018), such that a small proportion of the most improbable samples are identified as anomalies. We obtain a binary classifier defined by ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
174,
|
| 357 |
+
434,
|
| 358 |
+
825,
|
| 359 |
+
477
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "equation",
|
| 365 |
+
"img_path": "images/a531f29019642757f994e7aa898c3c8061e00933d98c93d5b91f6ebd5032bea7.jpg",
|
| 366 |
+
"text": "$$\nA ( \\mathbf { x } ) = \\left\\{ { \\begin{array} { l l } { 1 \\mathrm { i f } \\mathcal { L } _ { r } ( \\mathbf { x } ) \\geq T } \\\\ { 0 \\mathrm { o t h e r w i s e } } \\end{array} } \\right.\n$$",
|
| 367 |
+
"text_format": "latex",
|
| 368 |
+
"bbox": [
|
| 369 |
+
401,
|
| 370 |
+
483,
|
| 371 |
+
584,
|
| 372 |
+
518
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "Our method consists in computing adversarial samples of this classifier (Szegedy et al., 2014), that is to say, starting from a sample $\\mathbf { x } _ { \\mathrm { 0 } }$ with $A ( \\mathbf { x } _ { 0 } ) = \\bar { 1 }$ , iterate gradient descent steps over the input $\\mathbf { x }$ , constructing samples $\\mathbf { x } _ { 1 } , \\ldots . . . \\mathbf { x } _ { N }$ , to minimize the energy $E ( \\mathbf { x } )$ , defined as ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
531,
|
| 382 |
+
825,
|
| 383 |
+
574
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "equation",
|
| 389 |
+
"img_path": "images/6d6c1c1f32e9cf8aa30fffa53409b26b381a130bfc27957c14ade92eb05865fc.jpg",
|
| 390 |
+
"text": "$$\n\\begin{array} { r } { E ( \\mathbf { x } _ { t } ) = \\mathcal { L } _ { r } ( \\mathbf { x } _ { t } ) + \\lambda \\cdot | | \\mathbf { x } _ { t } - \\mathbf { x } _ { 0 } | | _ { 1 } } \\end{array}\n$$",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
382,
|
| 394 |
+
580,
|
| 395 |
+
614,
|
| 396 |
+
599
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "An iteration is done by calculating $\\mathbf { x } _ { t + 1 }$ as ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
176,
|
| 405 |
+
613,
|
| 406 |
+
455,
|
| 407 |
+
628
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "equation",
|
| 413 |
+
"img_path": "images/58510f5a009e1ed2a0b4e32f6ecede5b14e904e0d546a4b5dab7e12604e40aa7.jpg",
|
| 414 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { x } _ { t + 1 } = \\mathbf { x } _ { t } - \\alpha \\cdot \\nabla _ { \\mathbf { x } } E ( \\mathbf { x } _ { t } ) , } \\end{array}\n$$",
|
| 415 |
+
"text_format": "latex",
|
| 416 |
+
"bbox": [
|
| 417 |
+
406,
|
| 418 |
+
635,
|
| 419 |
+
589,
|
| 420 |
+
652
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 3
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "where $\\alpha$ is a learning rate parameter, and $\\lambda$ is a parameter trading off the inclusion of $\\mathbf { x } _ { t }$ in the normal manifold, given by $\\mathcal { L } _ { r } ( \\mathbf { x } _ { t } )$ , and the proximity between $\\mathbf { x } _ { t }$ and the input $\\mathbf { x } _ { \\mathrm { 0 } }$ , assured by the regularization term $| | \\mathbf { x } _ { t } - \\mathbf { x } _ { 0 } | | _ { 1 }$ . ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
174,
|
| 429 |
+
666,
|
| 430 |
+
825,
|
| 431 |
+
710
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "3.2 REGULARIZATION TERM ",
|
| 438 |
+
"text_level": 1,
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
727,
|
| 442 |
+
385,
|
| 443 |
+
741
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "We model the anomalous images that we encounter as normal images in which a region or several regions of pixels are altered but the rest of the pixels are left untouched. To recover the best segmentation of the anomalous pixels from an anomalous image $\\mathbf { x } _ { a }$ , we want to recover the closest image from the normal manifold $\\mathbf { x } _ { g }$ . The term closest has to be understood in the sense that the smallest number of pixels are modified between $\\mathbf { x } _ { a }$ and $\\mathbf { x } _ { g }$ . In our model, we therefore would like to use the $L ^ { 0 }$ distance as a regularization distance of the energy. Since the $L ^ { 0 }$ distance is not differentiable, we use the $L ^ { 1 }$ distance as an approximation. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
752,
|
| 453 |
+
825,
|
| 454 |
+
852
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "3.3 OPTIMIZATION IN INPUT SPACE ",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
176,
|
| 464 |
+
869,
|
| 465 |
+
431,
|
| 466 |
+
883
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "While in our method the optimization is done in the input space, in the previously mentioned AnoGAN, the search for the optimal reconstruction is done by iterating over $\\mathbf { z }$ samples with the ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
895,
|
| 476 |
+
823,
|
| 477 |
+
924
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "energy defined in equation 2. Following the aforementioned analogy between a GAN generator $G$ and a VAE decoder $D e c$ , a similar approach in the context of a VAE would be to use the energy ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
171,
|
| 486 |
+
103,
|
| 487 |
+
823,
|
| 488 |
+
132
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "equation",
|
| 494 |
+
"img_path": "images/e01f7b6f97ff6b949efb4bee6be337b31b796c1b87c053c831539f5827cbfe73.jpg",
|
| 495 |
+
"text": "$$\n| | \\mathbf { x } - D e c ( \\mathbf { z } ) | | _ { 1 } - \\lambda \\cdot \\log p ( \\mathbf { z } )\n$$",
|
| 496 |
+
"text_format": "latex",
|
| 497 |
+
"bbox": [
|
| 498 |
+
397,
|
| 499 |
+
137,
|
| 500 |
+
601,
|
| 501 |
+
155
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "where the $- \\log p ( \\mathbf { z } )$ term has the same role as AnoGAN’s $| | f _ { D } ( \\mathbf { x } ) - f _ { D } ( G ( \\mathbf { z } ) ) | | _ { 1 }$ term, to ensure that $D e c ( \\mathbf { z } )$ stays within the learned manifold. We chose not to iterate over $\\mathbf { z }$ in the latent space for two reasons. First, because as noted in Dai & Wipf (2019) and Hoffman & Johnson (2016), the prior $p ( \\mathbf { z } )$ is not always a good proxy for the real image of the distribution in the latent space $q ( \\mathbf { z } )$ . Second, because the VAE tends to ignore some details of the original image in its reconstruction, considering that these details are part of the independent pixel noise allowed by the modeling of $p ( \\mathbf { x } | \\mathbf { z } )$ as a diagonal Gaussian, which causes its infamous blurriness. An optimization in latent space would have to recreate the high frequency structure of the image, whereas iterating over the input image space, and starting the descent on the input image $\\mathbf { x } _ { \\mathrm { 0 } }$ , allows us to keep that structure and thus to obtain projections of higher quality. ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
173,
|
| 510 |
+
159,
|
| 511 |
+
825,
|
| 512 |
+
299
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "3.4 OPTIMIZING GRADIENT DESCENT ",
|
| 519 |
+
"text_level": 1,
|
| 520 |
+
"bbox": [
|
| 521 |
+
176,
|
| 522 |
+
315,
|
| 523 |
+
446,
|
| 524 |
+
329
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "We observed that using the Adam optimizer (Kingma & Ba, 2015) is beneficial for the quality of the optimization. Moreover, to speed up the convergence and further preserve the aforementioned high frequency structure of the input, we propose to compute our iterative samples using the pixel-wise reconstruction error of the VAE. To explain the intuition behind this improvement, we will consider the inpainting task. In this setting, as in anomaly localization, a local perturbation is added on top of a normal image. However, in the classic inpainting task, the localization of the perturbation is known beforehand, and we can use the localization mask $\\pmb { \\Omega }$ to only change the value of the anomalous pixels in the gradient descent: ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
173,
|
| 533 |
+
340,
|
| 534 |
+
825,
|
| 535 |
+
452
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "equation",
|
| 541 |
+
"img_path": "images/f23f9b783749f4859ba4a788ef18043a7df6f407c9b7dc834ea915047c2fa106.jpg",
|
| 542 |
+
"text": "$$\n\\mathbf { x } _ { t + 1 } = \\mathbf { x } _ { t } - \\alpha \\cdot \\left( \\nabla _ { \\mathbf { x } } E ( \\mathbf { x } _ { t } ) \\odot \\Omega \\right)\n$$",
|
| 543 |
+
"text_format": "latex",
|
| 544 |
+
"bbox": [
|
| 545 |
+
380,
|
| 546 |
+
450,
|
| 547 |
+
617,
|
| 548 |
+
468
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "where $\\odot$ is the Hadamard product. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
469,
|
| 558 |
+
400,
|
| 559 |
+
484
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "For anomaly localization and blind inpainting, where this information is not available, we compute the pixel-wise reconstruction error which gives a rough estimate of the mask. The term $\\nabla _ { \\mathbf x } E ( \\mathbf x _ { t } )$ is therefore replaced with $\\nabla _ { \\mathbf x } E ( \\mathbf x _ { t } ) \\odot ( { \\mathbf x _ { t } } - f _ { V A E } ( \\mathbf { x } _ { t } ) ) ^ { 2 } .$ ) in equation 5: ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
176,
|
| 568 |
+
491,
|
| 569 |
+
825,
|
| 570 |
+
534
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "equation",
|
| 576 |
+
"img_path": "images/af7ae15f47a600f88726caf7fdc9cf674f2a0aee385c0a8de68c0eafaf942287.jpg",
|
| 577 |
+
"text": "$$\n\\mathbf { x } _ { t + 1 } = \\mathbf { x } _ { t } - \\alpha \\cdot \\left( \\nabla _ { \\mathbf { x } } E ( \\mathbf { x } _ { t } ) \\odot ( \\mathbf { x } _ { t } - f _ { V A E } ( \\mathbf { x } _ { t } ) ) ^ { 2 } \\right)\n$$",
|
| 578 |
+
"text_format": "latex",
|
| 579 |
+
"bbox": [
|
| 580 |
+
325,
|
| 581 |
+
540,
|
| 582 |
+
671,
|
| 583 |
+
558
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "where $f _ { V A E } ( \\mathbf { x } )$ is the standard reconstruction of the VAE. Optimizing the energy this way, a pixel where the reconstruction error is high will update faster, whereas a pixel with good reconstruction will not change easily. This prevents the image to update its pixels where the reconstruction is already good, even with a high learning rate. As can be seen in appendix B, this method converges to the same performance as the method of equation 5, but with fewer iterations. An illustration of our method can be found in figure 2. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
563,
|
| 593 |
+
825,
|
| 594 |
+
647
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 4
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "3.5 STOP CRITERION ",
|
| 601 |
+
"text_level": 1,
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
664,
|
| 605 |
+
333,
|
| 606 |
+
678
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "A standard stop criterion based on the convergence of the energy can efficiently be used. Using the adversarial setting introduced in section 3.1, we also propose to stop the gradient descent when a certain predefined threshold on the VAE loss is reached. For example, such a threshold can be chosen to be a quantile of the empirical loss distribution computed on the training set. ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
174,
|
| 615 |
+
689,
|
| 616 |
+
825,
|
| 617 |
+
746
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "4 EXPERIMENTS ",
|
| 624 |
+
"text_level": 1,
|
| 625 |
+
"bbox": [
|
| 626 |
+
176,
|
| 627 |
+
765,
|
| 628 |
+
326,
|
| 629 |
+
781
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 4
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "In this section, we evaluate the proposed method for two different applications: anomaly segmentation and image inpainting. Both applications are interesting use cases of our method, where we search to reconstruct partially corrupted images, correcting the anomalies while preserving the uncorrupted image regions. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
796,
|
| 639 |
+
825,
|
| 640 |
+
853
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "4.1 UNSUPERVISED ANOMALY SEGMENTATION ",
|
| 647 |
+
"text_level": 1,
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
869,
|
| 651 |
+
511,
|
| 652 |
+
883
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "In order to evaluate the proposed method for the task of anomaly segmentation, we perform experiments with the recently proposed MVTec dataset (Bergmann et al., 2019). This collection of datasets ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
895,
|
| 662 |
+
821,
|
| 663 |
+
924
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "Table 1: Results for anomaly segmentation on MVTec datasets, expressed in AUROC (Area Under the Receiver Operating Characteristics). Four different baselines are trained on normal samples and are augmented by our proposed gradient based reconstruction (grad) for comparison: A deterministic autoencoder trained with $L ^ { \\tilde { 2 } }$ loss $( L ^ { 2 } \\mathbf { A E } )$ as in (Bergmann et al., 2019); A deterministic autoencoder trained with DSSIM loss (DSAE) as in (Bergmann et al., 2019); A variational autoencoder (VAE); And a variational autoencoder with a learned decoder variance $\\langle \\gamma \\cdot$ -VAE) as in (Dai & Wipf, 2019). For each result a green or red background denotes respectively an improvement or a decrease in performance compared to the baseline. It can be seen that the proposed gradient-based reconstruction achieves the best segmentation for most datasets, with a mean improvement rate of $9 . 5 2 \\%$ over all baselines. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
173,
|
| 672 |
+
99,
|
| 673 |
+
825,
|
| 674 |
+
239
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 5
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "table",
|
| 680 |
+
"img_path": "images/d00279df37aa0dacefee388952cb7e0aa063872f82bbe3b6dc66c907155516b5.jpg",
|
| 681 |
+
"table_caption": [],
|
| 682 |
+
"table_footnote": [],
|
| 683 |
+
"table_body": "<table><tr><td colspan=\"2\">Category</td><td>L²AE</td><td>L²AE grad</td><td>DSAE</td><td>DSAE grad</td><td>VAE</td><td>VAE grad</td><td>γ-VAE</td><td>γ-VAE grad</td></tr><tr><td rowspan=\"5\">TJ annes</td><td>carpet</td><td>0.539</td><td>0.734</td><td>0.545</td><td>0.774</td><td>0.580</td><td>0.735</td><td>0.648</td><td>0.727</td></tr><tr><td>grid</td><td>0.960</td><td>0.981</td><td>0.960</td><td>0.980</td><td>0.888</td><td>0.961</td><td>0.950</td><td>0.979</td></tr><tr><td>leather</td><td>0.751</td><td>0.921</td><td>0.710</td><td>0.602</td><td>0.834</td><td>0.925</td><td>0.818</td><td>0.897</td></tr><tr><td>tile</td><td>0.476</td><td>0.575</td><td>0.496</td><td>0.626</td><td>0.465</td><td>0.654</td><td>0.491</td><td>0.581</td></tr><tr><td>wood</td><td>0.630</td><td>0.805</td><td>0.641</td><td>0.738</td><td>0.695</td><td>0.838</td><td>0.665</td><td>0.809</td></tr><tr><td rowspan=\"9\">seetqt</td><td>bottle</td><td>0.909</td><td>0.916</td><td>0.933</td><td>0.951</td><td>0.902</td><td>0.922</td><td>0.913</td><td>0.931</td></tr><tr><td>cable</td><td>0.732</td><td>0.864</td><td>0.790</td><td>0.859</td><td>0.828</td><td>0.910</td><td>0.777</td><td>0.880</td></tr><tr><td>capsule</td><td>0.786</td><td>0.952</td><td>0.769</td><td>0.884</td><td>0.862</td><td>0.917</td><td>0.814</td><td>0.917</td></tr><tr><td>hazelnut</td><td>0.976</td><td>0.984</td><td>0.966</td><td>0.966</td><td>0.977</td><td>0.976</td><td>0.977</td><td>0.988</td></tr><tr><td>metalnut</td><td>0.880</td><td>0.899</td><td>0.881</td><td>0.920</td><td>0.881</td><td>0.907</td><td>0.883</td><td>0.914</td></tr><tr><td>pill</td><td>0.885</td><td>0.912</td><td>0.895</td><td>0.927</td><td>0.888</td><td>0.930</td><td>0.897</td><td>0.935</td></tr><tr><td>screw</td><td>0.979</td><td>0.980</td><td>0.983</td><td>0.925</td><td>0.958</td><td>0.945</td><td>0.976</td><td>0.972</td></tr><tr><td>toothbrush</td><td>0.971</td><td>0.983</td><td>0.973</td><td>0.984</td><td>0.971</td><td>0.985</td><td>0.971</td><td>0.983</td></tr><tr><td>transistor</td><td>0.906</td><td>0.921</td><td>0.904</td><td>0.934</td><td>0.894</td><td>0.919</td><td>0.896</td><td>0.931</td></tr><tr><td>zipper</td><td></td><td>0.680</td><td>0.889</td><td>0.828</td><td>0.887</td><td>0.814</td><td>0.869</td><td>0.706</td><td>0.871</td></tr></table>",
|
| 684 |
+
"bbox": [
|
| 685 |
+
192,
|
| 686 |
+
257,
|
| 687 |
+
805,
|
| 688 |
+
497
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "consists of 15 different categories of objects and textures in the context of industrial inspection, each category containing a number of normal and anomalous samples. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
176,
|
| 697 |
+
534,
|
| 698 |
+
821,
|
| 699 |
+
561
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 5
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "We train our model on normal training samples and test it on both normal and anomalous test samples to evaluate the anomaly segmentation performance. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
568,
|
| 709 |
+
821,
|
| 710 |
+
597
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 5
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "We perform experiments with three different baseline autoencoders: A “vanilla” variational autoencoder with decoder covariance matrix fixed to identity (Kingma & Welling, 2014), a variational autoencoder with learned decoder variance (Dai & Wipf, 2019), a “vanilla” deterministic autoencoder trained with $L ^ { 2 }$ as reconstruction loss $( L ^ { 2 } \\mathrm { A E } )$ and a deterministic autoencoder trained with DSSIM reconstruction loss (DSAE), as proposed by Bergmann et al. (2018). For the sake of a fair comparison, all the autoencoder models are parameterized by convolutional neural networks with the same architecture, latent space dimensionality (set to 100), learning rate (set to 0.0001) and number of epochs (set to 300). The architecture details (layers, paddings, strides) are the same as described in Bergmann et al. (2018) and Bergmann et al. (2019). Similarly to the authors in Bergmann et al. (2019), for the textures datasets, we first subsample the original dataset images to $5 1 2 \\times 5 1 2$ and then crop random patches of size $1 2 8 \\times 1 2 8$ which are used to train and test the different models. For the object datasets, we directly subsample the original dataset images to $1 2 8 \\times 1 2 8$ unlike in Bergmann et al. (2019) who work on $2 5 6 \\times 2 5 6$ images, then we perform rotation and translation data augmentations. For all datasets we train on 10000 images. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
603,
|
| 720 |
+
825,
|
| 721 |
+
799
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Anomaly segmentation is then computed by reconstructing the anomalous image and comparing it with the original. We perform the comparison between reconstructed and original with the DSSIM metric as it has been observed in Bergmann et al. (2018) that it provides better anomaly localization than $L ^ { 2 }$ or $L ^ { 1 }$ distances. For the gradient descent, we set the step size $\\alpha : = 0 . 5$ , $L ^ { 1 }$ regularization weight $\\lambda : = 0 . 0 5$ and the stop criterion is achieved when a sample reconstruction loss is inferior to the minimum reconstruction loss over the training set. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
174,
|
| 730 |
+
805,
|
| 731 |
+
825,
|
| 732 |
+
888
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "In table 1 we show the AUROC (Area Under the Receiver Operating Characteristics) for different autoencoder methods, with different thresholds applied to the DSSIM anomaly map computed between original and reconstructed images. Note that an AUROC of 1 expresses the best possible segmentation in terms of normal and anomalous pixels. For each autoencoder variant we compare the baseline reconstruction with the proposed gradient-based reconstruction (grad.). As in Bergmann et al. (2019) we observe that an overall best model is hard to identify, however we show that our method increases the AUC values for almost all autoencoder variants. Aggregating the results over all datasets and baselines, we report a mean improvement rate of $9 . 5 2 \\%$ , with a median of $4 . 3 3 \\%$ , a 25th percentile of $1 . 8 6 \\%$ , and a 75th percentile of $1 5 . 8 6 \\%$ . The histogram of the improvement rate for all datasets and baselines is provided in appendix F, as well as a short analysis. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
895,
|
| 742 |
+
821,
|
| 743 |
+
924
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "",
|
| 750 |
+
"bbox": [
|
| 751 |
+
174,
|
| 752 |
+
103,
|
| 753 |
+
825,
|
| 754 |
+
215
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "In figure 3 we compare our anomaly segmentation with a baseline $L ^ { 2 }$ autoencoder Bergmann et al. (2019) $( L ^ { 2 } \\mathbf { A E } )$ for a number of image categories. For all results in figure 3, we set the same threshold to 0.2 to the anomaly detection map given by the DSSIM metric. The visual results in figure 3 highlights an overall improvement of anomaly localization by our proposed iterative reconstruction $\\bar { L ^ { 2 } } \\mathrm { A } \\bar { \\mathrm { E } }$ -grad). See appendix C for additional visual results of anomaly segmentation on remaining categories of MVTec dataset, and on remaining baseline models. ",
|
| 761 |
+
"bbox": [
|
| 762 |
+
173,
|
| 763 |
+
222,
|
| 764 |
+
825,
|
| 765 |
+
305
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 6
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "image",
|
| 771 |
+
"img_path": "images/65dae72096b01be8ba39002ab1ce20d45dd35bf9bf93522d3aa43aca83d05f6c.jpg",
|
| 772 |
+
"image_caption": [
|
| 773 |
+
"Figure 3: First row: Normal samples of hazelnut, grid, cable, wood, carpet and bottle categories in MVTec dataset; Second row: anomalous samples from the aforementioned dataset categories; Third row: Anomaly segmentation with baseline $\\bar { L } ^ { 2 }$ autoencoder (Bergmann et al., 2019); Fourth row: our proposed anomaly segmentation with $L ^ { 2 }$ autoencoder augmented with gradient-based iterative reconstruction. Ground truth is represented by red contour, and each estimated segmentation by a green overlay. It can be seen that anomaly segmentation is refined by our proposed method, with a tendency of detecting less false positives. "
|
| 774 |
+
],
|
| 775 |
+
"image_footnote": [],
|
| 776 |
+
"bbox": [
|
| 777 |
+
184,
|
| 778 |
+
330,
|
| 779 |
+
805,
|
| 780 |
+
637
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "4.2 INPAINTING ",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
779,
|
| 791 |
+
299,
|
| 792 |
+
792
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Image inpainting is a well known image reconstruction problem which consists of reconstructing a corrupted or missing part of an image, where the region to be reconstructed is usually given by a known mask. Many different approaches for inpainting have been proposed in the literature, such as anisotropic diffusion (Bertalmio et al., 2000), patch matching (Criminisi et al., 2004), context autoencoders (Pathak et al., 2016) and conditional variational autoencoders (Ivanov et al., 2019). ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
804,
|
| 802 |
+
825,
|
| 803 |
+
875
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "If we consider that the region to be reconstructed is not known beforehand, the problem is sometimes called blind inpainting (Altinel et al., 2018), and the corrupted part can be seen as an anomaly to be corrected. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
176,
|
| 812 |
+
882,
|
| 813 |
+
823,
|
| 814 |
+
924
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 6
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "image",
|
| 820 |
+
"img_path": "images/3c525dc352b059d364d4bd4eb4992154d606ff497f94c348f4d97f8db18a4df2.jpg",
|
| 821 |
+
"image_caption": [
|
| 822 |
+
"Figure 4: Inpainting experiment performed on CelebA dataset, where the test face images are masked with uniform noise. The baseline VAE reconstruction is disturbed by the noise mask, providing a poor inpainting. The proposed gradient-based VAE provides a more convincing inpainting by an iterative process. "
|
| 823 |
+
],
|
| 824 |
+
"image_footnote": [],
|
| 825 |
+
"bbox": [
|
| 826 |
+
241,
|
| 827 |
+
112,
|
| 828 |
+
756,
|
| 829 |
+
342
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 7
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "We performed experiments with image inpainting on the CelebA dataset (Liu et al., 2015), which consists of celebrity faces. In figure 4 we compare the inpainting results obtained with a baseline VAE with learned variance $\\left( \\gamma { \\mathrm { - V A E } } \\right)$ and Resnet architecture, as described by Dai & Wipf (2019), with the same VAE model, augmented by our proposed gradient-based iterative reconstruction. Note that for the regular inpainting task, gradients are multiplied by the inpainting mask at each iteration (equation 7), while for the blind inpainting task, the mask is unknown. See appendix D for a comparison with a recent method based on variational autoencoders, proposed by Ivanov et al. (2019). ",
|
| 836 |
+
"bbox": [
|
| 837 |
+
174,
|
| 838 |
+
443,
|
| 839 |
+
825,
|
| 840 |
+
540
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 7
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "5 RELATED WORK ",
|
| 847 |
+
"text_level": 1,
|
| 848 |
+
"bbox": [
|
| 849 |
+
176,
|
| 850 |
+
568,
|
| 851 |
+
344,
|
| 852 |
+
583
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 7
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Baur et al. (2018) have used autoencoder reconstructions to localize anomalies in MRI scans, and have compared several variants using diverse per-pixel distances as well as perceptual metrics derived from a GAN-like architecture. Bergmann et al. (2018) use the structural similarity metric (Wang et al., 2004) to compare the original image and its reconstruction to achieve better anomaly localization, and also presents the SSIM autoencoder, which is trained directly with this metric. ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
174,
|
| 861 |
+
603,
|
| 862 |
+
823,
|
| 863 |
+
672
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 7
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "Zimmerer et al. (2018) use the derivative of the VAE loss function with respect to the input, called the score. The amplitude of the score is supposed to indicate how abnormal a pixel is. While we agree that the gradient of the loss is an indication of an anomaly, we think that we have to integrate this gradient over the path from the input to the normal manifold to obtain meaningful information. We compare our results to score-based results for anomaly localization in appendix A. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
174,
|
| 872 |
+
680,
|
| 873 |
+
825,
|
| 874 |
+
750
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 7
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "The work that is the most related to ours is AnoGAN (Schlegl et al., 2017). We have mentioned above the differences between the two approaches, which, apart from the change in underlying architectures, boil down to the ability in our method to update directly the input image instead of searching for the optimal latent code. This enables the method to converge faster and above all to keep higher-frequency structures of the input, which would have been deteriorated if it were passed through the AE bottleneck. Bergmann et al. (2019) compare standard AE reconstructions techniques to AnoGAN, and observes that AnoGAN’s performances on anomaly localizations tasks are poorer than AE’s due to the mode collapse tendency of GAN architectures. Interestingly, updates on AnoGAN such as fast AnoGAN (Schlegl et al., 2019) or AnoVAEGAN (Baur et al., 2018) replaced the gradient descent search of the optimal z with a learned encoder model, yielding an approach very similar to the standard VAE reconstruction-based approaches, but with a reconstruction loss learned by a discriminator, which is still prone to mode collapse (Thanh-Tung et al., 2019). ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
757,
|
| 884 |
+
825,
|
| 885 |
+
924
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 7
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "6 CONCLUSION ",
|
| 892 |
+
"text_level": 1,
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
102,
|
| 896 |
+
318,
|
| 897 |
+
117
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "In this paper, we proposed a novel method for unsupervised anomaly localization, using gradient descent of an energy defined by an autoencoder reconstruction loss. Starting from a sample under test, we iteratively update this sample to reduce its autoencoder reconstruction error. This method offers a way to incorporate human priors into what is the optimal projection of an out-of-distribution sample into the normal data manifold. In particular, we use the pixel-wise reconstruction error to modulate the gradient descent, which gives impressive anomaly localization results in only a few iterations. Using gradient descent in the input data space, starting from the input sample, enables us to overcome the autoencoder tendency to provide blurry reconstructions and keep normal high frequency structures. This significantly reduces the number of pixels that could be wrongly classified as defects when the autoencoder fails to reconstruct high frequencies. We showed that this method, which can easily be added to any previously trained autoencoder architecture, gives state-of-the-art results on a variety of unsupervised anomaly localization datasets, as well as qualitative reconstructions on an inpainting task. Future work can focus on replacing the $L ^ { 1 }$ -based regularization term with a Bayesian prior modeling common types of anomalies, and on further improving the speed of the gradient descent. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
133,
|
| 907 |
+
825,
|
| 908 |
+
342
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "REFERENCES ",
|
| 915 |
+
"text_level": 1,
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
363,
|
| 919 |
+
285,
|
| 920 |
+
378
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 8
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "Fazil Altinel, Mete Ozay, and Takayuki Okatani. Deep structured energy-based image inpainting. In 2018 24th International Conference on Pattern Recognition (ICPR), pp. 423–428, Aug 2018. doi: 10.1109/ICPR.2018.8546025. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
387,
|
| 930 |
+
825,
|
| 931 |
+
429
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 8
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "Jinwon An and Sungzoon Cho. Variational autoencoder based anomaly detection using reconstruction probability. Technical report, SNU Data Mining Center, 2015. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
169,
|
| 940 |
+
439,
|
| 941 |
+
821,
|
| 942 |
+
468
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 8
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Christoph Baur, Benedikt Wiestler, Shadi Albarqouni, and Nassir Navab. Deep autoencoding models for unsupervised anomaly segmentation in brain MR images. CoRR, abs/1804.04488, 2018. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
478,
|
| 952 |
+
823,
|
| 953 |
+
507
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 8
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "Paul Bergmann, Sindy Löwe, Michael Fauser, David Sattlegger, and Carsten Steger. Improving unsupervised defect segmentation by applying structural similarity to autoencoders. CoRR, abs/1807.02011, 2018. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
173,
|
| 962 |
+
516,
|
| 963 |
+
823,
|
| 964 |
+
559
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 8
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad — a comprehensive real-world dataset for unsupervised anomaly detection. CVPR, 2019. ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
173,
|
| 973 |
+
569,
|
| 974 |
+
823,
|
| 975 |
+
598
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 8
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "Marcelo Bertalmio, Guillermo Sapiro, Vincent Caselles, and Coloma Ballester. Image inpainting. In Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH $\\mathbf { \\dot { \\theta } } _ { 0 0 }$ , pp. 417–424, New York, NY, USA, 2000. ACM Press/Addison-Wesley Publishing Co. ISBN 1-58113-208-5. doi: 10.1145/344779.344972. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
173,
|
| 984 |
+
607,
|
| 985 |
+
826,
|
| 986 |
+
664
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 8
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "Antonio Criminisi, Patrick Pérez, and Kentaro Toyama. Region filling and object removal by exemplar-based image inpainting. Trans. Img. Proc., 13(9):1200–1212, September 2004. ISSN 1057-7149. doi: 10.1109/TIP.2004.833105. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
674,
|
| 996 |
+
823,
|
| 997 |
+
717
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 8
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "Bin Dai and David P. Wipf. Diagnosing and enhancing VAE models. CoRR, abs/1903.05789, 2019. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
169,
|
| 1006 |
+
726,
|
| 1007 |
+
825,
|
| 1008 |
+
742
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 8
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"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. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
173,
|
| 1017 |
+
751,
|
| 1018 |
+
823,
|
| 1019 |
+
795
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 8
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "Ian J. Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. CoRR, abs/1701.00160, 2017. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
166,
|
| 1028 |
+
804,
|
| 1029 |
+
823,
|
| 1030 |
+
833
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 8
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "Douglas M Hawkins. Identification of outliers. Monographs on applied probability and statistics. Chapman and Hall, London [u.a.], 1980. ISBN 041221900X. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
171,
|
| 1039 |
+
843,
|
| 1040 |
+
821,
|
| 1041 |
+
871
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 8
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Matthew D. Hoffman and Matthew J. Johnson. Elbo surgery: yet another way to carve up the variational evidence lower bound. In NIPS 2016 Workshop on Advances in Approximate Bayesian Inference, 2016. ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
174,
|
| 1050 |
+
882,
|
| 1051 |
+
823,
|
| 1052 |
+
922
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 8
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Oleg Ivanov, Michael Figurnov, and Dmitry Vetrov. Variational autoencoder with arbitrary conditioning. In International Conference on Learning Representations, 2019. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
171,
|
| 1061 |
+
103,
|
| 1062 |
+
823,
|
| 1063 |
+
133
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 9
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
176,
|
| 1072 |
+
140,
|
| 1073 |
+
823,
|
| 1074 |
+
184
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 9
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Yoshua Bengio and Yann LeCun (eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
176,
|
| 1083 |
+
193,
|
| 1084 |
+
821,
|
| 1085 |
+
236
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 9
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
173,
|
| 1094 |
+
243,
|
| 1095 |
+
820,
|
| 1096 |
+
273
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Takashi Matsubara, Ryosuke Tachibana, and Kuniaki Uehara. Anomaly machine component detection by deep generative model with unregularized score. CoRR, abs/1807.05800, 2018. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
281,
|
| 1106 |
+
820,
|
| 1107 |
+
310
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei Efros. Context encoders: Feature learning by inpainting. In Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
319,
|
| 1117 |
+
825,
|
| 1118 |
+
362
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 9
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Suman V. Ravuri and Oriol Vinyals. Classification accuracy score for conditional generative models. CoRR, abs/1905.10887, 2019. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
174,
|
| 1127 |
+
371,
|
| 1128 |
+
821,
|
| 1129 |
+
400
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Thomas Schlegl, Philipp Seeböck, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, pp. 146– 157. Springer, 2017. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
409,
|
| 1139 |
+
825,
|
| 1140 |
+
465
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 9
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Thomas Schlegl, Philipp Seeböck, Sebastian M. Waldstein, Georg Langs, and Ursula SchmidtErfurth. f-anogan: Fast unsupervised anomaly detection with generative adversarial networks. Medical Image Analysis, 54:30 – 44, 2019. ISSN 1361-8415. doi: https://doi.org/10.1016/j. media.2019.01.010. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
473,
|
| 1150 |
+
825,
|
| 1151 |
+
531
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Yoshua Bengio and Yann LeCun (eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
173,
|
| 1160 |
+
539,
|
| 1161 |
+
825,
|
| 1162 |
+
597
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Hoang Thanh-Tung, Truyen Tran, and Svetha Venkatesh. Improving generalization and stability of generative adversarial networks. CoRR, abs/1902.03984, 2019. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
168,
|
| 1171 |
+
604,
|
| 1172 |
+
823,
|
| 1173 |
+
635
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Zhou Wang, Alan Bovik, Hamid Sheikh, and Eero Simoncelli. Image quality assessment: From error visibility to structural similarity. Image Processing, IEEE Transactions on, 13:600 – 612, 05 2004. doi: 10.1109/TIP.2003.819861. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
173,
|
| 1182 |
+
642,
|
| 1183 |
+
825,
|
| 1184 |
+
685
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "David Zimmerer, Fabian Isensee, Jens Petersen, Simon Kohl A. A., and Klaus H. Maier-Hein. Unsupervised anomaly localization using variational auto-encoders. CoRR, abs/1907.02796, 2019. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
746,
|
| 1194 |
+
823,
|
| 1195 |
+
775
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "A COMPARISON WITH ZIMMERER ET AL. (2019) ",
|
| 1202 |
+
"text_level": 1,
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
174,
|
| 1205 |
+
102,
|
| 1206 |
+
593,
|
| 1207 |
+
118
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "table",
|
| 1213 |
+
"img_path": "images/ce8b71adc930320ccbede62df90df18c9c46e4b54bcdec76e5f67e12f74c8c3e.jpg",
|
| 1214 |
+
"table_caption": [
|
| 1215 |
+
"Table 2: Complementary results for anomaly segmentation on MVTec datasets, expressed in AUROC for different pixel-wise scores derived from a baseline VAE: from left to right, squared error reconstruction $| | { \\bf x } - f _ { V A E } ( { \\bf x } ) | | ^ { 2 }$ (denoted $\\mathcal { L } _ { r } ( \\mathbf { x } ) )$ , gradient of the loss $| \\nabla _ { \\mathbf x } \\mathcal L ( \\mathbf x ) |$ , combination of both, gradient of the KL divergence $| D _ { \\mathrm { K L } } ( q ( \\mathbf { z } | \\mathbf { x } ) \\| p ( \\mathbf { z } ) )$ (denoted $| \\nabla _ { \\mathbf { x } } \\mathcal { L } _ { K L } ( \\mathbf { x } ) | )$ as well as combination of KL derivative and error reconstruction as suggested in Zimmerer et al. (2018; 2019). "
|
| 1216 |
+
],
|
| 1217 |
+
"table_footnote": [],
|
| 1218 |
+
"table_body": "<table><tr><td></td><td>Category</td><td>Lr(x)</td><td>VxL(x)</td><td>IVxL(x)) OLr(x)</td><td>IVxLKL(x)l</td><td>IVxLKL(x)) Lr(x)</td><td>VAE-grad</td></tr><tr><td rowspan=\"5\">TJssnets</td><td>carpet</td><td>0.537</td><td>0.580</td><td>0.566</td><td>0.553</td><td>0.555</td><td>0.735</td></tr><tr><td>grid</td><td>0.823</td><td>0.635</td><td>0.812</td><td>0.507</td><td>0.790</td><td>0.961</td></tr><tr><td>leather</td><td>0.783</td><td>0.650</td><td>0.792</td><td>0.627</td><td>0.791</td><td>0.925</td></tr><tr><td>tile</td><td>0.547</td><td>0.606</td><td>0.581</td><td>0.623</td><td>0.588</td><td>0.654</td></tr><tr><td>wood</td><td>0.686</td><td>0.691</td><td>0.726</td><td>0.643</td><td>0.713</td><td>0.838</td></tr><tr><td rowspan=\"10\">seetqt</td><td>bottle</td><td>0.831</td><td>0.762</td><td>0.832</td><td>0.629</td><td>0.830</td><td>0.922</td></tr><tr><td>cable</td><td>0.831</td><td>0.796</td><td>0.846</td><td>0.674</td><td>0.841</td><td>0.910</td></tr><tr><td>capsule</td><td>0.765</td><td>0.754</td><td>0.772</td><td>0.642</td><td>0.795</td><td>0.917.</td></tr><tr><td>hazelnut</td><td>0.907</td><td>0.831</td><td>0.908</td><td>0.468</td><td>0.885</td><td>0.976</td></tr><tr><td>metalnut</td><td>0.833</td><td>0.831</td><td>0.870</td><td>0.710</td><td>0.834</td><td>0.907</td></tr><tr><td>pill</td><td>0.869</td><td>0.833</td><td>0.872</td><td>0.480</td><td>0.826</td><td>0.930</td></tr><tr><td>screw</td><td>0.851</td><td>0.726</td><td>0.842</td><td>0.412</td><td>0.795</td><td>0.945</td></tr><tr><td>toothbrush</td><td>0.942</td><td>0.798</td><td>0.943</td><td>0.619</td><td>0.939</td><td>0.985</td></tr><tr><td>transistor</td><td>0.788</td><td>0.843</td><td>0.834</td><td>0.801</td><td>0.836</td><td>0.919</td></tr><tr><td>zipper</td><td>0.725</td><td>0.674</td><td>0.729</td><td>0.562</td><td>0.727</td><td>0.869</td></tr></table>",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
173,
|
| 1221 |
+
227,
|
| 1222 |
+
828,
|
| 1223 |
+
468
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 10
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "Zimmerer et al. (2019) proposed to perform anomaly localization using different scores derived from the gradient of the VAE loss. In particular, it has been shown that the product of the VAE reconstruction error with the gradient of the KL divergence was very informative for medical images. In table 2 we compare the pixel-wise anomaly detection AUROC of these different scores with our method. For all experiments, we use the same “vanilla” VAE as described in section 4.1. ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
173,
|
| 1232 |
+
488,
|
| 1233 |
+
825,
|
| 1234 |
+
559
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "It can be seen that other VAE-based methods using a single evaluation of the gradient are constantly outperformed by our method. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
174,
|
| 1243 |
+
565,
|
| 1244 |
+
823,
|
| 1245 |
+
593
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 10
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "B CONVERGENCE SPEED ",
|
| 1252 |
+
"text_level": 1,
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
174,
|
| 1255 |
+
102,
|
| 1256 |
+
397,
|
| 1257 |
+
117
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 11
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "image",
|
| 1263 |
+
"img_path": "images/345cea3215d5de240941e391b07b8e8c6ecd6b2a51cb52dde3287447ce2a70b3.jpg",
|
| 1264 |
+
"image_caption": [
|
| 1265 |
+
"Figure 5: Evolution of pixel-wise anomaly detection AUROC performance. "
|
| 1266 |
+
],
|
| 1267 |
+
"image_footnote": [],
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
243,
|
| 1270 |
+
142,
|
| 1271 |
+
751,
|
| 1272 |
+
377
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 11
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "In figure 5 we compare the number of iterations needed to reach convergence with our two proposals for gradient descent: Standard update as in equation 5 and Tuned update using a gradient mask computed with the VAE reconstruction error, as in equation 8. The model is a VAE with learned decoder variance (Dai & Wipf, 2019), trained on the Grid dataset (Bergmann et al., 2019). We compute the mean pixel-wise anomaly detection AUROC after each iteration on the test set. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
426,
|
| 1282 |
+
825,
|
| 1283 |
+
496
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 11
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "We can see that the tuned method converges to the same performance as the standard method, with far fewer iterations. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
173,
|
| 1292 |
+
502,
|
| 1293 |
+
823,
|
| 1294 |
+
531
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 11
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "image",
|
| 1300 |
+
"img_path": "images/2cebada9b7197e00c2fab69f1850ebdeacfeefa2a889bd15909f9a0d95c80f61.jpg",
|
| 1301 |
+
"image_caption": [
|
| 1302 |
+
"Figure 6: From left to right: Normal; Anomalous; Anomaly segmentation with baseline $L ^ { 2 }$ autoencoder (Bergmann et al., 2019); Our proposed anomaly segmentation with $L ^ { 2 }$ autoencoder augmented with gradient-based iterative reconstruction. "
|
| 1303 |
+
],
|
| 1304 |
+
"image_footnote": [],
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
330,
|
| 1307 |
+
135,
|
| 1308 |
+
666,
|
| 1309 |
+
713
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 12
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "image",
|
| 1315 |
+
"img_path": "images/0a930ed3a0d4bf482f1bb30b17161e0bf7c1b209bebf56b1660f760c38e4db58.jpg",
|
| 1316 |
+
"image_caption": [
|
| 1317 |
+
"Figure 7: Illustration of anomaly localization comparison over four baselines ( $L ^ { 2 } { \\mathrm { A E } }$ , DSAE, VAE, $\\gamma$ -VAE). Ground truth is represented by red contour, and each estimated segmentation by a green overlay. It can be seen that anomaly segmentation is overall improved when different baselines are augmented by our proposed gradient descent. "
|
| 1318 |
+
],
|
| 1319 |
+
"image_footnote": [],
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
214,
|
| 1322 |
+
103,
|
| 1323 |
+
779,
|
| 1324 |
+
696
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 13
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "D INPAINTING COMPARISON ",
|
| 1331 |
+
"text_level": 1,
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
174,
|
| 1334 |
+
102,
|
| 1335 |
+
426,
|
| 1336 |
+
117
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 14
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "image",
|
| 1342 |
+
"img_path": "images/ffc49efc49762ecb3f4c500413e7267bb1d6f339702e0013a7cde29f0684c8c5.jpg",
|
| 1343 |
+
"image_caption": [
|
| 1344 |
+
"Figure 8: Inpainting comparison. Each batch is made of four rows, from top to bottom: Masked input image; VAE with arbitrary conditioning (VAEAC, Ivanov et al. (2019)); Ours; Ground truth. The quality of the reconstructions is comparable, even though our VAE is trained without any assumptions over the mask’s properties. "
|
| 1345 |
+
],
|
| 1346 |
+
"image_footnote": [],
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
220,
|
| 1349 |
+
131,
|
| 1350 |
+
777,
|
| 1351 |
+
720
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 14
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "image",
|
| 1357 |
+
"img_path": "images/2a43dfab4dcfee18aabf106a89fa776779a096451340a5174bf902c8a544094a.jpg",
|
| 1358 |
+
"image_caption": [
|
| 1359 |
+
"Figure 9: Principle of the energy optimization to project anomalous sample on the normal manifold "
|
| 1360 |
+
],
|
| 1361 |
+
"image_footnote": [],
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
184,
|
| 1364 |
+
135,
|
| 1365 |
+
727,
|
| 1366 |
+
404
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 15
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Figure 9 illustrates our method principle. We start with a defective input $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { 0 }$ whose reconstruction $\\scriptstyle { \\hat { \\mathbf { x } } } _ { 0 }$ does not necessarily lie on the normal data manifold. As the optimization process carries on, the optimized sample $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { 0 }$ and its reconstruction look more similar and get closer to the manifold. The regularization term of the energy function makes sure that the optimized sample stays close to the original sample. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
173,
|
| 1375 |
+
452,
|
| 1376 |
+
825,
|
| 1377 |
+
522
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 15
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "image",
|
| 1383 |
+
"img_path": "images/af15f62eeb6a6ad21ae17c81d2036303dc40784f6c062bc7493c7a6a7a566a04.jpg",
|
| 1384 |
+
"image_caption": [
|
| 1385 |
+
"Figure 10: Distribution of the improvement rate over all presented baselines and all datasets in MVTec AD. "
|
| 1386 |
+
],
|
| 1387 |
+
"image_footnote": [],
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
205,
|
| 1390 |
+
171,
|
| 1391 |
+
692,
|
| 1392 |
+
448
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 16
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Figure 10 shows the distribution of the AUC improvement rate over all presented baselines and all datasets in MVTec AD using our gradient-based projection method. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
173,
|
| 1401 |
+
518,
|
| 1402 |
+
823,
|
| 1403 |
+
547
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 16
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "equation",
|
| 1409 |
+
"img_path": "images/4cf2b573cd1eb684730e0d7d66fb3e96c26a314fb4f70909667f64e890f8a49e.jpg",
|
| 1410 |
+
"text": "$$\n{ \\mathrm { i m p r o v e m e n t r a t e } } = { \\frac { A U C _ { g r a d } - A U C _ { b a s e } } { A U C _ { b a s e } } }\n$$",
|
| 1411 |
+
"text_format": "latex",
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
352,
|
| 1414 |
+
553,
|
| 1415 |
+
645,
|
| 1416 |
+
587
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 16
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"text": "• $8 . 3 \\%$ of data points are under the 0 value delimiting an increase or decrease in AUC due to our method, and $9 1 . 7 \\%$ data points are over this value. Our method increases the AUC in a vast majority of cases. ",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
214,
|
| 1425 |
+
595,
|
| 1426 |
+
825,
|
| 1427 |
+
637
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 16
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "• The median is at $4 . 3 3 \\%$ , the 25th percentile at $1 . 8 6 \\%$ , and the 75th percentile at $1 5 . 8 6 \\%$ . ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
215,
|
| 1436 |
+
642,
|
| 1437 |
+
813,
|
| 1438 |
+
659
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 16
|
| 1441 |
+
}
|
| 1442 |
+
]
|
parse/train/HJx81ySKwr/HJx81ySKwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJx81ySKwr/HJx81ySKwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/M_lkFOwVdYc/M_lkFOwVdYc.md
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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4, and Bryan Catanzaro2
|
| 4 |
+
|
| 5 |
+
1University of Maryland, College Park 2 NVIDIA 3Arizona State University 4California Institute of Technology ‡chenzhu@cs.umd.edu, †{wping, chaoweix}@nvidia.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Transformers have achieved success in both language and vision domains. However, it is prohibitively expensive to scale them to long sequences such as long documents or high-resolution images, because self-attention mechanism has quadratic time and memory complexities with respect to the input sequence length. In this paper, we propose Long-Short Transformer (Transformer-LS), an efficient self-attention mechanism for modeling long sequences with linear complexity for both language and vision tasks. It aggregates a novel long-range attention with dynamic projection to model distant correlations and a short-term attention to capture fine-grained local correlations. We propose a dual normalization strategy to account for the scale mismatch between the two attention mechanisms. Transformer-LS can be applied to both autoregressive and bidirectional models without additional complexity. Our method outperforms the state-of-the-art models on multiple tasks in language and vision domains, including the Long Range Arena benchmark, autoregressive language modeling, and ImageNet classification. For instance, Transformer-LS achieves 0.97 test BPC on enwik8 using half the number of parameters than previous method, while being faster and is able to handle $3 \times$ as long sequences compared to its full-attention version on the same hardware. On ImageNet, it can obtain the state-of-the-art results (e.g., a moderate size of $5 5 . 8 \mathbf { M }$ model solely trained on $2 2 4 \times 2 2 4$ ImageNet-1K can obtain Top-1 accuracy $8 4 . 1 \%$ ), while being more scalable on high-resolution images. The source code and models are released at https://github.com/NVIDIA/transformer-ls.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Transformer-based models [1] have achieved great success in the domains of natural language processing (NLP) [2, 3] and computer vision [4–6]. These models benefit from the self-attention module, which can capture both adjacent and long-range correlations between tokens while efficiently scaling on modern hardware. However, the time and memory consumed by self-attention scale quadratically with the input length, making it very expensive to process long sequences. Many language and vision tasks benefit from modeling long sequences. In NLP, document-level tasks require processing long articles [e.g., 7, 8], and the performance of language models often increases with sequence length [e.g., 9, 10]. In computer vision, many tasks involve high-resolution images, which are converted to long sequences of image patches before being processed with Transformer models [4, 6, 11]. As a result, it is crucial to design an efficient attention mechanism for long sequence modeling that generalizes well across different domains.
|
| 14 |
+
|
| 15 |
+
Various methods have been proposed to reduce the quadratic cost of full attention. However, an efficient attention mechanism that generalizes well in both language and vision domains is less explored. One family of methods is to sparsify the attention matrix with predefined patterns such as sliding windows [e.g., 12–15] and random sparse patterns [16]. These methods leverage strong inductive biases to improve both computational and model performance, but they limit the capacity of a self-attention layer because each specific token can only attend to a subset of tokens. Another family of methods leverages low-rank projections to form a low resolution representation of the input sequence, but the successful application of these methods has been limited to certain NLP tasks [e.g., 17–19]. Unlike sparse attention, this family of methods allows each token to attend to the entire input sequence. However, due to the loss of high-fidelity token-wise information, their performance sometimes is not as good as full attention or sparse attention on tasks that require fine-grained local information, including standard benchmarks in language [20] and vision [21].
|
| 16 |
+
|
| 17 |
+
Despite the rapid progress in efficient Transformers, some proposed architectures can only be applied to bidirectional models [e.g., 15, 16, 18]. Transformer-based autoregressive models have achieved great successes in language modeling [22], image synthesis [23], and text-to-image synthesis [24], which also involve long texts or high-resolution images. It is desirable to design an efficient transformer that can be applied to both autoregressive and bidirectional models.
|
| 18 |
+
|
| 19 |
+
In this work, we unify a local window attention and a novel long-range attention into a single efficient attention mechanism. We show that these two kinds of attention have complementary effects that together yield the state-of-the-art results on a range of tasks in language and vision, for both autoregressive and bidirectional models. Specifically, we make the following contributions:
|
| 20 |
+
|
| 21 |
+
• We propose Long-Short Transformer (Transformer-LS), an efficient Transformer that integrates a dynamic projection based attention to model long-range correlations, and a local window attention to capture fine-grained correlations. Transformer-LS can be applied to both autoregressive and bidirectional models with linear time and memory complexity.
|
| 22 |
+
• We compute a dynamic low-rank projection, which depends on the content of the input sequence. In contrast to previous low-rank projection methods, our dynamic projection method is more flexible and robust to semantic-preserving positional variations (e.g., insertion, paraphrasing). We demonstrate that it outperforms previous low-rank methods [17, 18] on Long Range Arena benchmark [20].
|
| 23 |
+
• We identify a scale mismatch problem between the embeddings from the long-range and shortterm attentions, and design a simple but effective dual normalization strategy, termed DualLN, to account for the mismatch and enhance the effectiveness of the aggregation.
|
| 24 |
+
• We demonstrate that Long-Short Transformer, despite its low memory and runtime complexity, outperforms the state-of-the-art models on a set of tasks from Long Range Arena, and autoregressive language modeling on enwik8 and text8. In addition, the proposed efficient attention mechanism can be easily applied to the most recent vision transformer architectures [6, 11] and provides state-of-the-art results, while being more scalable to high-resolution images. We also investigate the robustness properties of the Transformer-LS on diverse ImageNet datasets.
|
| 25 |
+
|
| 26 |
+
# 2 Related Work
|
| 27 |
+
|
| 28 |
+
# 2.1 Efficient Transformers
|
| 29 |
+
|
| 30 |
+
In recent years, many methods have been introduced for dealing with the quadratic cost of full attention. In general, they can be categorized as follows: i) Sparse attention mechanism with predefined patterns (e.g., sliding window), including Sparse Transformer [12], Image Transformer [13], Axial Transformer [25] for modeling images, and Longformer [14], blockwise self-attention [26], ETC [15], Big Bird [16] for modeling language. ii) Low-rank projection attention, including Linformer [17], Nyströmformer [18], Synthesizer [19]. For example, Linformer uses linear layers to project the original high resolution keys $( K )$ and values $( V )$ with length $n$ to low resolution with size $r$ $( r \ll n )$ ) and allows all query tokens $( Q )$ to attend these compressed representations. iii) Memory-based mechanisms like Compressive Transformer [10] and Set Transformer [27], which use extra memories for caching global long-range information for use in computing attention between distant tokens. iv) Kernel-based approximation of the attention matrix, including Performer [28], Linear
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Figure 1: Long-short term attention of a single attention head. Here, the sequence length $n = 8$ , hidden dimension $d = 3$ , local window segment size $w = 2$ , and rank of dynamic projection $r = 3$ . Within the figure, $K ( V )$ denotes key $K$ or value $V$ . In the left figure, we virtually replicate $K$ or $V \in \mathbb { R } ^ { n \times d }$ into $n$ rows, and highlight the keys and values within the attention span (denoted as $\tilde { K } ( \tilde { V } ) )$ of all $_ n$ queries $Q$ for the short-term attention. In the middle figure, all queries attend to the same projected keys $\bar { K }$ and values $\bar { V }$ within the long-term attention. In the right figure, $\tilde { K } ( \tilde { V } )$ and $\bar { K } ( \bar { V } )$ are first normalized with two sets of LayerNorms, and the queries attend to normalized $\tilde { K } ( \tilde { V } )$ and $\bar { K } ( \bar { V } )$ within their attention span simultaneously.
|
| 34 |
+
|
| 35 |
+
Transformer [29], and Random Feature Attention [30]. vi) Similarity and clustering based methods, including Reformer [31], Routing Transformer [32], and Sinkhorn Transformer [33].
|
| 36 |
+
|
| 37 |
+
Our method seamlessly integrates both low-rank projection and local window attentions, to leverage their strengths for modeling long-range and short-term correlations. In particular, our long-range attention uses a dynamic low-rank projection to encode the input sequence, and outperforms the previous low-rank projection method used by the Linformer [17]. In the similar vein, a few other methods also try to combine the strengths of different methods. For example, Longformer [14] and ETC [15] augment local window attention with task motivated global tokens. Such global tokens may not be applicable for some tasks (e.g., autoregressive modelling). BigBird [16] further combines local window and global token attention with random sparse attention. It is not applicable in autoregressive tasks because the global token and random sparse pattern are introduced. To compress the model footprint on edge devices, Lite Transformer [34] combines convolution and self-attention, but it still has quadratic complexity for long sequences.
|
| 38 |
+
|
| 39 |
+
# 2.2 Vision Transformers
|
| 40 |
+
|
| 41 |
+
Vision Transformer (ViT) [4] splits images as small patches and treats the patches as the input word tokens. It uses a standard transformer for image classification and has shown to outperform convolutional neural networks (e.g., ResNet [35]) with sufficient training data. DeiT [36] has applied the teacher-student strategy to alleviate the data efficiency problem of ViT and has shown strong comparable performance using only the standard ImageNet dataset [37]. Instead of applying transformer at a single low resolution of patches (e.g., $1 6 \times 1 6$ patches), very recent works, including Pyramid Vision Transformer (PVT) [5], Swin-Transformer [38], T2T-ViT [39], Vision Longformer (ViL) [11] and Convolutional Vision Transformer (CvT) [6], stack a pyramid of ViTs to form a multi-scale architecture and model long sequences of image patches at much higher resolution (e.g., $5 6 \times 5 6 = 3 1 3 6$ patches for images with $2 2 4 \times 2 2 4$ pixels). Most of these methods have quadratic complexity of self-attention with respect to the input image size.
|
| 42 |
+
|
| 43 |
+
To reduce the complexity, Swin-Transformer [38] achieves linear complexity by limiting the computation of self-attention only within each local window. HaloNet [40] applies local attention on blocked images and only has quadratic complexity with respect to the size of the block. Perceiver [41] uses cross-attention between data and latent arrays to replace the self-attention on data to remove the quadratic complexity bottleneck. Vision Longformer (ViL) [11], another concurrent work, achieves linear complexity by adapting Longformer [14] to Vision. ViL augments local window attention with task-specific global tokens, but the global tokens are not applicable for decoding task (e.g., image synthesis [23, 24]). In contrast, our method reduces the quadratic cost to linear cost by combining local window attention with global dynamic projection attention, which can be applied to both encoding and decoding tasks.
|
| 44 |
+
|
| 45 |
+
# 3 Long-Short Transformer
|
| 46 |
+
|
| 47 |
+
Transformer-LS approximates the full attention by aggregating long-range and short-term attentions, while maintaining its ability to capture correlations between all input tokens. In this section, we first introduce the preliminaries of multi-head attention in Transformer. Then, we present the short-term attention via sliding window, and long-range attention via dynamic projection, respectively. After that, we propose the aggregating method and dual normalization (DualLN) strategy. See Figure 1 for an illustration of our long-short term attention.
|
| 48 |
+
|
| 49 |
+
# 3.1 Preliminaries and Notations
|
| 50 |
+
|
| 51 |
+
Multi-head attention is a core component of the Transformer [1], which computes contextual representations for each token by attending to the whole input sequence at different representation subspaces. It is defined as
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\mathrm { M u l t i H e a d } ( Q , K , V ) = \mathrm { C o n c a t } ( H _ { 1 } , H _ { 2 } , . . . , H _ { h } ) W ^ { O } ,
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $Q , K , V \in \mathbb { R } ^ { n \times d }$ are the query, key and value embeddings, $W ^ { O } \in \mathbb { R } ^ { d \times d }$ is the projection matrix for output, the $i$ -th head $\bar { H _ { i } } \in \bar { \mathbb { R } } ^ { n \times \check { d } _ { k } }$ is the scaled dot-product attention, and $d _ { k } = d / h$ is the embedding dimension of each head,
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
H _ { i } = \mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) = \mathrm { s o f t m a x } \left[ \frac { Q W _ { i } ^ { Q } \left( K W _ { i } ^ { K } \right) ^ { \mathsf { T } } } { \sqrt { d _ { k } } } \right] V W _ { i } ^ { V } = A _ { i } V W _ { i } ^ { V } ,
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $W _ { i } ^ { Q } , W _ { i } ^ { K } , W _ { i } ^ { V } \in \mathbb { R } ^ { d \times d _ { k } }$ are learned projection matrices, and $A _ { i } \in \mathbb { R } ^ { n \times n }$ denotes the full attention matrix for each attention head. The complexity of computing and storing $A _ { i }$ is $O ( n ^ { 2 } )$ , which can be prohibitive when $n$ is large. For simplicity, our discussion below is based on the case of 1D input sequences. It is straightforward to extend to the 2D image data given a predetermined order.
|
| 64 |
+
|
| 65 |
+
# 3.2 Short-term Attention via Segment-wise Sliding Window
|
| 66 |
+
|
| 67 |
+
We use the simple yet effective sliding window attention to capture fine-grained local correlations, where each query attends to nearby tokens within a fixed-size neighborhood. Similar techniques have also been adopted in [14, 16, 11]. Specifically, we divide the input sequence into disjoint segments with length $w$ for efficiency reason. All tokens within a segment attend to all tokens within its home segment, as well as $w / 2$ consecutive tokens on the left and right side of its home segment (zero-padding when necessary), resulting in an attention span over a total of $2 w$ key-value pairs. See Figure 5 in Appendix for an illustration. For each query $Q _ { t }$ at the position $t$ within the $i$ -th head, we denote the $2 w$ key-value pairs within its window as $\bar { K } _ { t } , \tilde { V } _ { t } \in \mathbb { R } ^ { \bar { 2 w } \times d }$ . For implementation with PyTorch, this segment-wise sliding window attention is faster than the per-token sliding window attention where each token attends to itself and $w$ tokens to its left and right, and its memory consumption scales linearly with sequence length; see [14] and our Figure 3 for more details.
|
| 68 |
+
|
| 69 |
+
The sliding window attention can be augmented to capture long-range correlations in part, by introducing different dilations to different heads of sliding window attention [14]. However, the dilation configurations for different heads need further tuning and an efficient implementation of multi-head attention with different dilations is non-trivial. A more efficient alternative is to augment sliding window attention with random sparse attention [16], but this does not guarantee that the long-range correlations are captured in each layer as in full attention. In the following section, we propose our long-range attention to address this issue.
|
| 70 |
+
|
| 71 |
+
# 3.3 Long-range Attention via Dynamic Projections
|
| 72 |
+
|
| 73 |
+
Previous works have shown that the self-attention matrix can be well approximated by the product of low-rank matrices [17]. By replacing the full attention with the product of low-rank matrices [42, 19, 18, 43, 28], each query is able to attend to all tokens. Linformer [17] is one of the most representative models in this category. It learns a fixed projection matrix to reduce the length of the keys and values, but the fixed projection is inflexible to semantic-preserving positional variations.
|
| 74 |
+
|
| 75 |
+
Starting from these observations, we parameterize the dynamic low-rank projection at $i$ -th head as $P _ { i } = f ( K ) \in \mathbb { R } ^ { n \times r }$ , where $r \ll n$ is the low rank size and $P _ { i }$ depends on all the keys $K \in \mathbb { R } ^ { n \times d }$ of input sequence. It projects the $( n \times d _ { k } )$ -dimensional key embeddings $K W _ { i } ^ { K }$ and value embeddings $V W _ { i } ^ { V }$ into shorter, $( r \times d _ { k } )$ -dimensional key ${ \bar { K } } _ { i }$ and value $\bar { V } _ { i }$ embeddings. Unlike Linformer [17], the low-rank projection matrix is dynamic, which depends on the input sequence and is intended to be more flexible and robust to, e.g., insertion, deletion, paraphrasing, and other operations that change sequence length. See Table 2 for examples. Note that, the query embeddings $Q \bar { W } _ { i } ^ { Q } \in \mathbb { R } ^ { n \times d _ { k } }$ are kept at the same length, and we let each query attend to ${ \bar { K } } _ { i }$ and $\bar { V } _ { i }$ . In this way, the full $( n \times n )$ attention matrix can be decomposed into the product of two matrices with $r$ columns or rows. Specifically, we define the dynamic projection matrix $P _ { i } \in \mathbb { R } ^ { n \times r }$ and the key-value embeddings $\bar { K } _ { i } , \dot { \bar { V } } _ { i } \in \mathbb { R } ^ { r \times \mathbf { \dot { d } } _ { k } }$ of low-rank attention as
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
P _ { i } = \mathrm { s o f t m a x } ( K W _ { i } ^ { P } ) , \bar { K } _ { i } = P _ { i } ^ { \intercal } K W _ { i } ^ { K } , \bar { V } _ { i } = P _ { i } ^ { \intercal } V W _ { i } ^ { V } ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $W _ { i } ^ { P } \in \mathbb { R } ^ { d \times r }$ are learnable parameters,2 and the softmax normalizes the projection weights on the first dimension over all $n$ tokens, which stabilizes training in our experiments. Note that $K = V$ in all the experiments we have considered, so $P _ { i }$ remains the same if it depends on $V$ . The computational complexity of Eq. 3 is $O ( r n )$ .
|
| 82 |
+
|
| 83 |
+
To see how the full attention is replaced by the product of low-rank matrices, we compute each head $H _ { i } \in \mathbb { R } ^ { n \times d _ { k } }$ of long-range attention as,
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\bar { H } _ { i } = \underbrace { \mathrm { s o f t m a x } \left[ \frac { Q W _ { i } ^ { Q } \bar { K } _ { i } ^ { \top } } { \sqrt { d _ { k } } } \right] } _ { \bar { A } _ { i } } \bar { V } _ { i } = \bar { A } _ { i } \big ( P _ { i } ^ { \top } V W _ { i } ^ { V } \big ) ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
so the full attention is now replaced with the implicit product of two low-rank matrices $\bar { A } _ { i } \in \mathbb { R } ^ { n \times r }$ and $P _ { i } ^ { \mathsf { T } } \in \mathbb { R } ^ { r \times n }$ , and the computational complexity is reduced to $O ( r n )$ . Note the effective attention weights of a query on all tokens still sum to 1. Our global attention allows each query to attend to all token embeddings within the same self-attention layer. In contrast, the sparse attention mechanisms [14, 16] need stack multiple layers to build such correlations.
|
| 90 |
+
|
| 91 |
+
Application to Autoregressive Models: In autoregressive models, each token can only attend to the previous tokens, so the long-range attention should have a different range for different tokens. A straightforward way to implement our global attention is to update $\bar { K } _ { i } , \bar { V } _ { i }$ for each query recurrently, but this requires re-computing the projection in Eq. (3) for every token due to the nonlinearity of softmax, which results in $O ( r n ^ { 2 } )$ computational complexity. To preserve the linear complexity, for autoregressive models, we first divide the input sequence into equal-length segments with length $l$ , and apply our dynamic projection to extract $\bar { \bar { K } } _ { i } , \bar { \bar { V } } _ { i }$ from each segment. Each token can only attend to $\bar { K } _ { i } , \bar { V _ { i } }$ of segments that do not contain its future tokens. Formally, let $Q _ { t }$ be the query at position $t$ , $K _ { ( l - 1 ) s : l s } , V _ { ( l - 1 ) s : l s }$ be the key-value pairs from the $s$ -th segment, and $s _ { t } = \lfloor t / l \rfloor$ . For autoregressive models, we compute the long-range attention of $Q _ { t }$ by attending to $K _ { i , t } , V _ { i , t }$ , defined as
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\bar { K } _ { i , t } = [ P _ { i , 1 } ^ { \top } K _ { 1 : l } ; . . . ; P _ { i , s _ { t } } ^ { \top } K _ { ( l - 1 ) s _ { t } : l s _ { t } } ] W _ { i } ^ { K } , \bar { V } _ { i , t } = [ P _ { i , 1 } ^ { \top } V _ { 1 : l } ; . . . ; P _ { i , s _ { t } } ^ { \top } V _ { ( l - 1 ) s _ { t } : l s _ { t } } ] W _ { i } ^ { V } .
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
In this way, the dynamic low-rank projection is applied to each segment only once in parallel, preserving the linear complexity and the high training speed. By comparison, Random Feature Attention [30] is slow at training due to the requirement for recurrence.
|
| 98 |
+
|
| 99 |
+
# 3.4 Aggregating Long-range and Short-term Attentions
|
| 100 |
+
|
| 101 |
+
To aggregate the local and long-range attentions, instead of adopting different attention mechanisms for different heads [12, 14, 34], we let each query at $i$ -th head attend to the union of keys and values from the local window and global low-rank projections, thus it can learn to select important information from either of them. We find this aggregation strategy works better than separating the heads in our initial trials with the autoregressive language models. Specifically, for the $i$ -th head, we denote the global low-rank projected keys and values as $\bar { K } _ { i } , \bar { V } _ { i } \in \dot { \mathbb { R } ^ { r \times d _ { k } } }$ , and the local keys and values as $\tilde { K } _ { t } , \tilde { \tilde { V } } _ { t } \in \mathbb { R } ^ { 2 w \times d }$ within the local window of position $t$ for the query $Q _ { t }$ . Then the $i$ -th attention $H _ { i , t }$ at position $t$ is
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
H _ { i , t } = \mathrm { s o f t m a x } \left[ \frac { Q _ { t } W _ { i } ^ { Q } \left[ \tilde { K } _ { t } W _ { i } ^ { K } ; \bar { K } _ { i } \right] ^ { \mathsf { T } } } { \sqrt { d _ { k } } } \right] [ \tilde { V } _ { t } W _ { i } ^ { V } ; \bar { V } _ { i } ] .
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $\left[ \cdot ; \cdot \right]$ denotes concatenating the matrices along the first dimension. Furthermore, we find a scale mismatch between the initial norms of $\tilde { K } _ { t } W _ { i } ^ { K }$ and ${ \bar { K } } _ { i }$ , which biases the attention to the local window at initialization for both language and vision tasks. We introduce a normalization strategy (DualLN) to align the norms and improve the effectiveness of the aggregation in the following.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 2: Left: Ratios of the average $\ell _ { 2 }$ norms of the local window to global low-rank key/value embeddings at initialization. Without DualLN, the sparse and low-rank embeddings have a magnitude mismatch. With DualLN, the ratios will be 1.0 at every layer, which will facilitate optimization. Right: The validation loss of Transformer-LS with and without DualLN on enwik8 and text8.
|
| 111 |
+
|
| 112 |
+
DualLN: For Transformers with Layer Normalization (LN) (see [44] for an illustration), the $K _ { i } , V _ { i }$ embeddings are the outputs of LN layers, so they have zero mean and unit variance at initialization. The $\ell _ { 2 }$ norm of vectors with zero-mean entries is proportional to their variance in expectation. We note a weighted average will reduce the variance and therefore the norm of such zero-mean vectors. As a result, the embedding vectors from low-rank attention in the weighted average $\bar { K } _ { i } , \bar { V } _ { i }$ of Eq. (3) will have smaller norms than the regular key and value embeddings from sliding window attention (see Figure 2 Left for an illustration). This scale mismatch causes two side effects. First, the inner product $Q _ { t } W _ { i } ^ { Q } { \bar { K } } _ { i } ^ { \mathsf { T } }$ from local-rank component tends to have smaller magnitude than the local window one, thus the attention scores on long-range attention is systematically smaller. Second, the key-value pairs $\bar { K } _ { i } , \bar { V } _ { i }$ for the low-rank attention will naturally have less impact on the direction of $H _ { i }$ even when low-rank and local window are assigned with same attention scores, since $\bar { V } _ { i }$ has smaller norms. Both effects lead to small gradients on the low-rank components and hinders the model from learning to effectively use the long-range correlations.
|
| 113 |
+
|
| 114 |
+
To avoid such issues, we add two sets of Layer Normalizations after the key and value projections for the local window and global low-rank attentions, so that their scales are aligned at initialization, but the network can still learn to re-weight the norms after training. Specifically, the aggregated attention is now computed as
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
{ \cal H } _ { i , t } = \mathrm { s o f t m a x } \left[ \frac { { Q _ { t } W _ { i } ^ { Q } \left[ { \cal L N } _ { L } ( { { \tilde { K } } _ { t } } W _ { i } ^ { K } ) ; { \cal L N } _ { G } ( { { \bar { K } } _ { i } } ) \right] ^ { \top } } } { \sqrt { d _ { k } } } \right] [ { \cal L N } _ { L } ( { { \tilde { V } } _ { t } } W _ { i } ^ { V } ) ; { \cal L N } _ { G } ( { { \bar { V } } _ { i } } ) ] ,
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where $\mathrm { L N } _ { L } ( \cdot ) , \mathrm { L N } _ { G } ( \cdot )$ denote the Layer Normalizations for the local and global attentions respectively. In practice, to maintain the consistency between the local attention and dynamic projection, we use $\mathsf { L } \bar { \mathsf { N } } _ { L } ( K ) , \mathsf { L } \mathsf { N } _ { L } ( V )$ instead of $K , V$ to compute $\bar { K } _ { i } , \bar { V } _ { i }$ in Eq. 3. As illustrated in Figure 2 Right, the Transformer-LS models trained with DualLN has consistently lower validation loss than the models without DualLN.
|
| 121 |
+
|
| 122 |
+
# 4 Experiments
|
| 123 |
+
|
| 124 |
+
In this section, we demonstrate the effectiveness and efficiency of our method in both language and vision domains. We use PyTorch for implementation and count the FLOPs using fvcore [45].
|
| 125 |
+
|
| 126 |
+
# 4.1 Bidirectional Modeling on Long Range Arena and IMDb
|
| 127 |
+
|
| 128 |
+
To evaluate Long-Short Transformer as a bidirectional encoder for long text, we train our models on the three NLP tasks, ListOps, Text, and Retrieval, from the recently proposed Long Range Arena (LRA) benchmark [20], following the setting of Peng et al. [30] and Tay et al. [46]. For fair comparisons, we use the PyTorch implementation and the same data preprocessing/split, training hyperparameters and model size from [18], except for Retrieval where we accidentally used more warmup steps and improved the results for all models. See Appendix B for more details. The results on these three tasks are given in Table 1. Results of the other two image-based tasks of LRA, as well as models implemented in JAX, are given in Appendix C and C.2.
|
| 129 |
+
|
| 130 |
+
Table 1: Accuracy $( \% )$ and FLOPs (G) on Long Range Arena (LRA), with the model configs annotated (see Table 7 for more). All results are averages of 4 runs with different random seeds.
|
| 131 |
+
|
| 132 |
+
<table><tr><td>Task (mean ± std.) of sequence length</td><td colspan="2">ListOps (888±339)</td><td colspan="2">Text (1296 ± 893)</td><td colspan="2">Retrieval (3987 ± 560)</td><td>Average</td></tr><tr><td>Model</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td></tr><tr><td>Full Attention [1]</td><td>37.13</td><td>1.21</td><td>65.35</td><td>4.57</td><td>82.30</td><td>9.14</td><td>61.59</td></tr><tr><td>Reformer [31] (2)</td><td>36.44</td><td>0.27</td><td>64.88</td><td>0.58</td><td>78.64</td><td>1.15</td><td>59.99</td></tr><tr><td>Linformer [17] (k=256)</td><td>37.38</td><td>0.41</td><td>56.12</td><td>0.81</td><td>79.37</td><td>1.62</td><td>57.62</td></tr><tr><td>Performer [28] (r = 256)</td><td>32.78</td><td>0.41</td><td>65.21</td><td>0.82</td><td>81.70</td><td>1.63</td><td>59.90</td></tr><tr><td>Nystromformer[18](l =128)</td><td>37.34</td><td>0.61</td><td>65.75</td><td>1.02</td><td>81.29</td><td>2.03</td><td>61.46</td></tr><tr><td>Transformer-LS (w,r = 8,32)</td><td>37.50</td><td>0.20</td><td>66.01</td><td>0.40</td><td>81.79</td><td>0.80</td><td>61.77</td></tr><tr><td>Dynamic Projection (best)</td><td>37.79</td><td>0.15</td><td>66.28</td><td>0.69</td><td>81.86</td><td>2.17</td><td>61.98</td></tr><tr><td>Transformer-LS (best)</td><td>38.36</td><td>0.16</td><td>68.40</td><td>0.29</td><td>81.95</td><td>2.17</td><td>62.90</td></tr></table>
|
| 133 |
+
|
| 134 |
+
Table 2: Comparing the robustness of the models under test-time insertions and deletions. DP refers to long-range attention via Dynamic Projection, and Win. refers to sliding window attention.
|
| 135 |
+
|
| 136 |
+
<table><tr><td rowspan="2">Task Test Perturb</td><td colspan="3">Text</td><td colspan="3">Retrieval</td></tr><tr><td>None</td><td>Insertion</td><td>Deletion</td><td>None</td><td>Insertion</td><td>Deletion</td></tr><tr><td>Linformer</td><td>56.12</td><td>55.94</td><td>54.91</td><td>79.37</td><td>53.66</td><td>51.75</td></tr><tr><td>DP</td><td>66.28</td><td>63.16</td><td>58.95</td><td>81.86</td><td>70.01</td><td>64.98</td></tr><tr><td>Linformer+ Win.</td><td>59.63</td><td>56.69</td><td>56.29</td><td>79.68</td><td>52.83</td><td>52.13</td></tr><tr><td>DP + Win. (ours)</td><td>68.40</td><td>66.34</td><td>62.62</td><td>81.95</td><td>69.93</td><td>64.19</td></tr></table>
|
| 137 |
+
|
| 138 |
+
Table 3: Comparing the results of pretrained language models fine-tuned on IMDb.
|
| 139 |
+
|
| 140 |
+
<table><tr><td>Model</td><td>RoBERTa-base RoBERTa-large Longformer-base LS-base LS-large</td><td></td><td></td><td></td><td></td></tr><tr><td> Accuracy</td><td>95.3</td><td>96.5</td><td>95.7</td><td>96.0</td><td>96.8</td></tr></table>
|
| 141 |
+
|
| 142 |
+
In addition, we follow the pretraining procedure of Longformer [14] to pretrain our models based on RoBERTa-base and RoBERTa-large [47], and fine-tune it on the IMDb sentiment classification dataset. The results are given in Table 3.
|
| 143 |
+
|
| 144 |
+
Results. From Table 3, our base model outperforms Longformer-base, and our large model achieves improvements over RoBERTa-large, demonstrating the benefits of learning to model long sequences. Comparisons with models on LRA are given in Table 1. Transformer-LS (best) with the best configurations of $w , r$ for each task are given in Table 7 in Appendix B. We also report the results of using fixed hyperparameter $w = 8 , r = 3 2$ on all tasks. Overall, our Transformer-LS (best) is significantly better than other efficient Transformers, and the model with $w , r = 8 , 3 2$ performs favorably while using only about $50 \%$ to $70 \%$ computation compared to other efficient Transformers on all three tasks. The advantage of aggregating local and long-range attentions is the most significant on ListOps, which requires the model to understand the tree structures involving both long-term and short-term relations. On Retrieval, where document-level encoding capability is tested, we find our global attention more effective than window attention. The test accuracy of using only dynamic projection is about $10 \%$ higher than Linformer on Text (i.e., 66.28 vs. 56.12), which has the highest variance in sequence length (i.e. standard deviation 893). This demonstrates the improved flexibility of dynamic projection at learning representations for data with high variance in sequence length, compared to the learned but fixed projection of Linformer. Similarly, Linformer, Nyströmformer and our model outperform full attention on ListOps, indicating they may have better inductive bias, and efficient Transformers can have better efficacy beyond efficiency.
|
| 145 |
+
|
| 146 |
+
Robustness of Dynamic Projection. In Table 2, we compare the robustness of Linformer and the proposed Dynamic Projection (DP) against insertion and deletion on Text and Retrieval tasks of LRA. We train the models on the original, clean training sets and only perturb their test sets. For insertion, we insert 10 random punctuations at 10 random locations of each test sample. For deletion, we delete all punctuations from the test samples. Both transforms are label-preserving in most cases. By design, dynamic projection is more robust against location changes.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Forward-backprop Time per Iteration (Autoregressive LM)
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: Running time and memory consumption of Transformer-XL (full attention) and our TransformerLS on Char-LM. We increase the sequence length until we use up the 32GB of memory on a V100 GPU. Transformer-LS is the same smaller model in Table 4. We use dashed lines to represent the full attention Transformer and solid lines to represent our model. We use different colors to represent different batch sizes.
|
| 153 |
+
|
| 154 |
+
Table 4: BPC (↓) of smaller models on enwik8 and text8 (left), and larger models on enwik8 (right).
|
| 155 |
+
|
| 156 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">#Param</td><td colspan="3">text8</td></tr><tr><td>Dev Test</td><td>enwik8 Dev</td><td>Test</td></tr><tr><td>T12 [49] Transformer-XL [9]</td><td>44M</td><td>1 1.18</td><td>1</td><td>1.11</td></tr><tr><td>Reformer [31]</td><td>41M -</td><td>1 1 - 1</td><td>1 1</td><td>1.06 1.05</td></tr><tr><td>Adaptive [50]</td><td>38M</td><td>1.05 1.11</td><td>1.04</td><td>1.02</td></tr><tr><td>BP-Transformer [51] Longformer [20]</td><td>38M 41M</td><td>1 1.11 1.04 1.10</td><td>1 1.02</td><td>1.02 1.00</td></tr></table>
|
| 157 |
+
|
| 158 |
+
<table><tr><td colspan="3">Method #Param‘ TestBPC</td></tr><tr><td>Transformer-XL [9]</td><td>88M</td><td>1.03 0.99</td></tr><tr><td>Transformer-XL [9] Routing [32]</td><td>277M 223M</td><td>0.99</td></tr><tr><td>Longformer [14]</td><td>102M</td><td>0.99</td></tr><tr><td>Sparse [12]</td><td>95M</td><td>0.99</td></tr><tr><td>Adaptive [50]</td><td>209M</td><td>0.98</td></tr><tr><td>Compressive [10]</td><td>227M</td><td>0.97</td></tr><tr><td>Transformer-LS</td><td>110M</td><td>0.97</td></tr></table>
|
| 159 |
+
|
| 160 |
+
# 4.2 Autoregressive Language Modeling
|
| 161 |
+
|
| 162 |
+
We compare our method with other efficient transformers on the character-level language modeling where each input token is a character.
|
| 163 |
+
|
| 164 |
+
Setup. We train and evaluate our model on enwik8 and text8, each with 100M characters and are divided into 90M, 5M, 5M for train, dev, test, following [48]. Our smaller 12-layer and larger 30-layer models are Pre-LN Transformers with the same width and depth as Longformer [20], except that we add relative position encoding to the projected segments in each layer. We adopt the cache mechanism of Transformer-XL [9], setting the cache size to be the same as the input sequence length. We follow similar training schedule as Longformer, and train our model in 3 phases with increasing sequence lengths. The input sequence lengths are 2048, 4096 and 8192 respectively for the 3 phases. By comparison, Longformer trains their model in 5 phases on GPUs with 48GB memory (The maximal of ours is 32GB) where the sequence length is 23,040 in the last phase. The window size of Longformer increases with depth and its average window size is 4352 in phase 5, while our effective number of attended tokens is 1280 on average in the last phase. Each experiment takes around 8 days to finish on 8 V100 GPUs. Detailed hyperparameters are shown in Appendix D. For testing, same as Longformer, we split the dataset into overlapping sequences of length 32K at a step size of 512, and evaluate the BPCs for predicting the next 512 tokens given the previous 32K characters.
|
| 165 |
+
|
| 166 |
+
Results Table 4 shows comparisons on text8 and enwik8. Our method has achieved state-of-the-art results. On text8, we achieve a test BPC of 1.09 with the smaller model. On enwik8, our smaller model achieves a test BPC of 0.99, and outperforms the state-of-the-art models with comparable number of parameters. Our larger model obtains a test BPC of 0.97, on par with the Compressive Transformer with $2 \times$ parameters. Our results are consistently better than Longformer which is trained on longer sequences with 5 stages and 48 GPU memory. In Figure 3, we show our model is much more memory and computational efficient than full attention.
|
| 167 |
+
|
| 168 |
+
Table 5: Test accuracies on ImageNet, ImageNet Real [52], and ImageNet V2 [53] of models trained on ImageNet-1K. Grey-colored rows are our results. ${ \mathrm { C v T ^ { * } } }$ -LS denotes our long-short term attention based on the non-official CvT implementation. ViL models with LS suffixes are our long-short term attention based on the official ViL implementation with relative positional bias. We also provide the latency of models tested using batch size 32 on the same V100 GPU. Our improvements over ViL is mainly from a better implementation of the short-term attention.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Model</td><td>(M)</td><td>Size</td><td>#Param Image FLOPs ImageNet (G)</td><td>top-1 (%)</td><td>Real top-1 (%) top-1 (%)</td><td>V2</td><td>Latency (s)</td></tr><tr><td>ResNet-50</td><td>25</td><td>224²</td><td>4.1</td><td>76.2</td><td>82.5</td><td>63.3</td><td>=</td></tr><tr><td>ResNet-101</td><td>45</td><td>2242</td><td>7.9</td><td>77.4</td><td>83.7</td><td>65.7</td><td></td></tr><tr><td>ResNet-152</td><td>60</td><td>2242</td><td>11</td><td>78.3</td><td>84.1</td><td>67.0</td><td>=</td></tr><tr><td>DeiT-S [36]</td><td>22</td><td>224²</td><td>4.6</td><td>79.8</td><td>85.7</td><td>68.5</td><td></td></tr><tr><td>DeiT-B [36]</td><td>86</td><td>2242</td><td>17.6</td><td>81.8</td><td>86.7</td><td>70.9</td><td></td></tr><tr><td>PVT-Medium [5]</td><td>44</td><td>2242</td><td>6.7</td><td>81.2</td><td>1</td><td>1</td><td></td></tr><tr><td>PVT-Large [5]</td><td>61</td><td>2242</td><td>9.8</td><td>81.7</td><td></td><td></td><td></td></tr><tr><td>Swin-S [38]</td><td>50</td><td>2242</td><td>8.7</td><td>83.2</td><td></td><td></td><td></td></tr><tr><td>Swin-B[38]</td><td>88</td><td>2242</td><td>15.4</td><td>83.5</td><td></td><td></td><td>0.115</td></tr><tr><td>PVTv2-B4 [54]</td><td>62.6</td><td>2242</td><td>10.1</td><td>83.6</td><td></td><td></td><td></td></tr><tr><td>PVTv2-B5 [54]</td><td>82.0</td><td>2242</td><td>11.8</td><td>83.8</td><td></td><td></td><td></td></tr><tr><td>ViT-B/16 [4]</td><td>86</td><td>3842</td><td>55.5</td><td>77.9</td><td></td><td></td><td></td></tr><tr><td>ViT-L/16 [4]</td><td>307</td><td>3842</td><td>191.1</td><td>76.5</td><td></td><td></td><td></td></tr><tr><td>DeiT-B [36]</td><td>86</td><td>3842</td><td>55.5</td><td>83.1</td><td></td><td></td><td></td></tr><tr><td>Swin-B [38]</td><td>88</td><td>3842</td><td>47.1</td><td>84.5</td><td>1</td><td>1</td><td>0.378</td></tr><tr><td>CvT-13 [6]</td><td>20</td><td>2242</td><td>6.7</td><td>81.6</td><td>86.7</td><td>70.4</td><td>0.122</td></tr><tr><td>CvT-21 [6]</td><td>32</td><td>2242</td><td>10.1</td><td>82.5</td><td>87.2</td><td>71.3</td><td>0.165</td></tr><tr><td>CvT*-LS-13</td><td>20.3</td><td>2242</td><td>4.9</td><td>81.9</td><td>87.0</td><td>70.5</td><td>0.083</td></tr><tr><td>CvT*-LS-17</td><td>23.7</td><td>2242</td><td>9.8</td><td>82.5</td><td>87.2</td><td>71.6</td><td>-</td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>224²</td><td>7.9</td><td>82.7</td><td>87.5</td><td>71.9</td><td>0.122</td></tr><tr><td>CvT*-LS-21S</td><td>30.1</td><td>2242</td><td>11.3</td><td>82.9</td><td>87.4</td><td>71.7</td><td>-</td></tr><tr><td>CvT-13 [6]</td><td>20</td><td>3842</td><td>31.9</td><td>83.0</td><td>87.9</td><td>71.9</td><td>1</td></tr><tr><td>CvT-21 [6]</td><td>32</td><td>3842</td><td>45.0</td><td>83.3</td><td>87.7</td><td>71.9</td><td></td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>3842</td><td>23.9</td><td>83.2</td><td>88.0</td><td>72.5</td><td></td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>4482</td><td>34.2</td><td>83.6</td><td>88.2</td><td>72.9</td><td></td></tr><tr><td>ViL-Small [14]</td><td>24.6</td><td>2242</td><td>4.9</td><td>82.4</td><td>-</td><td>1</td><td></td></tr><tr><td>ViL-Medium [14]</td><td>39.7</td><td>2242</td><td>8.7</td><td>83.5</td><td></td><td></td><td>0.106</td></tr><tr><td>ViL-Base [14]</td><td>55.7</td><td>2242</td><td>13.4</td><td>83.7</td><td></td><td></td><td>0.164</td></tr><tr><td>ViL-LS-Medium</td><td>39.8</td><td>2242</td><td>8.7</td><td>83.8</td><td></td><td></td><td>0.075</td></tr><tr><td>ViL-LS-Base</td><td>55.8</td><td>224²</td><td>13.4</td><td>84.1</td><td></td><td></td><td>0.113</td></tr><tr><td> ViL-LS-Medium</td><td>39.9</td><td>3842</td><td>28.7</td><td>84.4</td><td></td><td></td><td>0.271</td></tr></table>
|
| 171 |
+
|
| 172 |
+
# 4.3 ImageNet Classification
|
| 173 |
+
|
| 174 |
+
We train and evaluate the models on ImageNet-1K with $1 . 3 \mathbf { M }$ images and 1K classes. We use CvT [6] and ViL [11], state-of-the art vision transformer architectures, as the backbones and replace their attention mechanisms with our long-short term attention, denoted as ${ \mathrm { C v T ^ { * } } }$ -LS and ViL-size-LS in Table 5. CvT uses overlapping convolutions to extract dense patch embeddings from the input images and feature maps, resulting in a long sequence length in the early stages (e.g., $5 6 \times 5 6 = 3 1 3 6$ patches for images with $2 2 4 ^ { 2 }$ pixels). For ViL, our sliding window uses the same group size $w$ , but each token attends to at most $2 w \times 2 w$ (rounding when necessary) tokens inside the window, instead of $3 w \times 3 w$ as ViL, which allows adding our dynamic projection without increasing the FLOPs. We set $r = 8$ for the dynamic projections for both ViL-LS-Medium and ViL-LS-Base. Note that, our efficient attention mechanism does not depend on the particular architecture, and it can be applied to other vision transformers [e.g., 4, 36, 5]. Please refer to Appendix E for more details.
|
| 175 |
+
|
| 176 |
+
Classification Results. The results are shown in the Table 5, where we also list test accuracies on ImageNet Real and ImageNet V2. Except for CvT, we compare with the original ViT [4] and the enhanced DeiT [36], PVT [5] that also uses multi-scale stragey, ViL [11] that uses window attention and global tokens to improve the efficiency. Training at high-resolution usually improves the test accuracy of vision transformer. With our long-short term attention, we can easily scale the training to higher resolution, and the performance of ${ \mathrm { C v T ^ { * } } }$ -LS and ViL-LS also improves. Our best model with CvT ${ \mathrm { C v T ^ { * } } }$ -LS-21 at $4 4 { \bar { 8 } } ^ { 2 }$ ) achieves $0 . 3 \%$ higher accuracy than the best reported result of CvT while using the same amount of parameters and $76 \%$ of its FLOPs. In CvT architecture, the spatial dimension of feature maps in earlier stages are large, representing more fine-grained details of the image. Similar to training with high-resolution images, the model should also benefit from denser feature maps. With our efficient long-short term attention, we can better utilize these fine-grained feature maps with less concerns about the computational budget. In this way, our ${ \mathrm { C v T ^ { * } } }$ -LS-17 achieves better result than CvT-21 at resolution 224 using fewer parameters and FLOPs, and our ${ \mathrm { C v T ^ { * } } }$ -LS-21S model further improves our ${ \mathrm { C v T ^ { * } } }$ -LS-21 model.
|
| 177 |
+
|
| 178 |
+
Table 6: Robustness evaluation on various ImageNet datasets. Top-1/Acc.: Top-1 accuracy. mCE: Mean Corrupution Error. Mixed-same/Mixed-rand: accuracies on MIXED-SAME/MIXED-RAND subsets.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Model</td><td colspan="5">[Params|ImageNet|IN-C [56]|IN-A [57]|IN-R [58]]</td><td colspan="2">ImageNet-9 [59]</td></tr><tr><td></td><td>(M)</td><td>Top-1</td><td>mCE(↓)</td><td>Acc.</td><td>Acc.</td><td>|Mixed-same Mixed-rand</td><td></td></tr><tr><td>ResNet-50 [35]]</td><td>25.6</td><td>76.2</td><td>78.9</td><td>6.2</td><td>35.3</td><td>87.1</td><td>81.6</td></tr><tr><td>DeiT-S [36]</td><td>22.1</td><td>79.8</td><td>57.1</td><td>19.0</td><td>41.9</td><td>89.1</td><td>84.2</td></tr><tr><td>CvT-13</td><td>20</td><td>81.6</td><td>59.6</td><td>25.4</td><td>42.9</td><td>90.5</td><td>85.7</td></tr><tr><td>CvT-21</td><td>32</td><td>82.5</td><td>56.2</td><td>31.1</td><td>42.6</td><td>90.5</td><td>85.0</td></tr><tr><td>CvT*-LS-13</td><td>20.3</td><td>81.9</td><td>58.7</td><td>27.0</td><td>42.6</td><td>90.7</td><td>85.6</td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>82.7</td><td>55.2</td><td>29.3</td><td>45.0</td><td>91.5</td><td>85.8</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Our ViL-LS-Medium and ViL-LS-Base with long-short term attention improve the accuracies of ViL-Medium and ViL-Base from 83.5 and 83.7 to 83.8 and 84.1 respectively, without an increase in FLOPs. When increasing the resolution for training ViL-LS-Medium from $\dot { 2 } 2 4 ^ { 2 }$ to $3 8 4 ^ { 2 }$ , the FLOPs increased (approximately) linearly and the accuracy improved by $0 . 6 \%$ , showing our method still benefits greatly from increased resolution while maintaining the linear complexity in practice.
|
| 183 |
+
|
| 184 |
+
Short-term Attention Suppresses Oversmoothing. By restricting tokens from different segments to attend to different windows, our short-term sparse local attention encourages diversity of the feature representations and helps to alleviate the over-smoothing problem [55] (where all queries extract similar information in deeper layers and the attention mechanism is less important), thus can fully utilize the depth of the network. As in [55], we provide the cosine similarity of patch embeddings of our ${ \mathrm { C v T ^ { * } } }$ -LS-13 and re-implemented CvT-13 (81.1 accuracy) in Figure 6 within Appendix. This is one of the reasons why our efficient attention mechanism can get even better results than the full attention CvT model in the same setting.
|
| 185 |
+
|
| 186 |
+
Robustness evaluation on Diverse ImageNet Datasets. As vision models have been widely used in safety-critical applications (e.g. autonomous driving), their robustness is vital. In addition to out-of-distribution robustness (ImageNet-Real and Imageet-v2), we further investigate the robustness of our vision transformer against common corruption (ImageNet-C), semantic shifts (ImageNet-R), Background dependence (ImageNet-9) and natural adversarial examples (ImageNet-A). We compare our methods with standard classification methods, including CNN-based model (ResNet [35]) and Transformer-based models (DeiT [36]) with similar numbers of parameters. As shown in Table 6, we observe that our method significantly outperforms the CNN-based method (ResNet-50). Compared to DeiT, our models also achieve favorable improvements. These results indicate that the design of different attention mechanisms plays an important role for model robustness, which sheds new light on the design of robust vision transformers. More details and results can be found in Appendix E.
|
| 187 |
+
|
| 188 |
+
# 5 Conclusion
|
| 189 |
+
|
| 190 |
+
In this paper, we introduced Long-Short Transformer, an efficient transformer for long sequence modeling for both language and vision domain, including both bidirectional and autoregressive models. We design a novel global attention mechanism with linear computational and memory complexity in sequence length based on a dynamic projection. We identify the scale mismatch issue and propose the DualLN technique to eliminate the mismatch at initialization and more effectively aggregate the local and global attentions. We demonstrate that our method obtains the state-of-the-art results on the Long Range Arena, char-level language modeling and ImageNet classification. We look forward to extending our methods to more domains, including document QA, object detection and semantic segmentation on high-resolution images.
|
| 191 |
+
|
| 192 |
+
References
|
| 193 |
+
[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, volume 30, 2017.
|
| 194 |
+
[2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. NAACL, 2019.
|
| 195 |
+
[3] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 196 |
+
[4] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021.
|
| 197 |
+
[5] 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. arXiv preprint arXiv:2102.12122, 2021.
|
| 198 |
+
[6] 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.
|
| 199 |
+
[7] Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. TACL, 7:453–466, 2019.
|
| 200 |
+
[8] Raghavendra Pappagari, Piotr Zelasko, Jesús Villalba, Yishay Carmiel, and Najim Dehak. Hierarchical transformers for long document classification. In 2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU), pages 838–844. IEEE, 2019.
|
| 201 |
+
[9] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In ACL, 2019.
|
| 202 |
+
[10] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive Transformers for long-range sequence modelling. In ICLR, 2020.
|
| 203 |
+
[11] Pengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao, Lu Yuan, Lei Zhang, and Jianfeng Gao. Multiscale vision longformer: A new vision transformer for high-resolution image encoding. arXiv preprint arXiv:2103.15358, 2021.
|
| 204 |
+
[12] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 205 |
+
[13] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In ICML, pages 4055–4064, 2018.
|
| 206 |
+
[14] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
|
| 207 |
+
[15] Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. Etc: Encoding long and structured inputs in transformers. In EMNLP, pages 268–284, 2020.
|
| 208 |
+
[16] Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big Bird: Transformers for longer sequences. In NeurIPS, 2020.
|
| 209 |
+
[17] Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020.
|
| 210 |
+
[18] Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh. Nyströmformer: A nyström-based algorithm for approximating self-attention. AAAI, 2021.
|
| 211 |
+
[19] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking self-attention in transformer models. In ICML, 2021.
|
| 212 |
+
[20] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long Range Arena: A benchmark for efficient transformers. In ICLR, 2021.
|
| 213 |
+
[21] Pengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao, Lu Yuan, Lei Zhang, and Jianfeng Gao. Multiscale vision longformer: A new vision transformer for high-resolution image encoding. arXiv preprint arXiv:2103.15358, 2021.
|
| 214 |
+
[22] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 215 |
+
[23] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019.
|
| 216 |
+
[24] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.
|
| 217 |
+
[25] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019.
|
| 218 |
+
[26] Jiezhong Qiu, Hao Ma, Omer Levy, Scott Wen-tau Yih, Sinong Wang, and Jie Tang. Blockwise selfattention for long document understanding. arXiv preprint arXiv:1911.02972, 2019.
|
| 219 |
+
[27] Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In ICML, 2019.
|
| 220 |
+
[28] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. ICLR, 2021.
|
| 221 |
+
[29] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In ICML, 2020.
|
| 222 |
+
[30] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. ICLR, 2021.
|
| 223 |
+
[31] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In ICLR, 2020.
|
| 224 |
+
[32] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. TACL, 9:53–68, 2021.
|
| 225 |
+
[33] Yi Tay, Dara Bahri, Liu Yang, Donald Metzler, and Da-Cheng Juan. Sparse sinkhorn attention. In ICML. PMLR, 2020.
|
| 226 |
+
[34] Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. Lite transformer with long-short range attention. arXiv preprint arXiv:2004.11886, 2020.
|
| 227 |
+
[35] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 228 |
+
[36] 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.
|
| 229 |
+
[37] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
|
| 230 |
+
[38] 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.
|
| 231 |
+
[39] 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.
|
| 232 |
+
[40] Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas, Niki Parmar, Blake Hechtman, and Jonathon Shlens. Scaling local self-attention for parameter efficient visual backbones. arXiv preprint arXiv:2103.12731, 2021.
|
| 233 |
+
[41] Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. Perceiver: General perception with iterative attention. arXiv preprint arXiv:2103.03206, 2021.
|
| 234 |
+
[42] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In ICML. PMLR, 2020.
|
| 235 |
+
[43] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. ICLR, 2021.
|
| 236 |
+
[44] Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In ICML. PMLR, 2020.
|
| 237 |
+
[45] fvcore: Flop counter for pytorch models. https://github.com/facebookresearch/fvcore/blob/ master/docs/flop_count.md, 2021.
|
| 238 |
+
[46] Yi Tay, Mostafa Dehghani, Vamsi Aribandi, Jai Gupta, Philip Pham, Zhen Qin, Dara Bahri, Da-Cheng Juan, and Donald Metzler. Omninet: Omnidirectional representations from transformers. ICML, 2021.
|
| 239 |
+
[47] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 240 |
+
[48] Matt Mahoney. Large text compression benchmark. URL http://mattmahoney.net/dc/textdata, 6, 2009.
|
| 241 |
+
[49] Rami Al-Rfou, Dokook Choe, Noah Constant, Mandy Guo, and Llion Jones. Character-level language modeling with deeper self-attention. In AAAI, volume 33, pages 3159–3166, 2019.
|
| 242 |
+
[50] Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, and Armand Joulin. Adaptive attention span in transformers. ACL, 2019.
|
| 243 |
+
[51] Zihao Ye, Qipeng Guo, Quan Gan, Xipeng Qiu, and Zheng Zhang. Bp-transformer: Modelling long-range context via binary partitioning. arXiv preprint arXiv:1911.04070, 2019.
|
| 244 |
+
[52] 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.
|
| 245 |
+
[53] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning, pages 5389–5400. PMLR, 2019.
|
| 246 |
+
[54] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pvtv2: Improved baselines with pyramid vision transformer. 2021.
|
| 247 |
+
[55] 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.
|
| 248 |
+
[56] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019.
|
| 249 |
+
[57] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019.
|
| 250 |
+
[58] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020.
|
| 251 |
+
[59] Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. ArXiv preprint arXiv:2006.09994, 2020.
|
| 252 |
+
[60] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In CVPR, 2015.
|
| 253 |
+
[61] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010.
|
| 254 |
+
[62] Nikita Nangia and Samuel Bowman. Listops: A diagnostic dataset for latent tree learning. In NAACL: Student Research Workshop, pages 92–99, 2018.
|
| 255 |
+
[63] Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\mathrm { ~ Y ~ N ~ g ~ }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In ACL, 2011.
|
| 256 |
+
[64] Dragomir R Radev, Pradeep Muthukrishnan, Vahed Qazvinian, and Amjad Abu-Jbara. The acl anthology network corpus. Language Resources and Evaluation, 47(4):919–944, 2013.
|
| 257 |
+
[65] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.
|
| 258 |
+
[66] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251–1258, 2017.
|
| 259 |
+
[67] Lei Huang, Xianglong Liu, Yang Liu, Bo Lang, and Dacheng Tao. Centered weight normalization in accelerating training of deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 2803–2811, 2017.
|
| 260 |
+
[68] Siyuan Qiao, Huiyu Wang, Chenxi Liu, Wei Shen, and Alan Yuille. Micro-batch training with batch-channel normalization and weight standardization. arXiv preprint arXiv:1903.10520, 2019.
|
parse/train/M_lkFOwVdYc/M_lkFOwVdYc_content_list.json
ADDED
|
@@ -0,0 +1,1049 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"type": "text",
|
| 16 |
+
"text": "Chen $Z \\mathrm { { h u } ^ { \\ddag 1 * } }$ , Wei Ping†2, Chaowei Xiao†2,3, Mohammad Shoeybi2, Tom Goldstein1, Anima Anandkumar2,4, and Bryan Catanzaro2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
220,
|
| 19 |
+
222,
|
| 20 |
+
777,
|
| 21 |
+
252
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1University of Maryland, College Park 2 NVIDIA 3Arizona State University 4California Institute of Technology ‡chenzhu@cs.umd.edu, †{wping, chaoweix}@nvidia.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
251,
|
| 30 |
+
263,
|
| 31 |
+
746,
|
| 32 |
+
306
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
347,
|
| 43 |
+
535,
|
| 44 |
+
363
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Transformers have achieved success in both language and vision domains. However, it is prohibitively expensive to scale them to long sequences such as long documents or high-resolution images, because self-attention mechanism has quadratic time and memory complexities with respect to the input sequence length. In this paper, we propose Long-Short Transformer (Transformer-LS), an efficient self-attention mechanism for modeling long sequences with linear complexity for both language and vision tasks. It aggregates a novel long-range attention with dynamic projection to model distant correlations and a short-term attention to capture fine-grained local correlations. We propose a dual normalization strategy to account for the scale mismatch between the two attention mechanisms. Transformer-LS can be applied to both autoregressive and bidirectional models without additional complexity. Our method outperforms the state-of-the-art models on multiple tasks in language and vision domains, including the Long Range Arena benchmark, autoregressive language modeling, and ImageNet classification. For instance, Transformer-LS achieves 0.97 test BPC on enwik8 using half the number of parameters than previous method, while being faster and is able to handle $3 \\times$ as long sequences compared to its full-attention version on the same hardware. On ImageNet, it can obtain the state-of-the-art results (e.g., a moderate size of $5 5 . 8 \\mathbf { M }$ model solely trained on $2 2 4 \\times 2 2 4$ ImageNet-1K can obtain Top-1 accuracy $8 4 . 1 \\%$ ), while being more scalable on high-resolution images. The source code and models are released at https://github.com/NVIDIA/transformer-ls. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
378,
|
| 54 |
+
766,
|
| 55 |
+
667
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
693,
|
| 66 |
+
310,
|
| 67 |
+
710
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Transformer-based models [1] have achieved great success in the domains of natural language processing (NLP) [2, 3] and computer vision [4–6]. These models benefit from the self-attention module, which can capture both adjacent and long-range correlations between tokens while efficiently scaling on modern hardware. However, the time and memory consumed by self-attention scale quadratically with the input length, making it very expensive to process long sequences. Many language and vision tasks benefit from modeling long sequences. In NLP, document-level tasks require processing long articles [e.g., 7, 8], and the performance of language models often increases with sequence length [e.g., 9, 10]. In computer vision, many tasks involve high-resolution images, which are converted to long sequences of image patches before being processed with Transformer models [4, 6, 11]. As a result, it is crucial to design an efficient attention mechanism for long sequence modeling that generalizes well across different domains. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
724,
|
| 77 |
+
825,
|
| 78 |
+
877
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Various methods have been proposed to reduce the quadratic cost of full attention. However, an efficient attention mechanism that generalizes well in both language and vision domains is less explored. One family of methods is to sparsify the attention matrix with predefined patterns such as sliding windows [e.g., 12–15] and random sparse patterns [16]. These methods leverage strong inductive biases to improve both computational and model performance, but they limit the capacity of a self-attention layer because each specific token can only attend to a subset of tokens. Another family of methods leverages low-rank projections to form a low resolution representation of the input sequence, but the successful application of these methods has been limited to certain NLP tasks [e.g., 17–19]. Unlike sparse attention, this family of methods allows each token to attend to the entire input sequence. However, due to the loss of high-fidelity token-wise information, their performance sometimes is not as good as full attention or sparse attention on tasks that require fine-grained local information, including standard benchmarks in language [20] and vision [21]. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
92,
|
| 88 |
+
825,
|
| 89 |
+
257
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Despite the rapid progress in efficient Transformers, some proposed architectures can only be applied to bidirectional models [e.g., 15, 16, 18]. Transformer-based autoregressive models have achieved great successes in language modeling [22], image synthesis [23], and text-to-image synthesis [24], which also involve long texts or high-resolution images. It is desirable to design an efficient transformer that can be applied to both autoregressive and bidirectional models. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
263,
|
| 99 |
+
825,
|
| 100 |
+
333
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this work, we unify a local window attention and a novel long-range attention into a single efficient attention mechanism. We show that these two kinds of attention have complementary effects that together yield the state-of-the-art results on a range of tasks in language and vision, for both autoregressive and bidirectional models. Specifically, we make the following contributions: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
339,
|
| 110 |
+
825,
|
| 111 |
+
395
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• We propose Long-Short Transformer (Transformer-LS), an efficient Transformer that integrates a dynamic projection based attention to model long-range correlations, and a local window attention to capture fine-grained correlations. Transformer-LS can be applied to both autoregressive and bidirectional models with linear time and memory complexity. \n• We compute a dynamic low-rank projection, which depends on the content of the input sequence. In contrast to previous low-rank projection methods, our dynamic projection method is more flexible and robust to semantic-preserving positional variations (e.g., insertion, paraphrasing). We demonstrate that it outperforms previous low-rank methods [17, 18] on Long Range Arena benchmark [20]. \n• We identify a scale mismatch problem between the embeddings from the long-range and shortterm attentions, and design a simple but effective dual normalization strategy, termed DualLN, to account for the mismatch and enhance the effectiveness of the aggregation. \n• We demonstrate that Long-Short Transformer, despite its low memory and runtime complexity, outperforms the state-of-the-art models on a set of tasks from Long Range Arena, and autoregressive language modeling on enwik8 and text8. In addition, the proposed efficient attention mechanism can be easily applied to the most recent vision transformer architectures [6, 11] and provides state-of-the-art results, while being more scalable to high-resolution images. We also investigate the robustness properties of the Transformer-LS on diverse ImageNet datasets. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
178,
|
| 120 |
+
406,
|
| 121 |
+
826,
|
| 122 |
+
678
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 Related Work ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
699,
|
| 133 |
+
321,
|
| 134 |
+
717
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "2.1 Efficient Transformers ",
|
| 141 |
+
"text_level": 1,
|
| 142 |
+
"bbox": [
|
| 143 |
+
174,
|
| 144 |
+
732,
|
| 145 |
+
370,
|
| 146 |
+
747
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "In recent years, many methods have been introduced for dealing with the quadratic cost of full attention. In general, they can be categorized as follows: i) Sparse attention mechanism with predefined patterns (e.g., sliding window), including Sparse Transformer [12], Image Transformer [13], Axial Transformer [25] for modeling images, and Longformer [14], blockwise self-attention [26], ETC [15], Big Bird [16] for modeling language. ii) Low-rank projection attention, including Linformer [17], Nyströmformer [18], Synthesizer [19]. For example, Linformer uses linear layers to project the original high resolution keys $( K )$ and values $( V )$ with length $n$ to low resolution with size $r$ $( r \\ll n )$ ) and allows all query tokens $( Q )$ to attend these compressed representations. iii) Memory-based mechanisms like Compressive Transformer [10] and Set Transformer [27], which use extra memories for caching global long-range information for use in computing attention between distant tokens. iv) Kernel-based approximation of the attention matrix, including Performer [28], Linear ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
758,
|
| 156 |
+
825,
|
| 157 |
+
911
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "image",
|
| 163 |
+
"img_path": "images/cac6035bb2eb7c5eb4e197f0f078ccb16d4a2c66c0c57d273bbe65a2ec761215.jpg",
|
| 164 |
+
"image_caption": [
|
| 165 |
+
"Figure 1: Long-short term attention of a single attention head. Here, the sequence length $n = 8$ , hidden dimension $d = 3$ , local window segment size $w = 2$ , and rank of dynamic projection $r = 3$ . Within the figure, $K ( V )$ denotes key $K$ or value $V$ . In the left figure, we virtually replicate $K$ or $V \\in \\mathbb { R } ^ { n \\times d }$ into $n$ rows, and highlight the keys and values within the attention span (denoted as $\\tilde { K } ( \\tilde { V } ) )$ of all $_ n$ queries $Q$ for the short-term attention. In the middle figure, all queries attend to the same projected keys $\\bar { K }$ and values $\\bar { V }$ within the long-term attention. In the right figure, $\\tilde { K } ( \\tilde { V } )$ and $\\bar { K } ( \\bar { V } )$ are first normalized with two sets of LayerNorms, and the queries attend to normalized $\\tilde { K } ( \\tilde { V } )$ and $\\bar { K } ( \\bar { V } )$ within their attention span simultaneously. "
|
| 166 |
+
],
|
| 167 |
+
"image_footnote": [],
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
92,
|
| 171 |
+
821,
|
| 172 |
+
183
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Transformer [29], and Random Feature Attention [30]. vi) Similarity and clustering based methods, including Reformer [31], Routing Transformer [32], and Sinkhorn Transformer [33]. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
310,
|
| 182 |
+
823,
|
| 183 |
+
339
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Our method seamlessly integrates both low-rank projection and local window attentions, to leverage their strengths for modeling long-range and short-term correlations. In particular, our long-range attention uses a dynamic low-rank projection to encode the input sequence, and outperforms the previous low-rank projection method used by the Linformer [17]. In the similar vein, a few other methods also try to combine the strengths of different methods. For example, Longformer [14] and ETC [15] augment local window attention with task motivated global tokens. Such global tokens may not be applicable for some tasks (e.g., autoregressive modelling). BigBird [16] further combines local window and global token attention with random sparse attention. It is not applicable in autoregressive tasks because the global token and random sparse pattern are introduced. To compress the model footprint on edge devices, Lite Transformer [34] combines convolution and self-attention, but it still has quadratic complexity for long sequences. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
345,
|
| 193 |
+
825,
|
| 194 |
+
497
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "2.2 Vision Transformers ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
515,
|
| 205 |
+
356,
|
| 206 |
+
530
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "Vision Transformer (ViT) [4] splits images as small patches and treats the patches as the input word tokens. It uses a standard transformer for image classification and has shown to outperform convolutional neural networks (e.g., ResNet [35]) with sufficient training data. DeiT [36] has applied the teacher-student strategy to alleviate the data efficiency problem of ViT and has shown strong comparable performance using only the standard ImageNet dataset [37]. Instead of applying transformer at a single low resolution of patches (e.g., $1 6 \\times 1 6$ patches), very recent works, including Pyramid Vision Transformer (PVT) [5], Swin-Transformer [38], T2T-ViT [39], Vision Longformer (ViL) [11] and Convolutional Vision Transformer (CvT) [6], stack a pyramid of ViTs to form a multi-scale architecture and model long sequences of image patches at much higher resolution (e.g., $5 6 \\times 5 6 = 3 1 3 6$ patches for images with $2 2 4 \\times 2 2 4$ pixels). Most of these methods have quadratic complexity of self-attention with respect to the input image size. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
540,
|
| 216 |
+
825,
|
| 217 |
+
693
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "To reduce the complexity, Swin-Transformer [38] achieves linear complexity by limiting the computation of self-attention only within each local window. HaloNet [40] applies local attention on blocked images and only has quadratic complexity with respect to the size of the block. Perceiver [41] uses cross-attention between data and latent arrays to replace the self-attention on data to remove the quadratic complexity bottleneck. Vision Longformer (ViL) [11], another concurrent work, achieves linear complexity by adapting Longformer [14] to Vision. ViL augments local window attention with task-specific global tokens, but the global tokens are not applicable for decoding task (e.g., image synthesis [23, 24]). In contrast, our method reduces the quadratic cost to linear cost by combining local window attention with global dynamic projection attention, which can be applied to both encoding and decoding tasks. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
698,
|
| 227 |
+
825,
|
| 228 |
+
837
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "3 Long-Short Transformer ",
|
| 235 |
+
"text_level": 1,
|
| 236 |
+
"bbox": [
|
| 237 |
+
176,
|
| 238 |
+
853,
|
| 239 |
+
413,
|
| 240 |
+
871
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "Transformer-LS approximates the full attention by aggregating long-range and short-term attentions, while maintaining its ability to capture correlations between all input tokens. In this section, we first introduce the preliminaries of multi-head attention in Transformer. Then, we present the short-term attention via sliding window, and long-range attention via dynamic projection, respectively. After that, we propose the aggregating method and dual normalization (DualLN) strategy. See Figure 1 for an illustration of our long-short term attention. ",
|
| 247 |
+
"bbox": [
|
| 248 |
+
174,
|
| 249 |
+
883,
|
| 250 |
+
821,
|
| 251 |
+
911
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "",
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
90,
|
| 261 |
+
825,
|
| 262 |
+
147
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 3
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "3.1 Preliminaries and Notations ",
|
| 269 |
+
"text_level": 1,
|
| 270 |
+
"bbox": [
|
| 271 |
+
176,
|
| 272 |
+
162,
|
| 273 |
+
408,
|
| 274 |
+
178
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 3
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Multi-head attention is a core component of the Transformer [1], which computes contextual representations for each token by attending to the whole input sequence at different representation subspaces. It is defined as ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
174,
|
| 283 |
+
189,
|
| 284 |
+
825,
|
| 285 |
+
228
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 3
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "equation",
|
| 291 |
+
"img_path": "images/b1425dd2845fe7c1790814f7554ac36ddd1ae3a72dc8320553e7b7f071cad928.jpg",
|
| 292 |
+
"text": "$$\n\\mathrm { M u l t i H e a d } ( Q , K , V ) = \\mathrm { C o n c a t } ( H _ { 1 } , H _ { 2 } , . . . , H _ { h } ) W ^ { O } ,\n$$",
|
| 293 |
+
"text_format": "latex",
|
| 294 |
+
"bbox": [
|
| 295 |
+
320,
|
| 296 |
+
227,
|
| 297 |
+
674,
|
| 298 |
+
246
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 3
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "where $Q , K , V \\in \\mathbb { R } ^ { n \\times d }$ are the query, key and value embeddings, $W ^ { O } \\in \\mathbb { R } ^ { d \\times d }$ is the projection matrix for output, the $i$ -th head $\\bar { H _ { i } } \\in \\bar { \\mathbb { R } } ^ { n \\times \\check { d } _ { k } }$ is the scaled dot-product attention, and $d _ { k } = d / h$ is the embedding dimension of each head, ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
174,
|
| 307 |
+
248,
|
| 308 |
+
826,
|
| 309 |
+
291
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "equation",
|
| 315 |
+
"img_path": "images/1c0d01198277cab35c64eec76d0808133f18f655781edfcd64984d196719b333.jpg",
|
| 316 |
+
"text": "$$\nH _ { i } = \\mathrm { A t t e n t i o n } ( Q W _ { i } ^ { Q } , K W _ { i } ^ { K } , V W _ { i } ^ { V } ) = \\mathrm { s o f t m a x } \\left[ \\frac { Q W _ { i } ^ { Q } \\left( K W _ { i } ^ { K } \\right) ^ { \\mathsf { T } } } { \\sqrt { d _ { k } } } \\right] V W _ { i } ^ { V } = A _ { i } V W _ { i } ^ { V } ,\n$$",
|
| 317 |
+
"text_format": "latex",
|
| 318 |
+
"bbox": [
|
| 319 |
+
184,
|
| 320 |
+
297,
|
| 321 |
+
790,
|
| 322 |
+
340
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "where $W _ { i } ^ { Q } , W _ { i } ^ { K } , W _ { i } ^ { V } \\in \\mathbb { R } ^ { d \\times d _ { k } }$ are learned projection matrices, and $A _ { i } \\in \\mathbb { R } ^ { n \\times n }$ denotes the full attention matrix for each attention head. The complexity of computing and storing $A _ { i }$ is $O ( n ^ { 2 } )$ , which can be prohibitive when $n$ is large. For simplicity, our discussion below is based on the case of 1D input sequences. It is straightforward to extend to the 2D image data given a predetermined order. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
347,
|
| 332 |
+
826,
|
| 333 |
+
405
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "3.2 Short-term Attention via Segment-wise Sliding Window ",
|
| 340 |
+
"text_level": 1,
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
417,
|
| 344 |
+
599,
|
| 345 |
+
433
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 3
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "We use the simple yet effective sliding window attention to capture fine-grained local correlations, where each query attends to nearby tokens within a fixed-size neighborhood. Similar techniques have also been adopted in [14, 16, 11]. Specifically, we divide the input sequence into disjoint segments with length $w$ for efficiency reason. All tokens within a segment attend to all tokens within its home segment, as well as $w / 2$ consecutive tokens on the left and right side of its home segment (zero-padding when necessary), resulting in an attention span over a total of $2 w$ key-value pairs. See Figure 5 in Appendix for an illustration. For each query $Q _ { t }$ at the position $t$ within the $i$ -th head, we denote the $2 w$ key-value pairs within its window as $\\bar { K } _ { t } , \\tilde { V } _ { t } \\in \\mathbb { R } ^ { \\bar { 2 w } \\times d }$ . For implementation with PyTorch, this segment-wise sliding window attention is faster than the per-token sliding window attention where each token attends to itself and $w$ tokens to its left and right, and its memory consumption scales linearly with sequence length; see [14] and our Figure 3 for more details. ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
173,
|
| 354 |
+
440,
|
| 355 |
+
825,
|
| 356 |
+
595
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "The sliding window attention can be augmented to capture long-range correlations in part, by introducing different dilations to different heads of sliding window attention [14]. However, the dilation configurations for different heads need further tuning and an efficient implementation of multi-head attention with different dilations is non-trivial. A more efficient alternative is to augment sliding window attention with random sparse attention [16], but this does not guarantee that the long-range correlations are captured in each layer as in full attention. In the following section, we propose our long-range attention to address this issue. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
174,
|
| 365 |
+
602,
|
| 366 |
+
825,
|
| 367 |
+
698
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "3.3 Long-range Attention via Dynamic Projections ",
|
| 374 |
+
"text_level": 1,
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
712,
|
| 378 |
+
539,
|
| 379 |
+
727
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "Previous works have shown that the self-attention matrix can be well approximated by the product of low-rank matrices [17]. By replacing the full attention with the product of low-rank matrices [42, 19, 18, 43, 28], each query is able to attend to all tokens. Linformer [17] is one of the most representative models in this category. It learns a fixed projection matrix to reduce the length of the keys and values, but the fixed projection is inflexible to semantic-preserving positional variations. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
734,
|
| 389 |
+
825,
|
| 390 |
+
804
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Starting from these observations, we parameterize the dynamic low-rank projection at $i$ -th head as $P _ { i } = f ( K ) \\in \\mathbb { R } ^ { n \\times r }$ , where $r \\ll n$ is the low rank size and $P _ { i }$ depends on all the keys $K \\in \\mathbb { R } ^ { n \\times d }$ of input sequence. It projects the $( n \\times d _ { k } )$ -dimensional key embeddings $K W _ { i } ^ { K }$ and value embeddings $V W _ { i } ^ { V }$ into shorter, $( r \\times d _ { k } )$ -dimensional key ${ \\bar { K } } _ { i }$ and value $\\bar { V } _ { i }$ embeddings. Unlike Linformer [17], the low-rank projection matrix is dynamic, which depends on the input sequence and is intended to be more flexible and robust to, e.g., insertion, deletion, paraphrasing, and other operations that change sequence length. See Table 2 for examples. Note that, the query embeddings $Q \\bar { W } _ { i } ^ { Q } \\in \\mathbb { R } ^ { n \\times d _ { k } }$ are kept at the same length, and we let each query attend to ${ \\bar { K } } _ { i }$ and $\\bar { V } _ { i }$ . In this way, the full $( n \\times n )$ attention matrix can be decomposed into the product of two matrices with $r$ columns or rows. Specifically, we define the dynamic projection matrix $P _ { i } \\in \\mathbb { R } ^ { n \\times r }$ and the key-value embeddings $\\bar { K } _ { i } , \\dot { \\bar { V } } _ { i } \\in \\mathbb { R } ^ { r \\times \\mathbf { \\dot { d } } _ { k } }$ of low-rank attention as ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
810,
|
| 400 |
+
825,
|
| 401 |
+
912
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "",
|
| 408 |
+
"bbox": [
|
| 409 |
+
173,
|
| 410 |
+
89,
|
| 411 |
+
825,
|
| 412 |
+
146
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 4
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "equation",
|
| 418 |
+
"img_path": "images/d9f00fe1ec37f70c829dc50e309433636959eb36274b3916379c63e366034540.jpg",
|
| 419 |
+
"text": "$$\nP _ { i } = \\mathrm { s o f t m a x } ( K W _ { i } ^ { P } ) , \\bar { K } _ { i } = P _ { i } ^ { \\intercal } K W _ { i } ^ { K } , \\bar { V } _ { i } = P _ { i } ^ { \\intercal } V W _ { i } ^ { V } ,\n$$",
|
| 420 |
+
"text_format": "latex",
|
| 421 |
+
"bbox": [
|
| 422 |
+
307,
|
| 423 |
+
147,
|
| 424 |
+
687,
|
| 425 |
+
166
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 4
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "where $W _ { i } ^ { P } \\in \\mathbb { R } ^ { d \\times r }$ are learnable parameters,2 and the softmax normalizes the projection weights on the first dimension over all $n$ tokens, which stabilizes training in our experiments. Note that $K = V$ in all the experiments we have considered, so $P _ { i }$ remains the same if it depends on $V$ . The computational complexity of Eq. 3 is $O ( r n )$ . ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
173,
|
| 434 |
+
169,
|
| 435 |
+
825,
|
| 436 |
+
227
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 4
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "To see how the full attention is replaced by the product of low-rank matrices, we compute each head $H _ { i } \\in \\mathbb { R } ^ { n \\times d _ { k } }$ of long-range attention as, ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
173,
|
| 445 |
+
231,
|
| 446 |
+
823,
|
| 447 |
+
261
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 4
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "equation",
|
| 453 |
+
"img_path": "images/604a476c66b5dbfd8aa4ebcbe2d5d477bc999c8fba390515cf768f90299ba393.jpg",
|
| 454 |
+
"text": "$$\n\\bar { H } _ { i } = \\underbrace { \\mathrm { s o f t m a x } \\left[ \\frac { Q W _ { i } ^ { Q } \\bar { K } _ { i } ^ { \\top } } { \\sqrt { d _ { k } } } \\right] } _ { \\bar { A } _ { i } } \\bar { V } _ { i } = \\bar { A } _ { i } \\big ( P _ { i } ^ { \\top } V W _ { i } ^ { V } \\big ) ,\n$$",
|
| 455 |
+
"text_format": "latex",
|
| 456 |
+
"bbox": [
|
| 457 |
+
334,
|
| 458 |
+
262,
|
| 459 |
+
661,
|
| 460 |
+
325
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "so the full attention is now replaced with the implicit product of two low-rank matrices $\\bar { A } _ { i } \\in \\mathbb { R } ^ { n \\times r }$ and $P _ { i } ^ { \\mathsf { T } } \\in \\mathbb { R } ^ { r \\times n }$ , and the computational complexity is reduced to $O ( r n )$ . Note the effective attention weights of a query on all tokens still sum to 1. Our global attention allows each query to attend to all token embeddings within the same self-attention layer. In contrast, the sparse attention mechanisms [14, 16] need stack multiple layers to build such correlations. ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
173,
|
| 469 |
+
328,
|
| 470 |
+
825,
|
| 471 |
+
398
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "Application to Autoregressive Models: In autoregressive models, each token can only attend to the previous tokens, so the long-range attention should have a different range for different tokens. A straightforward way to implement our global attention is to update $\\bar { K } _ { i } , \\bar { V } _ { i }$ for each query recurrently, but this requires re-computing the projection in Eq. (3) for every token due to the nonlinearity of softmax, which results in $O ( r n ^ { 2 } )$ computational complexity. To preserve the linear complexity, for autoregressive models, we first divide the input sequence into equal-length segments with length $l$ , and apply our dynamic projection to extract $\\bar { \\bar { K } } _ { i } , \\bar { \\bar { V } } _ { i }$ from each segment. Each token can only attend to $\\bar { K } _ { i } , \\bar { V _ { i } }$ of segments that do not contain its future tokens. Formally, let $Q _ { t }$ be the query at position $t$ , $K _ { ( l - 1 ) s : l s } , V _ { ( l - 1 ) s : l s }$ be the key-value pairs from the $s$ -th segment, and $s _ { t } = \\lfloor t / l \\rfloor$ . For autoregressive models, we compute the long-range attention of $Q _ { t }$ by attending to $K _ { i , t } , V _ { i , t }$ , defined as ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
173,
|
| 480 |
+
404,
|
| 481 |
+
826,
|
| 482 |
+
542
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "equation",
|
| 488 |
+
"img_path": "images/2b8af8a2115394307ff82943ba6e7fc875b3af1ef6ab96d766c21315e07cc9fc.jpg",
|
| 489 |
+
"text": "$$\n\\bar { K } _ { i , t } = [ P _ { i , 1 } ^ { \\top } K _ { 1 : l } ; . . . ; P _ { i , s _ { t } } ^ { \\top } K _ { ( l - 1 ) s _ { t } : l s _ { t } } ] W _ { i } ^ { K } , \\bar { V } _ { i , t } = [ P _ { i , 1 } ^ { \\top } V _ { 1 : l } ; . . . ; P _ { i , s _ { t } } ^ { \\top } V _ { ( l - 1 ) s _ { t } : l s _ { t } } ] W _ { i } ^ { V } .\n$$",
|
| 490 |
+
"text_format": "latex",
|
| 491 |
+
"bbox": [
|
| 492 |
+
215,
|
| 493 |
+
546,
|
| 494 |
+
779,
|
| 495 |
+
565
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "In this way, the dynamic low-rank projection is applied to each segment only once in parallel, preserving the linear complexity and the high training speed. By comparison, Random Feature Attention [30] is slow at training due to the requirement for recurrence. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
566,
|
| 505 |
+
830,
|
| 506 |
+
608
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "3.4 Aggregating Long-range and Short-term Attentions ",
|
| 513 |
+
"text_level": 1,
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
623,
|
| 517 |
+
573,
|
| 518 |
+
638
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "To aggregate the local and long-range attentions, instead of adopting different attention mechanisms for different heads [12, 14, 34], we let each query at $i$ -th head attend to the union of keys and values from the local window and global low-rank projections, thus it can learn to select important information from either of them. We find this aggregation strategy works better than separating the heads in our initial trials with the autoregressive language models. Specifically, for the $i$ -th head, we denote the global low-rank projected keys and values as $\\bar { K } _ { i } , \\bar { V } _ { i } \\in \\dot { \\mathbb { R } ^ { r \\times d _ { k } } }$ , and the local keys and values as $\\tilde { K } _ { t } , \\tilde { \\tilde { V } } _ { t } \\in \\mathbb { R } ^ { 2 w \\times d }$ within the local window of position $t$ for the query $Q _ { t }$ . Then the $i$ -th attention $H _ { i , t }$ at position $t$ is ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
648,
|
| 528 |
+
826,
|
| 529 |
+
762
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "equation",
|
| 535 |
+
"img_path": "images/3fd00b25c1aa2ca8bb9d094c5b8c300f3e6c6e50b3f082fc8e95103c63b22d78.jpg",
|
| 536 |
+
"text": "$$\nH _ { i , t } = \\mathrm { s o f t m a x } \\left[ \\frac { Q _ { t } W _ { i } ^ { Q } \\left[ \\tilde { K } _ { t } W _ { i } ^ { K } ; \\bar { K } _ { i } \\right] ^ { \\mathsf { T } } } { \\sqrt { d _ { k } } } \\right] [ \\tilde { V } _ { t } W _ { i } ^ { V } ; \\bar { V } _ { i } ] .\n$$",
|
| 537 |
+
"text_format": "latex",
|
| 538 |
+
"bbox": [
|
| 539 |
+
315,
|
| 540 |
+
765,
|
| 541 |
+
681,
|
| 542 |
+
816
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "where $\\left[ \\cdot ; \\cdot \\right]$ denotes concatenating the matrices along the first dimension. Furthermore, we find a scale mismatch between the initial norms of $\\tilde { K } _ { t } W _ { i } ^ { K }$ and ${ \\bar { K } } _ { i }$ , which biases the attention to the local window at initialization for both language and vision tasks. We introduce a normalization strategy (DualLN) to align the norms and improve the effectiveness of the aggregation in the following. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
819,
|
| 552 |
+
825,
|
| 553 |
+
877
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/f18b82a395374db947c61de1d4db34317ba404018776556822de750fb1f9ea62.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 2: Left: Ratios of the average $\\ell _ { 2 }$ norms of the local window to global low-rank key/value embeddings at initialization. Without DualLN, the sparse and low-rank embeddings have a magnitude mismatch. With DualLN, the ratios will be 1.0 at every layer, which will facilitate optimization. Right: The validation loss of Transformer-LS with and without DualLN on enwik8 and text8. "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
187,
|
| 566 |
+
92,
|
| 567 |
+
803,
|
| 568 |
+
247
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "DualLN: For Transformers with Layer Normalization (LN) (see [44] for an illustration), the $K _ { i } , V _ { i }$ embeddings are the outputs of LN layers, so they have zero mean and unit variance at initialization. The $\\ell _ { 2 }$ norm of vectors with zero-mean entries is proportional to their variance in expectation. We note a weighted average will reduce the variance and therefore the norm of such zero-mean vectors. As a result, the embedding vectors from low-rank attention in the weighted average $\\bar { K } _ { i } , \\bar { V } _ { i }$ of Eq. (3) will have smaller norms than the regular key and value embeddings from sliding window attention (see Figure 2 Left for an illustration). This scale mismatch causes two side effects. First, the inner product $Q _ { t } W _ { i } ^ { Q } { \\bar { K } } _ { i } ^ { \\mathsf { T } }$ from local-rank component tends to have smaller magnitude than the local window one, thus the attention scores on long-range attention is systematically smaller. Second, the key-value pairs $\\bar { K } _ { i } , \\bar { V } _ { i }$ for the low-rank attention will naturally have less impact on the direction of $H _ { i }$ even when low-rank and local window are assigned with same attention scores, since $\\bar { V } _ { i }$ has smaller norms. Both effects lead to small gradients on the low-rank components and hinders the model from learning to effectively use the long-range correlations. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
337,
|
| 578 |
+
826,
|
| 579 |
+
520
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 5
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "To avoid such issues, we add two sets of Layer Normalizations after the key and value projections for the local window and global low-rank attentions, so that their scales are aligned at initialization, but the network can still learn to re-weight the norms after training. Specifically, the aggregated attention is now computed as ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
176,
|
| 588 |
+
526,
|
| 589 |
+
823,
|
| 590 |
+
582
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 5
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "equation",
|
| 596 |
+
"img_path": "images/0db0be27695b5792b00fe9b20c94c93debe7d987c4c98883952cbab7d5c15739.jpg",
|
| 597 |
+
"text": "$$\n{ \\cal H } _ { i , t } = \\mathrm { s o f t m a x } \\left[ \\frac { { Q _ { t } W _ { i } ^ { Q } \\left[ { \\cal L N } _ { L } ( { { \\tilde { K } } _ { t } } W _ { i } ^ { K } ) ; { \\cal L N } _ { G } ( { { \\bar { K } } _ { i } } ) \\right] ^ { \\top } } } { \\sqrt { d _ { k } } } \\right] [ { \\cal L N } _ { L } ( { { \\tilde { V } } _ { t } } W _ { i } ^ { V } ) ; { \\cal L N } _ { G } ( { { \\bar { V } } _ { i } } ) ] ,\n$$",
|
| 598 |
+
"text_format": "latex",
|
| 599 |
+
"bbox": [
|
| 600 |
+
225,
|
| 601 |
+
587,
|
| 602 |
+
771,
|
| 603 |
+
640
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "where $\\mathrm { L N } _ { L } ( \\cdot ) , \\mathrm { L N } _ { G } ( \\cdot )$ denote the Layer Normalizations for the local and global attentions respectively. In practice, to maintain the consistency between the local attention and dynamic projection, we use $\\mathsf { L } \\bar { \\mathsf { N } } _ { L } ( K ) , \\mathsf { L } \\mathsf { N } _ { L } ( V )$ instead of $K , V$ to compute $\\bar { K } _ { i } , \\bar { V } _ { i }$ in Eq. 3. As illustrated in Figure 2 Right, the Transformer-LS models trained with DualLN has consistently lower validation loss than the models without DualLN. ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
174,
|
| 612 |
+
643,
|
| 613 |
+
826,
|
| 614 |
+
713
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "4 Experiments ",
|
| 621 |
+
"text_level": 1,
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
729,
|
| 625 |
+
313,
|
| 626 |
+
747
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "In this section, we demonstrate the effectiveness and efficiency of our method in both language and vision domains. We use PyTorch for implementation and count the FLOPs using fvcore [45]. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
758,
|
| 636 |
+
823,
|
| 637 |
+
787
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "4.1 Bidirectional Modeling on Long Range Arena and IMDb ",
|
| 644 |
+
"text_level": 1,
|
| 645 |
+
"bbox": [
|
| 646 |
+
173,
|
| 647 |
+
801,
|
| 648 |
+
607,
|
| 649 |
+
818
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "To evaluate Long-Short Transformer as a bidirectional encoder for long text, we train our models on the three NLP tasks, ListOps, Text, and Retrieval, from the recently proposed Long Range Arena (LRA) benchmark [20], following the setting of Peng et al. [30] and Tay et al. [46]. For fair comparisons, we use the PyTorch implementation and the same data preprocessing/split, training hyperparameters and model size from [18], except for Retrieval where we accidentally used more warmup steps and improved the results for all models. See Appendix B for more details. The results on these three tasks are given in Table 1. Results of the other two image-based tasks of LRA, as well as models implemented in JAX, are given in Appendix C and C.2. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
174,
|
| 658 |
+
827,
|
| 659 |
+
825,
|
| 660 |
+
911
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "table",
|
| 666 |
+
"img_path": "images/b417a2969e49d11a75554c450369708b7d3d2906a8e6d9d77b30007dcbb8e710.jpg",
|
| 667 |
+
"table_caption": [
|
| 668 |
+
"Table 1: Accuracy $( \\% )$ and FLOPs (G) on Long Range Arena (LRA), with the model configs annotated (see Table 7 for more). All results are averages of 4 runs with different random seeds. "
|
| 669 |
+
],
|
| 670 |
+
"table_footnote": [],
|
| 671 |
+
"table_body": "<table><tr><td>Task (mean ± std.) of sequence length</td><td colspan=\"2\">ListOps (888±339)</td><td colspan=\"2\">Text (1296 ± 893)</td><td colspan=\"2\">Retrieval (3987 ± 560)</td><td>Average</td></tr><tr><td>Model</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td><td>FLOPs</td><td>Acc.</td></tr><tr><td>Full Attention [1]</td><td>37.13</td><td>1.21</td><td>65.35</td><td>4.57</td><td>82.30</td><td>9.14</td><td>61.59</td></tr><tr><td>Reformer [31] (2)</td><td>36.44</td><td>0.27</td><td>64.88</td><td>0.58</td><td>78.64</td><td>1.15</td><td>59.99</td></tr><tr><td>Linformer [17] (k=256)</td><td>37.38</td><td>0.41</td><td>56.12</td><td>0.81</td><td>79.37</td><td>1.62</td><td>57.62</td></tr><tr><td>Performer [28] (r = 256)</td><td>32.78</td><td>0.41</td><td>65.21</td><td>0.82</td><td>81.70</td><td>1.63</td><td>59.90</td></tr><tr><td>Nystromformer[18](l =128)</td><td>37.34</td><td>0.61</td><td>65.75</td><td>1.02</td><td>81.29</td><td>2.03</td><td>61.46</td></tr><tr><td>Transformer-LS (w,r = 8,32)</td><td>37.50</td><td>0.20</td><td>66.01</td><td>0.40</td><td>81.79</td><td>0.80</td><td>61.77</td></tr><tr><td>Dynamic Projection (best)</td><td>37.79</td><td>0.15</td><td>66.28</td><td>0.69</td><td>81.86</td><td>2.17</td><td>61.98</td></tr><tr><td>Transformer-LS (best)</td><td>38.36</td><td>0.16</td><td>68.40</td><td>0.29</td><td>81.95</td><td>2.17</td><td>62.90</td></tr></table>",
|
| 672 |
+
"bbox": [
|
| 673 |
+
176,
|
| 674 |
+
117,
|
| 675 |
+
823,
|
| 676 |
+
290
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "table",
|
| 682 |
+
"img_path": "images/e99bd67e90931e5d378b80f30a935c45019599e74660e944239ddf019f101eef.jpg",
|
| 683 |
+
"table_caption": [
|
| 684 |
+
"Table 2: Comparing the robustness of the models under test-time insertions and deletions. DP refers to long-range attention via Dynamic Projection, and Win. refers to sliding window attention. "
|
| 685 |
+
],
|
| 686 |
+
"table_footnote": [],
|
| 687 |
+
"table_body": "<table><tr><td rowspan=\"2\">Task Test Perturb</td><td colspan=\"3\">Text</td><td colspan=\"3\">Retrieval</td></tr><tr><td>None</td><td>Insertion</td><td>Deletion</td><td>None</td><td>Insertion</td><td>Deletion</td></tr><tr><td>Linformer</td><td>56.12</td><td>55.94</td><td>54.91</td><td>79.37</td><td>53.66</td><td>51.75</td></tr><tr><td>DP</td><td>66.28</td><td>63.16</td><td>58.95</td><td>81.86</td><td>70.01</td><td>64.98</td></tr><tr><td>Linformer+ Win.</td><td>59.63</td><td>56.69</td><td>56.29</td><td>79.68</td><td>52.83</td><td>52.13</td></tr><tr><td>DP + Win. (ours)</td><td>68.40</td><td>66.34</td><td>62.62</td><td>81.95</td><td>69.93</td><td>64.19</td></tr></table>",
|
| 688 |
+
"bbox": [
|
| 689 |
+
240,
|
| 690 |
+
338,
|
| 691 |
+
756,
|
| 692 |
+
430
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "table",
|
| 698 |
+
"img_path": "images/6ec81474b10f51f4b1cbf754c0abed789ebd23a137dfbcd6ded44ef1125b311e.jpg",
|
| 699 |
+
"table_caption": [
|
| 700 |
+
"Table 3: Comparing the results of pretrained language models fine-tuned on IMDb. "
|
| 701 |
+
],
|
| 702 |
+
"table_footnote": [],
|
| 703 |
+
"table_body": "<table><tr><td>Model</td><td>RoBERTa-base RoBERTa-large Longformer-base LS-base LS-large</td><td></td><td></td><td></td><td></td></tr><tr><td> Accuracy</td><td>95.3</td><td>96.5</td><td>95.7</td><td>96.0</td><td>96.8</td></tr></table>",
|
| 704 |
+
"bbox": [
|
| 705 |
+
256,
|
| 706 |
+
464,
|
| 707 |
+
740,
|
| 708 |
+
506
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 6
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "",
|
| 715 |
+
"bbox": [
|
| 716 |
+
176,
|
| 717 |
+
531,
|
| 718 |
+
823,
|
| 719 |
+
560
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "In addition, we follow the pretraining procedure of Longformer [14] to pretrain our models based on RoBERTa-base and RoBERTa-large [47], and fine-tune it on the IMDb sentiment classification dataset. The results are given in Table 3. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
176,
|
| 728 |
+
566,
|
| 729 |
+
823,
|
| 730 |
+
608
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "Results. From Table 3, our base model outperforms Longformer-base, and our large model achieves improvements over RoBERTa-large, demonstrating the benefits of learning to model long sequences. Comparisons with models on LRA are given in Table 1. Transformer-LS (best) with the best configurations of $w , r$ for each task are given in Table 7 in Appendix B. We also report the results of using fixed hyperparameter $w = 8 , r = 3 2$ on all tasks. Overall, our Transformer-LS (best) is significantly better than other efficient Transformers, and the model with $w , r = 8 , 3 2$ performs favorably while using only about $50 \\%$ to $70 \\%$ computation compared to other efficient Transformers on all three tasks. The advantage of aggregating local and long-range attentions is the most significant on ListOps, which requires the model to understand the tree structures involving both long-term and short-term relations. On Retrieval, where document-level encoding capability is tested, we find our global attention more effective than window attention. The test accuracy of using only dynamic projection is about $10 \\%$ higher than Linformer on Text (i.e., 66.28 vs. 56.12), which has the highest variance in sequence length (i.e. standard deviation 893). This demonstrates the improved flexibility of dynamic projection at learning representations for data with high variance in sequence length, compared to the learned but fixed projection of Linformer. Similarly, Linformer, Nyströmformer and our model outperform full attention on ListOps, indicating they may have better inductive bias, and efficient Transformers can have better efficacy beyond efficiency. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
614,
|
| 740 |
+
825,
|
| 741 |
+
849
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Robustness of Dynamic Projection. In Table 2, we compare the robustness of Linformer and the proposed Dynamic Projection (DP) against insertion and deletion on Text and Retrieval tasks of LRA. We train the models on the original, clean training sets and only perturb their test sets. For insertion, we insert 10 random punctuations at 10 random locations of each test sample. For deletion, we delete all punctuations from the test samples. Both transforms are label-preserving in most cases. By design, dynamic projection is more robust against location changes. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
856,
|
| 751 |
+
825,
|
| 752 |
+
911
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 6
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "image",
|
| 758 |
+
"img_path": "images/4e35688918560b95df1faea3ced37447c973045ec764520f5c395363eee27938.jpg",
|
| 759 |
+
"image_caption": [
|
| 760 |
+
"Forward-backprop Time per Iteration (Autoregressive LM) "
|
| 761 |
+
],
|
| 762 |
+
"image_footnote": [],
|
| 763 |
+
"bbox": [
|
| 764 |
+
504,
|
| 765 |
+
99,
|
| 766 |
+
787,
|
| 767 |
+
217
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 7
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "image",
|
| 773 |
+
"img_path": "images/a333c6dfca964b5bcfe654e6654b8084e932baa4210e0e064ae9391c72990b47.jpg",
|
| 774 |
+
"image_caption": [
|
| 775 |
+
"Figure 3: Running time and memory consumption of Transformer-XL (full attention) and our TransformerLS on Char-LM. We increase the sequence length until we use up the 32GB of memory on a V100 GPU. Transformer-LS is the same smaller model in Table 4. We use dashed lines to represent the full attention Transformer and solid lines to represent our model. We use different colors to represent different batch sizes. "
|
| 776 |
+
],
|
| 777 |
+
"image_footnote": [],
|
| 778 |
+
"bbox": [
|
| 779 |
+
205,
|
| 780 |
+
98,
|
| 781 |
+
491,
|
| 782 |
+
217
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "table",
|
| 788 |
+
"img_path": "images/b15e3ab0433b33666b9b2af449b3cb7fa70cd6eb102901b2693ff58050f15211.jpg",
|
| 789 |
+
"table_caption": [
|
| 790 |
+
"Table 4: BPC (↓) of smaller models on enwik8 and text8 (left), and larger models on enwik8 (right). "
|
| 791 |
+
],
|
| 792 |
+
"table_footnote": [],
|
| 793 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">#Param</td><td colspan=\"3\">text8</td></tr><tr><td>Dev Test</td><td>enwik8 Dev</td><td>Test</td></tr><tr><td>T12 [49] Transformer-XL [9]</td><td>44M</td><td>1 1.18</td><td>1</td><td>1.11</td></tr><tr><td>Reformer [31]</td><td>41M -</td><td>1 1 - 1</td><td>1 1</td><td>1.06 1.05</td></tr><tr><td>Adaptive [50]</td><td>38M</td><td>1.05 1.11</td><td>1.04</td><td>1.02</td></tr><tr><td>BP-Transformer [51] Longformer [20]</td><td>38M 41M</td><td>1 1.11 1.04 1.10</td><td>1 1.02</td><td>1.02 1.00</td></tr></table>",
|
| 794 |
+
"bbox": [
|
| 795 |
+
196,
|
| 796 |
+
332,
|
| 797 |
+
519,
|
| 798 |
+
468
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 7
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "table",
|
| 804 |
+
"img_path": "images/a82c29f64795331a53468152cf14d4c8d87aca0d05b0b0e431c67ba64026a2f7.jpg",
|
| 805 |
+
"table_caption": [],
|
| 806 |
+
"table_footnote": [],
|
| 807 |
+
"table_body": "<table><tr><td colspan=\"3\">Method #Param‘ TestBPC</td></tr><tr><td>Transformer-XL [9]</td><td>88M</td><td>1.03 0.99</td></tr><tr><td>Transformer-XL [9] Routing [32]</td><td>277M 223M</td><td>0.99</td></tr><tr><td>Longformer [14]</td><td>102M</td><td>0.99</td></tr><tr><td>Sparse [12]</td><td>95M</td><td>0.99</td></tr><tr><td>Adaptive [50]</td><td>209M</td><td>0.98</td></tr><tr><td>Compressive [10]</td><td>227M</td><td>0.97</td></tr><tr><td>Transformer-LS</td><td>110M</td><td>0.97</td></tr></table>",
|
| 808 |
+
"bbox": [
|
| 809 |
+
562,
|
| 810 |
+
332,
|
| 811 |
+
812,
|
| 812 |
+
469
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 7
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
503,
|
| 822 |
+
825,
|
| 823 |
+
532
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 7
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "4.2 Autoregressive Language Modeling ",
|
| 830 |
+
"text_level": 1,
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
558,
|
| 834 |
+
459,
|
| 835 |
+
573
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 7
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "We compare our method with other efficient transformers on the character-level language modeling where each input token is a character. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
583,
|
| 845 |
+
823,
|
| 846 |
+
611
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Setup. We train and evaluate our model on enwik8 and text8, each with 100M characters and are divided into 90M, 5M, 5M for train, dev, test, following [48]. Our smaller 12-layer and larger 30-layer models are Pre-LN Transformers with the same width and depth as Longformer [20], except that we add relative position encoding to the projected segments in each layer. We adopt the cache mechanism of Transformer-XL [9], setting the cache size to be the same as the input sequence length. We follow similar training schedule as Longformer, and train our model in 3 phases with increasing sequence lengths. The input sequence lengths are 2048, 4096 and 8192 respectively for the 3 phases. By comparison, Longformer trains their model in 5 phases on GPUs with 48GB memory (The maximal of ours is 32GB) where the sequence length is 23,040 in the last phase. The window size of Longformer increases with depth and its average window size is 4352 in phase 5, while our effective number of attended tokens is 1280 on average in the last phase. Each experiment takes around 8 days to finish on 8 V100 GPUs. Detailed hyperparameters are shown in Appendix D. For testing, same as Longformer, we split the dataset into overlapping sequences of length 32K at a step size of 512, and evaluate the BPCs for predicting the next 512 tokens given the previous 32K characters. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
618,
|
| 856 |
+
825,
|
| 857 |
+
811
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Results Table 4 shows comparisons on text8 and enwik8. Our method has achieved state-of-the-art results. On text8, we achieve a test BPC of 1.09 with the smaller model. On enwik8, our smaller model achieves a test BPC of 0.99, and outperforms the state-of-the-art models with comparable number of parameters. Our larger model obtains a test BPC of 0.97, on par with the Compressive Transformer with $2 \\times$ parameters. Our results are consistently better than Longformer which is trained on longer sequences with 5 stages and 48 GPU memory. In Figure 3, we show our model is much more memory and computational efficient than full attention. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
818,
|
| 867 |
+
823,
|
| 868 |
+
915
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "table",
|
| 874 |
+
"img_path": "images/c0369ed9249dfb7b22f5e42da70b51fa1c09e3e52d28a99d1162db0f458831d9.jpg",
|
| 875 |
+
"table_caption": [
|
| 876 |
+
"Table 5: Test accuracies on ImageNet, ImageNet Real [52], and ImageNet V2 [53] of models trained on ImageNet-1K. Grey-colored rows are our results. ${ \\mathrm { C v T ^ { * } } }$ -LS denotes our long-short term attention based on the non-official CvT implementation. ViL models with LS suffixes are our long-short term attention based on the official ViL implementation with relative positional bias. We also provide the latency of models tested using batch size 32 on the same V100 GPU. Our improvements over ViL is mainly from a better implementation of the short-term attention. "
|
| 877 |
+
],
|
| 878 |
+
"table_footnote": [],
|
| 879 |
+
"table_body": "<table><tr><td>Model</td><td>(M)</td><td>Size</td><td>#Param Image FLOPs ImageNet (G)</td><td>top-1 (%)</td><td>Real top-1 (%) top-1 (%)</td><td>V2</td><td>Latency (s)</td></tr><tr><td>ResNet-50</td><td>25</td><td>224²</td><td>4.1</td><td>76.2</td><td>82.5</td><td>63.3</td><td>=</td></tr><tr><td>ResNet-101</td><td>45</td><td>2242</td><td>7.9</td><td>77.4</td><td>83.7</td><td>65.7</td><td></td></tr><tr><td>ResNet-152</td><td>60</td><td>2242</td><td>11</td><td>78.3</td><td>84.1</td><td>67.0</td><td>=</td></tr><tr><td>DeiT-S [36]</td><td>22</td><td>224²</td><td>4.6</td><td>79.8</td><td>85.7</td><td>68.5</td><td></td></tr><tr><td>DeiT-B [36]</td><td>86</td><td>2242</td><td>17.6</td><td>81.8</td><td>86.7</td><td>70.9</td><td></td></tr><tr><td>PVT-Medium [5]</td><td>44</td><td>2242</td><td>6.7</td><td>81.2</td><td>1</td><td>1</td><td></td></tr><tr><td>PVT-Large [5]</td><td>61</td><td>2242</td><td>9.8</td><td>81.7</td><td></td><td></td><td></td></tr><tr><td>Swin-S [38]</td><td>50</td><td>2242</td><td>8.7</td><td>83.2</td><td></td><td></td><td></td></tr><tr><td>Swin-B[38]</td><td>88</td><td>2242</td><td>15.4</td><td>83.5</td><td></td><td></td><td>0.115</td></tr><tr><td>PVTv2-B4 [54]</td><td>62.6</td><td>2242</td><td>10.1</td><td>83.6</td><td></td><td></td><td></td></tr><tr><td>PVTv2-B5 [54]</td><td>82.0</td><td>2242</td><td>11.8</td><td>83.8</td><td></td><td></td><td></td></tr><tr><td>ViT-B/16 [4]</td><td>86</td><td>3842</td><td>55.5</td><td>77.9</td><td></td><td></td><td></td></tr><tr><td>ViT-L/16 [4]</td><td>307</td><td>3842</td><td>191.1</td><td>76.5</td><td></td><td></td><td></td></tr><tr><td>DeiT-B [36]</td><td>86</td><td>3842</td><td>55.5</td><td>83.1</td><td></td><td></td><td></td></tr><tr><td>Swin-B [38]</td><td>88</td><td>3842</td><td>47.1</td><td>84.5</td><td>1</td><td>1</td><td>0.378</td></tr><tr><td>CvT-13 [6]</td><td>20</td><td>2242</td><td>6.7</td><td>81.6</td><td>86.7</td><td>70.4</td><td>0.122</td></tr><tr><td>CvT-21 [6]</td><td>32</td><td>2242</td><td>10.1</td><td>82.5</td><td>87.2</td><td>71.3</td><td>0.165</td></tr><tr><td>CvT*-LS-13</td><td>20.3</td><td>2242</td><td>4.9</td><td>81.9</td><td>87.0</td><td>70.5</td><td>0.083</td></tr><tr><td>CvT*-LS-17</td><td>23.7</td><td>2242</td><td>9.8</td><td>82.5</td><td>87.2</td><td>71.6</td><td>-</td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>224²</td><td>7.9</td><td>82.7</td><td>87.5</td><td>71.9</td><td>0.122</td></tr><tr><td>CvT*-LS-21S</td><td>30.1</td><td>2242</td><td>11.3</td><td>82.9</td><td>87.4</td><td>71.7</td><td>-</td></tr><tr><td>CvT-13 [6]</td><td>20</td><td>3842</td><td>31.9</td><td>83.0</td><td>87.9</td><td>71.9</td><td>1</td></tr><tr><td>CvT-21 [6]</td><td>32</td><td>3842</td><td>45.0</td><td>83.3</td><td>87.7</td><td>71.9</td><td></td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>3842</td><td>23.9</td><td>83.2</td><td>88.0</td><td>72.5</td><td></td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>4482</td><td>34.2</td><td>83.6</td><td>88.2</td><td>72.9</td><td></td></tr><tr><td>ViL-Small [14]</td><td>24.6</td><td>2242</td><td>4.9</td><td>82.4</td><td>-</td><td>1</td><td></td></tr><tr><td>ViL-Medium [14]</td><td>39.7</td><td>2242</td><td>8.7</td><td>83.5</td><td></td><td></td><td>0.106</td></tr><tr><td>ViL-Base [14]</td><td>55.7</td><td>2242</td><td>13.4</td><td>83.7</td><td></td><td></td><td>0.164</td></tr><tr><td>ViL-LS-Medium</td><td>39.8</td><td>2242</td><td>8.7</td><td>83.8</td><td></td><td></td><td>0.075</td></tr><tr><td>ViL-LS-Base</td><td>55.8</td><td>224²</td><td>13.4</td><td>84.1</td><td></td><td></td><td>0.113</td></tr><tr><td> ViL-LS-Medium</td><td>39.9</td><td>3842</td><td>28.7</td><td>84.4</td><td></td><td></td><td>0.271</td></tr></table>",
|
| 880 |
+
"bbox": [
|
| 881 |
+
240,
|
| 882 |
+
166,
|
| 883 |
+
754,
|
| 884 |
+
657
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 8
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "4.3 ImageNet Classification ",
|
| 891 |
+
"text_level": 1,
|
| 892 |
+
"bbox": [
|
| 893 |
+
174,
|
| 894 |
+
678,
|
| 895 |
+
379,
|
| 896 |
+
693
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 8
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "We train and evaluate the models on ImageNet-1K with $1 . 3 \\mathbf { M }$ images and 1K classes. We use CvT [6] and ViL [11], state-of-the art vision transformer architectures, as the backbones and replace their attention mechanisms with our long-short term attention, denoted as ${ \\mathrm { C v T ^ { * } } }$ -LS and ViL-size-LS in Table 5. CvT uses overlapping convolutions to extract dense patch embeddings from the input images and feature maps, resulting in a long sequence length in the early stages (e.g., $5 6 \\times 5 6 = 3 1 3 6$ patches for images with $2 2 4 ^ { 2 }$ pixels). For ViL, our sliding window uses the same group size $w$ , but each token attends to at most $2 w \\times 2 w$ (rounding when necessary) tokens inside the window, instead of $3 w \\times 3 w$ as ViL, which allows adding our dynamic projection without increasing the FLOPs. We set $r = 8$ for the dynamic projections for both ViL-LS-Medium and ViL-LS-Base. Note that, our efficient attention mechanism does not depend on the particular architecture, and it can be applied to other vision transformers [e.g., 4, 36, 5]. Please refer to Appendix E for more details. ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
173,
|
| 905 |
+
696,
|
| 906 |
+
825,
|
| 907 |
+
849
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Classification Results. The results are shown in the Table 5, where we also list test accuracies on ImageNet Real and ImageNet V2. Except for CvT, we compare with the original ViT [4] and the enhanced DeiT [36], PVT [5] that also uses multi-scale stragey, ViL [11] that uses window attention and global tokens to improve the efficiency. Training at high-resolution usually improves the test accuracy of vision transformer. With our long-short term attention, we can easily scale the training to higher resolution, and the performance of ${ \\mathrm { C v T ^ { * } } }$ -LS and ViL-LS also improves. Our best model with CvT ${ \\mathrm { C v T ^ { * } } }$ -LS-21 at $4 4 { \\bar { 8 } } ^ { 2 }$ ) achieves $0 . 3 \\%$ higher accuracy than the best reported result of CvT while using the same amount of parameters and $76 \\%$ of its FLOPs. In CvT architecture, the spatial dimension of feature maps in earlier stages are large, representing more fine-grained details of the image. Similar to training with high-resolution images, the model should also benefit from denser feature maps. With our efficient long-short term attention, we can better utilize these fine-grained feature maps with less concerns about the computational budget. In this way, our ${ \\mathrm { C v T ^ { * } } }$ -LS-17 achieves better result than CvT-21 at resolution 224 using fewer parameters and FLOPs, and our ${ \\mathrm { C v T ^ { * } } }$ -LS-21S model further improves our ${ \\mathrm { C v T ^ { * } } }$ -LS-21 model. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
856,
|
| 917 |
+
823,
|
| 918 |
+
911
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 8
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "table",
|
| 924 |
+
"img_path": "images/c9c2c6285db46277e4ed88f715bcfbbd4ce6709989fa3a86f3b3bd210315e90d.jpg",
|
| 925 |
+
"table_caption": [
|
| 926 |
+
"Table 6: Robustness evaluation on various ImageNet datasets. Top-1/Acc.: Top-1 accuracy. mCE: Mean Corrupution Error. Mixed-same/Mixed-rand: accuracies on MIXED-SAME/MIXED-RAND subsets. "
|
| 927 |
+
],
|
| 928 |
+
"table_footnote": [],
|
| 929 |
+
"table_body": "<table><tr><td>Model</td><td colspan=\"5\">[Params|ImageNet|IN-C [56]|IN-A [57]|IN-R [58]]</td><td colspan=\"2\">ImageNet-9 [59]</td></tr><tr><td></td><td>(M)</td><td>Top-1</td><td>mCE(↓)</td><td>Acc.</td><td>Acc.</td><td>|Mixed-same Mixed-rand</td><td></td></tr><tr><td>ResNet-50 [35]]</td><td>25.6</td><td>76.2</td><td>78.9</td><td>6.2</td><td>35.3</td><td>87.1</td><td>81.6</td></tr><tr><td>DeiT-S [36]</td><td>22.1</td><td>79.8</td><td>57.1</td><td>19.0</td><td>41.9</td><td>89.1</td><td>84.2</td></tr><tr><td>CvT-13</td><td>20</td><td>81.6</td><td>59.6</td><td>25.4</td><td>42.9</td><td>90.5</td><td>85.7</td></tr><tr><td>CvT-21</td><td>32</td><td>82.5</td><td>56.2</td><td>31.1</td><td>42.6</td><td>90.5</td><td>85.0</td></tr><tr><td>CvT*-LS-13</td><td>20.3</td><td>81.9</td><td>58.7</td><td>27.0</td><td>42.6</td><td>90.7</td><td>85.6</td></tr><tr><td>CvT*-LS-21</td><td>32.1</td><td>82.7</td><td>55.2</td><td>29.3</td><td>45.0</td><td>91.5</td><td>85.8</td></tr></table>",
|
| 930 |
+
"bbox": [
|
| 931 |
+
223,
|
| 932 |
+
118,
|
| 933 |
+
771,
|
| 934 |
+
234
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
252,
|
| 944 |
+
825,
|
| 945 |
+
390
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 9
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Our ViL-LS-Medium and ViL-LS-Base with long-short term attention improve the accuracies of ViL-Medium and ViL-Base from 83.5 and 83.7 to 83.8 and 84.1 respectively, without an increase in FLOPs. When increasing the resolution for training ViL-LS-Medium from $\\dot { 2 } 2 4 ^ { 2 }$ to $3 8 4 ^ { 2 }$ , the FLOPs increased (approximately) linearly and the accuracy improved by $0 . 6 \\%$ , showing our method still benefits greatly from increased resolution while maintaining the linear complexity in practice. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
397,
|
| 955 |
+
825,
|
| 956 |
+
467
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 9
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Short-term Attention Suppresses Oversmoothing. By restricting tokens from different segments to attend to different windows, our short-term sparse local attention encourages diversity of the feature representations and helps to alleviate the over-smoothing problem [55] (where all queries extract similar information in deeper layers and the attention mechanism is less important), thus can fully utilize the depth of the network. As in [55], we provide the cosine similarity of patch embeddings of our ${ \\mathrm { C v T ^ { * } } }$ -LS-13 and re-implemented CvT-13 (81.1 accuracy) in Figure 6 within Appendix. This is one of the reasons why our efficient attention mechanism can get even better results than the full attention CvT model in the same setting. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
472,
|
| 966 |
+
825,
|
| 967 |
+
583
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 9
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Robustness evaluation on Diverse ImageNet Datasets. As vision models have been widely used in safety-critical applications (e.g. autonomous driving), their robustness is vital. In addition to out-of-distribution robustness (ImageNet-Real and Imageet-v2), we further investigate the robustness of our vision transformer against common corruption (ImageNet-C), semantic shifts (ImageNet-R), Background dependence (ImageNet-9) and natural adversarial examples (ImageNet-A). We compare our methods with standard classification methods, including CNN-based model (ResNet [35]) and Transformer-based models (DeiT [36]) with similar numbers of parameters. As shown in Table 6, we observe that our method significantly outperforms the CNN-based method (ResNet-50). Compared to DeiT, our models also achieve favorable improvements. These results indicate that the design of different attention mechanisms plays an important role for model robustness, which sheds new light on the design of robust vision transformers. More details and results can be found in Appendix E. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
589,
|
| 977 |
+
825,
|
| 978 |
+
741
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 9
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "5 Conclusion ",
|
| 985 |
+
"text_level": 1,
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
758,
|
| 989 |
+
299,
|
| 990 |
+
776
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 9
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "In this paper, we introduced Long-Short Transformer, an efficient transformer for long sequence modeling for both language and vision domain, including both bidirectional and autoregressive models. We design a novel global attention mechanism with linear computational and memory complexity in sequence length based on a dynamic projection. We identify the scale mismatch issue and propose the DualLN technique to eliminate the mismatch at initialization and more effectively aggregate the local and global attentions. We demonstrate that our method obtains the state-of-the-art results on the Long Range Arena, char-level language modeling and ImageNet classification. We look forward to extending our methods to more domains, including document QA, object detection and semantic segmentation on high-resolution images. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
786,
|
| 1000 |
+
825,
|
| 1001 |
+
911
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 9
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "References \n[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, volume 30, 2017. \n[2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. NAACL, 2019. \n[3] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \n[4] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. \n[5] 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. arXiv preprint arXiv:2102.12122, 2021. \n[6] 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. \n[7] Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. TACL, 7:453–466, 2019. \n[8] Raghavendra Pappagari, Piotr Zelasko, Jesús Villalba, Yishay Carmiel, and Najim Dehak. Hierarchical transformers for long document classification. In 2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU), pages 838–844. IEEE, 2019. \n[9] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In ACL, 2019. \n[10] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive Transformers for long-range sequence modelling. In ICLR, 2020. \n[11] Pengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao, Lu Yuan, Lei Zhang, and Jianfeng Gao. Multiscale vision longformer: A new vision transformer for high-resolution image encoding. arXiv preprint arXiv:2103.15358, 2021. \n[12] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \n[13] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In ICML, pages 4055–4064, 2018. \n[14] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \n[15] Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. Etc: Encoding long and structured inputs in transformers. In EMNLP, pages 268–284, 2020. \n[16] Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big Bird: Transformers for longer sequences. In NeurIPS, 2020. \n[17] Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. \n[18] Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh. Nyströmformer: A nyström-based algorithm for approximating self-attention. AAAI, 2021. \n[19] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking self-attention in transformer models. In ICML, 2021. \n[20] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long Range Arena: A benchmark for efficient transformers. In ICLR, 2021. \n[21] Pengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao, Lu Yuan, Lei Zhang, and Jianfeng Gao. Multiscale vision longformer: A new vision transformer for high-resolution image encoding. arXiv preprint arXiv:2103.15358, 2021. \n[22] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \n[23] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019. \n[24] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. \n[25] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019. \n[26] Jiezhong Qiu, Hao Ma, Omer Levy, Scott Wen-tau Yih, Sinong Wang, and Jie Tang. Blockwise selfattention for long document understanding. arXiv preprint arXiv:1911.02972, 2019. \n[27] Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In ICML, 2019. \n[28] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. ICLR, 2021. \n[29] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In ICML, 2020. \n[30] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. ICLR, 2021. \n[31] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In ICLR, 2020. \n[32] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. TACL, 9:53–68, 2021. \n[33] Yi Tay, Dara Bahri, Liu Yang, Donald Metzler, and Da-Cheng Juan. Sparse sinkhorn attention. In ICML. PMLR, 2020. \n[34] Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. Lite transformer with long-short range attention. arXiv preprint arXiv:2004.11886, 2020. \n[35] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. \n[36] 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. \n[37] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. \n[38] 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. \n[39] 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. \n[40] Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas, Niki Parmar, Blake Hechtman, and Jonathon Shlens. Scaling local self-attention for parameter efficient visual backbones. arXiv preprint arXiv:2103.12731, 2021. \n[41] Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. Perceiver: General perception with iterative attention. arXiv preprint arXiv:2103.03206, 2021. \n[42] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In ICML. PMLR, 2020. \n[43] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. ICLR, 2021. \n[44] Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In ICML. PMLR, 2020. \n[45] fvcore: Flop counter for pytorch models. https://github.com/facebookresearch/fvcore/blob/ master/docs/flop_count.md, 2021. \n[46] Yi Tay, Mostafa Dehghani, Vamsi Aribandi, Jai Gupta, Philip Pham, Zhen Qin, Dara Bahri, Da-Cheng Juan, and Donald Metzler. Omninet: Omnidirectional representations from transformers. ICML, 2021. \n[47] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \n[48] Matt Mahoney. Large text compression benchmark. URL http://mattmahoney.net/dc/textdata, 6, 2009. \n[49] Rami Al-Rfou, Dokook Choe, Noah Constant, Mandy Guo, and Llion Jones. Character-level language modeling with deeper self-attention. In AAAI, volume 33, pages 3159–3166, 2019. \n[50] Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, and Armand Joulin. Adaptive attention span in transformers. ACL, 2019. \n[51] Zihao Ye, Qipeng Guo, Quan Gan, Xipeng Qiu, and Zheng Zhang. Bp-transformer: Modelling long-range context via binary partitioning. arXiv preprint arXiv:1911.04070, 2019. \n[52] 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. \n[53] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning, pages 5389–5400. PMLR, 2019. \n[54] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pvtv2: Improved baselines with pyramid vision transformer. 2021. \n[55] 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. \n[56] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019. \n[57] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. \n[58] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020. \n[59] Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. ArXiv preprint arXiv:2006.09994, 2020. \n[60] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In CVPR, 2015. \n[61] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010. \n[62] Nikita Nangia and Samuel Bowman. Listops: A diagnostic dataset for latent tree learning. In NAACL: Student Research Workshop, pages 92–99, 2018. \n[63] Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\\mathrm { ~ Y ~ N ~ g ~ }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In ACL, 2011. \n[64] Dragomir R Radev, Pradeep Muthukrishnan, Vahed Qazvinian, and Amjad Abu-Jbara. The acl anthology network corpus. Language Resources and Evaluation, 47(4):919–944, 2013. \n[65] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016. \n[66] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251–1258, 2017. \n[67] Lei Huang, Xianglong Liu, Yang Liu, Bo Lang, and Dacheng Tao. Centered weight normalization in accelerating training of deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 2803–2811, 2017. \n[68] Siyuan Qiao, Huiyu Wang, Chenxi Liu, Wei Shen, and Alan Yuille. Micro-batch training with batch-channel normalization and weight standardization. arXiv preprint arXiv:1903.10520, 2019. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
171,
|
| 1010 |
+
88,
|
| 1011 |
+
828,
|
| 1012 |
+
914
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 10
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
171,
|
| 1021 |
+
74,
|
| 1022 |
+
828,
|
| 1023 |
+
920
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 11
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
171,
|
| 1032 |
+
60,
|
| 1033 |
+
828,
|
| 1034 |
+
917
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 12
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
169,
|
| 1043 |
+
92,
|
| 1044 |
+
828,
|
| 1045 |
+
272
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 13
|
| 1048 |
+
}
|
| 1049 |
+
]
|
parse/train/M_lkFOwVdYc/M_lkFOwVdYc_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/M_lkFOwVdYc/M_lkFOwVdYc_model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owei $\mathbf { X i a o ^ { 2 , 3 } }$ , Jean Kossaifi2, Zhiding $\mathbf { Y } \mathbf { u } ^ { 2 }$ , Anima Anandkumar2,4, and Zhangyang Wang1
|
| 4 |
+
|
| 5 |
+
1Department of Electrical and Computer Engineering, University of Texas at Austin 2NVIDIA 3Arizona State University 4California Institute of Technology 1{htwang, atlaswang}@utexas.edu 2{chaoweix, jkossaifi, zhidingy, aanandkumar}@nvidia.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Data augmentation is a simple yet effective way to improve the robustness of deep neural networks (DNNs). Diversity and hardness are two complementary dimensions of data augmentation to achieve robustness. For example, AugMix explores random compositions of a diverse set of augmentations to enhance broader coverage, while adversarial training generates adversarially hard samples to spot the weakness. Motivated by this, we propose a data augmentation framework, termed AugMax, to unify the two aspects of diversity and hardness. AugMax first randomly samples multiple augmentation operators and then learns an adversarial mixture of the selected operators. Being a stronger form of data augmentation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. To solve this problem, we further design a disentangled normalization module, termed DuBIN (Dual-Batch-and-Instance Normalization), that disentangles the instance-wise feature heterogeneity arising from AugMax. Experiments show that AugMax-DuBIN leads to significantly improved out-of-distribution robustness, outperforming prior arts by $3 . 0 3 \%$ , $3 . 4 9 \%$ , $1 . 8 2 \%$ and $0 . 7 1 \%$ on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C. Codes and pretrained models are available: https://github.com/VITA-Group/AugMax.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Out-of-distribution (OOD) samples present a challenge when deploying AI models in the real world. Examples include natural corruptions (e.g., due to camera blurs or noise, snow, rain, or fog in image data), sensory perturbations (e.g., sensor transient error, electromagnetic interference) and domain shifts (e.g., summer winter). However, deep networks are often trained on limited amounts of data which may not cover sufficient scenarios. As a result, they are vulnerable to unforeseen distributional changes despite achieving high performance on standard benchmarks [1–3]. This jeopardizes their trustworthiness as well as safe deployment in real-world environments. Thus it is critical to develop techniques that improve robustness even when training with relatively clean datasets.
|
| 14 |
+
|
| 15 |
+
Several techniques have been proposed to consolidate the robustness against unforeseen corruptions, including robust data augmentation [5, 3, 8, 6], Lipschitz continuity [9–11], stability training [12], pre-training [13–16], and robust network structures [17–19], to name a few. Among these techniques, data augmentation is of particular interest due to its empirical effectiveness, ease of implementation, low computational overhead, and plug-and-play nature.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The effects of diversity and hardness in data augmentations. We visualize features of augmented images fed to the network during training. The features are from the penultimate layer of a ResNeXt29 trained on CIFAR10 training data using only standard data augmentation (random flipping and translation) following [4]. For visualization, we randomly selected 300 fixed images from 3 fixed classes (denoted by different colors) to which we apply different augmentation methods: (a) standard augmentation (random flipping and translation); (b) AugMix [5]; (c) PGD Attack [6, 7]; (d) AugMax (ours). In order to achieve good model robustness, the augmented training data should both be diverse and also contain enough hard cases. As can be seen, PGD Attack generates hard cases (which the network cannot separate) but are not diverse enough (they are all clustered together) while AugMix creates diverse but not hard samples (they are well separated). By contrast, our approach (AugMax) achieves a unification between hard and diverse samples.
|
| 19 |
+
|
| 20 |
+
There are mainly two categories of data augmentation approaches:
|
| 21 |
+
|
| 22 |
+
The first category aims to increase diversity of the training data by composing multiple random transformations [20–22, 5, 3]. While standard data augmentation methods (e.g., random flipping and translation) lead to poor robustness [5], more aggressive combinations of multiple augmentations have shown promise. One such successful example is AugMix [5], which stochastically samples from diverse augmentation operations and randomly mixing them to produce highly diverse augmented images. AugMix can increase the sample diversity coverage compared to standard augmentations, as shown in Figure 1 (a) and (b).
|
| 23 |
+
|
| 24 |
+
The second category aims to boost the hardness of the training data by sampling from the worst-case augmentations that tries to fool the model into misclassifying the samples. A common technique to achieve this goal is adversarial perturbation [6, 23, 8]. Training over such worst-case samples allows a model to actively fix its generalization weaknesses [24] and empirically improves its robustness against corruptions [25, 26, 7]. Due to the extra complexity to generate adversarial perturbations, the improved robustness usually comes at the cost of largely increased training time compared with non-adversarial methods [6, 27]. An example falling into this category is the PGD attack [6], as is shown in Figure 1 (c).
|
| 25 |
+
|
| 26 |
+
Previous work has focused on leveraging one of these category to improve robustness. In this paper, we unify both approaches in a single framework. In particular, we show that diversity and hardness are complementary and that a unification between the two is necessary to achieve robustness. We propose a new strategy to achieve this unification and successfully increase robustness.
|
| 27 |
+
|
| 28 |
+
# Summary of contributions:
|
| 29 |
+
|
| 30 |
+
• We propose AugMax, a novel augmentation framework which achieves robustness through a unification between diversity and hardness, by searching for the worst-case mixing strategy. • Being a stronger form of data augmentation, AugMax leads to a significantly augmented and more heterogeneous input distribution, which also makes model training more challenging. To solve this problem, we design a new normalization strategy, termed DuBIN, to disentangle the instance-wise feature heterogeneity of AugMax samples. • We show that combination of AugMax and DuBIN (AugMax-DuBIN) achieves state-of-the-art robustness against corruptions and improves robustness against other common distribution shifts.
|
| 31 |
+
|
| 32 |
+
AugMax achieves a good unification between sample diversity and hard corner-case generation during data augmentation. AugMax is built on top of the AugMix framework [5] which mixes multiple data augmentation operators in a multi-branch and layered pipeline. However, different from AugMix where augmentation operators and mixing weights are both randomly sampled, operators are first randomly sampled, followed by adversarially trained mixture of the selected operators in Augmax. This simple change from AugMix to AugMax results in considerable difference in their feature distributions. From the visualizations (in Figure 1), AugMax generates more adversarially “hard samples", while still keeping a good amount of diversity compared to AugMix and PGD Attack. Searching for adversarial mixing strategies in AugMax is slightly more expensive since it involves adversarial mixing. To make this efficient, we adopt an efficient adversarial training strategy [28]. As a result, AugMax adds only a reasonable amount of extra complexity compared to non-adversarial training methods, while improving robustness significantly. For example, AugMax training time is only $\sim 1 . 5$ times that of AugMix on ImageNet (see Table 7). Moreover, Augmax is significantly more efficient than traditional adversarial training which has $\sim 1 0$ times training time overhead compared with AugMix.
|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
Figure 2: AugMax overview. Black and red arrows represent forward paths and back-propagation paths to generate AugMax images, respectively. In contrast to AugMax, where the mixing parameters $m$ and $\pmb { w }$ are adversarially learned, AugMix randomly samples $m$ and $\pmb { w }$ from predefined distributions (and thus no backpropergation on $m$ and $\textbf { \em w }$ ).
|
| 36 |
+
|
| 37 |
+
Being a stronger form of data augmentation with adversarial sample generation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. This naturally motivates us to propose a novel and finer-grained normalization scheme termed Dual-Batchand-Instance Normalization (DuBIN). As illustrated in Figure 3, DuBIN adds an additional instance normalization (IN) in parallel to the traditional Dual Batch Normalization (DuBN) [7, 29] used in adversarial training, in order to better model and disentangle the instance-wise feature heterogeneity arising from AugMax. We show that adding the instance normalization is an important knob to promote the capability of AugMax in boosting model robustness.
|
| 38 |
+
|
| 39 |
+
Our framework, AugMax-DuBIN, is illustrated in Figure 2. AugMax-DuBIN trains on clean images and achieves state-of-the-art robustness on natural corruption benchmarks [1], and also improves model robustness against other common distribution shifts [30, 2]. In particular, our method surpasses state-of-the-art method on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C by $3 . 0 3 \%$ , $3 . 4 9 \%$ , $1 . 8 2 \%$ and $0 . 7 1 \%$ respectively.
|
| 40 |
+
|
| 41 |
+
# 2 Related Work
|
| 42 |
+
|
| 43 |
+
# 2.1 Robustness to Distributional Shifts
|
| 44 |
+
|
| 45 |
+
Hendrycks et al. [1] pioneer the study of prediction errors exhibited by machine learning models on unseen natural corruptions and perturbations. They introduce two variants of the original ImageNet validation set to evaluate the model’s robustness: the ImageNet-C for input corruption robustness, and the ImageNet-P for input perturbation robustness. The former applies 15 diverse corruptions drawn from four main categories (noise, blur, weather, and digital) on ImageNet validation images. The latter contains perturbation sequences generated from each image. Recht et al. [30, 2] collect CIFAR10.1 and ImageNet-V2 as a reproduction of the original CIFAR10 [31] and ImageNet [32] test sets, and find that a minute natural distribution shift caused by the minutiae in dataset collection process leads to a large drop in accuracy for a broad range of image classifiers. Geirhos et al. [33] observe that deep models trained on ImageNet are biased towards textures, and the model robustness can be improved by emphasizing more on global shape features [33–36]. Wang et al. [37] find that the benchmark test performance does not always translate to the real-world generalizability, and propose an efficient method to troubleshoot trained models using real-world unlabeled images. Hendrycks et al. [38] collect ImageNet-A with the new concept of natural adversarial examples: unmodified real-world images that falsify common machine learning models. Other representative benchmark efforts include [39–42, 3], all demonstrating the brittleness of deep models under various distribution shifts. Readers of interest are referred to a recent survey [43].
|
| 46 |
+
|
| 47 |
+
# 2.2 Data Augmentation: Random and Adversarial
|
| 48 |
+
|
| 49 |
+
Data augmentations have been widely used to increase training set diversity and improve model generalization ability [44, 21, 33, 22]. Among those methods, AugMix [5] achieves the outstanding robustness against natural corruptions by randomly mixing multiple diverse augmentations. It establishes high performance bars on many natural corruption benchmarks including CIFAR10-C, CIFAR100-C and ImageNet-C [1]. DeepAugment [3] feeds clean images to image-to-image models with randomly perturbed model weights to generate visually diverse augmented images. Combined with AugMix, it achieves state-of-the-art robustness on ImageNet-C [1]. Lately, a concurrent work MaxUp [45] generates hard training samples by selecting the worst-case weights in the MixUp [20] pipeline, to improve both model generalization ability and adversarial robustness. Our work shared a similar mindset to MaxUp, but we build on the more sophisticated AugMix pipeline and handle the resulting higher feature heterogeneity using a new normalization module.
|
| 50 |
+
|
| 51 |
+
Besides, Adversarial training (AT) [6, 46–52] utilizes adversarial samples as a special data augmentation method, and has also shown promise in improving model robustness against natural corruptions [23] and domain gaps [25], usually at the cost of increasing training time [27] and degrading the standard accuracy on clean images [53]. Volpi et al. [25] and Zhao et al. [26] augment the training set with samples from a fictitious adversarial domain to improve domain adaptation performance. Xie et al. [7] show that adversarial training can improve both standard accuracy and robustness against distribution shifts, with the help of auxiliary batch normalization. Adversarial Noise Training (ANT) [8] uses random Gaussian noise with learned adversarial hyperparameters (mean and variance) as the augmentation. Gowal et al. [54] propose to generate new augmented images by adversarially composing the representations of different original images. Wang et al. [55] improve the robustness of pose estimation models by adversarially mixing different corrupted images as data augmentation. Based on DeepAugment [3], Calian et al. [56] propose AdversarialAugment, which optimizes the parameters of image-to-image models to generate adversarially augmented images, achieving promising results against natural corruptions. Robey et al. [57] proposed model-based robust learning which generates augmented images with adversarial natural variations to improve model robustness against naturally-occurring conditions (e.g., snow, decolorization, shadow, and many others). The authors further generalized such idea to the domain generalization problem and achieved impressive results [58].
|
| 52 |
+
|
| 53 |
+
# 2.3 Normalization
|
| 54 |
+
|
| 55 |
+
Batch Normalization (BN) [59] has been a cornerstone for training deep networks. Inspired by BN, more task-specific modifications are proposed by exploiting different normalization axes, such as Instance Normalization (IN) [60], Layer Normalization (LN) [61] and Group Normalization (GN) [62]. A few latest works investigate to use multiple normalization layers instead of one BN. Zajkac et al. [63] use two separate BNs to handle the domain shift between labeled and unlabeled data in semi-supervised learning. Xie et al. [64, 7] observe the difference between standard and adversarial feature statistics during AT, and craft dual batch normalization (DuBN) to disentangle the standard and adversarial feature statistic to improve both the standard accuracy and robustness. While most deep models just use one normalization type throughout the network, IBN-Net [29] unifies IN and BN in one model. It finds that when applied together, IN tends to learn features invariant to appearance (colors, styles, etc.) changes, while BN is essential for preserving high-level semantic contents. IBN-Net shows that combining IN and BN in an appropriate manner can improve model generalization. A similar combination was also explored in the style transfer field [65], learning to selectively normalize only disturbing styles while preserving useful styles.
|
| 56 |
+
|
| 57 |
+
# 3 Method
|
| 58 |
+
|
| 59 |
+
# 3.1 Preliminary: The AugMix Framework
|
| 60 |
+
|
| 61 |
+
At a high level, AugMix creates a new composite image from a clean sample by first applying several simple augmentation operations to it before combining the results through random linear combinations. This augmentation scheme is coupled with a Jensen-Shannon consistency loss that enforces feature similarity among clean and augmented images. Specifically, AugMix consists of multiple augmentation chains (3 by default), each applied in parallel to the same input image. Each chain composes one to three randomly selected augmentation operations. These augmentations are the same as AutoAugment [21], but excluding those that overlap with ImageNet-C corruptions. The augmented images from each augmentation chains are then combined together with the original, clean sample using a linear combinations with randomly samples coefficients. The final image thus incorporates several sources of randomness, coming respectively from the choice of operations, the severity level of these operations, the lengths of the augmentation chains and the mixing weights. Despite its simplicity, AugMix achieves state-of-the-art corruption robustness. In the remaining of this section, we build on the previous AugMix work and propose AugMax, an augmentation strategy that further improves robustness.
|
| 62 |
+
|
| 63 |
+
# 3.2 AugMax: Augmented Training with Unified Diversity and Hardness
|
| 64 |
+
|
| 65 |
+
In this section, we rigorously introduce our new data augmentation method, AugMax, illustrated in Figure 2. At a high level, the main difference between AugMax and AugMix is a new optimization procedure used to select the mixing weights $m$ and $\pmb { w }$ .
|
| 66 |
+
|
| 67 |
+
Given a data distribution $\mathbb { D }$ over images $\pmb { x } \in \mathbb { R } ^ { d }$ and labels $\pmb { y } \in \mathbb { R } ^ { c }$ , our goal is to train a mapping (classifier) $f : \mathbb { R } ^ { d } \mathbb { R } ^ { c }$ from images to output softmax probabilities, parameterized by $\pmb \theta$ , that is robust to (unknown) distribution shifts. We minimize the empirical risk
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\operatorname* { m i n } _ { \pmb { \theta } } \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim \mathcal { D } } \ \mathcal { L } ( f ( \pmb { x } ; \pmb { \theta } ) , \pmb { y } ) ,
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
where $\mathcal L ( \cdot , \cdot )$ is the loss function (e.g., cross-entropy). As illustrated in Figure 2, an AugMax image $\pmb { x } ^ { * }$ is generated by learning a set of adversarial mixing parameters $m ^ { * } , w ^ { * }$ which maximizes the loss:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
{ \pmb x } ^ { * } = g ( { \pmb x } _ { o r i g } ; m ^ { * } , { \pmb w } ^ { * } ) ,
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where $g ( \cdot )$ denotes the AugMax augmentation function, $\pmb { x } _ { o r i g }$ is the original image, and
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
m ^ { * } , \boldsymbol { w } ^ { * } = \underset { m , w } { \arg \operatorname* { m a x } } \mathcal { L } \big ( f ( g ( x _ { o r i g } ; m , w ) ; \theta ) , y \big ) , \quad \mathrm { s . t . } m \in [ 0 , 1 ] , w \in [ 0 , 1 ] ^ { b } , w ^ { T } \mathbf { 1 } = 1 .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
To simplify the optimization problem in Eq. (3), we use a re-parameterization trick by setting ${ \pmb w } = \sigma ( { \pmb p } )$ , where $\sigma ( \cdot )$ is the softmax function, and convert the optimization into a differentiable one:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
m ^ { * } , \pmb { p } ^ { * } = \operatorname * { a r g m a x } _ { m \in [ 0 , 1 ] , \pmb { p } \in \mathbb { R } ^ { b } } \mathcal { L } ( f ( g ( \pmb { x } _ { o r i g } ; m , \sigma ( \pmb { p } ) ) ; \theta ) , \pmb { y } ) ; \quad \pmb { w } ^ { * } = \sigma ( \pmb { p } ^ { * } )
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Training with AugMax augmentation can then be written altogether as minimax optimization:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array} { r l } & { \underset { \theta } { \operatorname* { m i n } } \mathbb { E } _ { ( \boldsymbol { x } , \boldsymbol { y } ) \sim \mathcal { D } } \frac { 1 } { 2 } [ \mathcal { L } ( f ( \boldsymbol { x } ^ { * } ) ; \boldsymbol { \theta } ) , \boldsymbol { y } ) + \mathcal { L } ( f ( \boldsymbol { x } ) ; \boldsymbol { \theta } ) , \boldsymbol { y } ) ] + \lambda \mathcal { L } _ { c } ( \boldsymbol { x } , \boldsymbol { x } ^ { * } ) } \\ & { \mathrm { s . t . } \boldsymbol { x } ^ { * } = g ( \boldsymbol { x } ; m ^ { * } , \boldsymbol { w } ^ { * } ) ; \boldsymbol { w } ^ { * } = \sigma ( p ^ { * } ) ; \boldsymbol { m } ^ { * } , p ^ { * } = \underset { m \in [ 0 , 1 ] , p \in \mathbb { R } ^ { b } } { \arg \operatorname* { m a x } } \mathcal { L } ( f ( g ( \boldsymbol { x } ; m , \sigma ( p ) ) ; \boldsymbol { \theta } ) , \boldsymbol { y } ) } \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $\mathcal { L } _ { c }$ is a consistency loss regularizing augmented images to have similar model outputs with the original images and $\lambda$ is the trade-off parameter. Our implementation of $\mathcal { L } _ { c }$ is adapted from [5]:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\mathcal { L } _ { c } ( { \pmb x } , { \pmb x } ^ { * } ) = \mathrm { J S } ( f ( { \pmb x } ; \theta ) , f ( \tilde { { \pmb x } } ; \theta ) , f ( { \pmb x } ^ { * } ; \theta ) )
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
with $\mathrm { J } \mathrm { S } ( \cdot )$ being the Jensen-Shannon divergence and $\tilde { \pmb x }$ being the augmented image generated by AugMix from $_ { \textbf { \em x } }$ . In order to reduce the training complexity overhead caused by adversarial training, we employ an accelerated adversarial attack method [28] to solve Eq. (4), which adds only a reasonable amount of extra complexity compared to AugMix baseline. The algorithm to solve Eq. (5) is summarized in Appendix A.
|
| 104 |
+
|
| 105 |
+
Visualization of the effects of diversity and hardness To illustrate the motivation behind AugMax, we visualize the feature representations induced by different augmentation methods to showcase their diversity and hardness in Figure 1. Specifically, we visualize the impact of various data augmentation methods on the feature representations obtained with a ResNeXt29 that is normally trained on CIFAR-10. Note that the model is trained using only default standard augmentations (i.e., random flipping and translation), and therefore has never seen augmentation from AugMix, AugMax, or PGD attack. Following [4], we visualize the penultimate layer feature distributions of training samples from three different classes. Three hundred training images are selected from each class for visualization. For AugMix and $\ell _ { \infty }$ PGD attack, we use the same hyperparameters in the original papers [5, 6].
|
| 106 |
+
|
| 107 |
+
We observe in Figure 1 that the clean images form well-separated clusters in the feature space, leaving large regions between those clusters empty. This potentially causes uncertain and unreliable generalization if new test samples (from a shifted distribution) fall into those regions. AugMix enlarges each cluster to cover a broader region, effectively increasing sample diversity. However, after augmentation, very few samples are close to the decision boundaries, revealing an inability to generate hard samples. Samples from the PGD attack, on the other hand, collapse into a small region around the classification borders, losing feature diversity. We further investigate the method through ablation studies in Section 4.3.
|
| 108 |
+
|
| 109 |
+
# 3.3 DuBIN: Disentangled Normalization for Heterogeneous Features
|
| 110 |
+
|
| 111 |
+
AugMax leads to better coverage of the input space by unifying sample diversity and hardness, as demonstrated in Figure 1. While such more versatile distribution in data augmentation has the potential to increase robustness, we do observe that naive incorporation of AugMax leads to relatively marginal improvement over AugMix (see Section 4.3). This is due to the comprehensiveness of AugMax can also lead to a higher feature heterogeneity, which may require larger model capacity to encode. To address this problem, we design a novel normalization layer, termed Dual Batch-and-Instance Normalization (DuBIN), to disentangle the instance-level heterogeneity.
|
| 112 |
+
|
| 113 |
+
As illustrated in Figure 3, DuBIN consists of two parallel parts: (1) a dual batch normalization (DuBN) [7], which is the by-default normalization layer to use for adversarial training [7, 64], to disentangle the group-level statistics of the clean and corner-case augmented samples2; and (2) an additional instance normalization, to account for instancelevel feature statistics due to augmentation diversity. At each layer, the input feature is split into halves along the channel dimension: one half is then fed into IN, and the other fed into DuBN. Finally, the outputs of IN and DuBN are concatenated back along the channel dimension for the next layer.
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 3: Illustration of DuBIN. “Split” and “cat” represent splitting and concatenating on features along the channel dimension. The input feature $x$ with $C$ channels is split into halves (i.e., $x _ { A }$ and $x _ { B }$ , each with $C / 2$ channels). Each half goes into different normalization layers (either IN or DuBN) and the outputs are concatenated back along the channel dimension.
|
| 117 |
+
|
| 118 |
+
To provide additional insights of DuBIN, we compare the BN statistics of AugMax-DuBN and AugMax-DuBIN in Table 1. $\overline { { \sigma } } _ { c } ^ { 2 }$ and $\overline { { \sigma } } _ { a } ^ { 2 }$ represent the average batch normalization variance over all channels of $B N _ { c }$ and $B N _ { a }$ , respectively. We observe that both $\overline { { \sigma } } _ { c } ^ { 2 }$ and $\overline { { \sigma } } _ { a } ^ { 2 }$ are smaller in the DuBIN network than those in the DuBN counterpart. This shows that the IN branch in DuBIN can reduce the feature diversity that BN otherwise needs to model, by
|
| 119 |
+
|
| 120 |
+
Table 1: BN statistics of different layers in WRN40-2 with DuBN or DuBIN trained on CIFAR100 using AugMax training.
|
| 121 |
+
|
| 122 |
+
<table><tr><td colspan="2">Layer</td><td>Block 1 layer 2</td><td>Block1 layer 3</td><td>Block 2 layer 2</td></tr><tr><td rowspan="3">AugMax-DuBN</td><td></td><td>0.0369</td><td>0.0450</td><td>0.0301</td></tr><tr><td>品</td><td>0.0469</td><td>0.0585</td><td>0.0382</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td rowspan="3">AugMax-DuBIN</td><td></td><td>0.0306</td><td>0.0403</td><td>0.0264</td></tr><tr><td></td><td>0.0348</td><td>0.0466</td><td>0.0292</td></tr><tr><td>R</td><td></td><td></td><td></td></tr></table>
|
| 123 |
+
|
| 124 |
+
encoding instance-level diversities. With lower feature variation, BNs can converge better with improved performance [66].
|
| 125 |
+
|
| 126 |
+
# 4 Experiments
|
| 127 |
+
|
| 128 |
+
Here, we introduce in detail the experimental setting, and report quantitative results for robustness against natural corruptions and distribution shifts. We show that our method induces better robustness than existing ones. We study the properties of our approach in thorough ablation studies.
|
| 129 |
+
|
| 130 |
+
# 4.1 Experimental Setup
|
| 131 |
+
|
| 132 |
+
Datasets and Models We evaluate our proposed method on CIFAR10, CIFAR100 [31], ImageNet [32] and Tiny ImageNet $\left( \mathrm { T I N } \right)$ . For neural architectures, we use a ResNet18 [67], WRN40-2 [68] and ResNeXt29 [69] on the CIFAR datasets, and ResNet18 on ImageNet and Tiny ImageNet4. To evaluate the model’s robustness against common natural corruptions, we use CIFAR10-C, CIFAR100- C, ImageNet-C and Tiny ImageNet-C (TIN-C) [1], which are generated by adding natural corruptions to the original test set images.
|
| 133 |
+
|
| 134 |
+
Evaluation Metrics Following established conventions [1, 5], we define robustness accuracy (RA) as the average classification accuracy over all 15 corruptions, to measure the models’ robustness on CIFAR10-C and CIFAR100-C. On ImageNet-C and Tiny ImageNet-C, we use both RA and mean corruption error (mCE) to evaluate robustness. As defined by [1], mCE is the weighted average of target model corruption
|
| 135 |
+
|
| 136 |
+
Table 2: Evaluation results on CIFAR10 and CIFAR10-C. The best metric is shown in bold.
|
| 137 |
+
|
| 138 |
+
<table><tr><td>Model</td><td>Metric</td><td>Normal</td><td>AugMix</td><td>AugMax-DuBIN</td></tr><tr><td rowspan="2">ResNet18</td><td>SA(%)</td><td>95.56</td><td>95.79</td><td>95.76 (-0.03)</td></tr><tr><td>RA(%)</td><td>74.75</td><td>89.49</td><td>90.36 (+0.87)</td></tr><tr><td rowspan="2">WRN40-2</td><td>SA(%)</td><td>94.78</td><td>95.67</td><td>95.68 (+0.01)</td></tr><tr><td>RA(%)</td><td>73.71</td><td>89.01</td><td>90.67 (+1.66)</td></tr><tr><td rowspan="2">ResNeXt29</td><td>SA(%)</td><td>95.60</td><td>96.25</td><td>96.39 (+0.14)</td></tr><tr><td>RA(%)</td><td>71.70</td><td>89.08</td><td>92.11 (+3.03)</td></tr></table>
|
| 139 |
+
|
| 140 |
+
errors normalized by the corruption errors of a baseline model across different types of corruptions. We use the AlexNet provide in [1] as the baseline model for experiments on ImageNet. Since [1] does not provide an off-the-shelf baseline model for Tiny ImageNet, we use the conventionally trained ResNet18 on Tiny ImageNet as the baseline model for experiments on Tiny ImageNet. We use standard accuracy (SA) to denote the classification accuracy on the original clean testing images.
|
| 141 |
+
|
| 142 |
+
Baseline Methods On CIFAR10-C and CIFAR100-C, we compare our method with the state-of-the-art method, AugMix [5]. In addition, AugMix has previously been combined with other orthogonal methods, such as DeepAugment [3], to further boost performance on ImageNet-C. Specifically, [3] combine DeepAugment as an orthogonal component to AugMix, and achieve state-of-the-art
|
| 143 |
+
|
| 144 |
+
Table 3: Evaluation results on CIFAR100 and CIFAR100-C. The best metric is shown in bold.
|
| 145 |
+
|
| 146 |
+
<table><tr><td>Model</td><td>Metric</td><td>Normal</td><td>AugMix</td><td>AugMax-DuBIN</td></tr><tr><td rowspan="2">ResNet18</td><td>SA(%)</td><td>77.99</td><td>78.23</td><td>78.69 (+0.46)</td></tr><tr><td>RA(%)</td><td>48.46</td><td>62.67</td><td>65.75 (+3.08)</td></tr><tr><td rowspan="2">WRN40-2</td><td>SA(%)</td><td>76.19</td><td>77.03</td><td>76.80 (-0.23)</td></tr><tr><td>RA(%)</td><td>46.80</td><td>64.56</td><td>66.35 (+1.79)</td></tr><tr><td rowspan="2">ResNeXt29</td><td>SA(%)</td><td>79.95</td><td>78.58</td><td>80.70 (+2.12)</td></tr><tr><td>RA(%)</td><td>47.76</td><td>65.37</td><td>68.86 (+3.49)</td></tr></table>
|
| 147 |
+
|
| 148 |
+
performance on ImageNet-C with DeepAugment $^ +$ AugMix [3]. To allow comparison with this scenario, we also run the following comparison experiment on ImageNet-C and Tiny ImageNet-C: (1) AugMix v.s. AugMax and (2) DeepAugment $^ +$ AugMix v.s. DeepAugment $^ +$ AugMax. We show that the advantages of AugMax still exist when combined with other orthogonal methods.
|
| 149 |
+
|
| 150 |
+
Finally, we also compare AugMax with ANT [8], which utilizes Gaussian noises with learned distribution parameters for data augmentation. Since models tend to generalize better on test images similar to those seen during training [70], ANT mainly improves robustness against high frequency corruptions (e.g., additive noises), while achieving comparable robustness on other unseen corruptions (e.g., bluring) with AugMix. Following [8], we perform the comparison on the subset of Tiny ImageNet-C with 12 remaining corruptions after removing all additive noises.
|
| 151 |
+
|
| 152 |
+
Table 4: Evaluation results on ImageNet and ImageNet-C. The best metric is shown in bold.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Method</td><td>SA (%,↑)</td><td>RA (%,↑)</td><td>mCE(%,↓)</td></tr><tr><td>Normal</td><td>69.83</td><td>30.91</td><td>87.47</td></tr><tr><td>AugMix</td><td>68.06 67.62</td><td>34.58 35.01</td><td>83.08 82.56</td></tr><tr><td>AugMax-DuBIN</td><td>(-0.44)</td><td>(+0.43)</td><td>(-0.52)</td></tr><tr><td>DeepAugment + AugMix</td><td>65.32</td><td>45.84</td><td>69.29</td></tr><tr><td>DeepAugment +</td><td>64.43</td><td>46.55</td><td>68.47</td></tr><tr><td>AugMax-DuBIN</td><td>(-0.89)</td><td>(+0.71)</td><td>(-0.82)</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Implementation Details We follow [5] for hyperparameter settings. Specifically, for all experiments on CIAFR10 and CIFAR100, we use SGD optimizer with initial learning rate 0.1 and cosine annealing learning rate scheduler, and train all models for 200 epochs. For all experiments on ImageNet, we use SGD optimizer with initial learning rate 0.1 and batch size 256 to train the model for 90 epochs. We reduce the learning rate by $1 / 1 0$ at the 30-th and 60-th epoch. For all experiments on Tiny ImageNet, we train for 200 epochs and decay the learning rate at the 100-th and 150-th epoch. Other hyperparameter settings are identical as those in ImageNet experiments.
|
| 157 |
+
|
| 158 |
+
We set batch size to 256 for all experiments. In Eq. (4), $m$ and $\pmb { p }$ are uniformly randomly initialized between 0 and 1. We use PGD to update $m$ : first do gradient ascend on $m$ and then project it back into the $[ 0 , 1 ]$ interval. $\pmb { p }$ is updated using gradient ascend. AugMax follows the same rules as AugMix [5] to randomly select augmentation operation type, severity level and chain length. Following [6], we iteratively solve the inner maximization and outer minimization problems in Eq. (5): the inner maximization is updated for $n$ steps, for every 1 step update on
|
| 159 |
+
|
| 160 |
+
Table 5: Evaluation results on TIN and TIN-C. The best metric is shown in bold.
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Method</td><td>SA (%,↑)</td><td>RA (%,↑)</td><td>mCE(%,↓)</td></tr><tr><td>Normal</td><td>61.64</td><td>23.91</td><td>100.00</td></tr><tr><td>AugMix</td><td>61.79 62.21</td><td>36.85 38.67</td><td>83.04 80.72</td></tr><tr><td>AugMax-DuBIN</td><td>(+0.42)</td><td>(+1.82)</td><td>(-2.32)</td></tr><tr><td>DeepAugment + AugMix</td><td>59.59</td><td>40.67</td><td>78.28</td></tr><tr><td>DeepAugment +</td><td>59.72</td><td>40.99</td><td>77.83</td></tr><tr><td>AugMax-DuBIN</td><td>(+0.13)</td><td>(+0.32)</td><td>(-0.45)</td></tr></table>
|
| 163 |
+
|
| 164 |
+
the outer minimization. Both $m$ and $\pmb { p }$ are updated with step size $\alpha = 0 . 1$ . We set $n = 5$ on ImageNet for efficiency and $n = 1 0$ on other datasets. We set $\lambda$ in Eq. (5) to be 12 on ImageNet and 10 on all other datasets, except for ResNet18 on CIFAR100 where we find $\lambda = 1$ leads to better performance. All experiments are conducted on a server with four NVIDIA RTX A6000 GPUs.
|
| 165 |
+
|
| 166 |
+
# 4.2 Robustness against Natural Corruptions
|
| 167 |
+
|
| 168 |
+
Results on CIFAR10-C and CIFAR100-C are shown in Table 2 and 3 respectively, where “normal” means training with default standard augmentations (e.g., random flipping and translation). From the results, we see that AugMax-DuBIN achieves new state-of-the-art performance on both datasets with different model structures. For example, compared with AugMix, our method improves accuracy by as high as $3 . 0 3 \%$ and $3 . 4 9 \%$ on CIFAR10-C and CIFAR100-C, respectively. Moreover, we observe that our method benefits larger models more. Specifically, in both CIFAR10 and CIFAR100 experiments, the largest robustness gain is achieved on ResNeXt29, which has the largest capacity among the three models.
|
| 169 |
+
|
| 170 |
+
Results on ImageNet are shown in Table 4. AugMax-DuBIN outperforms AugMix by $0 . 5 2 \%$ in terms of $\mathrm { m C E }$ on ImageNet-C. Further combining AugMax-DuBIN with DeepAugment outperforms AugMix $^ +$ DeepAugment by $0 . 8 2 \%$ in terms of mCE, achieving a new stateof-the-art performance on ImageNet-C. This
|
| 171 |
+
|
| 172 |
+
Table 6: Evaluation results on TIN and TIN-C (w/o noise). The best metric is shown in bold.
|
| 173 |
+
|
| 174 |
+
<table><tr><td>Method</td><td>SA(%,↑)</td><td>RA(%,↑)</td><td>mCE(%,)</td></tr><tr><td>Normal</td><td>61.64</td><td>24.38</td><td>100.00</td></tr><tr><td>AugMix</td><td>61.79</td><td>37.63</td><td>82.54</td></tr><tr><td>ANT</td><td>61.26</td><td>35.30</td><td>85.70</td></tr><tr><td>AugMax-DuBIN</td><td>62.21</td><td>38.66</td><td>80.29</td></tr></table>
|
| 175 |
+
|
| 176 |
+
shows that AugMax can be used as a more advanced basic building block for model robustness and inspires future researches to build other defense methods on top of it.
|
| 177 |
+
|
| 178 |
+
Results on Tiny ImageNet-C are shown in Table 5 and Table 6. From Table 5, we see that our method improves the mCE by $2 . 3 2 \%$ compared with AugMix and $0 . 4 5 \%$ when combined with DeepAugment. From Table 6, we can see our method outperforms ANT by a considerable margin.
|
| 179 |
+
|
| 180 |
+
Training Time Since we use an accelerated adversarial training method [28] to solve Eq. (4), the worst-case mixing strategy can be searched efficiently. As a result, AugMax adds only a modest training overhead over AugMix, and is significantly more efficient than traditional adversarial training (AT). Detailed training time is shown in Table 7.
|
| 181 |
+
|
| 182 |
+
Table 7: Training time on ImageNet with ResNet18, reported on a single NVIDIA A6000.
|
| 183 |
+
|
| 184 |
+
<table><tr><td>Method</td><td>Time (sec/epoch)</td></tr><tr><td>Normal</td><td>2669</td></tr><tr><td>AugMix</td><td>3622</td></tr><tr><td>AT[6]</td><td>37162</td></tr><tr><td>AugMax</td><td>5264</td></tr></table>
|
| 185 |
+
|
| 186 |
+
# 4.3 Ablation Study
|
| 187 |
+
|
| 188 |
+
Analysis of Different Normalization Layers In this paragraph, we compare AugMax/AugMix when combined with different normalization schemes. When using DuBN or DuBIN, we route original images to the $B N _ { c }$ , and AugMax/AugMix images to $B N _ { a }$ . Since it is the by-default setting to use disentangled normalization layers (e.g., DuBN) for original and augmentation images in adversarial training [7, 64], we follow this traditional routing and combine AugMax with DuBN or DuBIN instead of BN or IBN. It is fair to compare AugMax-DuBN/DuBIN with either AugMixBN/IBN or AugMix-DuBN/DuBIN.
|
| 189 |
+
|
| 190 |
+
Results are shown in Table 8. AugMax-DuBN outperforms both AugMix-BN and AugMixDuBN, and AugMax-DuBIN outperforms both AugMix-IBN and AugMix-DuBIN. Noticeably, when combined with AugMix, DuBIN also helps improve robustness. This shows the potential of applying DuBIN to other diversity augmentation methods for general performance improvement.
|
| 191 |
+
|
| 192 |
+
We also conduct stability analyses on these experiments, by showing the statistical significance of the improvements achieved by
|
| 193 |
+
|
| 194 |
+
Table 8: Ablation results on DuBIN. RA $( \% )$ on CIFAR10/100-C with WRN40-2 backbone are reported. Mean and standard derivation over three random seeds are shown for each experiment.
|
| 195 |
+
|
| 196 |
+
<table><tr><td>Method</td><td>CIFAR10-C</td><td>CIFAR100-C</td></tr><tr><td>AugMix-BN</td><td>89.01 (± 0.03)</td><td>64.56 (± 0.04)</td></tr><tr><td>AugMix-IBN</td><td>89.17 (± 0.24)</td><td>63.94 (± 0.28)</td></tr><tr><td>AugMix-DuBN</td><td>89.11 (± 0.21)</td><td>64.07 (± 0.38)</td></tr><tr><td>AugMix-DuBIN</td><td>89.74(± 0.35)</td><td>65.02 (± 0.58)</td></tr><tr><td>AugMax-DuBN</td><td>89.60 (± 0.62)</td><td>65.06 (± 0.28)</td></tr><tr><td>AugMax-DuBIN</td><td>90.67 (± 0.16)</td><td>66.35 (± 0.21)</td></tr></table>
|
| 197 |
+
|
| 198 |
+
AugMax-DuBIN over the algorithm randomness. Specifically, we run all experiments in Table 8 using three different random seeds, and report the mean (denoted as $\mu _ { . }$ ) and standard derivation (denoted as $\sigma$ ) of accuracy in the form of $\mu$ $( \pm \sigma )$ in Table 8. As we can observe, the improvements achieved by AugMax-DuBIN are statistically significant and consistent.
|
| 199 |
+
|
| 200 |
+
AugMax Hyperparameters In this paragraph, we check the sensitivity of AugMax with respect to its hyperparameters: maximization steps $n$ , step size $\alpha$ and consistency loss tradeoff parameter $\lambda$ . The results are shown in Table 9. We first fix $\lambda = 1 0$ and try different values for $n$ and $k$ . We fix $k = 1$ when adjust
|
| 201 |
+
|
| 202 |
+
Table 9: Ablation results on AugMax-DuBIN update step number $n$ and, early-stopping step $k$ and consistency loss tradeoff parameter $\lambda$ . Results are reported on CIFAR10/CIFAR10-C with WRN40-2.
|
| 203 |
+
|
| 204 |
+
<table><tr><td></td><td colspan="2">n</td><td colspan="3"></td><td colspan="3"></td></tr><tr><td></td><td>5</td><td>10</td><td>1</td><td>k2</td><td>3</td><td>1</td><td>入 10</td><td>15</td></tr><tr><td>SA(%)</td><td>95.78</td><td>95.68</td><td>95.68</td><td>95.60</td><td>95.51</td><td>95.90</td><td>95.68</td><td>95.88</td></tr><tr><td>RA (%)</td><td>90.49</td><td>90.67</td><td>90.67</td><td>90.38</td><td>90.21</td><td>88.89</td><td>90.67</td><td>90.30</td></tr></table>
|
| 205 |
+
|
| 206 |
+
ing $n$ and fix $n = 1 0$ when adjusting $k$ . As we can see, AugMax is stable with respect to different values of $n$ and $k$ . We use $n = 1 0$ and $k = 1$ as the default values since they empirically yield good results at low training overhead. We then fix $n = 1 0 , k = 1$ and adjust $\lambda$ . We find robustness peaks at around $\lambda = 1 0$ , which we set as the default value.
|
| 207 |
+
|
| 208 |
+
Comparison with Different Diversity and Hardness Strategies In this paragraph, we study different strategies to combine diversity and hardness. The results confirm that diversity and hardness are two complementary dimensions and their proper unification boosts model robustness.
|
| 209 |
+
|
| 210 |
+
Specifically, we compare AugMax with baseline methods from each strategy group (i.e., diversity or hardness), and other possible strategies to combine both. Besides AugMix and Adversarial Training (e.g., PDGAT [6], FAT [28]), which are the two representative examples for diversity and hardness as shown in Figure 1, we also design the following baseline methods. (1) AugMix+PGDAT: using both AugMix and adversarial images for augmentation. This is a naive baseline to combine diversity with hardness. (2)
|
| 211 |
+
|
| 212 |
+
Table 10: Results of different augmentation strategies on CIFAR100(-C) with ResNet18.
|
| 213 |
+
|
| 214 |
+
<table><tr><td>Method</td><td>Strategy</td><td>SA(%)</td><td>RA(%)</td></tr><tr><td>Normal</td><td>-</td><td>77.99</td><td>48.46</td></tr><tr><td>AugMix [5]</td><td>(diversity)</td><td>78.23</td><td>62.67</td></tr><tr><td>PGDAT [6]</td><td rowspan="4">(hardness)</td><td>60.94</td><td>47.71</td></tr><tr><td>FAT[28]</td><td>61.51</td><td>48.70</td></tr><tr><td>AdvMax</td><td>56.61</td><td>38.65</td></tr><tr><td>AugMix+PGDAT</td><td>61.68</td><td>51.39</td></tr><tr><td>AdvMix</td><td rowspan="2">(diversity &adversity)</td><td>72.36</td><td>56.89</td></tr><tr><td>AugMax-DuBIN</td><td>78.52</td><td>64.02</td></tr></table>
|
| 215 |
+
|
| 216 |
+
AdvMix: applying adversarial attacks on the augmentation hyperparameters such as the rotation angles and translation pixel numbers [71, 72], while randomly selecting the mixing parameters; (3) AdvMax: applying adversarial attacks on both the augmentation hyperparameters and the mixing weights.5 Please see Appendix B for their implementation details.
|
| 217 |
+
|
| 218 |
+
The results are shown in Table 10. AugMax-DuBIN achieves the best performance, outperforming all methods from either diversity or hardness group. This shows diversity and hardness to be indeed complementary. On the other hand, the other two naive baselines jointly considering diversity and hardness achieve poorer performance, showing it nontrivial to design a method achieving good balance between diversity and hardness.
|
| 219 |
+
|
| 220 |
+
# 4.4 Robustness against Other Distribution Shifts
|
| 221 |
+
|
| 222 |
+
Although AugMax mainly aims at improving model robustness against common corruptions, we find that it can also gain robustness against other types of distribution shifts. Specifically, we evaluate on the distribution shifts caused by the differences in data collection process using CIFAR10.1 [30], and against Spatial Transform adversarial Attacks (STA) [71] on CIFAR10-STA. We generate CIFAR10-STA by applying the worst-of- $k$ attack with $k = 1 0$ on CIFAR10 test set following [71].
|
| 223 |
+
|
| 224 |
+
Table 11: Robustness against other distribution shifts. Accuracy $( \% )$ on CIFAR10.1 and CIFAR10-STA are evaluated on ResNeXt29 trained on CIFAR10.
|
| 225 |
+
|
| 226 |
+
<table><tr><td>Method</td><td>CIFAR10.1</td><td>CIFAR10-STA</td></tr><tr><td>Normal</td><td>88.90</td><td>30.30</td></tr><tr><td>AugMix</td><td>88.90</td><td>54.30</td></tr><tr><td>AugMax-DuBIN</td><td>90.64</td><td>63.20</td></tr></table>
|
| 227 |
+
|
| 228 |
+
Results are reported in Table 11 (using the same ResNeXt29 models trained on CIFAR10 as in Section 4.2). AugMax-DuBIN steadily outperforms AugMix against both distributional shifts.
|
| 229 |
+
|
| 230 |
+
# 5 Conclusion
|
| 231 |
+
|
| 232 |
+
In this paper, we propose AugMax, a novel data augmentation strategy, that significantly improves robustness by strategically unifying diversity and hardness. To enable efficient training while facing the resulting heterogeneous features, we design a novel normalization scheme termed DuBIN. Using the combination of AugMax and DuBIN, we consistently demonstrate state-of-the-art robustness on several natural corruption benchmarks.
|
| 233 |
+
|
| 234 |
+
AugMax unifies diversity and hardness in a heuristic manner. While we showed in ablation studies that AugMax outperforms other heuristic combinations, there may be better trade-offs available. We leave such study for future work and focus in this paper on showing the benefit of unifying diversity and hardness, which were separately considered in previous research.
|
| 235 |
+
|
| 236 |
+
# Acknowledgement
|
| 237 |
+
|
| 238 |
+
Z.W. is supported by the U.S. Army Research Laboratory Cooperative Research Agreement W911NF17-2-0196 (IOBT REIGN), and an NVIDIA Applied Research Accelerator Program.
|
| 239 |
+
|
| 240 |
+
# References
|
| 241 |
+
|
| 242 |
+
[1] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019. 1, 3, 4, 7
|
| 243 |
+
[2] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do ImageNet classifiers generalize to ImageNet? arXiv preprint arXiv:1902.10811, 2019. 3
|
| 244 |
+
[3] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, Dawn Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. In IEEE International Conference on Computer Vision (ICCV), pages 8340–8349, 2021. 1, 2, 4, 7
|
| 245 |
+
[4] Rafael Müller, Simon Kornblith, and Geoffrey Hinton. When does label smoothing help? arXiv preprint arXiv:1906.02629, 2019. 2, 6
|
| 246 |
+
[5] Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. AugMix: A simple data processing method to improve robustness and uncertainty. In International Conference on Learning Representations (ICLR), 2020. 1, 2, 4, 5, 6, 7, 8, 9, 15
|
| 247 |
+
[6] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018. 1, 2, 4, 6, 8, 9
|
| 248 |
+
[7] Cihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan Yuille, and Quoc V Le. Adversarial examples improve image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 819–828, 2020. 2, 3, 4, 6, 9
|
| 249 |
+
[8] Evgenia Rusak, Lukas Schott, Roland S Zimmermann, Julian Bitterwolf, Oliver Bringmann, Matthias Bethge, and Wieland Brendel. A simple way to make neural networks robust against diverse image corruptions. In European Conference on Computer Vision (ECCV), pages 53–69, 2020. 1, 2, 4, 7
|
| 250 |
+
[9] Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial manipulation. In Advances in Neural Information Processing Systems (NeurIPS), pages 2266–2276, 2017. 1
|
| 251 |
+
[10] Tsui-Wei Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Duane S. Boning, Inderjit S. Dhillon, and Luca Daniel. Towards fast computation of certified robustness for ReLU networks. In International Conference on Machine Learning (ICLR), pages 5273–5282, 2018.
|
| 252 |
+
[11] Tsui-Wei Weng, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, Dong Su, Yupeng Gao, Cho-Jui Hsieh, and Luca Daniel. Evaluating the robustness of neural networks: An extreme value theory approach. In International Conference on Learning Representations (ICLR), 2018. 1
|
| 253 |
+
[12] Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4480–4488, 2016. 1
|
| 254 |
+
[13] Dan Hendrycks, Kimin Lee, and Mantas Mazeika. Using pre-training can improve model robustness and uncertainty. In International Conference on Machine Learning (ICML), pages 2712–2721, 2019. 1
|
| 255 |
+
[14] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang. Adversarial robustness: From self-supervised pre-training to fine-tuning. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 699–708, 2020.
|
| 256 |
+
[15] Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang. Robust pre-training by adversarial contrastive learning. In Advances in Neural Information Processing Systems (NeurIPS), pages 16199–16210, 2020.
|
| 257 |
+
[16] Jiachen Sun, Yulong Cao, Christopher Choy, Zhiding Yu, Chaowei Xiao, Anima Anandkumar, and Z Morley Mao. Improving adversarial robustness in 3D point cloud classification via self-supervisions. In International Conference on Machine Learning Workshop (ICMLW), 2021. 1
|
| 258 |
+
[17] Richard Zhang. Making convolutional networks shift-invariant again. In International Conference on Machine Learning (ICML), pages 7324–7334, 2019. 1
|
| 259 |
+
[18] Cristina Vasconcelos, Hugo Larochelle, Vincent Dumoulin, Nicolas Le Roux, and Ross Goroshin. An effective anti-aliasing approach for residual networks. arXiv preprint arXiv:2011.10675, 2020.
|
| 260 |
+
[19] Jungkyu Lee, Taeryun Won, and Kiho Hong. Compounding the performance improvements of assembled techniques in a convolutional neural network. arXiv preprint arXiv:2001.06268, 2020. 1
|
| 261 |
+
[20] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. MixUp: Beyond empirical risk minimization. In International Conference on Learning Representations (ICLR), 2018. 2, 4
|
| 262 |
+
[21] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. AutoAugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018. 4, 5
|
| 263 |
+
[22] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization strategy to train strong classifiers with localizable features. In IEEE International Conference on Computer Vision (ICCV), pages 6023–6032, 2019. 2, 4
|
| 264 |
+
[23] Justin Gilmer, Nicolas Ford, Nicholas Carlini, and Ekin Cubuk. Adversarial examples are a natural consequence of test error in noise. In International Conference on Machine Learning (ICML), pages 2280–2289, 2019. 2, 4
|
| 265 |
+
[24] Tianlong Chen, Yu Cheng, Zhe Gan, Jianfeng Wang, Lijuan Wang, Zhangyang Wang, and Jingjing Liu. Adversarial feature augmentation and normalization for visual recognition. arXiv preprint arXiv:2103.12171, 2021. 2
|
| 266 |
+
[25] Riccardo Volpi, Hongseok Namkoong, Ozan Sener, John C. Duchi, Vittorio Murino, and Silvio Savarese. Generalizing to unseen domains via adversarial data augmentation. In Advances in Neural Information Processing Systems (NeurIPS), pages 5334–5344, 2018. 2, 4
|
| 267 |
+
[26] Long Zhao, Ting Liu, Xi Peng, and Dimitris Metaxas. Maximum-entropy adversarial data augmentation for improved generalization and robustness. In Advances in Neural Information Processing Systems (NeurIPS), 2020. 2, 4
|
| 268 |
+
[27] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems (NeurIPS), pages 227–238, 2019. 2, 4
|
| 269 |
+
[28] Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In International Conference on Machine Learning (ICML), pages 11278–11287, 2020. 3, 5, 8, 9, 15
|
| 270 |
+
[29] Xingang Pan, Ping Luo, Jianping Shi, and Xiaoou Tang. Two at once: Enhancing learning and generalization capacities via ibn-net. In European Conference on Computer Vision (ECCV), pages 464–479, 2018. 3, 4
|
| 271 |
+
[30] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do CIFAR-10 classifiers generalize to CIFAR-10? arXiv preprint arXiv:1806.00451, 2018. 3, 10
|
| 272 |
+
[31] Alex Krizhevsky. Learning multiple layers of features from tiny images. Master’s thesis, University of Toronto, 2009. 3, 7
|
| 273 |
+
[32] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, 2009. 3, 7
|
| 274 |
+
[33] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations (ICLR), 2019. 3, 4
|
| 275 |
+
[34] Katherine Hermann, Ting Chen, and Simon Kornblith. The origins and prevalence of texture bias in convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 19000–19015, 2020.
|
| 276 |
+
[35] Yingwei Li, Qihang Yu, Mingxing Tan, Jieru Mei, Peng Tang, Wei Shen, Alan Yuille, and Cihang Xie. Shape-texture debiased neural network training. In International Conference on Learning Representations (ICLR), 2021.
|
| 277 |
+
[36] Mingjie Sun, Zichao Li, Chaowei Xiao, Haonan Qiu, Bhavya Kailkhura, Mingyan Liu, and Bo Li. Can shape structure features improve model robustness under diverse adversarial settings? In IEEE International Conference on Computer Vision (ICCV), pages 7526–7535, 2021. 3
|
| 278 |
+
[37] Haotao Wang, Tianlong Chen, Zhangyang Wang, and Kede Ma. I am going MAD: Maximum discrepancy competition for comparing classifiers adaptively. In International Conference on Machine Learning (ICLR), 2020. 3
|
| 279 |
+
[38] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. 4
|
| 280 |
+
[39] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems (NeurIPS), pages 10506–10518, 2019. 4
|
| 281 |
+
[40] Keren Gu, Brandon Yang, Jiquan Ngiam, Quoc Le, and Jonathon Shlens. Using videos to evaluate image model robustness. arXiv preprint arXiv:1904.10076, 2019.
|
| 282 |
+
[41] Vaishaal Shankar, Achal Dave, Rebecca Roelofs, Deva Ramanan, Benjamin Recht, and Ludwig Schmidt. Do image classifiers generalize across time? arXiv preprint arXiv:1906.02168, 2019.
|
| 283 |
+
[42] Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. In Advances in Neural Information Processing Systems (NeurIPS), pages 18583–18599, 2020. 4
|
| 284 |
+
[43] Sina Mohseni, Haotao Wang, Zhiding Yu, Chaowei Xiao, Zhangyang Wang, and Jay Yadawa. Practical machine learning safety: A survey and primer. arXiv preprint arXiv:2106.04823, 2021. 4
|
| 285 |
+
[44] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. arXiv preprint arXiv:1708.04896, 2017. 4
|
| 286 |
+
[45] Chengyue Gong, Tongzheng Ren, Mao Ye, and Qiang Liu. MaxUp: A simple way to improve generalization of neural network training. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2474–2483, 2021. 4
|
| 287 |
+
[46] Shupeng Gui, Haotao Wang, Haichuan Yang, Chen Yu, Zhangyang Wang, and Ji Liu. Model compression with adversarial robustness: A unified optimization framework. In Advances in Neural Information Processing Systems (NeurIPS), pages 1283–1294, 2019. 4
|
| 288 |
+
[47] Ting-Kuei Hu, Tianlong Chen, Haotao Wang, and Zhangyang Wang. Triple wins: Boosting accuracy, robustness and efficiency together by enabling input-adaptive inference. In International Conference on Learning Representations (ICLR), 2020.
|
| 289 |
+
[48] Haotao Wang, Tianlong Chen, Shupeng Gui, Ting-Kuei Hu, Ji Liu, and Zhangyang Wang. Once-for-all adversarial training: In-situ tradeoff between robustness and accuracy for free. In Advances in Neural Information Processing Systems (NeurIPS), pages 7449–7461, 2020.
|
| 290 |
+
[49] Tianlong Chen, Zhenyu Zhang, Sijia Liu, Shiyu Chang, and Zhangyang Wang. Robust overfitting may be mitigated by properly learned smoothening. In International Conference on Learning Representations (ICLR), 2020.
|
| 291 |
+
[50] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. In Advances in Neural Information Processing Systems (NeurIPS), pages 2958–2969, 2020.
|
| 292 |
+
[51] Ruize Gao, Feng Liu, Jingfeng Zhang, Bo Han, Tongliang Liu, Gang Niu, and Masashi Sugiyama. Maximum mean discrepancy test is aware of adversarial attacks. In International Conference on Machine Learning (ICML), pages 3564–3575, 2021.
|
| 293 |
+
[52] Jingfeng Zhang, Jianing Zhu, Gang Niu, Bo Han, Masashi Sugiyama, and Mohan Kankanhalli. Geometryaware instance-reweighted adversarial training. In International Conference on Learning Representations (ICLR), 2020. 4
|
| 294 |
+
[53] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations (ICLR), 2019. 4
|
| 295 |
+
[54] Sven Gowal, Chongli Qin, Po-Sen Huang, Taylan Cemgil, Krishnamurthy Dvijotham, Timothy Mann, and Pushmeet Kohli. Achieving robustness in the wild via adversarial mixing with disentangled representations. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1211–1220, 2020. 4
|
| 296 |
+
[55] Jiahang Wang, Sheng Jin, Wentao Liu, Weizhong Liu, Chen Qian, and Ping Luo. When human pose estimation meets robustness: Adversarial algorithms and benchmarks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11855–11864, 2021. 4
|
| 297 |
+
[56] Dan A Calian, Florian Stimberg, Olivia Wiles, Sylvestre-Alvise Rebuffi, Andras Gyorgy, Timothy Mann, and Sven Gowal. Defending against image corruptions through adversarial augmentations. arXiv preprint arXiv:2104.01086, 2021. 4
|
| 298 |
+
[57] Alexander Robey, Hamed Hassani, and George J Pappas. Model-based robust deep learning: Generalizing to natural, out-of-distribution data. arXiv preprint arXiv:2005.10247, 2020. 4
|
| 299 |
+
[58] Alexander Robey, George J Pappas, and Hamed Hassani. Model-based domain generalization. In Advances in Neural Information Processing Systems (NeurIPS), 2021. 4
|
| 300 |
+
[59] Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pages 448–456, 2015. 4
|
| 301 |
+
[60] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. 4
|
| 302 |
+
[61] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. 4
|
| 303 |
+
[62] Yuxin Wu and Kaiming He. Group normalization. In European Conference on Computer Vision (ECCV), pages 3–19, 2018. 4
|
| 304 |
+
[63] Michał Zaj ˛ac, Konrad Zołna, and Stanisław Jastrz˛ebski. Split batch normalization: Improving semi- ˙ supervised learning under domain shift. arXiv preprint arXiv:1904.03515, 2019. 4
|
| 305 |
+
[64] Cihang Xie and Alan Yuille. Intriguing properties of adversarial training. In International Conference on Learning Representations (ICLR), 2020. 4, 6, 9
|
| 306 |
+
[65] Hyeonseob Nam and Hyo-Eun Kim. Batch-instance normalization for adaptively style-invariant neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 2558–2567, 2018. 4
|
| 307 |
+
[66] Xiangru Lian and Ji Liu. Revisit batch normalization: New understanding and refinement via composition optimization. In International Conference on Artificial Intelligence and Statistics (AISTATS), pages 3254–3263, 2019. 6
|
| 308 |
+
[67] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. 7
|
| 309 |
+
[68] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conference (BMVC), pages 87.1–87.12, 2016. 7
|
| 310 |
+
[69] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1492–1500, 2017. 7
|
| 311 |
+
[70] Aharon Azulay and Yair Weiss. Why do deep convolutional networks generalize so poorly to small image transformations? arXiv preprint arXiv:1805.12177, 2018. 7
|
| 312 |
+
[71] Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. Exploring the landscape of spatial robustness. In International Conference on Machine Learning (ICML), pages 1802–1811, 2019. 9, 10, 15
|
| 313 |
+
[72] Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. In International Conference on Learning Representations (ICLR), 2018. 9, 15
|
parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_content_list.json
ADDED
|
@@ -0,0 +1,1315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "AugMax: Adversarial Composition of Random Augmentations for Robust Training ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
215,
|
| 8 |
+
122,
|
| 9 |
+
781,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Haotao Wang1∗, Chaowei $\\mathbf { X i a o ^ { 2 , 3 } }$ , Jean Kossaifi2, Zhiding $\\mathbf { Y } \\mathbf { u } ^ { 2 }$ , Anima Anandkumar2,4, and Zhangyang Wang1 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
281,
|
| 19 |
+
222,
|
| 20 |
+
717,
|
| 21 |
+
252
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Department of Electrical and Computer Engineering, University of Texas at Austin 2NVIDIA 3Arizona State University 4California Institute of Technology 1{htwang, atlaswang}@utexas.edu 2{chaoweix, jkossaifi, zhidingy, aanandkumar}@nvidia.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
225,
|
| 30 |
+
263,
|
| 31 |
+
772,
|
| 32 |
+
319
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
361,
|
| 43 |
+
535,
|
| 44 |
+
377
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Data augmentation is a simple yet effective way to improve the robustness of deep neural networks (DNNs). Diversity and hardness are two complementary dimensions of data augmentation to achieve robustness. For example, AugMix explores random compositions of a diverse set of augmentations to enhance broader coverage, while adversarial training generates adversarially hard samples to spot the weakness. Motivated by this, we propose a data augmentation framework, termed AugMax, to unify the two aspects of diversity and hardness. AugMax first randomly samples multiple augmentation operators and then learns an adversarial mixture of the selected operators. Being a stronger form of data augmentation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. To solve this problem, we further design a disentangled normalization module, termed DuBIN (Dual-Batch-and-Instance Normalization), that disentangles the instance-wise feature heterogeneity arising from AugMax. Experiments show that AugMax-DuBIN leads to significantly improved out-of-distribution robustness, outperforming prior arts by $3 . 0 3 \\%$ , $3 . 4 9 \\%$ , $1 . 8 2 \\%$ and $0 . 7 1 \\%$ on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C. Codes and pretrained models are available: https://github.com/VITA-Group/AugMax. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
392,
|
| 54 |
+
766,
|
| 55 |
+
627
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
655,
|
| 66 |
+
310,
|
| 67 |
+
672
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Out-of-distribution (OOD) samples present a challenge when deploying AI models in the real world. Examples include natural corruptions (e.g., due to camera blurs or noise, snow, rain, or fog in image data), sensory perturbations (e.g., sensor transient error, electromagnetic interference) and domain shifts (e.g., summer winter). However, deep networks are often trained on limited amounts of data which may not cover sufficient scenarios. As a result, they are vulnerable to unforeseen distributional changes despite achieving high performance on standard benchmarks [1–3]. This jeopardizes their trustworthiness as well as safe deployment in real-world environments. Thus it is critical to develop techniques that improve robustness even when training with relatively clean datasets. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
686,
|
| 77 |
+
825,
|
| 78 |
+
797
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Several techniques have been proposed to consolidate the robustness against unforeseen corruptions, including robust data augmentation [5, 3, 8, 6], Lipschitz continuity [9–11], stability training [12], pre-training [13–16], and robust network structures [17–19], to name a few. Among these techniques, data augmentation is of particular interest due to its empirical effectiveness, ease of implementation, low computational overhead, and plug-and-play nature. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
804,
|
| 88 |
+
825,
|
| 89 |
+
875
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/96da970a0935f651f016706faf1673e344b89a5c13bdb2ecde02923b0a6543ea.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: The effects of diversity and hardness in data augmentations. We visualize features of augmented images fed to the network during training. The features are from the penultimate layer of a ResNeXt29 trained on CIFAR10 training data using only standard data augmentation (random flipping and translation) following [4]. For visualization, we randomly selected 300 fixed images from 3 fixed classes (denoted by different colors) to which we apply different augmentation methods: (a) standard augmentation (random flipping and translation); (b) AugMix [5]; (c) PGD Attack [6, 7]; (d) AugMax (ours). In order to achieve good model robustness, the augmented training data should both be diverse and also contain enough hard cases. As can be seen, PGD Attack generates hard cases (which the network cannot separate) but are not diverse enough (they are all clustered together) while AugMix creates diverse but not hard samples (they are well separated). By contrast, our approach (AugMax) achieves a unification between hard and diverse samples. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
178,
|
| 102 |
+
88,
|
| 103 |
+
823,
|
| 104 |
+
213
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "There are mainly two categories of data augmentation approaches: ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
400,
|
| 114 |
+
607,
|
| 115 |
+
415
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "The first category aims to increase diversity of the training data by composing multiple random transformations [20–22, 5, 3]. While standard data augmentation methods (e.g., random flipping and translation) lead to poor robustness [5], more aggressive combinations of multiple augmentations have shown promise. One such successful example is AugMix [5], which stochastically samples from diverse augmentation operations and randomly mixing them to produce highly diverse augmented images. AugMix can increase the sample diversity coverage compared to standard augmentations, as shown in Figure 1 (a) and (b). ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
420,
|
| 125 |
+
825,
|
| 126 |
+
518
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "The second category aims to boost the hardness of the training data by sampling from the worst-case augmentations that tries to fool the model into misclassifying the samples. A common technique to achieve this goal is adversarial perturbation [6, 23, 8]. Training over such worst-case samples allows a model to actively fix its generalization weaknesses [24] and empirically improves its robustness against corruptions [25, 26, 7]. Due to the extra complexity to generate adversarial perturbations, the improved robustness usually comes at the cost of largely increased training time compared with non-adversarial methods [6, 27]. An example falling into this category is the PGD attack [6], as is shown in Figure 1 (c). ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
523,
|
| 136 |
+
825,
|
| 137 |
+
635
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Previous work has focused on leveraging one of these category to improve robustness. In this paper, we unify both approaches in a single framework. In particular, we show that diversity and hardness are complementary and that a unification between the two is necessary to achieve robustness. We propose a new strategy to achieve this unification and successfully increase robustness. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
641,
|
| 147 |
+
825,
|
| 148 |
+
696
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Summary of contributions: ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
704,
|
| 159 |
+
362,
|
| 160 |
+
718
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "• We propose AugMax, a novel augmentation framework which achieves robustness through a unification between diversity and hardness, by searching for the worst-case mixing strategy. • Being a stronger form of data augmentation, AugMax leads to a significantly augmented and more heterogeneous input distribution, which also makes model training more challenging. To solve this problem, we design a new normalization strategy, termed DuBIN, to disentangle the instance-wise feature heterogeneity of AugMax samples. • We show that combination of AugMax and DuBIN (AugMax-DuBIN) achieves state-of-the-art robustness against corruptions and improves robustness against other common distribution shifts. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
720,
|
| 170 |
+
825,
|
| 171 |
+
844
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "AugMax achieves a good unification between sample diversity and hard corner-case generation during data augmentation. AugMax is built on top of the AugMix framework [5] which mixes multiple data augmentation operators in a multi-branch and layered pipeline. However, different from AugMix where augmentation operators and mixing weights are both randomly sampled, operators are first randomly sampled, followed by adversarially trained mixture of the selected operators in Augmax. This simple change from AugMix to AugMax results in considerable difference in their feature distributions. From the visualizations (in Figure 1), AugMax generates more adversarially “hard samples\", while still keeping a good amount of diversity compared to AugMix and PGD Attack. Searching for adversarial mixing strategies in AugMax is slightly more expensive since it involves adversarial mixing. To make this efficient, we adopt an efficient adversarial training strategy [28]. As a result, AugMax adds only a reasonable amount of extra complexity compared to non-adversarial training methods, while improving robustness significantly. For example, AugMax training time is only $\\sim 1 . 5$ times that of AugMix on ImageNet (see Table 7). Moreover, Augmax is significantly more efficient than traditional adversarial training which has $\\sim 1 0$ times training time overhead compared with AugMix. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
856,
|
| 181 |
+
823,
|
| 182 |
+
911
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "image",
|
| 188 |
+
"img_path": "images/5c2b2929baf2ee2ecdb10d564875ad242f4ebe5bd3f8d0fcce5c19740424a479.jpg",
|
| 189 |
+
"image_caption": [
|
| 190 |
+
"Figure 2: AugMax overview. Black and red arrows represent forward paths and back-propagation paths to generate AugMax images, respectively. In contrast to AugMax, where the mixing parameters $m$ and $\\pmb { w }$ are adversarially learned, AugMix randomly samples $m$ and $\\pmb { w }$ from predefined distributions (and thus no backpropergation on $m$ and $\\textbf { \\em w }$ ). "
|
| 191 |
+
],
|
| 192 |
+
"image_footnote": [],
|
| 193 |
+
"bbox": [
|
| 194 |
+
173,
|
| 195 |
+
87,
|
| 196 |
+
816,
|
| 197 |
+
223
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 2
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "",
|
| 204 |
+
"bbox": [
|
| 205 |
+
174,
|
| 206 |
+
320,
|
| 207 |
+
825,
|
| 208 |
+
472
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 2
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "Being a stronger form of data augmentation with adversarial sample generation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. This naturally motivates us to propose a novel and finer-grained normalization scheme termed Dual-Batchand-Instance Normalization (DuBIN). As illustrated in Figure 3, DuBIN adds an additional instance normalization (IN) in parallel to the traditional Dual Batch Normalization (DuBN) [7, 29] used in adversarial training, in order to better model and disentangle the instance-wise feature heterogeneity arising from AugMax. We show that adding the instance normalization is an important knob to promote the capability of AugMax in boosting model robustness. ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
479,
|
| 218 |
+
825,
|
| 219 |
+
590
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "Our framework, AugMax-DuBIN, is illustrated in Figure 2. AugMax-DuBIN trains on clean images and achieves state-of-the-art robustness on natural corruption benchmarks [1], and also improves model robustness against other common distribution shifts [30, 2]. In particular, our method surpasses state-of-the-art method on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C by $3 . 0 3 \\%$ , $3 . 4 9 \\%$ , $1 . 8 2 \\%$ and $0 . 7 1 \\%$ respectively. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
595,
|
| 229 |
+
825,
|
| 230 |
+
666
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "2 Related Work ",
|
| 237 |
+
"text_level": 1,
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
686,
|
| 241 |
+
321,
|
| 242 |
+
704
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "2.1 Robustness to Distributional Shifts ",
|
| 249 |
+
"text_level": 1,
|
| 250 |
+
"bbox": [
|
| 251 |
+
176,
|
| 252 |
+
718,
|
| 253 |
+
455,
|
| 254 |
+
733
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Hendrycks et al. [1] pioneer the study of prediction errors exhibited by machine learning models on unseen natural corruptions and perturbations. They introduce two variants of the original ImageNet validation set to evaluate the model’s robustness: the ImageNet-C for input corruption robustness, and the ImageNet-P for input perturbation robustness. The former applies 15 diverse corruptions drawn from four main categories (noise, blur, weather, and digital) on ImageNet validation images. The latter contains perturbation sequences generated from each image. Recht et al. [30, 2] collect CIFAR10.1 and ImageNet-V2 as a reproduction of the original CIFAR10 [31] and ImageNet [32] test sets, and find that a minute natural distribution shift caused by the minutiae in dataset collection process leads to a large drop in accuracy for a broad range of image classifiers. Geirhos et al. [33] observe that deep models trained on ImageNet are biased towards textures, and the model robustness can be improved by emphasizing more on global shape features [33–36]. Wang et al. [37] find that the benchmark test performance does not always translate to the real-world generalizability, and propose an efficient method to troubleshoot trained models using real-world unlabeled images. Hendrycks et al. [38] collect ImageNet-A with the new concept of natural adversarial examples: unmodified real-world images that falsify common machine learning models. Other representative benchmark efforts include [39–42, 3], all demonstrating the brittleness of deep models under various distribution shifts. Readers of interest are referred to a recent survey [43]. ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
174,
|
| 263 |
+
744,
|
| 264 |
+
825,
|
| 265 |
+
911
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "",
|
| 272 |
+
"bbox": [
|
| 273 |
+
174,
|
| 274 |
+
92,
|
| 275 |
+
825,
|
| 276 |
+
160
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 3
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "2.2 Data Augmentation: Random and Adversarial ",
|
| 283 |
+
"text_level": 1,
|
| 284 |
+
"bbox": [
|
| 285 |
+
174,
|
| 286 |
+
200,
|
| 287 |
+
535,
|
| 288 |
+
215
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 3
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "Data augmentations have been widely used to increase training set diversity and improve model generalization ability [44, 21, 33, 22]. Among those methods, AugMix [5] achieves the outstanding robustness against natural corruptions by randomly mixing multiple diverse augmentations. It establishes high performance bars on many natural corruption benchmarks including CIFAR10-C, CIFAR100-C and ImageNet-C [1]. DeepAugment [3] feeds clean images to image-to-image models with randomly perturbed model weights to generate visually diverse augmented images. Combined with AugMix, it achieves state-of-the-art robustness on ImageNet-C [1]. Lately, a concurrent work MaxUp [45] generates hard training samples by selecting the worst-case weights in the MixUp [20] pipeline, to improve both model generalization ability and adversarial robustness. Our work shared a similar mindset to MaxUp, but we build on the more sophisticated AugMix pipeline and handle the resulting higher feature heterogeneity using a new normalization module. ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
174,
|
| 297 |
+
236,
|
| 298 |
+
825,
|
| 299 |
+
388
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 3
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "Besides, Adversarial training (AT) [6, 46–52] utilizes adversarial samples as a special data augmentation method, and has also shown promise in improving model robustness against natural corruptions [23] and domain gaps [25], usually at the cost of increasing training time [27] and degrading the standard accuracy on clean images [53]. Volpi et al. [25] and Zhao et al. [26] augment the training set with samples from a fictitious adversarial domain to improve domain adaptation performance. Xie et al. [7] show that adversarial training can improve both standard accuracy and robustness against distribution shifts, with the help of auxiliary batch normalization. Adversarial Noise Training (ANT) [8] uses random Gaussian noise with learned adversarial hyperparameters (mean and variance) as the augmentation. Gowal et al. [54] propose to generate new augmented images by adversarially composing the representations of different original images. Wang et al. [55] improve the robustness of pose estimation models by adversarially mixing different corrupted images as data augmentation. Based on DeepAugment [3], Calian et al. [56] propose AdversarialAugment, which optimizes the parameters of image-to-image models to generate adversarially augmented images, achieving promising results against natural corruptions. Robey et al. [57] proposed model-based robust learning which generates augmented images with adversarial natural variations to improve model robustness against naturally-occurring conditions (e.g., snow, decolorization, shadow, and many others). The authors further generalized such idea to the domain generalization problem and achieved impressive results [58]. ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
173,
|
| 308 |
+
393,
|
| 309 |
+
826,
|
| 310 |
+
642
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "2.3 Normalization ",
|
| 317 |
+
"text_level": 1,
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
683,
|
| 321 |
+
313,
|
| 322 |
+
696
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "Batch Normalization (BN) [59] has been a cornerstone for training deep networks. Inspired by BN, more task-specific modifications are proposed by exploiting different normalization axes, such as Instance Normalization (IN) [60], Layer Normalization (LN) [61] and Group Normalization (GN) [62]. A few latest works investigate to use multiple normalization layers instead of one BN. Zajkac et al. [63] use two separate BNs to handle the domain shift between labeled and unlabeled data in semi-supervised learning. Xie et al. [64, 7] observe the difference between standard and adversarial feature statistics during AT, and craft dual batch normalization (DuBN) to disentangle the standard and adversarial feature statistic to improve both the standard accuracy and robustness. While most deep models just use one normalization type throughout the network, IBN-Net [29] unifies IN and BN in one model. It finds that when applied together, IN tends to learn features invariant to appearance (colors, styles, etc.) changes, while BN is essential for preserving high-level semantic contents. IBN-Net shows that combining IN and BN in an appropriate manner can improve model generalization. A similar combination was also explored in the style transfer field [65], learning to selectively normalize only disturbing styles while preserving useful styles. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
717,
|
| 332 |
+
825,
|
| 333 |
+
911
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "3 Method ",
|
| 340 |
+
"text_level": 1,
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
89,
|
| 344 |
+
271,
|
| 345 |
+
106
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 4
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "3.1 Preliminary: The AugMix Framework ",
|
| 352 |
+
"text_level": 1,
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
119,
|
| 356 |
+
480,
|
| 357 |
+
136
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 4
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "At a high level, AugMix creates a new composite image from a clean sample by first applying several simple augmentation operations to it before combining the results through random linear combinations. This augmentation scheme is coupled with a Jensen-Shannon consistency loss that enforces feature similarity among clean and augmented images. Specifically, AugMix consists of multiple augmentation chains (3 by default), each applied in parallel to the same input image. Each chain composes one to three randomly selected augmentation operations. These augmentations are the same as AutoAugment [21], but excluding those that overlap with ImageNet-C corruptions. The augmented images from each augmentation chains are then combined together with the original, clean sample using a linear combinations with randomly samples coefficients. The final image thus incorporates several sources of randomness, coming respectively from the choice of operations, the severity level of these operations, the lengths of the augmentation chains and the mixing weights. Despite its simplicity, AugMix achieves state-of-the-art corruption robustness. In the remaining of this section, we build on the previous AugMix work and propose AugMax, an augmentation strategy that further improves robustness. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
174,
|
| 366 |
+
146,
|
| 367 |
+
826,
|
| 368 |
+
339
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 4
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "3.2 AugMax: Augmented Training with Unified Diversity and Hardness ",
|
| 375 |
+
"text_level": 1,
|
| 376 |
+
"bbox": [
|
| 377 |
+
176,
|
| 378 |
+
354,
|
| 379 |
+
686,
|
| 380 |
+
371
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 4
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "In this section, we rigorously introduce our new data augmentation method, AugMax, illustrated in Figure 2. At a high level, the main difference between AugMax and AugMix is a new optimization procedure used to select the mixing weights $m$ and $\\pmb { w }$ . ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
173,
|
| 389 |
+
381,
|
| 390 |
+
825,
|
| 391 |
+
424
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 4
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "Given a data distribution $\\mathbb { D }$ over images $\\pmb { x } \\in \\mathbb { R } ^ { d }$ and labels $\\pmb { y } \\in \\mathbb { R } ^ { c }$ , our goal is to train a mapping (classifier) $f : \\mathbb { R } ^ { d } \\mathbb { R } ^ { c }$ from images to output softmax probabilities, parameterized by $\\pmb \\theta$ , that is robust to (unknown) distribution shifts. We minimize the empirical risk ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
428,
|
| 401 |
+
823,
|
| 402 |
+
472
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 4
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "equation",
|
| 408 |
+
"img_path": "images/a631f8158e3c3510a2b1778b286610a810777e1ae37735657adb9f940a9de580.jpg",
|
| 409 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\pmb { \\theta } } \\mathbb { E } _ { ( \\pmb { x } , \\pmb { y } ) \\sim \\mathcal { D } } \\ \\mathcal { L } ( f ( \\pmb { x } ; \\pmb { \\theta } ) , \\pmb { y } ) ,\n$$",
|
| 410 |
+
"text_format": "latex",
|
| 411 |
+
"bbox": [
|
| 412 |
+
398,
|
| 413 |
+
478,
|
| 414 |
+
599,
|
| 415 |
+
501
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "where $\\mathcal L ( \\cdot , \\cdot )$ is the loss function (e.g., cross-entropy). As illustrated in Figure 2, an AugMax image $\\pmb { x } ^ { * }$ is generated by learning a set of adversarial mixing parameters $m ^ { * } , w ^ { * }$ which maximizes the loss: ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
508,
|
| 425 |
+
826,
|
| 426 |
+
537
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 4
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "equation",
|
| 432 |
+
"img_path": "images/14101d09aba4d80f0781989e97d50b52c7a08fe238361310614c6cf7955355bc.jpg",
|
| 433 |
+
"text": "$$\n{ \\pmb x } ^ { * } = g ( { \\pmb x } _ { o r i g } ; m ^ { * } , { \\pmb w } ^ { * } ) ,\n$$",
|
| 434 |
+
"text_format": "latex",
|
| 435 |
+
"bbox": [
|
| 436 |
+
416,
|
| 437 |
+
544,
|
| 438 |
+
578,
|
| 439 |
+
561
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "where $g ( \\cdot )$ denotes the AugMax augmentation function, $\\pmb { x } _ { o r i g }$ is the original image, and ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
173,
|
| 448 |
+
568,
|
| 449 |
+
750,
|
| 450 |
+
583
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "equation",
|
| 456 |
+
"img_path": "images/c23a97a37d79c305bc7020c80779d9ac167706189ff9b52cb1bf591e07cbdc5f.jpg",
|
| 457 |
+
"text": "$$\nm ^ { * } , \\boldsymbol { w } ^ { * } = \\underset { m , w } { \\arg \\operatorname* { m a x } } \\mathcal { L } \\big ( f ( g ( x _ { o r i g } ; m , w ) ; \\theta ) , y \\big ) , \\quad \\mathrm { s . t . } m \\in [ 0 , 1 ] , w \\in [ 0 , 1 ] ^ { b } , w ^ { T } \\mathbf { 1 } = 1 .\n$$",
|
| 458 |
+
"text_format": "latex",
|
| 459 |
+
"bbox": [
|
| 460 |
+
197,
|
| 461 |
+
590,
|
| 462 |
+
781,
|
| 463 |
+
618
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "To simplify the optimization problem in Eq. (3), we use a re-parameterization trick by setting ${ \\pmb w } = \\sigma ( { \\pmb p } )$ , where $\\sigma ( \\cdot )$ is the softmax function, and convert the optimization into a differentiable one: ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
174,
|
| 472 |
+
625,
|
| 473 |
+
831,
|
| 474 |
+
654
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "equation",
|
| 480 |
+
"img_path": "images/9de6ffc90bbf1f5c1267b912d938465cd47e60f4aa4d7946de41bf4a48ca042c.jpg",
|
| 481 |
+
"text": "$$\nm ^ { * } , \\pmb { p } ^ { * } = \\operatorname * { a r g m a x } _ { m \\in [ 0 , 1 ] , \\pmb { p } \\in \\mathbb { R } ^ { b } } \\mathcal { L } ( f ( g ( \\pmb { x } _ { o r i g } ; m , \\sigma ( \\pmb { p } ) ) ; \\theta ) , \\pmb { y } ) ; \\quad \\pmb { w } ^ { * } = \\sigma ( \\pmb { p } ^ { * } )\n$$",
|
| 482 |
+
"text_format": "latex",
|
| 483 |
+
"bbox": [
|
| 484 |
+
269,
|
| 485 |
+
660,
|
| 486 |
+
728,
|
| 487 |
+
689
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Training with AugMax augmentation can then be written altogether as minimax optimization: ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
173,
|
| 496 |
+
694,
|
| 497 |
+
787,
|
| 498 |
+
710
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "equation",
|
| 504 |
+
"img_path": "images/3ef15a396215c1497c3bd04ec00fdd967dcb0a10a41659854538f07087ba2cc7.jpg",
|
| 505 |
+
"text": "$$\n\\begin{array} { r l } & { \\underset { \\theta } { \\operatorname* { m i n } } \\mathbb { E } _ { ( \\boldsymbol { x } , \\boldsymbol { y } ) \\sim \\mathcal { D } } \\frac { 1 } { 2 } [ \\mathcal { L } ( f ( \\boldsymbol { x } ^ { * } ) ; \\boldsymbol { \\theta } ) , \\boldsymbol { y } ) + \\mathcal { L } ( f ( \\boldsymbol { x } ) ; \\boldsymbol { \\theta } ) , \\boldsymbol { y } ) ] + \\lambda \\mathcal { L } _ { c } ( \\boldsymbol { x } , \\boldsymbol { x } ^ { * } ) } \\\\ & { \\mathrm { s . t . } \\boldsymbol { x } ^ { * } = g ( \\boldsymbol { x } ; m ^ { * } , \\boldsymbol { w } ^ { * } ) ; \\boldsymbol { w } ^ { * } = \\sigma ( p ^ { * } ) ; \\boldsymbol { m } ^ { * } , p ^ { * } = \\underset { m \\in [ 0 , 1 ] , p \\in \\mathbb { R } ^ { b } } { \\arg \\operatorname* { m a x } } \\mathcal { L } ( f ( g ( \\boldsymbol { x } ; m , \\sigma ( p ) ) ; \\boldsymbol { \\theta } ) , \\boldsymbol { y } ) } \\end{array}\n$$",
|
| 506 |
+
"text_format": "latex",
|
| 507 |
+
"bbox": [
|
| 508 |
+
186,
|
| 509 |
+
715,
|
| 510 |
+
787,
|
| 511 |
+
776
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "where $\\mathcal { L } _ { c }$ is a consistency loss regularizing augmented images to have similar model outputs with the original images and $\\lambda$ is the trade-off parameter. Our implementation of $\\mathcal { L } _ { c }$ is adapted from [5]: ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
173,
|
| 520 |
+
782,
|
| 521 |
+
825,
|
| 522 |
+
811
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"img_path": "images/e5c2db52eeee70ffef2952f6a0943d11f39eae03ed2a7c376b278502b91f23a3.jpg",
|
| 529 |
+
"text": "$$\n\\mathcal { L } _ { c } ( { \\pmb x } , { \\pmb x } ^ { * } ) = \\mathrm { J S } ( f ( { \\pmb x } ; \\theta ) , f ( \\tilde { { \\pmb x } } ; \\theta ) , f ( { \\pmb x } ^ { * } ; \\theta ) )\n$$",
|
| 530 |
+
"text_format": "latex",
|
| 531 |
+
"bbox": [
|
| 532 |
+
354,
|
| 533 |
+
818,
|
| 534 |
+
643,
|
| 535 |
+
835
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "with $\\mathrm { J } \\mathrm { S } ( \\cdot )$ being the Jensen-Shannon divergence and $\\tilde { \\pmb x }$ being the augmented image generated by AugMix from $_ { \\textbf { \\em x } }$ . In order to reduce the training complexity overhead caused by adversarial training, we employ an accelerated adversarial attack method [28] to solve Eq. (4), which adds only a reasonable amount of extra complexity compared to AugMix baseline. The algorithm to solve Eq. (5) is summarized in Appendix A. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
174,
|
| 544 |
+
842,
|
| 545 |
+
825,
|
| 546 |
+
911
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Visualization of the effects of diversity and hardness To illustrate the motivation behind AugMax, we visualize the feature representations induced by different augmentation methods to showcase their diversity and hardness in Figure 1. Specifically, we visualize the impact of various data augmentation methods on the feature representations obtained with a ResNeXt29 that is normally trained on CIFAR-10. Note that the model is trained using only default standard augmentations (i.e., random flipping and translation), and therefore has never seen augmentation from AugMix, AugMax, or PGD attack. Following [4], we visualize the penultimate layer feature distributions of training samples from three different classes. Three hundred training images are selected from each class for visualization. For AugMix and $\\ell _ { \\infty }$ PGD attack, we use the same hyperparameters in the original papers [5, 6]. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
92,
|
| 556 |
+
826,
|
| 557 |
+
215
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 5
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "We observe in Figure 1 that the clean images form well-separated clusters in the feature space, leaving large regions between those clusters empty. This potentially causes uncertain and unreliable generalization if new test samples (from a shifted distribution) fall into those regions. AugMix enlarges each cluster to cover a broader region, effectively increasing sample diversity. However, after augmentation, very few samples are close to the decision boundaries, revealing an inability to generate hard samples. Samples from the PGD attack, on the other hand, collapse into a small region around the classification borders, losing feature diversity. We further investigate the method through ablation studies in Section 4.3. ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
173,
|
| 566 |
+
222,
|
| 567 |
+
826,
|
| 568 |
+
333
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "3.3 DuBIN: Disentangled Normalization for Heterogeneous Features ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
349,
|
| 579 |
+
663,
|
| 580 |
+
364
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "AugMax leads to better coverage of the input space by unifying sample diversity and hardness, as demonstrated in Figure 1. While such more versatile distribution in data augmentation has the potential to increase robustness, we do observe that naive incorporation of AugMax leads to relatively marginal improvement over AugMix (see Section 4.3). This is due to the comprehensiveness of AugMax can also lead to a higher feature heterogeneity, which may require larger model capacity to encode. To address this problem, we design a novel normalization layer, termed Dual Batch-and-Instance Normalization (DuBIN), to disentangle the instance-level heterogeneity. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
377,
|
| 590 |
+
549,
|
| 591 |
+
541
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 5
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "As illustrated in Figure 3, DuBIN consists of two parallel parts: (1) a dual batch normalization (DuBN) [7], which is the by-default normalization layer to use for adversarial training [7, 64], to disentangle the group-level statistics of the clean and corner-case augmented samples2; and (2) an additional instance normalization, to account for instancelevel feature statistics due to augmentation diversity. At each layer, the input feature is split into halves along the channel dimension: one half is then fed into IN, and the other fed into DuBN. Finally, the outputs of IN and DuBN are concatenated back along the channel dimension for the next layer. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
174,
|
| 600 |
+
547,
|
| 601 |
+
549,
|
| 602 |
+
672
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "image",
|
| 608 |
+
"img_path": "images/37442dadfb77175a367b93c847e84dc9a4c01bb733ad3830171f67604343a360.jpg",
|
| 609 |
+
"image_caption": [
|
| 610 |
+
"Figure 3: Illustration of DuBIN. “Split” and “cat” represent splitting and concatenating on features along the channel dimension. The input feature $x$ with $C$ channels is split into halves (i.e., $x _ { A }$ and $x _ { B }$ , each with $C / 2$ channels). Each half goes into different normalization layers (either IN or DuBN) and the outputs are concatenated back along the channel dimension. "
|
| 611 |
+
],
|
| 612 |
+
"image_footnote": [],
|
| 613 |
+
"bbox": [
|
| 614 |
+
562,
|
| 615 |
+
381,
|
| 616 |
+
823,
|
| 617 |
+
530
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 5
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "",
|
| 624 |
+
"bbox": [
|
| 625 |
+
178,
|
| 626 |
+
672,
|
| 627 |
+
823,
|
| 628 |
+
700
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "To provide additional insights of DuBIN, we compare the BN statistics of AugMax-DuBN and AugMax-DuBIN in Table 1. $\\overline { { \\sigma } } _ { c } ^ { 2 }$ and $\\overline { { \\sigma } } _ { a } ^ { 2 }$ represent the average batch normalization variance over all channels of $B N _ { c }$ and $B N _ { a }$ , respectively. We observe that both $\\overline { { \\sigma } } _ { c } ^ { 2 }$ and $\\overline { { \\sigma } } _ { a } ^ { 2 }$ are smaller in the DuBIN network than those in the DuBN counterpart. This shows that the IN branch in DuBIN can reduce the feature diversity that BN otherwise needs to model, by ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
707,
|
| 638 |
+
485,
|
| 639 |
+
844
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "table",
|
| 645 |
+
"img_path": "images/6521c0c4244f61bde72b4214dc84b4deb685039d7276a902a8bc5bb391b8d53f.jpg",
|
| 646 |
+
"table_caption": [
|
| 647 |
+
"Table 1: BN statistics of different layers in WRN40-2 with DuBN or DuBIN trained on CIFAR100 using AugMax training. "
|
| 648 |
+
],
|
| 649 |
+
"table_footnote": [],
|
| 650 |
+
"table_body": "<table><tr><td colspan=\"2\">Layer</td><td>Block 1 layer 2</td><td>Block1 layer 3</td><td>Block 2 layer 2</td></tr><tr><td rowspan=\"3\">AugMax-DuBN</td><td></td><td>0.0369</td><td>0.0450</td><td>0.0301</td></tr><tr><td>品</td><td>0.0469</td><td>0.0585</td><td>0.0382</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td rowspan=\"3\">AugMax-DuBIN</td><td></td><td>0.0306</td><td>0.0403</td><td>0.0264</td></tr><tr><td></td><td>0.0348</td><td>0.0466</td><td>0.0292</td></tr><tr><td>R</td><td></td><td></td><td></td></tr></table>",
|
| 651 |
+
"bbox": [
|
| 652 |
+
509,
|
| 653 |
+
755,
|
| 654 |
+
808,
|
| 655 |
+
842
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "encoding instance-level diversities. With lower feature variation, BNs can converge better with improved performance [66]. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
844,
|
| 665 |
+
823,
|
| 666 |
+
872
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "4 Experiments ",
|
| 673 |
+
"text_level": 1,
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
89,
|
| 677 |
+
312,
|
| 678 |
+
107
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 6
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "Here, we introduce in detail the experimental setting, and report quantitative results for robustness against natural corruptions and distribution shifts. We show that our method induces better robustness than existing ones. We study the properties of our approach in thorough ablation studies. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
122,
|
| 688 |
+
825,
|
| 689 |
+
165
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 6
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "4.1 Experimental Setup ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
183,
|
| 700 |
+
351,
|
| 701 |
+
198
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Datasets and Models We evaluate our proposed method on CIFAR10, CIFAR100 [31], ImageNet [32] and Tiny ImageNet $\\left( \\mathrm { T I N } \\right)$ . For neural architectures, we use a ResNet18 [67], WRN40-2 [68] and ResNeXt29 [69] on the CIFAR datasets, and ResNet18 on ImageNet and Tiny ImageNet4. To evaluate the model’s robustness against common natural corruptions, we use CIFAR10-C, CIFAR100- C, ImageNet-C and Tiny ImageNet-C (TIN-C) [1], which are generated by adding natural corruptions to the original test set images. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
210,
|
| 711 |
+
826,
|
| 712 |
+
294
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Evaluation Metrics Following established conventions [1, 5], we define robustness accuracy (RA) as the average classification accuracy over all 15 corruptions, to measure the models’ robustness on CIFAR10-C and CIFAR100-C. On ImageNet-C and Tiny ImageNet-C, we use both RA and mean corruption error (mCE) to evaluate robustness. As defined by [1], mCE is the weighted average of target model corruption ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
311,
|
| 722 |
+
485,
|
| 723 |
+
435
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 6
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "table",
|
| 729 |
+
"img_path": "images/65bb5956d15efb8978beddf15b068abe3652c3115f51fdc8b7dc6d813d37da55.jpg",
|
| 730 |
+
"table_caption": [
|
| 731 |
+
"Table 2: Evaluation results on CIFAR10 and CIFAR10-C. The best metric is shown in bold. "
|
| 732 |
+
],
|
| 733 |
+
"table_footnote": [],
|
| 734 |
+
"table_body": "<table><tr><td>Model</td><td>Metric</td><td>Normal</td><td>AugMix</td><td>AugMax-DuBIN</td></tr><tr><td rowspan=\"2\">ResNet18</td><td>SA(%)</td><td>95.56</td><td>95.79</td><td>95.76 (-0.03)</td></tr><tr><td>RA(%)</td><td>74.75</td><td>89.49</td><td>90.36 (+0.87)</td></tr><tr><td rowspan=\"2\">WRN40-2</td><td>SA(%)</td><td>94.78</td><td>95.67</td><td>95.68 (+0.01)</td></tr><tr><td>RA(%)</td><td>73.71</td><td>89.01</td><td>90.67 (+1.66)</td></tr><tr><td rowspan=\"2\">ResNeXt29</td><td>SA(%)</td><td>95.60</td><td>96.25</td><td>96.39 (+0.14)</td></tr><tr><td>RA(%)</td><td>71.70</td><td>89.08</td><td>92.11 (+3.03)</td></tr></table>",
|
| 735 |
+
"bbox": [
|
| 736 |
+
498,
|
| 737 |
+
345,
|
| 738 |
+
821,
|
| 739 |
+
435
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 6
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "errors normalized by the corruption errors of a baseline model across different types of corruptions. We use the AlexNet provide in [1] as the baseline model for experiments on ImageNet. Since [1] does not provide an off-the-shelf baseline model for Tiny ImageNet, we use the conventionally trained ResNet18 on Tiny ImageNet as the baseline model for experiments on Tiny ImageNet. We use standard accuracy (SA) to denote the classification accuracy on the original clean testing images. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
435,
|
| 749 |
+
825,
|
| 750 |
+
505
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 6
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Baseline Methods On CIFAR10-C and CIFAR100-C, we compare our method with the state-of-the-art method, AugMix [5]. In addition, AugMix has previously been combined with other orthogonal methods, such as DeepAugment [3], to further boost performance on ImageNet-C. Specifically, [3] combine DeepAugment as an orthogonal component to AugMix, and achieve state-of-the-art ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
517,
|
| 760 |
+
485,
|
| 761 |
+
640
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 6
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "table",
|
| 767 |
+
"img_path": "images/b95f8172541a3329b5d891c37cf4a09e10607f97bb7aa767e9154c73614f9fc4.jpg",
|
| 768 |
+
"table_caption": [
|
| 769 |
+
"Table 3: Evaluation results on CIFAR100 and CIFAR100-C. The best metric is shown in bold. "
|
| 770 |
+
],
|
| 771 |
+
"table_footnote": [],
|
| 772 |
+
"table_body": "<table><tr><td>Model</td><td>Metric</td><td>Normal</td><td>AugMix</td><td>AugMax-DuBIN</td></tr><tr><td rowspan=\"2\">ResNet18</td><td>SA(%)</td><td>77.99</td><td>78.23</td><td>78.69 (+0.46)</td></tr><tr><td>RA(%)</td><td>48.46</td><td>62.67</td><td>65.75 (+3.08)</td></tr><tr><td rowspan=\"2\">WRN40-2</td><td>SA(%)</td><td>76.19</td><td>77.03</td><td>76.80 (-0.23)</td></tr><tr><td>RA(%)</td><td>46.80</td><td>64.56</td><td>66.35 (+1.79)</td></tr><tr><td rowspan=\"2\">ResNeXt29</td><td>SA(%)</td><td>79.95</td><td>78.58</td><td>80.70 (+2.12)</td></tr><tr><td>RA(%)</td><td>47.76</td><td>65.37</td><td>68.86 (+3.49)</td></tr></table>",
|
| 773 |
+
"bbox": [
|
| 774 |
+
498,
|
| 775 |
+
546,
|
| 776 |
+
821,
|
| 777 |
+
637
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "performance on ImageNet-C with DeepAugment $^ +$ AugMix [3]. To allow comparison with this scenario, we also run the following comparison experiment on ImageNet-C and Tiny ImageNet-C: (1) AugMix v.s. AugMax and (2) DeepAugment $^ +$ AugMix v.s. DeepAugment $^ +$ AugMax. We show that the advantages of AugMax still exist when combined with other orthogonal methods. ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
173,
|
| 786 |
+
640,
|
| 787 |
+
826,
|
| 788 |
+
695
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "Finally, we also compare AugMax with ANT [8], which utilizes Gaussian noises with learned distribution parameters for data augmentation. Since models tend to generalize better on test images similar to those seen during training [70], ANT mainly improves robustness against high frequency corruptions (e.g., additive noises), while achieving comparable robustness on other unseen corruptions (e.g., bluring) with AugMix. Following [8], we perform the comparison on the subset of Tiny ImageNet-C with 12 remaining corruptions after removing all additive noises. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
174,
|
| 797 |
+
703,
|
| 798 |
+
485,
|
| 799 |
+
854
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "table",
|
| 805 |
+
"img_path": "images/aabc68e64ce968bfe73b0d7c75b02f10b41f86800ca9aed521d7ba7a60e61bd4.jpg",
|
| 806 |
+
"table_caption": [
|
| 807 |
+
"Table 4: Evaluation results on ImageNet and ImageNet-C. The best metric is shown in bold. "
|
| 808 |
+
],
|
| 809 |
+
"table_footnote": [],
|
| 810 |
+
"table_body": "<table><tr><td>Method</td><td>SA (%,↑)</td><td>RA (%,↑)</td><td>mCE(%,↓)</td></tr><tr><td>Normal</td><td>69.83</td><td>30.91</td><td>87.47</td></tr><tr><td>AugMix</td><td>68.06 67.62</td><td>34.58 35.01</td><td>83.08 82.56</td></tr><tr><td>AugMax-DuBIN</td><td>(-0.44)</td><td>(+0.43)</td><td>(-0.52)</td></tr><tr><td>DeepAugment + AugMix</td><td>65.32</td><td>45.84</td><td>69.29</td></tr><tr><td>DeepAugment +</td><td>64.43</td><td>46.55</td><td>68.47</td></tr><tr><td>AugMax-DuBIN</td><td>(-0.89)</td><td>(+0.71)</td><td>(-0.82)</td></tr></table>",
|
| 811 |
+
"bbox": [
|
| 812 |
+
500,
|
| 813 |
+
734,
|
| 814 |
+
820,
|
| 815 |
+
854
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "",
|
| 822 |
+
"bbox": [
|
| 823 |
+
173,
|
| 824 |
+
854,
|
| 825 |
+
599,
|
| 826 |
+
868
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Implementation Details We follow [5] for hyperparameter settings. Specifically, for all experiments on CIAFR10 and CIFAR100, we use SGD optimizer with initial learning rate 0.1 and cosine annealing learning rate scheduler, and train all models for 200 epochs. For all experiments on ImageNet, we use SGD optimizer with initial learning rate 0.1 and batch size 256 to train the model for 90 epochs. We reduce the learning rate by $1 / 1 0$ at the 30-th and 60-th epoch. For all experiments on Tiny ImageNet, we train for 200 epochs and decay the learning rate at the 100-th and 150-th epoch. Other hyperparameter settings are identical as those in ImageNet experiments. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
92,
|
| 836 |
+
826,
|
| 837 |
+
189
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 7
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "We set batch size to 256 for all experiments. In Eq. (4), $m$ and $\\pmb { p }$ are uniformly randomly initialized between 0 and 1. We use PGD to update $m$ : first do gradient ascend on $m$ and then project it back into the $[ 0 , 1 ]$ interval. $\\pmb { p }$ is updated using gradient ascend. AugMax follows the same rules as AugMix [5] to randomly select augmentation operation type, severity level and chain length. Following [6], we iteratively solve the inner maximization and outer minimization problems in Eq. (5): the inner maximization is updated for $n$ steps, for every 1 step update on ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
174,
|
| 846 |
+
189,
|
| 847 |
+
483,
|
| 848 |
+
353
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 7
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "table",
|
| 854 |
+
"img_path": "images/501ae04013f4a1903784d4a1135fff609e7484b2c4279b01c47d8716885a1d0e.jpg",
|
| 855 |
+
"table_caption": [
|
| 856 |
+
"Table 5: Evaluation results on TIN and TIN-C. The best metric is shown in bold. "
|
| 857 |
+
],
|
| 858 |
+
"table_footnote": [],
|
| 859 |
+
"table_body": "<table><tr><td>Method</td><td>SA (%,↑)</td><td>RA (%,↑)</td><td>mCE(%,↓)</td></tr><tr><td>Normal</td><td>61.64</td><td>23.91</td><td>100.00</td></tr><tr><td>AugMix</td><td>61.79 62.21</td><td>36.85 38.67</td><td>83.04 80.72</td></tr><tr><td>AugMax-DuBIN</td><td>(+0.42)</td><td>(+1.82)</td><td>(-2.32)</td></tr><tr><td>DeepAugment + AugMix</td><td>59.59</td><td>40.67</td><td>78.28</td></tr><tr><td>DeepAugment +</td><td>59.72</td><td>40.99</td><td>77.83</td></tr><tr><td>AugMax-DuBIN</td><td>(+0.13)</td><td>(+0.32)</td><td>(-0.45)</td></tr></table>",
|
| 860 |
+
"bbox": [
|
| 861 |
+
500,
|
| 862 |
+
224,
|
| 863 |
+
821,
|
| 864 |
+
343
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "the outer minimization. Both $m$ and $\\pmb { p }$ are updated with step size $\\alpha = 0 . 1$ . We set $n = 5$ on ImageNet for efficiency and $n = 1 0$ on other datasets. We set $\\lambda$ in Eq. (5) to be 12 on ImageNet and 10 on all other datasets, except for ResNet18 on CIFAR100 where we find $\\lambda = 1$ leads to better performance. All experiments are conducted on a server with four NVIDIA RTX A6000 GPUs. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
353,
|
| 874 |
+
826,
|
| 875 |
+
409
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 7
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "4.2 Robustness against Natural Corruptions ",
|
| 882 |
+
"text_level": 1,
|
| 883 |
+
"bbox": [
|
| 884 |
+
176,
|
| 885 |
+
428,
|
| 886 |
+
493,
|
| 887 |
+
443
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 7
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"text": "Results on CIFAR10-C and CIFAR100-C are shown in Table 2 and 3 respectively, where “normal” means training with default standard augmentations (e.g., random flipping and translation). From the results, we see that AugMax-DuBIN achieves new state-of-the-art performance on both datasets with different model structures. For example, compared with AugMix, our method improves accuracy by as high as $3 . 0 3 \\%$ and $3 . 4 9 \\%$ on CIFAR10-C and CIFAR100-C, respectively. Moreover, we observe that our method benefits larger models more. Specifically, in both CIFAR10 and CIFAR100 experiments, the largest robustness gain is achieved on ResNeXt29, which has the largest capacity among the three models. ",
|
| 894 |
+
"bbox": [
|
| 895 |
+
173,
|
| 896 |
+
453,
|
| 897 |
+
826,
|
| 898 |
+
564
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 7
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "Results on ImageNet are shown in Table 4. AugMax-DuBIN outperforms AugMix by $0 . 5 2 \\%$ in terms of $\\mathrm { m C E }$ on ImageNet-C. Further combining AugMax-DuBIN with DeepAugment outperforms AugMix $^ +$ DeepAugment by $0 . 8 2 \\%$ in terms of mCE, achieving a new stateof-the-art performance on ImageNet-C. This ",
|
| 905 |
+
"bbox": [
|
| 906 |
+
174,
|
| 907 |
+
570,
|
| 908 |
+
485,
|
| 909 |
+
667
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 7
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "table",
|
| 915 |
+
"img_path": "images/4eafb5798d3f48d4f9bff4f996da476789a3f65abf7e46f49e25b2abb52d6303.jpg",
|
| 916 |
+
"table_caption": [
|
| 917 |
+
"Table 6: Evaluation results on TIN and TIN-C (w/o noise). The best metric is shown in bold. "
|
| 918 |
+
],
|
| 919 |
+
"table_footnote": [
|
| 920 |
+
"shows that AugMax can be used as a more advanced basic building block for model robustness and inspires future researches to build other defense methods on top of it. "
|
| 921 |
+
],
|
| 922 |
+
"table_body": "<table><tr><td>Method</td><td>SA(%,↑)</td><td>RA(%,↑)</td><td>mCE(%,)</td></tr><tr><td>Normal</td><td>61.64</td><td>24.38</td><td>100.00</td></tr><tr><td>AugMix</td><td>61.79</td><td>37.63</td><td>82.54</td></tr><tr><td>ANT</td><td>61.26</td><td>35.30</td><td>85.70</td></tr><tr><td>AugMax-DuBIN</td><td>62.21</td><td>38.66</td><td>80.29</td></tr></table>",
|
| 923 |
+
"bbox": [
|
| 924 |
+
501,
|
| 925 |
+
599,
|
| 926 |
+
821,
|
| 927 |
+
666
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 7
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "Results on Tiny ImageNet-C are shown in Table 5 and Table 6. From Table 5, we see that our method improves the mCE by $2 . 3 2 \\%$ compared with AugMix and $0 . 4 5 \\%$ when combined with DeepAugment. From Table 6, we can see our method outperforms ANT by a considerable margin. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
176,
|
| 936 |
+
702,
|
| 937 |
+
820,
|
| 938 |
+
743
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Training Time Since we use an accelerated adversarial training method [28] to solve Eq. (4), the worst-case mixing strategy can be searched efficiently. As a result, AugMax adds only a modest training overhead over AugMix, and is significantly more efficient than traditional adversarial training (AT). Detailed training time is shown in Table 7. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
755,
|
| 948 |
+
578,
|
| 949 |
+
838
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "table",
|
| 955 |
+
"img_path": "images/2ee30b11027501efa03bdd7216696bfcbd90117b011dd41d2c4257c7c17ce87a.jpg",
|
| 956 |
+
"table_caption": [
|
| 957 |
+
"Table 7: Training time on ImageNet with ResNet18, reported on a single NVIDIA A6000. "
|
| 958 |
+
],
|
| 959 |
+
"table_footnote": [],
|
| 960 |
+
"table_body": "<table><tr><td>Method</td><td>Time (sec/epoch)</td></tr><tr><td>Normal</td><td>2669</td></tr><tr><td>AugMix</td><td>3622</td></tr><tr><td>AT[6]</td><td>37162</td></tr><tr><td>AugMax</td><td>5264</td></tr></table>",
|
| 961 |
+
"bbox": [
|
| 962 |
+
594,
|
| 963 |
+
790,
|
| 964 |
+
820,
|
| 965 |
+
868
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 7
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "4.3 Ablation Study ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
856,
|
| 976 |
+
316,
|
| 977 |
+
871
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 7
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Analysis of Different Normalization Layers In this paragraph, we compare AugMax/AugMix when combined with different normalization schemes. When using DuBN or DuBIN, we route original images to the $B N _ { c }$ , and AugMax/AugMix images to $B N _ { a }$ . Since it is the by-default setting to use disentangled normalization layers (e.g., DuBN) for original and augmentation images in adversarial training [7, 64], we follow this traditional routing and combine AugMax with DuBN or DuBIN instead of BN or IBN. It is fair to compare AugMax-DuBN/DuBIN with either AugMixBN/IBN or AugMix-DuBN/DuBIN. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
883,
|
| 987 |
+
820,
|
| 988 |
+
911
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 7
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "",
|
| 995 |
+
"bbox": [
|
| 996 |
+
174,
|
| 997 |
+
90,
|
| 998 |
+
826,
|
| 999 |
+
160
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 8
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Results are shown in Table 8. AugMax-DuBN outperforms both AugMix-BN and AugMixDuBN, and AugMax-DuBIN outperforms both AugMix-IBN and AugMix-DuBIN. Noticeably, when combined with AugMix, DuBIN also helps improve robustness. This shows the potential of applying DuBIN to other diversity augmentation methods for general performance improvement. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
174,
|
| 1008 |
+
166,
|
| 1009 |
+
485,
|
| 1010 |
+
291
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 8
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "We also conduct stability analyses on these experiments, by showing the statistical significance of the improvements achieved by ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
173,
|
| 1019 |
+
297,
|
| 1020 |
+
485,
|
| 1021 |
+
340
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 8
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "table",
|
| 1027 |
+
"img_path": "images/134aa90dd51e15944e9ce97d82514165d2a9c3f133455c97cadde603c5616614.jpg",
|
| 1028 |
+
"table_caption": [
|
| 1029 |
+
"Table 8: Ablation results on DuBIN. RA $( \\% )$ on CIFAR10/100-C with WRN40-2 backbone are reported. Mean and standard derivation over three random seeds are shown for each experiment. "
|
| 1030 |
+
],
|
| 1031 |
+
"table_footnote": [],
|
| 1032 |
+
"table_body": "<table><tr><td>Method</td><td>CIFAR10-C</td><td>CIFAR100-C</td></tr><tr><td>AugMix-BN</td><td>89.01 (± 0.03)</td><td>64.56 (± 0.04)</td></tr><tr><td>AugMix-IBN</td><td>89.17 (± 0.24)</td><td>63.94 (± 0.28)</td></tr><tr><td>AugMix-DuBN</td><td>89.11 (± 0.21)</td><td>64.07 (± 0.38)</td></tr><tr><td>AugMix-DuBIN</td><td>89.74(± 0.35)</td><td>65.02 (± 0.58)</td></tr><tr><td>AugMax-DuBN</td><td>89.60 (± 0.62)</td><td>65.06 (± 0.28)</td></tr><tr><td>AugMax-DuBIN</td><td>90.67 (± 0.16)</td><td>66.35 (± 0.21)</td></tr></table>",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
500,
|
| 1035 |
+
228,
|
| 1036 |
+
821,
|
| 1037 |
+
334
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 8
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "AugMax-DuBIN over the algorithm randomness. Specifically, we run all experiments in Table 8 using three different random seeds, and report the mean (denoted as $\\mu _ { . }$ ) and standard derivation (denoted as $\\sigma$ ) of accuracy in the form of $\\mu$ $( \\pm \\sigma )$ in Table 8. As we can observe, the improvements achieved by AugMax-DuBIN are statistically significant and consistent. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
340,
|
| 1047 |
+
825,
|
| 1048 |
+
395
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 8
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "AugMax Hyperparameters In this paragraph, we check the sensitivity of AugMax with respect to its hyperparameters: maximization steps $n$ , step size $\\alpha$ and consistency loss tradeoff parameter $\\lambda$ . The results are shown in Table 9. We first fix $\\lambda = 1 0$ and try different values for $n$ and $k$ . We fix $k = 1$ when adjust",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
173,
|
| 1057 |
+
417,
|
| 1058 |
+
437,
|
| 1059 |
+
527
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 8
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "table",
|
| 1065 |
+
"img_path": "images/e98dd2bc541f7677c1502bb41917ed4f8ca77eea1683de8cdd714205a8498da7.jpg",
|
| 1066 |
+
"table_caption": [
|
| 1067 |
+
"Table 9: Ablation results on AugMax-DuBIN update step number $n$ and, early-stopping step $k$ and consistency loss tradeoff parameter $\\lambda$ . Results are reported on CIFAR10/CIFAR10-C with WRN40-2. "
|
| 1068 |
+
],
|
| 1069 |
+
"table_footnote": [],
|
| 1070 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">n</td><td colspan=\"3\"></td><td colspan=\"3\"></td></tr><tr><td></td><td>5</td><td>10</td><td>1</td><td>k2</td><td>3</td><td>1</td><td>入 10</td><td>15</td></tr><tr><td>SA(%)</td><td>95.78</td><td>95.68</td><td>95.68</td><td>95.60</td><td>95.51</td><td>95.90</td><td>95.68</td><td>95.88</td></tr><tr><td>RA (%)</td><td>90.49</td><td>90.67</td><td>90.67</td><td>90.38</td><td>90.21</td><td>88.89</td><td>90.67</td><td>90.30</td></tr></table>",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
452,
|
| 1073 |
+
473,
|
| 1074 |
+
821,
|
| 1075 |
+
523
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 8
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "ing $n$ and fix $n = 1 0$ when adjusting $k$ . As we can see, AugMax is stable with respect to different values of $n$ and $k$ . We use $n = 1 0$ and $k = 1$ as the default values since they empirically yield good results at low training overhead. We then fix $n = 1 0 , k = 1$ and adjust $\\lambda$ . We find robustness peaks at around $\\lambda = 1 0$ , which we set as the default value. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
174,
|
| 1084 |
+
529,
|
| 1085 |
+
825,
|
| 1086 |
+
583
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 8
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Comparison with Different Diversity and Hardness Strategies In this paragraph, we study different strategies to combine diversity and hardness. The results confirm that diversity and hardness are two complementary dimensions and their proper unification boosts model robustness. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
606,
|
| 1096 |
+
825,
|
| 1097 |
+
647
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 8
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Specifically, we compare AugMax with baseline methods from each strategy group (i.e., diversity or hardness), and other possible strategies to combine both. Besides AugMix and Adversarial Training (e.g., PDGAT [6], FAT [28]), which are the two representative examples for diversity and hardness as shown in Figure 1, we also design the following baseline methods. (1) AugMix+PGDAT: using both AugMix and adversarial images for augmentation. This is a naive baseline to combine diversity with hardness. (2) ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
655,
|
| 1107 |
+
485,
|
| 1108 |
+
805
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 8
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "table",
|
| 1114 |
+
"img_path": "images/9cd94270f3007989b307ac992ef7405e97d86da3bf07dd37f2bb5a1478d552eb.jpg",
|
| 1115 |
+
"table_caption": [
|
| 1116 |
+
"Table 10: Results of different augmentation strategies on CIFAR100(-C) with ResNet18. "
|
| 1117 |
+
],
|
| 1118 |
+
"table_footnote": [],
|
| 1119 |
+
"table_body": "<table><tr><td>Method</td><td>Strategy</td><td>SA(%)</td><td>RA(%)</td></tr><tr><td>Normal</td><td>-</td><td>77.99</td><td>48.46</td></tr><tr><td>AugMix [5]</td><td>(diversity)</td><td>78.23</td><td>62.67</td></tr><tr><td>PGDAT [6]</td><td rowspan=\"4\">(hardness)</td><td>60.94</td><td>47.71</td></tr><tr><td>FAT[28]</td><td>61.51</td><td>48.70</td></tr><tr><td>AdvMax</td><td>56.61</td><td>38.65</td></tr><tr><td>AugMix+PGDAT</td><td>61.68</td><td>51.39</td></tr><tr><td>AdvMix</td><td rowspan=\"2\">(diversity &adversity)</td><td>72.36</td><td>56.89</td></tr><tr><td>AugMax-DuBIN</td><td>78.52</td><td>64.02</td></tr></table>",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
500,
|
| 1122 |
+
686,
|
| 1123 |
+
821,
|
| 1124 |
+
803
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 8
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "AdvMix: applying adversarial attacks on the augmentation hyperparameters such as the rotation angles and translation pixel numbers [71, 72], while randomly selecting the mixing parameters; (3) AdvMax: applying adversarial attacks on both the augmentation hyperparameters and the mixing weights.5 Please see Appendix B for their implementation details. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
173,
|
| 1133 |
+
806,
|
| 1134 |
+
826,
|
| 1135 |
+
861
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 8
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "The results are shown in Table 10. AugMax-DuBIN achieves the best performance, outperforming all methods from either diversity or hardness group. This shows diversity and hardness to be indeed complementary. On the other hand, the other two naive baselines jointly considering diversity and hardness achieve poorer performance, showing it nontrivial to design a method achieving good balance between diversity and hardness. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
174,
|
| 1144 |
+
92,
|
| 1145 |
+
825,
|
| 1146 |
+
161
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 9
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "4.4 Robustness against Other Distribution Shifts ",
|
| 1153 |
+
"text_level": 1,
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
174,
|
| 1156 |
+
178,
|
| 1157 |
+
524,
|
| 1158 |
+
193
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Although AugMax mainly aims at improving model robustness against common corruptions, we find that it can also gain robustness against other types of distribution shifts. Specifically, we evaluate on the distribution shifts caused by the differences in data collection process using CIFAR10.1 [30], and against Spatial Transform adversarial Attacks (STA) [71] on CIFAR10-STA. We generate CIFAR10-STA by applying the worst-of- $k$ attack with $k = 1 0$ on CIFAR10 test set following [71]. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
204,
|
| 1168 |
+
531,
|
| 1169 |
+
328
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "table",
|
| 1175 |
+
"img_path": "images/1a0663d0184d4b8bde087a73304f64306f952ffb350c3afa9da25e3f99babe16.jpg",
|
| 1176 |
+
"table_caption": [
|
| 1177 |
+
"Table 11: Robustness against other distribution shifts. Accuracy $( \\% )$ on CIFAR10.1 and CIFAR10-STA are evaluated on ResNeXt29 trained on CIFAR10. "
|
| 1178 |
+
],
|
| 1179 |
+
"table_footnote": [
|
| 1180 |
+
"Results are reported in Table 11 (using the same ResNeXt29 models trained on CIFAR10 as in Section 4.2). AugMax-DuBIN steadily outperforms AugMix against both distributional shifts. "
|
| 1181 |
+
],
|
| 1182 |
+
"table_body": "<table><tr><td>Method</td><td>CIFAR10.1</td><td>CIFAR10-STA</td></tr><tr><td>Normal</td><td>88.90</td><td>30.30</td></tr><tr><td>AugMix</td><td>88.90</td><td>54.30</td></tr><tr><td>AugMax-DuBIN</td><td>90.64</td><td>63.20</td></tr></table>",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
552,
|
| 1185 |
+
262,
|
| 1186 |
+
816,
|
| 1187 |
+
321
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "5 Conclusion ",
|
| 1194 |
+
"text_level": 1,
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
376,
|
| 1198 |
+
299,
|
| 1199 |
+
393
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "In this paper, we propose AugMax, a novel data augmentation strategy, that significantly improves robustness by strategically unifying diversity and hardness. To enable efficient training while facing the resulting heterogeneous features, we design a novel normalization scheme termed DuBIN. Using the combination of AugMax and DuBIN, we consistently demonstrate state-of-the-art robustness on several natural corruption benchmarks. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
401,
|
| 1209 |
+
825,
|
| 1210 |
+
470
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "AugMax unifies diversity and hardness in a heuristic manner. While we showed in ablation studies that AugMax outperforms other heuristic combinations, there may be better trade-offs available. We leave such study for future work and focus in this paper on showing the benefit of unifying diversity and hardness, which were separately considered in previous research. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
174,
|
| 1219 |
+
478,
|
| 1220 |
+
825,
|
| 1221 |
+
534
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 9
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Acknowledgement ",
|
| 1228 |
+
"text_level": 1,
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
176,
|
| 1231 |
+
554,
|
| 1232 |
+
330,
|
| 1233 |
+
570
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 9
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Z.W. is supported by the U.S. Army Research Laboratory Cooperative Research Agreement W911NF17-2-0196 (IOBT REIGN), and an NVIDIA Applied Research Accelerator Program. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
174,
|
| 1242 |
+
579,
|
| 1243 |
+
825,
|
| 1244 |
+
608
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 9
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "References ",
|
| 1251 |
+
"text_level": 1,
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
174,
|
| 1254 |
+
627,
|
| 1255 |
+
266,
|
| 1256 |
+
642
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 9
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "[1] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019. 1, 3, 4, 7 \n[2] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do ImageNet classifiers generalize to ImageNet? arXiv preprint arXiv:1902.10811, 2019. 3 \n[3] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, Dawn Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. In IEEE International Conference on Computer Vision (ICCV), pages 8340–8349, 2021. 1, 2, 4, 7 \n[4] Rafael Müller, Simon Kornblith, and Geoffrey Hinton. When does label smoothing help? arXiv preprint arXiv:1906.02629, 2019. 2, 6 \n[5] Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. AugMix: A simple data processing method to improve robustness and uncertainty. In International Conference on Learning Representations (ICLR), 2020. 1, 2, 4, 5, 6, 7, 8, 9, 15 \n[6] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018. 1, 2, 4, 6, 8, 9 \n[7] Cihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan Yuille, and Quoc V Le. Adversarial examples improve image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 819–828, 2020. 2, 3, 4, 6, 9 \n[8] Evgenia Rusak, Lukas Schott, Roland S Zimmermann, Julian Bitterwolf, Oliver Bringmann, Matthias Bethge, and Wieland Brendel. A simple way to make neural networks robust against diverse image corruptions. In European Conference on Computer Vision (ECCV), pages 53–69, 2020. 1, 2, 4, 7 \n[9] Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial manipulation. In Advances in Neural Information Processing Systems (NeurIPS), pages 2266–2276, 2017. 1 \n[10] Tsui-Wei Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Duane S. Boning, Inderjit S. Dhillon, and Luca Daniel. Towards fast computation of certified robustness for ReLU networks. In International Conference on Machine Learning (ICLR), pages 5273–5282, 2018. \n[11] Tsui-Wei Weng, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, Dong Su, Yupeng Gao, Cho-Jui Hsieh, and Luca Daniel. Evaluating the robustness of neural networks: An extreme value theory approach. In International Conference on Learning Representations (ICLR), 2018. 1 \n[12] Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4480–4488, 2016. 1 \n[13] Dan Hendrycks, Kimin Lee, and Mantas Mazeika. Using pre-training can improve model robustness and uncertainty. In International Conference on Machine Learning (ICML), pages 2712–2721, 2019. 1 \n[14] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang. Adversarial robustness: From self-supervised pre-training to fine-tuning. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 699–708, 2020. \n[15] Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang. Robust pre-training by adversarial contrastive learning. In Advances in Neural Information Processing Systems (NeurIPS), pages 16199–16210, 2020. \n[16] Jiachen Sun, Yulong Cao, Christopher Choy, Zhiding Yu, Chaowei Xiao, Anima Anandkumar, and Z Morley Mao. Improving adversarial robustness in 3D point cloud classification via self-supervisions. In International Conference on Machine Learning Workshop (ICMLW), 2021. 1 \n[17] Richard Zhang. Making convolutional networks shift-invariant again. In International Conference on Machine Learning (ICML), pages 7324–7334, 2019. 1 \n[18] Cristina Vasconcelos, Hugo Larochelle, Vincent Dumoulin, Nicolas Le Roux, and Ross Goroshin. An effective anti-aliasing approach for residual networks. arXiv preprint arXiv:2011.10675, 2020. \n[19] Jungkyu Lee, Taeryun Won, and Kiho Hong. Compounding the performance improvements of assembled techniques in a convolutional neural network. arXiv preprint arXiv:2001.06268, 2020. 1 \n[20] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. MixUp: Beyond empirical risk minimization. In International Conference on Learning Representations (ICLR), 2018. 2, 4 \n[21] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. AutoAugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018. 4, 5 \n[22] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization strategy to train strong classifiers with localizable features. In IEEE International Conference on Computer Vision (ICCV), pages 6023–6032, 2019. 2, 4 \n[23] Justin Gilmer, Nicolas Ford, Nicholas Carlini, and Ekin Cubuk. Adversarial examples are a natural consequence of test error in noise. In International Conference on Machine Learning (ICML), pages 2280–2289, 2019. 2, 4 \n[24] Tianlong Chen, Yu Cheng, Zhe Gan, Jianfeng Wang, Lijuan Wang, Zhangyang Wang, and Jingjing Liu. Adversarial feature augmentation and normalization for visual recognition. arXiv preprint arXiv:2103.12171, 2021. 2 \n[25] Riccardo Volpi, Hongseok Namkoong, Ozan Sener, John C. Duchi, Vittorio Murino, and Silvio Savarese. Generalizing to unseen domains via adversarial data augmentation. In Advances in Neural Information Processing Systems (NeurIPS), pages 5334–5344, 2018. 2, 4 \n[26] Long Zhao, Ting Liu, Xi Peng, and Dimitris Metaxas. Maximum-entropy adversarial data augmentation for improved generalization and robustness. In Advances in Neural Information Processing Systems (NeurIPS), 2020. 2, 4 \n[27] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems (NeurIPS), pages 227–238, 2019. 2, 4 \n[28] Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In International Conference on Machine Learning (ICML), pages 11278–11287, 2020. 3, 5, 8, 9, 15 \n[29] Xingang Pan, Ping Luo, Jianping Shi, and Xiaoou Tang. Two at once: Enhancing learning and generalization capacities via ibn-net. In European Conference on Computer Vision (ECCV), pages 464–479, 2018. 3, 4 \n[30] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do CIFAR-10 classifiers generalize to CIFAR-10? arXiv preprint arXiv:1806.00451, 2018. 3, 10 \n[31] Alex Krizhevsky. Learning multiple layers of features from tiny images. Master’s thesis, University of Toronto, 2009. 3, 7 \n[32] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, 2009. 3, 7 \n[33] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations (ICLR), 2019. 3, 4 \n[34] Katherine Hermann, Ting Chen, and Simon Kornblith. The origins and prevalence of texture bias in convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 19000–19015, 2020. \n[35] Yingwei Li, Qihang Yu, Mingxing Tan, Jieru Mei, Peng Tang, Wei Shen, Alan Yuille, and Cihang Xie. Shape-texture debiased neural network training. In International Conference on Learning Representations (ICLR), 2021. \n[36] Mingjie Sun, Zichao Li, Chaowei Xiao, Haonan Qiu, Bhavya Kailkhura, Mingyan Liu, and Bo Li. Can shape structure features improve model robustness under diverse adversarial settings? In IEEE International Conference on Computer Vision (ICCV), pages 7526–7535, 2021. 3 \n[37] Haotao Wang, Tianlong Chen, Zhangyang Wang, and Kede Ma. I am going MAD: Maximum discrepancy competition for comparing classifiers adaptively. In International Conference on Machine Learning (ICLR), 2020. 3 \n[38] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. 4 \n[39] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems (NeurIPS), pages 10506–10518, 2019. 4 \n[40] Keren Gu, Brandon Yang, Jiquan Ngiam, Quoc Le, and Jonathon Shlens. Using videos to evaluate image model robustness. arXiv preprint arXiv:1904.10076, 2019. \n[41] Vaishaal Shankar, Achal Dave, Rebecca Roelofs, Deva Ramanan, Benjamin Recht, and Ludwig Schmidt. Do image classifiers generalize across time? arXiv preprint arXiv:1906.02168, 2019. \n[42] Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. In Advances in Neural Information Processing Systems (NeurIPS), pages 18583–18599, 2020. 4 \n[43] Sina Mohseni, Haotao Wang, Zhiding Yu, Chaowei Xiao, Zhangyang Wang, and Jay Yadawa. Practical machine learning safety: A survey and primer. arXiv preprint arXiv:2106.04823, 2021. 4 \n[44] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. arXiv preprint arXiv:1708.04896, 2017. 4 \n[45] Chengyue Gong, Tongzheng Ren, Mao Ye, and Qiang Liu. MaxUp: A simple way to improve generalization of neural network training. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2474–2483, 2021. 4 \n[46] Shupeng Gui, Haotao Wang, Haichuan Yang, Chen Yu, Zhangyang Wang, and Ji Liu. Model compression with adversarial robustness: A unified optimization framework. In Advances in Neural Information Processing Systems (NeurIPS), pages 1283–1294, 2019. 4 \n[47] Ting-Kuei Hu, Tianlong Chen, Haotao Wang, and Zhangyang Wang. Triple wins: Boosting accuracy, robustness and efficiency together by enabling input-adaptive inference. In International Conference on Learning Representations (ICLR), 2020. \n[48] Haotao Wang, Tianlong Chen, Shupeng Gui, Ting-Kuei Hu, Ji Liu, and Zhangyang Wang. Once-for-all adversarial training: In-situ tradeoff between robustness and accuracy for free. In Advances in Neural Information Processing Systems (NeurIPS), pages 7449–7461, 2020. \n[49] Tianlong Chen, Zhenyu Zhang, Sijia Liu, Shiyu Chang, and Zhangyang Wang. Robust overfitting may be mitigated by properly learned smoothening. In International Conference on Learning Representations (ICLR), 2020. \n[50] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. In Advances in Neural Information Processing Systems (NeurIPS), pages 2958–2969, 2020. \n[51] Ruize Gao, Feng Liu, Jingfeng Zhang, Bo Han, Tongliang Liu, Gang Niu, and Masashi Sugiyama. Maximum mean discrepancy test is aware of adversarial attacks. In International Conference on Machine Learning (ICML), pages 3564–3575, 2021. \n[52] Jingfeng Zhang, Jianing Zhu, Gang Niu, Bo Han, Masashi Sugiyama, and Mohan Kankanhalli. Geometryaware instance-reweighted adversarial training. In International Conference on Learning Representations (ICLR), 2020. 4 \n[53] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations (ICLR), 2019. 4 \n[54] Sven Gowal, Chongli Qin, Po-Sen Huang, Taylan Cemgil, Krishnamurthy Dvijotham, Timothy Mann, and Pushmeet Kohli. Achieving robustness in the wild via adversarial mixing with disentangled representations. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1211–1220, 2020. 4 \n[55] Jiahang Wang, Sheng Jin, Wentao Liu, Weizhong Liu, Chen Qian, and Ping Luo. When human pose estimation meets robustness: Adversarial algorithms and benchmarks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11855–11864, 2021. 4 \n[56] Dan A Calian, Florian Stimberg, Olivia Wiles, Sylvestre-Alvise Rebuffi, Andras Gyorgy, Timothy Mann, and Sven Gowal. Defending against image corruptions through adversarial augmentations. arXiv preprint arXiv:2104.01086, 2021. 4 \n[57] Alexander Robey, Hamed Hassani, and George J Pappas. Model-based robust deep learning: Generalizing to natural, out-of-distribution data. arXiv preprint arXiv:2005.10247, 2020. 4 \n[58] Alexander Robey, George J Pappas, and Hamed Hassani. Model-based domain generalization. In Advances in Neural Information Processing Systems (NeurIPS), 2021. 4 \n[59] Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pages 448–456, 2015. 4 \n[60] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. 4 \n[61] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. 4 \n[62] Yuxin Wu and Kaiming He. Group normalization. In European Conference on Computer Vision (ECCV), pages 3–19, 2018. 4 \n[63] Michał Zaj ˛ac, Konrad Zołna, and Stanisław Jastrz˛ebski. Split batch normalization: Improving semi- ˙ supervised learning under domain shift. arXiv preprint arXiv:1904.03515, 2019. 4 \n[64] Cihang Xie and Alan Yuille. Intriguing properties of adversarial training. In International Conference on Learning Representations (ICLR), 2020. 4, 6, 9 \n[65] Hyeonseob Nam and Hyo-Eun Kim. Batch-instance normalization for adaptively style-invariant neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 2558–2567, 2018. 4 \n[66] Xiangru Lian and Ji Liu. Revisit batch normalization: New understanding and refinement via composition optimization. In International Conference on Artificial Intelligence and Statistics (AISTATS), pages 3254–3263, 2019. 6 \n[67] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. 7 \n[68] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conference (BMVC), pages 87.1–87.12, 2016. 7 \n[69] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1492–1500, 2017. 7 \n[70] Aharon Azulay and Yair Weiss. Why do deep convolutional networks generalize so poorly to small image transformations? arXiv preprint arXiv:1805.12177, 2018. 7 \n[71] Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. Exploring the landscape of spatial robustness. In International Conference on Machine Learning (ICML), pages 1802–1811, 2019. 9, 10, 15 \n[72] Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. In International Conference on Learning Representations (ICLR), 2018. 9, 15 ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
176,
|
| 1265 |
+
650,
|
| 1266 |
+
826,
|
| 1267 |
+
911
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 9
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
171,
|
| 1276 |
+
75,
|
| 1277 |
+
828,
|
| 1278 |
+
917
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 10
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
171,
|
| 1287 |
+
60,
|
| 1288 |
+
828,
|
| 1289 |
+
916
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 11
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
171,
|
| 1298 |
+
70,
|
| 1299 |
+
828,
|
| 1300 |
+
917
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 12
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
171,
|
| 1309 |
+
92,
|
| 1310 |
+
828,
|
| 1311 |
+
441
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 13
|
| 1314 |
+
}
|
| 1315 |
+
]
|
parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/P5MtdcVdFZ4/P5MtdcVdFZ4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/PbEHqvFtcS/PbEHqvFtcS.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/PbEHqvFtcS/PbEHqvFtcS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/PbEHqvFtcS/PbEHqvFtcS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/PbEHqvFtcS/PbEHqvFtcS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1x2PCNKDB/S1x2PCNKDB.md
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TASK-RELEVANT ADVERSARIAL IMITATION LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We show that a critical problem in adversarial imitation from high-dimensional sensory data is the tendency of discriminator networks to distinguish agent and expert behaviour using task-irrelevant features beyond the control of the agent. We analyze this problem in detail and propose a solution as well as several baselines that outperform standard Generative Adversarial Imitation Learning (GAIL). Our proposed solution, Task-Relevant Adversarial Imitation Learning (TRAIL), uses a constrained optimization objective to overcome task-irrelevant features. Comprehensive experiments show that TRAIL can solve challenging manipulation tasks from pixels by imitating human operators, where other agents such as behaviour cloning (BC), standard GAIL, improved GAIL variants including our newly proposed baselines, and Deterministic Policy Gradients from Demonstrations (DPGfD) fail to find solutions, even when the other agents have access to task reward.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Generative Adversarial Networks (GANs) have produced breath-taking conditional image synthesis results (Goodfellow et al., 2014; Brock et al., 2019), and have inspired adversarial learning approaches to imitating behavior. In Generative Adversarial Imitation Learning (GAIL) (Ho & Ermon, 2016), a discriminator network is trained to distinguish agent and expert behaviour through its observations, and is then used as a reward function. GAIL agents can overcome the exploration challenge by taking advantage of expert demonstrations, while also achieving high asymptotic performance by learning from agent experience.
|
| 12 |
+
|
| 13 |
+
Despite the huge promise of GAIL, it has not yet had the same impact as GANs; in particular, robust GAIL from pixels for control applications remains a challenge. Here, we study a key shortcoming of GAIL: the tendency of the discriminator to mainly exploit task-irrelevant features. For example, by focusing on slight background differences, a discriminator can achieve perfect generalization, assigning zero reward to all held-out agent observations. However, this discriminator does not yield an informative reward function because it ignores behavior.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: GAIL and TRAIL succeed at lifting (a), but when distractor objects are added, GAIL fails while TRAIL succeeds (b). Due to robustness to initial conditions, TRAIL can stack from pixels while standard GAIL fails (c). We witness this difference again in insertion with distractors (d). A video showing agents performing these tasks can be seen at https://youtu.be/Rz5G15rDKcg .
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 2: Illustration of several task-irrelevant changes between the expert demonstrations and the distribution of agent observations, for the lift (red cube) task. The naively-trained discriminator network will use these differences rather than task performance to distinguish agent and expert.
|
| 20 |
+
|
| 21 |
+
Assuming there is an expert policy $\pi _ { E }$ that is optimal for an unknown reward function, here we refer to a feature as task-irrelevant if it does not affect that reward. For example, if the task is to lift a red block, the positions of other blocks would be task-irrelevant; see Figures 1 and 2.
|
| 22 |
+
|
| 23 |
+
This paper makes the following contributions:
|
| 24 |
+
|
| 25 |
+
1. It reveals a fundamental limitation of GAIL by showing that discriminators do in practice exploit task-irrelevant information, thereby resulting in poor task performance.
|
| 26 |
+
2. It introduces powerful GAIL baselines. In particular, it shows that standard regularization and data augmentation are generally useful and improve upon standard GAIL.
|
| 27 |
+
3. It shows that these improvements to GAIL, as well as other improvements proposed by Reed et al. (2018), do not completely solve the problem, allowing GAIL agents to fail catastrophically with the addition of task-irrelevant distractors.
|
| 28 |
+
4. It introduces Task Relevant Adversarial Imitation Learning (TRAIL), using constrained optimization to force the discriminator to focus on the relevant aspects of the task, which improves performance dramatically on manipulation tasks from pixels (see Figure 1).
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
The use of demonstrations to help agent training has been studied extensively in robotics (Bakker & Kuniyoshi, 1996; Kawato et al., 1994; Miyamoto et al., 1996) with approaches ranging from Q-learning (Schaal, 1997) to behavioral cloning (BC) (Pomerleau, 1989).
|
| 33 |
+
|
| 34 |
+
BC: BC is effective in solving many control problems (Pomerleau, 1989; Finn et al., 2017; Duan et al., 2017; Rahmatizadeh et al., 2018). It has also been successfully applied to initialize RL training (Rajeswaran et al., 2017). It, however, suffers from compounding errors as initial small deviations from the expert behaviors tend to cause bigger differences (Ross et al., 2011). This often necessitates a large number of demonstrations for satisfactory performance. Furthermore, BC typically does not lead to agents that are superior to their demonstrators.
|
| 35 |
+
|
| 36 |
+
Inverse RL: Ziebart et al. (2008); $\mathrm { N g }$ et al. (2000); Abbeel & $\mathrm { N g } \left( 2 0 0 4 \right)$ propose inverse reinforcement learning (IRL) as a way of learning reward functions from demonstrations. Reinforcement learning can then be used to optimize that learned reward. Recently, Finn et al. (2016b) approached continuous robotic control problems with success by applying Maximum Entropy IRL algorithms which are very closely related to GAIL (Finn et al., 2016a) and have similar drawbacks.
|
| 37 |
+
|
| 38 |
+
Learning from Demonstrations: Hester et al. (2018) developed deep Q-Learning from demonstration (DQfD), in which expert trajectories are added to experience replay and jointly used to train agents along with their own experiences. This was later extended by Vecerik et al. (2017) and Pohlen et al. (2018) to better handle sparse-reward problems in control and Atari games respectively. Despite their efficiency, this class of methods still requires access to rewards in order to learn.
|
| 39 |
+
|
| 40 |
+
GAIL: Following the success of Generative Adversarial Networks (Goodfellow et al., 2014) in image generation, GAIL (Ho & Ermon, 2016) applies adversarial learning to the problem of imitation. Although many variants are introduced in the literature (Li et al., 2017; Fu et al., 2018; Merel et al., 2017; Zhu et al., 2018; Baram et al., 2017), making GAIL work for high-dimensional input spaces, particularly raw pixels, remains a challenge.
|
| 41 |
+
|
| 42 |
+
A few papers (Peng et al., 2018; Reed et al., 2018; Blondé & Kalousis, 2018) seek to address the problem of overfitting the discriminator. Peng et al. (2018) introduces the Variational Bottleneck to regularize the discriminator. Reed et al. (2018) proposes to not train the vision module of the discriminator (e.g. use the vision module of the critic network instead) and only train a tiny network on top of the vision module to discriminate. Blondé & Kalousis (2018) follow a similar approach. Unstructured regularization, however, cannot stop the discriminator from fitting to features that are systematically different between the agents’ and the demonstration’s behavior, like those illustrated in Figure 2. TRAIL, on the other hand, is much less prone to overfitting to these features.
|
| 43 |
+
|
| 44 |
+
Stadie et al. (2017) extend GAIL to the setting of third person imitation, in which the demonstrator and agent observations come from different views. To prevent the discriminator from discriminating based on viewpoint domain, they use gradient flipping from an auxiliary classifier to learn domain-invariant features. Our approach is not to learn domain-invariant features, but instead learn domain-agnostic discriminators that only focus on behavior.
|
| 45 |
+
|
| 46 |
+
Several recent works have focused on improving the sample efficiency of GAIL (Blondé & Kalousis, 2018; Sasaki et al., 2018). Common to these approaches and to this work, is the use of off-policy actor critic agents and experience replay, to improve the utilization of available experience.
|
| 47 |
+
|
| 48 |
+
# 3 REINFORCEMENT LEARNING AND ADVERSARIAL IMITATION
|
| 49 |
+
|
| 50 |
+
Following the notation of Sutton & Barto (2018), a Markov Decision Process (MDP) is a tuple $( \mathcal { S } , \mathcal { A } , R , \mathbf { \bar { P } } , \gamma )$ with states $s$ , actions $\mathcal { A }$ , reward function $R ( s , a )$ , transition distribution $P ( s ^ { \prime } | s , a )$ , and discount $\gamma$ . An agent in state $s \in S$ takes action $a \in A$ according to its policy $\pi$ and moves to state $s ^ { \prime } \in \varDelta$ according to the transition distribution. The goal of RL algorithms is to find a policy that maximizes the expected sum of discounted rewards, represented by the action value function $\begin{array} { r } { Q ^ { \pi } ( s , a ) = \mathbb { E } ^ { \pi } [ \sum _ { t = 0 } ^ { \infty } \overset { \cdot } { \gamma } ^ { t } R ( s _ { t } , a _ { t } ) ] } \end{array}$ , where $\mathbb { E } ^ { \pi }$ is an expectation over trajectories starting from $s _ { 0 } = s$ and taking action $a _ { 0 } = a$ and thereafter running the policy $\pi$ .
|
| 51 |
+
|
| 52 |
+
To apply RL, it is essential that we have access to the reward function which is often hard to design and evaluate (Singh et al., 2019). In addition, sparse rewards can cause exploration difficulties that pose great challenges to RL algorithms. We therefore look to imitation learning and particularly GAIL to derive a reward function from expert demonstrations. In GAIL, a reward function is learned by training a discriminator network $D ( s , a )$ to distinguish between agent and expert state-action pairs. The GAIL objective is thus formulated as follows:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\operatorname* { m i n } _ { \pi } \operatorname* { m a x } _ { D } \mathbb { E } _ { ( s , a ) \sim \pi _ { E } } [ \log D ( s , a ) ] + \mathbb { E } _ { ( s , a ) \sim \pi } [ \log ( 1 - D ( s , a ) ) ] - \lambda _ { H } H ( \pi ) ,
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
where $\pi$ is the agent policy, $\pi _ { E }$ the expert policy, and $H ( \pi )$ an (optional) entropy regularizer. The reward function is defined simply: $R ( s , a ) = - \log ( 1 - D ( s , a ) )$ .
|
| 59 |
+
|
| 60 |
+
GAIL is theoretically appealing and practically simple. The discriminator, however, can focus on any features to discriminate, whether these features are task-relevant or not. In the next subsection we describe a way to constrain the discriminator network in order to prevent it from using task-irrelevant details to distinguish agent and expert data.
|
| 61 |
+
|
| 62 |
+
# 4 TASK-RELEVANT ADVERSARIAL IMITATION LEARNING (TRAIL)
|
| 63 |
+
|
| 64 |
+
We want the discriminator to focus on task-relevant features. Our proposed solution, TRAIL, prevents the discriminator from being able to distinguish expert and agent behaviour based on selected aspects of the data. For instance, the discriminator should distinguish agent and expert frames only when meaningful behavior is present in those frames. In the absence of behavior useful to solve the task, e.g. in initial frames prior to the execution of the behavior, the discriminator should be agnostic.
|
| 65 |
+
|
| 66 |
+
To this end, we propose a constraint for the discriminator, such that its accuracy must not be greater than chance on a particular set of observations $\mathcal { L }$ that we will call the invariant set. $\mathcal { T }$ will include only observations that can be distinguished as agent or expert in task-irrelevant ways. Precisely, we formulate TRAIL in terms of the following constrained optimization problem:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\begin{array} { r l } { \displaystyle \mathop { \operatorname* { m a x } } _ { \psi } } & { \mathbb { E } _ { s \sim \pi _ { E } } \left[ \log D _ { \psi } ( s ) \right] + \mathbb { E } _ { s \sim \pi _ { \theta } } \left[ \log ( 1 - D _ { \psi } ( s ) ) \right] } \\ { \displaystyle s . t . } & { \frac { 1 } { 2 } \mathbb { E } _ { s \sim \pi _ { E } } \left[ { \mathbf 1 } _ { { \mathbf D } _ { \psi } ( { \mathbf s } ) \geq \frac { 1 } { 2 } } \mid s \in { \mathbb Z } \right] + \frac { 1 } { 2 } \mathbb { E } _ { s \sim \pi _ { \theta } } \left[ { \mathbf 1 } _ { { \mathbf D } _ { \psi } ( { \mathbf s } ) < \frac { 1 } { 2 } } \mid s \in { \mathbb Z } \right] \le \frac { 1 } { 2 } . } \end{array}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
To apply the above constraint in practice, we can optimize the reverse of the objective function on $\mathcal { T }$ That is, given a batch of $N$ examples $s _ { e } \sim \pi _ { E } , s _ { \theta } \sim \pi _ { \theta }$ from the expert and agent, and $\hat { s } _ { e } \sim \pi _ { E }$ and $\hat { s } _ { \theta } \sim \pi _ { \theta }$ both in the set $\mathcal { T }$ , we maximize the following augmented objective function:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r l } & { \mathcal { L } _ { \psi } \big ( s _ { e } , s _ { \theta } , \hat { s } _ { e } , \hat { s } _ { \theta } \big ) = \sum _ { i = 1 } ^ { N } \log D _ { \psi } \left( s _ { e } ^ { ( i ) } \right) + \log \left( 1 - D _ { \psi } \left( s _ { \theta } ^ { ( i ) } \right) \right) } \\ & { \qquad - \lambda \left[ \sum _ { i = 1 } ^ { N } \log D _ { \psi } \left( \hat { s } _ { e } ^ { ( i ) } \right) + \log \left( 1 - D _ { \psi } \left( \hat { s } _ { \theta } ^ { ( i ) } \right) \right) \right] \mathbf { 1 } _ { a c c u r a c y ( \hat { s } _ { e } , \hat { s } _ { \theta } ) \geq \frac { 1 } { 2 } } , } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $a c c u r a c y ( \cdot , \cdot )$ is defined as the average of discriminator accuracies:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
a c c u r a c y ( \hat { s } _ { e } , \hat { s } _ { \theta } ) = \frac { 1 } { 2 N } \sum _ { i = 1 } ^ { N } \left[ \mathbf { 1 } _ { \mathrm { D } _ { \psi } \left( \hat { \mathbf { s } } _ { e } ^ { ( \mathrm { i } ) } \right) \geq \frac { 1 } { 2 } } + \mathbf { 1 } _ { \mathrm { D } _ { \psi } \left( \hat { \mathbf { s } } _ { \theta } ^ { ( \mathrm { i } ) } \right) < \frac { 1 } { 2 } } \right] .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
The scalar $\lambda \geq 0$ is a tunable hyperparameter.
|
| 85 |
+
|
| 86 |
+
We used single frames as states but sequences can also be used, and we do not require expert actions. Not requiring actions enables learning in very off-policy settings, where the action dimensions and distributions of the demonstrator (another robot or human) are different from those of the agent.
|
| 87 |
+
|
| 88 |
+
# 4.1 THE SELECTION OF THE INVARIANT SET
|
| 89 |
+
|
| 90 |
+
The selection of the invariant set $\mathcal { T }$ is a design choice. In general, we could always contrive nonstationary and adversarial ways of making this choice difficult. However, we argue that in many situations of great interest, including our robotic manipulation setup, it is easy to propose effective and very general invariant sets.
|
| 91 |
+
|
| 92 |
+
A straightforward way to collect robot data is to execute a random policy. We can then use the resulting random episodes, for both expert and agent, to construct the invariant set $\mathcal { T }$ . Another way to construct $\mathcal { T }$ is to use early frames from both expert and agent episodes. Since in early frames little or no task behavior is apparent, this strategy turns out to be effective and no extra data has to be collected. This strategy also improves robustness with respect to variation in the initial conditions of the task; see for example block insertion in Figure 1(d).
|
| 93 |
+
|
| 94 |
+
Importantly, if the set $\mathcal { T }$ captures some forms of irrelevance but not all forms, it will nonetheless always help in improving performance. In this regard, TRAIL will dominate its GAIL predecessor whenever the designer has some prior on what aspects of the data might be task irrelevant.
|
| 95 |
+
|
| 96 |
+
# 5 EXPERIMENTS
|
| 97 |
+
|
| 98 |
+
We focus on solving robot manipulation tasks. The environment implements two work-spaces: one with a Kinova Jaco arm (Jaco), and the other with a Sawyer arm (Sawyer). See supplementary material A.1 for a detailed description. Environment rewards, which are not used by GAIL-based methods, are sparse and equal to $+ 1$ for each step when a given task is solved and 0 otherwise. The maximum reward for the episode is 200, since this is the length of a single evaluation episode.
|
| 99 |
+
|
| 100 |
+
Our agent is based on the off-policy D4PG algorithm (Barth-Maron et al., 2018) because of its stability and data-efficiency (see supplementary material A.6). Following Vecerik et al. (2017), we add expert demonstrations into the agents’ experience replay, and refer to the resulting RL algorithm as D4PG from Demonstrations (D4PGfD). For each task we collect 100 human demonstrations.
|
| 101 |
+
|
| 102 |
+
Data augmentation Traditional data augmentation has proved beneficial in imitation learning (Berseth & Pal, 2019). Surprisingly, to the best of our knowledge, this has not been explicitly studied in prior publications on GAIL. However, we find that data augmentation is a generally useful component to prevent discriminator overfitting. It drastically improves the baseline GAIL agent, and is necessary to solve any of the harder manipulation tasks. We distort images by randomly changing brightness, contrast and saturation; random cropping and rotation; adding Gaussian noise. When multiple sensor inputs are available (e.g. multiple cameras), we also randomly drop out these inputs, but leaving at least one active.
|
| 103 |
+
|
| 104 |
+
All discriminator-based methods in this work (including all baselines) use data augmentation except as indicated in the relevant ablations (see Section 5.2). We also considered regularizing the GAIL discriminator with spectral normalization (Miyato et al., 2018). It performed slightly better than GAIL, but still failed in the presence of distractor objects, and we thus omit spectral normalization in the main experiments for simplicity.
|
| 105 |
+
|
| 106 |
+
Actor early stopping When the agent has learned the desired behavior, and the resulting data is used for training, the discriminator will become unable to distinguish expert and agent observations based only on behavior. This forces the discriminator to rely on task-irrelevant information.
|
| 107 |
+
|
| 108 |
+
To avoid this scenario, we propose to restart each actor episode after a certain number of steps such that successful behavior is rarely represented in agent data. This enables the discriminator to recognize the goal condition, which appears frequently at the end of demonstration episodes, as representative of expert behavior. To avoid hand-tuning the stopping step number, we found that the discriminator score can be used to derive an adaptive stopping criterion. Concretely, we restart an episode if the discriminator score at the current step exceeds the median score of the episode so far for $T _ { p a t i e n c e }$ consecutive steps (in practice we set $T _ { p a t i e n c e } = 1 0$ ).
|
| 109 |
+
|
| 110 |
+
We set invariant set hyperparameter $\lambda = 1$ and use adaptive early stopping for TRAIL. The ablation with $\lambda = 0$ , i.e. adaptive early stopping only, is referred to as TRAIL-0. Hence, the only difference between TRAIL-0 and TRAIL is that the later uses invariant set constraints.
|
| 111 |
+
|
| 112 |
+
# 5.1 BLOCK LIFTING WITH DISTRACTORS
|
| 113 |
+
|
| 114 |
+
In this section, we consider two variants of the lift task in the Sawyer work space: a) lift alone, where only one red cube is present, b) lift distracted, with two extra blocks (blue and green, see Figure 9). We show how adding these additional distractors affects the training procedure.
|
| 115 |
+
|
| 116 |
+
We first compare our method to baselines. In doing so, the invariant set is constructed using the first 10 frames from every episode, as in the rest of the work. This choice does not require us to collect any extra data, and hence the comparison with baselines is fair. In the next section, we elaborate on the choice of the invariant set and provide additional experimental results.
|
| 117 |
+
|
| 118 |
+
As baselines, we run BC and GAIL (with data augmentation). Baseline GAIL is the strongest we were able to implement. The only difference between this baseline and TRAIL is the use of invariant set constrains and actor early stopping (code, agent configurations like number of actors, and network architecture are the same). We additionally consider the approaches proposed by Reed et al. (2018) as GAIL-based baselines; using either a randomly initialized convolutional network, or a convolutional critic network, to provide fixed vision features on top of which a tiny discriminator network is trained. We call these two baselines random and critic respectively. Finally, to show the importance of actor early stopping, we run TRAIL-0 (Fig. 3).
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 3: Results for lift alone, lift distracted, and lift distracted seeded. Only TRAIL excels.
|
| 122 |
+
|
| 123 |
+
All methods perform satisfactorily on lift alone, but the proposed methods TRAIL-0 and TRAIL do best. As expected, the performance of BC on lift distracted is similar to its performance on lift alone, despite the two additional blocks. The two additional blocks in lift distracted affect the GAIL-based baselines, despite being irrelevant to the task.
|
| 124 |
+
|
| 125 |
+
To understand this effect, we conducted an additional experiment (lift distracted seeded). Here the initial block positions are randomly drawn from the expert demonstrations. Therefore, it is impossible to discriminate between expert and actor episodes using the first few frames of an episode. Note this initialization procedure is not applied to the evaluation actor, keeping the evaluation scores comparable between lift distracted and lift distracted seeded.
|
| 126 |
+
|
| 127 |
+
This experiment exposes one major culprit behind the performance degradation of GAIL: memorization. The discriminator can achieve perfect accuracy by memorizing all 100 initial positions from the demonstration set, making the reward function uninformative. By constraining the discriminator, TRAIL squeezes out this irrelevant information and succeeds in solving the task in the presence of distractions. TRAIL is the only method that is able to handle the variety of initial cube positions during training, achieving better than expert performance on lift distracted.
|
| 128 |
+
|
| 129 |
+
Interestingly, random performs reasonably on lift distracted. Given random’s strong performance, we conducted additional experiments to evaluate its effectiveness when trained with adaptive early stopping and present the results in Figure 12 of the supplementary material.
|
| 130 |
+
|
| 131 |
+
# CONSTRUCTING THE INVARIANT SET $\mathcal { T }$
|
| 132 |
+
|
| 133 |
+
In the previous subsection, early frames were used to construct the invariant set (TRAIL-early). Here, we evaluate another previously mentioned approach for constructing $\mathcal { T }$ ; random policy (TRAILrandom). The lift distracted task caused all baselines to fail, but was solved by TRAIL. We introduce a harder version of the task, where the expert appearance is different, to tease out the differences between TRAIL-early and TRAIL-random. The difference in appearance between the expert and imitator allows the GAIL discriminator to trivially distinguish them. The results and the differences in the expert appearance are presented in Figure 4.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 4: Lift red block, where expert has a different body appearance, and with distractor blocks. TRAIL-random outperforms GAIL, and performs on par with TRAIL-early.
|
| 137 |
+
|
| 138 |
+
The new task is indeed harder and it takes longer for TRAIL methods to achieve performance better than BC baseline, which is not affected by the different body appearance. GAIL is clearly outperformed and does not take off.
|
| 139 |
+
|
| 140 |
+
The difference between TRAIL methods is negligible. We also tried to mix them but the differences remain imperceptible. Hence, in the following experiments we simply use early frames. This choice is pragmatic as it does not require that we collect any extra data, and hence the comparison with GAIL and other baselines is fair. It is also very simple to apply in practice, even if one does not have access to the expert setup anymore. Finally, it is general and powerful enough to be successfully used across all robotic manipulation tasks considered in this work.
|
| 141 |
+
|
| 142 |
+
To decide how many initial frames should be used to construct $\mathcal { T }$ , we conducted an ablation study and found out that the method is not very sensitive to this choice (see supplementary material A.2). Hence, we chose 10 initial frames, and intentionally used the same number for all tasks to further emphasize generality of this choice.
|
| 143 |
+
|
| 144 |
+
# 5.2 ABLATION STUDIES
|
| 145 |
+
|
| 146 |
+
# MEASURING DISCRIMINATOR MEMORIZATION OF TASK-IRRELEVANT FEATURES
|
| 147 |
+
|
| 148 |
+
In this section, we experimentally confirm that memorization is a limiting factor of GAIL methods. We equipped the discriminator with two extra heads whose inputs are the final spatial layer of the
|
| 149 |
+
|
| 150 |
+
ResNet for the lift distracted task. The first head is trained on the first frames only, and has the same target as the main head (i.e. discriminating between agent and expert). To train the second head, we randomly divide the expert demonstrations into two equi-numerous subsets, and the task is to predict to which of these randomly chosen sets the demonstration was assigned to. Both heads are trained via backpropagation but their gradient is not propagated to the ResNet so they do not influence the training procedure directly.
|
| 151 |
+
|
| 152 |
+
If our claim is correct, we expect the extra heads to have higher accuracy for TRAIL-0 as compared to TRAIL, since TRAIL representations are penalized for having features triggering memorization, i.e. the features should not aid discriminating based on the first frames or predicting a random label for each expert demonstration. No reasonably performing method is able to force $50 \%$ accuracy for extra heads since some features are important to solve the task (e.g. the position of the red cube).
|
| 153 |
+
|
| 154 |
+
We also collected 25 extra holdout demonstrations and visualize the average discriminator prediction on them, and compare with predictions on the training demonstrations.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 5: Demonstrating the memorization problem on the lift distracted task (here higher accuracy is worse). Accuracy of different discriminator heads is presented (A-D). In A, the overall accuracy for all timesteps. Then main $\mathrm { ( m ) }$ and extra (e) heads accuracy for the first steps are presented in B and C, respectively. Accuracy of the head predicting randomly assigned demonstration class is shown in D. Average discriminator predictions for training and holdout demonstration are shown in E and F.
|
| 158 |
+
|
| 159 |
+
In Fig. 5, we see the overall accuracy of the main head for TRAIL-0 is significantly higher, and the difference is larger for early steps (when TRAIL achieves only $50 \%$ , as expected). TRAIL representations are less helpful for extra heads (see Figure 5 C-D). Finally, TRAIL-0 clearly overfits on training demonstrations, predicting almost the maximum score, while only $\sim 0 . 2 5$ is predicted for holdout demonstrations. The TRAIL average predictions for both datasets are almost identical.
|
| 160 |
+
|
| 161 |
+
ACTOR EARLY STOPPING (TRAIL-0)
|
| 162 |
+
|
| 163 |
+
In this section, we analyze the importance of adaptive early stopping on 3 tasks in the Jaco workspace: lift red cube $( l i f t )$ , put red cube in box $( b o x )$ , and stack red cube on blue cube (stack). We consider D4PGfD and three GAIL-based models with varying termination policies: a) fixed step (50), b) based on ground truth task rewards, and c) based on adaptive early stopping (TRAIL-0). Using ground truth task rewards, an episode is terminated if the reward at the current step exceeds the median reward of the episode so far for 10 consecutive steps. Results are presented in Figure 6.
|
| 164 |
+
|
| 165 |
+
Termination based on task reward is clearly superior; although unrealistic in practice, it defines the performance upper-bound and clearly shows that early stopping is beneficial. TRAIL-0 is robust and reaches human performance on all tasks. A fixed termination policy, when tuned, can be very effective. The same fixed termination step, however, does not work for all tasks. See Figure 13 in supplementary material for the effects of varying termination steps. Finally, as can be inferred from stack results, the dense rewards provided by TRAIL-0 are helpful in solving this challenging problem which is unsolved with D4PGfD even though D4PGfD uses ground truth task rewards.
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 6: Results for lift, box, and stack on Jaco environment.
|
| 169 |
+
|
| 170 |
+
# DATA AUGMENTATION
|
| 171 |
+
|
| 172 |
+
In Table 5.2, we report the best reward obtained in the first 12 hours of training (averaged for all seeds;
|
| 173 |
+
see Figure 14 for full curves). The results show that data augmentation is needed in lift distracted.
|
| 174 |
+
For the lift alone task, TRAIL-0 with data augmentation performs on par with TRAIL.
|
| 175 |
+
|
| 176 |
+
Table 1: Influence of data augmentation (evaluated on rewards) for lift alone and lift distracted.
|
| 177 |
+
|
| 178 |
+
<table><tr><td>Task</td><td>Regularization</td><td>Data augmentation</td><td>No data augmentation</td></tr><tr><td>lift alone</td><td>TRAIL-0 TRAIL</td><td>~165</td><td>~115</td></tr><tr><td rowspan="2">lift distracted</td><td>TRAIL-0</td><td>~155</td><td>~165</td></tr><tr><td>TRAIL</td><td>~30 ~180</td><td>~5 ~10</td></tr></table>
|
| 179 |
+
|
| 180 |
+
The performance of TRAIL is not affected by the lack of data augmentation on the lift alone task, whereas the performance of TRAIL-0 is.
|
| 181 |
+
|
| 182 |
+
# LEARNING WITH A FIXED, PERFECT DISCRIMINATOR
|
| 183 |
+
|
| 184 |
+
To assess whether learned discriminators are necessary, we compare TRAIL against agents using a fixed reward function corresponding to $R _ { e x p e r t } = 1$ and $R _ { a g e n t } = 0$ for the lift alone and lift distracted tasks. This baseline simulates an oracle discriminator with perfect generalization, but which is agnostic to behavior. On the lift alone task, agents using this fixed reward achieve roughly half the reward of TRAIL asymptotically, and on lift distracted they do not solve the task (average rewards are less than 5). See supplementary Figure 16 for learning curves.
|
| 185 |
+
|
| 186 |
+
# 5.3 LEARNING FROM OTHER EMBODIMENTS AND PROPS
|
| 187 |
+
|
| 188 |
+
Since the TRAIL discriminator is trained to ignore task-irrelevant features, it can learn from demonstrations with different embodiments and props. Figure 7 shows that GAIL even with augmentation fails to learn block lifting from a different embodiment, and performs worse when the expert uses a different prop color. TRAIL solves the task and achieves better performance in both cases.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
Figure 7: When the expert differs in body or prop appearance, TRAIL outperforms GAIL.
|
| 192 |
+
|
| 193 |
+
# 5.4 EVALUATION ON DIVERSE MANIPULATION TASKS
|
| 194 |
+
|
| 195 |
+
To further demonstrate benefits of using our proposed method, we present results for TRAIL, TRAIL0, the baseline GAIL, and BC on more challenging tasks. Specifically, we consider stack with the Sawyer robot; and insertion and stack banana in the Jaco work-space. The results are shown in Figure 8. The tasks we consider here are much harder as evidenced by the performance of BC agents. These experiments suggest that TRAIL is generally useful as an improvement over GAIL, even when the tasks are not designed to include task-irrelevant information.
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
Figure 8: Results comparing TRAIL, TRAIL-0 and GAIL for diverse manipulation tasks.
|
| 199 |
+
|
| 200 |
+
# 6 CONCLUSIONS
|
| 201 |
+
|
| 202 |
+
To make adversarial imitation work on nontrivial tasks from pixels, it is crucial to prevent the discriminator from exploiting task-irrelevant information. Data augmentation is a necessary component that prevents the discriminator from overfitting, but alone is not sufficient to solve more challenging problems. Our proposed method TRAIL proved to be a remedy which effectively focuses the discriminator on the task even when task-irrelevant features are present.
|
| 203 |
+
|
| 204 |
+
We showed through ablations that TRAIL benefits from data augmentation, actor early stopping, and the use of invariant set constraints. The last enables our agent to solve the full task suite in our experiments showing its decisive importance.
|
| 205 |
+
|
| 206 |
+
# REFERENCES
|
| 207 |
+
|
| 208 |
+
Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004.
|
| 209 |
+
|
| 210 |
+
Paul Bakker and Yasuo Kuniyoshi. Robot see, robot do: An overview of robot imitation. In AISB96 Workshop on Learning in Robots and Animals, 1996.
|
| 211 |
+
|
| 212 |
+
Nir Baram, Oron Anschel, Itai Caspi, and Shie Mannor. End-to-end differentiable adversarial imitation learning. In ICML, 2017.
|
| 213 |
+
|
| 214 |
+
Gabriel Barth-Maron, Matthew W Hoffman, David Budden, Will Dabney, Dan Horgan, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap. Distributed distributional deterministic policy gradients. arXiv preprint arXiv:1804.08617, 2018.
|
| 215 |
+
|
| 216 |
+
Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. arXiv preprint arXiv:1707.06887, 2017.
|
| 217 |
+
|
| 218 |
+
Glen Berseth and Christopher J Pal. Visual imitation learning with recurrent siamese networks. arXiv preprint arXiv:1901.07186, 2019.
|
| 219 |
+
|
| 220 |
+
Lionel Blondé and Alexandros Kalousis. Sample-efficient imitation learning via generative adversarial nets. arXiv preprint arXiv:1809.02064, 2018.
|
| 221 |
+
|
| 222 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019.
|
| 223 |
+
|
| 224 |
+
Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015.
|
| 225 |
+
|
| 226 |
+
Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pp. 1087–1098, 2017.
|
| 227 |
+
|
| 228 |
+
Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. arXiv preprint arXiv:1611.03852, 2016a.
|
| 229 |
+
|
| 230 |
+
Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016b.
|
| 231 |
+
|
| 232 |
+
Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. arXiv preprint arXiv:1709.04905, 2017.
|
| 233 |
+
|
| 234 |
+
Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. In ICLR, 2018.
|
| 235 |
+
|
| 236 |
+
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.
|
| 237 |
+
|
| 238 |
+
Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Ian Osband, Gabriel Dulac-Arnold, John Agapiou, Joel Z. Leibo, and Audrunas Gruslys. Deep q-learning from demonstrations. In AAAI, 2018.
|
| 239 |
+
|
| 240 |
+
Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016.
|
| 241 |
+
|
| 242 |
+
Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado Van Hasselt, and David Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018.
|
| 243 |
+
|
| 244 |
+
Mitsuo Kawato, Francesca Gandolfo, Hiroaki Gomi, and Yasuhiro Wada. Teaching by showing in kendama based on optimization principle. In ICANN. 1994.
|
| 245 |
+
|
| 246 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 247 |
+
|
| 248 |
+
Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In NIPS, 2017.
|
| 249 |
+
|
| 250 |
+
Josh Merel, Yuval Tassa, Sriram Srinivasan, Jay Lemmon, Ziyu Wang, Greg Wayne, and Nicolas Heess. Learning human behaviors from motion capture by adversarial imitation. arXiv preprint arXiv:1707.02201, 2017.
|
| 251 |
+
|
| 252 |
+
Hiroyuki Miyamoto, Stefan Schaal, Francesca Gandolfo, Hiroaki Gomi, Yasuharu Koike, Rieko Osu, Eri Nakano, Yasuhiro Wada, and Mitsuo Kawato. A kendama learning robot based on bi-directional theory. Neural networks, 1996.
|
| 253 |
+
|
| 254 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In ICLR, 2018.
|
| 255 |
+
|
| 256 |
+
Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In Icml, pp. 663–670, 2000.
|
| 257 |
+
|
| 258 |
+
Xue Bin Peng, Angjoo Kanazawa, Sam Toyer, Pieter Abbeel, and Sergey Levine. Variational discriminator bottleneck: Improving imitation learning, inverse rl, and gans by constraining information flow. arXiv preprint arXiv:1810.00821, 2018.
|
| 259 |
+
|
| 260 |
+
Tobias Pohlen, Bilal Piot, Todd Hester, Mohammad Gheshlaghi Azar, Dan Horgan, David Budden, Gabriel Barth-Maron, Hado van Hasselt, John Quan, Mel Vecerík, et al. Observe and look further: Achieving ˇ consistent performance on atari. arXiv preprint arXiv:1805.11593, 2018.
|
| 261 |
+
|
| 262 |
+
Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989.
|
| 263 |
+
|
| 264 |
+
Rouhollah Rahmatizadeh, Pooya Abolghasemi, Ladislau Bölöni, and Sergey Levine. Vision-based multitask manipulation for inexpensive robots using end-to-end learning from demonstration. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 3758–3765. IEEE, 2018.
|
| 265 |
+
|
| 266 |
+
Aravind Rajeswaran, Vikash Kumar, Abhishek Gupta, Giulia Vezzani, John Schulman, Emanuel Todorov, and Sergey Levine. Learning complex dexterous manipulation with deep reinforcement learning and demonstrations. arXiv preprint arXiv:1709.10087, 2017.
|
| 267 |
+
|
| 268 |
+
Scott Reed, Yusuf Aytar, Ziyu Wang, Tom Paine, Aäron van den Oord, Tobias Pfaff, Sergio Gomez, Alexander Novikov, David Budden, and Oriol Vinyals. Visual imitation with a minimal adversary. 2018.
|
| 269 |
+
|
| 270 |
+
Stéphane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011.
|
| 271 |
+
|
| 272 |
+
Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. 2018.
|
| 273 |
+
|
| 274 |
+
Stefan Schaal. Learning from demonstration. In NIPS, 1997.
|
| 275 |
+
|
| 276 |
+
David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In ICML, 2014.
|
| 277 |
+
|
| 278 |
+
Avi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. arXiv preprint arXiv:1904.07854, 2019.
|
| 279 |
+
|
| 280 |
+
Bradly C Stadie, Pieter Abbeel, and Ilya Sutskever. Third-person imitation learning. arXiv preprint arXiv:1703.01703, 2017.
|
| 281 |
+
|
| 282 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 283 |
+
|
| 284 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5026–5033. IEEE, 2012.
|
| 285 |
+
|
| 286 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016.
|
| 287 |
+
|
| 288 |
+
Matej Vecerik, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothörl, Thomas Lampe, and Martin A. Riedmiller. Leveraging demonstrations for deep reinforcement learning on robotics problems with sparse rewards. CoRR, 2017.
|
| 289 |
+
|
| 290 |
+
Yuke Zhu, Ziyu Wang, Josh Merel, Andrei Rusu, Tom Erez, Serkan Cabi, Saran Tunyasuvunakool, János Kramár, Raia Hadsell, Nando de Freitas, et al. Reinforcement and imitation learning for diverse visuomotor skills. In RSS, 2018.
|
| 291 |
+
|
| 292 |
+
Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008.
|
| 293 |
+
|
| 294 |
+
# A SUPPLEMENTARY MATERIAL
|
| 295 |
+
|
| 296 |
+
# A.1 DETAILED DESCRIPTION OF ENVIRONMENT
|
| 297 |
+
|
| 298 |
+
All our simulations are conducted using $\mathbf { M u J o C o ^ { 1 } }$ (Todorov et al., 2012). We test our proposed algorithms in a variety of different envrionments using simulated Kinova Jaco2, and Sawyer robot arms3; see Figure 9. We use the Robotiq 2F85 gripper4 in conjuction with the Sawyer arm.
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
|
| 302 |
+
Figure 9: Two work spaces, Jaco (left) which uses the Jaco arm and is $2 0 \times 2 0 ~ \mathrm { c m }$ , and Sawyer (right) which uses the Sawyer arm and more closely resembles a real robot cage and is $3 5 \times 3 5 \mathrm { c m }$ .
|
| 303 |
+
|
| 304 |
+
To provide demonstrations, we use the SpaceNavigator 3D motion controller5 to set Cartesion velocities of the robot arm. The gripper actions are implemented via the buttons on the controller. All demonstrations in our experiments are provided via human teleoperation and we collected 100 demonstrations for each experiment.
|
| 305 |
+
|
| 306 |
+
Jaco: When using the Jaco arm, we use joint velocity control (9DOF) where we control all 6 joints of arm and all 3 joints of the hand. The simulation is run with a numerical time step of 10 milliseconds, integrating 5 steps, to get a control frequency of 20HZ. The agent uses a frontal camera of size $6 4 \times 6 4$ (see Figure 10(a)). For a full list of observations the agent sees, please refer to Table 2(a).
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Figure 10: Illustration of the pixels inputs to the agent.
|
| 310 |
+
|
| 311 |
+
Sawyer: When using the Sawyer arm, we use Cartesian velocity control (6DOF) for the robot arm and add one additional action for the gripper resulting in 7 degrees of freedom. The simulation is run with a numerical time step of 10 milliseconds, integrating 10 steps, to get a control frequency of 10HZ. The agent uses two frontal cameras of size $6 4 \times 6 4$ situated on the left and right side of the robot cage respectively (see Figure $1 0 ( \mathrm { b } , \mathrm { c } ) ,$ ). For a full list of observations the agent sees, please refer to Table 2(b).
|
| 312 |
+
|
| 313 |
+
For all environments considered in this paper, we provide sparse rewards (i.e. if task is accomplished, the reward is 1 and 0 otherwise). In experiments regards our proposed methods, rewards are only used for evaluation purposes and not for training the agent.
|
| 314 |
+
|
| 315 |
+
a) Jaco
|
| 316 |
+
|
| 317 |
+
<table><tr><td>Feature Name</td><td>Dimensions</td></tr><tr><td>frontal camera base force and torque sensors</td><td>64×64×3 6</td></tr><tr><td>arm joints position</td><td>6</td></tr><tr><td>arm joints velocity</td><td>6</td></tr><tr><td>wrist force and torque sensors</td><td>6</td></tr><tr><td>hand finger joints position</td><td>3</td></tr><tr><td>hand finger joints velocity</td><td></td></tr><tr><td>hand fingertip sensors</td><td>3</td></tr><tr><td></td><td>3</td></tr><tr><td>grip site position</td><td>3</td></tr><tr><td>pinch site position</td><td>3</td></tr></table>
|
| 318 |
+
|
| 319 |
+
Table 2: Observation and dimensions.
|
| 320 |
+
|
| 321 |
+
<table><tr><td colspan="2">b) Sawyer</td></tr><tr><td>Feature Name frontleft camera</td><td>Dimensions 64×64×3</td></tr><tr><td>front right camera</td><td>64×64×3</td></tr><tr><td>arm joint position</td><td>7</td></tr><tr><td>arm joint velocity</td><td>7</td></tr><tr><td>wrist force sensor</td><td>3</td></tr><tr><td>wrist torque sensor</td><td>3</td></tr><tr><td>hand grasp sensor</td><td></td></tr><tr><td></td><td>1</td></tr><tr><td>hand joint position</td><td>1</td></tr><tr><td>tool center point cartesian orientation</td><td>9</td></tr><tr><td>tool center point cartesian position</td><td></td></tr><tr><td>hand joint velocity</td><td>3 1</td></tr></table>
|
| 322 |
+
|
| 323 |
+
# A.2 EARLY FRAMES ABLATION STUDY
|
| 324 |
+
|
| 325 |
+
Here, we vary the number of early frames of each episode used to form $\mathcal { T }$ . We report that a range of values from 1 up to 20 works well across both tasks (Put in box and Stack banana), with performance gradually degrading as the value increased beyond 20 (Fig. 11).
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 11: TRAIL performance, varying the number of first frames in each episode used to form $\mathcal { T }$ .
|
| 329 |
+
|
| 330 |
+
# A.3 TRAIL-0 WITH random
|
| 331 |
+
|
| 332 |
+
We found out and mentioned in the subsection 5.1 that random benefits from TRAIL-0. Unfortunately, it is still prone to overfitting and hence, worse than our full method – TRAIL. We present random $^ +$ TRAIL-0 accompanied with our methods in Figure 12. Our TRAIL and random $^ +$ TRAIL-0 are the only methods exceeding BC performance on lift distracted. However, TRAIL performance is clearly better (obtains higher rewards and never gets overfitted).
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
Figure 12: Results for lift alone, lift distracted, and lift distracted seeded.
|
| 336 |
+
|
| 337 |
+
# A.4 FIXED TERMINATION POLICY
|
| 338 |
+
|
| 339 |
+
As mentioned in the subsection 5.2, the most basic early termination policy – fixed step termination – may be very effective if tuned. Since the tuning may be expensive in practice, we recommend using adaptive early stopping (TRAIL-0). However, for the sake of completeness we provide results for fixed step termination policy depending on the hyperparameter tuned. The results for stack task are presented in Figure 13. The Jaco work space is considered here because Sawyer requires TRAIL to obtain high rewards. As can be inferred from the figure, the performance is very sensitive to the fixed step hyperparameter. We refer to subsection 5.2 for more comments on all methods.
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
Figure 13: Results for stack in Jaco work space. Fixed step termination policy can be very effective but the final performance is very sensitive to the hyperparameter. TRAIL-0 does not need tuning nor access to the environment reward.
|
| 343 |
+
|
| 344 |
+
# A.5 DATA AUGMENTATION
|
| 345 |
+
|
| 346 |
+
An extra set of experiments on lift alone and lift distracted tasks (described in subsection 5.1) has been performed to show importance of data augmentation.
|
| 347 |
+
|
| 348 |
+
Because in the subsection 5.2 only the peak performance is presented (Table 5.2), we present here the full curves in Figure 14. The results shows that data augmentation is necessary to obtain high rewards in lift distracted. For easier lift alone, TRAIL-0 with data augmentation perform at par with TRAIL.
|
| 349 |
+
|
| 350 |
+

|
| 351 |
+
Figure 14: Results for lift alone and lift distracted in Sawyer work space. TRAIL and TRAIL-0 are by default with data augmentation. Additional results for these methods without data augmentation are presented to show its importance.
|
| 352 |
+
|
| 353 |
+
# A.6 D4PG
|
| 354 |
+
|
| 355 |
+
We use D4PG (Barth-Maron et al., 2018) as our main training algorithm. Briefly, D4PG is a distributed off-policy reinforcement learning algorithm for continuous control problems. In a nutshell, D4PG uses Q-learning for policy evaluation and Deterministic Policy Gradients (DPG) (Silver et al., 2014) for policy optimization. An important characteristic of D4PG is that it maintains a replay memory $\mathcal { M }$ (possibility prioritized (Horgan et al., 2018)) that stores SARS tuples which allows for off-policy learning. D4PG also adopts target networks for increased training stability. In addition to these principles, D4PG utilized distributed training, distributional value functions, and multi-step returns to further increase efficiency and stability. In this section, we explain the different ingredients of D4PG.
|
| 356 |
+
|
| 357 |
+
D4PG maintains an online value network $Q ( s , a | \theta )$ and an online policy network $\pi ( s | \phi )$ . The target networks are of the same structures as the value and policy network, but are parameterized by different parameters $\theta ^ { \prime }$ and $\phi ^ { \prime }$ which are periodically updated to the current parameters of the online networks.
|
| 358 |
+
|
| 359 |
+
Given the $Q$ function, we can update the policy using DPG:
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\mathcal { I } ( \phi ) = \mathbb { E } _ { s _ { t } \sim \mathcal { M } } \left[ \nabla _ { \phi } Q ( s _ { t } , \pi ( s _ { t } | \phi ) | \theta ) \right] .
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
Instead of using a scalar $Q$ function, D4PG adopts a distributional value function such that $Q ( s _ { t } , a | \theta ) ~ = ~ \bar { \mathbb { E } } \big [ Z ( s _ { t } , a | \theta ) \big ]$ where $Z$ is a random variable such that $Z ~ = ~ z _ { i }$ w.p. $\qquad p _ { i } \propto$ $\exp ( \omega ( s _ { t } , a | \theta ) )$ . The $z _ { i }$ ’s take on $V _ { b i n s }$ discrete values that ranges uniformly between $V _ { m i n }$ and $V _ { m a x }$ such that $\begin{array} { r } { z _ { i } = V _ { m i n } + i \frac { V _ { m a x } - V _ { m i n } } { V _ { b i n s } } } \end{array}$ for $i \in \{ 0 , \cdots , V _ { b i n s } - 1 \}$ .
|
| 366 |
+
|
| 367 |
+
To construct a bootstrap target, D4PG uses $\mathbf { N } .$ -step returns. Given a sampled tuple from the replay memory: $s _ { t } , a _ { t } , \{ r _ { t } , r _ { t + 1 } , \cdot \cdot \cdot , r _ { t + N - 1 } \} , s _ { t + N }$ , we construct a new random variable $Z ^ { \prime }$ such that Z0 = zi + PN−1n=0 w.p. $p _ { i } \propto \exp ( \omega ( s _ { t + N } , \pi ( s _ { t + N } | \phi ^ { \prime } ) | \theta ^ { \prime } ) )$ . Notice, $Z ^ { \prime }$ no longer has the same support. We therefore adopt the same projection $\Phi$ employed by Bellemare et al. (2017). The training loss for the value function
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\mathcal { L } ( \theta ) = \mathbb { E } _ { s _ { t } , a _ { t } , \{ r _ { t } , \cdots , r _ { t + N - 1 } \} , s _ { t + N } \sim \mathcal { M } } \big [ H \big ( \Phi ( Z ^ { \prime } ) , Z ( s _ { t } , a _ { t } | \theta ) \big ) \big ] ,
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
where $H$ is the cross entropy.
|
| 374 |
+
|
| 375 |
+
D4PG is also distributed following Horgan et al. (2018). Since all learning processes only rely on the replay memory, we can easily decouple the ‘actors’ from the ‘learners’. D4PG therefore uses a large number of independent actor processes which act in the environment and write data to a central replay memory process. The learners could then draw samples from the replay memory for learning. The learner also serves as a parameter server to the actors which periodically update their policy parameters from the learner.
|
| 376 |
+
|
| 377 |
+
In our experiments, we always have access to expert demonstrations. We, therefore adopt the practice from DQfD and DDPGfD and put the demonstrations into our replay buffers. For more details see Algorithms 1, 2.
|
| 378 |
+
|
| 379 |
+
# Algorithm 1 Actor
|
| 380 |
+
|
| 381 |
+
Given: • an experience replay memory $\mathcal { M }$
|
| 382 |
+
for $n _ { e p i s o d e s }$ do for $t = 1$ to $T$ do Sample action from task policy: $\boldsymbol { a } _ { t } \gets \pi ( \boldsymbol { s } _ { t } )$ Execute action $a _ { t }$ and observe new state $s _ { t + 1 }$ , and reward $r _ { t }$ Store transition $( s _ { t } , a _ { t } , r _ { t } , s _ { t + 1 } )$ in memory $\mathcal { M }$ end for
|
| 383 |
+
end for
|
| 384 |
+
|
| 385 |
+
# Algorithm 2 Learner
|
| 386 |
+
|
| 387 |
+
# Given:
|
| 388 |
+
|
| 389 |
+
• an off-policy RL algorithm A • a replay buffer $\mathcal { M }$ • a replay buffer of expert demonstrations $\mathcal { M } _ { e }$
|
| 390 |
+
|
| 391 |
+
Initialize A
|
| 392 |
+
for $n _ { u p d a t e s }$ do Sample transitions $\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \right)$ from $\mathcal { M }$ to make a minibatch $B$ . Sample transitions $\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \right)$ from $\mathcal { M } _ { e }$ enlarge the minibatch $B$ . Perform a actor update step with Eqn. (5). Perform a critic update step with Eqn. (6). Update the target actor/critic networks every $k$ steps.
|
| 393 |
+
end for
|
| 394 |
+
|
| 395 |
+
# A.7 NETWORK ARCHITECTURE AND HYPERPARAMETERS
|
| 396 |
+
|
| 397 |
+
Actor and critic share a residual pixel encoder network with eight convolutional layers (3x3 convolutions, three 2-layer blocks with 16, 32, 32 channels), instance normalization (Ulyanov et al., 2016) and exponential linear units (Clevert et al., 2015) between layers.
|
| 398 |
+
|
| 399 |
+
The policy is a 3-layer MLP with ReLU activations with hidden layer sizes (300, 200). The critic is a 3-layer MLP with ReLU activations with hidden layer sizes (400, 300). For a illustration of the network. Please see Figure 15.
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
Figure 15: Network architecture for the policy and critic.
|
| 403 |
+
|
| 404 |
+
The discriminator network uses a pixel encoder of the same architecture as the actor critic, followed by a 3-layer MLP with ReLU activations and hidden layer sizes (32, 32).
|
| 405 |
+
|
| 406 |
+
Table 3: Hyper parameters used in robot manipulation experiments.
|
| 407 |
+
|
| 408 |
+
<table><tr><td>Parameters</td><td>Values</td></tr><tr><td>Actor/Critic Input Width</td><td>64</td></tr><tr><td>Actor/Critic Input Height</td><td>64</td></tr><tr><td>D4PG Parameters</td><td></td></tr><tr><td>Vmin</td><td>-50</td></tr><tr><td>Vmax</td><td>150</td></tr><tr><td>Vbins</td><td>21</td></tr><tr><td>N step</td><td>1</td></tr><tr><td>Actor learning rate</td><td>10-4</td></tr><tr><td>Critic learning rate</td><td>10-4</td></tr><tr><td>Optimizer</td><td>Adam (Kingma & Ba (2014))</td></tr><tr><td>Batch size</td><td>256</td></tr><tr><td>Target update period</td><td>100</td></tr><tr><td>Discount factor (y)</td><td>0.99</td></tr><tr><td>Replay capacity</td><td>106</td></tr><tr><td>Number of actors</td><td>32 or 128</td></tr><tr><td>Imitation Parameters</td><td></td></tr><tr><td>Discriminator learning rate</td><td>10-4</td></tr><tr><td>Discriminator Input Width</td><td>48</td></tr><tr><td>Discriminator Input Height</td><td>48</td></tr></table>
|
| 409 |
+
|
| 410 |
+
# A.8 COMPARING AGAINST LEARNING WITH FIXED REWARDS
|
| 411 |
+
|
| 412 |
+
To check whether learned discriminators are needed, we compare TRAIL against agents using a fixed reward function corresponding to $R _ { e x p e r t } = 1$ and $R _ { a g e n t } = 0$ for the lift alone and lift distracted tasks. This baseline simulates an oracle discriminator with perfect generalization, but which is agnostic to behavior. On the lift alone task, agents using this fixed reward achieve roughly half the reward of TRAIL asymptotically, and on lift distracted they do not solve the task (average rewards are less than 5). The learning curves are presented in Figure 16.
|
| 413 |
+
|
| 414 |
+

|
| 415 |
+
Figure 16: With fixed rewards, the agent is able to learn lift alone somewhat, but performs worse than TRAIL. When distractor blocks are added, the fixed reward agent fails to learn completely.
|
parse/train/S1x2PCNKDB/S1x2PCNKDB_content_list.json
ADDED
|
@@ -0,0 +1,2216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TASK-RELEVANT ADVERSARIAL IMITATION LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
173,
|
| 8 |
+
99,
|
| 9 |
+
834,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
400,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
209,
|
| 32 |
+
544,
|
| 33 |
+
226
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We show that a critical problem in adversarial imitation from high-dimensional sensory data is the tendency of discriminator networks to distinguish agent and expert behaviour using task-irrelevant features beyond the control of the agent. We analyze this problem in detail and propose a solution as well as several baselines that outperform standard Generative Adversarial Imitation Learning (GAIL). Our proposed solution, Task-Relevant Adversarial Imitation Learning (TRAIL), uses a constrained optimization objective to overcome task-irrelevant features. Comprehensive experiments show that TRAIL can solve challenging manipulation tasks from pixels by imitating human operators, where other agents such as behaviour cloning (BC), standard GAIL, improved GAIL variants including our newly proposed baselines, and Deterministic Policy Gradients from Demonstrations (DPGfD) fail to find solutions, even when the other agents have access to task reward. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
247,
|
| 43 |
+
766,
|
| 44 |
+
414
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
455,
|
| 55 |
+
334,
|
| 56 |
+
472
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Generative Adversarial Networks (GANs) have produced breath-taking conditional image synthesis results (Goodfellow et al., 2014; Brock et al., 2019), and have inspired adversarial learning approaches to imitating behavior. In Generative Adversarial Imitation Learning (GAIL) (Ho & Ermon, 2016), a discriminator network is trained to distinguish agent and expert behaviour through its observations, and is then used as a reward function. GAIL agents can overcome the exploration challenge by taking advantage of expert demonstrations, while also achieving high asymptotic performance by learning from agent experience. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
492,
|
| 66 |
+
825,
|
| 67 |
+
590
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Despite the huge promise of GAIL, it has not yet had the same impact as GANs; in particular, robust GAIL from pixels for control applications remains a challenge. Here, we study a key shortcoming of GAIL: the tendency of the discriminator to mainly exploit task-irrelevant features. For example, by focusing on slight background differences, a discriminator can achieve perfect generalization, assigning zero reward to all held-out agent observations. However, this discriminator does not yield an informative reward function because it ignores behavior. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
597,
|
| 77 |
+
826,
|
| 78 |
+
680
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/21a1b85e2a28f46c1e51c7d95c791c9593dbf312cc715586c7be17a650a74728.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: GAIL and TRAIL succeed at lifting (a), but when distractor objects are added, GAIL fails while TRAIL succeeds (b). Due to robustness to initial conditions, TRAIL can stack from pixels while standard GAIL fails (c). We witness this difference again in insertion with distractors (d). A video showing agents performing these tasks can be seen at https://youtu.be/Rz5G15rDKcg . "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
179,
|
| 91 |
+
705,
|
| 92 |
+
815,
|
| 93 |
+
857
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "image",
|
| 99 |
+
"img_path": "images/862945eb66675f4de9e3964473bbe1038dacc00ee10aed40f2139ea575ebaafb.jpg",
|
| 100 |
+
"image_caption": [
|
| 101 |
+
"Figure 2: Illustration of several task-irrelevant changes between the expert demonstrations and the distribution of agent observations, for the lift (red cube) task. The naively-trained discriminator network will use these differences rather than task performance to distinguish agent and expert. "
|
| 102 |
+
],
|
| 103 |
+
"image_footnote": [],
|
| 104 |
+
"bbox": [
|
| 105 |
+
207,
|
| 106 |
+
82,
|
| 107 |
+
789,
|
| 108 |
+
213
|
| 109 |
+
],
|
| 110 |
+
"page_idx": 1
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"type": "text",
|
| 114 |
+
"text": "Assuming there is an expert policy $\\pi _ { E }$ that is optimal for an unknown reward function, here we refer to a feature as task-irrelevant if it does not affect that reward. For example, if the task is to lift a red block, the positions of other blocks would be task-irrelevant; see Figures 1 and 2. ",
|
| 115 |
+
"bbox": [
|
| 116 |
+
176,
|
| 117 |
+
284,
|
| 118 |
+
825,
|
| 119 |
+
325
|
| 120 |
+
],
|
| 121 |
+
"page_idx": 1
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"type": "text",
|
| 125 |
+
"text": "This paper makes the following contributions: ",
|
| 126 |
+
"bbox": [
|
| 127 |
+
174,
|
| 128 |
+
333,
|
| 129 |
+
473,
|
| 130 |
+
347
|
| 131 |
+
],
|
| 132 |
+
"page_idx": 1
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"type": "text",
|
| 136 |
+
"text": "1. It reveals a fundamental limitation of GAIL by showing that discriminators do in practice exploit task-irrelevant information, thereby resulting in poor task performance. \n2. It introduces powerful GAIL baselines. In particular, it shows that standard regularization and data augmentation are generally useful and improve upon standard GAIL. \n3. It shows that these improvements to GAIL, as well as other improvements proposed by Reed et al. (2018), do not completely solve the problem, allowing GAIL agents to fail catastrophically with the addition of task-irrelevant distractors. \n4. It introduces Task Relevant Adversarial Imitation Learning (TRAIL), using constrained optimization to force the discriminator to focus on the relevant aspects of the task, which improves performance dramatically on manipulation tasks from pixels (see Figure 1). ",
|
| 137 |
+
"bbox": [
|
| 138 |
+
210,
|
| 139 |
+
358,
|
| 140 |
+
825,
|
| 141 |
+
511
|
| 142 |
+
],
|
| 143 |
+
"page_idx": 1
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"type": "text",
|
| 147 |
+
"text": "2 RELATED WORK ",
|
| 148 |
+
"text_level": 1,
|
| 149 |
+
"bbox": [
|
| 150 |
+
174,
|
| 151 |
+
530,
|
| 152 |
+
341,
|
| 153 |
+
545
|
| 154 |
+
],
|
| 155 |
+
"page_idx": 1
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "text",
|
| 159 |
+
"text": "The use of demonstrations to help agent training has been studied extensively in robotics (Bakker & Kuniyoshi, 1996; Kawato et al., 1994; Miyamoto et al., 1996) with approaches ranging from Q-learning (Schaal, 1997) to behavioral cloning (BC) (Pomerleau, 1989). ",
|
| 160 |
+
"bbox": [
|
| 161 |
+
174,
|
| 162 |
+
560,
|
| 163 |
+
825,
|
| 164 |
+
603
|
| 165 |
+
],
|
| 166 |
+
"page_idx": 1
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "text",
|
| 170 |
+
"text": "BC: BC is effective in solving many control problems (Pomerleau, 1989; Finn et al., 2017; Duan et al., 2017; Rahmatizadeh et al., 2018). It has also been successfully applied to initialize RL training (Rajeswaran et al., 2017). It, however, suffers from compounding errors as initial small deviations from the expert behaviors tend to cause bigger differences (Ross et al., 2011). This often necessitates a large number of demonstrations for satisfactory performance. Furthermore, BC typically does not lead to agents that are superior to their demonstrators. ",
|
| 171 |
+
"bbox": [
|
| 172 |
+
173,
|
| 173 |
+
609,
|
| 174 |
+
825,
|
| 175 |
+
693
|
| 176 |
+
],
|
| 177 |
+
"page_idx": 1
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "text",
|
| 181 |
+
"text": "Inverse RL: Ziebart et al. (2008); $\\mathrm { N g }$ et al. (2000); Abbeel & $\\mathrm { N g } \\left( 2 0 0 4 \\right)$ propose inverse reinforcement learning (IRL) as a way of learning reward functions from demonstrations. Reinforcement learning can then be used to optimize that learned reward. Recently, Finn et al. (2016b) approached continuous robotic control problems with success by applying Maximum Entropy IRL algorithms which are very closely related to GAIL (Finn et al., 2016a) and have similar drawbacks. ",
|
| 182 |
+
"bbox": [
|
| 183 |
+
174,
|
| 184 |
+
700,
|
| 185 |
+
825,
|
| 186 |
+
770
|
| 187 |
+
],
|
| 188 |
+
"page_idx": 1
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "text",
|
| 192 |
+
"text": "Learning from Demonstrations: Hester et al. (2018) developed deep Q-Learning from demonstration (DQfD), in which expert trajectories are added to experience replay and jointly used to train agents along with their own experiences. This was later extended by Vecerik et al. (2017) and Pohlen et al. (2018) to better handle sparse-reward problems in control and Atari games respectively. Despite their efficiency, this class of methods still requires access to rewards in order to learn. ",
|
| 193 |
+
"bbox": [
|
| 194 |
+
174,
|
| 195 |
+
776,
|
| 196 |
+
825,
|
| 197 |
+
847
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 1
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "GAIL: Following the success of Generative Adversarial Networks (Goodfellow et al., 2014) in image generation, GAIL (Ho & Ermon, 2016) applies adversarial learning to the problem of imitation. Although many variants are introduced in the literature (Li et al., 2017; Fu et al., 2018; Merel et al., 2017; Zhu et al., 2018; Baram et al., 2017), making GAIL work for high-dimensional input spaces, particularly raw pixels, remains a challenge. ",
|
| 204 |
+
"bbox": [
|
| 205 |
+
174,
|
| 206 |
+
853,
|
| 207 |
+
825,
|
| 208 |
+
924
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "A few papers (Peng et al., 2018; Reed et al., 2018; Blondé & Kalousis, 2018) seek to address the problem of overfitting the discriminator. Peng et al. (2018) introduces the Variational Bottleneck to regularize the discriminator. Reed et al. (2018) proposes to not train the vision module of the discriminator (e.g. use the vision module of the critic network instead) and only train a tiny network on top of the vision module to discriminate. Blondé & Kalousis (2018) follow a similar approach. Unstructured regularization, however, cannot stop the discriminator from fitting to features that are systematically different between the agents’ and the demonstration’s behavior, like those illustrated in Figure 2. TRAIL, on the other hand, is much less prone to overfitting to these features. ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
103,
|
| 218 |
+
825,
|
| 219 |
+
215
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "Stadie et al. (2017) extend GAIL to the setting of third person imitation, in which the demonstrator and agent observations come from different views. To prevent the discriminator from discriminating based on viewpoint domain, they use gradient flipping from an auxiliary classifier to learn domain-invariant features. Our approach is not to learn domain-invariant features, but instead learn domain-agnostic discriminators that only focus on behavior. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
222,
|
| 229 |
+
825,
|
| 230 |
+
291
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "Several recent works have focused on improving the sample efficiency of GAIL (Blondé & Kalousis, 2018; Sasaki et al., 2018). Common to these approaches and to this work, is the use of off-policy actor critic agents and experience replay, to improve the utilization of available experience. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
299,
|
| 240 |
+
825,
|
| 241 |
+
340
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "3 REINFORCEMENT LEARNING AND ADVERSARIAL IMITATION ",
|
| 248 |
+
"text_level": 1,
|
| 249 |
+
"bbox": [
|
| 250 |
+
176,
|
| 251 |
+
369,
|
| 252 |
+
709,
|
| 253 |
+
386
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "Following the notation of Sutton & Barto (2018), a Markov Decision Process (MDP) is a tuple $( \\mathcal { S } , \\mathcal { A } , R , \\mathbf { \\bar { P } } , \\gamma )$ with states $s$ , actions $\\mathcal { A }$ , reward function $R ( s , a )$ , transition distribution $P ( s ^ { \\prime } | s , a )$ , and discount $\\gamma$ . An agent in state $s \\in S$ takes action $a \\in A$ according to its policy $\\pi$ and moves to state $s ^ { \\prime } \\in \\varDelta$ according to the transition distribution. The goal of RL algorithms is to find a policy that maximizes the expected sum of discounted rewards, represented by the action value function $\\begin{array} { r } { Q ^ { \\pi } ( s , a ) = \\mathbb { E } ^ { \\pi } [ \\sum _ { t = 0 } ^ { \\infty } \\overset { \\cdot } { \\gamma } ^ { t } R ( s _ { t } , a _ { t } ) ] } \\end{array}$ , where $\\mathbb { E } ^ { \\pi }$ is an expectation over trajectories starting from $s _ { 0 } = s$ and taking action $a _ { 0 } = a$ and thereafter running the policy $\\pi$ . ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
173,
|
| 262 |
+
406,
|
| 263 |
+
825,
|
| 264 |
+
505
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "To apply RL, it is essential that we have access to the reward function which is often hard to design and evaluate (Singh et al., 2019). In addition, sparse rewards can cause exploration difficulties that pose great challenges to RL algorithms. We therefore look to imitation learning and particularly GAIL to derive a reward function from expert demonstrations. In GAIL, a reward function is learned by training a discriminator network $D ( s , a )$ to distinguish between agent and expert state-action pairs. The GAIL objective is thus formulated as follows: ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
511,
|
| 274 |
+
825,
|
| 275 |
+
594
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "equation",
|
| 281 |
+
"img_path": "images/108a841f22d52fb14679a7fca453346693df0d23802f2235bfac6b83e1870dfa.jpg",
|
| 282 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\pi } \\operatorname* { m a x } _ { D } \\mathbb { E } _ { ( s , a ) \\sim \\pi _ { E } } [ \\log D ( s , a ) ] + \\mathbb { E } _ { ( s , a ) \\sim \\pi } [ \\log ( 1 - D ( s , a ) ) ] - \\lambda _ { H } H ( \\pi ) ,\n$$",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
241,
|
| 286 |
+
609,
|
| 287 |
+
753,
|
| 288 |
+
632
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "where $\\pi$ is the agent policy, $\\pi _ { E }$ the expert policy, and $H ( \\pi )$ an (optional) entropy regularizer. The reward function is defined simply: $R ( s , a ) = - \\log ( 1 - D ( s , a ) )$ . ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
174,
|
| 297 |
+
647,
|
| 298 |
+
825,
|
| 299 |
+
676
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "GAIL is theoretically appealing and practically simple. The discriminator, however, can focus on any features to discriminate, whether these features are task-relevant or not. In the next subsection we describe a way to constrain the discriminator network in order to prevent it from using task-irrelevant details to distinguish agent and expert data. ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
174,
|
| 308 |
+
683,
|
| 309 |
+
825,
|
| 310 |
+
739
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "4 TASK-RELEVANT ADVERSARIAL IMITATION LEARNING (TRAIL) ",
|
| 317 |
+
"text_level": 1,
|
| 318 |
+
"bbox": [
|
| 319 |
+
171,
|
| 320 |
+
767,
|
| 321 |
+
750,
|
| 322 |
+
785
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "We want the discriminator to focus on task-relevant features. Our proposed solution, TRAIL, prevents the discriminator from being able to distinguish expert and agent behaviour based on selected aspects of the data. For instance, the discriminator should distinguish agent and expert frames only when meaningful behavior is present in those frames. In the absence of behavior useful to solve the task, e.g. in initial frames prior to the execution of the behavior, the discriminator should be agnostic. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
804,
|
| 332 |
+
825,
|
| 333 |
+
875
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "To this end, we propose a constraint for the discriminator, such that its accuracy must not be greater than chance on a particular set of observations $\\mathcal { L }$ that we will call the invariant set. $\\mathcal { T }$ will include only observations that can be distinguished as agent or expert in task-irrelevant ways. Precisely, we formulate TRAIL in terms of the following constrained optimization problem: ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
176,
|
| 342 |
+
882,
|
| 343 |
+
823,
|
| 344 |
+
924
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
103,
|
| 354 |
+
686,
|
| 355 |
+
118
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/677a3c547cb7740be31ef7ad9de87cb3fd4d4b0088c73a1397ca4bd2fd8ee8c4.jpg",
|
| 362 |
+
"text": "$$\n\\begin{array} { r l } { \\displaystyle \\mathop { \\operatorname* { m a x } } _ { \\psi } } & { \\mathbb { E } _ { s \\sim \\pi _ { E } } \\left[ \\log D _ { \\psi } ( s ) \\right] + \\mathbb { E } _ { s \\sim \\pi _ { \\theta } } \\left[ \\log ( 1 - D _ { \\psi } ( s ) ) \\right] } \\\\ { \\displaystyle s . t . } & { \\frac { 1 } { 2 } \\mathbb { E } _ { s \\sim \\pi _ { E } } \\left[ { \\mathbf 1 } _ { { \\mathbf D } _ { \\psi } ( { \\mathbf s } ) \\geq \\frac { 1 } { 2 } } \\mid s \\in { \\mathbb Z } \\right] + \\frac { 1 } { 2 } \\mathbb { E } _ { s \\sim \\pi _ { \\theta } } \\left[ { \\mathbf 1 } _ { { \\mathbf D } _ { \\psi } ( { \\mathbf s } ) < \\frac { 1 } { 2 } } \\mid s \\in { \\mathbb Z } \\right] \\le \\frac { 1 } { 2 } . } \\end{array}\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
254,
|
| 366 |
+
123,
|
| 367 |
+
743,
|
| 368 |
+
183
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "To apply the above constraint in practice, we can optimize the reverse of the objective function on $\\mathcal { T }$ That is, given a batch of $N$ examples $s _ { e } \\sim \\pi _ { E } , s _ { \\theta } \\sim \\pi _ { \\theta }$ from the expert and agent, and $\\hat { s } _ { e } \\sim \\pi _ { E }$ and $\\hat { s } _ { \\theta } \\sim \\pi _ { \\theta }$ both in the set $\\mathcal { T }$ , we maximize the following augmented objective function: ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
176,
|
| 377 |
+
194,
|
| 378 |
+
823,
|
| 379 |
+
236
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "equation",
|
| 385 |
+
"img_path": "images/4d4c40cd8a255e2543089e2861ddce6e8fe5af859ebd3aa65fb0b438c9523f44.jpg",
|
| 386 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\psi } \\big ( s _ { e } , s _ { \\theta } , \\hat { s } _ { e } , \\hat { s } _ { \\theta } \\big ) = \\sum _ { i = 1 } ^ { N } \\log D _ { \\psi } \\left( s _ { e } ^ { ( i ) } \\right) + \\log \\left( 1 - D _ { \\psi } \\left( s _ { \\theta } ^ { ( i ) } \\right) \\right) } \\\\ & { \\qquad - \\lambda \\left[ \\sum _ { i = 1 } ^ { N } \\log D _ { \\psi } \\left( \\hat { s } _ { e } ^ { ( i ) } \\right) + \\log \\left( 1 - D _ { \\psi } \\left( \\hat { s } _ { \\theta } ^ { ( i ) } \\right) \\right) \\right] \\mathbf { 1 } _ { a c c u r a c y ( \\hat { s } _ { e } , \\hat { s } _ { \\theta } ) \\geq \\frac { 1 } { 2 } } , } \\end{array}\n$$",
|
| 387 |
+
"text_format": "latex",
|
| 388 |
+
"bbox": [
|
| 389 |
+
194,
|
| 390 |
+
241,
|
| 391 |
+
802,
|
| 392 |
+
299
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "where $a c c u r a c y ( \\cdot , \\cdot )$ is defined as the average of discriminator accuracies: ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
171,
|
| 401 |
+
303,
|
| 402 |
+
661,
|
| 403 |
+
319
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "equation",
|
| 409 |
+
"img_path": "images/d4fae644884feb2b3543a804ce727543c012afad257cd167eb5487d306ecc872.jpg",
|
| 410 |
+
"text": "$$\na c c u r a c y ( \\hat { s } _ { e } , \\hat { s } _ { \\theta } ) = \\frac { 1 } { 2 N } \\sum _ { i = 1 } ^ { N } \\left[ \\mathbf { 1 } _ { \\mathrm { D } _ { \\psi } \\left( \\hat { \\mathbf { s } } _ { e } ^ { ( \\mathrm { i } ) } \\right) \\geq \\frac { 1 } { 2 } } + \\mathbf { 1 } _ { \\mathrm { D } _ { \\psi } \\left( \\hat { \\mathbf { s } } _ { \\theta } ^ { ( \\mathrm { i } ) } \\right) < \\frac { 1 } { 2 } } \\right] .\n$$",
|
| 411 |
+
"text_format": "latex",
|
| 412 |
+
"bbox": [
|
| 413 |
+
297,
|
| 414 |
+
324,
|
| 415 |
+
699,
|
| 416 |
+
368
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "The scalar $\\lambda \\geq 0$ is a tunable hyperparameter. ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
174,
|
| 425 |
+
373,
|
| 426 |
+
473,
|
| 427 |
+
388
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "We used single frames as states but sequences can also be used, and we do not require expert actions. Not requiring actions enables learning in very off-policy settings, where the action dimensions and distributions of the demonstrator (another robot or human) are different from those of the agent. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
395,
|
| 437 |
+
825,
|
| 438 |
+
438
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "4.1 THE SELECTION OF THE INVARIANT SET ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
454,
|
| 449 |
+
493,
|
| 450 |
+
469
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "The selection of the invariant set $\\mathcal { T }$ is a design choice. In general, we could always contrive nonstationary and adversarial ways of making this choice difficult. However, we argue that in many situations of great interest, including our robotic manipulation setup, it is easy to propose effective and very general invariant sets. ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
174,
|
| 459 |
+
481,
|
| 460 |
+
825,
|
| 461 |
+
536
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "A straightforward way to collect robot data is to execute a random policy. We can then use the resulting random episodes, for both expert and agent, to construct the invariant set $\\mathcal { T }$ . Another way to construct $\\mathcal { T }$ is to use early frames from both expert and agent episodes. Since in early frames little or no task behavior is apparent, this strategy turns out to be effective and no extra data has to be collected. This strategy also improves robustness with respect to variation in the initial conditions of the task; see for example block insertion in Figure 1(d). ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
542,
|
| 471 |
+
825,
|
| 472 |
+
627
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "Importantly, if the set $\\mathcal { T }$ captures some forms of irrelevance but not all forms, it will nonetheless always help in improving performance. In this regard, TRAIL will dominate its GAIL predecessor whenever the designer has some prior on what aspects of the data might be task irrelevant. ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
176,
|
| 481 |
+
633,
|
| 482 |
+
825,
|
| 483 |
+
676
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "5 EXPERIMENTS ",
|
| 490 |
+
"text_level": 1,
|
| 491 |
+
"bbox": [
|
| 492 |
+
176,
|
| 493 |
+
696,
|
| 494 |
+
326,
|
| 495 |
+
712
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "We focus on solving robot manipulation tasks. The environment implements two work-spaces: one with a Kinova Jaco arm (Jaco), and the other with a Sawyer arm (Sawyer). See supplementary material A.1 for a detailed description. Environment rewards, which are not used by GAIL-based methods, are sparse and equal to $+ 1$ for each step when a given task is solved and 0 otherwise. The maximum reward for the episode is 200, since this is the length of a single evaluation episode. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
728,
|
| 505 |
+
825,
|
| 506 |
+
799
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Our agent is based on the off-policy D4PG algorithm (Barth-Maron et al., 2018) because of its stability and data-efficiency (see supplementary material A.6). Following Vecerik et al. (2017), we add expert demonstrations into the agents’ experience replay, and refer to the resulting RL algorithm as D4PG from Demonstrations (D4PGfD). For each task we collect 100 human demonstrations. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
804,
|
| 516 |
+
823,
|
| 517 |
+
861
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Data augmentation Traditional data augmentation has proved beneficial in imitation learning (Berseth & Pal, 2019). Surprisingly, to the best of our knowledge, this has not been explicitly studied in prior publications on GAIL. However, we find that data augmentation is a generally useful component to prevent discriminator overfitting. It drastically improves the baseline GAIL agent, and is necessary to solve any of the harder manipulation tasks. We distort images by randomly changing brightness, contrast and saturation; random cropping and rotation; adding Gaussian noise. When multiple sensor inputs are available (e.g. multiple cameras), we also randomly drop out these inputs, but leaving at least one active. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
867,
|
| 527 |
+
823,
|
| 528 |
+
924
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 3
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
103,
|
| 538 |
+
825,
|
| 539 |
+
159
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "All discriminator-based methods in this work (including all baselines) use data augmentation except as indicated in the relevant ablations (see Section 5.2). We also considered regularizing the GAIL discriminator with spectral normalization (Miyato et al., 2018). It performed slightly better than GAIL, but still failed in the presence of distractor objects, and we thus omit spectral normalization in the main experiments for simplicity. ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
174,
|
| 548 |
+
166,
|
| 549 |
+
825,
|
| 550 |
+
236
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Actor early stopping When the agent has learned the desired behavior, and the resulting data is used for training, the discriminator will become unable to distinguish expert and agent observations based only on behavior. This forces the discriminator to rely on task-irrelevant information. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
243,
|
| 560 |
+
825,
|
| 561 |
+
285
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "To avoid this scenario, we propose to restart each actor episode after a certain number of steps such that successful behavior is rarely represented in agent data. This enables the discriminator to recognize the goal condition, which appears frequently at the end of demonstration episodes, as representative of expert behavior. To avoid hand-tuning the stopping step number, we found that the discriminator score can be used to derive an adaptive stopping criterion. Concretely, we restart an episode if the discriminator score at the current step exceeds the median score of the episode so far for $T _ { p a t i e n c e }$ consecutive steps (in practice we set $T _ { p a t i e n c e } = 1 0$ ). ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
292,
|
| 571 |
+
825,
|
| 572 |
+
391
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "We set invariant set hyperparameter $\\lambda = 1$ and use adaptive early stopping for TRAIL. The ablation with $\\lambda = 0$ , i.e. adaptive early stopping only, is referred to as TRAIL-0. Hence, the only difference between TRAIL-0 and TRAIL is that the later uses invariant set constraints. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
397,
|
| 582 |
+
825,
|
| 583 |
+
439
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "5.1 BLOCK LIFTING WITH DISTRACTORS ",
|
| 590 |
+
"text_level": 1,
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
457,
|
| 594 |
+
467,
|
| 595 |
+
470
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "In this section, we consider two variants of the lift task in the Sawyer work space: a) lift alone, where only one red cube is present, b) lift distracted, with two extra blocks (blue and green, see Figure 9). We show how adding these additional distractors affects the training procedure. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
482,
|
| 605 |
+
826,
|
| 606 |
+
525
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "We first compare our method to baselines. In doing so, the invariant set is constructed using the first 10 frames from every episode, as in the rest of the work. This choice does not require us to collect any extra data, and hence the comparison with baselines is fair. In the next section, we elaborate on the choice of the invariant set and provide additional experimental results. ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
174,
|
| 615 |
+
531,
|
| 616 |
+
825,
|
| 617 |
+
587
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "As baselines, we run BC and GAIL (with data augmentation). Baseline GAIL is the strongest we were able to implement. The only difference between this baseline and TRAIL is the use of invariant set constrains and actor early stopping (code, agent configurations like number of actors, and network architecture are the same). We additionally consider the approaches proposed by Reed et al. (2018) as GAIL-based baselines; using either a randomly initialized convolutional network, or a convolutional critic network, to provide fixed vision features on top of which a tiny discriminator network is trained. We call these two baselines random and critic respectively. Finally, to show the importance of actor early stopping, we run TRAIL-0 (Fig. 3). ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
594,
|
| 627 |
+
825,
|
| 628 |
+
707
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "image",
|
| 634 |
+
"img_path": "images/59bb3bff9b0dfb40d7b0e4e3cc9fbc548f0f04232c09b94486607c7ff7cfd013.jpg",
|
| 635 |
+
"image_caption": [
|
| 636 |
+
"Figure 3: Results for lift alone, lift distracted, and lift distracted seeded. Only TRAIL excels. "
|
| 637 |
+
],
|
| 638 |
+
"image_footnote": [],
|
| 639 |
+
"bbox": [
|
| 640 |
+
191,
|
| 641 |
+
715,
|
| 642 |
+
799,
|
| 643 |
+
835
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 4
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "All methods perform satisfactorily on lift alone, but the proposed methods TRAIL-0 and TRAIL do best. As expected, the performance of BC on lift distracted is similar to its performance on lift alone, despite the two additional blocks. The two additional blocks in lift distracted affect the GAIL-based baselines, despite being irrelevant to the task. ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
174,
|
| 652 |
+
867,
|
| 653 |
+
825,
|
| 654 |
+
924
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 4
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "To understand this effect, we conducted an additional experiment (lift distracted seeded). Here the initial block positions are randomly drawn from the expert demonstrations. Therefore, it is impossible to discriminate between expert and actor episodes using the first few frames of an episode. Note this initialization procedure is not applied to the evaluation actor, keeping the evaluation scores comparable between lift distracted and lift distracted seeded. ",
|
| 661 |
+
"bbox": [
|
| 662 |
+
174,
|
| 663 |
+
103,
|
| 664 |
+
825,
|
| 665 |
+
172
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 5
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "This experiment exposes one major culprit behind the performance degradation of GAIL: memorization. The discriminator can achieve perfect accuracy by memorizing all 100 initial positions from the demonstration set, making the reward function uninformative. By constraining the discriminator, TRAIL squeezes out this irrelevant information and succeeds in solving the task in the presence of distractions. TRAIL is the only method that is able to handle the variety of initial cube positions during training, achieving better than expert performance on lift distracted. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
174,
|
| 674 |
+
180,
|
| 675 |
+
825,
|
| 676 |
+
263
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 5
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "Interestingly, random performs reasonably on lift distracted. Given random’s strong performance, we conducted additional experiments to evaluate its effectiveness when trained with adaptive early stopping and present the results in Figure 12 of the supplementary material. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
176,
|
| 685 |
+
271,
|
| 686 |
+
825,
|
| 687 |
+
313
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 5
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "CONSTRUCTING THE INVARIANT SET $\\mathcal { T }$ ",
|
| 694 |
+
"text_level": 1,
|
| 695 |
+
"bbox": [
|
| 696 |
+
178,
|
| 697 |
+
330,
|
| 698 |
+
444,
|
| 699 |
+
343
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 5
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "In the previous subsection, early frames were used to construct the invariant set (TRAIL-early). Here, we evaluate another previously mentioned approach for constructing $\\mathcal { T }$ ; random policy (TRAILrandom). The lift distracted task caused all baselines to fail, but was solved by TRAIL. We introduce a harder version of the task, where the expert appearance is different, to tease out the differences between TRAIL-early and TRAIL-random. The difference in appearance between the expert and imitator allows the GAIL discriminator to trivially distinguish them. The results and the differences in the expert appearance are presented in Figure 4. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
354,
|
| 709 |
+
826,
|
| 710 |
+
453
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 5
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "image",
|
| 716 |
+
"img_path": "images/6b8cf409f166f495f4aaf1c532472a37e5e94c105788ca3abc316459da5a2a6d.jpg",
|
| 717 |
+
"image_caption": [
|
| 718 |
+
"Figure 4: Lift red block, where expert has a different body appearance, and with distractor blocks. TRAIL-random outperforms GAIL, and performs on par with TRAIL-early. "
|
| 719 |
+
],
|
| 720 |
+
"image_footnote": [],
|
| 721 |
+
"bbox": [
|
| 722 |
+
204,
|
| 723 |
+
468,
|
| 724 |
+
782,
|
| 725 |
+
578
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 5
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "The new task is indeed harder and it takes longer for TRAIL methods to achieve performance better than BC baseline, which is not affected by the different body appearance. GAIL is clearly outperformed and does not take off. ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
176,
|
| 734 |
+
630,
|
| 735 |
+
821,
|
| 736 |
+
671
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 5
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "The difference between TRAIL methods is negligible. We also tried to mix them but the differences remain imperceptible. Hence, in the following experiments we simply use early frames. This choice is pragmatic as it does not require that we collect any extra data, and hence the comparison with GAIL and other baselines is fair. It is also very simple to apply in practice, even if one does not have access to the expert setup anymore. Finally, it is general and powerful enough to be successfully used across all robotic manipulation tasks considered in this work. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
678,
|
| 746 |
+
825,
|
| 747 |
+
762
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 5
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "To decide how many initial frames should be used to construct $\\mathcal { T }$ , we conducted an ablation study and found out that the method is not very sensitive to this choice (see supplementary material A.2). Hence, we chose 10 initial frames, and intentionally used the same number for all tasks to further emphasize generality of this choice. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
770,
|
| 757 |
+
825,
|
| 758 |
+
825
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "5.2 ABLATION STUDIES ",
|
| 765 |
+
"text_level": 1,
|
| 766 |
+
"bbox": [
|
| 767 |
+
176,
|
| 768 |
+
844,
|
| 769 |
+
352,
|
| 770 |
+
858
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 5
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "MEASURING DISCRIMINATOR MEMORIZATION OF TASK-IRRELEVANT FEATURES ",
|
| 777 |
+
"text_level": 1,
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
871,
|
| 781 |
+
723,
|
| 782 |
+
885
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 5
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "In this section, we experimentally confirm that memorization is a limiting factor of GAIL methods. We equipped the discriminator with two extra heads whose inputs are the final spatial layer of the ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
173,
|
| 791 |
+
895,
|
| 792 |
+
821,
|
| 793 |
+
922
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 5
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "ResNet for the lift distracted task. The first head is trained on the first frames only, and has the same target as the main head (i.e. discriminating between agent and expert). To train the second head, we randomly divide the expert demonstrations into two equi-numerous subsets, and the task is to predict to which of these randomly chosen sets the demonstration was assigned to. Both heads are trained via backpropagation but their gradient is not propagated to the ResNet so they do not influence the training procedure directly. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
174,
|
| 802 |
+
103,
|
| 803 |
+
825,
|
| 804 |
+
188
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "If our claim is correct, we expect the extra heads to have higher accuracy for TRAIL-0 as compared to TRAIL, since TRAIL representations are penalized for having features triggering memorization, i.e. the features should not aid discriminating based on the first frames or predicting a random label for each expert demonstration. No reasonably performing method is able to force $50 \\%$ accuracy for extra heads since some features are important to solve the task (e.g. the position of the red cube). ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
194,
|
| 814 |
+
825,
|
| 815 |
+
263
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "We also collected 25 extra holdout demonstrations and visualize the average discriminator prediction on them, and compare with predictions on the training demonstrations. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
173,
|
| 824 |
+
271,
|
| 825 |
+
823,
|
| 826 |
+
300
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "image",
|
| 832 |
+
"img_path": "images/f3d0ef0720ecd274b57537e078d92668d28a832dccb1c8bad24328a24d337bc8.jpg",
|
| 833 |
+
"image_caption": [
|
| 834 |
+
"Figure 5: Demonstrating the memorization problem on the lift distracted task (here higher accuracy is worse). Accuracy of different discriminator heads is presented (A-D). In A, the overall accuracy for all timesteps. Then main $\\mathrm { ( m ) }$ and extra (e) heads accuracy for the first steps are presented in B and C, respectively. Accuracy of the head predicting randomly assigned demonstration class is shown in D. Average discriminator predictions for training and holdout demonstration are shown in E and F. "
|
| 835 |
+
],
|
| 836 |
+
"image_footnote": [],
|
| 837 |
+
"bbox": [
|
| 838 |
+
186,
|
| 839 |
+
316,
|
| 840 |
+
797,
|
| 841 |
+
513
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 6
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "In Fig. 5, we see the overall accuracy of the main head for TRAIL-0 is significantly higher, and the difference is larger for early steps (when TRAIL achieves only $50 \\%$ , as expected). TRAIL representations are less helpful for extra heads (see Figure 5 C-D). Finally, TRAIL-0 clearly overfits on training demonstrations, predicting almost the maximum score, while only $\\sim 0 . 2 5$ is predicted for holdout demonstrations. The TRAIL average predictions for both datasets are almost identical. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
173,
|
| 850 |
+
614,
|
| 851 |
+
825,
|
| 852 |
+
684
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 6
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "ACTOR EARLY STOPPING (TRAIL-0) ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
176,
|
| 861 |
+
708,
|
| 862 |
+
431,
|
| 863 |
+
722
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 6
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "In this section, we analyze the importance of adaptive early stopping on 3 tasks in the Jaco workspace: lift red cube $( l i f t )$ , put red cube in box $( b o x )$ , and stack red cube on blue cube (stack). We consider D4PGfD and three GAIL-based models with varying termination policies: a) fixed step (50), b) based on ground truth task rewards, and c) based on adaptive early stopping (TRAIL-0). Using ground truth task rewards, an episode is terminated if the reward at the current step exceeds the median reward of the episode so far for 10 consecutive steps. Results are presented in Figure 6. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
174,
|
| 872 |
+
734,
|
| 873 |
+
825,
|
| 874 |
+
819
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 6
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Termination based on task reward is clearly superior; although unrealistic in practice, it defines the performance upper-bound and clearly shows that early stopping is beneficial. TRAIL-0 is robust and reaches human performance on all tasks. A fixed termination policy, when tuned, can be very effective. The same fixed termination step, however, does not work for all tasks. See Figure 13 in supplementary material for the effects of varying termination steps. Finally, as can be inferred from stack results, the dense rewards provided by TRAIL-0 are helpful in solving this challenging problem which is unsolved with D4PGfD even though D4PGfD uses ground truth task rewards. ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
825,
|
| 884 |
+
825,
|
| 885 |
+
924
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 6
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "image",
|
| 891 |
+
"img_path": "images/236f966ae10dec709f176a7097a72d5e3722052c12c4e9e616a6e0ea34d38c6a.jpg",
|
| 892 |
+
"image_caption": [
|
| 893 |
+
"Figure 6: Results for lift, box, and stack on Jaco environment. "
|
| 894 |
+
],
|
| 895 |
+
"image_footnote": [],
|
| 896 |
+
"bbox": [
|
| 897 |
+
181,
|
| 898 |
+
94,
|
| 899 |
+
805,
|
| 900 |
+
212
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 7
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "DATA AUGMENTATION ",
|
| 907 |
+
"text_level": 1,
|
| 908 |
+
"bbox": [
|
| 909 |
+
176,
|
| 910 |
+
266,
|
| 911 |
+
330,
|
| 912 |
+
280
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 7
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "In Table 5.2, we report the best reward obtained in the first 12 hours of training (averaged for all seeds; \nsee Figure 14 for full curves). The results show that data augmentation is needed in lift distracted. \nFor the lift alone task, TRAIL-0 with data augmentation performs on par with TRAIL. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
292,
|
| 922 |
+
826,
|
| 923 |
+
335
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 7
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "table",
|
| 929 |
+
"img_path": "images/44e435f0cddc322fb45ee6a3331dd739fc71ea12dd406b3c24ab878b32347dd0.jpg",
|
| 930 |
+
"table_caption": [
|
| 931 |
+
"Table 1: Influence of data augmentation (evaluated on rewards) for lift alone and lift distracted. "
|
| 932 |
+
],
|
| 933 |
+
"table_footnote": [],
|
| 934 |
+
"table_body": "<table><tr><td>Task</td><td>Regularization</td><td>Data augmentation</td><td>No data augmentation</td></tr><tr><td>lift alone</td><td>TRAIL-0 TRAIL</td><td>~165</td><td>~115</td></tr><tr><td rowspan=\"2\">lift distracted</td><td>TRAIL-0</td><td>~155</td><td>~165</td></tr><tr><td>TRAIL</td><td>~30 ~180</td><td>~5 ~10</td></tr></table>",
|
| 935 |
+
"bbox": [
|
| 936 |
+
253,
|
| 937 |
+
354,
|
| 938 |
+
741,
|
| 939 |
+
440
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 7
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "The performance of TRAIL is not affected by the lack of data augmentation on the lift alone task, whereas the performance of TRAIL-0 is. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
481,
|
| 949 |
+
825,
|
| 950 |
+
508
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 7
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "LEARNING WITH A FIXED, PERFECT DISCRIMINATOR ",
|
| 957 |
+
"text_level": 1,
|
| 958 |
+
"bbox": [
|
| 959 |
+
173,
|
| 960 |
+
532,
|
| 961 |
+
539,
|
| 962 |
+
546
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 7
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "To assess whether learned discriminators are necessary, we compare TRAIL against agents using a fixed reward function corresponding to $R _ { e x p e r t } = 1$ and $R _ { a g e n t } = 0$ for the lift alone and lift distracted tasks. This baseline simulates an oracle discriminator with perfect generalization, but which is agnostic to behavior. On the lift alone task, agents using this fixed reward achieve roughly half the reward of TRAIL asymptotically, and on lift distracted they do not solve the task (average rewards are less than 5). See supplementary Figure 16 for learning curves. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
174,
|
| 971 |
+
558,
|
| 972 |
+
825,
|
| 973 |
+
643
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 7
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "5.3 LEARNING FROM OTHER EMBODIMENTS AND PROPS ",
|
| 980 |
+
"text_level": 1,
|
| 981 |
+
"bbox": [
|
| 982 |
+
173,
|
| 983 |
+
667,
|
| 984 |
+
571,
|
| 985 |
+
680
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 7
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Since the TRAIL discriminator is trained to ignore task-irrelevant features, it can learn from demonstrations with different embodiments and props. Figure 7 shows that GAIL even with augmentation fails to learn block lifting from a different embodiment, and performs worse when the expert uses a different prop color. TRAIL solves the task and achieves better performance in both cases. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
174,
|
| 994 |
+
695,
|
| 995 |
+
826,
|
| 996 |
+
751
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 7
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "image",
|
| 1002 |
+
"img_path": "images/c312fba1da06c95e98c0f3e62ac762e79d2ef8e05c275905eb6accf57d14aeb2.jpg",
|
| 1003 |
+
"image_caption": [
|
| 1004 |
+
"Figure 7: When the expert differs in body or prop appearance, TRAIL outperforms GAIL. "
|
| 1005 |
+
],
|
| 1006 |
+
"image_footnote": [],
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
204,
|
| 1009 |
+
771,
|
| 1010 |
+
792,
|
| 1011 |
+
887
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "5.4 EVALUATION ON DIVERSE MANIPULATION TASKS ",
|
| 1018 |
+
"text_level": 1,
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
176,
|
| 1021 |
+
104,
|
| 1022 |
+
552,
|
| 1023 |
+
117
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 8
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "To further demonstrate benefits of using our proposed method, we present results for TRAIL, TRAIL0, the baseline GAIL, and BC on more challenging tasks. Specifically, we consider stack with the Sawyer robot; and insertion and stack banana in the Jaco work-space. The results are shown in Figure 8. The tasks we consider here are much harder as evidenced by the performance of BC agents. These experiments suggest that TRAIL is generally useful as an improvement over GAIL, even when the tasks are not designed to include task-irrelevant information. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
173,
|
| 1032 |
+
130,
|
| 1033 |
+
826,
|
| 1034 |
+
213
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 8
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "image",
|
| 1040 |
+
"img_path": "images/b34a66b68ab4b752173566a72eef0ab16bcf79a532090242dd93629c664709c9.jpg",
|
| 1041 |
+
"image_caption": [
|
| 1042 |
+
"Figure 8: Results comparing TRAIL, TRAIL-0 and GAIL for diverse manipulation tasks. "
|
| 1043 |
+
],
|
| 1044 |
+
"image_footnote": [],
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
186,
|
| 1047 |
+
227,
|
| 1048 |
+
802,
|
| 1049 |
+
343
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 8
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "6 CONCLUSIONS ",
|
| 1056 |
+
"text_level": 1,
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
393,
|
| 1060 |
+
328,
|
| 1061 |
+
409
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 8
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "To make adversarial imitation work on nontrivial tasks from pixels, it is crucial to prevent the discriminator from exploiting task-irrelevant information. Data augmentation is a necessary component that prevents the discriminator from overfitting, but alone is not sufficient to solve more challenging problems. Our proposed method TRAIL proved to be a remedy which effectively focuses the discriminator on the task even when task-irrelevant features are present. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
425,
|
| 1071 |
+
826,
|
| 1072 |
+
494
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 8
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "We showed through ablations that TRAIL benefits from data augmentation, actor early stopping, and the use of invariant set constraints. The last enables our agent to solve the full task suite in our experiments showing its decisive importance. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
176,
|
| 1081 |
+
501,
|
| 1082 |
+
823,
|
| 1083 |
+
544
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 8
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "REFERENCES ",
|
| 1090 |
+
"text_level": 1,
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
176,
|
| 1093 |
+
571,
|
| 1094 |
+
285,
|
| 1095 |
+
587
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 8
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
174,
|
| 1104 |
+
594,
|
| 1105 |
+
825,
|
| 1106 |
+
621
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 8
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Paul Bakker and Yasuo Kuniyoshi. Robot see, robot do: An overview of robot imitation. In AISB96 Workshop on Learning in Robots and Animals, 1996. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
173,
|
| 1115 |
+
631,
|
| 1116 |
+
823,
|
| 1117 |
+
657
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 8
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Nir Baram, Oron Anschel, Itai Caspi, and Shie Mannor. End-to-end differentiable adversarial imitation learning. In ICML, 2017. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
173,
|
| 1126 |
+
666,
|
| 1127 |
+
823,
|
| 1128 |
+
694
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 8
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Gabriel Barth-Maron, Matthew W Hoffman, David Budden, Will Dabney, Dan Horgan, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap. Distributed distributional deterministic policy gradients. arXiv preprint arXiv:1804.08617, 2018. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
703,
|
| 1138 |
+
823,
|
| 1139 |
+
742
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 8
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. arXiv preprint arXiv:1707.06887, 2017. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
171,
|
| 1148 |
+
752,
|
| 1149 |
+
825,
|
| 1150 |
+
779
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 8
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Glen Berseth and Christopher J Pal. Visual imitation learning with recurrent siamese networks. arXiv preprint arXiv:1901.07186, 2019. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
787,
|
| 1160 |
+
823,
|
| 1161 |
+
815
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 8
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Lionel Blondé and Alexandros Kalousis. Sample-efficient imitation learning via generative adversarial nets. arXiv preprint arXiv:1809.02064, 2018. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
173,
|
| 1170 |
+
824,
|
| 1171 |
+
823,
|
| 1172 |
+
852
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 8
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
173,
|
| 1181 |
+
861,
|
| 1182 |
+
823,
|
| 1183 |
+
888
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 8
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
173,
|
| 1192 |
+
897,
|
| 1193 |
+
825,
|
| 1194 |
+
924
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 8
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pp. 1087–1098, 2017. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
176,
|
| 1203 |
+
104,
|
| 1204 |
+
823,
|
| 1205 |
+
142
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 9
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. arXiv preprint arXiv:1611.03852, 2016a. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
176,
|
| 1214 |
+
151,
|
| 1215 |
+
823,
|
| 1216 |
+
179
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 9
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016b. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
176,
|
| 1225 |
+
188,
|
| 1226 |
+
823,
|
| 1227 |
+
214
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 9
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. arXiv preprint arXiv:1709.04905, 2017. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
222,
|
| 1237 |
+
821,
|
| 1238 |
+
250
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 9
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. In ICLR, 2018. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
173,
|
| 1247 |
+
257,
|
| 1248 |
+
823,
|
| 1249 |
+
285
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 9
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"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. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
173,
|
| 1258 |
+
292,
|
| 1259 |
+
825,
|
| 1260 |
+
332
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 9
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Ian Osband, Gabriel Dulac-Arnold, John Agapiou, Joel Z. Leibo, and Audrunas Gruslys. Deep q-learning from demonstrations. In AAAI, 2018. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
174,
|
| 1269 |
+
340,
|
| 1270 |
+
825,
|
| 1271 |
+
380
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 9
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
173,
|
| 1280 |
+
388,
|
| 1281 |
+
823,
|
| 1282 |
+
416
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 9
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado Van Hasselt, and David Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
173,
|
| 1291 |
+
422,
|
| 1292 |
+
821,
|
| 1293 |
+
450
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 9
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Mitsuo Kawato, Francesca Gandolfo, Hiroaki Gomi, and Yasuhiro Wada. Teaching by showing in kendama based on optimization principle. In ICANN. 1994. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
174,
|
| 1302 |
+
458,
|
| 1303 |
+
821,
|
| 1304 |
+
486
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 9
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
173,
|
| 1313 |
+
494,
|
| 1314 |
+
825,
|
| 1315 |
+
521
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 9
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In NIPS, 2017. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
174,
|
| 1324 |
+
529,
|
| 1325 |
+
823,
|
| 1326 |
+
556
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 9
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Josh Merel, Yuval Tassa, Sriram Srinivasan, Jay Lemmon, Ziyu Wang, Greg Wayne, and Nicolas Heess. Learning human behaviors from motion capture by adversarial imitation. arXiv preprint arXiv:1707.02201, 2017. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
171,
|
| 1335 |
+
564,
|
| 1336 |
+
823,
|
| 1337 |
+
592
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 9
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Hiroyuki Miyamoto, Stefan Schaal, Francesca Gandolfo, Hiroaki Gomi, Yasuharu Koike, Rieko Osu, Eri Nakano, Yasuhiro Wada, and Mitsuo Kawato. A kendama learning robot based on bi-directional theory. Neural networks, 1996. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
173,
|
| 1346 |
+
599,
|
| 1347 |
+
823,
|
| 1348 |
+
640
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 9
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In ICLR, 2018. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
173,
|
| 1357 |
+
647,
|
| 1358 |
+
823,
|
| 1359 |
+
675
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 9
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "text",
|
| 1365 |
+
"text": "Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In Icml, pp. 663–670, 2000. ",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
171,
|
| 1368 |
+
683,
|
| 1369 |
+
823,
|
| 1370 |
+
698
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 9
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "Xue Bin Peng, Angjoo Kanazawa, Sam Toyer, Pieter Abbeel, and Sergey Levine. Variational discriminator bottleneck: Improving imitation learning, inverse rl, and gans by constraining information flow. arXiv preprint arXiv:1810.00821, 2018. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
173,
|
| 1379 |
+
705,
|
| 1380 |
+
823,
|
| 1381 |
+
744
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 9
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Tobias Pohlen, Bilal Piot, Todd Hester, Mohammad Gheshlaghi Azar, Dan Horgan, David Budden, Gabriel Barth-Maron, Hado van Hasselt, John Quan, Mel Vecerík, et al. Observe and look further: Achieving ˇ consistent performance on atari. arXiv preprint arXiv:1805.11593, 2018. ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
174,
|
| 1390 |
+
753,
|
| 1391 |
+
823,
|
| 1392 |
+
792
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 9
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
169,
|
| 1401 |
+
801,
|
| 1402 |
+
823,
|
| 1403 |
+
829
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 9
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "Rouhollah Rahmatizadeh, Pooya Abolghasemi, Ladislau Bölöni, and Sergey Levine. Vision-based multitask manipulation for inexpensive robots using end-to-end learning from demonstration. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 3758–3765. IEEE, 2018. ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
173,
|
| 1412 |
+
837,
|
| 1413 |
+
823,
|
| 1414 |
+
876
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 9
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "text",
|
| 1420 |
+
"text": "Aravind Rajeswaran, Vikash Kumar, Abhishek Gupta, Giulia Vezzani, John Schulman, Emanuel Todorov, and Sergey Levine. Learning complex dexterous manipulation with deep reinforcement learning and demonstrations. arXiv preprint arXiv:1709.10087, 2017. ",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
174,
|
| 1423 |
+
885,
|
| 1424 |
+
823,
|
| 1425 |
+
922
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 9
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "Scott Reed, Yusuf Aytar, Ziyu Wang, Tom Paine, Aäron van den Oord, Tobias Pfaff, Sergio Gomez, Alexander Novikov, David Budden, and Oriol Vinyals. Visual imitation with a minimal adversary. 2018. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
173,
|
| 1434 |
+
104,
|
| 1435 |
+
823,
|
| 1436 |
+
131
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 10
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "Stéphane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011. ",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
176,
|
| 1445 |
+
140,
|
| 1446 |
+
821,
|
| 1447 |
+
179
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 10
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "text",
|
| 1453 |
+
"text": "Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. 2018. ",
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
176,
|
| 1456 |
+
188,
|
| 1457 |
+
823,
|
| 1458 |
+
214
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 10
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "Stefan Schaal. Learning from demonstration. In NIPS, 1997. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
173,
|
| 1467 |
+
222,
|
| 1468 |
+
534,
|
| 1469 |
+
236
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 10
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In ICML, 2014. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
171,
|
| 1478 |
+
244,
|
| 1479 |
+
823,
|
| 1480 |
+
272
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 10
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "Avi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. arXiv preprint arXiv:1904.07854, 2019. ",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
171,
|
| 1489 |
+
280,
|
| 1490 |
+
823,
|
| 1491 |
+
308
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 10
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Bradly C Stadie, Pieter Abbeel, and Ilya Sutskever. Third-person imitation learning. arXiv preprint arXiv:1703.01703, 2017. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
173,
|
| 1500 |
+
315,
|
| 1501 |
+
823,
|
| 1502 |
+
342
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 10
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. ",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
171,
|
| 1511 |
+
351,
|
| 1512 |
+
763,
|
| 1513 |
+
364
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 10
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5026–5033. IEEE, 2012. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
174,
|
| 1522 |
+
373,
|
| 1523 |
+
826,
|
| 1524 |
+
400
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 10
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. ",
|
| 1531 |
+
"bbox": [
|
| 1532 |
+
173,
|
| 1533 |
+
409,
|
| 1534 |
+
821,
|
| 1535 |
+
435
|
| 1536 |
+
],
|
| 1537 |
+
"page_idx": 10
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "text",
|
| 1541 |
+
"text": "Matej Vecerik, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothörl, Thomas Lampe, and Martin A. Riedmiller. Leveraging demonstrations for deep reinforcement learning on robotics problems with sparse rewards. CoRR, 2017. ",
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
173,
|
| 1544 |
+
443,
|
| 1545 |
+
823,
|
| 1546 |
+
483
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 10
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"text": "Yuke Zhu, Ziyu Wang, Josh Merel, Andrei Rusu, Tom Erez, Serkan Cabi, Saran Tunyasuvunakool, János Kramár, Raia Hadsell, Nando de Freitas, et al. Reinforcement and imitation learning for diverse visuomotor skills. In RSS, 2018. ",
|
| 1553 |
+
"bbox": [
|
| 1554 |
+
174,
|
| 1555 |
+
491,
|
| 1556 |
+
823,
|
| 1557 |
+
530
|
| 1558 |
+
],
|
| 1559 |
+
"page_idx": 10
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"text": "Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008. ",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
169,
|
| 1566 |
+
540,
|
| 1567 |
+
823,
|
| 1568 |
+
566
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 10
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"text": "A SUPPLEMENTARY MATERIAL ",
|
| 1575 |
+
"text_level": 1,
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
176,
|
| 1578 |
+
103,
|
| 1579 |
+
447,
|
| 1580 |
+
117
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 11
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "A.1 DETAILED DESCRIPTION OF ENVIRONMENT ",
|
| 1587 |
+
"text_level": 1,
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
174,
|
| 1590 |
+
132,
|
| 1591 |
+
517,
|
| 1592 |
+
146
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 11
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "All our simulations are conducted using $\\mathbf { M u J o C o ^ { 1 } }$ (Todorov et al., 2012). We test our proposed algorithms in a variety of different envrionments using simulated Kinova Jaco2, and Sawyer robot arms3; see Figure 9. We use the Robotiq 2F85 gripper4 in conjuction with the Sawyer arm. ",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
176,
|
| 1601 |
+
157,
|
| 1602 |
+
825,
|
| 1603 |
+
200
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 11
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "image",
|
| 1609 |
+
"img_path": "images/6bccf9982d118787a6c2979868292057dd3b8d908253da25a031063cb76c20dc.jpg",
|
| 1610 |
+
"image_caption": [],
|
| 1611 |
+
"image_footnote": [],
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
205,
|
| 1614 |
+
212,
|
| 1615 |
+
789,
|
| 1616 |
+
324
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 11
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "text",
|
| 1622 |
+
"text": "Figure 9: Two work spaces, Jaco (left) which uses the Jaco arm and is $2 0 \\times 2 0 ~ \\mathrm { c m }$ , and Sawyer (right) which uses the Sawyer arm and more closely resembles a real robot cage and is $3 5 \\times 3 5 \\mathrm { c m }$ . ",
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
176,
|
| 1625 |
+
338,
|
| 1626 |
+
825,
|
| 1627 |
+
367
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 11
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "text",
|
| 1633 |
+
"text": "To provide demonstrations, we use the SpaceNavigator 3D motion controller5 to set Cartesion velocities of the robot arm. The gripper actions are implemented via the buttons on the controller. All demonstrations in our experiments are provided via human teleoperation and we collected 100 demonstrations for each experiment. ",
|
| 1634 |
+
"bbox": [
|
| 1635 |
+
174,
|
| 1636 |
+
380,
|
| 1637 |
+
825,
|
| 1638 |
+
436
|
| 1639 |
+
],
|
| 1640 |
+
"page_idx": 11
|
| 1641 |
+
},
|
| 1642 |
+
{
|
| 1643 |
+
"type": "text",
|
| 1644 |
+
"text": "Jaco: When using the Jaco arm, we use joint velocity control (9DOF) where we control all 6 joints of arm and all 3 joints of the hand. The simulation is run with a numerical time step of 10 milliseconds, integrating 5 steps, to get a control frequency of 20HZ. The agent uses a frontal camera of size $6 4 \\times 6 4$ (see Figure 10(a)). For a full list of observations the agent sees, please refer to Table 2(a). ",
|
| 1645 |
+
"bbox": [
|
| 1646 |
+
174,
|
| 1647 |
+
444,
|
| 1648 |
+
826,
|
| 1649 |
+
500
|
| 1650 |
+
],
|
| 1651 |
+
"page_idx": 11
|
| 1652 |
+
},
|
| 1653 |
+
{
|
| 1654 |
+
"type": "image",
|
| 1655 |
+
"img_path": "images/b6bc13e4b98119453319a74daf7dde365754b163a2a6e1e98dd817c38debb41d.jpg",
|
| 1656 |
+
"image_caption": [
|
| 1657 |
+
"Figure 10: Illustration of the pixels inputs to the agent. "
|
| 1658 |
+
],
|
| 1659 |
+
"image_footnote": [],
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
205,
|
| 1662 |
+
511,
|
| 1663 |
+
784,
|
| 1664 |
+
664
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 11
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "Sawyer: When using the Sawyer arm, we use Cartesian velocity control (6DOF) for the robot arm and add one additional action for the gripper resulting in 7 degrees of freedom. The simulation is run with a numerical time step of 10 milliseconds, integrating 10 steps, to get a control frequency of 10HZ. The agent uses two frontal cameras of size $6 4 \\times 6 4$ situated on the left and right side of the robot cage respectively (see Figure $1 0 ( \\mathrm { b } , \\mathrm { c } ) ,$ ). For a full list of observations the agent sees, please refer to Table 2(b). ",
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
173,
|
| 1673 |
+
705,
|
| 1674 |
+
825,
|
| 1675 |
+
790
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 11
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "text",
|
| 1681 |
+
"text": "For all environments considered in this paper, we provide sparse rewards (i.e. if task is accomplished, the reward is 1 and 0 otherwise). In experiments regards our proposed methods, rewards are only used for evaluation purposes and not for training the agent. ",
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
173,
|
| 1684 |
+
796,
|
| 1685 |
+
823,
|
| 1686 |
+
839
|
| 1687 |
+
],
|
| 1688 |
+
"page_idx": 11
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"type": "table",
|
| 1692 |
+
"img_path": "images/07b4e70c00c60a1551189151f9ee412f3336bc9f65211675aee4c92bca3c9287.jpg",
|
| 1693 |
+
"table_caption": [
|
| 1694 |
+
"a) Jaco "
|
| 1695 |
+
],
|
| 1696 |
+
"table_footnote": [],
|
| 1697 |
+
"table_body": "<table><tr><td>Feature Name</td><td>Dimensions</td></tr><tr><td>frontal camera base force and torque sensors</td><td>64×64×3 6</td></tr><tr><td>arm joints position</td><td>6</td></tr><tr><td>arm joints velocity</td><td>6</td></tr><tr><td>wrist force and torque sensors</td><td>6</td></tr><tr><td>hand finger joints position</td><td>3</td></tr><tr><td>hand finger joints velocity</td><td></td></tr><tr><td>hand fingertip sensors</td><td>3</td></tr><tr><td></td><td>3</td></tr><tr><td>grip site position</td><td>3</td></tr><tr><td>pinch site position</td><td>3</td></tr></table>",
|
| 1698 |
+
"bbox": [
|
| 1699 |
+
169,
|
| 1700 |
+
133,
|
| 1701 |
+
460,
|
| 1702 |
+
281
|
| 1703 |
+
],
|
| 1704 |
+
"page_idx": 12
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "table",
|
| 1708 |
+
"img_path": "images/35828ddf5a5369eb1bb42ba00067e3cdf43e97fe28c656aea544c66d4b4046ca.jpg",
|
| 1709 |
+
"table_caption": [
|
| 1710 |
+
"Table 2: Observation and dimensions. "
|
| 1711 |
+
],
|
| 1712 |
+
"table_footnote": [],
|
| 1713 |
+
"table_body": "<table><tr><td colspan=\"2\">b) Sawyer</td></tr><tr><td>Feature Name frontleft camera</td><td>Dimensions 64×64×3</td></tr><tr><td>front right camera</td><td>64×64×3</td></tr><tr><td>arm joint position</td><td>7</td></tr><tr><td>arm joint velocity</td><td>7</td></tr><tr><td>wrist force sensor</td><td>3</td></tr><tr><td>wrist torque sensor</td><td>3</td></tr><tr><td>hand grasp sensor</td><td></td></tr><tr><td></td><td>1</td></tr><tr><td>hand joint position</td><td>1</td></tr><tr><td>tool center point cartesian orientation</td><td>9</td></tr><tr><td>tool center point cartesian position</td><td></td></tr><tr><td>hand joint velocity</td><td>3 1</td></tr></table>",
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
480,
|
| 1716 |
+
126,
|
| 1717 |
+
816,
|
| 1718 |
+
294
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 12
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "text",
|
| 1724 |
+
"text": "A.2 EARLY FRAMES ABLATION STUDY ",
|
| 1725 |
+
"text_level": 1,
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
176,
|
| 1728 |
+
321,
|
| 1729 |
+
452,
|
| 1730 |
+
335
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 12
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "Here, we vary the number of early frames of each episode used to form $\\mathcal { T }$ . We report that a range of values from 1 up to 20 works well across both tasks (Put in box and Stack banana), with performance gradually degrading as the value increased beyond 20 (Fig. 11). ",
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
174,
|
| 1739 |
+
348,
|
| 1740 |
+
825,
|
| 1741 |
+
390
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 12
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "image",
|
| 1747 |
+
"img_path": "images/62c162c76431293f01240e50adc3fc2894bfed770d528775da6f48cfa37dd471.jpg",
|
| 1748 |
+
"image_caption": [
|
| 1749 |
+
"Figure 11: TRAIL performance, varying the number of first frames in each episode used to form $\\mathcal { T }$ . "
|
| 1750 |
+
],
|
| 1751 |
+
"image_footnote": [],
|
| 1752 |
+
"bbox": [
|
| 1753 |
+
204,
|
| 1754 |
+
406,
|
| 1755 |
+
790,
|
| 1756 |
+
541
|
| 1757 |
+
],
|
| 1758 |
+
"page_idx": 12
|
| 1759 |
+
},
|
| 1760 |
+
{
|
| 1761 |
+
"type": "text",
|
| 1762 |
+
"text": "A.3 TRAIL-0 WITH random ",
|
| 1763 |
+
"text_level": 1,
|
| 1764 |
+
"bbox": [
|
| 1765 |
+
176,
|
| 1766 |
+
582,
|
| 1767 |
+
382,
|
| 1768 |
+
597
|
| 1769 |
+
],
|
| 1770 |
+
"page_idx": 12
|
| 1771 |
+
},
|
| 1772 |
+
{
|
| 1773 |
+
"type": "text",
|
| 1774 |
+
"text": "We found out and mentioned in the subsection 5.1 that random benefits from TRAIL-0. Unfortunately, it is still prone to overfitting and hence, worse than our full method – TRAIL. We present random $^ +$ TRAIL-0 accompanied with our methods in Figure 12. Our TRAIL and random $^ +$ TRAIL-0 are the only methods exceeding BC performance on lift distracted. However, TRAIL performance is clearly better (obtains higher rewards and never gets overfitted). ",
|
| 1775 |
+
"bbox": [
|
| 1776 |
+
173,
|
| 1777 |
+
608,
|
| 1778 |
+
825,
|
| 1779 |
+
679
|
| 1780 |
+
],
|
| 1781 |
+
"page_idx": 12
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "image",
|
| 1785 |
+
"img_path": "images/ed344e1142f29ef99b9a64add4b50040c0bf4ab9992f0071804687203c06a46a.jpg",
|
| 1786 |
+
"image_caption": [
|
| 1787 |
+
"Figure 12: Results for lift alone, lift distracted, and lift distracted seeded. "
|
| 1788 |
+
],
|
| 1789 |
+
"image_footnote": [],
|
| 1790 |
+
"bbox": [
|
| 1791 |
+
184,
|
| 1792 |
+
693,
|
| 1793 |
+
803,
|
| 1794 |
+
801
|
| 1795 |
+
],
|
| 1796 |
+
"page_idx": 12
|
| 1797 |
+
},
|
| 1798 |
+
{
|
| 1799 |
+
"type": "text",
|
| 1800 |
+
"text": "A.4 FIXED TERMINATION POLICY ",
|
| 1801 |
+
"text_level": 1,
|
| 1802 |
+
"bbox": [
|
| 1803 |
+
176,
|
| 1804 |
+
842,
|
| 1805 |
+
419,
|
| 1806 |
+
856
|
| 1807 |
+
],
|
| 1808 |
+
"page_idx": 12
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "text",
|
| 1812 |
+
"text": "As mentioned in the subsection 5.2, the most basic early termination policy – fixed step termination – may be very effective if tuned. Since the tuning may be expensive in practice, we recommend using adaptive early stopping (TRAIL-0). However, for the sake of completeness we provide results for fixed step termination policy depending on the hyperparameter tuned. The results for stack task are presented in Figure 13. The Jaco work space is considered here because Sawyer requires TRAIL to obtain high rewards. As can be inferred from the figure, the performance is very sensitive to the fixed step hyperparameter. We refer to subsection 5.2 for more comments on all methods. ",
|
| 1813 |
+
"bbox": [
|
| 1814 |
+
174,
|
| 1815 |
+
867,
|
| 1816 |
+
826,
|
| 1817 |
+
924
|
| 1818 |
+
],
|
| 1819 |
+
"page_idx": 12
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "text",
|
| 1823 |
+
"text": "",
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
173,
|
| 1826 |
+
103,
|
| 1827 |
+
825,
|
| 1828 |
+
146
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 13
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "image",
|
| 1834 |
+
"img_path": "images/6ce8e8947b35ee83aff9d74c4c2c443c36dcd3ab4361b7b7f06e4556241f9585.jpg",
|
| 1835 |
+
"image_caption": [
|
| 1836 |
+
"Figure 13: Results for stack in Jaco work space. Fixed step termination policy can be very effective but the final performance is very sensitive to the hyperparameter. TRAIL-0 does not need tuning nor access to the environment reward. "
|
| 1837 |
+
],
|
| 1838 |
+
"image_footnote": [],
|
| 1839 |
+
"bbox": [
|
| 1840 |
+
310,
|
| 1841 |
+
160,
|
| 1842 |
+
676,
|
| 1843 |
+
309
|
| 1844 |
+
],
|
| 1845 |
+
"page_idx": 13
|
| 1846 |
+
},
|
| 1847 |
+
{
|
| 1848 |
+
"type": "text",
|
| 1849 |
+
"text": "A.5 DATA AUGMENTATION ",
|
| 1850 |
+
"text_level": 1,
|
| 1851 |
+
"bbox": [
|
| 1852 |
+
176,
|
| 1853 |
+
388,
|
| 1854 |
+
374,
|
| 1855 |
+
402
|
| 1856 |
+
],
|
| 1857 |
+
"page_idx": 13
|
| 1858 |
+
},
|
| 1859 |
+
{
|
| 1860 |
+
"type": "text",
|
| 1861 |
+
"text": "An extra set of experiments on lift alone and lift distracted tasks (described in subsection 5.1) has been performed to show importance of data augmentation. ",
|
| 1862 |
+
"bbox": [
|
| 1863 |
+
173,
|
| 1864 |
+
414,
|
| 1865 |
+
823,
|
| 1866 |
+
443
|
| 1867 |
+
],
|
| 1868 |
+
"page_idx": 13
|
| 1869 |
+
},
|
| 1870 |
+
{
|
| 1871 |
+
"type": "text",
|
| 1872 |
+
"text": "Because in the subsection 5.2 only the peak performance is presented (Table 5.2), we present here the full curves in Figure 14. The results shows that data augmentation is necessary to obtain high rewards in lift distracted. For easier lift alone, TRAIL-0 with data augmentation perform at par with TRAIL. ",
|
| 1873 |
+
"bbox": [
|
| 1874 |
+
174,
|
| 1875 |
+
450,
|
| 1876 |
+
826,
|
| 1877 |
+
492
|
| 1878 |
+
],
|
| 1879 |
+
"page_idx": 13
|
| 1880 |
+
},
|
| 1881 |
+
{
|
| 1882 |
+
"type": "image",
|
| 1883 |
+
"img_path": "images/bb24dedec05c204244af33e7fd3602ca1d47b8b427d2224cef1cd3839e7e72d0.jpg",
|
| 1884 |
+
"image_caption": [
|
| 1885 |
+
"Figure 14: Results for lift alone and lift distracted in Sawyer work space. TRAIL and TRAIL-0 are by default with data augmentation. Additional results for these methods without data augmentation are presented to show its importance. "
|
| 1886 |
+
],
|
| 1887 |
+
"image_footnote": [],
|
| 1888 |
+
"bbox": [
|
| 1889 |
+
181,
|
| 1890 |
+
506,
|
| 1891 |
+
818,
|
| 1892 |
+
655
|
| 1893 |
+
],
|
| 1894 |
+
"page_idx": 13
|
| 1895 |
+
},
|
| 1896 |
+
{
|
| 1897 |
+
"type": "text",
|
| 1898 |
+
"text": "A.6 D4PG ",
|
| 1899 |
+
"text_level": 1,
|
| 1900 |
+
"bbox": [
|
| 1901 |
+
176,
|
| 1902 |
+
737,
|
| 1903 |
+
261,
|
| 1904 |
+
751
|
| 1905 |
+
],
|
| 1906 |
+
"page_idx": 13
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"type": "text",
|
| 1910 |
+
"text": "We use D4PG (Barth-Maron et al., 2018) as our main training algorithm. Briefly, D4PG is a distributed off-policy reinforcement learning algorithm for continuous control problems. In a nutshell, D4PG uses Q-learning for policy evaluation and Deterministic Policy Gradients (DPG) (Silver et al., 2014) for policy optimization. An important characteristic of D4PG is that it maintains a replay memory $\\mathcal { M }$ (possibility prioritized (Horgan et al., 2018)) that stores SARS tuples which allows for off-policy learning. D4PG also adopts target networks for increased training stability. In addition to these principles, D4PG utilized distributed training, distributional value functions, and multi-step returns to further increase efficiency and stability. In this section, we explain the different ingredients of D4PG. ",
|
| 1911 |
+
"bbox": [
|
| 1912 |
+
173,
|
| 1913 |
+
762,
|
| 1914 |
+
825,
|
| 1915 |
+
875
|
| 1916 |
+
],
|
| 1917 |
+
"page_idx": 13
|
| 1918 |
+
},
|
| 1919 |
+
{
|
| 1920 |
+
"type": "text",
|
| 1921 |
+
"text": "D4PG maintains an online value network $Q ( s , a | \\theta )$ and an online policy network $\\pi ( s | \\phi )$ . The target networks are of the same structures as the value and policy network, but are parameterized by different parameters $\\theta ^ { \\prime }$ and $\\phi ^ { \\prime }$ which are periodically updated to the current parameters of the online networks. ",
|
| 1922 |
+
"bbox": [
|
| 1923 |
+
176,
|
| 1924 |
+
881,
|
| 1925 |
+
825,
|
| 1926 |
+
924
|
| 1927 |
+
],
|
| 1928 |
+
"page_idx": 13
|
| 1929 |
+
},
|
| 1930 |
+
{
|
| 1931 |
+
"type": "text",
|
| 1932 |
+
"text": "Given the $Q$ function, we can update the policy using DPG: ",
|
| 1933 |
+
"bbox": [
|
| 1934 |
+
173,
|
| 1935 |
+
103,
|
| 1936 |
+
565,
|
| 1937 |
+
119
|
| 1938 |
+
],
|
| 1939 |
+
"page_idx": 14
|
| 1940 |
+
},
|
| 1941 |
+
{
|
| 1942 |
+
"type": "equation",
|
| 1943 |
+
"img_path": "images/d9a9a466471a108f418f609eafa9bc0cc7366850e41f8714acb68e7b0816f19e.jpg",
|
| 1944 |
+
"text": "$$\n\\mathcal { I } ( \\phi ) = \\mathbb { E } _ { s _ { t } \\sim \\mathcal { M } } \\left[ \\nabla _ { \\phi } Q ( s _ { t } , \\pi ( s _ { t } | \\phi ) | \\theta ) \\right] .\n$$",
|
| 1945 |
+
"text_format": "latex",
|
| 1946 |
+
"bbox": [
|
| 1947 |
+
369,
|
| 1948 |
+
131,
|
| 1949 |
+
629,
|
| 1950 |
+
150
|
| 1951 |
+
],
|
| 1952 |
+
"page_idx": 14
|
| 1953 |
+
},
|
| 1954 |
+
{
|
| 1955 |
+
"type": "text",
|
| 1956 |
+
"text": "Instead of using a scalar $Q$ function, D4PG adopts a distributional value function such that $Q ( s _ { t } , a | \\theta ) ~ = ~ \\bar { \\mathbb { E } } \\big [ Z ( s _ { t } , a | \\theta ) \\big ]$ where $Z$ is a random variable such that $Z ~ = ~ z _ { i }$ w.p. $\\qquad p _ { i } \\propto$ $\\exp ( \\omega ( s _ { t } , a | \\theta ) )$ . The $z _ { i }$ ’s take on $V _ { b i n s }$ discrete values that ranges uniformly between $V _ { m i n }$ and $V _ { m a x }$ such that $\\begin{array} { r } { z _ { i } = V _ { m i n } + i \\frac { V _ { m a x } - V _ { m i n } } { V _ { b i n s } } } \\end{array}$ for $i \\in \\{ 0 , \\cdots , V _ { b i n s } - 1 \\}$ . ",
|
| 1957 |
+
"bbox": [
|
| 1958 |
+
173,
|
| 1959 |
+
170,
|
| 1960 |
+
825,
|
| 1961 |
+
233
|
| 1962 |
+
],
|
| 1963 |
+
"page_idx": 14
|
| 1964 |
+
},
|
| 1965 |
+
{
|
| 1966 |
+
"type": "text",
|
| 1967 |
+
"text": "To construct a bootstrap target, D4PG uses $\\mathbf { N } .$ -step returns. Given a sampled tuple from the replay memory: $s _ { t } , a _ { t } , \\{ r _ { t } , r _ { t + 1 } , \\cdot \\cdot \\cdot , r _ { t + N - 1 } \\} , s _ { t + N }$ , we construct a new random variable $Z ^ { \\prime }$ such that Z0 = zi + PN−1n=0 w.p. $p _ { i } \\propto \\exp ( \\omega ( s _ { t + N } , \\pi ( s _ { t + N } | \\phi ^ { \\prime } ) | \\theta ^ { \\prime } ) )$ . Notice, $Z ^ { \\prime }$ no longer has the same support. We therefore adopt the same projection $\\Phi$ employed by Bellemare et al. (2017). The training loss for the value function ",
|
| 1968 |
+
"bbox": [
|
| 1969 |
+
173,
|
| 1970 |
+
237,
|
| 1971 |
+
825,
|
| 1972 |
+
311
|
| 1973 |
+
],
|
| 1974 |
+
"page_idx": 14
|
| 1975 |
+
},
|
| 1976 |
+
{
|
| 1977 |
+
"type": "equation",
|
| 1978 |
+
"img_path": "images/4325c14ac5c5caff010358a3b8f4b5186d28590f7cd88b92da06c98b8b3dfb6a.jpg",
|
| 1979 |
+
"text": "$$\n\\mathcal { L } ( \\theta ) = \\mathbb { E } _ { s _ { t } , a _ { t } , \\{ r _ { t } , \\cdots , r _ { t + N - 1 } \\} , s _ { t + N } \\sim \\mathcal { M } } \\big [ H \\big ( \\Phi ( Z ^ { \\prime } ) , Z ( s _ { t } , a _ { t } | \\theta ) \\big ) \\big ] ,\n$$",
|
| 1980 |
+
"text_format": "latex",
|
| 1981 |
+
"bbox": [
|
| 1982 |
+
289,
|
| 1983 |
+
324,
|
| 1984 |
+
707,
|
| 1985 |
+
343
|
| 1986 |
+
],
|
| 1987 |
+
"page_idx": 14
|
| 1988 |
+
},
|
| 1989 |
+
{
|
| 1990 |
+
"type": "text",
|
| 1991 |
+
"text": "where $H$ is the cross entropy. ",
|
| 1992 |
+
"bbox": [
|
| 1993 |
+
174,
|
| 1994 |
+
356,
|
| 1995 |
+
367,
|
| 1996 |
+
371
|
| 1997 |
+
],
|
| 1998 |
+
"page_idx": 14
|
| 1999 |
+
},
|
| 2000 |
+
{
|
| 2001 |
+
"type": "text",
|
| 2002 |
+
"text": "D4PG is also distributed following Horgan et al. (2018). Since all learning processes only rely on the replay memory, we can easily decouple the ‘actors’ from the ‘learners’. D4PG therefore uses a large number of independent actor processes which act in the environment and write data to a central replay memory process. The learners could then draw samples from the replay memory for learning. The learner also serves as a parameter server to the actors which periodically update their policy parameters from the learner. ",
|
| 2003 |
+
"bbox": [
|
| 2004 |
+
173,
|
| 2005 |
+
376,
|
| 2006 |
+
826,
|
| 2007 |
+
462
|
| 2008 |
+
],
|
| 2009 |
+
"page_idx": 14
|
| 2010 |
+
},
|
| 2011 |
+
{
|
| 2012 |
+
"type": "text",
|
| 2013 |
+
"text": "In our experiments, we always have access to expert demonstrations. We, therefore adopt the practice from DQfD and DDPGfD and put the demonstrations into our replay buffers. For more details see Algorithms 1, 2. ",
|
| 2014 |
+
"bbox": [
|
| 2015 |
+
174,
|
| 2016 |
+
468,
|
| 2017 |
+
825,
|
| 2018 |
+
511
|
| 2019 |
+
],
|
| 2020 |
+
"page_idx": 14
|
| 2021 |
+
},
|
| 2022 |
+
{
|
| 2023 |
+
"type": "text",
|
| 2024 |
+
"text": "Algorithm 1 Actor ",
|
| 2025 |
+
"text_level": 1,
|
| 2026 |
+
"bbox": [
|
| 2027 |
+
174,
|
| 2028 |
+
534,
|
| 2029 |
+
302,
|
| 2030 |
+
547
|
| 2031 |
+
],
|
| 2032 |
+
"page_idx": 14
|
| 2033 |
+
},
|
| 2034 |
+
{
|
| 2035 |
+
"type": "text",
|
| 2036 |
+
"text": "Given: • an experience replay memory $\\mathcal { M }$ \nfor $n _ { e p i s o d e s }$ do for $t = 1$ to $T$ do Sample action from task policy: $\\boldsymbol { a } _ { t } \\gets \\pi ( \\boldsymbol { s } _ { t } )$ Execute action $a _ { t }$ and observe new state $s _ { t + 1 }$ , and reward $r _ { t }$ Store transition $( s _ { t } , a _ { t } , r _ { t } , s _ { t + 1 } )$ in memory $\\mathcal { M }$ end for \nend for ",
|
| 2037 |
+
"bbox": [
|
| 2038 |
+
178,
|
| 2039 |
+
551,
|
| 2040 |
+
620,
|
| 2041 |
+
681
|
| 2042 |
+
],
|
| 2043 |
+
"page_idx": 14
|
| 2044 |
+
},
|
| 2045 |
+
{
|
| 2046 |
+
"type": "text",
|
| 2047 |
+
"text": "Algorithm 2 Learner ",
|
| 2048 |
+
"text_level": 1,
|
| 2049 |
+
"bbox": [
|
| 2050 |
+
174,
|
| 2051 |
+
729,
|
| 2052 |
+
315,
|
| 2053 |
+
743
|
| 2054 |
+
],
|
| 2055 |
+
"page_idx": 14
|
| 2056 |
+
},
|
| 2057 |
+
{
|
| 2058 |
+
"type": "text",
|
| 2059 |
+
"text": "Given: ",
|
| 2060 |
+
"text_level": 1,
|
| 2061 |
+
"bbox": [
|
| 2062 |
+
191,
|
| 2063 |
+
747,
|
| 2064 |
+
238,
|
| 2065 |
+
760
|
| 2066 |
+
],
|
| 2067 |
+
"page_idx": 14
|
| 2068 |
+
},
|
| 2069 |
+
{
|
| 2070 |
+
"type": "text",
|
| 2071 |
+
"text": "• an off-policy RL algorithm A • a replay buffer $\\mathcal { M }$ • a replay buffer of expert demonstrations $\\mathcal { M } _ { e }$ ",
|
| 2072 |
+
"bbox": [
|
| 2073 |
+
232,
|
| 2074 |
+
763,
|
| 2075 |
+
542,
|
| 2076 |
+
805
|
| 2077 |
+
],
|
| 2078 |
+
"page_idx": 14
|
| 2079 |
+
},
|
| 2080 |
+
{
|
| 2081 |
+
"type": "text",
|
| 2082 |
+
"text": "Initialize A \nfor $n _ { u p d a t e s }$ do Sample transitions $\\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \\right)$ from $\\mathcal { M }$ to make a minibatch $B$ . Sample transitions $\\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \\right)$ from $\\mathcal { M } _ { e }$ enlarge the minibatch $B$ . Perform a actor update step with Eqn. (5). Perform a critic update step with Eqn. (6). Update the target actor/critic networks every $k$ steps. \nend for ",
|
| 2083 |
+
"bbox": [
|
| 2084 |
+
189,
|
| 2085 |
+
814,
|
| 2086 |
+
681,
|
| 2087 |
+
917
|
| 2088 |
+
],
|
| 2089 |
+
"page_idx": 14
|
| 2090 |
+
},
|
| 2091 |
+
{
|
| 2092 |
+
"type": "text",
|
| 2093 |
+
"text": "A.7 NETWORK ARCHITECTURE AND HYPERPARAMETERS ",
|
| 2094 |
+
"text_level": 1,
|
| 2095 |
+
"bbox": [
|
| 2096 |
+
176,
|
| 2097 |
+
104,
|
| 2098 |
+
581,
|
| 2099 |
+
117
|
| 2100 |
+
],
|
| 2101 |
+
"page_idx": 15
|
| 2102 |
+
},
|
| 2103 |
+
{
|
| 2104 |
+
"type": "text",
|
| 2105 |
+
"text": "Actor and critic share a residual pixel encoder network with eight convolutional layers (3x3 convolutions, three 2-layer blocks with 16, 32, 32 channels), instance normalization (Ulyanov et al., 2016) and exponential linear units (Clevert et al., 2015) between layers. ",
|
| 2106 |
+
"bbox": [
|
| 2107 |
+
174,
|
| 2108 |
+
131,
|
| 2109 |
+
826,
|
| 2110 |
+
172
|
| 2111 |
+
],
|
| 2112 |
+
"page_idx": 15
|
| 2113 |
+
},
|
| 2114 |
+
{
|
| 2115 |
+
"type": "text",
|
| 2116 |
+
"text": "The policy is a 3-layer MLP with ReLU activations with hidden layer sizes (300, 200). The critic is a 3-layer MLP with ReLU activations with hidden layer sizes (400, 300). For a illustration of the network. Please see Figure 15. ",
|
| 2117 |
+
"bbox": [
|
| 2118 |
+
173,
|
| 2119 |
+
179,
|
| 2120 |
+
825,
|
| 2121 |
+
223
|
| 2122 |
+
],
|
| 2123 |
+
"page_idx": 15
|
| 2124 |
+
},
|
| 2125 |
+
{
|
| 2126 |
+
"type": "image",
|
| 2127 |
+
"img_path": "images/28c5f55c9a59fb03ff40780ca1b034a37b8cd5bc60d7b421bfe54857e6457a48.jpg",
|
| 2128 |
+
"image_caption": [
|
| 2129 |
+
"Figure 15: Network architecture for the policy and critic. "
|
| 2130 |
+
],
|
| 2131 |
+
"image_footnote": [],
|
| 2132 |
+
"bbox": [
|
| 2133 |
+
173,
|
| 2134 |
+
237,
|
| 2135 |
+
820,
|
| 2136 |
+
364
|
| 2137 |
+
],
|
| 2138 |
+
"page_idx": 15
|
| 2139 |
+
},
|
| 2140 |
+
{
|
| 2141 |
+
"type": "text",
|
| 2142 |
+
"text": "The discriminator network uses a pixel encoder of the same architecture as the actor critic, followed by a 3-layer MLP with ReLU activations and hidden layer sizes (32, 32). ",
|
| 2143 |
+
"bbox": [
|
| 2144 |
+
173,
|
| 2145 |
+
420,
|
| 2146 |
+
823,
|
| 2147 |
+
449
|
| 2148 |
+
],
|
| 2149 |
+
"page_idx": 15
|
| 2150 |
+
},
|
| 2151 |
+
{
|
| 2152 |
+
"type": "table",
|
| 2153 |
+
"img_path": "images/8d79a56e3510372616f21696af491774a0fb484005300365e419100ca1e2c249.jpg",
|
| 2154 |
+
"table_caption": [
|
| 2155 |
+
"Table 3: Hyper parameters used in robot manipulation experiments. "
|
| 2156 |
+
],
|
| 2157 |
+
"table_footnote": [],
|
| 2158 |
+
"table_body": "<table><tr><td>Parameters</td><td>Values</td></tr><tr><td>Actor/Critic Input Width</td><td>64</td></tr><tr><td>Actor/Critic Input Height</td><td>64</td></tr><tr><td>D4PG Parameters</td><td></td></tr><tr><td>Vmin</td><td>-50</td></tr><tr><td>Vmax</td><td>150</td></tr><tr><td>Vbins</td><td>21</td></tr><tr><td>N step</td><td>1</td></tr><tr><td>Actor learning rate</td><td>10-4</td></tr><tr><td>Critic learning rate</td><td>10-4</td></tr><tr><td>Optimizer</td><td>Adam (Kingma & Ba (2014))</td></tr><tr><td>Batch size</td><td>256</td></tr><tr><td>Target update period</td><td>100</td></tr><tr><td>Discount factor (y)</td><td>0.99</td></tr><tr><td>Replay capacity</td><td>106</td></tr><tr><td>Number of actors</td><td>32 or 128</td></tr><tr><td>Imitation Parameters</td><td></td></tr><tr><td>Discriminator learning rate</td><td>10-4</td></tr><tr><td>Discriminator Input Width</td><td>48</td></tr><tr><td>Discriminator Input Height</td><td>48</td></tr></table>",
|
| 2159 |
+
"bbox": [
|
| 2160 |
+
279,
|
| 2161 |
+
478,
|
| 2162 |
+
714,
|
| 2163 |
+
786
|
| 2164 |
+
],
|
| 2165 |
+
"page_idx": 15
|
| 2166 |
+
},
|
| 2167 |
+
{
|
| 2168 |
+
"type": "text",
|
| 2169 |
+
"text": "A.8 COMPARING AGAINST LEARNING WITH FIXED REWARDS ",
|
| 2170 |
+
"text_level": 1,
|
| 2171 |
+
"bbox": [
|
| 2172 |
+
173,
|
| 2173 |
+
840,
|
| 2174 |
+
607,
|
| 2175 |
+
854
|
| 2176 |
+
],
|
| 2177 |
+
"page_idx": 15
|
| 2178 |
+
},
|
| 2179 |
+
{
|
| 2180 |
+
"type": "text",
|
| 2181 |
+
"text": "To check whether learned discriminators are needed, we compare TRAIL against agents using a fixed reward function corresponding to $R _ { e x p e r t } = 1$ and $R _ { a g e n t } = 0$ for the lift alone and lift distracted tasks. This baseline simulates an oracle discriminator with perfect generalization, but which is agnostic to behavior. On the lift alone task, agents using this fixed reward achieve roughly half the reward of TRAIL asymptotically, and on lift distracted they do not solve the task (average rewards are less than 5). The learning curves are presented in Figure 16. ",
|
| 2182 |
+
"bbox": [
|
| 2183 |
+
174,
|
| 2184 |
+
867,
|
| 2185 |
+
825,
|
| 2186 |
+
924
|
| 2187 |
+
],
|
| 2188 |
+
"page_idx": 15
|
| 2189 |
+
},
|
| 2190 |
+
{
|
| 2191 |
+
"type": "text",
|
| 2192 |
+
"text": "",
|
| 2193 |
+
"bbox": [
|
| 2194 |
+
169,
|
| 2195 |
+
103,
|
| 2196 |
+
823,
|
| 2197 |
+
132
|
| 2198 |
+
],
|
| 2199 |
+
"page_idx": 16
|
| 2200 |
+
},
|
| 2201 |
+
{
|
| 2202 |
+
"type": "image",
|
| 2203 |
+
"img_path": "images/73412ac4784215fb9164009bf367fa91028931791c266c531f38108dcd112e50.jpg",
|
| 2204 |
+
"image_caption": [
|
| 2205 |
+
"Figure 16: With fixed rewards, the agent is able to learn lift alone somewhat, but performs worse than TRAIL. When distractor blocks are added, the fixed reward agent fails to learn completely. "
|
| 2206 |
+
],
|
| 2207 |
+
"image_footnote": [],
|
| 2208 |
+
"bbox": [
|
| 2209 |
+
294,
|
| 2210 |
+
146,
|
| 2211 |
+
692,
|
| 2212 |
+
295
|
| 2213 |
+
],
|
| 2214 |
+
"page_idx": 16
|
| 2215 |
+
}
|
| 2216 |
+
]
|
parse/train/S1x2PCNKDB/S1x2PCNKDB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1x2PCNKDB/S1x2PCNKDB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learning with Noisy Correspondence for Cross-modal Matching
|
| 2 |
+
|
| 3 |
+
Guocheng Niu Baidu Inc., China niuguocheng@baidu.com
|
| 4 |
+
|
| 5 |
+
Zhenyu Huang∗ College of Computer Science Sichuan University, China zyhuang.gm@gmail.com
|
| 6 |
+
|
| 7 |
+
Xiao Liu TAL Education Group liuxiao15@tal.com
|
| 8 |
+
|
| 9 |
+
Wenbiao Ding TAL Education Group dingwenbiao@tal.com
|
| 10 |
+
|
| 11 |
+
Xinyan Xiao Baidu Inc., China xiaoxinyan@baidu.com
|
| 12 |
+
|
| 13 |
+
Hua Wu Baidu Inc., China wu_hua@baidu.com
|
| 14 |
+
|
| 15 |
+
Xi Peng† College of Computer Science Sichuan University, China pengx.gm@gmail.com
|
| 16 |
+
|
| 17 |
+
# Abstract
|
| 18 |
+
|
| 19 |
+
Cross-modal matching, which aims to establish the correspondence between two different modalities, is fundamental to a variety of tasks such as cross-modal retrieval and vision-and-language understanding. Although a huge number of crossmodal matching methods have been proposed and achieved remarkable progress in recent years, almost all of these methods implicitly assume that the multimodal training data are correctly aligned. In practice, however, such an assumption is extremely expensive even impossible to satisfy. Based on this observation, we reveal and study a latent and challenging direction in cross-modal matching, named noisy correspondence, which could be regarded as a new paradigm of noisy labels. Different from the traditional noisy labels which mainly refer to the errors in category labels, our noisy correspondence refers to the mismatch paired samples. To solve this new problem, we propose a novel method for learning with noisy correspondence, named Noisy Correspondence Rectifier (NCR). In brief, NCR divides the data into clean and noisy partitions based on the memorization effect of neural networks and then rectifies the correspondence via an adaptive prediction model in a co-teaching manner. To verify the effectiveness of our method, we conduct experiments by using the image-text matching as a showcase. Extensive experiments on Flickr30K, MS-COCO, and Conceptual Captions verify the effectiveness of our method. The code could be accessed from www.pengxi. me.
|
| 20 |
+
|
| 21 |
+
# 1 Introduction
|
| 22 |
+
|
| 23 |
+
As one of the most fundamental techniques in multimodal learning, cross-modal matching aims to bridge different modalities. In recent years, some cross-modal matching methods [19, 11, 7, 26] have been proposed based on Deep Neural Networks (DNNs), which achieved remarkable progress in a variety of applications, such as clustering [29, 24], image/video captioning [1, 44, 22], cross-modal retrieval [40, 19, 13], and visual question answering [9].
|
| 24 |
+
|
| 25 |
+
In general, most existing cross-modal matching methods embed different modalities into a common space wherein the similarity of positive cross-modal pairs is maximized and that of the negative ones is minimized. Although these methods have achieved promising results, their success depends on an implicit data assumption, i.e., the training data are correctly aligned across modalities. For example, in the vision-and-language tasks, the text needs to accurately describe the image content, and vice versa. In practice, however, it is extremely expensive and time-consuming to annotate or collect such data pairs. Especially, considering the data collected from the Internet [35, 14], it is inevitable to collect some mismatched pairs which are wrongly treated as the matched ones. To the best of our knowledge, such a special noisy label (correspondence) problem has been ignored so far, which will remarkably degrade the performance of matching methods as shown in our experiments.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Noisy labels vs. Noisy Correspondence. We denote the noisy samples with red lines and clean samples with green lines. The traditional noisy labels mainly refer to the errors in category labels, while the noisy correspondence refers to the alignment errors in paired data. For the noisy correspondence in cross-modal matching, the true positive pair correctly guides the cross-modal matching, while the false positive pair causes incorrect supervision for training.
|
| 29 |
+
|
| 30 |
+
Based on the above observation, we reveal a new paradigm for the noisy labels, named noisy correspondence. Different from the traditional noisy labels, the noisy correspondence refers to the alignment errors in paired data rather than the errors in category annotations (see Fig. 1). To the best of our knowledge, there is no effort has been devoted to study this new problem and the closest paradigm might be the partially view-aligned problem (PVP) [12, 41]. However, PVP is remarkably different from noisy correspondence, and the latter is more practical than the former. To be specific, PVP focuses on that the cross-modal alignment is totally unavailable, whereas the noisy correspondence focuses on that some correspondences are incorrect. In addition, PVP assumes that some correctly aligned data are available for training, whereas our noisy correspondence assumes that the clean and noisy data are mixed.
|
| 31 |
+
|
| 32 |
+
To solve the noisy correspondence problem in cross-modal matching, we propose a novel method, named Noisy Correspondence Rectifier (NCR). Our method is based on the memorization effect of DNNs observed in [3, 39], i.e., DNNs tend to learn the simple patterns before fitting noisy samples. Motivated by this empirical observation, NCR divides the data into two relative accurate data partitions, i.e., “noisy” and “clean” subsets, based on their loss difference. After that, NCR employs an adaptive prediction function for label rectifying so that the false positives and the true positives could be identified from the “clean” and the “noisy” subsets, respectively. Furthermore, we propose a novel triplet loss for robust cross-modal matching by recasting the rectified labels as the soft margin.
|
| 33 |
+
|
| 34 |
+
The main contributions and novelties of this paper could be summarized as below. i) We reveal a new problem in cross-modal analysis, which is also a new paradigm for noisy labels, termed noisy correspondence. Different from the traditional noisy labels, the noisy correspondence refers to the alignment errors in paired data instead of the errors in category annotations. To the best of our knowledge, this work could be the first study on this problem. ii) To solve the noisy correspondence problem, we propose a novel method for learning with noisy correspondence, named Noisy Correspondence Rectifier (NCR). One major novelty of NCR is that the rectified label is elegantly recasted as the soft margin of a triplet loss so that the robust cross-modal matching could be achieved. iii) To verify the effectiveness of our method, we conduct experiments on the image-text matching task. Extensive experiments on three challenging datasets verify the effectiveness of our method in the synthesized and real noises.
|
| 35 |
+
|
| 36 |
+
# 2 Related works
|
| 37 |
+
|
| 38 |
+
In this section, we briefly introduce some recent developments in cross-modal matching and learning with noisy labels.
|
| 39 |
+
|
| 40 |
+
# 2.1 Cross-modal Matching
|
| 41 |
+
|
| 42 |
+
Most existing cross-modal matching works seek to learn a common space wherein different modalities are comparable. In general, existing works could be roughly divided into two categories: 1) Coarsegrained Matching. It often utilizes multiple neural networks to compute a global feature and each network is used for a specific modality [17, 37, 8]. For example, Kiros et al. [17] use a Convolutional Neural Network (CNN) and a Gated Recurrent Unit (GRU) to obtain the image and text features, while enforcing the similarity of positive pairs larger than that of the negative ones. To further boost the matching performance, ${ \mathrm { V S E } } { + } { + }$ [8] uses some representative negatives to improve the discrimination of the model. 2) Fine-grained Matching. It seeks to measure the fine-grained similarity for cross-modal matching [19, 21, 7]. For example, SCAN [19] proposes learning the latent semantic correspondence between the image regions and words that are extracted by bottom-up attention [1] and GRU, respectively. VSRN [21] adopts a graph convolutional network for semantic reasoning. SGRAF [7] proposes constructing a similarity graph to reason the similarity and adopting an attention filtration technique to eliminate the less-meaningful alignments. Recently Chun et al. [6] introduce a new paradigm for cross-modal matching, i.e. possible many-to-many correspondence that existed in the image and captions. To achieve this, they propose to use probabilistic representations to model the possible one-to-many correspondence.
|
| 43 |
+
|
| 44 |
+
Although promising results have been achieved in recent years, the existing methods heavily rely on the correctly aligned data. In practice, however, such well-matched data is expensive and timeconsuming to collect. Moreover, some recent works [35, 14] show that a large-scale dataset collected from the wild could remarkably improve the performance of the model. However, such a data will inevitably contain some mismatched pairs. Hence, it is highly expected to develop some methods which are robust against the noisy correspondence, which has not been studied as far as we know. Different from the many-to-many correspondence [6] between image and captions, NCR reveals the noisy correspondence problem which refers to the alignment errors of image-text pairs and proposes to eliminate the negative impact from noisy pairs for downstream tasks.
|
| 45 |
+
|
| 46 |
+
# 2.2 Learning with Noisy Labels
|
| 47 |
+
|
| 48 |
+
To handle the possible noisy annotations in the training data, a large number of methods have been proposed and almost all of them focus on the classification task [36, 27]. To reduce the negative impact of the noisy labels, the existing works often resort to robust architecture design, regularization, loss adjustment, or sample selection methods. Here, we mainly introduce the last two approaches which are most related to this work. To be specific, the loss adjustment achieves robustness by adjusting the contribution of clean and noisy samples w.r.t. the loss. For example, Reed et al. [32] proposed a bootstrapping loss based on the model predictions for loss correction. Zhang et al. [45] provided some theoretical explanations for the label correction along with a new label correction algorithm. Different from the loss adjustment methods, sample selection methods aim to select clean samples from a noisy dataset. For example, Arpit et al. [3] showed that DNNs tend to learn simple patterns before fitting noisy samples, namely the memorization effect. Motivated from this, Arazo et al. [2] proposed treating the samples with small loss as the clean samples. To avoid the selection bias of clean samples, Co-teaching methods [10, 43] use the samples with small loss to iteratively train two networks. In recent, DivideMix [20] adopts the MixMatch method [4] for semi-supervised learning with the clean and noisy samples.
|
| 49 |
+
|
| 50 |
+
Unlike the above noisy label studies, this paper focuses on the noisy correspondence problem which considers mismatched multimodal data pairs instead of incorrectly annotated data points. Besides the difference in the problem, this work is also different from the aforementioned studies in the methodology. To be specific, in cross-modal matching, it is impossible to directly adopt these noise label learning methods to solve the noisy correspondence problem due to the following two reasons. First, most of the noisy label learning methods propose to use the model’s prediction for label rectifying in the scenario of classification, while it is intractable to directly predict the correspondence of given pairs in matching models. Second, even if we can rectify the noisy correspondence somehow, the rectified real-valued labels are incompatible with the existing matching methods since most of them assume the given labels are binary. To address these problems, NCR proposes an adaptive prediction function and a novel triplet loss by recasting the soft labels as soft margins.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Overview of the proposed method. (a) Training pipeline of NCR. NCR consists of two individual networks (A, B) which work in the manner of co-teaching. In brief, NCR first warmup the networks (A, B) on the original training data using the loss $L _ { w }$ which is also used for per-sample loss computation. Then, based on the memorization effect of DNclean and noisy subsets at each epoch using either A or B, i.e., $S ^ { A } = ( S _ { c } ^ { A } , S _ { n } ^ { A } )$ the and $S ^ { B } = \mathsf { \bar { ( } } S _ { c } ^ { B } , S _ { n } ^ { B } )$ After that, NCR will co-rectify the correspondence of $\{ { \cal S } ^ { A } , { \cal S } ^ { B } \}$ and obtain $\{ \hat { S ^ { A } } , \hat { S ^ { B } } \}$ using an adaptive prediction function. Finally, $\hat { \cal S } ^ { A }$ and $\hat { S ^ { B } }$ will be used to train the network $B$ and $A$ in a swapping way. (b) Robust image-text matching network. For example, the network A projects the image and text by the modal-specific networks $f$ and $g$ , respectively. Then the similarity $S ( I , T )$ is computed on the extracted features $f ( I )$ and $g ( T )$ . To achieve robust image-text matching, the rectified soft labels are recast as the soft margin of our loss $\scriptstyle L _ { s o f t }$ . As shown, for a given anchor, $\boldsymbol { L _ { s o f t } }$ will enforce the true positive to closer to it than the negative by a large margin $\hat { \alpha } _ { 1 }$ , and meanwhile the false positive will has a small margin $\hat { \alpha } _ { 2 }$ .
|
| 54 |
+
|
| 55 |
+
# 3 The Proposed Method
|
| 56 |
+
|
| 57 |
+
In this section, we elaborate on the proposed method, i.e., Noisy Correspondence Rectifier (NCR) which could be the first work to solve the noisy correspondence problem in cross-modal matching. In Section 3.1, we introduce the co-divide module which splits the training data into the clean and noisy subsets. After that, we introduce how to rectify the labels with an adaptive prediction function in Section 3.2. Finally, we detail how to combine the co-divide and co-rectify modules to achieve robust cross-modal matching in Section 3.3.
|
| 58 |
+
|
| 59 |
+
# 3.1 Co-divide
|
| 60 |
+
|
| 61 |
+
Without loss of generality, we first introduce the cross-modal matching task by taking the image-text matching as a showcase. Given the training data $\mathcal { D } = \{ ( I _ { i } , T _ { i } , y _ { i } ) \} _ { i = 1 } ^ { \overline { { N } } }$ , where $N$ is the data size, $( I _ { i } , T _ { i } )$ is an image-text pair and $y _ { i } \in \{ 1 , \bar { 0 } \}$ indicates that the pair belong to the same instance (positive) or not (negative). For the noisy correspondence case, it defines that an unknown portion of $\mathcal { D }$ is mismatched, i.e., $( I _ { i } , T _ { i } )$ is a negative pair but wrongly labeled as $y _ { i } = 1$ . To solve such a noisy correspondence problem, we propose NCR to achieve robust cross-modal matching.
|
| 62 |
+
|
| 63 |
+
To begin, we project the visual and textual modalities into a shared space via two modal-specific networks $f$ and $g$ , respectively. Then the similarity of the given image-text pairs is computed through $S ( f ( I ) , g ( T ) )$ . For simplicity, we denote $S ( f ( \dot { I } ) , g ( T ) )$ as $S ( I , T )$ in the following. Some early empirical studies [3] show that DNNs tend to first learn simple samples and then gradually fit the noisy samples. This so-called memorization effect of DNNs will lead to a relatively low loss for the clean samples. Motivated by this, we utilize the difference of loss distribution between the clean samples and noisy samples to divide the training data like [10, 43, 2, 20]. Specifically, given a matching model $( \bar { f } , g , \bar { S } )$ , we compute the per-sample loss through:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\ell _ { ( f , g , S ) } = \{ \ell _ { i } \} _ { i = 1 } ^ { N } = \{ L _ { w } ( I _ { i } , T _ { i } ) \} _ { i = 1 } ^ { N }
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $L _ { w }$ is defined as:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
L _ { w } ( I , T ) = \sum _ { \hat { T } } [ \alpha - S ( I , T ) + S ( I , \hat { T } ) ] _ { + } + \sum _ { \hat { I } } [ \alpha - S ( I , T ) + S ( \hat { I } , T ) ] _ { + } ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $( I , T )$ is a positive pair, $\alpha > 0$ denotes a given margin, and $[ x ] _ { + } = m a x ( x , 0 )$ . In the loss, the first term treats $I$ as queries taking over all negative text $\hat { T }$ , while the second term treats $T$ as queries taking over all negative images $\hat { I }$ . Then, we fit the per-sample loss of all training data by using a two-component Gaussian Mixture Model [20, 30]:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
p ( \ell | \theta ) = \sum _ { k = 1 } ^ { K } \beta _ { k } \phi ( \ell | k ) ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $\beta _ { k }$ and $\phi ( \ell | k )$ are the mixture coefficient and the probability density of the $k$ -th component, respectively. Based on the memorization effect of DNNs, we treat the component with a lower mean value (i.e., lower loss) as the clean set, and the other as the noisy set. To optimize the GMM, we adopt the Expectation-Maximization algorithm. Moreover, we compute the posterior probability $w _ { i } \stackrel { - } { = } p ( k | \ell _ { i } ) ^ { - } = p ( k ) p ( \ell _ { i } | k ) / p ( \ell _ { i } )$ as the clean probability of $i$ -th sample, where $k$ is the Gaussian component with the lower mean. By setting a threshold to $\{ w _ { i } \} _ { i = 1 } ^ { N }$ , we divide the data into clean and noisy subsets. For simplicity, we set the threshold to 0.5 through all experiments.
|
| 82 |
+
|
| 83 |
+
As observed in [10], it probably introduces error accumulation if the neural network is trained in a self-divide manner. To avoid such a situation, we adopt the co-teaching paradigm. Specifically, we individually train two networks $A = \{ f ^ { A } , g ^ { A } , S ^ { A } \}$ and $B = \{ f ^ { B } , \bar { g } ^ { B } , S ^ { \bar { B } } \}$ with different initializations and batch sequences. At each epoch, the network $A$ or $B$ will model its per-sample loss distribution with a GMM and divide the dataset into clean and noisy subsets which are then used for training the other network, i.e., co-divide. Note that, before co-divide, a warmup process is conducted on all training data to achieve initial convergence with $L _ { w }$ as defined in Eq. 2.
|
| 84 |
+
|
| 85 |
+
# 3.2 Co-Rectify
|
| 86 |
+
|
| 87 |
+
For either of A and B, the data $\mathcal { D }$ will be divided into the clean subset $\boldsymbol { \mathcal { S } } _ { c } = \{ ( \boldsymbol { I } _ { i } ^ { c } , \boldsymbol { T } _ { i } ^ { c } , y _ { i } ^ { c } , w _ { i } ) \} _ { i = 1 } ^ { N _ { c } }$ and noisy subset $\boldsymbol { \mathcal { S } } _ { n } = \{ I _ { i } ^ { n } , T _ { i } ^ { n } \} _ { i = 1 } ^ { N _ { n } }$ . Then, the co-rectify module will correct the labels to recall the possible true positives from $S _ { n }$ and eliminate the negative impact of the possible false positives in . Formally, the network $k$ $( k \in \{ A , B \} )$ will rectify the labels of $\{ S _ { c } , S _ { n } \}$ into $\{ \hat { \cal S } _ { c } , \hat { \cal S } _ { n } \}$ for training itself. The rectified labels are determined by:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\left\{ \begin{array} { l r } { \hat { y } _ { i } ^ { c } = w _ { i } y _ { i } ^ { c } + ( 1 - w _ { i } ) P ^ { k } ( I _ { i } ^ { c } , T _ { i } ^ { c } ) , \qquad } & { \forall ( I _ { i } ^ { c } , T _ { i } ^ { c } , y _ { i } ^ { c } , w _ { i } ^ { c } ) \in \mathcal { S } _ { c } } \\ { \hat { y } _ { i } ^ { n } = ( P ^ { A } ( I _ { i } ^ { n } , T _ { i } ^ { n } ) + P ^ { B } ( I _ { i } ^ { n } , T _ { i } ^ { n } ) ) / 2 , } & { \forall ( I _ { i } ^ { n } , T _ { i } ^ { n } ) \in \mathcal { S } _ { n } } \end{array} \right.
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $P ^ { A } ( I , T ) / P ^ { B } ( I , T )$ denotes the predictions given by the network $A / B$ . The roles of Eq. 4 are as below. On the one hand, as most pairs of $ { \boldsymbol { S } } _ { c }$ are true positive, Eq. 4 will use the original labels $y _ { i } ^ { c }$ together with the model’s prediction $P ( I _ { i } ^ { c } , T _ { i } ^ { c } )$ to rectify the correspondence. On the other hand, as most pairs of $S _ { n }$ are false positive, Eq. 4 will discard the original labels and rectify the labels by averaging the predictions $P ( I _ { i } ^ { n } , T _ { i } ^ { n } )$ from the networks A and B.
|
| 94 |
+
|
| 95 |
+
Another key contribution of Eq. 4 is designing the prediction function $P ( I , T )$ that could accurately predict whether the given pairs are positive or negative. Unlike the tasks like classification, image-text matching aims at computing the similarity rather than predicting the label of given image-text pairs. To this end, a straightforward approach is to predict the pairs by setting a threshold on the similarity. However, such a method requires to specify the threshold value, which is a daunting task because the optimal value is actually the similarity boundary of positive and negative pairs and hard to be manually specified. Alternatively, the following adaptive prediction function $P ( I , T )$ is proposed, which could work in a data-driven way,
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { l } { \displaystyle P ( \boldsymbol { I } , \boldsymbol { T } ) = \Theta ( s ) / \tau } \\ { \displaystyle s = S ( I , T ) - ( \frac { 1 } { b } \sum _ { \hat { T } } S ( I , \hat { T } ) + \frac { 1 } { b } \sum _ { \hat { I } } S ( \hat { I } , T ) ) / 2 , } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $b$ is the batch size, $\Theta ( \cdot )$ clamps the elements into the range of $[ 0 , \alpha ]$ , $s$ is the similarity margin between the given pair $( I , T )$ to the mean of the negatives in a mini-batch, $\tau$ is the average similarity
|
| 102 |
+
|
| 103 |
+
margin of the largest $1 0 \%$ pairs in terms of $s$ . This implies that the data have at least $1 0 \%$ clean pairs which could be regarded as a similarity anchor for prediction. Intuitively, the pairs with the similarity margin larger than $\tau$ would be predicted as 1, otherwise $[ 0 , 1 )$ .
|
| 104 |
+
|
| 105 |
+
# Algorithm 1: Noisy Correspondence Rectifier
|
| 106 |
+
|
| 107 |
+
<table><tr><td>Input: A given training data D, matching models A = (fA,gA, SA) and B = (fB,gB,SB)</td></tr><tr><td>Warmup the model (A,B) using Lw· 2 forn=1:num_epoch do</td></tr><tr><td></td></tr><tr><td>3 ←GMM(D,B)</td></tr><tr><td>4 ← GMM(D,A) 5 for k={A,Bj do</td></tr><tr><td>Sk={(Ii,Ti,yi,Wi)lwi ≥0.5,∀(Ii,Ti,yi,Wi) ∈(D,Wk)} 6</td></tr><tr><td>S={(Ii,Ti)|ui<0.5,∀(Ii,Ti) ∈(D,W)} 7</td></tr><tr><td>8 for j=num_steps do</td></tr><tr><td>9 Sample a mini-batch (B,Bη) from(Sk, S𝑘);</td></tr><tr><td>Rectify the labels of (Bj, Bγ) into (Bg, B) using Eq. 4-5; 10</td></tr><tr><td>Train the network k on (B, Bη) by optimizing Lsoft. 11</td></tr></table>
|
| 108 |
+
|
| 109 |
+
Result: Matching models $( A , B )$
|
| 110 |
+
|
| 111 |
+
# 3.3 Robust Cross-modal Matching
|
| 112 |
+
|
| 113 |
+
Exiting cross-modal matching methods can only handle the binary labels which are incompatible with the soft labels rectified by NCR. To achieve robust image-text matching, we propose a novel triplet loss $\scriptstyle { L _ { s o f t } }$ by recasting the rectified labels as the soft margin. Mathematically,
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
L _ { s o f t } ( I _ { i } , T _ { i } ) = [ \hat { \alpha } _ { i } - S ( I _ { i } , T _ { i } ) + S ( I _ { i } , \hat { T } _ { h } ) ] _ { + } + [ \hat { \alpha } _ { i } - S ( I _ { i } , T _ { i } ) + S ( \hat { I } _ { h } , T _ { i } ) ] _ { + } ,
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $\hat { I } _ { h } = \mathrm { a r g m a x } _ { I _ { j } \ne I _ { i } } S ( I _ { j } , T _ { i } )$ and $\hat { T } _ { h } = \mathrm { a r g m a x } _ { T _ { j } \neq T _ { i } } S ( I _ { i } , T _ { j } )$ are the most similar negatives in the mini-batch for a given positive pair $( I _ { i } , T _ { i } )$ similar to ${ \mathrm { V S E } } { + } { + }$ [8]. The soft margin $\hat { \alpha } _ { i }$ is adaptively determined by:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\hat { \alpha } _ { i } = \frac { m ^ { \hat { y } _ { i } } - 1 } { m - 1 } \alpha ,
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
where $m$ is the curve parameter, and $\hat { y } _ { i }$ is the rectified label. The above formulation is designed to achieve the following goal, i.e., $\hat { \alpha } _ { i }$ will be assigned a small value if $\hat { y } _ { i }$ is close to 0, and a large value otherwise. Thanks to Eq. 6–7, the similarity of the pair $( I , T )$ will be larger than that of the negatives by an adaptive margin $\hat { \alpha } _ { i }$ .
|
| 126 |
+
|
| 127 |
+
Despite the adaptive margin, another major difference between $L _ { w }$ and $L _ { s o f t }$ is that $L _ { s o f t }$ will use the hard negatives which are the most similar negative pairs. Although the hard negatives are helpful in improving the performance, $L _ { w }$ cannot be beneficial from it due to the existence of noisy correspondence. Specifically, it is expected that only the similarity of the true positives is larger than that of the hard negatives. However, in the case of noisy correspondence, the similarity of the false positives will also be larger than that of the hard negatives, thus leading to the unavailability of the hard negatives for $L _ { w }$ during the co-divide stage. The detail of NCR is presented in Algorithm. 1.
|
| 128 |
+
|
| 129 |
+
# 3.4 Discussions on Matching Loss
|
| 130 |
+
|
| 131 |
+
To achieve robust cross-modal matching with the refined soft labels, we design a soft Triplet loss by recasting the labels into soft margins. Recently, there are some works have been proposed to handle the soft labels in the matching model. For example, Wray et al. [38] recast the soft similarity into binary labels by directly setting a threshold on the predicted similarity. Kim et al. [15] proposes a log-ratio matching loss with a regularization defined by the label distance ratio, which is computed by the continuous labels. Liu et al. [25] introduces the hubness problem in image-text matching and proposes to consider all samples in a mini-batch and weights them according to both local and global statistics. Wray et al. [38] recasts the soft similarity into binary labels by directly setting a threshold on the predicted similarity. Different from them, NCR proposes to recast the rectified soft labels into soft margins in the triplet loss by assigning large margins to the true positive pairs and small ones to the false positive pairs. As a result and more importantly, our loss is specifically designed to solve the noisy correspondence problem whereas existing ones are not.
|
| 132 |
+
|
| 133 |
+
# 4 Experiment
|
| 134 |
+
|
| 135 |
+
In this section, we carry out experiments to verify the effectiveness of NCR in robust image-text matching. In the experiments, we use three benchmark datasets including Flickr30K [42], MS-COCO [23], and Conceptual Captions [35]. Among them, Conceptual Captions is with real noisy correspondence from the wild, and Flickr30K and MS-COCO are with simulated noisy correspondence.
|
| 136 |
+
|
| 137 |
+
# 4.1 Datasets and Performance Measurements
|
| 138 |
+
|
| 139 |
+
Three datasets are used in our experiments. To be specific, Flickr30K contains 31,000 images collected from the Flickr website with five captions each. Following [19], we use 1,000 images for validation, 1,000 images for testing, and the rest for training. MS-COCO contains 123,287 images with five captions each. We follow the data partition in [19] which consists of 113,287 training images, 5,000 validation images, and 5,000 test images. As Flickr30K and MS-COCO are well annotated, we simulate the noisy correspondence by randomly shuffling the captions of training images for a specific percentage, denoted by noise ratio. Conceptual Captions is a large-scale data consisting of 3.3M images with a single caption each. As this data set is harvested from the Internet, about $3 \% \sim 2 0 \%$ correspondences are incorrect [35]. In our experiments, we use a subset of Conceptual Captions for evaluation, named CC152K. Specifically, we randomly select 150,000 samples from the training split for training, 1,000 samples from the validation split for validation, and 1,000 samples from the validation split for testing.
|
| 140 |
+
|
| 141 |
+
Following [19], for all images, we take the Faster-RCNN [33] detector provided by [1] to extract the top 36 region proposals of which each is encoded as a 2048-dimensional feature. For evaluation, we take the recall at K $. ( \mathbb { R } ^ { \ @ \mathbb { K } ) }$ as the measurement. In short, ${ \mathrm { R @ K } }$ is the fraction of queries for which the correct item is retrieved in the closest K points to the query. In the experiments, we report $\mathbf { R } \ @ 1$ , $\mathbf { R } @ 5$ , and $\mathbb { R } \ @ 1 0$ for a comprehensive evaluation.
|
| 142 |
+
|
| 143 |
+
# 4.2 Implementation Details
|
| 144 |
+
|
| 145 |
+
NCR is a general framework which could enable almost all existing cross-modal matching methods robust against noisy correspondence. To verify the effectiveness of our framework, SGR [7] is chosen to guarantee the robustness because it is the state of the art in image-text matching. In brief, the image regions and words are projected into a shared embedding space through a full-connected layer $( i . e . , f )$ and a Bi-GRU [34] $( i . e . , g )$ , respectively. For the similarity function $S$ , it will compute the similarity between the given image and text by combining the local and global features with the help of a graph reasoning technique proposed in [18]. Due to the space limitation, we leave more details and results in the supplemental material.
|
| 146 |
+
|
| 147 |
+
We train our network using the Adam optimizer [16] with the default parameters and a batch size of 128. For fair comparisons, the networks $f$ and $g$ are the same with SGR, i.e., the word embedding size is 300 and the joint embedding space size is 2048. In addition, we fix the margin $\alpha = 0 . 2$ and $m = 1 0$ for the soft margin through the experiments. At the inference stage, we average the similarities predicted by network $A$ and $B$ for the retrieval evaluation. To avoid overfitting, we choose the best checkpoint in terms of the sum of the recalls on the validation set.
|
| 148 |
+
|
| 149 |
+
# 4.3 Comparisons with State of The Arts
|
| 150 |
+
|
| 151 |
+
In this section, we conduct comparisons on the three datasets. The baselines include SCAN [19], VSRN [21], IMRAM [5], SGRAF, SGR and SAF [7]. For Flickr30K and MS-COCO, we report the results with three different noise ratios, i.e., $0 \%$ , $20 \%$ , and $50 \%$ . In addition, we also report the results of SGR on the clean Flickr30K and MS-COCO by discarding the noisy pairs, denoted by SGR-C. Clearly, SGR-C is a quite strong baseline since the used data does not contain noisy correspondence. We do not report the results of SGRAF and SAF on the clean datasets since our framework only extends SGR in this paper.
|
| 152 |
+
|
| 153 |
+
When the noise rate is $0 \%$ , we directly refer to the results reported in the corresponding papers. For the noisy cases, we train the baseline models with the recommended settings three times and report the best result. Note that for SGR, we found it is very sensitive to the noisy correspondence, as shown in Table. 2. To obtain a desirable result, we experimentally employ a pre-training process to SGR (denoted by ${ \mathrm { S G R } } ^ { * }$ ), namely, training the model with the vanilla triplet loss without hard negatives and then following the standard pipeline of SGR.
|
| 154 |
+
|
| 155 |
+
Table 1: Image-Text Retrieval on Flickr30K and MS-COCO 1K.
|
| 156 |
+
|
| 157 |
+
<table><tr><td rowspan="2"></td><td rowspan="2"></td><td colspan="5">Flickr30K</td><td colspan="6">MS-COCO</td></tr><tr><td colspan="3">Image→Text</td><td colspan="3">Text→Image</td><td colspan="2">Image→Text</td><td colspan="3">Text→Image</td></tr><tr><td>Noise</td><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1 R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td rowspan="7">0%</td><td>SCAN</td><td>67.4</td><td>90.3</td><td>95.8</td><td>48.6</td><td>77.7</td><td>85.2</td><td>69.2 93.6</td><td>97.6</td><td>56.0</td><td>86.5</td><td>93.5</td></tr><tr><td>VSRN</td><td>71.3</td><td>90.6</td><td>96.0</td><td>54.7</td><td>81.8 88.2</td><td>76.2</td><td>94.8</td><td>98.2</td><td>62.8</td><td>89.7</td><td>95.1</td></tr><tr><td>IMRAM</td><td>74.1</td><td>93.0</td><td>96.6</td><td>53.9</td><td>79.4</td><td>87.2</td><td>76.7 95.6</td><td>98.5</td><td>61.7</td><td>89.1</td><td>95.0</td></tr><tr><td>SAF</td><td>73.7</td><td>93.3</td><td>96.3</td><td>56.1</td><td>81.5</td><td>88.0</td><td>76.1 95.4</td><td>98.3</td><td>61.8</td><td>89.4</td><td>95.3</td></tr><tr><td>SGR</td><td>75.2</td><td>93.3</td><td>96.6</td><td>56.2</td><td>81.0</td><td>86.5</td><td>78.0 95.8</td><td>98.2</td><td>61.4</td><td>89.3</td><td>95.4</td></tr><tr><td>SGRAF NCR</td><td>77.8</td><td>94.1</td><td>97.4</td><td>58.5</td><td>83.0</td><td>88.8</td><td>79.6 96.2</td><td>98.5</td><td>63.2</td><td>90.7</td><td>96.1</td></tr><tr><td></td><td>77.3</td><td>94.0</td><td>97.5</td><td>59.6</td><td>84.4</td><td>89.9</td><td>78.7 95.8</td><td>98.5</td><td>63.3</td><td>90.4</td><td>95.8</td></tr><tr><td rowspan="7">20%</td><td>SCAN</td><td>59.1</td><td>83.4</td><td>90.4</td><td>36.6</td><td>67.0</td><td>77.5 78.2</td><td>66.2 25.1</td><td>91.0 96.4</td><td>45.0</td><td>80.2</td><td>89.3</td></tr><tr><td>VSRN IMRAM</td><td>58.1 63.0</td><td>82.6</td><td>89.3</td><td>40.7</td><td>68.7</td><td></td><td>59.0</td><td>74.8</td><td>17.6</td><td>49.0</td><td>64.1</td></tr><tr><td>SAF</td><td>51.0</td><td>86.0</td><td>91.3</td><td>41.4</td><td>71.2</td><td>80.5 68.6</td><td>92.8</td><td>97.6</td><td>55.7</td><td>85.0</td><td>91.0</td></tr><tr><td>SGR*</td><td>62.8</td><td>79.3</td><td>88.0</td><td>38.3</td><td>66.5</td><td>76.2</td><td>67.3 92.5 91.7</td><td>96.6 96.2</td><td>53.4 52.9</td><td>84.5</td><td>92.4</td></tr><tr><td>SGR-C</td><td>72.8</td><td>86.2 90.8</td><td>92.2 95.4</td><td>44.4 56.4</td><td>72.3</td><td>80.4</td><td>67.8</td><td></td><td></td><td>83.5</td><td>90.1</td></tr><tr><td>NCR</td><td>75.0</td><td>93.9</td><td>97.5</td><td></td><td>82.1</td><td>88.6</td><td>75.4 95.2</td><td>97.9</td><td>60.1</td><td>88.5 89.3</td><td>94.8</td></tr><tr><td></td><td></td><td></td><td></td><td>58.3</td><td>83.0</td><td>89.0</td><td>77.7</td><td>95.5</td><td>98.2</td><td>62.5</td><td></td><td>95.3 21.0</td></tr><tr><td rowspan="7">50%</td><td>SCAN</td><td>27.7</td><td>57.6</td><td>68.8</td><td>16.2</td><td>39.3</td><td>49.8</td><td>40.8</td><td>73.5 84.9</td><td>5.4</td><td></td><td>15.1</td></tr><tr><td>VSRN</td><td>14.3</td><td>37.6</td><td>50.0</td><td>12.1</td><td>30.0</td><td>39.4</td><td>23.5 54.7</td><td>69.3</td><td>16.0</td><td>47.8</td><td>65.9</td></tr><tr><td>IMRAM</td><td>9.1</td><td>26.6</td><td>38.2</td><td>2.7</td><td>8.4</td><td>12.7</td><td>21.3 60.2</td><td>75.9</td><td>22.3</td><td>52.8</td><td>64.3</td></tr><tr><td>SAF</td><td>30.3</td><td>63.6</td><td>75.4</td><td>27.9</td><td>53.7</td><td>65.1</td><td>30.4 67.8</td><td>82.3</td><td>33.5</td><td>69.0</td><td>82.8</td></tr><tr><td>SGR*</td><td>36.9</td><td>68.1</td><td>80.2</td><td>29.3</td><td>56.2</td><td>67.0</td><td>60.6 87.4</td><td>93.6</td><td>46.0</td><td>74.2</td><td>79.0</td></tr><tr><td>SGR-C</td><td>69.8</td><td>90.3</td><td>94.8</td><td>50.1</td><td>77.5</td><td>85.2</td><td>71.7 94.1</td><td>97.7</td><td>57.0</td><td>86.6</td><td>93.7</td></tr><tr><td>NCR</td><td>72.9</td><td>93.0</td><td>96.3</td><td>54.3</td><td>79.8</td><td>86.5</td><td>74.6</td><td>94.6</td><td>97.8 59.1</td><td>87.8</td><td>94.5</td></tr></table>
|
| 158 |
+
|
| 159 |
+
Results on Flickr30K & MS-COCO. Table 1 shows the quantitative results on Flickr30K and MS-COCO. Note that for MS-COCO, we only report the results by averaging over 5 folds of 1K test images due to space limitation, and leave the results on the full 5K test images in the supplemental material. From the results, one could observe that NCR is competitive to SGRAF in the noisefree case, namely, NCR could achieve state-of-the-art performance even though it is proposed to achieve robustness. When the data is contaminated by the noisy correspondence, NCR remarkably outperforms all the baselines by a large margin. Even comparing with SGR-C which is trained on the clean data, NCR improves $\mathbb { R } \ @ 1$ by $2 . 2 \%$ , $3 . 1 \%$ , $2 . 3 \%$ , and $2 . 9 \%$ in these four valuations.
|
| 160 |
+
|
| 161 |
+
Results on CC152K. Table 2 shows the quantitative results on the CC152K which is with real noisy correspondences. From the results, one could see that our NCR consistently outperforms the evaluated models by a considerable margin in terms of all metrics. Specifically, NCR is $4 . 5 \%$ and $5 . 4 \%$ higher than the best baseline in terms of $\mathbf { R } \ @ 1$ in text and image retrieval, respectively. Moreover, the large performance gap between SGR and $\operatorname { S G R } ^ { * }$ shows the noise sensitivity of the original SGR.
|
| 162 |
+
|
| 163 |
+
Table 2: Image-Text Retrieval on CC152K.
|
| 164 |
+
|
| 165 |
+
<table><tr><td></td><td colspan="3">Image→ Text</td><td colspan="3">Text→Image</td></tr><tr><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>SCAN (ECCV'18)</td><td>30.5</td><td>55.3</td><td>65.3</td><td>26.9</td><td>53.0</td><td>64.7</td></tr><tr><td>VSRN (ICCV'19)</td><td>32.6</td><td>61.3</td><td>70.5</td><td>32.5</td><td>59.4</td><td>70.4</td></tr><tr><td>IMRAM (CVPR'20)</td><td>33.1</td><td>57.6</td><td>68.1</td><td>29.0</td><td>56.8</td><td>67.4</td></tr><tr><td>SAF (AAAI'21)</td><td>31.7</td><td>59.3</td><td>68.2</td><td>31.9</td><td>59.0</td><td>67.9</td></tr><tr><td>SGR (AAAI'21)</td><td>11.3</td><td>29.7</td><td>39.6</td><td>13.1</td><td>30.1</td><td>41.6</td></tr><tr><td>SGR* (AAAI'21)</td><td>35.0</td><td>63.4</td><td>73.3</td><td>34.9</td><td>63.0</td><td>72.8</td></tr><tr><td>NCR</td><td>39.5</td><td>64.5</td><td>73.5</td><td>40.3</td><td>64.6</td><td>73.2</td></tr></table>
|
| 166 |
+
|
| 167 |
+
# 4.4 Comparison to pre-trained model
|
| 168 |
+
|
| 169 |
+
In this section, we perform comparison to the large pre-trained model CLIP [31]. In brief, CLIP is trained on a massive dataset harvested from the Internet and thus presumably has a lot of noisy image-text pairs. Such a comparison is helpful in understanding, big data based model (CLIP) or noisy correspondence modeling technique (NCR), which one is more favorable to handle the mismatching problem. More specifically, CLIP claims that using hundreds of million data could ignore the existence of possible noise, while we believe that a well-designed algorithm is essential to solve the noisy correspondence. Noticed, although some existing works including CLIP have slightly/indirectly realized the existence of the noise, NONE of them explicitly give a solution to solve this problem and explores the characteristics of the noise correspondence.
|
| 170 |
+
|
| 171 |
+
In the experiments, we conduct CLIP on the MS-COCO dataset under the following two settings, i.e., Zero-shot and Fine-tune. In brief, the first setting directly uses the released pre-trained CLIP to perform inference on MS-COCO, and the second fine-tunes the pre-trained model using the noisy training data of MS-COCO. As CLIP only released some pre-trained models and inference code 3, we use the non-official code 4 to fine-tune the model with 32 epochs for the fine-tune setting. Note that CLIP (ViT-L/14†) is unreleased and we report the results from the original paper [31]. One could observe that, although CLIP utilizes 400 million image-text pairs for pre-training, its performance inevitably degenerates during fine-tuning. In contrast, NCR achieves the matching performance with the presence of noisy correspondence, indicating the necessity of algorithm design.
|
| 172 |
+
|
| 173 |
+
Table 3: Comparison with CLIP on MS-COCO 5K.
|
| 174 |
+
|
| 175 |
+
<table><tr><td></td><td></td><td colspan="3">Image→ Text</td><td colspan="3">Text→Image</td></tr><tr><td>Noise Ratio</td><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td rowspan="2">0%, Zero-Shot</td><td>CLIP (ViT-L/14+)</td><td>58.4</td><td>81.5</td><td>88.1</td><td>37.8</td><td>62.4</td><td>72.2</td></tr><tr><td>CLIP (ViT-B/32)</td><td>50.2</td><td>74.6</td><td>83.6</td><td>30.4</td><td>56.0</td><td>66.8</td></tr><tr><td rowspan="2">20%,Fine-tune</td><td>NCR</td><td>58.2</td><td>84.2</td><td>91.5</td><td>41.7</td><td>71.0</td><td>81.3</td></tr><tr><td>CLIP (ViT-B/32) NCR</td><td>21.4 56.9</td><td>49.6 83.6</td><td>63.3 91.0</td><td>14.8 40.6</td><td>37.6 69.8</td><td>49.6 80.1</td></tr><tr><td rowspan="2">50%, Fine-tune</td><td>CLIP (ViT-B/32)</td><td>10.9</td><td>27.8</td><td>38.3</td><td>7.8</td><td>19.5</td><td></td></tr><tr><td>NCR</td><td>53.1</td><td>80.7</td><td>88.5</td><td>37.9</td><td>66.6</td><td>26.8 77.8</td></tr></table>
|
| 176 |
+
|
| 177 |
+
# 4.5 Experimental Analysis
|
| 178 |
+
|
| 179 |
+
In this section, we first conduct experiments to show the robustness and generalizability of the proposed method. Then, we investigate the effect of co-divide and co-rectify with the visualization results. After that, we carry out the ablation study to verify different components of NCR. Finally, we visually demonstrate some noisy cases detected by NCR.
|
| 180 |
+
|
| 181 |
+
# 4.5.1 Study on Robustness and Generalizability
|
| 182 |
+
|
| 183 |
+
To show the robustness of NCR, we conduct experiments on Flickr30K by increasing the noise ratio from $0 \%$ to $6 0 \%$ with an interval of $1 0 \%$ . In addition, to verify the generalizability of NCR to other image-text matching methods, we extend SCAN [19] by NCR, denoted by NCR-SCAN. Fig. 4 shows that NCR and NCR-SCAN perform more stable than SGR and SCAN with increasing noise ratio. Moreover, NCR (NCR-SCAN) is remarkably superior to SGR (SCAN) in all tests, which shows the generalizability of NCR.
|
| 184 |
+
|
| 185 |
+
# 4.5.2 Visualization on the Co-divide and Co-rectify
|
| 186 |
+
|
| 187 |
+
To further investigate the influence of the co-divide and co-rectify modules in our method, we carry out experiments on the Flickr30K dataset by visualizing the per-sample loss distribution and the model predictions on the noisy data, where the noisy ratio is $20 \%$ . For better visualization, here we show the result of NCR-SCAN and leave the result of NCR in the supplemental material. As shown in Fig. 3(b), the loss of most noisy samples is larger than the clean loss, which verifies the memorization effect of DNNs. By fitting the per-sample loss with GMM, NCR could effectively divide the data into clean and noisy splits. Regarding the analysis on the co-rectify, Fig. 3(c) shows that the rectified soft labels of most clean pairs range into [0.3, 1] and those of most noisy pairs range into [0, 0.5]. In other words, one could enforce the similarity of true positives larger than that of the negatives during training, thus eliminating the negative impact of the noisy correspondence.
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 3: (a) Retrieval performance of NCR and NCR-SCAN on Flickr30K with varying noise ratio. (b) Per-sample loss distribution and GMM fitting visualization after warmup. (c) Model predictions on the noisy subset.
|
| 191 |
+
|
| 192 |
+
# 4.5.3 Ablation Study
|
| 193 |
+
|
| 194 |
+
In this section, we carry out the ablation study on the Flickr30K with the noise ratio of $50 \%$ . As shown in Table 4, all these three components are important to achieving encouraging results.
|
| 195 |
+
|
| 196 |
+
Table 4: Ablation studies on Flickr30K with $50 \%$ noise.
|
| 197 |
+
|
| 198 |
+
<table><tr><td colspan="3">Method</td><td colspan="3">Image →Text</td><td colspan="3">Text→Image</td></tr><tr><td>Co-divide</td><td>Co-rectify</td><td>Warmup</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>?</td><td>√</td><td><<></td><td>72.9</td><td>93.0</td><td>96.3</td><td>54.3</td><td>79.8</td><td>86.5</td></tr><tr><td></td><td></td><td></td><td>71.4</td><td>90.8</td><td>95.7</td><td>54.1</td><td>80.3</td><td>86.5</td></tr><tr><td></td><td>?</td><td></td><td>16.0</td><td>38.4</td><td>51.7</td><td>12.6</td><td>31.4</td><td>42.8</td></tr><tr><td>√</td><td></td><td></td><td>0.3</td><td>0.6</td><td>1.0</td><td>0.2</td><td>0.5</td><td>1.1</td></tr></table>
|
| 199 |
+
|
| 200 |
+
# 4.5.4 Noisy Samples
|
| 201 |
+
|
| 202 |
+
Fig. 4 shows some noisy CC152K examples identified by NCR. As shown, the first four image-text pairs are completely unrelated, which will be successfully detected by NCR. For the last pair, it will also be detected as noisy correspondence even though the visual and textual modalities are correlated at a coarse-grained level, e.g., both the image and text involve “beach".
|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
Figure 4: Some noisy examples correctly divided by NCR.
|
| 206 |
+
|
| 207 |
+
# 5 Conclusion
|
| 208 |
+
|
| 209 |
+
This paper could be the first attempt to study a new problem in cross-modal matching, i.e., the noisy correspondence which could be a potential new direction in noise label. To solve this problem in cross-modal matching, we propose rectifying the noisy correspondence by an adaptive prediction function and a novel triplet loss with a soft margin to achieve robust cross-modal matching. Extensive experiments verify the effectiveness of the proposed method in handling synthesized and real noisy correspondences.
|
| 210 |
+
|
| 211 |
+
# Broader Impact Statement
|
| 212 |
+
|
| 213 |
+
Cross-modal matching is a fundamental topic in multimodal learning, which could be applied to a wide range of applications including data retrieval, recommender systems, and vision-and-language understanding. This work could be one of the first works to aware of the importance and existence of the noisy correspondence problem in numerous applications. There are many benefits to solving the noisy correspondence problem, e.g., reducing the costs for manually annotating and aligning data; more data could be collected and used even though some of them are incorrectly aligned. Besides the benefits, it should pay attention on the potential negative impacts including but not limited to 1) The risk of automation bias [28] for decision making from the data bias, especially in aviation, health care, and autonomous vehicles. 2) The job loss caused by the NCR since it makes possibility to automatically correct the noisy correspondence, thus remarkably reducing the cost of human labor. We would encourage further work to understand and mitigate the above biases and risks.
|
| 214 |
+
|
| 215 |
+
# Acknowledgements
|
| 216 |
+
|
| 217 |
+
The authors would thank to the anonymous reviewers whose valuable suggestions and constructive comments remarkably improve this work. This work was supported in part by the National Key R&D Program of China under Grant 2020AAA0104500; in part by the Key Research and Development Program of Sichuan Province under Grant 2019YFG0497; in part by NFSC under Grant U21B2040, 62176171, U19A2078, 61625204, and 61836006; in part by the Fund of Sichuan University Tomorrow Advancing Life.
|
| 218 |
+
|
| 219 |
+
# References
|
| 220 |
+
|
| 221 |
+
[1] Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6077–6086, 2018.
|
| 222 |
+
[2] Eric Arazo, Diego Ortego, Paul Albert, Noel O’Connor, and Kevin McGuinness. Unsupervised label noise modeling and loss correction. In International Conference on Machine Learning, pages 312–321. PMLR, 2019.
|
| 223 |
+
[3] Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. In International Conference on Machine Learning, pages 233–242. PMLR, 2017.
|
| 224 |
+
[4] David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin Raffel. Mixmatch: A holistic approach to semi-supervised learning. arXiv preprint arXiv:1905.02249, 2019.
|
| 225 |
+
[5] Hui Chen, Guiguang Ding, Xudong Liu, Zijia Lin, Ji Liu, and Jungong Han. Imram: Iterative matching with recurrent attention memory for cross-modal image-text retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12655–12663, 2020.
|
| 226 |
+
[6] Sanghyuk Chun, Seong Joon Oh, Rafael Sampaio de Rezende, Yannis Kalantidis, and Diane Larlus. Probabilistic embeddings for cross-modal retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8415–8424, 2021.
|
| 227 |
+
[7] Haiwen Diao, Ying Zhang, Lin Ma, and Huchuan Lu. Similarity reasoning and filtration for image-text matching. In AAAI, 2021.
|
| 228 |
+
[8] Fartash Faghri, David J Fleet, Jamie Ryan Kiros, and Sanja Fidler. Vse++: Improving visualsemantic embeddings with hard negatives. arXiv preprint arXiv:1707.05612, 2017.
|
| 229 |
+
[9] Dalu Guo, Chang Xu, and Dacheng Tao. Image-question-answer synergistic network for visual dialog. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10434–10443, 2019.
|
| 230 |
+
[10] Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. arXiv preprint arXiv:1804.06872, 2018.
|
| 231 |
+
[11] Yi Hao, Nannan Wang, Xinbo Gao, Jie Li, and Xiaoyu Wang. Dual-alignment feature embedding for cross-modality person re-identification. In Proceedings of the 27th ACM International Conference on Multimedia, pages 57–65, 2019.
|
| 232 |
+
[12] Zhenyu Huang, Peng Hu, Joey Tianyi Zhou, Jiancheng Lv, and Xi Peng. Partially view-aligned clustering. In Proceedings of the 34th Conference on Neural Information Processing Systems, NeurIPS’2020, volume 33, Virtual-only Conference, Dec 2020.
|
| 233 |
+
[13] Zhenyu Huang, Joey Tianyi Zhou, Hongyuan Zhu, Changqing Zhang, Jiancheng Lv, and Xi Peng. Deep spectral representation learning from multi-view data. IEEE Transactions on Image Processing, 30:5352–5362, 2021.
|
| 234 |
+
[14] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021.
|
| 235 |
+
[15] Sungyeon Kim, Minkyo Seo, Ivan Laptev, Minsu Cho, and Suha Kwak. Deep metric learning beyond binary supervision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2288–2297, 2019.
|
| 236 |
+
[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 237 |
+
[17] Ryan Kiros, Ruslan Salakhutdinov, and Richard S Zemel. Unifying visual-semantic embeddings with multimodal neural language models. arXiv preprint arXiv:1411.2539, 2014.
|
| 238 |
+
[18] Zhanghui Kuang, Yiming Gao, Guanbin Li, Ping Luo, Yimin Chen, Liang Lin, and Wayne Zhang. Fashion retrieval via graph reasoning networks on a similarity pyramid. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3066–3075, 2019.
|
| 239 |
+
[19] Kuang-Huei Lee, Xi Chen, Gang Hua, Houdong Hu, and Xiaodong He. Stacked cross attention for image-text matching. In Proceedings of the European Conference on Computer Vision (ECCV), pages 201–216, 2018.
|
| 240 |
+
[20] Junnan Li, Richard Socher, and Steven CH Hoi. Dividemix: Learning with noisy labels as semi-supervised learning. arXiv preprint arXiv:2002.07394, 2020.
|
| 241 |
+
[21] Kunpeng Li, Yulun Zhang, Kai Li, Yuanyuan Li, and Yun Fu. Visual semantic reasoning for image-text matching. In ICCV, 2019.
|
| 242 |
+
[22] Sheng Li, Zhiqiang Tao, Kang Li, and Yun Fu. Visual to text: Survey of image and video captioning. IEEE Transactions on Emerging Topics in Computational Intelligence, 3(4):297– 312, 2019.
|
| 243 |
+
[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014.
|
| 244 |
+
[24] Yijie Lin, Yuanbiao Gou, Zitao Liu, Boyun Li, Jiancheng Lv, and Xi Peng. Completer: Incomplete multi-view clustering via contrastive prediction. In CVPR, June 2021.
|
| 245 |
+
[25] Fangyu Liu, Rongtian Ye, Xun Wang, and Shuaipeng Li. Hal: Improved text-image matching by mitigating visual semantic hubs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 11563–11571, 2020.
|
| 246 |
+
[26] Risheng Liu, Jinyuan Liu, Zhiying Jiang, Xin Fan, and Zhongxuan Luo. A bilevel integrated model with data-driven layer ensemble for multi-modality image fusion. IEEE Transactions on Image Processing, 30:1261–1274, 2020.
|
| 247 |
+
[27] Tongliang Liu and Dacheng Tao. Classification with noisy labels by importance reweighting. IEEE Transactions on pattern analysis and machine intelligence, 38(3):447–461, 2015.
|
| 248 |
+
[28] Kathleen L Mosier, Linda J Skitka, Susan Heers, and Mark Burdick. Automation bias: Decision making and performance in high-tech cockpits. The International journal of aviation psychology, 8(1):47–63, 1998.
|
| 249 |
+
[29] Xi Peng, Zhenyu Huang, Jiancheng Lv, Hongyuan Zhu, and Joey Tianyi Zhou. Comic: Multiview clustering without parameter selection. In International conference on machine learning, pages 5092–5101. PMLR, 2019.
|
| 250 |
+
[30] Haim Permuter, Joseph Francos, and Ian Jermyn. A study of gaussian mixture models of color and texture features for image classification and segmentation. Pattern Recognition, 39(4):695–706, 2006.
|
| 251 |
+
[31] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021.
|
| 252 |
+
[32] Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. arXiv preprint arXiv:1412.6596, 2014.
|
| 253 |
+
[33] Shaoqing Ren, Kaiming He, Ross B Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015.
|
| 254 |
+
[34] Mike Schuster and Kuldip K Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing, 45(11):2673–2681, 1997.
|
| 255 |
+
[35] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, 2018.
|
| 256 |
+
[36] Hwanjun Song, Minseok Kim, Dongmin Park, Yooju Shin, and Jae-Gil Lee. Learning from noisy labels with deep neural networks: A survey. arXiv preprint arXiv:2007.08199, 2020.
|
| 257 |
+
[37] Liwei Wang, Yin Li, and Svetlana Lazebnik. Learning deep structure-preserving image-text embeddings. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5005–5013, 2016.
|
| 258 |
+
[38] Michael Wray, Hazel Doughty, and Dima Damen. On semantic similarity in video retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3650–3660, 2021.
|
| 259 |
+
[39] Xiaobo Xia, Tongliang Liu, Bo Han, Chen Gong, Nannan Wang, Zongyuan Ge, and Yi Chang. Robust early-learning: Hindering the memorization of noisy labels. In International Conference on Learning Representations, 2021.
|
| 260 |
+
[40] Erkun Yang, Cheng Deng, Wei Liu, Xianglong Liu, Dacheng Tao, and Xinbo Gao. Pairwise relationship guided deep hashing for cross-modal retrieval. In proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017.
|
| 261 |
+
[41] Mouxing Yang, Yunfan Li, Zhenyu Huang, Zitao Liu, Peng Hu, and Xi Peng. Partially view-aligned representation learning with noise-robust contrastive loss. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1134–1143, 2021.
|
| 262 |
+
[42] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014.
|
| 263 |
+
[43] Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In International Conference on Machine Learning, pages 7164–7173. PMLR, 2019.
|
| 264 |
+
[44] Zhou Zhao, Qifan Yang, Deng Cai, Xiaofei He, and Yueting Zhuang. Video question answering via hierarchical spatio-temporal attention networks. In IJCAI, pages 3518–3524, 2017.
|
parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_content_list.json
ADDED
|
@@ -0,0 +1,1227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Learning with Noisy Correspondence for Cross-modal Matching ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
272,
|
| 8 |
+
122,
|
| 9 |
+
725,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Guocheng Niu Baidu Inc., China niuguocheng@baidu.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
429,
|
| 19 |
+
226,
|
| 20 |
+
612,
|
| 21 |
+
268
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Zhenyu Huang∗ College of Computer Science Sichuan University, China zyhuang.gm@gmail.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
200,
|
| 30 |
+
226,
|
| 31 |
+
397,
|
| 32 |
+
282
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Xiao Liu TAL Education Group liuxiao15@tal.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
647,
|
| 41 |
+
226,
|
| 42 |
+
797,
|
| 43 |
+
267
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Wenbiao Ding TAL Education Group dingwenbiao@tal.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
212,
|
| 52 |
+
303,
|
| 53 |
+
379,
|
| 54 |
+
344
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Xinyan Xiao Baidu Inc., China xiaoxinyan@baidu.com ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
424,
|
| 63 |
+
303,
|
| 64 |
+
598,
|
| 65 |
+
344
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Hua Wu Baidu Inc., China wu_hua@baidu.com ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
643,
|
| 74 |
+
303,
|
| 75 |
+
784,
|
| 76 |
+
344
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Xi Peng† College of Computer Science Sichuan University, China pengx.gm@gmail.com ",
|
| 83 |
+
"bbox": [
|
| 84 |
+
400,
|
| 85 |
+
366,
|
| 86 |
+
596,
|
| 87 |
+
422
|
| 88 |
+
],
|
| 89 |
+
"page_idx": 0
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"text": "Abstract ",
|
| 94 |
+
"text_level": 1,
|
| 95 |
+
"bbox": [
|
| 96 |
+
462,
|
| 97 |
+
457,
|
| 98 |
+
535,
|
| 99 |
+
474
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "Cross-modal matching, which aims to establish the correspondence between two different modalities, is fundamental to a variety of tasks such as cross-modal retrieval and vision-and-language understanding. Although a huge number of crossmodal matching methods have been proposed and achieved remarkable progress in recent years, almost all of these methods implicitly assume that the multimodal training data are correctly aligned. In practice, however, such an assumption is extremely expensive even impossible to satisfy. Based on this observation, we reveal and study a latent and challenging direction in cross-modal matching, named noisy correspondence, which could be regarded as a new paradigm of noisy labels. Different from the traditional noisy labels which mainly refer to the errors in category labels, our noisy correspondence refers to the mismatch paired samples. To solve this new problem, we propose a novel method for learning with noisy correspondence, named Noisy Correspondence Rectifier (NCR). In brief, NCR divides the data into clean and noisy partitions based on the memorization effect of neural networks and then rectifies the correspondence via an adaptive prediction model in a co-teaching manner. To verify the effectiveness of our method, we conduct experiments by using the image-text matching as a showcase. Extensive experiments on Flickr30K, MS-COCO, and Conceptual Captions verify the effectiveness of our method. The code could be accessed from www.pengxi. me. ",
|
| 106 |
+
"bbox": [
|
| 107 |
+
233,
|
| 108 |
+
488,
|
| 109 |
+
766,
|
| 110 |
+
765
|
| 111 |
+
],
|
| 112 |
+
"page_idx": 0
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"type": "text",
|
| 116 |
+
"text": "1 Introduction ",
|
| 117 |
+
"text_level": 1,
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
790,
|
| 121 |
+
310,
|
| 122 |
+
808
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "As one of the most fundamental techniques in multimodal learning, cross-modal matching aims to bridge different modalities. In recent years, some cross-modal matching methods [19, 11, 7, 26] have been proposed based on Deep Neural Networks (DNNs), which achieved remarkable progress in a variety of applications, such as clustering [29, 24], image/video captioning [1, 44, 22], cross-modal retrieval [40, 19, 13], and visual question answering [9]. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
176,
|
| 131 |
+
821,
|
| 132 |
+
823,
|
| 133 |
+
863
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
90,
|
| 143 |
+
823,
|
| 144 |
+
119
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In general, most existing cross-modal matching methods embed different modalities into a common space wherein the similarity of positive cross-modal pairs is maximized and that of the negative ones is minimized. Although these methods have achieved promising results, their success depends on an implicit data assumption, i.e., the training data are correctly aligned across modalities. For example, in the vision-and-language tasks, the text needs to accurately describe the image content, and vice versa. In practice, however, it is extremely expensive and time-consuming to annotate or collect such data pairs. Especially, considering the data collected from the Internet [35, 14], it is inevitable to collect some mismatched pairs which are wrongly treated as the matched ones. To the best of our knowledge, such a special noisy label (correspondence) problem has been ignored so far, which will remarkably degrade the performance of matching methods as shown in our experiments. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
173,
|
| 153 |
+
126,
|
| 154 |
+
825,
|
| 155 |
+
263
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "image",
|
| 161 |
+
"img_path": "images/8fe147a50fe0a4e139ee18a498d586b8c26880aa0b567f8e71692812be7e2a62.jpg",
|
| 162 |
+
"image_caption": [
|
| 163 |
+
"Figure 1: Noisy labels vs. Noisy Correspondence. We denote the noisy samples with red lines and clean samples with green lines. The traditional noisy labels mainly refer to the errors in category labels, while the noisy correspondence refers to the alignment errors in paired data. For the noisy correspondence in cross-modal matching, the true positive pair correctly guides the cross-modal matching, while the false positive pair causes incorrect supervision for training. "
|
| 164 |
+
],
|
| 165 |
+
"image_footnote": [],
|
| 166 |
+
"bbox": [
|
| 167 |
+
205,
|
| 168 |
+
280,
|
| 169 |
+
789,
|
| 170 |
+
402
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Based on the above observation, we reveal a new paradigm for the noisy labels, named noisy correspondence. Different from the traditional noisy labels, the noisy correspondence refers to the alignment errors in paired data rather than the errors in category annotations (see Fig. 1). To the best of our knowledge, there is no effort has been devoted to study this new problem and the closest paradigm might be the partially view-aligned problem (PVP) [12, 41]. However, PVP is remarkably different from noisy correspondence, and the latter is more practical than the former. To be specific, PVP focuses on that the cross-modal alignment is totally unavailable, whereas the noisy correspondence focuses on that some correspondences are incorrect. In addition, PVP assumes that some correctly aligned data are available for training, whereas our noisy correspondence assumes that the clean and noisy data are mixed. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
484,
|
| 180 |
+
825,
|
| 181 |
+
621
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "To solve the noisy correspondence problem in cross-modal matching, we propose a novel method, named Noisy Correspondence Rectifier (NCR). Our method is based on the memorization effect of DNNs observed in [3, 39], i.e., DNNs tend to learn the simple patterns before fitting noisy samples. Motivated by this empirical observation, NCR divides the data into two relative accurate data partitions, i.e., “noisy” and “clean” subsets, based on their loss difference. After that, NCR employs an adaptive prediction function for label rectifying so that the false positives and the true positives could be identified from the “clean” and the “noisy” subsets, respectively. Furthermore, we propose a novel triplet loss for robust cross-modal matching by recasting the rectified labels as the soft margin. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
173,
|
| 190 |
+
628,
|
| 191 |
+
825,
|
| 192 |
+
753
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "The main contributions and novelties of this paper could be summarized as below. i) We reveal a new problem in cross-modal analysis, which is also a new paradigm for noisy labels, termed noisy correspondence. Different from the traditional noisy labels, the noisy correspondence refers to the alignment errors in paired data instead of the errors in category annotations. To the best of our knowledge, this work could be the first study on this problem. ii) To solve the noisy correspondence problem, we propose a novel method for learning with noisy correspondence, named Noisy Correspondence Rectifier (NCR). One major novelty of NCR is that the rectified label is elegantly recasted as the soft margin of a triplet loss so that the robust cross-modal matching could be achieved. iii) To verify the effectiveness of our method, we conduct experiments on the image-text matching task. Extensive experiments on three challenging datasets verify the effectiveness of our method in the synthesized and real noises. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
173,
|
| 201 |
+
758,
|
| 202 |
+
825,
|
| 203 |
+
911
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 Related works ",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
89,
|
| 214 |
+
326,
|
| 215 |
+
106
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "In this section, we briefly introduce some recent developments in cross-modal matching and learning with noisy labels. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
176,
|
| 224 |
+
121,
|
| 225 |
+
823,
|
| 226 |
+
148
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "2.1 Cross-modal Matching ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
166,
|
| 237 |
+
372,
|
| 238 |
+
181
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Most existing cross-modal matching works seek to learn a common space wherein different modalities are comparable. In general, existing works could be roughly divided into two categories: 1) Coarsegrained Matching. It often utilizes multiple neural networks to compute a global feature and each network is used for a specific modality [17, 37, 8]. For example, Kiros et al. [17] use a Convolutional Neural Network (CNN) and a Gated Recurrent Unit (GRU) to obtain the image and text features, while enforcing the similarity of positive pairs larger than that of the negative ones. To further boost the matching performance, ${ \\mathrm { V S E } } { + } { + }$ [8] uses some representative negatives to improve the discrimination of the model. 2) Fine-grained Matching. It seeks to measure the fine-grained similarity for cross-modal matching [19, 21, 7]. For example, SCAN [19] proposes learning the latent semantic correspondence between the image regions and words that are extracted by bottom-up attention [1] and GRU, respectively. VSRN [21] adopts a graph convolutional network for semantic reasoning. SGRAF [7] proposes constructing a similarity graph to reason the similarity and adopting an attention filtration technique to eliminate the less-meaningful alignments. Recently Chun et al. [6] introduce a new paradigm for cross-modal matching, i.e. possible many-to-many correspondence that existed in the image and captions. To achieve this, they propose to use probabilistic representations to model the possible one-to-many correspondence. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
191,
|
| 248 |
+
825,
|
| 249 |
+
412
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Although promising results have been achieved in recent years, the existing methods heavily rely on the correctly aligned data. In practice, however, such well-matched data is expensive and timeconsuming to collect. Moreover, some recent works [35, 14] show that a large-scale dataset collected from the wild could remarkably improve the performance of the model. However, such a data will inevitably contain some mismatched pairs. Hence, it is highly expected to develop some methods which are robust against the noisy correspondence, which has not been studied as far as we know. Different from the many-to-many correspondence [6] between image and captions, NCR reveals the noisy correspondence problem which refers to the alignment errors of image-text pairs and proposes to eliminate the negative impact from noisy pairs for downstream tasks. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
420,
|
| 259 |
+
825,
|
| 260 |
+
544
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "2.2 Learning with Noisy Labels ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
176,
|
| 270 |
+
560,
|
| 271 |
+
405,
|
| 272 |
+
575
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "To handle the possible noisy annotations in the training data, a large number of methods have been proposed and almost all of them focus on the classification task [36, 27]. To reduce the negative impact of the noisy labels, the existing works often resort to robust architecture design, regularization, loss adjustment, or sample selection methods. Here, we mainly introduce the last two approaches which are most related to this work. To be specific, the loss adjustment achieves robustness by adjusting the contribution of clean and noisy samples w.r.t. the loss. For example, Reed et al. [32] proposed a bootstrapping loss based on the model predictions for loss correction. Zhang et al. [45] provided some theoretical explanations for the label correction along with a new label correction algorithm. Different from the loss adjustment methods, sample selection methods aim to select clean samples from a noisy dataset. For example, Arpit et al. [3] showed that DNNs tend to learn simple patterns before fitting noisy samples, namely the memorization effect. Motivated from this, Arazo et al. [2] proposed treating the samples with small loss as the clean samples. To avoid the selection bias of clean samples, Co-teaching methods [10, 43] use the samples with small loss to iteratively train two networks. In recent, DivideMix [20] adopts the MixMatch method [4] for semi-supervised learning with the clean and noisy samples. ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
587,
|
| 282 |
+
825,
|
| 283 |
+
794
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "Unlike the above noisy label studies, this paper focuses on the noisy correspondence problem which considers mismatched multimodal data pairs instead of incorrectly annotated data points. Besides the difference in the problem, this work is also different from the aforementioned studies in the methodology. To be specific, in cross-modal matching, it is impossible to directly adopt these noise label learning methods to solve the noisy correspondence problem due to the following two reasons. First, most of the noisy label learning methods propose to use the model’s prediction for label rectifying in the scenario of classification, while it is intractable to directly predict the correspondence of given pairs in matching models. Second, even if we can rectify the noisy correspondence somehow, the rectified real-valued labels are incompatible with the existing matching methods since most of them assume the given labels are binary. To address these problems, NCR proposes an adaptive prediction function and a novel triplet loss by recasting the soft labels as soft margins. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
800,
|
| 293 |
+
825,
|
| 294 |
+
911
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "image",
|
| 300 |
+
"img_path": "images/5c322d44fac00fe31e4ff1c8ce4a4a36193b7016a6b16a32f08f9c75ab7a153c.jpg",
|
| 301 |
+
"image_caption": [
|
| 302 |
+
"Figure 2: Overview of the proposed method. (a) Training pipeline of NCR. NCR consists of two individual networks (A, B) which work in the manner of co-teaching. In brief, NCR first warmup the networks (A, B) on the original training data using the loss $L _ { w }$ which is also used for per-sample loss computation. Then, based on the memorization effect of DNclean and noisy subsets at each epoch using either A or B, i.e., $S ^ { A } = ( S _ { c } ^ { A } , S _ { n } ^ { A } )$ the and $S ^ { B } = \\mathsf { \\bar { ( } } S _ { c } ^ { B } , S _ { n } ^ { B } )$ After that, NCR will co-rectify the correspondence of $\\{ { \\cal S } ^ { A } , { \\cal S } ^ { B } \\}$ and obtain $\\{ \\hat { S ^ { A } } , \\hat { S ^ { B } } \\}$ using an adaptive prediction function. Finally, $\\hat { \\cal S } ^ { A }$ and $\\hat { S ^ { B } }$ will be used to train the network $B$ and $A$ in a swapping way. (b) Robust image-text matching network. For example, the network A projects the image and text by the modal-specific networks $f$ and $g$ , respectively. Then the similarity $S ( I , T )$ is computed on the extracted features $f ( I )$ and $g ( T )$ . To achieve robust image-text matching, the rectified soft labels are recast as the soft margin of our loss $\\scriptstyle L _ { s o f t }$ . As shown, for a given anchor, $\\boldsymbol { L _ { s o f t } }$ will enforce the true positive to closer to it than the negative by a large margin $\\hat { \\alpha } _ { 1 }$ , and meanwhile the false positive will has a small margin $\\hat { \\alpha } _ { 2 }$ . "
|
| 303 |
+
],
|
| 304 |
+
"image_footnote": [],
|
| 305 |
+
"bbox": [
|
| 306 |
+
171,
|
| 307 |
+
89,
|
| 308 |
+
825,
|
| 309 |
+
248
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "",
|
| 316 |
+
"bbox": [
|
| 317 |
+
174,
|
| 318 |
+
463,
|
| 319 |
+
825,
|
| 320 |
+
506
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "3 The Proposed Method ",
|
| 327 |
+
"text_level": 1,
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
525,
|
| 331 |
+
390,
|
| 332 |
+
542
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "In this section, we elaborate on the proposed method, i.e., Noisy Correspondence Rectifier (NCR) which could be the first work to solve the noisy correspondence problem in cross-modal matching. In Section 3.1, we introduce the co-divide module which splits the training data into the clean and noisy subsets. After that, we introduce how to rectify the labels with an adaptive prediction function in Section 3.2. Finally, we detail how to combine the co-divide and co-rectify modules to achieve robust cross-modal matching in Section 3.3. ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
174,
|
| 341 |
+
558,
|
| 342 |
+
825,
|
| 343 |
+
641
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "3.1 Co-divide ",
|
| 350 |
+
"text_level": 1,
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
659,
|
| 354 |
+
281,
|
| 355 |
+
674
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "Without loss of generality, we first introduce the cross-modal matching task by taking the image-text matching as a showcase. Given the training data $\\mathcal { D } = \\{ ( I _ { i } , T _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { \\overline { { N } } }$ , where $N$ is the data size, $( I _ { i } , T _ { i } )$ is an image-text pair and $y _ { i } \\in \\{ 1 , \\bar { 0 } \\}$ indicates that the pair belong to the same instance (positive) or not (negative). For the noisy correspondence case, it defines that an unknown portion of $\\mathcal { D }$ is mismatched, i.e., $( I _ { i } , T _ { i } )$ is a negative pair but wrongly labeled as $y _ { i } = 1$ . To solve such a noisy correspondence problem, we propose NCR to achieve robust cross-modal matching. ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
173,
|
| 364 |
+
684,
|
| 365 |
+
825,
|
| 366 |
+
768
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "To begin, we project the visual and textual modalities into a shared space via two modal-specific networks $f$ and $g$ , respectively. Then the similarity of the given image-text pairs is computed through $S ( f ( I ) , g ( T ) )$ . For simplicity, we denote $S ( f ( \\dot { I } ) , g ( T ) )$ as $S ( I , T )$ in the following. Some early empirical studies [3] show that DNNs tend to first learn simple samples and then gradually fit the noisy samples. This so-called memorization effect of DNNs will lead to a relatively low loss for the clean samples. Motivated by this, we utilize the difference of loss distribution between the clean samples and noisy samples to divide the training data like [10, 43, 2, 20]. Specifically, given a matching model $( \\bar { f } , g , \\bar { S } )$ , we compute the per-sample loss through: ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
173,
|
| 375 |
+
773,
|
| 376 |
+
825,
|
| 377 |
+
886
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "equation",
|
| 383 |
+
"img_path": "images/6fc5284745d0ad1346714b29253da56ab6a8e8fa66ab3747454a6042d2257c71.jpg",
|
| 384 |
+
"text": "$$\n\\ell _ { ( f , g , S ) } = \\{ \\ell _ { i } \\} _ { i = 1 } ^ { N } = \\{ L _ { w } ( I _ { i } , T _ { i } ) \\} _ { i = 1 } ^ { N }\n$$",
|
| 385 |
+
"text_format": "latex",
|
| 386 |
+
"bbox": [
|
| 387 |
+
370,
|
| 388 |
+
893,
|
| 389 |
+
625,
|
| 390 |
+
914
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "where $L _ { w }$ is defined as: ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
92,
|
| 400 |
+
331,
|
| 401 |
+
106
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "equation",
|
| 407 |
+
"img_path": "images/3ee3df26f574057fe0d6067ba99e575d516cb6ef402949d4cdaccedc8036cc87.jpg",
|
| 408 |
+
"text": "$$\nL _ { w } ( I , T ) = \\sum _ { \\hat { T } } [ \\alpha - S ( I , T ) + S ( I , \\hat { T } ) ] _ { + } + \\sum _ { \\hat { I } } [ \\alpha - S ( I , T ) + S ( \\hat { I } , T ) ] _ { + } ,\n$$",
|
| 409 |
+
"text_format": "latex",
|
| 410 |
+
"bbox": [
|
| 411 |
+
246,
|
| 412 |
+
108,
|
| 413 |
+
750,
|
| 414 |
+
145
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 4
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "where $( I , T )$ is a positive pair, $\\alpha > 0$ denotes a given margin, and $[ x ] _ { + } = m a x ( x , 0 )$ . In the loss, the first term treats $I$ as queries taking over all negative text $\\hat { T }$ , while the second term treats $T$ as queries taking over all negative images $\\hat { I }$ . Then, we fit the per-sample loss of all training data by using a two-component Gaussian Mixture Model [20, 30]: ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
148,
|
| 424 |
+
825,
|
| 425 |
+
210
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 4
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "equation",
|
| 431 |
+
"img_path": "images/3b664f0344f0c21be2caace0bac7efb85763fbbc8bd31b5bf4a18615525f996b.jpg",
|
| 432 |
+
"text": "$$\np ( \\ell | \\theta ) = \\sum _ { k = 1 } ^ { K } \\beta _ { k } \\phi ( \\ell | k ) ,\n$$",
|
| 433 |
+
"text_format": "latex",
|
| 434 |
+
"bbox": [
|
| 435 |
+
419,
|
| 436 |
+
213,
|
| 437 |
+
576,
|
| 438 |
+
257
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "where $\\beta _ { k }$ and $\\phi ( \\ell | k )$ are the mixture coefficient and the probability density of the $k$ -th component, respectively. Based on the memorization effect of DNNs, we treat the component with a lower mean value (i.e., lower loss) as the clean set, and the other as the noisy set. To optimize the GMM, we adopt the Expectation-Maximization algorithm. Moreover, we compute the posterior probability $w _ { i } \\stackrel { - } { = } p ( k | \\ell _ { i } ) ^ { - } = p ( k ) p ( \\ell _ { i } | k ) / p ( \\ell _ { i } )$ as the clean probability of $i$ -th sample, where $k$ is the Gaussian component with the lower mean. By setting a threshold to $\\{ w _ { i } \\} _ { i = 1 } ^ { N }$ , we divide the data into clean and noisy subsets. For simplicity, we set the threshold to 0.5 through all experiments. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
261,
|
| 448 |
+
825,
|
| 449 |
+
359
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "As observed in [10], it probably introduces error accumulation if the neural network is trained in a self-divide manner. To avoid such a situation, we adopt the co-teaching paradigm. Specifically, we individually train two networks $A = \\{ f ^ { A } , g ^ { A } , S ^ { A } \\}$ and $B = \\{ f ^ { B } , \\bar { g } ^ { B } , S ^ { \\bar { B } } \\}$ with different initializations and batch sequences. At each epoch, the network $A$ or $B$ will model its per-sample loss distribution with a GMM and divide the dataset into clean and noisy subsets which are then used for training the other network, i.e., co-divide. Note that, before co-divide, a warmup process is conducted on all training data to achieve initial convergence with $L _ { w }$ as defined in Eq. 2. ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
173,
|
| 458 |
+
364,
|
| 459 |
+
825,
|
| 460 |
+
463
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "3.2 Co-Rectify ",
|
| 467 |
+
"text_level": 1,
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
477,
|
| 471 |
+
287,
|
| 472 |
+
492
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "For either of A and B, the data $\\mathcal { D }$ will be divided into the clean subset $\\boldsymbol { \\mathcal { S } } _ { c } = \\{ ( \\boldsymbol { I } _ { i } ^ { c } , \\boldsymbol { T } _ { i } ^ { c } , y _ { i } ^ { c } , w _ { i } ) \\} _ { i = 1 } ^ { N _ { c } }$ and noisy subset $\\boldsymbol { \\mathcal { S } } _ { n } = \\{ I _ { i } ^ { n } , T _ { i } ^ { n } \\} _ { i = 1 } ^ { N _ { n } }$ . Then, the co-rectify module will correct the labels to recall the possible true positives from $S _ { n }$ and eliminate the negative impact of the possible false positives in . Formally, the network $k$ $( k \\in \\{ A , B \\} )$ will rectify the labels of $\\{ S _ { c } , S _ { n } \\}$ into $\\{ \\hat { \\cal S } _ { c } , \\hat { \\cal S } _ { n } \\}$ for training itself. The rectified labels are determined by: ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
173,
|
| 481 |
+
502,
|
| 482 |
+
826,
|
| 483 |
+
579
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 4
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "equation",
|
| 489 |
+
"img_path": "images/4e3b5a31990709244ff49efc174e8e2f4deeb4362d006d1e7b51bcade2efc57a.jpg",
|
| 490 |
+
"text": "$$\n\\left\\{ \\begin{array} { l r } { \\hat { y } _ { i } ^ { c } = w _ { i } y _ { i } ^ { c } + ( 1 - w _ { i } ) P ^ { k } ( I _ { i } ^ { c } , T _ { i } ^ { c } ) , \\qquad } & { \\forall ( I _ { i } ^ { c } , T _ { i } ^ { c } , y _ { i } ^ { c } , w _ { i } ^ { c } ) \\in \\mathcal { S } _ { c } } \\\\ { \\hat { y } _ { i } ^ { n } = ( P ^ { A } ( I _ { i } ^ { n } , T _ { i } ^ { n } ) + P ^ { B } ( I _ { i } ^ { n } , T _ { i } ^ { n } ) ) / 2 , } & { \\forall ( I _ { i } ^ { n } , T _ { i } ^ { n } ) \\in \\mathcal { S } _ { n } } \\end{array} \\right.\n$$",
|
| 491 |
+
"text_format": "latex",
|
| 492 |
+
"bbox": [
|
| 493 |
+
279,
|
| 494 |
+
583,
|
| 495 |
+
717,
|
| 496 |
+
626
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "where $P ^ { A } ( I , T ) / P ^ { B } ( I , T )$ denotes the predictions given by the network $A / B$ . The roles of Eq. 4 are as below. On the one hand, as most pairs of $ { \\boldsymbol { S } } _ { c }$ are true positive, Eq. 4 will use the original labels $y _ { i } ^ { c }$ together with the model’s prediction $P ( I _ { i } ^ { c } , T _ { i } ^ { c } )$ to rectify the correspondence. On the other hand, as most pairs of $S _ { n }$ are false positive, Eq. 4 will discard the original labels and rectify the labels by averaging the predictions $P ( I _ { i } ^ { n } , T _ { i } ^ { n } )$ from the networks A and B. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
628,
|
| 506 |
+
826,
|
| 507 |
+
700
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "Another key contribution of Eq. 4 is designing the prediction function $P ( I , T )$ that could accurately predict whether the given pairs are positive or negative. Unlike the tasks like classification, image-text matching aims at computing the similarity rather than predicting the label of given image-text pairs. To this end, a straightforward approach is to predict the pairs by setting a threshold on the similarity. However, such a method requires to specify the threshold value, which is a daunting task because the optimal value is actually the similarity boundary of positive and negative pairs and hard to be manually specified. Alternatively, the following adaptive prediction function $P ( I , T )$ is proposed, which could work in a data-driven way, ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
705,
|
| 517 |
+
826,
|
| 518 |
+
818
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "equation",
|
| 524 |
+
"img_path": "images/cf5164f6601aaf7e50d5373e1f70a6f56e186d9be31bcbf054a80a164bbeb171.jpg",
|
| 525 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle P ( \\boldsymbol { I } , \\boldsymbol { T } ) = \\Theta ( s ) / \\tau } \\\\ { \\displaystyle s = S ( I , T ) - ( \\frac { 1 } { b } \\sum _ { \\hat { T } } S ( I , \\hat { T } ) + \\frac { 1 } { b } \\sum _ { \\hat { I } } S ( \\hat { I } , T ) ) / 2 , } \\end{array}\n$$",
|
| 526 |
+
"text_format": "latex",
|
| 527 |
+
"bbox": [
|
| 528 |
+
303,
|
| 529 |
+
819,
|
| 530 |
+
691,
|
| 531 |
+
880
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "where $b$ is the batch size, $\\Theta ( \\cdot )$ clamps the elements into the range of $[ 0 , \\alpha ]$ , $s$ is the similarity margin between the given pair $( I , T )$ to the mean of the negatives in a mini-batch, $\\tau$ is the average similarity ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
173,
|
| 540 |
+
882,
|
| 541 |
+
821,
|
| 542 |
+
912
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "margin of the largest $1 0 \\%$ pairs in terms of $s$ . This implies that the data have at least $1 0 \\%$ clean pairs which could be regarded as a similarity anchor for prediction. Intuitively, the pairs with the similarity margin larger than $\\tau$ would be predicted as 1, otherwise $[ 0 , 1 )$ . ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
90,
|
| 552 |
+
825,
|
| 553 |
+
133
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "Algorithm 1: Noisy Correspondence Rectifier ",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
176,
|
| 563 |
+
154,
|
| 564 |
+
478,
|
| 565 |
+
167
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 5
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "table",
|
| 571 |
+
"img_path": "images/5594c7893fc3111e104dd235ec8d9a648eb8693d4b754bb39fa6af022f171953.jpg",
|
| 572 |
+
"table_caption": [],
|
| 573 |
+
"table_footnote": [
|
| 574 |
+
"Result: Matching models $( A , B )$ "
|
| 575 |
+
],
|
| 576 |
+
"table_body": "<table><tr><td>Input: A given training data D, matching models A = (fA,gA, SA) and B = (fB,gB,SB)</td></tr><tr><td>Warmup the model (A,B) using Lw· 2 forn=1:num_epoch do</td></tr><tr><td></td></tr><tr><td>3 ←GMM(D,B)</td></tr><tr><td>4 ← GMM(D,A) 5 for k={A,Bj do</td></tr><tr><td>Sk={(Ii,Ti,yi,Wi)lwi ≥0.5,∀(Ii,Ti,yi,Wi) ∈(D,Wk)} 6</td></tr><tr><td>S={(Ii,Ti)|ui<0.5,∀(Ii,Ti) ∈(D,W)} 7</td></tr><tr><td>8 for j=num_steps do</td></tr><tr><td>9 Sample a mini-batch (B,Bη) from(Sk, S𝑘);</td></tr><tr><td>Rectify the labels of (Bj, Bγ) into (Bg, B) using Eq. 4-5; 10</td></tr><tr><td>Train the network k on (B, Bη) by optimizing Lsoft. 11</td></tr></table>",
|
| 577 |
+
"bbox": [
|
| 578 |
+
158,
|
| 579 |
+
170,
|
| 580 |
+
799,
|
| 581 |
+
357
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "3.3 Robust Cross-modal Matching ",
|
| 588 |
+
"text_level": 1,
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
402,
|
| 592 |
+
426,
|
| 593 |
+
417
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "Exiting cross-modal matching methods can only handle the binary labels which are incompatible with the soft labels rectified by NCR. To achieve robust image-text matching, we propose a novel triplet loss $\\scriptstyle { L _ { s o f t } }$ by recasting the rectified labels as the soft margin. Mathematically, ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
174,
|
| 602 |
+
428,
|
| 603 |
+
825,
|
| 604 |
+
470
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "equation",
|
| 610 |
+
"img_path": "images/b89b0624abfbe280229b638d5dd7358f01553e7b11c483fbe264ed86470ec138.jpg",
|
| 611 |
+
"text": "$$\nL _ { s o f t } ( I _ { i } , T _ { i } ) = [ \\hat { \\alpha } _ { i } - S ( I _ { i } , T _ { i } ) + S ( I _ { i } , \\hat { T } _ { h } ) ] _ { + } + [ \\hat { \\alpha } _ { i } - S ( I _ { i } , T _ { i } ) + S ( \\hat { I } _ { h } , T _ { i } ) ] _ { + } ,\n$$",
|
| 612 |
+
"text_format": "latex",
|
| 613 |
+
"bbox": [
|
| 614 |
+
236,
|
| 615 |
+
477,
|
| 616 |
+
761,
|
| 617 |
+
497
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 5
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "where $\\hat { I } _ { h } = \\mathrm { a r g m a x } _ { I _ { j } \\ne I _ { i } } S ( I _ { j } , T _ { i } )$ and $\\hat { T } _ { h } = \\mathrm { a r g m a x } _ { T _ { j } \\neq T _ { i } } S ( I _ { i } , T _ { j } )$ are the most similar negatives in the mini-batch for a given positive pair $( I _ { i } , T _ { i } )$ similar to ${ \\mathrm { V S E } } { + } { + }$ [8]. The soft margin $\\hat { \\alpha } _ { i }$ is adaptively determined by: ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
505,
|
| 627 |
+
825,
|
| 628 |
+
551
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "equation",
|
| 634 |
+
"img_path": "images/a876de5ed3ec8e6b239cb30ae499449cd6fc1e4190ca088b63be19780b097d3d.jpg",
|
| 635 |
+
"text": "$$\n\\hat { \\alpha } _ { i } = \\frac { m ^ { \\hat { y } _ { i } } - 1 } { m - 1 } \\alpha ,\n$$",
|
| 636 |
+
"text_format": "latex",
|
| 637 |
+
"bbox": [
|
| 638 |
+
441,
|
| 639 |
+
550,
|
| 640 |
+
555,
|
| 641 |
+
583
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 5
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "where $m$ is the curve parameter, and $\\hat { y } _ { i }$ is the rectified label. The above formulation is designed to achieve the following goal, i.e., $\\hat { \\alpha } _ { i }$ will be assigned a small value if $\\hat { y } _ { i }$ is close to 0, and a large value otherwise. Thanks to Eq. 6–7, the similarity of the pair $( I , T )$ will be larger than that of the negatives by an adaptive margin $\\hat { \\alpha } _ { i }$ . ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
585,
|
| 651 |
+
825,
|
| 652 |
+
641
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 5
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Despite the adaptive margin, another major difference between $L _ { w }$ and $L _ { s o f t }$ is that $L _ { s o f t }$ will use the hard negatives which are the most similar negative pairs. Although the hard negatives are helpful in improving the performance, $L _ { w }$ cannot be beneficial from it due to the existence of noisy correspondence. Specifically, it is expected that only the similarity of the true positives is larger than that of the hard negatives. However, in the case of noisy correspondence, the similarity of the false positives will also be larger than that of the hard negatives, thus leading to the unavailability of the hard negatives for $L _ { w }$ during the co-divide stage. The detail of NCR is presented in Algorithm. 1. ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
173,
|
| 661 |
+
647,
|
| 662 |
+
825,
|
| 663 |
+
746
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 5
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "3.4 Discussions on Matching Loss ",
|
| 670 |
+
"text_level": 1,
|
| 671 |
+
"bbox": [
|
| 672 |
+
176,
|
| 673 |
+
761,
|
| 674 |
+
419,
|
| 675 |
+
776
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 5
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "To achieve robust cross-modal matching with the refined soft labels, we design a soft Triplet loss by recasting the labels into soft margins. Recently, there are some works have been proposed to handle the soft labels in the matching model. For example, Wray et al. [38] recast the soft similarity into binary labels by directly setting a threshold on the predicted similarity. Kim et al. [15] proposes a log-ratio matching loss with a regularization defined by the label distance ratio, which is computed by the continuous labels. Liu et al. [25] introduces the hubness problem in image-text matching and proposes to consider all samples in a mini-batch and weights them according to both local and global statistics. Wray et al. [38] recasts the soft similarity into binary labels by directly setting a threshold on the predicted similarity. Different from them, NCR proposes to recast the rectified soft labels into soft margins in the triplet loss by assigning large margins to the true positive pairs and small ones to the false positive pairs. As a result and more importantly, our loss is specifically designed to solve the noisy correspondence problem whereas existing ones are not. ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
174,
|
| 684 |
+
786,
|
| 685 |
+
825,
|
| 686 |
+
911
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 5
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "",
|
| 693 |
+
"bbox": [
|
| 694 |
+
174,
|
| 695 |
+
92,
|
| 696 |
+
823,
|
| 697 |
+
133
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "4 Experiment ",
|
| 704 |
+
"text_level": 1,
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
154,
|
| 708 |
+
303,
|
| 709 |
+
171
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 6
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "In this section, we carry out experiments to verify the effectiveness of NCR in robust image-text matching. In the experiments, we use three benchmark datasets including Flickr30K [42], MS-COCO [23], and Conceptual Captions [35]. Among them, Conceptual Captions is with real noisy correspondence from the wild, and Flickr30K and MS-COCO are with simulated noisy correspondence. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
174,
|
| 718 |
+
185,
|
| 719 |
+
826,
|
| 720 |
+
241
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "4.1 Datasets and Performance Measurements ",
|
| 727 |
+
"text_level": 1,
|
| 728 |
+
"bbox": [
|
| 729 |
+
173,
|
| 730 |
+
258,
|
| 731 |
+
501,
|
| 732 |
+
273
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 6
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "Three datasets are used in our experiments. To be specific, Flickr30K contains 31,000 images collected from the Flickr website with five captions each. Following [19], we use 1,000 images for validation, 1,000 images for testing, and the rest for training. MS-COCO contains 123,287 images with five captions each. We follow the data partition in [19] which consists of 113,287 training images, 5,000 validation images, and 5,000 test images. As Flickr30K and MS-COCO are well annotated, we simulate the noisy correspondence by randomly shuffling the captions of training images for a specific percentage, denoted by noise ratio. Conceptual Captions is a large-scale data consisting of 3.3M images with a single caption each. As this data set is harvested from the Internet, about $3 \\% \\sim 2 0 \\%$ correspondences are incorrect [35]. In our experiments, we use a subset of Conceptual Captions for evaluation, named CC152K. Specifically, we randomly select 150,000 samples from the training split for training, 1,000 samples from the validation split for validation, and 1,000 samples from the validation split for testing. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
285,
|
| 742 |
+
825,
|
| 743 |
+
452
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 6
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "Following [19], for all images, we take the Faster-RCNN [33] detector provided by [1] to extract the top 36 region proposals of which each is encoded as a 2048-dimensional feature. For evaluation, we take the recall at K $. ( \\mathbb { R } ^ { \\ @ \\mathbb { K } ) }$ as the measurement. In short, ${ \\mathrm { R @ K } }$ is the fraction of queries for which the correct item is retrieved in the closest K points to the query. In the experiments, we report $\\mathbf { R } \\ @ 1$ , $\\mathbf { R } @ 5$ , and $\\mathbb { R } \\ @ 1 0$ for a comprehensive evaluation. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
174,
|
| 752 |
+
457,
|
| 753 |
+
825,
|
| 754 |
+
526
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "4.2 Implementation Details ",
|
| 761 |
+
"text_level": 1,
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
545,
|
| 765 |
+
377,
|
| 766 |
+
559
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 6
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "NCR is a general framework which could enable almost all existing cross-modal matching methods robust against noisy correspondence. To verify the effectiveness of our framework, SGR [7] is chosen to guarantee the robustness because it is the state of the art in image-text matching. In brief, the image regions and words are projected into a shared embedding space through a full-connected layer $( i . e . , f )$ and a Bi-GRU [34] $( i . e . , g )$ , respectively. For the similarity function $S$ , it will compute the similarity between the given image and text by combining the local and global features with the help of a graph reasoning technique proposed in [18]. Due to the space limitation, we leave more details and results in the supplemental material. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
570,
|
| 776 |
+
825,
|
| 777 |
+
681
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "We train our network using the Adam optimizer [16] with the default parameters and a batch size of 128. For fair comparisons, the networks $f$ and $g$ are the same with SGR, i.e., the word embedding size is 300 and the joint embedding space size is 2048. In addition, we fix the margin $\\alpha = 0 . 2$ and $m = 1 0$ for the soft margin through the experiments. At the inference stage, we average the similarities predicted by network $A$ and $B$ for the retrieval evaluation. To avoid overfitting, we choose the best checkpoint in terms of the sum of the recalls on the validation set. ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
688,
|
| 787 |
+
825,
|
| 788 |
+
770
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "4.3 Comparisons with State of The Arts ",
|
| 795 |
+
"text_level": 1,
|
| 796 |
+
"bbox": [
|
| 797 |
+
176,
|
| 798 |
+
787,
|
| 799 |
+
464,
|
| 800 |
+
803
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 6
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "In this section, we conduct comparisons on the three datasets. The baselines include SCAN [19], VSRN [21], IMRAM [5], SGRAF, SGR and SAF [7]. For Flickr30K and MS-COCO, we report the results with three different noise ratios, i.e., $0 \\%$ , $20 \\%$ , and $50 \\%$ . In addition, we also report the results of SGR on the clean Flickr30K and MS-COCO by discarding the noisy pairs, denoted by SGR-C. Clearly, SGR-C is a quite strong baseline since the used data does not contain noisy correspondence. We do not report the results of SGRAF and SAF on the clean datasets since our framework only extends SGR in this paper. ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
174,
|
| 809 |
+
814,
|
| 810 |
+
825,
|
| 811 |
+
911
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 6
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "When the noise rate is $0 \\%$ , we directly refer to the results reported in the corresponding papers. For the noisy cases, we train the baseline models with the recommended settings three times and report the best result. Note that for SGR, we found it is very sensitive to the noisy correspondence, as shown in Table. 2. To obtain a desirable result, we experimentally employ a pre-training process to SGR (denoted by ${ \\mathrm { S G R } } ^ { * }$ ), namely, training the model with the vanilla triplet loss without hard negatives and then following the standard pipeline of SGR. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
173,
|
| 820 |
+
90,
|
| 821 |
+
825,
|
| 822 |
+
174
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 7
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "table",
|
| 828 |
+
"img_path": "images/0d99bdf6fd685506496cedfd712a6e748c8990051ed511e94b16895f8834230e.jpg",
|
| 829 |
+
"table_caption": [
|
| 830 |
+
"Table 1: Image-Text Retrieval on Flickr30K and MS-COCO 1K. "
|
| 831 |
+
],
|
| 832 |
+
"table_footnote": [],
|
| 833 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\"></td><td colspan=\"5\">Flickr30K</td><td colspan=\"6\">MS-COCO</td></tr><tr><td colspan=\"3\">Image→Text</td><td colspan=\"3\">Text→Image</td><td colspan=\"2\">Image→Text</td><td colspan=\"3\">Text→Image</td></tr><tr><td>Noise</td><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1 R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td rowspan=\"7\">0%</td><td>SCAN</td><td>67.4</td><td>90.3</td><td>95.8</td><td>48.6</td><td>77.7</td><td>85.2</td><td>69.2 93.6</td><td>97.6</td><td>56.0</td><td>86.5</td><td>93.5</td></tr><tr><td>VSRN</td><td>71.3</td><td>90.6</td><td>96.0</td><td>54.7</td><td>81.8 88.2</td><td>76.2</td><td>94.8</td><td>98.2</td><td>62.8</td><td>89.7</td><td>95.1</td></tr><tr><td>IMRAM</td><td>74.1</td><td>93.0</td><td>96.6</td><td>53.9</td><td>79.4</td><td>87.2</td><td>76.7 95.6</td><td>98.5</td><td>61.7</td><td>89.1</td><td>95.0</td></tr><tr><td>SAF</td><td>73.7</td><td>93.3</td><td>96.3</td><td>56.1</td><td>81.5</td><td>88.0</td><td>76.1 95.4</td><td>98.3</td><td>61.8</td><td>89.4</td><td>95.3</td></tr><tr><td>SGR</td><td>75.2</td><td>93.3</td><td>96.6</td><td>56.2</td><td>81.0</td><td>86.5</td><td>78.0 95.8</td><td>98.2</td><td>61.4</td><td>89.3</td><td>95.4</td></tr><tr><td>SGRAF NCR</td><td>77.8</td><td>94.1</td><td>97.4</td><td>58.5</td><td>83.0</td><td>88.8</td><td>79.6 96.2</td><td>98.5</td><td>63.2</td><td>90.7</td><td>96.1</td></tr><tr><td></td><td>77.3</td><td>94.0</td><td>97.5</td><td>59.6</td><td>84.4</td><td>89.9</td><td>78.7 95.8</td><td>98.5</td><td>63.3</td><td>90.4</td><td>95.8</td></tr><tr><td rowspan=\"7\">20%</td><td>SCAN</td><td>59.1</td><td>83.4</td><td>90.4</td><td>36.6</td><td>67.0</td><td>77.5 78.2</td><td>66.2 25.1</td><td>91.0 96.4</td><td>45.0</td><td>80.2</td><td>89.3</td></tr><tr><td>VSRN IMRAM</td><td>58.1 63.0</td><td>82.6</td><td>89.3</td><td>40.7</td><td>68.7</td><td></td><td>59.0</td><td>74.8</td><td>17.6</td><td>49.0</td><td>64.1</td></tr><tr><td>SAF</td><td>51.0</td><td>86.0</td><td>91.3</td><td>41.4</td><td>71.2</td><td>80.5 68.6</td><td>92.8</td><td>97.6</td><td>55.7</td><td>85.0</td><td>91.0</td></tr><tr><td>SGR*</td><td>62.8</td><td>79.3</td><td>88.0</td><td>38.3</td><td>66.5</td><td>76.2</td><td>67.3 92.5 91.7</td><td>96.6 96.2</td><td>53.4 52.9</td><td>84.5</td><td>92.4</td></tr><tr><td>SGR-C</td><td>72.8</td><td>86.2 90.8</td><td>92.2 95.4</td><td>44.4 56.4</td><td>72.3</td><td>80.4</td><td>67.8</td><td></td><td></td><td>83.5</td><td>90.1</td></tr><tr><td>NCR</td><td>75.0</td><td>93.9</td><td>97.5</td><td></td><td>82.1</td><td>88.6</td><td>75.4 95.2</td><td>97.9</td><td>60.1</td><td>88.5 89.3</td><td>94.8</td></tr><tr><td></td><td></td><td></td><td></td><td>58.3</td><td>83.0</td><td>89.0</td><td>77.7</td><td>95.5</td><td>98.2</td><td>62.5</td><td></td><td>95.3 21.0</td></tr><tr><td rowspan=\"7\">50%</td><td>SCAN</td><td>27.7</td><td>57.6</td><td>68.8</td><td>16.2</td><td>39.3</td><td>49.8</td><td>40.8</td><td>73.5 84.9</td><td>5.4</td><td></td><td>15.1</td></tr><tr><td>VSRN</td><td>14.3</td><td>37.6</td><td>50.0</td><td>12.1</td><td>30.0</td><td>39.4</td><td>23.5 54.7</td><td>69.3</td><td>16.0</td><td>47.8</td><td>65.9</td></tr><tr><td>IMRAM</td><td>9.1</td><td>26.6</td><td>38.2</td><td>2.7</td><td>8.4</td><td>12.7</td><td>21.3 60.2</td><td>75.9</td><td>22.3</td><td>52.8</td><td>64.3</td></tr><tr><td>SAF</td><td>30.3</td><td>63.6</td><td>75.4</td><td>27.9</td><td>53.7</td><td>65.1</td><td>30.4 67.8</td><td>82.3</td><td>33.5</td><td>69.0</td><td>82.8</td></tr><tr><td>SGR*</td><td>36.9</td><td>68.1</td><td>80.2</td><td>29.3</td><td>56.2</td><td>67.0</td><td>60.6 87.4</td><td>93.6</td><td>46.0</td><td>74.2</td><td>79.0</td></tr><tr><td>SGR-C</td><td>69.8</td><td>90.3</td><td>94.8</td><td>50.1</td><td>77.5</td><td>85.2</td><td>71.7 94.1</td><td>97.7</td><td>57.0</td><td>86.6</td><td>93.7</td></tr><tr><td>NCR</td><td>72.9</td><td>93.0</td><td>96.3</td><td>54.3</td><td>79.8</td><td>86.5</td><td>74.6</td><td>94.6</td><td>97.8 59.1</td><td>87.8</td><td>94.5</td></tr></table>",
|
| 834 |
+
"bbox": [
|
| 835 |
+
176,
|
| 836 |
+
200,
|
| 837 |
+
823,
|
| 838 |
+
477
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 7
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Results on Flickr30K & MS-COCO. Table 1 shows the quantitative results on Flickr30K and MS-COCO. Note that for MS-COCO, we only report the results by averaging over 5 folds of 1K test images due to space limitation, and leave the results on the full 5K test images in the supplemental material. From the results, one could observe that NCR is competitive to SGRAF in the noisefree case, namely, NCR could achieve state-of-the-art performance even though it is proposed to achieve robustness. When the data is contaminated by the noisy correspondence, NCR remarkably outperforms all the baselines by a large margin. Even comparing with SGR-C which is trained on the clean data, NCR improves $\\mathbb { R } \\ @ 1$ by $2 . 2 \\%$ , $3 . 1 \\%$ , $2 . 3 \\%$ , and $2 . 9 \\%$ in these four valuations. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
173,
|
| 847 |
+
484,
|
| 848 |
+
825,
|
| 849 |
+
597
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 7
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Results on CC152K. Table 2 shows the quantitative results on the CC152K which is with real noisy correspondences. From the results, one could see that our NCR consistently outperforms the evaluated models by a considerable margin in terms of all metrics. Specifically, NCR is $4 . 5 \\%$ and $5 . 4 \\%$ higher than the best baseline in terms of $\\mathbf { R } \\ @ 1$ in text and image retrieval, respectively. Moreover, the large performance gap between SGR and $\\operatorname { S G R } ^ { * }$ shows the noise sensitivity of the original SGR. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
602,
|
| 859 |
+
825,
|
| 860 |
+
671
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 7
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "table",
|
| 866 |
+
"img_path": "images/ee4da61e843468259b8e4aa2049d759bd9f314376e9352e94ed997753b97cea1.jpg",
|
| 867 |
+
"table_caption": [
|
| 868 |
+
"Table 2: Image-Text Retrieval on CC152K. "
|
| 869 |
+
],
|
| 870 |
+
"table_footnote": [],
|
| 871 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Image→ Text</td><td colspan=\"3\">Text→Image</td></tr><tr><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>SCAN (ECCV'18)</td><td>30.5</td><td>55.3</td><td>65.3</td><td>26.9</td><td>53.0</td><td>64.7</td></tr><tr><td>VSRN (ICCV'19)</td><td>32.6</td><td>61.3</td><td>70.5</td><td>32.5</td><td>59.4</td><td>70.4</td></tr><tr><td>IMRAM (CVPR'20)</td><td>33.1</td><td>57.6</td><td>68.1</td><td>29.0</td><td>56.8</td><td>67.4</td></tr><tr><td>SAF (AAAI'21)</td><td>31.7</td><td>59.3</td><td>68.2</td><td>31.9</td><td>59.0</td><td>67.9</td></tr><tr><td>SGR (AAAI'21)</td><td>11.3</td><td>29.7</td><td>39.6</td><td>13.1</td><td>30.1</td><td>41.6</td></tr><tr><td>SGR* (AAAI'21)</td><td>35.0</td><td>63.4</td><td>73.3</td><td>34.9</td><td>63.0</td><td>72.8</td></tr><tr><td>NCR</td><td>39.5</td><td>64.5</td><td>73.5</td><td>40.3</td><td>64.6</td><td>73.2</td></tr></table>",
|
| 872 |
+
"bbox": [
|
| 873 |
+
250,
|
| 874 |
+
698,
|
| 875 |
+
748,
|
| 876 |
+
839
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 7
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "4.4 Comparison to pre-trained model ",
|
| 883 |
+
"text_level": 1,
|
| 884 |
+
"bbox": [
|
| 885 |
+
174,
|
| 886 |
+
857,
|
| 887 |
+
446,
|
| 888 |
+
872
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 7
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "In this section, we perform comparison to the large pre-trained model CLIP [31]. In brief, CLIP is trained on a massive dataset harvested from the Internet and thus presumably has a lot of noisy image-text pairs. Such a comparison is helpful in understanding, big data based model (CLIP) or noisy correspondence modeling technique (NCR), which one is more favorable to handle the mismatching problem. More specifically, CLIP claims that using hundreds of million data could ignore the existence of possible noise, while we believe that a well-designed algorithm is essential to solve the noisy correspondence. Noticed, although some existing works including CLIP have slightly/indirectly realized the existence of the noise, NONE of them explicitly give a solution to solve this problem and explores the characteristics of the noise correspondence. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
883,
|
| 898 |
+
821,
|
| 899 |
+
911
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 7
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
90,
|
| 909 |
+
825,
|
| 910 |
+
188
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 8
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "In the experiments, we conduct CLIP on the MS-COCO dataset under the following two settings, i.e., Zero-shot and Fine-tune. In brief, the first setting directly uses the released pre-trained CLIP to perform inference on MS-COCO, and the second fine-tunes the pre-trained model using the noisy training data of MS-COCO. As CLIP only released some pre-trained models and inference code 3, we use the non-official code 4 to fine-tune the model with 32 epochs for the fine-tune setting. Note that CLIP (ViT-L/14†) is unreleased and we report the results from the original paper [31]. One could observe that, although CLIP utilizes 400 million image-text pairs for pre-training, its performance inevitably degenerates during fine-tuning. In contrast, NCR achieves the matching performance with the presence of noisy correspondence, indicating the necessity of algorithm design. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
173,
|
| 919 |
+
194,
|
| 920 |
+
825,
|
| 921 |
+
319
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "table",
|
| 927 |
+
"img_path": "images/4917d0b351b31f4228103f7f7cdef5414b86ca797b9f66407b7c2675314e7610.jpg",
|
| 928 |
+
"table_caption": [
|
| 929 |
+
"Table 3: Comparison with CLIP on MS-COCO 5K. "
|
| 930 |
+
],
|
| 931 |
+
"table_footnote": [],
|
| 932 |
+
"table_body": "<table><tr><td></td><td></td><td colspan=\"3\">Image→ Text</td><td colspan=\"3\">Text→Image</td></tr><tr><td>Noise Ratio</td><td>Methods</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td rowspan=\"2\">0%, Zero-Shot</td><td>CLIP (ViT-L/14+)</td><td>58.4</td><td>81.5</td><td>88.1</td><td>37.8</td><td>62.4</td><td>72.2</td></tr><tr><td>CLIP (ViT-B/32)</td><td>50.2</td><td>74.6</td><td>83.6</td><td>30.4</td><td>56.0</td><td>66.8</td></tr><tr><td rowspan=\"2\">20%,Fine-tune</td><td>NCR</td><td>58.2</td><td>84.2</td><td>91.5</td><td>41.7</td><td>71.0</td><td>81.3</td></tr><tr><td>CLIP (ViT-B/32) NCR</td><td>21.4 56.9</td><td>49.6 83.6</td><td>63.3 91.0</td><td>14.8 40.6</td><td>37.6 69.8</td><td>49.6 80.1</td></tr><tr><td rowspan=\"2\">50%, Fine-tune</td><td>CLIP (ViT-B/32)</td><td>10.9</td><td>27.8</td><td>38.3</td><td>7.8</td><td>19.5</td><td></td></tr><tr><td>NCR</td><td>53.1</td><td>80.7</td><td>88.5</td><td>37.9</td><td>66.6</td><td>26.8 77.8</td></tr></table>",
|
| 933 |
+
"bbox": [
|
| 934 |
+
199,
|
| 935 |
+
361,
|
| 936 |
+
799,
|
| 937 |
+
515
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "4.5 Experimental Analysis ",
|
| 944 |
+
"text_level": 1,
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
535,
|
| 948 |
+
370,
|
| 949 |
+
551
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 8
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "In this section, we first conduct experiments to show the robustness and generalizability of the proposed method. Then, we investigate the effect of co-divide and co-rectify with the visualization results. After that, we carry out the ablation study to verify different components of NCR. Finally, we visually demonstrate some noisy cases detected by NCR. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
560,
|
| 959 |
+
825,
|
| 960 |
+
616
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "4.5.1 Study on Robustness and Generalizability ",
|
| 967 |
+
"text_level": 1,
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
631,
|
| 971 |
+
516,
|
| 972 |
+
646
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 8
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "To show the robustness of NCR, we conduct experiments on Flickr30K by increasing the noise ratio from $0 \\%$ to $6 0 \\%$ with an interval of $1 0 \\%$ . In addition, to verify the generalizability of NCR to other image-text matching methods, we extend SCAN [19] by NCR, denoted by NCR-SCAN. Fig. 4 shows that NCR and NCR-SCAN perform more stable than SGR and SCAN with increasing noise ratio. Moreover, NCR (NCR-SCAN) is remarkably superior to SGR (SCAN) in all tests, which shows the generalizability of NCR. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
655,
|
| 982 |
+
825,
|
| 983 |
+
738
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "4.5.2 Visualization on the Co-divide and Co-rectify ",
|
| 990 |
+
"text_level": 1,
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
752,
|
| 994 |
+
539,
|
| 995 |
+
768
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 8
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "To further investigate the influence of the co-divide and co-rectify modules in our method, we carry out experiments on the Flickr30K dataset by visualizing the per-sample loss distribution and the model predictions on the noisy data, where the noisy ratio is $20 \\%$ . For better visualization, here we show the result of NCR-SCAN and leave the result of NCR in the supplemental material. As shown in Fig. 3(b), the loss of most noisy samples is larger than the clean loss, which verifies the memorization effect of DNNs. By fitting the per-sample loss with GMM, NCR could effectively divide the data into clean and noisy splits. Regarding the analysis on the co-rectify, Fig. 3(c) shows that the rectified soft labels of most clean pairs range into [0.3, 1] and those of most noisy pairs range into [0, 0.5]. In other words, one could enforce the similarity of true positives larger than that of the negatives during training, thus eliminating the negative impact of the noisy correspondence. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
173,
|
| 1004 |
+
776,
|
| 1005 |
+
825,
|
| 1006 |
+
875
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "image",
|
| 1012 |
+
"img_path": "images/0503d947414e2b32158fb766cbf1a3b87cabce246d93f4abb1f73ad11d4aa0c3.jpg",
|
| 1013 |
+
"image_caption": [
|
| 1014 |
+
"Figure 3: (a) Retrieval performance of NCR and NCR-SCAN on Flickr30K with varying noise ratio. (b) Per-sample loss distribution and GMM fitting visualization after warmup. (c) Model predictions on the noisy subset. "
|
| 1015 |
+
],
|
| 1016 |
+
"image_footnote": [],
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
187,
|
| 1019 |
+
79,
|
| 1020 |
+
812,
|
| 1021 |
+
213
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 9
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
284,
|
| 1031 |
+
825,
|
| 1032 |
+
327
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 9
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "4.5.3 Ablation Study ",
|
| 1039 |
+
"text_level": 1,
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
174,
|
| 1042 |
+
344,
|
| 1043 |
+
331,
|
| 1044 |
+
359
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 9
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "In this section, we carry out the ablation study on the Flickr30K with the noise ratio of $50 \\%$ . As shown in Table 4, all these three components are important to achieving encouraging results. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
368,
|
| 1054 |
+
823,
|
| 1055 |
+
398
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "table",
|
| 1061 |
+
"img_path": "images/fe7374156c5916db0ea3f6530f15940fb5c71d44d889dd8d48eeb9982fd8b3df.jpg",
|
| 1062 |
+
"table_caption": [
|
| 1063 |
+
"Table 4: Ablation studies on Flickr30K with $50 \\%$ noise. "
|
| 1064 |
+
],
|
| 1065 |
+
"table_footnote": [],
|
| 1066 |
+
"table_body": "<table><tr><td colspan=\"3\">Method</td><td colspan=\"3\">Image →Text</td><td colspan=\"3\">Text→Image</td></tr><tr><td>Co-divide</td><td>Co-rectify</td><td>Warmup</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>?</td><td>√</td><td><<></td><td>72.9</td><td>93.0</td><td>96.3</td><td>54.3</td><td>79.8</td><td>86.5</td></tr><tr><td></td><td></td><td></td><td>71.4</td><td>90.8</td><td>95.7</td><td>54.1</td><td>80.3</td><td>86.5</td></tr><tr><td></td><td>?</td><td></td><td>16.0</td><td>38.4</td><td>51.7</td><td>12.6</td><td>31.4</td><td>42.8</td></tr><tr><td>√</td><td></td><td></td><td>0.3</td><td>0.6</td><td>1.0</td><td>0.2</td><td>0.5</td><td>1.1</td></tr></table>",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
205,
|
| 1069 |
+
425,
|
| 1070 |
+
794,
|
| 1071 |
+
536
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "4.5.4 Noisy Samples ",
|
| 1078 |
+
"text_level": 1,
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
173,
|
| 1081 |
+
558,
|
| 1082 |
+
326,
|
| 1083 |
+
573
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Fig. 4 shows some noisy CC152K examples identified by NCR. As shown, the first four image-text pairs are completely unrelated, which will be successfully detected by NCR. For the last pair, it will also be detected as noisy correspondence even though the visual and textual modalities are correlated at a coarse-grained level, e.g., both the image and text involve “beach\". ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
582,
|
| 1093 |
+
825,
|
| 1094 |
+
638
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "image",
|
| 1100 |
+
"img_path": "images/c2ea469f89d768984f1c578d0e0317f6d920992f64f93e122eb3703e75d9c2da.jpg",
|
| 1101 |
+
"image_caption": [
|
| 1102 |
+
"Figure 4: Some noisy examples correctly divided by NCR. "
|
| 1103 |
+
],
|
| 1104 |
+
"image_footnote": [],
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
174,
|
| 1107 |
+
647,
|
| 1108 |
+
823,
|
| 1109 |
+
750
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 9
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "5 Conclusion ",
|
| 1116 |
+
"text_level": 1,
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
173,
|
| 1119 |
+
795,
|
| 1120 |
+
299,
|
| 1121 |
+
811
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 9
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "This paper could be the first attempt to study a new problem in cross-modal matching, i.e., the noisy correspondence which could be a potential new direction in noise label. To solve this problem in cross-modal matching, we propose rectifying the noisy correspondence by an adaptive prediction function and a novel triplet loss with a soft margin to achieve robust cross-modal matching. Extensive experiments verify the effectiveness of the proposed method in handling synthesized and real noisy correspondences. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
174,
|
| 1130 |
+
827,
|
| 1131 |
+
825,
|
| 1132 |
+
911
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 9
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Broader Impact Statement ",
|
| 1139 |
+
"text_level": 1,
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
176,
|
| 1142 |
+
89,
|
| 1143 |
+
398,
|
| 1144 |
+
106
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 10
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Cross-modal matching is a fundamental topic in multimodal learning, which could be applied to a wide range of applications including data retrieval, recommender systems, and vision-and-language understanding. This work could be one of the first works to aware of the importance and existence of the noisy correspondence problem in numerous applications. There are many benefits to solving the noisy correspondence problem, e.g., reducing the costs for manually annotating and aligning data; more data could be collected and used even though some of them are incorrectly aligned. Besides the benefits, it should pay attention on the potential negative impacts including but not limited to 1) The risk of automation bias [28] for decision making from the data bias, especially in aviation, health care, and autonomous vehicles. 2) The job loss caused by the NCR since it makes possibility to automatically correct the noisy correspondence, thus remarkably reducing the cost of human labor. We would encourage further work to understand and mitigate the above biases and risks. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
173,
|
| 1153 |
+
119,
|
| 1154 |
+
826,
|
| 1155 |
+
272
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 10
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Acknowledgements ",
|
| 1162 |
+
"text_level": 1,
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
176,
|
| 1165 |
+
291,
|
| 1166 |
+
338,
|
| 1167 |
+
309
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "The authors would thank to the anonymous reviewers whose valuable suggestions and constructive comments remarkably improve this work. This work was supported in part by the National Key R&D Program of China under Grant 2020AAA0104500; in part by the Key Research and Development Program of Sichuan Province under Grant 2019YFG0497; in part by NFSC under Grant U21B2040, 62176171, U19A2078, 61625204, and 61836006; in part by the Fund of Sichuan University Tomorrow Advancing Life. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
174,
|
| 1176 |
+
321,
|
| 1177 |
+
825,
|
| 1178 |
+
406
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 10
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "References ",
|
| 1185 |
+
"text_level": 1,
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
174,
|
| 1188 |
+
425,
|
| 1189 |
+
266,
|
| 1190 |
+
441
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 10
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "[1] Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6077–6086, 2018. \n[2] Eric Arazo, Diego Ortego, Paul Albert, Noel O’Connor, and Kevin McGuinness. Unsupervised label noise modeling and loss correction. In International Conference on Machine Learning, pages 312–321. PMLR, 2019. \n[3] Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. In International Conference on Machine Learning, pages 233–242. PMLR, 2017. \n[4] David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin Raffel. Mixmatch: A holistic approach to semi-supervised learning. arXiv preprint arXiv:1905.02249, 2019. \n[5] Hui Chen, Guiguang Ding, Xudong Liu, Zijia Lin, Ji Liu, and Jungong Han. Imram: Iterative matching with recurrent attention memory for cross-modal image-text retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12655–12663, 2020. \n[6] Sanghyuk Chun, Seong Joon Oh, Rafael Sampaio de Rezende, Yannis Kalantidis, and Diane Larlus. Probabilistic embeddings for cross-modal retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8415–8424, 2021. \n[7] Haiwen Diao, Ying Zhang, Lin Ma, and Huchuan Lu. Similarity reasoning and filtration for image-text matching. In AAAI, 2021. \n[8] Fartash Faghri, David J Fleet, Jamie Ryan Kiros, and Sanja Fidler. Vse++: Improving visualsemantic embeddings with hard negatives. arXiv preprint arXiv:1707.05612, 2017. \n[9] Dalu Guo, Chang Xu, and Dacheng Tao. Image-question-answer synergistic network for visual dialog. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10434–10443, 2019. \n[10] Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. arXiv preprint arXiv:1804.06872, 2018. \n[11] Yi Hao, Nannan Wang, Xinbo Gao, Jie Li, and Xiaoyu Wang. Dual-alignment feature embedding for cross-modality person re-identification. In Proceedings of the 27th ACM International Conference on Multimedia, pages 57–65, 2019. \n[12] Zhenyu Huang, Peng Hu, Joey Tianyi Zhou, Jiancheng Lv, and Xi Peng. Partially view-aligned clustering. In Proceedings of the 34th Conference on Neural Information Processing Systems, NeurIPS’2020, volume 33, Virtual-only Conference, Dec 2020. \n[13] Zhenyu Huang, Joey Tianyi Zhou, Hongyuan Zhu, Changqing Zhang, Jiancheng Lv, and Xi Peng. Deep spectral representation learning from multi-view data. IEEE Transactions on Image Processing, 30:5352–5362, 2021. \n[14] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021. \n[15] Sungyeon Kim, Minkyo Seo, Ivan Laptev, Minsu Cho, and Suha Kwak. Deep metric learning beyond binary supervision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2288–2297, 2019. \n[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \n[17] Ryan Kiros, Ruslan Salakhutdinov, and Richard S Zemel. Unifying visual-semantic embeddings with multimodal neural language models. arXiv preprint arXiv:1411.2539, 2014. \n[18] Zhanghui Kuang, Yiming Gao, Guanbin Li, Ping Luo, Yimin Chen, Liang Lin, and Wayne Zhang. Fashion retrieval via graph reasoning networks on a similarity pyramid. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3066–3075, 2019. \n[19] Kuang-Huei Lee, Xi Chen, Gang Hua, Houdong Hu, and Xiaodong He. Stacked cross attention for image-text matching. In Proceedings of the European Conference on Computer Vision (ECCV), pages 201–216, 2018. \n[20] Junnan Li, Richard Socher, and Steven CH Hoi. Dividemix: Learning with noisy labels as semi-supervised learning. arXiv preprint arXiv:2002.07394, 2020. \n[21] Kunpeng Li, Yulun Zhang, Kai Li, Yuanyuan Li, and Yun Fu. Visual semantic reasoning for image-text matching. In ICCV, 2019. \n[22] Sheng Li, Zhiqiang Tao, Kang Li, and Yun Fu. Visual to text: Survey of image and video captioning. IEEE Transactions on Emerging Topics in Computational Intelligence, 3(4):297– 312, 2019. \n[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. \n[24] Yijie Lin, Yuanbiao Gou, Zitao Liu, Boyun Li, Jiancheng Lv, and Xi Peng. Completer: Incomplete multi-view clustering via contrastive prediction. In CVPR, June 2021. \n[25] Fangyu Liu, Rongtian Ye, Xun Wang, and Shuaipeng Li. Hal: Improved text-image matching by mitigating visual semantic hubs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 11563–11571, 2020. \n[26] Risheng Liu, Jinyuan Liu, Zhiying Jiang, Xin Fan, and Zhongxuan Luo. A bilevel integrated model with data-driven layer ensemble for multi-modality image fusion. IEEE Transactions on Image Processing, 30:1261–1274, 2020. \n[27] Tongliang Liu and Dacheng Tao. Classification with noisy labels by importance reweighting. IEEE Transactions on pattern analysis and machine intelligence, 38(3):447–461, 2015. \n[28] Kathleen L Mosier, Linda J Skitka, Susan Heers, and Mark Burdick. Automation bias: Decision making and performance in high-tech cockpits. The International journal of aviation psychology, 8(1):47–63, 1998. \n[29] Xi Peng, Zhenyu Huang, Jiancheng Lv, Hongyuan Zhu, and Joey Tianyi Zhou. Comic: Multiview clustering without parameter selection. In International conference on machine learning, pages 5092–5101. PMLR, 2019. \n[30] Haim Permuter, Joseph Francos, and Ian Jermyn. A study of gaussian mixture models of color and texture features for image classification and segmentation. Pattern Recognition, 39(4):695–706, 2006. \n[31] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021. \n[32] Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. arXiv preprint arXiv:1412.6596, 2014. \n[33] Shaoqing Ren, Kaiming He, Ross B Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. \n[34] Mike Schuster and Kuldip K Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing, 45(11):2673–2681, 1997. \n[35] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, 2018. \n[36] Hwanjun Song, Minseok Kim, Dongmin Park, Yooju Shin, and Jae-Gil Lee. Learning from noisy labels with deep neural networks: A survey. arXiv preprint arXiv:2007.08199, 2020. \n[37] Liwei Wang, Yin Li, and Svetlana Lazebnik. Learning deep structure-preserving image-text embeddings. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5005–5013, 2016. \n[38] Michael Wray, Hazel Doughty, and Dima Damen. On semantic similarity in video retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3650–3660, 2021. \n[39] Xiaobo Xia, Tongliang Liu, Bo Han, Chen Gong, Nannan Wang, Zongyuan Ge, and Yi Chang. Robust early-learning: Hindering the memorization of noisy labels. In International Conference on Learning Representations, 2021. \n[40] Erkun Yang, Cheng Deng, Wei Liu, Xianglong Liu, Dacheng Tao, and Xinbo Gao. Pairwise relationship guided deep hashing for cross-modal retrieval. In proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. \n[41] Mouxing Yang, Yunfan Li, Zhenyu Huang, Zitao Liu, Peng Hu, and Xi Peng. Partially view-aligned representation learning with noise-robust contrastive loss. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1134–1143, 2021. \n[42] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014. \n[43] Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In International Conference on Machine Learning, pages 7164–7173. PMLR, 2019. \n[44] Zhou Zhao, Qifan Yang, Deng Cai, Xiaofei He, and Yueting Zhuang. Video question answering via hierarchical spatio-temporal attention networks. In IJCAI, pages 3518–3524, 2017. ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
178,
|
| 1199 |
+
446,
|
| 1200 |
+
826,
|
| 1201 |
+
911
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 10
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
171,
|
| 1210 |
+
46,
|
| 1211 |
+
828,
|
| 1212 |
+
916
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 11
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
169,
|
| 1221 |
+
58,
|
| 1222 |
+
828,
|
| 1223 |
+
916
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 12
|
| 1226 |
+
}
|
| 1227 |
+
]
|
parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S9ZyhWC17wJ/S9ZyhWC17wJ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SypU81Ole/SypU81Ole.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SAMPLING GENERATIVE NETWORKS
|
| 2 |
+
|
| 3 |
+
Tom White
|
| 4 |
+
School of Design
|
| 5 |
+
Victoria University of Wellington
|
| 6 |
+
Wellington, New Zealand
|
| 7 |
+
tom.white@vuw.ac.nz
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
We introduce several techniques for sampling and visualizing the latent spaces of generative models. Replacing linear interpolation with spherical linear interpolation prevents diverging from a model’s prior distribution and produces sharper samples. J-Diagrams and MINE grids are introduced as visualizations of manifolds created by analogies and nearest neighbors. We demonstrate two new techniques for deriving attribute vectors: bias-corrected vectors with data replication and synthetic vectors with data augmentation. Binary classification using attribute vectors is presented as a technique supporting quantitative analysis of the latent space. Most techniques are intended to be independent of model type and examples are shown on both Variational Autoencoders and Generative Adversarial Networks.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Generative models are a popular approach to unsupervised machine learning. Generative neural network models are trained to produce data samples that resemble the training set. Because the number of model parameters is significantly smaller than the training data, the models are forced to discover efficient data representations. These models are sampled from a set of latent variables in a high dimensional space, here called a latent space. Latent space can be sampled to generate observable data values. Learned latent representations often also allow semantic operations with vector space arithmetic (Figure 1).
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Schematic of the latent space of a generative model. In the general case, a generative model includes an encoder to map from the feature space (here images of faces) into a high dimensional latent space. Vector space arithmetic can be used in the latent space to perform semantic operations. The model also includes a decoder to map from the latent space back into the feature space, where the semantic operations can be observed. If the latent space transformation is the identity function we refer to the encoding and decoding as a reconstruction of the input through the model.
|
| 19 |
+
|
| 20 |
+
Generative models are often applied to datasets of images. Two popular generative models for image data are the Variational Autoencoder (VAE, Kingma & Welling, 2014) and the Generative Adversarial Network (GAN, Goodfellow et al., 2014). VAEs use the framework of probabilistic graphical models with an objective of maximizing a lower bound on the likelihood of the data. GANs instead formalize the training process as a competition between a generative network and a separate discriminative network. Though these two frameworks are very different, both construct high dimensional latent spaces that can be sampled to generate images resembling training set data. Moreover, these latent spaces are generally highly structured and can enable complex operations on the generated images by simple vector space arithmetic in the latent space (Larsen et al., 2016).
|
| 21 |
+
|
| 22 |
+
Generative models are beginning to find their way out of academia and into creative applications. In this paper we present techniques for improving the visual quality of generative models that are generally independent of the model itself. These include spherical linear interpolation, visualizing analogies with J-diagrams, and generating local manifolds with MINE grids. These techniques can be combined generate low dimensional embeddings of images close to the trained manifold. These can be used for visualization and creating realistic interpolations across latent space. Also by standardizing these operations independent of model type, the latent space of different generative models are more directly comparable with each other, exposing the strengths and weaknesses of various approaches.
|
| 23 |
+
|
| 24 |
+
Additionally, two new techniques for building latent space attribute vectors are introduced. On labeled datasets with correlated labels, data replication can be used to create bias-corrected vectors. Synthetic attributes vectors also can be derived via data augmentation on unlabeled data. Quantitative analysis of attribute vectors can be performed by using them as the basis for attribute binary classifiers.
|
| 25 |
+
|
| 26 |
+
# 2 SAMPLING TECHNIQUES
|
| 27 |
+
|
| 28 |
+
Generative models are often evaluated by examining samples from the latent space. Techniques frequently used are random sampling and linear interpolation. But often these can result in sampling the latent space from locations very far outside the manifold of probable locations.
|
| 29 |
+
|
| 30 |
+
Our work has followed two useful principles when sampling the latent space of a generative model. The first is to avoid sampling from locations that are highly unlikely given the prior of the model. This technique is very well established - including being used in the original VAE paper which adjusted sampling through the inverse CDF of the Gaussian to accommodate the Gaussian prior (Kingma & Welling, 2014). The second principle is to recognize that the dimensionality of the latent space is often artificially high and may contains dead zones that are not on the manifold learned during training. This has been demonstrated for VAE models (Makhzani et al., 2016) and implies that simply matching the model’s prior will not always be sufficient to yield samples that appear to have been drawn from the training set.
|
| 31 |
+
|
| 32 |
+
# 2.1 INTERPOLATION
|
| 33 |
+
|
| 34 |
+
Interpolation is used to traverse between two known locations in latent space. Research on generative models often uses interpolation as a way of demonstrating that a generative model has not simply memorized the training examples (eg: Radford et al., 2015, $\ S 6 . 1 \AA ,$ ). In creative applications interpolations can be used to provide smooth transitions between two decoded images.
|
| 35 |
+
|
| 36 |
+
Frequently linear interpolation is used, which is easily understood and implemented. But this is often inappropriate as the latent spaces of most generative models are high dimensional $( > 5 0$ dimensions) with a Gaussian or uniform prior. In such a space, linear interpolation traverses locations that are extremely unlikely given the prior. As a concrete example, consider a 100 dimensional space with the Gaussian prior $\scriptstyle \mu = 0$ , $\sigma { = } 1$ . Here all random vectors will generally a length very close to 10 (standard deviation $< 1$ ). However, linearly interpolating between any two will usually result in a "tent-pole" effect as the magnitude of the vector decreases from roughly 10 to 7 at the midpoint, which is over 4 standard deviations away from the expected length.
|
| 37 |
+
|
| 38 |
+
Our proposed solution is to use spherical linear interpolation slerp instead of linear interpolation. We use a formula introduced by (Shoemake 85) in the context of great arc inbetweening for rotation animations:
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
S l e r p ( q _ { 1 } , q _ { 2 } ; \mu ) = \frac { \sin { ( 1 - \mu ) \theta } } { \sin { \theta } } q _ { 1 } + \frac { \sin { \mu \theta } } { \sin { \theta } } q _ { 2 }
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
This treats the interpolation as a great circle path on an n-dimensional hypersphere (with elevation changes). This technique has shown promising results on both VAE and GAN generative models and with both uniform and Gaussian priors (Figure 2).
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: DCGAN (Radford 15) interpolation pairs with identical endpoints and uniform prior. In each pair, the top series is linear interpolation and the bottom is spherical. Note the weak generations produced by linear interpolation at the center, which are not present in spherical interpolation.
|
| 48 |
+
|
| 49 |
+
# 2.2 ANALOGY
|
| 50 |
+
|
| 51 |
+
Analogy has been shown to capture regularities in continuous space models. In the latent space of some linguistic models “King – Man $^ +$ Woman” results in a vector very close to “Queen” (Mikolov et al., 2013). This technique has also been used in the context of deep generative models to solve visual analogies (Reed et al., 2015).
|
| 52 |
+
|
| 53 |
+
Analogies are usually written in the form:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
A : B : : C : ?
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Such a formation answers the question “What is the result of applying the transformation A:B to C?” In a vector space the solution generally proposed is to solve the analogy using vector math:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
( B - A ) = ( ? - C )
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
? = C + B - A
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Note that an interesting property of this solution is an implied symmetry:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
A : C : : B : ?
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Because the same terms can be rearranged:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
( C - A ) = ( ? - B )
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
? = B + C - A
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
Generative models that include an encoder for computing latent vectors given new samples allow for visual analogies. We have devised a visual representation for depicting analogies of visual generative networks called a “J-Diagram”. The J- Diagram uses interpolation across two dimensions two expose the manifold of the analogy. It also makes the symmetric nature of the analogy clear (Figure 3).
|
| 86 |
+
|
| 87 |
+
The J-Diagram also serves as a reference visualization across different model settings because it is deterministically generated from images which can be held constant. This makes it a useful tool for comparing results across epochs during training, after adjusting hyperparameters, or even across completely different model types (Figure 4).
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Figure 3: J-Diagram. The three corner images are inputs to the system, with the top left being the “source” (A) and the other two being “analogy targets” (B and C). Adjacent to each is the reconstruction resulting from running the image through both the encoder and decoder of the model. The bottom right image shows the result of applying the analogy operation $( \mathbf { B } + \mathbf { C } ) - \mathbf { A }$ . All other images are interpolations using the slerp operator. (model: VAE from Lamb 16 on CelebA)
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 4: Same J-Diagram repeated with different model type. To facilitate comparisons (and demonstrate results are not cherry-picked) inputs selected are the first 3 images of the validation set. (model: GAN from Dumoulin 16 on CelebA)
|
| 94 |
+
|
| 95 |
+
# 2.3 MANIFOLD TRAVERSAL
|
| 96 |
+
|
| 97 |
+
Generative models can produce a latent space that is not tightly packed, and the dimensionality of the latent space is often set artificially high. As a result, the manifold of trained examples is can be a subset of the latent space after training, resulting in dead zones in the expected prior.
|
| 98 |
+
|
| 99 |
+
If the model includes an encoder, one simple way to stay on the manifold is by only using out of sample encodings (ie: any data not used in training) in the latent space. This is a useful diagnostic, but is overly restrictive in a creative application context since it prevents the model from suggesting new and novel samples from the model. However, we can recover this ability by also including the results of operations on these encoded samples that stay close to the manifold, such as interpolation, extrapolation, and analogy generation.
|
| 100 |
+
|
| 101 |
+
Ideally, there would be a mechanism to discover this manifold within the latent space. In generative models with an encoder and ample out-of-sample data, we can instead precompute locations on the manifold with sufficient density, and later query for nearby points in the latent space from this known set. This offers a navigation mechanism based on hopping to nearest neighbors across a large database of encoded samples. When combined with interpolation, we call this visualization a Manifold Interpolated Neighbor Embedding (MINE). A MINE grid is useful to visualize local patches of the latent space (Figure 5).
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
(b) Reconstructions are spread with interpolation to expose areas between them.
|
| 105 |
+
Figure 5: Example of local VAE manifold built using the $3 0 \mathrm { k }$ CelebA validation and test images as a dataset of out of sample features. The resulting MINE grid represents a small contiguous manifold of the larger latent space. (model: VAE from Lamb 16 on CelebA)
|
| 106 |
+
|
| 107 |
+
# 3 ATTRIBUTE VECTORS
|
| 108 |
+
|
| 109 |
+
Many generative models result in a latent space that is highly structured, even on purely unsupervised datasets (Radford et al., 2015). When combined with labeled data, attribute vectors can be computed using simple arithmetic. For example, a vector can be computed which represents the smile attribute, which by shorthand we call a smile vector. Following (Larsen et al., 2016), the smile vector can be computed by simply subtracting the mean vector for images without the smile attribute from the mean vector for images with the smile attribute. This smile vector can then be applied to in a positive or negative direction to manipulate this visual attribute on samples taken from latent space (Figure 6).
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
Figure 6: Traversals along the smile vector. (model: GAN from Dumoulin 16 on CelebA)
|
| 113 |
+
|
| 114 |
+
# 3.1 CORRELATED LABELS
|
| 115 |
+
|
| 116 |
+
The approach of building attribute vectors from means of labeled data has been noted to suffer from correlated labels (Larsen et al., 2016). While many correlations would be expected from ground truths (eg: heavy makeup and wearing lipstick) we discovered others that appear to be from sampling bias. For example, male and smiling attributes have unexpected negative correlations because women in the CelebA dataset are much more likely to be smiling than men. (Table 1).
|
| 117 |
+
|
| 118 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Male</td><td rowspan=1 colspan=1>Not Male</td><td rowspan=1 colspan=1>Total</td></tr><tr><td rowspan=1 colspan=1>Smiling</td><td rowspan=1 colspan=1>17%</td><td rowspan=1 colspan=1>31%</td><td rowspan=1 colspan=1>48%</td></tr><tr><td rowspan=1 colspan=1>Not Smiling</td><td rowspan=1 colspan=1>25%</td><td rowspan=1 colspan=1>27%</td><td rowspan=1 colspan=1>52%</td></tr><tr><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>42%</td><td rowspan=1 colspan=1>58%</td><td rowspan=1 colspan=1></td></tr></table>
|
| 119 |
+
|
| 120 |
+
Table 1: Breakdown of CelebA smile versus male attributes. In the total population the smile attribute is almost balanced $4 8 \%$ smile). But separating the data further shows that those with the male attribute smile only $42 \%$ of the time while those without it smile $58 \%$ of the time.
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
Figure 7: Initial attempts to build a smile vector suffered from sampling bias. The effect was that removing smiles from reconstructions (left) also added male attributes (center). By using replication to balance the data across both attributes before computing the attribute vectors, the gender bias was removed (right). (model: VAE from Lamb 16 on CelebA)
|
| 124 |
+
|
| 125 |
+
In an online service we setup to automatically add and remove smiles from images1, we discovered this gender bias was visually evident in the results. Our solution was to use replication on the training data such that the dataset was balanced across attributes. This was effective because ultimately the vectors are simply summed together when computing the attribute vector (Figure 7).
|
| 126 |
+
|
| 127 |
+
This balancing technique can also be applied to attributes correlated due to ground truths. Decoupling attributes allows individual effects to be applied separately. As an example, the two attributes smiling and mouth open are highly correlated in the CelebA training set (Table 2). This is not surprising, as physically most people photographed smiling would also have their mouth open. However by forcing these attributes to be balanced, we can construct two decoupled attribute vectors. This allows for more flexibility in applying each attribute separately to varying degrees (Figure 8).
|
| 128 |
+
|
| 129 |
+
Table 2: CelebA smile versus open mouth attributes shows a strong symmetric correlation (greater than 3 to 1).
|
| 130 |
+
|
| 131 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Open Mouth</td><td rowspan=1 colspan=1>Not Open Mouth</td><td rowspan=1 colspan=1>Total</td></tr><tr><td rowspan=1 colspan=1>Smiling</td><td rowspan=1 colspan=1>36%</td><td rowspan=1 colspan=1>12%</td><td rowspan=1 colspan=1>48%</td></tr><tr><td rowspan=1 colspan=1>Not Smiling</td><td rowspan=1 colspan=1>12%</td><td rowspan=1 colspan=1>40%</td><td rowspan=1 colspan=1>52%</td></tr><tr><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>48%</td><td rowspan=1 colspan=1>52%</td><td rowspan=1 colspan=1></td></tr></table>
|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
Figure 8: Decoupling attribute vectors for smiling (x-axis) and mouth open (y-axis) allows for more flexible latent space transformations. Input shown at left with reconstruction adjacent. (model: VAE from Lamb 16 on CelebA)
|
| 135 |
+
|
| 136 |
+
# 3.2 SYNTHETIC ATTRIBUTES
|
| 137 |
+
|
| 138 |
+
It has been noted that samples drawn from VAE based models is that they tend to be blurry (Goodfellow et al., 2014; Larsen et al., 2015). A possible solution to this would be to discover an attribute vector for “unblur”, and then apply this as a constant offset to latent vectors before decoding. CelebA includes a blur label for each image, and so a blur attribute vector was computed and then extrapolated in the negative direction. This was found to noticeably reduce blur, but also resulted in a number of unwanted artifacts such as increased image brightness.
|
| 139 |
+
|
| 140 |
+
We concluded this to be the result of human bias in labeling. Labelers appear more likely to label darker images as blurry, so this unblur vector was found to suffer from attribute correlation that also “lightened” the reconstruction. This bias could not be easily corrected because CelebA does not include a brightness label for rebalancing the data.
|
| 141 |
+
|
| 142 |
+
For the blurring attribute, an algorithmic solution is available. We take a large set of images from the training set and process them through a Gaussian blur filter (figure 9). Then we run both the original image set and the blurred image set through the encoder and subtract the means of each set to compute a new attribute vector for blur. We call this a synthetic attribute vector because this label is derived from algorithmic data augmentation of the training set. This technique removes the labeler bias, is straightforward to implement, and resulted in samples closely resembling the reconstructions with less noticeable blur (figure 10).
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 9: Zoomed detail from training images (top) and computed blurred images (bottom) were both encoded in order to determine a non-biased blur attribute vector.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 10: Zoomed detail of images from the validation set (top) are reconstructed (second row). Applying an offset in latent space based on the CelebA blur attribute (third row) does reduce noticeable blur from the reconstructions, but introduces visual artifacts including brightening due to attribute correlation. Applying an attribute vector instead computed from synthetic blur (bottom) yields images noticeably deblurred from the reconstructions and without unrelated artifacts.
|
| 149 |
+
|
| 150 |
+
# 3.3 QUANTITATIVE ANALYSIS WITH CLASSICICATION
|
| 151 |
+
|
| 152 |
+
The results of applying attribute vectors visually to images are often quite striking. But it would be useful to be able to evaluate the relative efficacy of various attribute vectors to each other or across different models and hyperparamaters. Attribute vectors have potential to be widely applicable outside of images in domain specific latent spaces, and this provides additional challenges for quantifying their performance. For example, recent work has shown the ability to use latent space model as a continuous representation of molecules (Gómez 16); though it is straightforward to generate vectors for attributes such as solubility in these spaces, the evaluation of these operations to existing molecules would appear to require specific domain knowledge.
|
| 153 |
+
|
| 154 |
+
We have found that very effective classifiers can be built in latent space using the dot product of an encoded vector with a computed attribute vector (figure 11A, 11B). We have named this technique for building classifiers on latent spaces AtDot, and models trained on unsupervised data have been shown to produce strong results on CelebA across most attributes (table 3). Importantly, these binary classifiers provide a quantitative basis to evaluate attribute vectors on a related surrogate task - their ability to be the basis for a simple linear classifier. This task is one of the most established paradigms in machine learning and provides a set of established tools such as ROC curves for offering new insights into the behavior of the attribute vectors across different hyperparameters or different models (figure 11C).
|
| 155 |
+
|
| 156 |
+
Table 3: Average Classification Accuracy on the CelebA dataset. Models for both VAE AtDot and GAN AtDot use unsupervised training with attribute vectors computed on the training set data after model training was completed. VAE AtDot from Lamb 16 with discriminative regularization disabled and GAN AtVec from Dumoulin 16. Other results are [1] Kumar 08, [2] Zhang 14, [3] Li 13, and [4] LeCun 94 as reported in Ehrlich 16.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Approach /Attribute</td><td>[1]</td><td>[2] W [2] L</td><td>[3] ANet</td><td>[4] LNet</td><td>[4] Full</td><td>VAE AtDot</td><td>GAN AtDot</td></tr><tr><td>5 0.C. Shadow</td><td>85</td><td>82 88</td><td>86</td><td>88</td><td>91</td><td>88</td><td>89</td></tr><tr><td>Arched Eyebrow</td><td>76</td><td>73 78</td><td>75</td><td>74</td><td>79</td><td>75</td><td>75</td></tr><tr><td>Attractive</td><td>78</td><td>77 81</td><td>79</td><td>77</td><td>81</td><td>71</td><td>69</td></tr><tr><td>Bags Under Eye</td><td>76</td><td>71 79</td><td>77</td><td>73</td><td>79</td><td>80</td><td>79</td></tr><tr><td>Bald</td><td>89</td><td>92 96</td><td>92</td><td>95</td><td>98</td><td>98</td><td>98</td></tr><tr><td>Bangs</td><td>88</td><td>89 92</td><td>94</td><td>92</td><td>95</td><td>90</td><td>90</td></tr><tr><td>Big Lips</td><td>64</td><td>61 67</td><td>63</td><td>66</td><td>68</td><td>85</td><td>76</td></tr><tr><td>Big Nose</td><td>74</td><td>70 75</td><td>74</td><td>75</td><td>78</td><td>77</td><td>77</td></tr><tr><td>Black Hair</td><td>70</td><td>74 85</td><td>77</td><td>84</td><td>88</td><td>83</td><td>81</td></tr><tr><td>Blond Hair</td><td>80</td><td>81 93</td><td>86</td><td>91</td><td>95</td><td>87</td><td>90</td></tr><tr><td>Blurry</td><td>81</td><td>77 86</td><td>83</td><td>80</td><td>84</td><td>95</td><td>95</td></tr><tr><td>Brown Hair</td><td>60</td><td>69 77</td><td>74</td><td>78</td><td>80</td><td>76</td><td>81</td></tr><tr><td>BushyEyebrow</td><td>80</td><td>76 86</td><td>80</td><td>85</td><td>90</td><td>87</td><td>86</td></tr><tr><td>Chubby</td><td>86</td><td>82 86</td><td>86</td><td>86</td><td>91</td><td>94</td><td>94</td></tr><tr><td>Double Chin</td><td>88</td><td>85 88</td><td>90</td><td>88</td><td>92</td><td>95</td><td>95</td></tr><tr><td>Eyeglasses</td><td>98</td><td>94 98</td><td>96</td><td>96</td><td>99</td><td>95</td><td>94</td></tr><tr><td>Goatee</td><td>93</td><td>86 93</td><td>92</td><td>92</td><td>95</td><td>93</td><td>94</td></tr><tr><td>Gray Hair</td><td>90</td><td>88 94</td><td>93</td><td>93</td><td>97</td><td>95</td><td>96</td></tr><tr><td>Heavy Makeup</td><td>85</td><td>84 90</td><td>87</td><td>85</td><td>90</td><td>76</td><td>75</td></tr><tr><td>High Cheekbone</td><td>84</td><td>80 86</td><td>85</td><td>84</td><td>87</td><td>81</td><td>68</td></tr><tr><td>Male</td><td>91</td><td>93 97</td><td>95</td><td>94</td><td>98</td><td>81</td><td>80</td></tr><tr><td>Mouth Open</td><td>87</td><td>82 93</td><td>85</td><td>86</td><td>92</td><td>78</td><td>67</td></tr><tr><td>Mustache</td><td>91</td><td>83 93</td><td>87</td><td>91</td><td>95</td><td>95</td><td>96</td></tr><tr><td>Narrow Eyes</td><td>82</td><td>79 84</td><td>83</td><td>77</td><td>81</td><td>93</td><td>89</td></tr><tr><td>No Beard</td><td>90</td><td>87 93</td><td>91</td><td>92</td><td>95</td><td>85</td><td>84</td></tr><tr><td>Oval Face</td><td>64</td><td>62 65</td><td>65</td><td>63</td><td>66</td><td>72</td><td>71</td></tr><tr><td>Pale Skin</td><td>83</td><td>84 91</td><td>89</td><td>87</td><td>91</td><td>96</td><td>96</td></tr><tr><td>Pointy Nose</td><td>68</td><td>65</td><td>71 67</td><td>70</td><td>72</td><td>72</td><td>72</td></tr><tr><td>Recede Hair</td><td>76</td><td>82</td><td>85 84</td><td>85</td><td>89</td><td>93</td><td>92</td></tr><tr><td>Rosy Cheeks</td><td>84</td><td>81</td><td>87 85</td><td>87</td><td>90</td><td>93</td><td>93</td></tr><tr><td>Sideburns</td><td>94</td><td>90</td><td>93 94</td><td>91</td><td>96</td><td>94</td><td>94</td></tr><tr><td>Smiling</td><td>89</td><td>89</td><td>92 92</td><td>88</td><td>92</td><td>87</td><td>68</td></tr><tr><td>Straight Hair</td><td>63</td><td>67</td><td>69 70</td><td>69</td><td>73</td><td>80</td><td>79</td></tr><tr><td>Wavy Hair</td><td>73</td><td>76</td><td>77 79</td><td>75</td><td>80</td><td>75</td><td>75</td></tr><tr><td>Earring</td><td>73</td><td>72</td><td>78 77</td><td>78</td><td>82</td><td>81</td><td>81</td></tr><tr><td>Hat</td><td>89</td><td>91</td><td>96 93</td><td>96</td><td>99</td><td>96</td><td>97</td></tr><tr><td>Lipstick</td><td>89</td><td>88</td><td>93 91</td><td>90</td><td>93</td><td>79</td><td>77</td></tr><tr><td>Necklace</td><td>68</td><td>67</td><td>67 70</td><td>68</td><td>71</td><td>88</td><td>88</td></tr><tr><td>Necktie</td><td>86</td><td>88</td><td>91 90</td><td>86</td><td>93</td><td>93</td><td>92</td></tr><tr><td>Young</td><td>80</td><td>77</td><td>84 81</td><td>83</td><td>87</td><td>78</td><td>81</td></tr><tr><td>Average</td><td>81</td><td>79 85</td><td>83</td><td>83</td><td>87</td><td>86</td><td>84</td></tr></table>
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 11: Example of using an attribute vector for classification. A smile vector is first constructed in latent space from labeled training data. By taking the dot product of this smile vector with the encoded representation of any face, a scalar smile score is generated (a). This score can be the basis for a binary classifier. The histogram shows the distribution of positive (green) and negative (red) scores on the CelebA validation set (b). The ROC curve for a smile vector based binary classifier is also shown (c).
|
| 162 |
+
|
| 163 |
+
# 4 FUTURE WORK
|
| 164 |
+
|
| 165 |
+
Software to support most techniques presented in this paper is included in a python software library that can be used with various generative models2. We hope to continue to improve the library so that the techniques are applicable across a broad range of generative models. Attribute vector based classifiers also offer a promising way to evaluate the suitability of attribute vectors in domains outside of images.
|
| 166 |
+
|
| 167 |
+
We are investigating constructing a specially constructed prior on the latent space such that interpolations could be linear. This would simplify many of the latent space operations and might enable new types of operations.
|
| 168 |
+
|
| 169 |
+
Given sufficient test data, the extent to which an encoded dataset deviates from the expected prior should be quantifiable. Developing such a metric would be useful in understanding the structure of the different latent spaces including probability that random samples fall outside of the expected manifold of encoded data.
|
| 170 |
+
|
| 171 |
+
# ACKNOWLEDGMENTS
|
| 172 |
+
|
| 173 |
+
I am thankful for the constructive feedback from readers including Ehud Ben-Reuven, Zachary Lipton, and Alex Champandard. I thank Victoria University of Wellington School of Design for supporting research on Creative Intelligence. I also thank the vibrant machine learning and creative coding communities on twitter for their support and encouragement.
|
| 174 |
+
|
| 175 |
+
# REFERENCES
|
| 176 |
+
|
| 177 |
+
Dumoulin, Vincent, Belghazi, Ishmael, Poole, Ben, Lamb, Alex, Arjovsky, Martin, Mastropietro, Olivier Courville, Aaron. Adversarially Learned Inference. https://arxiv.org/abs/1606.00704 2016 Ehrlich, Max, Shields, Timothy J., Almaev, Timur, Amer, Mohamed R. Facial Attributes Classification Using Multi-Task Representation Learning. The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops. 2016.
|
| 178 |
+
Goodfellow, Ian, Pouget-Abadie, Jean, Mirza, Mehdi, Xu, Bing, Warde- Farley, David, Ozair, Sherjil, Courville, Aaron, and Bengio, Yoshua. Generative adversarial nets. In Ghahramani, Z., Welling, M., Cortes, C., Lawrence, N.D., and Weinberger, K.Q. (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014.
|
| 179 |
+
Gómez-Bombarelli, Rafael, Duvenaud, David, Miguel, Hernández-Lobato, José, Aguilera-Iparraguirre, Jorge, Hirzel, Timothy D., Adams, Ryan P., and Alán Aspuru-Guzik. Automatic chemical design using a data-driven continuous representation of molecules. https://arxiv.org/abs/1610.02415 2016 Kingma, Diederik P. and Welling, Max. Auto-encoding variational Bayes. In Proceedings of the International Conference on Learning Representations, 2014.
|
| 180 |
+
Kumar, N., Belhumeur, P., and Nayar, S. Facetracer: A search engine for large collections of images with faces. In ECCV, 2008.
|
| 181 |
+
Lamb, Alex, Dumoulin, Vincent, Courville, Aaron. Discriminative Regularization for Generative Models. http://arxiv.org/abs/1602.03220 2016
|
| 182 |
+
Larsen, Anders Boesen Lindbo, Sønderby, Søren Kaae, Larochelle, Hugo, Winther, Ole. Autoencoding beyond pixels using a learned similarity metric. https://arxiv.org/abs/1512.09300 2016
|
| 183 |
+
LeCun, Y. and Bengio., Y. Word-level training of a handwritten word recognizer based on convolutional neural networks. In ICPR, 1994.
|
| 184 |
+
Li, J., and Zhang, Y. Learning surf cascade for fast and accurate object detection. In CVPR, 2013.
|
| 185 |
+
Makhzani, Alireza, Shlens, Jonathon, Jaitly, Navdeep, Goodfellow, Ian, Brendan, Frey. Adversarial Autoencoders. http://arxiv.org/abs/1511.05644. 2016.
|
| 186 |
+
Mikolov, Tomas, Yih, Scott Wen-tau, Zweig, Geoffrey. Linguistic Regularities in Continuous Space Word Representations. NAACL-HLT, 2013.
|
| 187 |
+
Radford , Alec, Metz , Luke, Chintala, Soumith. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. Advances in Neural Information Processing Systems, 2015.
|
| 188 |
+
Reed, Scott E, Zhang, Yi, Zhang, Yuting, and Lee, Honglak. Deep visual analogy-making. In Cortes, C., Lawrence, N.D., Lee, D.D., Sugiyama, M., Garnett, R., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 1252–1260. Curran Associates, Inc., 2015
|
| 189 |
+
Shoemake, Ken. Animating rotation with quaternion curves. In ACM Siggraph, 19(3):245–254, 1985. Zhang, N., Paluri, M., Ranzato, M., Darrell, T., and Bourdev, L. Panda: Pose aligned networks for deep attribute modeling. In CVPR, 2014.
|