Datasets:
Add files using upload-large-folder tool
Browse files- parse/dev/I-6yh2-dkyD/I-6yh2-dkyD.md +345 -0
- parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_content_list.json +1601 -0
- parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_middle.json +0 -0
- parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_model.json +0 -0
- parse/dev/ITw9edRDlD/ITw9edRDlD.md +338 -0
- parse/dev/ITw9edRDlD/ITw9edRDlD_content_list.json +1629 -0
- parse/dev/ITw9edRDlD/ITw9edRDlD_middle.json +0 -0
- parse/dev/ITw9edRDlD/ITw9edRDlD_model.json +0 -0
- parse/dev/SlxSY2UZQT/SlxSY2UZQT.md +336 -0
- parse/dev/SlxSY2UZQT/SlxSY2UZQT_content_list.json +1771 -0
- parse/dev/SlxSY2UZQT/SlxSY2UZQT_middle.json +0 -0
- parse/dev/SlxSY2UZQT/SlxSY2UZQT_model.json +0 -0
- parse/dev/ZlCpRiZN7n/ZlCpRiZN7n_model.json +0 -0
- parse/dev/fARM4P0gAJV/fARM4P0gAJV.md +441 -0
- parse/dev/fARM4P0gAJV/fARM4P0gAJV_content_list.json +1161 -0
- parse/dev/fARM4P0gAJV/fARM4P0gAJV_middle.json +0 -0
- parse/dev/fARM4P0gAJV/fARM4P0gAJV_model.json +0 -0
- parse/dev/v54eUIayFh/v54eUIayFh.md +520 -0
- parse/dev/v54eUIayFh/v54eUIayFh_content_list.json +0 -0
- parse/dev/v54eUIayFh/v54eUIayFh_model.json +0 -0
parse/dev/I-6yh2-dkyD/I-6yh2-dkyD.md
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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bhatia MDSR Lab, Adobe Systems sumit.bhatia@adobe.com
|
| 8 |
+
|
| 9 |
+
Ryan A. Rossi Adobe Research ryrossi@adobe.com
|
| 10 |
+
|
| 11 |
+
Vishwa Vinay Adobe Research vinay@adobe.com
|
| 12 |
+
|
| 13 |
+
Aditya Grover UCLA adityag@cs.ucla.edu
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Recent advances in contrastive representation learning over paired image-text data have led to models such as CLIP [44] that achieve state-of-the-art performance for zero-shot classification and distributional robustness. Such models typically require joint reasoning in the image and text representation spaces for downstream inference tasks. Contrary to prior beliefs, we demonstrate that the image and text representations learned via a standard contrastive objective are not interchangeable and can lead to inconsistent downstream predictions. To mitigate this issue, we formalize consistency and propose CYCLIP, a framework for contrastive representation learning that explicitly optimizes for the learned representations to be geometrically consistent in the image and text space. In particular, we show that consistent representations can be learned by explicitly symmetrizing (a) the similarity between the two mismatched image-text pairs (cross-modal consistency); and (b) the similarity between the image-image pair and the text-text pair (in-modal consistency). Empirically, we show that the improved consistency in CYCLIP translates to significant gains over CLIP, with gains ranging from $1 \dot { 0 } \% - 2 4 \%$ for zero-shot classification accuracy on standard benchmarks (CIFAR-10, CIFAR-100, ImageNet1K) and $1 0 \% - 2 7 \%$ for robustness to various natural distribution shifts. The code is available at https://github.com/goel-shashank/CyCLIP.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
The ability to learn general-purpose representations from diverse data modalities is a long-standing goal of artificial intelligence (AI) [4, 32]. In this regard, recent instantiations such as CLIP [44], ALIGN [29], and BASIC [41] have scaled up vision-language contrastive pretraining to jointly learn image and text embeddings, by exploiting an enormous amount of paired image-text data on the web. Post pretraining, these embeddings exhibit impressive zero-shot classification performance [13] and robustness to natural distribution shifts [48, 57, 24, 26]. Recently, these embeddings have been extended to text-guided generation of natural images [47, 12, 38, 46] and transferred to modalities such as 3-D shapes [50] by emphasizing the interchangeability of the image and text embeddings.
|
| 22 |
+
|
| 23 |
+
In the context of vision-language pretraining, the standard contrastive learning objective aims to maximize the similarity between matched image-text pairs (“positives") against all the mismatched image-text pairs (“negatives") [45, 7, 40, 22]. While such an objective aligns the true image-text pairs, it poses no constraints on the overall geometry of all data pairs, including the mismatched pairs and pairs within the same modality. In Figure 1 (a), we illustrate this effect where matched image-text pairs, $( I _ { \mathrm { d o g } } , T _ { \mathrm { d o g } } )$ and $( I _ { \mathrm { c a t } } , T _ { \mathrm { c a t } } )$ , get close to each other but the overall geometry of pairwise distances can be highly irregular (see e.g., $( I _ { \mathrm { d o g } } , T _ { \mathrm { c a t } } )$ and $( I _ { \mathrm { c a t } } , T _ { \mathrm { d o g } } ) )$ . If we use such representations for downstream inference, such irregularities can translate into inconsistent reasoning in the image and text spaces. For example, CLIP designs proxy captions for class labels and uses the most similar class caption to perform zero-shot classification for images; using the default captions in Figure 1 (a), this would imply that a test image $I _ { \mathrm { t e s t } }$ gets classified as a dog in the image space even when a simple nearest neighbor classifier in the text space would correctly infer the label to be a cat.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: An illustration of the planar geometry of the learned representations of image-text pairs by (a) CLIP and (b) CYCLIP. The edges indicate the distance between the representations i.e., $\dot { d ( e _ { 1 } , e _ { 2 } ) } = 1 - \langle e _ { 1 } , e _ { 2 } \rangle$ , where $\langle \cdot , \cdot \rangle$ is the inner product. CYCLIP is cyclic consistent between image-text pairs as the in-modal distances, $d ( T _ { \mathrm { c a t } } , T _ { \mathrm { d o g } } ) \sim d ( I _ { \mathrm { c a t } } , I _ { \mathrm { d o g } } )$ , and the cross-modal distances, $d ( \bar { T _ { \mathrm { c a t } } } , \bar { I _ { \mathrm { d o g } } } ) ~ \sim ~ d ( \bar { I _ { \mathrm { c a t } } } , \bar { T _ { \mathrm { d o g } } } )$ , are similar to each other unlike CLIP. Due to explicit consistency constraints, the test image of a cat is classified as a cat in the image as well as the text space.
|
| 27 |
+
|
| 28 |
+
To mitigate these challenges, we propose Cyclic Contrastive Language-Image Pretraining (CYCLIP), a framework that imposes additional geometric structure on the learned representations. Specifically, given two image-text pairs, we augment the contrastive learning objective with two symmetrization terms. The first term provides for in-modal consistency by encouraging the distance between the two image embeddings to be close to the distance between the corresponding text embeddings. The second term for the cross-modal consistency that encourages the distance between the image and text embedding from the first and second pairs respectively to be close to the distance between the text and image embeddings from the first and second pairs respectively. As shown in Figure 1 (b), if representations of any two image-text pairs, $( I _ { \mathrm { d o g } } , T _ { \mathrm { d o g } } )$ and $( \dot { I } _ { \mathrm { c a t } } , T _ { \mathrm { c a t } } )$ exactly satisfy both forms of cyclic consistency, then we can guarantee that any test image $I _ { \mathrm { t e s t } }$ respects the ordering of distances in both image and text spaces (i.e., if $d ( I _ { \mathrm { t e s t } } , I _ { \mathrm { d o g } } ) > d ( I _ { \mathrm { t e s t } } , I _ { \mathrm { c a t } } )$ , then $d ( I _ { \mathrm { t e s t } } , T _ { \mathrm { d o g } } ) > d ( I _ { t e s t } , T _ { \mathrm { c a t } } ) )$ .
|
| 29 |
+
|
| 30 |
+
Empirically, we demonstrate that the improved consistency in CYCLIP translates to improvements over CLIP. In all cases, we pre-train our models on the Conceptual Captions 3M dataset[52]. On zero-shot classification, we observe that CYCLIP improves over CLIP by $1 0 . 2 \%$ on ImageNet1K, $1 0 . 6 \%$ on CIFAR-10 and $2 3 . 9 \%$ on CIFAR-100 respectively. Further, CYCLIP outperforms CLIP with an average relative gain of $+ 1 7 \%$ on ImageNet natural distribution shift benchmarks. We further analyze the improved performance of CYCLIP and find that the additional geometric structure in the representation space better captures the coarse and fine-grained concept hierarchies of datasets.
|
| 31 |
+
|
| 32 |
+
Our contributions are as follows:
|
| 33 |
+
|
| 34 |
+
1. We analyze contrastive learning for representation learning jointly over image and text modalities. We identify a critical shortcoming in the geometry of the learned representation space that can lead to inconsistent predictions in image and text domains.
|
| 35 |
+
|
| 36 |
+
2. We propose CYCLIP, a simple and effective framework for contrastive representation learning with two additional cycle consistency constraints for mitigating the above issue. 3. We demonstrate that CYCLIP achieves significant empirical improvements over CLIP on zero-shot classification and robustness benchmarks. We further explain these improvements by analyzing the impact of consistency on the hierarchical structure of datasets.
|
| 37 |
+
|
| 38 |
+
# 2 Cycle Consistent Representation Learning
|
| 39 |
+
|
| 40 |
+
# 2.1 Preliminaries
|
| 41 |
+
|
| 42 |
+
We are interested in using text supervision to learn general-purpose visual representations that can be generalized to downstream predictive tasks. To this end, there have been several recent advances in language-image pretraining concerning model architectures, training objectives, and sources of supervision. Our work is most closely related to Contrastive Language-Image Pretraining (CLIP) [44] which combines many such advances in a highly scalable and generalizable learning framework.
|
| 43 |
+
|
| 44 |
+
CLIP is trained on millions of images with their captions scraped from the web. Formally, we consider a dataset $S \subset \mathcal { T } \times \mathcal { T }$ consisting of pairs $( I _ { j } , T _ { j } )$ where $I _ { j }$ is a raw image and $T _ { j }$ is a text caption. We use $\mathcal { T }$ and $\tau$ to denote the domain of images and text, respectively. The CLIP architecture consists of 3 components: (i) an image encoder network, $f _ { I } : \mathcal { T } \mapsto \mathbb { R } ^ { d }$ , to encode the raw image into an embedding vector of dimension $d$ , (ii) a text encoder network, $f _ { T } : T \mapsto \mathbb { R } ^ { d }$ , to encode the raw text into an embedding vector of dimension $d$ , (iii) a contrastive objective that pulls the embeddings of paired image-caption pairs together while pushing apart embeddings of unmatched pairs.
|
| 45 |
+
|
| 46 |
+
Formally, during training, consider a batch of $N$ image-captions pairs, $\{ I _ { j } , T _ { j } \} _ { j = 1 } ^ { N }$ , where $I _ { j }$ and $T _ { j }$ represent the raw image and text pair, respectively. The image embedding $\bar { I } _ { j } ^ { e } \in \mathbb { R } ^ { d }$ and text embedding $T _ { j } ^ { e } \in \mathbb { R } ^ { d }$ are obtained by passing $I _ { j }$ and $T _ { j }$ through the image encoder $f _ { I }$ and text encoder $f _ { T }$ , respectively; i.e. $I _ { j } ^ { e } = f _ { I } ( I _ { j } )$ and $T _ { j } ^ { e } = f _ { T } ( T _ { j } )$ . Further, we assume they are normalized to have unit $\ell _ { 2 }$ -norm. The contrastive objective in CLIP aims to align the image and text representations by minimizing the loss function ${ \mathcal { L } } _ { \mathrm { C L I P } }$ shown below:
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\mathcal { L } _ { \mathrm { C L I P } } = - \frac { 1 } { 2 N } \sum _ { j = 1 } ^ { N } \log \left[ \frac { \exp \left( \langle I _ { j } ^ { e } , T _ { j } ^ { e } \rangle / \tau \right) } { \displaystyle \sum _ { k = 1 } ^ { N } \exp \left( \langle I _ { j } ^ { e } , T _ { k } ^ { e } \rangle / \tau \right) } \right] - \frac { 1 } { 2 N } \sum _ { k = 1 } ^ { N } \log \left[ \frac { \exp \left( \langle I _ { k } ^ { e } , T _ { k } ^ { e } \rangle / \tau \right) } { \displaystyle \sum _ { j = 1 } ^ { N } \exp \left( \langle I _ { j } ^ { e } , T _ { k } ^ { e } \rangle / \tau \right) } \right]
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $\langle \cdot , \cdot \rangle$ represents the inner product, and $\tau$ is a trainable temperature parameter. CLIP and its variants can be used to perform zero-shot image classification, i.e., classifying test images into categories not seen at training time. We first transform each category into a suitable caption (e.g., the airplane category in CIFAR-10 can be expressed as ‘a photo of an airplane’). Then, the similarity of the test image to each caption is computed (e.g., cosine distance), and the model predicts the category for which the image-caption similarity is the highest.
|
| 53 |
+
|
| 54 |
+
# 2.2 Inconsistent Representation Learning in CLIP
|
| 55 |
+
|
| 56 |
+
As illustrated in Figure 1 (a), the standard contrastive objective in CLIP can learn image-text representations such that the predicted labels for the test image are different in the image and text spaces. Here, we reason about such inconsistencies more formally in the context of downstream classification. As discussed above, we can predict a label in the text embedding space (zero-shot setting) by selecting the label that is closest to the test image $( P _ { T } )$ . Additionally, for classification in the image embedding space, if we had access to a labeled training set, then one natural way to infer the predicted label $( { \dot { P } } _ { I } ^ { k } )$ of a test image $I _ { t e s t }$ is by taking a majority vote from the true labels associated with the $\mathbf { k }$ -nearest training images. Formally, we define a consistency score that measures the synchrony between the predicted labels in the image and text spaces as:
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 2: Illustrative overview for CYCLIP $N = 2 \AA$ ). It consists of 3 major components: (a) cross-modal contrastive alignment, (b) cross-modal consistency, and (c) in-modal consistency. Only (a) is present in CLIP, whereas our proposed regularizers in (b) and (c) mitigate inconsistency.
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
{ \mathrm { C o n s i s t e n c y ~ S c o r e } } _ { k } = { \frac { 1 } { N } } \sum _ { j = 1 } ^ { N } \mathbb { 1 } \left[ P _ { I } ^ { k } ( I _ { j } ) = P _ { T } ( I _ { j } ) \right]
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where $_ \mathrm { N }$ is the number of test images. In our experiments (discussed in detail in $\ S 3$ ), we found the CLIP’s consistency score $k = 1$ ) to be $44 \%$ , $16 \%$ , and $16 \%$ on the standard benchmarks CIFAR-10, CIFAR-100, and ImageNet1K, respectively, showing a very high degree of disagreement in the image and text spaces. In the following section, we describe our approach to alleviate the inconsistent inference problem and quantitatively show that our solution improves the consistency score in $\ S 4 . 1$ .
|
| 66 |
+
|
| 67 |
+
# 2.3 Cycle Consistent Representation Learning via CYCLIP
|
| 68 |
+
|
| 69 |
+
We showed that the visual representations learned by CLIP could be inconsistent when used for inference in the image and text spaces. To mitigate this problem, we propose CYCLIP, a learning framework that builds upon CLIP by augmenting the contrastive loss in Eq. 1 with additional geometric consistency regularizers. The intuition follows directly from Figure 1 (b), where we showed that inconsistency in the image and text spaces could be eliminated if we symmetrize the similarity between the two mismatched image-text pairs and the similarity between the image-image pair and the text-text pair. We formalize this intuition with two consistency regularizers.
|
| 70 |
+
|
| 71 |
+
(1) The cross-modal consistency regularizer reduces the gap in the similarity scores between the embeddings of all the mismatched image-text pairs in a batch, two at a time:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\mathcal { L } _ { \mathrm { C - C y c l i c } } = \frac { 1 } { N } \sum _ { j = 1 } ^ { N } \sum _ { k = 1 } ^ { N } \left( \langle I _ { j } ^ { e } , T _ { k } ^ { e } \rangle - \langle I _ { k } ^ { e } , T _ { j } ^ { e } \rangle \right) ^ { 2 } .
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
(2) The in-modal consistency regularizer reduces the gap in the similarity scores between the embeddings of all combinations of image pairs and their corresponding text pairs in a batch:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathcal { L } _ { \mathrm { I - C y c l i c } } = \frac { 1 } { N } \mathrm {sum _ { \substack { j = 1 } } ^ { N } } \mathrm { \sum _ { \substack { k = 1 } } ^ { N } } \left( \langle I _ { j } ^ { e } , I _ { k } ^ { e } \rangle - \langle T _ { k } ^ { e } , T _ { j } ^ { e } \rangle \right) ^ { 2 } .
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
Hence, our overall loss for CYCLIP is given as:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
{ \mathcal { L } } _ { \mathrm { C Y C L I P } } = { \mathcal { L } } _ { \mathrm { C L I P } } + \lambda _ { 1 } { \mathcal { L } } _ { \mathrm { I - C y c l i c } } + \lambda _ { 2 } { \mathcal { L } } _ { \mathrm { C - C y c l i c } }
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\lambda _ { 1 } > 0$ and $\lambda _ { 2 } > 0$ are hyperparameters controlling the importance of the in-modal and cross-modal cyclic consistency regularizers relative to the contrastive loss in CLIP. We can also characterize the effect of the regularizers in terms of symmetrizing the in-modal and cross-modal similarity matrices, as illustrated in Figure 2. Note that the optimal solution to the contrastive loss formulation would push the similarity between the normalized embeddings of the matched pairs towards 1 while forcing all other pairs of similarities to 0, thereby also symmetrizing the cross-modal similarity matrix and minimizing the cross-modal consistency loss. However, this idealized scenario does not occur in practice, and we find that explicit regularization via cycle-consistency in CYCLIP facilitates improved learning, as we show in our experiments.
|
| 90 |
+
|
| 91 |
+
# 3 Experiments
|
| 92 |
+
|
| 93 |
+
Setup: We use Conceptual Captions 3M [52] (CC3M) image-caption pairs as the source of multimodal pretraining data for all our models. Note while this dataset is smaller than the custom dataset (400 million pairs) used in the original work on CLIP [44], it is suitable for our available data and compute and has been used for benchmark evaluations in many subsequent works on language-image pretraining [5, 33, 37, 56]. Following prior work [44], our CLIP models use ResNet-50 as the image encoder and a transformer architecture as the text encoder. Further, we train our models from scratch for 64 epochs on 4 V100 GPUs with a batch size of 128 and an initial learning rate of 0.0005 with cosine scheduling and 10000 warmup steps. The dimension of the image and text embeddings is 1024. For CYCLIP, we use $\lambda _ { 1 } = 0 . 2 5$ and $\lambda _ { 2 } = 0 . 2 5$ across all our experiments.
|
| 94 |
+
|
| 95 |
+
# 3.1 Zero-Shot Transfer
|
| 96 |
+
|
| 97 |
+
We compare the zero-shot performance of CLIP and CYCLIP on standard image classification datasets: CIFAR-10, CIFAR-100 [31], and ImageNet1K [49]. We follow the evaluation strategy suggested by [44] for zero-shot classification using prompt engineering. For each dataset, we use the names of the classes to form a set of natural sentences such as ‘a photo of the $\{ \mathrm { c l a s s ~ n a m e } \} ^ { \mathrm { , } }$ , ‘a sketch of the {class name}’ and more. These are passed through the text encoder to get a set of text embeddings for that class. This set of text embeddings are $\ell _ { 2 }$ -normalized, averaged, and further $\ell _ { 2 }$ -normalized to obtain a single text embedding for that class. For a given image, the image embedding is obtained as described in $\ S 2$ . The class whose text embedding (as described above) is closest to the test image is taken to be the predicted label. The zero-shot performance of the models is presented in Table 1.
|
| 98 |
+
|
| 99 |
+
Table 1: Zero-shot TopK classification accuracy $( \% )$ where $\mathsf { K } \in \{ 1 , 3 , 5 \}$
|
| 100 |
+
|
| 101 |
+
<table><tr><td rowspan="2"></td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td><td colspan="3">ImageNet1K</td></tr><tr><td>Top1</td><td>Top3</td><td>Top5</td><td>Top1</td><td>Top3</td><td>Top5</td><td>Top1</td><td>Top3</td><td>Top5</td></tr><tr><td>CLIP</td><td>46.54</td><td>78.22</td><td>91.16</td><td>18.69</td><td>34.72</td><td>43.97</td><td>20.03</td><td>33.04</td><td>39.35</td></tr><tr><td>CYCLIP</td><td>51.45</td><td>79.57</td><td>91.80</td><td>23.15</td><td>41.46</td><td>50.66</td><td>22.08</td><td>35.98</td><td>42.30</td></tr><tr><td>%GAIN</td><td>+10.6</td><td>+1.7</td><td>+0.7</td><td>+23.9</td><td>+19.4</td><td>+15.2</td><td>+10.2</td><td>+8.9</td><td>+7.5</td></tr></table>
|
| 102 |
+
|
| 103 |
+
We observe that the CYCLIP outperforms CLIP across all the datasets and on all TopK metrics, with gains in the range of $1 0 \% - 2 4 \%$ for $\mathrm { K } = 1$ . Our results on zero-shot transfer indicate the usefulness of having geometrical consistency for improved downstream performance of CLIP.
|
| 104 |
+
|
| 105 |
+
# 3.2 Robustness to Natural Distribution Shifts
|
| 106 |
+
|
| 107 |
+
One of the major successes of CLIP was its state-of-the-art performance on the natural distribution shift benchmarks. These benchmarks include images depicting sketches, cartoons, adversaries generated using attacks on trained ImageNet models. In Table 2, we evaluate the zero-shot classification accuracy of CYCLIP on four natural distribution shift benchmarks for the ImageNet dataset: ImageNetV2 [48], ImageNetSketch [57], ImageNet-A [27], and ImageNet-R [25].
|
| 108 |
+
|
| 109 |
+
For most of the distribution shift benchmarks, both CLIP and CYCLIP undergo a significant reduction in their zero-shot performance compared to the original ImageNet1K dataset (last three columns in Table 1). However, we observe that CYCLIP outperforms CLIP on all of the datasets considered in this experiment by a significant margin of improvement $( 1 0 - 2 7 \% )$ ). This result indicates that having cyclic consistency in the learned representations preserves the robustness on the traditional datasets.
|
| 110 |
+
|
| 111 |
+
Table 2: Zeroshot Classification on Natural Distribution Shifts $( \% )$
|
| 112 |
+
|
| 113 |
+
<table><tr><td></td><td colspan="3">ImageNetV2</td><td colspan="3">ImageNetSketch</td><td colspan="3">ImageNet-A</td><td colspan="3">ImageNet-R</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>Top1 Top3 Top5 Top1 Top3 Top5 Top1 Top3 Top5 Top1 Top3 Top5</td><td></td><td></td><td></td><td></td></tr><tr><td>CLIP</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>16.91 29.28 34.99 10.37 19.15 24.20 4.2311.3516.88 24.32 39.69 47.20</td><td></td><td></td><td></td><td></td></tr><tr><td>CYCLIP 19.22 32.29 38.41 12.26 22.56 28.17 5.3513.53 19.51 26.79 42.31 50.03</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>%GAIN +13.7 +10.3 +9.8 +18.2 +17.8 +16.4 +26.5 +19.2 +15.6 +10.2 +6.6 +6.0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 114 |
+
|
| 115 |
+
# 3.3 Linear Probing
|
| 116 |
+
|
| 117 |
+
While the primary focus of CLIP and CYCLIP is zero-shot generalization, we can also assess if the benefits of our cyclic consistency constraints in mitigating inconsistency can be recovered with extra in-domain and in-modality supervision i.e., in the presence of in-distribution training samples from in-domain visual datasets. To this end, we conduct an additional experiments on linear probing where we fit a linear classifier on the representations learned by the visual encoder (ResNet-50) of CLIP and CYCLIP on a range of image classification datasets.
|
| 118 |
+
|
| 119 |
+
Table 3: Transfer CLIP and CYCLIP to 14 downstream visual datasets using linear probing. Our CYCLIP performs marginally better on 9 out of 14 datasets. For training ImageNet1K, we use a random subset of 50K images from its original training dataset.
|
| 120 |
+
|
| 121 |
+
<table><tr><td>iroiiir0 eeeee srtprtiois Crreaer CIPAAII1 CEIPRIPI0 DPodppttrt Arrit IorPoon TTSSP OITLS NH∧S 0 CLIP 79.80 78.26 54.85 59.02 28.00 83.50 54.44 69.72 35.93 57.66 53.82 20.00 89.23 47.28|</td></tr></table>
|
| 122 |
+
|
| 123 |
+
We present our results in Table 3. We find that both CLIP and CYCLIP can recover most of the performance lost due to inconsistency when provided extra in-domain and in-modality supervision, with CYCLIP marginally outperforming the CLIP on 9 out of 14 visual datasets.
|
| 124 |
+
|
| 125 |
+
# 4 Analysis
|
| 126 |
+
|
| 127 |
+
Previously, we demonstrated the gains of CYCLIP over CLIP on downstream tasks that involve joint reasoning over the image and text spaces. In the current section, we wish to better understand the relative behavior of the two models on a set of challenging tasks.
|
| 128 |
+
|
| 129 |
+
# 4.1 Consistency in Image and Text Spaces
|
| 130 |
+
|
| 131 |
+
We begin by quantitatively measuring the inconsistency problem illustrated in Figure 1. That is, we wish to evaluate to what extent are the predictions in the image-text space (zero-shot) consistent with the ones made purely within the image space, as measured by our consistency metric in Eq. 2.
|
| 132 |
+
|
| 133 |
+
Table 4 presents our results over standard benchmarks (CIFAR-10, CIFAR-100, ImageNet1K). The consistency score is calculated over 10K, 10K, and 50K testing images of the CIFAR-10, CIFAR-100 and ImageNet dataset respectively. We use 50K samples from the training set of each dataset for $\mathbf { k }$ -Nearest Neighbor prediction. CYCLIP is more consistent than CLIP across all the datasets as we explicitly symmetrize the cross-modal and in-modal distances. Hence, the representations learned by CYCLIP can be better used interchangeably than CLIP.
|
| 134 |
+
|
| 135 |
+
Table 4: Consistency score $( \% )$ trend for CLIP and CYCLIP across standard benchmarks . Top- $\mathbf { \nabla } \cdot \mathbf { k }$ consistency score implies the fraction of times, the zero-shot predicted label in the text space is identical to the k-Nearest Neighbor predicted label in the image space (using the training dataset).
|
| 136 |
+
|
| 137 |
+
<table><tr><td></td><td colspan="4">CIFAR-10</td><td colspan="4">CIFAR-100</td><td colspan="4">ImageNet1K</td></tr><tr><td></td><td></td><td>Top1 Top3Top5Top10 Top1</td><td></td><td></td><td></td><td></td><td></td><td>Top3Top5Top10 Top1 T</td><td></td><td></td><td></td><td>Top3Top5Top10</td></tr><tr><td>CLIP</td><td>44.60</td><td>46.04</td><td>47.06</td><td>48.45</td><td>16.21</td><td>17.28</td><td>18.42</td><td>19.36</td><td>16.34</td><td>17.42</td><td>18.58</td><td>19.78</td></tr><tr><td>CYCLIP</td><td>48.81</td><td>50.89</td><td>52.30</td><td>53.71</td><td>20.43</td><td>21.96</td><td>23.18</td><td>24.31</td><td>19.20</td><td>20.31</td><td></td><td>21.9523.94</td></tr><tr><td>%GAIN</td><td>+8.6</td><td>+9.5</td><td>+10.0</td><td>)+9.8</td><td>+20.7</td><td></td><td></td><td>+21.3 +20.5 +20.4</td><td>+14.9 +14.2 +15.4 +17.4</td><td></td><td></td><td></td></tr></table>
|
| 138 |
+
|
| 139 |
+
# 4.2 Fine-grained and Coarse-grained Performance
|
| 140 |
+
|
| 141 |
+
In $\ S 3 . 1$ , we observed that CYCLIP outperforms CLIP on zero-shot transfer across various datasets. We perform an error analysis investigating both models’ coarse and fine-grained classification performance to understand the transfer phenomena better. Given a hierarchical class structure dataset, coarse-grained classification differentiates between high-level (parent) classes, i.e., zeroshot classification into aquatic mammals and fish. The fine-grained classification task focuses on differentiating low-level (child) classes, i.e., zero-shot classification into a dolphin, otter, and seal (subclasses of aquatic mammals). We perform this analysis on the CIFAR-100, ImageNet1K, ImageNetV2, ImageNetSketch, ImageNet-A, and ImageNet-R datasets.
|
| 142 |
+
|
| 143 |
+
Formally, we consider a test set of $N$ image-subclass-superclass triplets, $\{ I _ { j } , C _ { j } , P _ { j } \} _ { j = 1 } ^ { N }$ , where $I _ { j }$ , $C _ { j }$ , $P _ { j }$ represent the image, the subclass (child) and superclass (parent) respectively. The image embedding $I _ { j } ^ { e } \in \mathbb { R } ^ { d }$ is obtained as described in $\ S 2$ , and the subclass embedding $C _ { j } ^ { e } \in \mathbb { R } ^ { d }$ and superclass embedding ${ P } _ { j } ^ { e } \in \mathbb { R } ^ { d }$ are obtained as described in $\ S 3 . 1$ . Let the total number of superclasses and subclasses in the dataset be $n _ { \mathrm { p } }$ and $n _ { \mathrm { c } }$ , respectively. Further, let $F$ be a unique mapping from a subclass to the superclass, and $\mho$ denote the inverse mapping from a superclass to the set of subclasses i.e. $\forall P \in \{ 1 , \cdot \cdot \cdot , n _ { \mathrm { p } } \}$ , $G ( P ) = \{ C : F ( C ) = P$ and $\mathbf { \bar { \it C } } \in \{ 1 , \dots , n _ { \mathrm { c } } \} \}$ . Under this setup, the fine-grained and coarse-grained accuracies are defined as:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\begin{array} { r l } & { \mathrm { F i n e - g r a i n e d ~ A c c u r a c y } = \displaystyle \frac { 1 } { N } \sum _ { j = 1 } ^ { N } 1 \left[ \mathrm { a r g m a x } \ \langle I _ { j } ^ { e } , C \rangle = C _ { j } \right] } \\ & { \mathrm { C o a r s e - g r a i n e d ~ A c c u r a c y } = \displaystyle \frac { 1 } { N } \sum _ { j = 1 } ^ { N } 1 \left[ \mathrm { a r g m a x } \ \langle I _ { j } ^ { e } , C \rangle \in G \left( P _ { j } \right) \right] } \end{array}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
In Figure 3 we visualize how CLIP and CYCLIP compare with each other on the above metrics. The difference between the zero-shot performance of CYCLIP and CLIP is much more significant for coarse-grained classification than fine-grained classification across all the datasets. This observation indicates that concept-level knowledge is better captured in CYCLIP compared to CLIP. The drastic difference in the coarse-grained performance of CYCLIP and CLIP may be attributed to the rigid separation that the default cross-entropy loss in CLIP enforces between the positive pairs and negative pairs, which might degrade performance when some pairs in the negative batch belong to a similar entity. However, CYCLIP does not suffer from this problem as much because it poses cycle constraints on the overall geometry of all the data pairs rather than forcing a rigid separation.
|
| 150 |
+
|
| 151 |
+
# 4.3 Alignment and Uniformity on the Unit Hypersphere
|
| 152 |
+
|
| 153 |
+
[58] argues that contrastive learning directly optimizes for (a) alignment (closeness) of the representations of the positive pairs and (b) uniformity (coverage) of the representation space on the unit hypersphere. We extend these properties for multimodal contrastive representation learning as:
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\mathrm { A l i g n m e n t } = \frac { 1 } { N } \sum _ { j = 1 } ^ { N } \langle I _ { j } ^ { e } , T _ { j } ^ { e } \rangle \qquad \mathrm { U n i f o r m i t y } = \log \left( \frac { 1 } { N ( N - 1 ) } \sum _ { j = 1 } ^ { N } \sum _ { k = 1 , j \neq k } ^ { N } e ^ { - \langle I _ { j } ^ { e } , T _ { k } ^ { e } \rangle } \right)
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 3: The gap between the performances of CLIP and CYCLIP is much larger in coarse-grained scenario highlighting better entity-level knowledge representation in CYCLIP.
|
| 161 |
+
|
| 162 |
+
We desire our models to achieve high alignment and uniformity scores so that the image-text representations are close for the matched pairs and better spread over the unit hypersphere for different categories. We analyze the effect of cross-modal and in-modal consistency on the alignment and uniformity of the shared representations. For this, we train two ablated versions of CYCLIP, 1) C-CYCLIP with only cross-modal consistency component i.e. $\lambda _ { 1 } = 0 , \lambda _ { 2 } = 0 . 5$ , and 2) I-CYCLIP with only in-modal consistency component i.e. $\lambda _ { 1 } = 0 . 5 , \lambda _ { 2 } = 0$ (in Eq. 5). We design proxy captions for classes as discussed in $\ S 3 . 1$ to act as text embeddings. We present the results in Table 5.
|
| 163 |
+
|
| 164 |
+
Table 5: Alignment and Uniformity values for CLIP and Cyclic CLIP models. We abbreviate Alignment by A, Uniformity by U, and Zero-shot Top1 classification accuracy $( \% )$ by ZS-Top1.
|
| 165 |
+
|
| 166 |
+
<table><tr><td rowspan="2">Model</td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td><td colspan="3">ImageNet1K</td></tr><tr><td>A</td><td>U</td><td>ZS-Top1</td><td>A</td><td>U</td><td>ZS-Top1</td><td>A</td><td>U</td><td>ZS-Top1</td></tr><tr><td>CLIP</td><td>0.36</td><td>-0.27</td><td>46.54</td><td>0.36</td><td>-0.25</td><td>18.69</td><td>0.39</td><td>-0.18</td><td>20.03</td></tr><tr><td>CYCLIP</td><td>0.36</td><td>-0.34</td><td>51.45</td><td>0.37</td><td>-0.33</td><td>23.15</td><td>0.38</td><td>-0.32</td><td>22.08</td></tr><tr><td>I-CYCLIP</td><td>0.60</td><td>-0.57</td><td>50.97</td><td>0.60</td><td>-0.57</td><td>22.35</td><td>0.61</td><td>-0.55</td><td>21.21</td></tr><tr><td>C-CYCLIP</td><td>0.05</td><td>-0.02</td><td>55.52</td><td>0.06</td><td>-0.02</td><td>25.49</td><td>0.07</td><td>-0.02</td><td>21.73</td></tr></table>
|
| 167 |
+
|
| 168 |
+
We observe that I-CYCLIP learns representations that are better aligned in the representation space; however, they do not cover the hypersphere uniformly. The representations learned by C-CYCLIP are more uniformly spread but poorly aligned compared to I-CYCLIP. In this light, the components of CYCLIP can be seen to encourage a balance of good alignment and uniformity. Further, we find that CLIP is more uniform than CYCLIP in all datasets, but contrary to prior beliefs, this does not translate to improved downstream performance. C-CYCLIP has the best downstream zero-shot performance for CIFAR-10 and CIFAR-100 despite its poor alignment score. Further, all 3 variants of CYCLIP outperform CLIP on all 3 datasets, with CYCLIP performing the best on ImageNet1K.
|
| 169 |
+
|
| 170 |
+
# 4.4 Image-Text Retrieval
|
| 171 |
+
|
| 172 |
+
We evaluate the effectiveness of the proposed method on the cross-modal (image to text and text to image) retrieval downstream task in the zero-shot as well as fine-tuned settings. We consider the standard benchmark datasets: Flickr30K [42] and MSCOCO [8]. We assess our models on the test set of Flickr30K (1K) and MSCOCO (5K) obtained from the well-known Karpathy [30] split. Both the datasets contains 5 paired captions per image that makes text retrieval per image more easier than image retrieval per caption. We confirm the same in our results below. We perform fine-tuning on the Karpathy’s training split with the batch size of 48. We fine-tune on Flick30K for 10 epochs and MSCOCO for 5 epochs. All the other hyperparameters are identical to that of pre-training.
|
| 173 |
+
|
| 174 |
+
Table 6: Zero-shot and fine-tuned cross-modal image-text retrieval (text-to-image and image-to-text) results of CLIP and CYCLIP on Flick30K and MSCOCO datasets.
|
| 175 |
+
|
| 176 |
+
<table><tr><td rowspan="3"></td><td rowspan="3"></td><td colspan="4">Flickr30K (1K)</td><td colspan="4">MSCOCO (5K)</td></tr><tr><td colspan="2">Text Retrieval</td><td colspan="2">Image Retrieval</td><td colspan="2">Text Retrieval</td><td colspan="2">Image I Retrieval</td></tr><tr><td> R@1 R@5 R@10 R@1 R@5 R@10 R@1 R@5 R@10 R@1 R@5 R@10</td><td></td><td colspan="2"></td><td></td><td></td><td></td><td></td></tr><tr><td>Zero-shot</td><td>CLIP CyCLIP</td><td>88.2 93.9 88.1 93.7</td><td>95.8</td><td>29.9 57.2</td><td>68.0</td><td>82.1 85.6</td><td>87.8</td><td>8.4 19.5</td><td>26.6</td></tr><tr><td></td><td></td><td></td><td></td><td>95.9 30.9</td><td>57.8</td><td>69.1 82.1</td><td>85.6</td><td>87.7</td><td>8.6 20.0</td><td>27.0</td></tr><tr><td>Fine-tuned</td><td>CLIP</td><td>91.9</td><td>97.0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>98.0 46.3</td><td>74.7</td><td>83.6 83.2</td><td>87.6</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>90.0</td><td>10.6 23.9</td><td>31.3</td></tr><tr><td></td><td>CYCLIP</td><td>92.3</td><td>97.0</td><td>98.4</td><td>47.3</td><td>83.2</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>76.6</td><td>85.4</td><td>87.8</td><td>90.3</td><td>11.4 25.8</td><td>33.4</td></tr><tr><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></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 177 |
+
|
| 178 |
+
Table 6 presents our cross-modal image-text retrieval results for CLIP and CYCLIP. In the zero-shot setting, we find that CYCLIP marginally outperforms CLIP on the image retrieval task on both the datasets. The relatively lower performance of both CLIP and CYCLIP in the zero-shot setting may be attributed to the more complicated nature of the two datasets where the models are expected to find similarities between the image and text at multiple resolutions as opposed to image classification where there is mostly single object to be matched with a simpler caption. It is not clear as to what distinctions in the raw input and text space are reflected in the embedding space too. Hence, we perform fine-tuning on both the datasets to better inform our models of the downstream datasets. In the fine-tuning setting, we find that the performance of both the models increases across both the datasets. However, we observe clear benefits of the soft consistent regularization on the image retrieval results for both the datasets.
|
| 179 |
+
|
| 180 |
+
# 4.5 CYCLIP preserves the Effective Robustness of CLIP
|
| 181 |
+
|
| 182 |
+
[36] shows that there is a strong correlation between the in-distribution and out-of-distribution generalization of the models trained on ImageNet1K, as illustrated by the linear fit (red) in Figure 4. Ideally, any model that does not undergo distribution shift would fall on the $y = x$ trendline (black). For other models, the deviations of the models from this ideal fit indicate their effective robustness. Previously, [45] showed that the zero-shot CLIP classifier trained on 400M image-text pairs improves effective robustness significantly compared to prior approaches to robustness. Subsequently, [28] demonstrated that CLIP models trained at small scales also exhibit high effective robustness that allows them to be used as a proxy to study the robustness properties of CLIP.
|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
Figure 4: Effect of varying the training dataset size on (a) Classification accuracy on ImageNet1K and (b) Effective Robustness on ImageNetV2.
|
| 186 |
+
|
| 187 |
+
We evaluate the effect of cyclic consistency on effective robustness. We trained 4 CLIP and CYCLIP models, varying the training dataset sizes from 500K to 4M image-text pairs from the $\mathrm { C C 3 M + }$ CC12M datasets. In Figure 4, (a) we observe that for all training data sizes, CYCLIP shows a significant improvement over CLIP, showcasing its effectiveness in a diverse set of data regimes. Further, Figure 4 (b) shows that CYCLIP lies way above the baseline trend and preserves the effective robustness of CLIP.
|
| 188 |
+
|
| 189 |
+
# 5 Related Work
|
| 190 |
+
|
| 191 |
+
Our work fits into the broader theme of unsupervised pretraining with multiple modalities and has been successfully applied for learning representations of modalities such as images, text, and speech [2, 15, 1, 59, 43, 34]. Similar to the unimodal setting, two predominant approaches for multimodal pretraining are contrastive and generative, as described below.
|
| 192 |
+
|
| 193 |
+
Contrastive Representation Learning: Contrastive learning was originally proposed for selfsupervised representation learning in the unimodal context where the embeddings of a sample are brought closer to an augmented version of the sample. In contrast, the embeddings are pushed away for other samples, and their augmentation [11, 51, 39, 55, 21, 7, 16, 40, 66, 23, 18]. [63] and [3] impose additional constraints to remove redundancies and prevent dimensional collapse in the visual representations. Recently, contrastive learning has also been used to learn robust representations of the multimodal data [62, 47]. Many works use additional losses to imbibe extra supervisory multimodal knowledge during the training process [54, 65, 64, 14, 35]. In this work, we focus on having cyclic consistency in addition to the contrastive loss to learn more robust image-text representations.
|
| 194 |
+
|
| 195 |
+
Contrastive Language-Image Pretraining: CLIP [44], ALIGN [29] and BASIC [41] have enjoyed great success in extending contrastive learning to paired image-text data, with impressive zero-shot classification and robustness performance. These works have been further extended recently to include visual self-supervision [37], additional nearest neighbor supervision [33], and utilization of unpaired data [56]. Our work complements much of this literature as it identifies consistency regularizers that can be augmented to the learning objective of the above works.
|
| 196 |
+
|
| 197 |
+
Generative Representation Learning: Generative models have been applied for learning representations of multimodal data [60, 53]. In particular, [67, 61, 10] proposed a notion of cyclic consistency for learning from unpaired multimodal data using GANs [17], which was extended later to normalizing flows [20, 19]. While these works focus on regularizing a generative mapping between modalities, our notion of cycle consistency applies to embeddings learned via a contrastive framework.
|
| 198 |
+
|
| 199 |
+
# 6 Conclusion
|
| 200 |
+
|
| 201 |
+
We presented CYCLIP, a framework for cycle consistent multimodal representation learning for image and text modality. The main benefits of CYCLIP stem from including cross-modal consistency and in-modal consistency regularizers to prevent inconsistent inference in the image and text spaces. Empirically, we show that CYCLIP performs much better than CLIP on zero-shot classification and is more robust on benchmarks for distributional robustness. We also showed that the representations learned by CYCLIP are more consistent than CLIP and better capture concept-level knowledge, as evidenced by our analysis of fine-grained and coarse-grained accuracies.
|
| 202 |
+
|
| 203 |
+
We believe this work can motivate further studies on understanding the geometry of the representation spaces learned via the contrastive objective applied to paired multimodal data and, in particular, identify conditions and regularization strategies under which the learned representations are synergistic across the various modalities for downstream applications.
|
| 204 |
+
|
| 205 |
+
One important future direction and a current limitation is scaling CYCLIP to larger datasets. While we do not possess the resources for this study, it is imperative to study the extent to which the benefits of cycle consistency remain at the scale on which the original CLIP was trained (400M image-text pairs). Finally, for real-world deployment of CLIP and their variants, such as CYCLIP, we need to be cautious about amplifying societal biases as these models are trained on large uncurated datasets scraped from the web [9]. Additionally, it is easy to add malicious data to the web, which poses a severe security threat [5]. Alleviating such harms is an important and active area of research.
|
| 206 |
+
|
| 207 |
+
# Acknowledgements
|
| 208 |
+
|
| 209 |
+
This research is supported by an Adobe Data Science Research Award for Aditya Grover. We would like to thank the IDRE’s Research Technology group for the GPU computing resources on the UCLA Hoffman2 Cluster. We also want to thank Tung Duc Nguyen, Satvik Mashkaria, Siddarth Krishnamoorthy, Varuni Sarwal, and Ashima Suvarna for their helpful suggestions.
|
| 210 |
+
|
| 211 |
+
References
|
| 212 |
+
[1] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. See, hear, and read: Deep aligned representations. arXiv preprint arXiv:1706.00932, 2017.
|
| 213 |
+
[2] Tadas Baltrušaitis, Chaitanya Ahuja, and Louis-Philippe Morency. Multimodal machine learning: A survey and taxonomy. IEEE transactions on pattern analysis and machine intelligence, 41(2):423–443, 2018.
|
| 214 |
+
[3] Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021.
|
| 215 |
+
[4] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798– 1828, 2013.
|
| 216 |
+
[5] Nicholas Carlini and Andreas Terzis. Poisoning and backdooring contrastive learning. arXiv preprint arXiv:2106.09667, 2021.
|
| 217 |
+
[6] Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual $1 2 \mathrm { m }$ : Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3558–3568, 2021.
|
| 218 |
+
[7] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020.
|
| 219 |
+
[8] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015.
|
| 220 |
+
[9] Jaemin Cho, Abhay Zala, and Mohit Bansal. Dall-eval: Probing the reasoning skills and social biases of text-to-image generative transformers. arXiv preprint arXiv:2202.04053, 2022.
|
| 221 |
+
[10] Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8789–8797, 2018.
|
| 222 |
+
[11] Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 1, pages 539–546. IEEE, 2005.
|
| 223 |
+
[12] Katherine Crowson, Stella Rose Biderman, Daniel Kornis, Dashiell Stander, Eric Hallahan, Louis Castricato, and Edward Raff. Vqgan-clip: Open domain image generation and editing with natural language guidance. ArXiv, abs/2204.08583, 2022.
|
| 224 |
+
[13] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A largescale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009.
|
| 225 |
+
[14] Karan Desai and Justin Johnson. Virtex: Learning visual representations from textual annotations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11162–11173, 2021.
|
| 226 |
+
[15] Jiali Duan, Liqun Chen, Son Tran, Jinyu Yang, Yi Xu, Belinda Zeng, Chenyang Tao, and Trishul Chilimbi. Multi-modal alignment using representation codebook. arXiv:2203.00048, 2022.
|
| 227 |
+
[16] Tianyu Gao, Xingcheng Yao, and Danqi Chen. Simcse: Simple contrastive learning of sentence embeddings. arXiv preprint arXiv:2104.08821, 2021.
|
| 228 |
+
[17] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014.
|
| 229 |
+
|
| 230 |
+
[18] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in Neural Information Processing Systems, 33:21271–21284, 2020.
|
| 231 |
+
|
| 232 |
+
[19] Aditya Grover, Christopher Chute, Rui Shu, Zhangjie Cao, and Stefano Ermon. Alignflow: Cycle consistent learning from multiple domains via normalizing flows. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4028–4035, 2020.
|
| 233 |
+
|
| 234 |
+
[20] Aditya Grover, Manik Dhar, and Stefano Ermon. Flow-gan: Combining maximum likelihood and adversarial learning in generative models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
|
| 235 |
+
|
| 236 |
+
[21] Michael Gutmann and Aapo Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 297–304. JMLR Workshop and Conference Proceedings, 2010.
|
| 237 |
+
|
| 238 |
+
[22] Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 2, pages 1735–1742. IEEE, 2006.
|
| 239 |
+
|
| 240 |
+
[23] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9729–9738, 2020.
|
| 241 |
+
|
| 242 |
+
[24] 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. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8340–8349, 2021.
|
| 243 |
+
|
| 244 |
+
[25] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Lixuan Zhu, Samyak Parajuli, Mike Guo, Dawn Xiaodong Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-ofdistribution generalization. 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 8320–8329, 2021.
|
| 245 |
+
|
| 246 |
+
[26] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15262–15271, 2021.
|
| 247 |
+
|
| 248 |
+
[27] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Xiaodong Song. Natural adversarial examples. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15257–15266, 2021.
|
| 249 |
+
|
| 250 |
+
[28] Gabriel Ilharco, Mitchell Wortsman, Ross Wightman, Cade Gordon, Nicholas Carlini, Rohan Taori, Achal Dave, Vaishaal Shankar, Hongseok Namkoong, John Miller, Hannaneh Hajishirzi, Ali Farhadi, and Ludwig Schmidt. Openclip. Zenodo, July 2021. If you use this software, please cite it as below.
|
| 251 |
+
|
| 252 |
+
[29] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, YunHsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. In International Conference on Machine Learning, pages 4904–4916. PMLR, 2021.
|
| 253 |
+
|
| 254 |
+
[30] Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3128–3137, 2015.
|
| 255 |
+
|
| 256 |
+
[31] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Citeseer, 2009.
|
| 257 |
+
|
| 258 |
+
[32] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436–444, 2015.
|
| 259 |
+
|
| 260 |
+
[33] Yangguang Li, Feng Liang, Lichen Zhao, Yufeng Cui, Wanli Ouyang, Jing Shao, Fengwei Yu, and Junjie Yan. Supervision exists everywhere: A data efficient contrastive language-image pre-training paradigm. arXiv:2110.05208, 2021.
|
| 261 |
+
[34] Kevin Lu, Aditya Grover, Pieter Abbeel, and Igor Mordatch. Pretrained transformers as universal computation engines. arXiv preprint arXiv:2103.05247, 2021.
|
| 262 |
+
[35] Sijie Mai, Ying Zeng, Shuangjia Zheng, and Haifeng Hu. Hybrid contrastive learning of tri-modal representation for multimodal sentiment analysis. arXiv:2109.01797, 2021.
|
| 263 |
+
[36] John P Miller, Rohan Taori, Aditi Raghunathan, Shiori Sagawa, Pang Wei Koh, Vaishaal Shankar, Percy Liang, Yair Carmon, and Ludwig Schmidt. Accuracy on the line: on the strong correlation between out-of-distribution and in-distribution generalization. In International Conference on Machine Learning, pages 7721–7735. PMLR, 2021.
|
| 264 |
+
[37] Norman Mu, Alexander Kirillov, David Wagner, and Saining Xie. Slip: Self-supervision meets language-image pre-training. arXiv:2112.12750, 2021.
|
| 265 |
+
[38] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv:2112.10741, 2021.
|
| 266 |
+
[39] Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4004–4012, 2016.
|
| 267 |
+
[40] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 268 |
+
[41] Hieu Pham, Zihang Dai, Golnaz Ghiasi, Hanxiao Liu, Adams Wei Yu, Minh-Thang Luong, Mingxing Tan, and Quoc V Le. Combined scaling for zero-shot transfer learning. arXiv preprint arXiv:2111.10050, 2021.
|
| 269 |
+
[42] Bryan A Plummer, Liwei Wang, Chris M Cervantes, Juan C Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE international conference on computer vision, pages 2641–2649, 2015.
|
| 270 |
+
[43] Ariadna Quattoni, Michael Collins, and Trevor Darrell. Learning visual representations using images with captions. In 2007 IEEE Conference on Computer Vision and Pattern Recognition, pages 1–8. IEEE, 2007.
|
| 271 |
+
[44] 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. In International Conference on Machine Learning, pages 8748–8763. PMLR, 2021.
|
| 272 |
+
[45] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 273 |
+
[46] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
|
| 274 |
+
[47] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning, pages 8821–8831. PMLR, 2021.
|
| 275 |
+
[48] 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.
|
| 276 |
+
[49] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
|
| 277 |
+
|
| 278 |
+
[50] Aditya Sanghi, Hang Chu, Joseph G Lambourne, Ye Wang, Chin-Yi Cheng, and Marco Fumero. Clip-forge: Towards zero-shot text-to-shape generation. arXiv preprint arXiv:2110.02624, 2021.
|
| 279 |
+
|
| 280 |
+
[51] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815–823, 2015.
|
| 281 |
+
|
| 282 |
+
[52] 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.
|
| 283 |
+
|
| 284 |
+
[53] Yuge Shi, Brooks Paige, Philip Torr, et al. Variational mixture-of-experts autoencoders for multi-modal deep generative models. Advances in Neural Information Processing Systems, 32, 2019.
|
| 285 |
+
|
| 286 |
+
[54] Amanpreet Singh, Ronghang Hu, Vedanuj Goswami, Guillaume Couairon, Wojciech Galuba, Marcus Rohrbach, and Douwe Kiela. Flava: A foundational language and vision alignment model. arXiv preprint arXiv:2112.04482, 2021.
|
| 287 |
+
|
| 288 |
+
[55] Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. Advances in neural information processing systems, 29, 2016.
|
| 289 |
+
|
| 290 |
+
[56] Ajinkya Tejankar, Bichen Wu, Saining Xie, Madian Khabsa, Hamed Pirsiavash, and Hamed Firooz. A fistful of words: Learning transferable visual models from bag-of-words supervision. arXiv:2112.13884, 2021.
|
| 291 |
+
|
| 292 |
+
[57] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. Advances in Neural Information Processing Systems, 32, 2019.
|
| 293 |
+
|
| 294 |
+
[58] Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In ICML, 2020.
|
| 295 |
+
|
| 296 |
+
[59] Wenhui Wang, Hangbo Bao, Li Dong, and Furu Wei. Vlmo: Unified vision-language pretraining with mixture-of-modality-experts. arXiv preprint arXiv:2111.02358, 2021.
|
| 297 |
+
|
| 298 |
+
[60] Mike Wu and Noah Goodman. Multimodal generative models for scalable weakly-supervised learning. Advances in Neural Information Processing Systems, 31, 2018.
|
| 299 |
+
|
| 300 |
+
[61] Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. Dualgan: Unsupervised dual learning for image-to-image translation. In Proceedings of the IEEE international conference on computer vision, pages 2849–2857, 2017.
|
| 301 |
+
|
| 302 |
+
[62] Xin Yuan, Zhe Lin, Jason Kuen, Jianming Zhang, Yilin Wang, Michael Maire, Ajinkya Kale, and Baldo Faieta. Multimodal contrastive training for visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6995–7004, 2021.
|
| 303 |
+
|
| 304 |
+
[63] Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stéphane Deny. Barlow twins: Selfsupervised learning via redundancy reduction. In International Conference on Machine Learning, pages 12310–12320. PMLR, 2021.
|
| 305 |
+
|
| 306 |
+
[64] Rowan Zellers, Ximing Lu, Jack Hessel, Youngjae Yu, Jae Sung Park, Jize Cao, Ali Farhadi, and Yejin Choi. Merlot: Multimodal neural script knowledge models. Advances in Neural Information Processing Systems, 34, 2021.
|
| 307 |
+
|
| 308 |
+
[65] Pengchuan Zhang, Xiujun Li, Xiaowei Hu, Jianwei Yang, Lei Zhang, Lijuan Wang, Yejin Choi, and Jianfeng Gao. Vinvl: Revisiting visual representations in vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5579–5588, 2021.
|
| 309 |
+
|
| 310 |
+
[66] Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. arXiv preprint arXiv:2010.00747, 2020.
|
| 311 |
+
[67] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223–2232, 2017.
|
| 312 |
+
|
| 313 |
+
# Checklist
|
| 314 |
+
|
| 315 |
+
1. For all authors...
|
| 316 |
+
|
| 317 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 318 |
+
(b) Did you describe the limitations of your work? [Yes] Section 6.
|
| 319 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] Section 6.
|
| 320 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 321 |
+
|
| 322 |
+
2. If you are including theoretical results...
|
| 323 |
+
|
| 324 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 325 |
+
|
| 326 |
+
3. If you ran experiments...
|
| 327 |
+
|
| 328 |
+
(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]
|
| 329 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 330 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Due to extremely-compute heavy experiments.
|
| 331 |
+
(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]
|
| 332 |
+
|
| 333 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 334 |
+
|
| 335 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 336 |
+
(b) Did you mention the license of the assets? [No] All the non-proprietary datasets and code used are public under MIT, BSD or CC licenses.
|
| 337 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 338 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 339 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 340 |
+
|
| 341 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 342 |
+
|
| 343 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 344 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 345 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_content_list.json
ADDED
|
@@ -0,0 +1,1601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Shashank Goel∗ UCLA shashankgoel@ucla.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
205,
|
| 19 |
+
226,
|
| 20 |
+
387,
|
| 21 |
+
268
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Hritik Bansal∗ UCLA hbansal@ucla.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
423,
|
| 30 |
+
226,
|
| 31 |
+
563,
|
| 32 |
+
267
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Sumit Bhatia MDSR Lab, Adobe Systems sumit.bhatia@adobe.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
602,
|
| 41 |
+
226,
|
| 42 |
+
792,
|
| 43 |
+
267
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Ryan A. Rossi Adobe Research ryrossi@adobe.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
222,
|
| 52 |
+
289,
|
| 53 |
+
370,
|
| 54 |
+
332
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Vishwa Vinay Adobe Research vinay@adobe.com ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
424,
|
| 63 |
+
289,
|
| 64 |
+
555,
|
| 65 |
+
330
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Aditya Grover UCLA adityag@cs.ucla.edu ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
609,
|
| 74 |
+
289,
|
| 75 |
+
776,
|
| 76 |
+
332
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract ",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
462,
|
| 86 |
+
367,
|
| 87 |
+
535,
|
| 88 |
+
382
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Recent advances in contrastive representation learning over paired image-text data have led to models such as CLIP [44] that achieve state-of-the-art performance for zero-shot classification and distributional robustness. Such models typically require joint reasoning in the image and text representation spaces for downstream inference tasks. Contrary to prior beliefs, we demonstrate that the image and text representations learned via a standard contrastive objective are not interchangeable and can lead to inconsistent downstream predictions. To mitigate this issue, we formalize consistency and propose CYCLIP, a framework for contrastive representation learning that explicitly optimizes for the learned representations to be geometrically consistent in the image and text space. In particular, we show that consistent representations can be learned by explicitly symmetrizing (a) the similarity between the two mismatched image-text pairs (cross-modal consistency); and (b) the similarity between the image-image pair and the text-text pair (in-modal consistency). Empirically, we show that the improved consistency in CYCLIP translates to significant gains over CLIP, with gains ranging from $1 \\dot { 0 } \\% - 2 4 \\%$ for zero-shot classification accuracy on standard benchmarks (CIFAR-10, CIFAR-100, ImageNet1K) and $1 0 \\% - 2 7 \\%$ for robustness to various natural distribution shifts. The code is available at https://github.com/goel-shashank/CyCLIP. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
233,
|
| 97 |
+
398,
|
| 98 |
+
766,
|
| 99 |
+
647
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction ",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
672,
|
| 110 |
+
310,
|
| 111 |
+
689
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The ability to learn general-purpose representations from diverse data modalities is a long-standing goal of artificial intelligence (AI) [4, 32]. In this regard, recent instantiations such as CLIP [44], ALIGN [29], and BASIC [41] have scaled up vision-language contrastive pretraining to jointly learn image and text embeddings, by exploiting an enormous amount of paired image-text data on the web. Post pretraining, these embeddings exhibit impressive zero-shot classification performance [13] and robustness to natural distribution shifts [48, 57, 24, 26]. Recently, these embeddings have been extended to text-guided generation of natural images [47, 12, 38, 46] and transferred to modalities such as 3-D shapes [50] by emphasizing the interchangeability of the image and text embeddings. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
705,
|
| 121 |
+
825,
|
| 122 |
+
816
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In the context of vision-language pretraining, the standard contrastive learning objective aims to maximize the similarity between matched image-text pairs (“positives\") against all the mismatched image-text pairs (“negatives\") [45, 7, 40, 22]. While such an objective aligns the true image-text pairs, it poses no constraints on the overall geometry of all data pairs, including the mismatched pairs and pairs within the same modality. In Figure 1 (a), we illustrate this effect where matched image-text pairs, $( I _ { \\mathrm { d o g } } , T _ { \\mathrm { d o g } } )$ and $( I _ { \\mathrm { c a t } } , T _ { \\mathrm { c a t } } )$ , get close to each other but the overall geometry of pairwise distances can be highly irregular (see e.g., $( I _ { \\mathrm { d o g } } , T _ { \\mathrm { c a t } } )$ and $( I _ { \\mathrm { c a t } } , T _ { \\mathrm { d o g } } ) )$ . If we use such representations for downstream inference, such irregularities can translate into inconsistent reasoning in the image and text spaces. For example, CLIP designs proxy captions for class labels and uses the most similar class caption to perform zero-shot classification for images; using the default captions in Figure 1 (a), this would imply that a test image $I _ { \\mathrm { t e s t } }$ gets classified as a dog in the image space even when a simple nearest neighbor classifier in the text space would correctly infer the label to be a cat. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
821,
|
| 132 |
+
823,
|
| 133 |
+
878
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/113dedcfa7f5e22fc188dc3390117ab472deeaa1e0b6883316da098994bce5ea.jpg",
|
| 140 |
+
"image_caption": [
|
| 141 |
+
"Figure 1: An illustration of the planar geometry of the learned representations of image-text pairs by (a) CLIP and (b) CYCLIP. The edges indicate the distance between the representations i.e., $\\dot { d ( e _ { 1 } , e _ { 2 } ) } = 1 - \\langle e _ { 1 } , e _ { 2 } \\rangle$ , where $\\langle \\cdot , \\cdot \\rangle$ is the inner product. CYCLIP is cyclic consistent between image-text pairs as the in-modal distances, $d ( T _ { \\mathrm { c a t } } , T _ { \\mathrm { d o g } } ) \\sim d ( I _ { \\mathrm { c a t } } , I _ { \\mathrm { d o g } } )$ , and the cross-modal distances, $d ( \\bar { T _ { \\mathrm { c a t } } } , \\bar { I _ { \\mathrm { d o g } } } ) ~ \\sim ~ d ( \\bar { I _ { \\mathrm { c a t } } } , \\bar { T _ { \\mathrm { d o g } } } )$ , are similar to each other unlike CLIP. Due to explicit consistency constraints, the test image of a cat is classified as a cat in the image as well as the text space. "
|
| 142 |
+
],
|
| 143 |
+
"image_footnote": [],
|
| 144 |
+
"bbox": [
|
| 145 |
+
178,
|
| 146 |
+
89,
|
| 147 |
+
826,
|
| 148 |
+
335
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
460,
|
| 158 |
+
825,
|
| 159 |
+
571
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "To mitigate these challenges, we propose Cyclic Contrastive Language-Image Pretraining (CYCLIP), a framework that imposes additional geometric structure on the learned representations. Specifically, given two image-text pairs, we augment the contrastive learning objective with two symmetrization terms. The first term provides for in-modal consistency by encouraging the distance between the two image embeddings to be close to the distance between the corresponding text embeddings. The second term for the cross-modal consistency that encourages the distance between the image and text embedding from the first and second pairs respectively to be close to the distance between the text and image embeddings from the first and second pairs respectively. As shown in Figure 1 (b), if representations of any two image-text pairs, $( I _ { \\mathrm { d o g } } , T _ { \\mathrm { d o g } } )$ and $( \\dot { I } _ { \\mathrm { c a t } } , T _ { \\mathrm { c a t } } )$ exactly satisfy both forms of cyclic consistency, then we can guarantee that any test image $I _ { \\mathrm { t e s t } }$ respects the ordering of distances in both image and text spaces (i.e., if $d ( I _ { \\mathrm { t e s t } } , I _ { \\mathrm { d o g } } ) > d ( I _ { \\mathrm { t e s t } } , I _ { \\mathrm { c a t } } )$ , then $d ( I _ { \\mathrm { t e s t } } , T _ { \\mathrm { d o g } } ) > d ( I _ { t e s t } , T _ { \\mathrm { c a t } } ) )$ . ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
173,
|
| 168 |
+
577,
|
| 169 |
+
825,
|
| 170 |
+
731
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Empirically, we demonstrate that the improved consistency in CYCLIP translates to improvements over CLIP. In all cases, we pre-train our models on the Conceptual Captions 3M dataset[52]. On zero-shot classification, we observe that CYCLIP improves over CLIP by $1 0 . 2 \\%$ on ImageNet1K, $1 0 . 6 \\%$ on CIFAR-10 and $2 3 . 9 \\%$ on CIFAR-100 respectively. Further, CYCLIP outperforms CLIP with an average relative gain of $+ 1 7 \\%$ on ImageNet natural distribution shift benchmarks. We further analyze the improved performance of CYCLIP and find that the additional geometric structure in the representation space better captures the coarse and fine-grained concept hierarchies of datasets. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
736,
|
| 180 |
+
825,
|
| 181 |
+
833
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "Our contributions are as follows: ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
839,
|
| 191 |
+
390,
|
| 192 |
+
853
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "1. We analyze contrastive learning for representation learning jointly over image and text modalities. We identify a critical shortcoming in the geometry of the learned representation space that can lead to inconsistent predictions in image and text domains. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
214,
|
| 201 |
+
869,
|
| 202 |
+
823,
|
| 203 |
+
911
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2. We propose CYCLIP, a simple and effective framework for contrastive representation learning with two additional cycle consistency constraints for mitigating the above issue. 3. We demonstrate that CYCLIP achieves significant empirical improvements over CLIP on zero-shot classification and robustness benchmarks. We further explain these improvements by analyzing the impact of consistency on the hierarchical structure of datasets. ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
207,
|
| 212 |
+
90,
|
| 213 |
+
826,
|
| 214 |
+
167
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "2 Cycle Consistent Representation Learning ",
|
| 221 |
+
"text_level": 1,
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
186,
|
| 225 |
+
558,
|
| 226 |
+
205
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "2.1 Preliminaries ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
220,
|
| 237 |
+
307,
|
| 238 |
+
236
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "We are interested in using text supervision to learn general-purpose visual representations that can be generalized to downstream predictive tasks. To this end, there have been several recent advances in language-image pretraining concerning model architectures, training objectives, and sources of supervision. Our work is most closely related to Contrastive Language-Image Pretraining (CLIP) [44] which combines many such advances in a highly scalable and generalizable learning framework. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
247,
|
| 248 |
+
825,
|
| 249 |
+
316
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "CLIP is trained on millions of images with their captions scraped from the web. Formally, we consider a dataset $S \\subset \\mathcal { T } \\times \\mathcal { T }$ consisting of pairs $( I _ { j } , T _ { j } )$ where $I _ { j }$ is a raw image and $T _ { j }$ is a text caption. We use $\\mathcal { T }$ and $\\tau$ to denote the domain of images and text, respectively. The CLIP architecture consists of 3 components: (i) an image encoder network, $f _ { I } : \\mathcal { T } \\mapsto \\mathbb { R } ^ { d }$ , to encode the raw image into an embedding vector of dimension $d$ , (ii) a text encoder network, $f _ { T } : T \\mapsto \\mathbb { R } ^ { d }$ , to encode the raw text into an embedding vector of dimension $d$ , (iii) a contrastive objective that pulls the embeddings of paired image-caption pairs together while pushing apart embeddings of unmatched pairs. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
321,
|
| 259 |
+
825,
|
| 260 |
+
421
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Formally, during training, consider a batch of $N$ image-captions pairs, $\\{ I _ { j } , T _ { j } \\} _ { j = 1 } ^ { N }$ , where $I _ { j }$ and $T _ { j }$ represent the raw image and text pair, respectively. The image embedding $\\bar { I } _ { j } ^ { e } \\in \\mathbb { R } ^ { d }$ and text embedding $T _ { j } ^ { e } \\in \\mathbb { R } ^ { d }$ are obtained by passing $I _ { j }$ and $T _ { j }$ through the image encoder $f _ { I }$ and text encoder $f _ { T }$ , respectively; i.e. $I _ { j } ^ { e } = f _ { I } ( I _ { j } )$ and $T _ { j } ^ { e } = f _ { T } ( T _ { j } )$ . Further, we assume they are normalized to have unit $\\ell _ { 2 }$ -norm. The contrastive objective in CLIP aims to align the image and text representations by minimizing the loss function ${ \\mathcal { L } } _ { \\mathrm { C L I P } }$ shown below: ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
173,
|
| 269 |
+
425,
|
| 270 |
+
825,
|
| 271 |
+
518
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "equation",
|
| 277 |
+
"img_path": "images/cf6f4aec5eb6a0ccaa36ba52693dc6486e216507f408ac680542f717dfb85160.jpg",
|
| 278 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { C L I P } } = - \\frac { 1 } { 2 N } \\sum _ { j = 1 } ^ { N } \\log \\left[ \\frac { \\exp \\left( \\langle I _ { j } ^ { e } , T _ { j } ^ { e } \\rangle / \\tau \\right) } { \\displaystyle \\sum _ { k = 1 } ^ { N } \\exp \\left( \\langle I _ { j } ^ { e } , T _ { k } ^ { e } \\rangle / \\tau \\right) } \\right] - \\frac { 1 } { 2 N } \\sum _ { k = 1 } ^ { N } \\log \\left[ \\frac { \\exp \\left( \\langle I _ { k } ^ { e } , T _ { k } ^ { e } \\rangle / \\tau \\right) } { \\displaystyle \\sum _ { j = 1 } ^ { N } \\exp \\left( \\langle I _ { j } ^ { e } , T _ { k } ^ { e } \\rangle / \\tau \\right) } \\right]\n$$",
|
| 279 |
+
"text_format": "latex",
|
| 280 |
+
"bbox": [
|
| 281 |
+
207,
|
| 282 |
+
542,
|
| 283 |
+
785,
|
| 284 |
+
632
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "where $\\langle \\cdot , \\cdot \\rangle$ represents the inner product, and $\\tau$ is a trainable temperature parameter. CLIP and its variants can be used to perform zero-shot image classification, i.e., classifying test images into categories not seen at training time. We first transform each category into a suitable caption (e.g., the airplane category in CIFAR-10 can be expressed as ‘a photo of an airplane’). Then, the similarity of the test image to each caption is computed (e.g., cosine distance), and the model predicts the category for which the image-caption similarity is the highest. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
660,
|
| 294 |
+
826,
|
| 295 |
+
744
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "2.2 Inconsistent Representation Learning in CLIP ",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
761,
|
| 306 |
+
535,
|
| 307 |
+
776
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "As illustrated in Figure 1 (a), the standard contrastive objective in CLIP can learn image-text representations such that the predicted labels for the test image are different in the image and text spaces. Here, we reason about such inconsistencies more formally in the context of downstream classification. As discussed above, we can predict a label in the text embedding space (zero-shot setting) by selecting the label that is closest to the test image $( P _ { T } )$ . Additionally, for classification in the image embedding space, if we had access to a labeled training set, then one natural way to infer the predicted label $( { \\dot { P } } _ { I } ^ { k } )$ of a test image $I _ { t e s t }$ is by taking a majority vote from the true labels associated with the $\\mathbf { k }$ -nearest training images. Formally, we define a consistency score that measures the synchrony between the predicted labels in the image and text spaces as: ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
786,
|
| 317 |
+
825,
|
| 318 |
+
911
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "image",
|
| 324 |
+
"img_path": "images/a1fca37a434834539ae005b54f2227219c3c73d2e5bd566f8fe8abde7bd51ec3.jpg",
|
| 325 |
+
"image_caption": [
|
| 326 |
+
"Figure 2: Illustrative overview for CYCLIP $N = 2 \\AA$ ). It consists of 3 major components: (a) cross-modal contrastive alignment, (b) cross-modal consistency, and (c) in-modal consistency. Only (a) is present in CLIP, whereas our proposed regularizers in (b) and (c) mitigate inconsistency. "
|
| 327 |
+
],
|
| 328 |
+
"image_footnote": [],
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
88,
|
| 332 |
+
825,
|
| 333 |
+
314
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "equation",
|
| 339 |
+
"img_path": "images/b1e7cdf27c20d1d0ae9769a52678d00d01d5eeea72ed6b6536ae101f3c7b3255.jpg",
|
| 340 |
+
"text": "$$\n{ \\mathrm { C o n s i s t e n c y ~ S c o r e } } _ { k } = { \\frac { 1 } { N } } \\sum _ { j = 1 } ^ { N } \\mathbb { 1 } \\left[ P _ { I } ^ { k } ( I _ { j } ) = P _ { T } ( I _ { j } ) \\right]\n$$",
|
| 341 |
+
"text_format": "latex",
|
| 342 |
+
"bbox": [
|
| 343 |
+
325,
|
| 344 |
+
400,
|
| 345 |
+
671,
|
| 346 |
+
445
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "where $_ \\mathrm { N }$ is the number of test images. In our experiments (discussed in detail in $\\ S 3$ ), we found the CLIP’s consistency score $k = 1$ ) to be $44 \\%$ , $16 \\%$ , and $16 \\%$ on the standard benchmarks CIFAR-10, CIFAR-100, and ImageNet1K, respectively, showing a very high degree of disagreement in the image and text spaces. In the following section, we describe our approach to alleviate the inconsistent inference problem and quantitatively show that our solution improves the consistency score in $\\ S 4 . 1$ . ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
173,
|
| 355 |
+
446,
|
| 356 |
+
826,
|
| 357 |
+
517
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "2.3 Cycle Consistent Representation Learning via CYCLIP ",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
531,
|
| 368 |
+
601,
|
| 369 |
+
547
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "We showed that the visual representations learned by CLIP could be inconsistent when used for inference in the image and text spaces. To mitigate this problem, we propose CYCLIP, a learning framework that builds upon CLIP by augmenting the contrastive loss in Eq. 1 with additional geometric consistency regularizers. The intuition follows directly from Figure 1 (b), where we showed that inconsistency in the image and text spaces could be eliminated if we symmetrize the similarity between the two mismatched image-text pairs and the similarity between the image-image pair and the text-text pair. We formalize this intuition with two consistency regularizers. ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
173,
|
| 378 |
+
558,
|
| 379 |
+
825,
|
| 380 |
+
655
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "(1) The cross-modal consistency regularizer reduces the gap in the similarity scores between the embeddings of all the mismatched image-text pairs in a batch, two at a time: ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
173,
|
| 389 |
+
661,
|
| 390 |
+
823,
|
| 391 |
+
690
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "equation",
|
| 397 |
+
"img_path": "images/2b17a618af8bd41c51f1ef8cbc4cadc58d98d90641b6496511856ebc2cf7f1a8.jpg",
|
| 398 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { C - C y c l i c } } = \\frac { 1 } { N } \\sum _ { j = 1 } ^ { N } \\sum _ { k = 1 } ^ { N } \\left( \\langle I _ { j } ^ { e } , T _ { k } ^ { e } \\rangle - \\langle I _ { k } ^ { e } , T _ { j } ^ { e } \\rangle \\right) ^ { 2 } .\n$$",
|
| 399 |
+
"text_format": "latex",
|
| 400 |
+
"bbox": [
|
| 401 |
+
341,
|
| 402 |
+
694,
|
| 403 |
+
656,
|
| 404 |
+
746
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "(2) The in-modal consistency regularizer reduces the gap in the similarity scores between the embeddings of all combinations of image pairs and their corresponding text pairs in a batch: ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
751,
|
| 414 |
+
825,
|
| 415 |
+
780
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "equation",
|
| 421 |
+
"img_path": "images/43e8dc0add8684d8181508ec2bf09767e861ebdde8341cb7ba4dd1f325da1e54.jpg",
|
| 422 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { I - C y c l i c } } = \\frac { 1 } { N } \\mathrm {sum _ { \\substack { j = 1 } } ^ { N } } \\mathrm { \\sum _ { \\substack { k = 1 } } ^ { N } } \\left( \\langle I _ { j } ^ { e } , I _ { k } ^ { e } \\rangle - \\langle T _ { k } ^ { e } , T _ { j } ^ { e } \\rangle \\right) ^ { 2 } .\n$$",
|
| 423 |
+
"text_format": "latex",
|
| 424 |
+
"bbox": [
|
| 425 |
+
343,
|
| 426 |
+
784,
|
| 427 |
+
655,
|
| 428 |
+
835
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "Hence, our overall loss for CYCLIP is given as: ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
840,
|
| 438 |
+
490,
|
| 439 |
+
856
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "equation",
|
| 445 |
+
"img_path": "images/79b413a6628715e2321e5330b19c77d94fb274ae8cf8990cb6aaf7b8a7481b79.jpg",
|
| 446 |
+
"text": "$$\n{ \\mathcal { L } } _ { \\mathrm { C Y C L I P } } = { \\mathcal { L } } _ { \\mathrm { C L I P } } + \\lambda _ { 1 } { \\mathcal { L } } _ { \\mathrm { I - C y c l i c } } + \\lambda _ { 2 } { \\mathcal { L } } _ { \\mathrm { C - C y c l i c } }\n$$",
|
| 447 |
+
"text_format": "latex",
|
| 448 |
+
"bbox": [
|
| 449 |
+
352,
|
| 450 |
+
861,
|
| 451 |
+
645,
|
| 452 |
+
878
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 3
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "where $\\lambda _ { 1 } > 0$ and $\\lambda _ { 2 } > 0$ are hyperparameters controlling the importance of the in-modal and cross-modal cyclic consistency regularizers relative to the contrastive loss in CLIP. We can also characterize the effect of the regularizers in terms of symmetrizing the in-modal and cross-modal similarity matrices, as illustrated in Figure 2. Note that the optimal solution to the contrastive loss formulation would push the similarity between the normalized embeddings of the matched pairs towards 1 while forcing all other pairs of similarities to 0, thereby also symmetrizing the cross-modal similarity matrix and minimizing the cross-modal consistency loss. However, this idealized scenario does not occur in practice, and we find that explicit regularization via cycle-consistency in CYCLIP facilitates improved learning, as we show in our experiments. ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
173,
|
| 461 |
+
883,
|
| 462 |
+
830,
|
| 463 |
+
912
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "",
|
| 470 |
+
"bbox": [
|
| 471 |
+
174,
|
| 472 |
+
92,
|
| 473 |
+
825,
|
| 474 |
+
189
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "3 Experiments ",
|
| 481 |
+
"text_level": 1,
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
209,
|
| 485 |
+
312,
|
| 486 |
+
227
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "Setup: We use Conceptual Captions 3M [52] (CC3M) image-caption pairs as the source of multimodal pretraining data for all our models. Note while this dataset is smaller than the custom dataset (400 million pairs) used in the original work on CLIP [44], it is suitable for our available data and compute and has been used for benchmark evaluations in many subsequent works on language-image pretraining [5, 33, 37, 56]. Following prior work [44], our CLIP models use ResNet-50 as the image encoder and a transformer architecture as the text encoder. Further, we train our models from scratch for 64 epochs on 4 V100 GPUs with a batch size of 128 and an initial learning rate of 0.0005 with cosine scheduling and 10000 warmup steps. The dimension of the image and text embeddings is 1024. For CYCLIP, we use $\\lambda _ { 1 } = 0 . 2 5$ and $\\lambda _ { 2 } = 0 . 2 5$ across all our experiments. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
173,
|
| 495 |
+
242,
|
| 496 |
+
825,
|
| 497 |
+
367
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "3.1 Zero-Shot Transfer ",
|
| 504 |
+
"text_level": 1,
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
385,
|
| 508 |
+
348,
|
| 509 |
+
400
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "We compare the zero-shot performance of CLIP and CYCLIP on standard image classification datasets: CIFAR-10, CIFAR-100 [31], and ImageNet1K [49]. We follow the evaluation strategy suggested by [44] for zero-shot classification using prompt engineering. For each dataset, we use the names of the classes to form a set of natural sentences such as ‘a photo of the $\\{ \\mathrm { c l a s s ~ n a m e } \\} ^ { \\mathrm { , } }$ , ‘a sketch of the {class name}’ and more. These are passed through the text encoder to get a set of text embeddings for that class. This set of text embeddings are $\\ell _ { 2 }$ -normalized, averaged, and further $\\ell _ { 2 }$ -normalized to obtain a single text embedding for that class. For a given image, the image embedding is obtained as described in $\\ S 2$ . The class whose text embedding (as described above) is closest to the test image is taken to be the predicted label. The zero-shot performance of the models is presented in Table 1. ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
411,
|
| 519 |
+
825,
|
| 520 |
+
549
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "table",
|
| 526 |
+
"img_path": "images/4f89e882313a27a95f143127b2f55d6a511d0449227ffec744e360a66ab285b6.jpg",
|
| 527 |
+
"table_caption": [
|
| 528 |
+
"Table 1: Zero-shot TopK classification accuracy $( \\% )$ where $\\mathsf { K } \\in \\{ 1 , 3 , 5 \\}$ "
|
| 529 |
+
],
|
| 530 |
+
"table_footnote": [],
|
| 531 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">CIFAR-10</td><td colspan=\"3\">CIFAR-100</td><td colspan=\"3\">ImageNet1K</td></tr><tr><td>Top1</td><td>Top3</td><td>Top5</td><td>Top1</td><td>Top3</td><td>Top5</td><td>Top1</td><td>Top3</td><td>Top5</td></tr><tr><td>CLIP</td><td>46.54</td><td>78.22</td><td>91.16</td><td>18.69</td><td>34.72</td><td>43.97</td><td>20.03</td><td>33.04</td><td>39.35</td></tr><tr><td>CYCLIP</td><td>51.45</td><td>79.57</td><td>91.80</td><td>23.15</td><td>41.46</td><td>50.66</td><td>22.08</td><td>35.98</td><td>42.30</td></tr><tr><td>%GAIN</td><td>+10.6</td><td>+1.7</td><td>+0.7</td><td>+23.9</td><td>+19.4</td><td>+15.2</td><td>+10.2</td><td>+8.9</td><td>+7.5</td></tr></table>",
|
| 532 |
+
"bbox": [
|
| 533 |
+
233,
|
| 534 |
+
588,
|
| 535 |
+
764,
|
| 536 |
+
686
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "We observe that the CYCLIP outperforms CLIP across all the datasets and on all TopK metrics, with gains in the range of $1 0 \\% - 2 4 \\%$ for $\\mathrm { K } = 1$ . Our results on zero-shot transfer indicate the usefulness of having geometrical consistency for improved downstream performance of CLIP. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
176,
|
| 545 |
+
707,
|
| 546 |
+
823,
|
| 547 |
+
750
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "3.2 Robustness to Natural Distribution Shifts ",
|
| 554 |
+
"text_level": 1,
|
| 555 |
+
"bbox": [
|
| 556 |
+
176,
|
| 557 |
+
767,
|
| 558 |
+
501,
|
| 559 |
+
782
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "One of the major successes of CLIP was its state-of-the-art performance on the natural distribution shift benchmarks. These benchmarks include images depicting sketches, cartoons, adversaries generated using attacks on trained ImageNet models. In Table 2, we evaluate the zero-shot classification accuracy of CYCLIP on four natural distribution shift benchmarks for the ImageNet dataset: ImageNetV2 [48], ImageNetSketch [57], ImageNet-A [27], and ImageNet-R [25]. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
792,
|
| 569 |
+
825,
|
| 570 |
+
863
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "For most of the distribution shift benchmarks, both CLIP and CYCLIP undergo a significant reduction in their zero-shot performance compared to the original ImageNet1K dataset (last three columns in Table 1). However, we observe that CYCLIP outperforms CLIP on all of the datasets considered in this experiment by a significant margin of improvement $( 1 0 - 2 7 \\% )$ ). This result indicates that having cyclic consistency in the learned representations preserves the robustness on the traditional datasets. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
176,
|
| 579 |
+
869,
|
| 580 |
+
825,
|
| 581 |
+
911
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "table",
|
| 587 |
+
"img_path": "images/96413a6198e854f4d42e38e2455c007c6b3515e3ae68403075f7c2042207f8a5.jpg",
|
| 588 |
+
"table_caption": [
|
| 589 |
+
"Table 2: Zeroshot Classification on Natural Distribution Shifts $( \\% )$ "
|
| 590 |
+
],
|
| 591 |
+
"table_footnote": [],
|
| 592 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">ImageNetV2</td><td colspan=\"3\">ImageNetSketch</td><td colspan=\"3\">ImageNet-A</td><td colspan=\"3\">ImageNet-R</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>Top1 Top3 Top5 Top1 Top3 Top5 Top1 Top3 Top5 Top1 Top3 Top5</td><td></td><td></td><td></td><td></td></tr><tr><td>CLIP</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>16.91 29.28 34.99 10.37 19.15 24.20 4.2311.3516.88 24.32 39.69 47.20</td><td></td><td></td><td></td><td></td></tr><tr><td>CYCLIP 19.22 32.29 38.41 12.26 22.56 28.17 5.3513.53 19.51 26.79 42.31 50.03</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>%GAIN +13.7 +10.3 +9.8 +18.2 +17.8 +16.4 +26.5 +19.2 +15.6 +10.2 +6.6 +6.0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 593 |
+
"bbox": [
|
| 594 |
+
173,
|
| 595 |
+
112,
|
| 596 |
+
825,
|
| 597 |
+
210
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 5
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "",
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
243,
|
| 607 |
+
825,
|
| 608 |
+
272
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "3.3 Linear Probing ",
|
| 615 |
+
"text_level": 1,
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
289,
|
| 619 |
+
320,
|
| 620 |
+
304
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "While the primary focus of CLIP and CYCLIP is zero-shot generalization, we can also assess if the benefits of our cyclic consistency constraints in mitigating inconsistency can be recovered with extra in-domain and in-modality supervision i.e., in the presence of in-distribution training samples from in-domain visual datasets. To this end, we conduct an additional experiments on linear probing where we fit a linear classifier on the representations learned by the visual encoder (ResNet-50) of CLIP and CYCLIP on a range of image classification datasets. ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
173,
|
| 629 |
+
314,
|
| 630 |
+
825,
|
| 631 |
+
398
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "table",
|
| 637 |
+
"img_path": "images/3ff584348c71340e8c7bacca5c35e1a11e6538d32abc30e557f723e23d6b5180.jpg",
|
| 638 |
+
"table_caption": [
|
| 639 |
+
"Table 3: Transfer CLIP and CYCLIP to 14 downstream visual datasets using linear probing. Our CYCLIP performs marginally better on 9 out of 14 datasets. For training ImageNet1K, we use a random subset of 50K images from its original training dataset. "
|
| 640 |
+
],
|
| 641 |
+
"table_footnote": [],
|
| 642 |
+
"table_body": "<table><tr><td>iroiiir0 eeeee srtprtiois Crreaer CIPAAII1 CEIPRIPI0 DPodppttrt Arrit IorPoon TTSSP OITLS NH∧S 0 CLIP 79.80 78.26 54.85 59.02 28.00 83.50 54.44 69.72 35.93 57.66 53.82 20.00 89.23 47.28|</td></tr></table>",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
463,
|
| 646 |
+
825,
|
| 647 |
+
582
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "We present our results in Table 3. We find that both CLIP and CYCLIP can recover most of the performance lost due to inconsistency when provided extra in-domain and in-modality supervision, with CYCLIP marginally outperforming the CLIP on 9 out of 14 visual datasets. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
173,
|
| 656 |
+
598,
|
| 657 |
+
826,
|
| 658 |
+
640
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "4 Analysis ",
|
| 665 |
+
"text_level": 1,
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
661,
|
| 669 |
+
276,
|
| 670 |
+
678
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "Previously, we demonstrated the gains of CYCLIP over CLIP on downstream tasks that involve joint reasoning over the image and text spaces. In the current section, we wish to better understand the relative behavior of the two models on a set of challenging tasks. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
694,
|
| 680 |
+
825,
|
| 681 |
+
736
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "4.1 Consistency in Image and Text Spaces ",
|
| 688 |
+
"text_level": 1,
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
753,
|
| 692 |
+
477,
|
| 693 |
+
768
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "We begin by quantitatively measuring the inconsistency problem illustrated in Figure 1. That is, we wish to evaluate to what extent are the predictions in the image-text space (zero-shot) consistent with the ones made purely within the image space, as measured by our consistency metric in Eq. 2. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
176,
|
| 702 |
+
779,
|
| 703 |
+
823,
|
| 704 |
+
821
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "Table 4 presents our results over standard benchmarks (CIFAR-10, CIFAR-100, ImageNet1K). The consistency score is calculated over 10K, 10K, and 50K testing images of the CIFAR-10, CIFAR-100 and ImageNet dataset respectively. We use 50K samples from the training set of each dataset for $\\mathbf { k }$ -Nearest Neighbor prediction. CYCLIP is more consistent than CLIP across all the datasets as we explicitly symmetrize the cross-modal and in-modal distances. Hence, the representations learned by CYCLIP can be better used interchangeably than CLIP. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
174,
|
| 713 |
+
827,
|
| 714 |
+
825,
|
| 715 |
+
911
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 5
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "table",
|
| 721 |
+
"img_path": "images/a3796c1bd77c99aa7534bdbc3b45776b80ddeb69d1348f8da0a081d126780de9.jpg",
|
| 722 |
+
"table_caption": [
|
| 723 |
+
"Table 4: Consistency score $( \\% )$ trend for CLIP and CYCLIP across standard benchmarks . Top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ consistency score implies the fraction of times, the zero-shot predicted label in the text space is identical to the k-Nearest Neighbor predicted label in the image space (using the training dataset). "
|
| 724 |
+
],
|
| 725 |
+
"table_footnote": [],
|
| 726 |
+
"table_body": "<table><tr><td></td><td colspan=\"4\">CIFAR-10</td><td colspan=\"4\">CIFAR-100</td><td colspan=\"4\">ImageNet1K</td></tr><tr><td></td><td></td><td>Top1 Top3Top5Top10 Top1</td><td></td><td></td><td></td><td></td><td></td><td>Top3Top5Top10 Top1 T</td><td></td><td></td><td></td><td>Top3Top5Top10</td></tr><tr><td>CLIP</td><td>44.60</td><td>46.04</td><td>47.06</td><td>48.45</td><td>16.21</td><td>17.28</td><td>18.42</td><td>19.36</td><td>16.34</td><td>17.42</td><td>18.58</td><td>19.78</td></tr><tr><td>CYCLIP</td><td>48.81</td><td>50.89</td><td>52.30</td><td>53.71</td><td>20.43</td><td>21.96</td><td>23.18</td><td>24.31</td><td>19.20</td><td>20.31</td><td></td><td>21.9523.94</td></tr><tr><td>%GAIN</td><td>+8.6</td><td>+9.5</td><td>+10.0</td><td>)+9.8</td><td>+20.7</td><td></td><td></td><td>+21.3 +20.5 +20.4</td><td>+14.9 +14.2 +15.4 +17.4</td><td></td><td></td><td></td></tr></table>",
|
| 727 |
+
"bbox": [
|
| 728 |
+
173,
|
| 729 |
+
138,
|
| 730 |
+
826,
|
| 731 |
+
252
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "4.2 Fine-grained and Coarse-grained Performance ",
|
| 738 |
+
"text_level": 1,
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
282,
|
| 742 |
+
539,
|
| 743 |
+
297
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 6
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "In $\\ S 3 . 1$ , we observed that CYCLIP outperforms CLIP on zero-shot transfer across various datasets. We perform an error analysis investigating both models’ coarse and fine-grained classification performance to understand the transfer phenomena better. Given a hierarchical class structure dataset, coarse-grained classification differentiates between high-level (parent) classes, i.e., zeroshot classification into aquatic mammals and fish. The fine-grained classification task focuses on differentiating low-level (child) classes, i.e., zero-shot classification into a dolphin, otter, and seal (subclasses of aquatic mammals). We perform this analysis on the CIFAR-100, ImageNet1K, ImageNetV2, ImageNetSketch, ImageNet-A, and ImageNet-R datasets. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
173,
|
| 752 |
+
308,
|
| 753 |
+
826,
|
| 754 |
+
420
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "Formally, we consider a test set of $N$ image-subclass-superclass triplets, $\\{ I _ { j } , C _ { j } , P _ { j } \\} _ { j = 1 } ^ { N }$ , where $I _ { j }$ , $C _ { j }$ , $P _ { j }$ represent the image, the subclass (child) and superclass (parent) respectively. The image embedding $I _ { j } ^ { e } \\in \\mathbb { R } ^ { d }$ is obtained as described in $\\ S 2$ , and the subclass embedding $C _ { j } ^ { e } \\in \\mathbb { R } ^ { d }$ and superclass embedding ${ P } _ { j } ^ { e } \\in \\mathbb { R } ^ { d }$ are obtained as described in $\\ S 3 . 1$ . Let the total number of superclasses and subclasses in the dataset be $n _ { \\mathrm { p } }$ and $n _ { \\mathrm { c } }$ , respectively. Further, let $F$ be a unique mapping from a subclass to the superclass, and $\\mho$ denote the inverse mapping from a superclass to the set of subclasses i.e. $\\forall P \\in \\{ 1 , \\cdot \\cdot \\cdot , n _ { \\mathrm { p } } \\}$ , $G ( P ) = \\{ C : F ( C ) = P$ and $\\mathbf { \\bar { \\it C } } \\in \\{ 1 , \\dots , n _ { \\mathrm { c } } \\} \\}$ . Under this setup, the fine-grained and coarse-grained accuracies are defined as: ",
|
| 761 |
+
"bbox": [
|
| 762 |
+
173,
|
| 763 |
+
424,
|
| 764 |
+
826,
|
| 765 |
+
541
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 6
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "equation",
|
| 771 |
+
"img_path": "images/228004ffb05457aab3de42024de429b8ecc75ea444e16d247b612cd603259f27.jpg",
|
| 772 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathrm { F i n e - g r a i n e d ~ A c c u r a c y } = \\displaystyle \\frac { 1 } { N } \\sum _ { j = 1 } ^ { N } 1 \\left[ \\mathrm { a r g m a x } \\ \\langle I _ { j } ^ { e } , C \\rangle = C _ { j } \\right] } \\\\ & { \\mathrm { C o a r s e - g r a i n e d ~ A c c u r a c y } = \\displaystyle \\frac { 1 } { N } \\sum _ { j = 1 } ^ { N } 1 \\left[ \\mathrm { a r g m a x } \\ \\langle I _ { j } ^ { e } , C \\rangle \\in G \\left( P _ { j } \\right) \\right] } \\end{array}\n$$",
|
| 773 |
+
"text_format": "latex",
|
| 774 |
+
"bbox": [
|
| 775 |
+
271,
|
| 776 |
+
547,
|
| 777 |
+
728,
|
| 778 |
+
640
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 6
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "In Figure 3 we visualize how CLIP and CYCLIP compare with each other on the above metrics. The difference between the zero-shot performance of CYCLIP and CLIP is much more significant for coarse-grained classification than fine-grained classification across all the datasets. This observation indicates that concept-level knowledge is better captured in CYCLIP compared to CLIP. The drastic difference in the coarse-grained performance of CYCLIP and CLIP may be attributed to the rigid separation that the default cross-entropy loss in CLIP enforces between the positive pairs and negative pairs, which might degrade performance when some pairs in the negative batch belong to a similar entity. However, CYCLIP does not suffer from this problem as much because it poses cycle constraints on the overall geometry of all the data pairs rather than forcing a rigid separation. ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
173,
|
| 787 |
+
643,
|
| 788 |
+
825,
|
| 789 |
+
770
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 6
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "4.3 Alignment and Uniformity on the Unit Hypersphere ",
|
| 796 |
+
"text_level": 1,
|
| 797 |
+
"bbox": [
|
| 798 |
+
173,
|
| 799 |
+
785,
|
| 800 |
+
575,
|
| 801 |
+
801
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 6
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "[58] argues that contrastive learning directly optimizes for (a) alignment (closeness) of the representations of the positive pairs and (b) uniformity (coverage) of the representation space on the unit hypersphere. We extend these properties for multimodal contrastive representation learning as: ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
810,
|
| 811 |
+
825,
|
| 812 |
+
853
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 6
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "equation",
|
| 818 |
+
"img_path": "images/36e3dba549bbfcd13f40600a8d08a7085b78799d6928cfff4d4ee41662ae4c42.jpg",
|
| 819 |
+
"text": "$$\n\\mathrm { A l i g n m e n t } = \\frac { 1 } { N } \\sum _ { j = 1 } ^ { N } \\langle I _ { j } ^ { e } , T _ { j } ^ { e } \\rangle \\qquad \\mathrm { U n i f o r m i t y } = \\log \\left( \\frac { 1 } { N ( N - 1 ) } \\sum _ { j = 1 } ^ { N } \\sum _ { k = 1 , j \\neq k } ^ { N } e ^ { - \\langle I _ { j } ^ { e } , T _ { k } ^ { e } \\rangle } \\right)\n$$",
|
| 820 |
+
"text_format": "latex",
|
| 821 |
+
"bbox": [
|
| 822 |
+
192,
|
| 823 |
+
859,
|
| 824 |
+
787,
|
| 825 |
+
910
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 6
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "image",
|
| 831 |
+
"img_path": "images/9aeb14c15ecc9ded2d517c638f8177fda1c5a997e450914e5b9f6646bfb05089.jpg",
|
| 832 |
+
"image_caption": [
|
| 833 |
+
"Figure 3: The gap between the performances of CLIP and CYCLIP is much larger in coarse-grained scenario highlighting better entity-level knowledge representation in CYCLIP. "
|
| 834 |
+
],
|
| 835 |
+
"image_footnote": [],
|
| 836 |
+
"bbox": [
|
| 837 |
+
174,
|
| 838 |
+
99,
|
| 839 |
+
823,
|
| 840 |
+
306
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 7
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "We desire our models to achieve high alignment and uniformity scores so that the image-text representations are close for the matched pairs and better spread over the unit hypersphere for different categories. We analyze the effect of cross-modal and in-modal consistency on the alignment and uniformity of the shared representations. For this, we train two ablated versions of CYCLIP, 1) C-CYCLIP with only cross-modal consistency component i.e. $\\lambda _ { 1 } = 0 , \\lambda _ { 2 } = 0 . 5$ , and 2) I-CYCLIP with only in-modal consistency component i.e. $\\lambda _ { 1 } = 0 . 5 , \\lambda _ { 2 } = 0$ (in Eq. 5). We design proxy captions for classes as discussed in $\\ S 3 . 1$ to act as text embeddings. We present the results in Table 5. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
173,
|
| 849 |
+
369,
|
| 850 |
+
825,
|
| 851 |
+
468
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "table",
|
| 857 |
+
"img_path": "images/b5390091bc120b42dba967fbbc26586d165649f5ccccc188b5c89f399f9709b8.jpg",
|
| 858 |
+
"table_caption": [
|
| 859 |
+
"Table 5: Alignment and Uniformity values for CLIP and Cyclic CLIP models. We abbreviate Alignment by A, Uniformity by U, and Zero-shot Top1 classification accuracy $( \\% )$ by ZS-Top1. "
|
| 860 |
+
],
|
| 861 |
+
"table_footnote": [],
|
| 862 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">CIFAR-10</td><td colspan=\"3\">CIFAR-100</td><td colspan=\"3\">ImageNet1K</td></tr><tr><td>A</td><td>U</td><td>ZS-Top1</td><td>A</td><td>U</td><td>ZS-Top1</td><td>A</td><td>U</td><td>ZS-Top1</td></tr><tr><td>CLIP</td><td>0.36</td><td>-0.27</td><td>46.54</td><td>0.36</td><td>-0.25</td><td>18.69</td><td>0.39</td><td>-0.18</td><td>20.03</td></tr><tr><td>CYCLIP</td><td>0.36</td><td>-0.34</td><td>51.45</td><td>0.37</td><td>-0.33</td><td>23.15</td><td>0.38</td><td>-0.32</td><td>22.08</td></tr><tr><td>I-CYCLIP</td><td>0.60</td><td>-0.57</td><td>50.97</td><td>0.60</td><td>-0.57</td><td>22.35</td><td>0.61</td><td>-0.55</td><td>21.21</td></tr><tr><td>C-CYCLIP</td><td>0.05</td><td>-0.02</td><td>55.52</td><td>0.06</td><td>-0.02</td><td>25.49</td><td>0.07</td><td>-0.02</td><td>21.73</td></tr></table>",
|
| 863 |
+
"bbox": [
|
| 864 |
+
212,
|
| 865 |
+
517,
|
| 866 |
+
785,
|
| 867 |
+
627
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 7
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "We observe that I-CYCLIP learns representations that are better aligned in the representation space; however, they do not cover the hypersphere uniformly. The representations learned by C-CYCLIP are more uniformly spread but poorly aligned compared to I-CYCLIP. In this light, the components of CYCLIP can be seen to encourage a balance of good alignment and uniformity. Further, we find that CLIP is more uniform than CYCLIP in all datasets, but contrary to prior beliefs, this does not translate to improved downstream performance. C-CYCLIP has the best downstream zero-shot performance for CIFAR-10 and CIFAR-100 despite its poor alignment score. Further, all 3 variants of CYCLIP outperform CLIP on all 3 datasets, with CYCLIP performing the best on ImageNet1K. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
173,
|
| 876 |
+
647,
|
| 877 |
+
826,
|
| 878 |
+
758
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 7
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "4.4 Image-Text Retrieval ",
|
| 885 |
+
"text_level": 1,
|
| 886 |
+
"bbox": [
|
| 887 |
+
174,
|
| 888 |
+
775,
|
| 889 |
+
359,
|
| 890 |
+
790
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 7
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "We evaluate the effectiveness of the proposed method on the cross-modal (image to text and text to image) retrieval downstream task in the zero-shot as well as fine-tuned settings. We consider the standard benchmark datasets: Flickr30K [42] and MSCOCO [8]. We assess our models on the test set of Flickr30K (1K) and MSCOCO (5K) obtained from the well-known Karpathy [30] split. Both the datasets contains 5 paired captions per image that makes text retrieval per image more easier than image retrieval per caption. We confirm the same in our results below. We perform fine-tuning on the Karpathy’s training split with the batch size of 48. We fine-tune on Flick30K for 10 epochs and MSCOCO for 5 epochs. All the other hyperparameters are identical to that of pre-training. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
173,
|
| 899 |
+
800,
|
| 900 |
+
825,
|
| 901 |
+
911
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 7
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "table",
|
| 907 |
+
"img_path": "images/bc71cea7a9c04b02057e4ecfdd88993a104a03027a36dd2368388bfdad7143d4.jpg",
|
| 908 |
+
"table_caption": [
|
| 909 |
+
"Table 6: Zero-shot and fine-tuned cross-modal image-text retrieval (text-to-image and image-to-text) results of CLIP and CYCLIP on Flick30K and MSCOCO datasets. "
|
| 910 |
+
],
|
| 911 |
+
"table_footnote": [],
|
| 912 |
+
"table_body": "<table><tr><td rowspan=\"3\"></td><td rowspan=\"3\"></td><td colspan=\"4\">Flickr30K (1K)</td><td colspan=\"4\">MSCOCO (5K)</td></tr><tr><td colspan=\"2\">Text Retrieval</td><td colspan=\"2\">Image Retrieval</td><td colspan=\"2\">Text Retrieval</td><td colspan=\"2\">Image I Retrieval</td></tr><tr><td> R@1 R@5 R@10 R@1 R@5 R@10 R@1 R@5 R@10 R@1 R@5 R@10</td><td></td><td colspan=\"2\"></td><td></td><td></td><td></td><td></td></tr><tr><td>Zero-shot</td><td>CLIP CyCLIP</td><td>88.2 93.9 88.1 93.7</td><td>95.8</td><td>29.9 57.2</td><td>68.0</td><td>82.1 85.6</td><td>87.8</td><td>8.4 19.5</td><td>26.6</td></tr><tr><td></td><td></td><td></td><td></td><td>95.9 30.9</td><td>57.8</td><td>69.1 82.1</td><td>85.6</td><td>87.7</td><td>8.6 20.0</td><td>27.0</td></tr><tr><td>Fine-tuned</td><td>CLIP</td><td>91.9</td><td>97.0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>98.0 46.3</td><td>74.7</td><td>83.6 83.2</td><td>87.6</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>90.0</td><td>10.6 23.9</td><td>31.3</td></tr><tr><td></td><td>CYCLIP</td><td>92.3</td><td>97.0</td><td>98.4</td><td>47.3</td><td>83.2</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>76.6</td><td>85.4</td><td>87.8</td><td>90.3</td><td>11.4 25.8</td><td>33.4</td></tr><tr><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></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 913 |
+
"bbox": [
|
| 914 |
+
176,
|
| 915 |
+
125,
|
| 916 |
+
818,
|
| 917 |
+
281
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Table 6 presents our cross-modal image-text retrieval results for CLIP and CYCLIP. In the zero-shot setting, we find that CYCLIP marginally outperforms CLIP on the image retrieval task on both the datasets. The relatively lower performance of both CLIP and CYCLIP in the zero-shot setting may be attributed to the more complicated nature of the two datasets where the models are expected to find similarities between the image and text at multiple resolutions as opposed to image classification where there is mostly single object to be matched with a simpler caption. It is not clear as to what distinctions in the raw input and text space are reflected in the embedding space too. Hence, we perform fine-tuning on both the datasets to better inform our models of the downstream datasets. In the fine-tuning setting, we find that the performance of both the models increases across both the datasets. However, we observe clear benefits of the soft consistent regularization on the image retrieval results for both the datasets. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
173,
|
| 926 |
+
304,
|
| 927 |
+
825,
|
| 928 |
+
457
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 8
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "4.5 CYCLIP preserves the Effective Robustness of CLIP ",
|
| 935 |
+
"text_level": 1,
|
| 936 |
+
"bbox": [
|
| 937 |
+
173,
|
| 938 |
+
472,
|
| 939 |
+
581,
|
| 940 |
+
487
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "[36] shows that there is a strong correlation between the in-distribution and out-of-distribution generalization of the models trained on ImageNet1K, as illustrated by the linear fit (red) in Figure 4. Ideally, any model that does not undergo distribution shift would fall on the $y = x$ trendline (black). For other models, the deviations of the models from this ideal fit indicate their effective robustness. Previously, [45] showed that the zero-shot CLIP classifier trained on 400M image-text pairs improves effective robustness significantly compared to prior approaches to robustness. Subsequently, [28] demonstrated that CLIP models trained at small scales also exhibit high effective robustness that allows them to be used as a proxy to study the robustness properties of CLIP. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
173,
|
| 949 |
+
497,
|
| 950 |
+
826,
|
| 951 |
+
609
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "image",
|
| 957 |
+
"img_path": "images/e98bb549238d19b78531727425dfe31fd161eaa892b75cfe6cd33676963af21f.jpg",
|
| 958 |
+
"image_caption": [
|
| 959 |
+
"Figure 4: Effect of varying the training dataset size on (a) Classification accuracy on ImageNet1K and (b) Effective Robustness on ImageNetV2. "
|
| 960 |
+
],
|
| 961 |
+
"image_footnote": [],
|
| 962 |
+
"bbox": [
|
| 963 |
+
207,
|
| 964 |
+
635,
|
| 965 |
+
785,
|
| 966 |
+
776
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 8
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "We evaluate the effect of cyclic consistency on effective robustness. We trained 4 CLIP and CYCLIP models, varying the training dataset sizes from 500K to 4M image-text pairs from the $\\mathrm { C C 3 M + }$ CC12M datasets. In Figure 4, (a) we observe that for all training data sizes, CYCLIP shows a significant improvement over CLIP, showcasing its effectiveness in a diverse set of data regimes. Further, Figure 4 (b) shows that CYCLIP lies way above the baseline trend and preserves the effective robustness of CLIP. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
827,
|
| 976 |
+
825,
|
| 977 |
+
911
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "5 Related Work ",
|
| 984 |
+
"text_level": 1,
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
89,
|
| 988 |
+
321,
|
| 989 |
+
106
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 9
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Our work fits into the broader theme of unsupervised pretraining with multiple modalities and has been successfully applied for learning representations of modalities such as images, text, and speech [2, 15, 1, 59, 43, 34]. Similar to the unimodal setting, two predominant approaches for multimodal pretraining are contrastive and generative, as described below. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
125,
|
| 999 |
+
825,
|
| 1000 |
+
179
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 9
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Contrastive Representation Learning: Contrastive learning was originally proposed for selfsupervised representation learning in the unimodal context where the embeddings of a sample are brought closer to an augmented version of the sample. In contrast, the embeddings are pushed away for other samples, and their augmentation [11, 51, 39, 55, 21, 7, 16, 40, 66, 23, 18]. [63] and [3] impose additional constraints to remove redundancies and prevent dimensional collapse in the visual representations. Recently, contrastive learning has also been used to learn robust representations of the multimodal data [62, 47]. Many works use additional losses to imbibe extra supervisory multimodal knowledge during the training process [54, 65, 64, 14, 35]. In this work, we focus on having cyclic consistency in addition to the contrastive loss to learn more robust image-text representations. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
185,
|
| 1010 |
+
825,
|
| 1011 |
+
310
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 9
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Contrastive Language-Image Pretraining: CLIP [44], ALIGN [29] and BASIC [41] have enjoyed great success in extending contrastive learning to paired image-text data, with impressive zero-shot classification and robustness performance. These works have been further extended recently to include visual self-supervision [37], additional nearest neighbor supervision [33], and utilization of unpaired data [56]. Our work complements much of this literature as it identifies consistency regularizers that can be augmented to the learning objective of the above works. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
318,
|
| 1021 |
+
825,
|
| 1022 |
+
400
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Generative Representation Learning: Generative models have been applied for learning representations of multimodal data [60, 53]. In particular, [67, 61, 10] proposed a notion of cyclic consistency for learning from unpaired multimodal data using GANs [17], which was extended later to normalizing flows [20, 19]. While these works focus on regularizing a generative mapping between modalities, our notion of cycle consistency applies to embeddings learned via a contrastive framework. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
406,
|
| 1032 |
+
825,
|
| 1033 |
+
477
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 9
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "6 Conclusion ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
174,
|
| 1043 |
+
500,
|
| 1044 |
+
299,
|
| 1045 |
+
516
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "We presented CYCLIP, a framework for cycle consistent multimodal representation learning for image and text modality. The main benefits of CYCLIP stem from including cross-modal consistency and in-modal consistency regularizers to prevent inconsistent inference in the image and text spaces. Empirically, we show that CYCLIP performs much better than CLIP on zero-shot classification and is more robust on benchmarks for distributional robustness. We also showed that the representations learned by CYCLIP are more consistent than CLIP and better capture concept-level knowledge, as evidenced by our analysis of fine-grained and coarse-grained accuracies. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
174,
|
| 1054 |
+
535,
|
| 1055 |
+
825,
|
| 1056 |
+
632
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 9
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "We believe this work can motivate further studies on understanding the geometry of the representation spaces learned via the contrastive objective applied to paired multimodal data and, in particular, identify conditions and regularization strategies under which the learned representations are synergistic across the various modalities for downstream applications. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
174,
|
| 1065 |
+
637,
|
| 1066 |
+
825,
|
| 1067 |
+
693
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "One important future direction and a current limitation is scaling CYCLIP to larger datasets. While we do not possess the resources for this study, it is imperative to study the extent to which the benefits of cycle consistency remain at the scale on which the original CLIP was trained (400M image-text pairs). Finally, for real-world deployment of CLIP and their variants, such as CYCLIP, we need to be cautious about amplifying societal biases as these models are trained on large uncurated datasets scraped from the web [9]. Additionally, it is easy to add malicious data to the web, which poses a severe security threat [5]. Alleviating such harms is an important and active area of research. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
699,
|
| 1077 |
+
825,
|
| 1078 |
+
797
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Acknowledgements ",
|
| 1085 |
+
"text_level": 1,
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
176,
|
| 1088 |
+
820,
|
| 1089 |
+
338,
|
| 1090 |
+
838
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 9
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "This research is supported by an Adobe Data Science Research Award for Aditya Grover. We would like to thank the IDRE’s Research Technology group for the GPU computing resources on the UCLA Hoffman2 Cluster. We also want to thank Tung Duc Nguyen, Satvik Mashkaria, Siddarth Krishnamoorthy, Varuni Sarwal, and Ashima Suvarna for their helpful suggestions. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
176,
|
| 1099 |
+
856,
|
| 1100 |
+
823,
|
| 1101 |
+
911
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 9
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "References \n[1] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. See, hear, and read: Deep aligned representations. arXiv preprint arXiv:1706.00932, 2017. \n[2] Tadas Baltrušaitis, Chaitanya Ahuja, and Louis-Philippe Morency. Multimodal machine learning: A survey and taxonomy. IEEE transactions on pattern analysis and machine intelligence, 41(2):423–443, 2018. \n[3] Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021. \n[4] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798– 1828, 2013. \n[5] Nicholas Carlini and Andreas Terzis. Poisoning and backdooring contrastive learning. arXiv preprint arXiv:2106.09667, 2021. \n[6] Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual $1 2 \\mathrm { m }$ : Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3558–3568, 2021. \n[7] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. \n[8] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015. \n[9] Jaemin Cho, Abhay Zala, and Mohit Bansal. Dall-eval: Probing the reasoning skills and social biases of text-to-image generative transformers. arXiv preprint arXiv:2202.04053, 2022. \n[10] Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8789–8797, 2018. \n[11] Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 1, pages 539–546. IEEE, 2005. \n[12] Katherine Crowson, Stella Rose Biderman, Daniel Kornis, Dashiell Stander, Eric Hallahan, Louis Castricato, and Edward Raff. Vqgan-clip: Open domain image generation and editing with natural language guidance. ArXiv, abs/2204.08583, 2022. \n[13] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A largescale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009. \n[14] Karan Desai and Justin Johnson. Virtex: Learning visual representations from textual annotations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11162–11173, 2021. \n[15] Jiali Duan, Liqun Chen, Son Tran, Jinyu Yang, Yi Xu, Belinda Zeng, Chenyang Tao, and Trishul Chilimbi. Multi-modal alignment using representation codebook. arXiv:2203.00048, 2022. \n[16] Tianyu Gao, Xingcheng Yao, and Danqi Chen. Simcse: Simple contrastive learning of sentence embeddings. arXiv preprint arXiv:2104.08821, 2021. \n[17] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
171,
|
| 1110 |
+
73,
|
| 1111 |
+
828,
|
| 1112 |
+
916
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 10
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "[18] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in Neural Information Processing Systems, 33:21271–21284, 2020. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
173,
|
| 1121 |
+
90,
|
| 1122 |
+
826,
|
| 1123 |
+
147
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 11
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "[19] Aditya Grover, Christopher Chute, Rui Shu, Zhangjie Cao, and Stefano Ermon. Alignflow: Cycle consistent learning from multiple domains via normalizing flows. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4028–4035, 2020. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
155,
|
| 1133 |
+
823,
|
| 1134 |
+
198
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 11
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "[20] Aditya Grover, Manik Dhar, and Stefano Ermon. Flow-gan: Combining maximum likelihood and adversarial learning in generative models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
173,
|
| 1143 |
+
205,
|
| 1144 |
+
823,
|
| 1145 |
+
248
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 11
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "[21] Michael Gutmann and Aapo Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 297–304. JMLR Workshop and Conference Proceedings, 2010. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
173,
|
| 1154 |
+
256,
|
| 1155 |
+
826,
|
| 1156 |
+
313
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 11
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "[22] Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 2, pages 1735–1742. IEEE, 2006. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
171,
|
| 1165 |
+
320,
|
| 1166 |
+
821,
|
| 1167 |
+
364
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 11
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "[23] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9729–9738, 2020. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
371,
|
| 1177 |
+
823,
|
| 1178 |
+
415
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 11
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "[24] 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. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8340–8349, 2021. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
174,
|
| 1187 |
+
421,
|
| 1188 |
+
823,
|
| 1189 |
+
479
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 11
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "[25] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Lixuan Zhu, Samyak Parajuli, Mike Guo, Dawn Xiaodong Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-ofdistribution generalization. 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 8320–8329, 2021. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
486,
|
| 1199 |
+
826,
|
| 1200 |
+
556
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 11
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "[26] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15262–15271, 2021. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
171,
|
| 1209 |
+
564,
|
| 1210 |
+
825,
|
| 1211 |
+
608
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 11
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "[27] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Xiaodong Song. Natural adversarial examples. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15257–15266, 2021. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
171,
|
| 1220 |
+
616,
|
| 1221 |
+
823,
|
| 1222 |
+
659
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 11
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "[28] Gabriel Ilharco, Mitchell Wortsman, Ross Wightman, Cade Gordon, Nicholas Carlini, Rohan Taori, Achal Dave, Vaishaal Shankar, Hongseok Namkoong, John Miller, Hannaneh Hajishirzi, Ali Farhadi, and Ludwig Schmidt. Openclip. Zenodo, July 2021. If you use this software, please cite it as below. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
666,
|
| 1232 |
+
826,
|
| 1233 |
+
723
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 11
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "[29] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, YunHsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. In International Conference on Machine Learning, pages 4904–4916. PMLR, 2021. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
173,
|
| 1242 |
+
731,
|
| 1243 |
+
826,
|
| 1244 |
+
786
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 11
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "[30] Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3128–3137, 2015. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
171,
|
| 1253 |
+
795,
|
| 1254 |
+
823,
|
| 1255 |
+
838
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "[31] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Citeseer, 2009. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
845,
|
| 1265 |
+
823,
|
| 1266 |
+
875
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "[32] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436–444, 2015. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
174,
|
| 1275 |
+
882,
|
| 1276 |
+
823,
|
| 1277 |
+
911
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 11
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "[33] Yangguang Li, Feng Liang, Lichen Zhao, Yufeng Cui, Wanli Ouyang, Jing Shao, Fengwei Yu, and Junjie Yan. Supervision exists everywhere: A data efficient contrastive language-image pre-training paradigm. arXiv:2110.05208, 2021. \n[34] Kevin Lu, Aditya Grover, Pieter Abbeel, and Igor Mordatch. Pretrained transformers as universal computation engines. arXiv preprint arXiv:2103.05247, 2021. \n[35] Sijie Mai, Ying Zeng, Shuangjia Zheng, and Haifeng Hu. Hybrid contrastive learning of tri-modal representation for multimodal sentiment analysis. arXiv:2109.01797, 2021. \n[36] John P Miller, Rohan Taori, Aditi Raghunathan, Shiori Sagawa, Pang Wei Koh, Vaishaal Shankar, Percy Liang, Yair Carmon, and Ludwig Schmidt. Accuracy on the line: on the strong correlation between out-of-distribution and in-distribution generalization. In International Conference on Machine Learning, pages 7721–7735. PMLR, 2021. \n[37] Norman Mu, Alexander Kirillov, David Wagner, and Saining Xie. Slip: Self-supervision meets language-image pre-training. arXiv:2112.12750, 2021. \n[38] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv:2112.10741, 2021. \n[39] Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4004–4012, 2016. \n[40] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. \n[41] Hieu Pham, Zihang Dai, Golnaz Ghiasi, Hanxiao Liu, Adams Wei Yu, Minh-Thang Luong, Mingxing Tan, and Quoc V Le. Combined scaling for zero-shot transfer learning. arXiv preprint arXiv:2111.10050, 2021. \n[42] Bryan A Plummer, Liwei Wang, Chris M Cervantes, Juan C Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE international conference on computer vision, pages 2641–2649, 2015. \n[43] Ariadna Quattoni, Michael Collins, and Trevor Darrell. Learning visual representations using images with captions. In 2007 IEEE Conference on Computer Vision and Pattern Recognition, pages 1–8. IEEE, 2007. \n[44] 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. In International Conference on Machine Learning, pages 8748–8763. PMLR, 2021. \n[45] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \n[46] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022. \n[47] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning, pages 8821–8831. PMLR, 2021. \n[48] 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[49] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
169,
|
| 1286 |
+
44,
|
| 1287 |
+
828,
|
| 1288 |
+
914
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 12
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "[50] Aditya Sanghi, Hang Chu, Joseph G Lambourne, Ye Wang, Chin-Yi Cheng, and Marco Fumero. Clip-forge: Towards zero-shot text-to-shape generation. arXiv preprint arXiv:2110.02624, 2021. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
171,
|
| 1297 |
+
90,
|
| 1298 |
+
825,
|
| 1299 |
+
133
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 13
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "[51] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815–823, 2015. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
173,
|
| 1308 |
+
143,
|
| 1309 |
+
823,
|
| 1310 |
+
186
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 13
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "[52] 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. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
173,
|
| 1319 |
+
196,
|
| 1320 |
+
826,
|
| 1321 |
+
253
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 13
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "[53] Yuge Shi, Brooks Paige, Philip Torr, et al. Variational mixture-of-experts autoencoders for multi-modal deep generative models. Advances in Neural Information Processing Systems, 32, 2019. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
173,
|
| 1330 |
+
262,
|
| 1331 |
+
825,
|
| 1332 |
+
305
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 13
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "[54] Amanpreet Singh, Ronghang Hu, Vedanuj Goswami, Guillaume Couairon, Wojciech Galuba, Marcus Rohrbach, and Douwe Kiela. Flava: A foundational language and vision alignment model. arXiv preprint arXiv:2112.04482, 2021. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
173,
|
| 1341 |
+
315,
|
| 1342 |
+
825,
|
| 1343 |
+
359
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 13
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "[55] Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. Advances in neural information processing systems, 29, 2016. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
173,
|
| 1352 |
+
368,
|
| 1353 |
+
823,
|
| 1354 |
+
398
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 13
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "[56] Ajinkya Tejankar, Bichen Wu, Saining Xie, Madian Khabsa, Hamed Pirsiavash, and Hamed Firooz. A fistful of words: Learning transferable visual models from bag-of-words supervision. arXiv:2112.13884, 2021. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
176,
|
| 1363 |
+
407,
|
| 1364 |
+
825,
|
| 1365 |
+
450
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 13
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "[57] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. Advances in Neural Information Processing Systems, 32, 2019. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
174,
|
| 1374 |
+
460,
|
| 1375 |
+
825,
|
| 1376 |
+
503
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 13
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "[58] Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In ICML, 2020. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
173,
|
| 1385 |
+
512,
|
| 1386 |
+
825,
|
| 1387 |
+
542
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 13
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "[59] Wenhui Wang, Hangbo Bao, Li Dong, and Furu Wei. Vlmo: Unified vision-language pretraining with mixture-of-modality-experts. arXiv preprint arXiv:2111.02358, 2021. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
173,
|
| 1396 |
+
551,
|
| 1397 |
+
825,
|
| 1398 |
+
582
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 13
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "[60] Mike Wu and Noah Goodman. Multimodal generative models for scalable weakly-supervised learning. Advances in Neural Information Processing Systems, 31, 2018. ",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
173,
|
| 1407 |
+
590,
|
| 1408 |
+
823,
|
| 1409 |
+
621
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 13
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "[61] Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. Dualgan: Unsupervised dual learning for image-to-image translation. In Proceedings of the IEEE international conference on computer vision, pages 2849–2857, 2017. ",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
630,
|
| 1419 |
+
823,
|
| 1420 |
+
672
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 13
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "[62] Xin Yuan, Zhe Lin, Jason Kuen, Jianming Zhang, Yilin Wang, Michael Maire, Ajinkya Kale, and Baldo Faieta. Multimodal contrastive training for visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6995–7004, 2021. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
173,
|
| 1429 |
+
683,
|
| 1430 |
+
826,
|
| 1431 |
+
739
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 13
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "[63] Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stéphane Deny. Barlow twins: Selfsupervised learning via redundancy reduction. In International Conference on Machine Learning, pages 12310–12320. PMLR, 2021. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
173,
|
| 1440 |
+
750,
|
| 1441 |
+
825,
|
| 1442 |
+
792
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 13
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "[64] Rowan Zellers, Ximing Lu, Jack Hessel, Youngjae Yu, Jae Sung Park, Jize Cao, Ali Farhadi, and Yejin Choi. Merlot: Multimodal neural script knowledge models. Advances in Neural Information Processing Systems, 34, 2021. ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
173,
|
| 1451 |
+
803,
|
| 1452 |
+
823,
|
| 1453 |
+
845
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 13
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "[65] Pengchuan Zhang, Xiujun Li, Xiaowei Hu, Jianwei Yang, Lei Zhang, Lijuan Wang, Yejin Choi, and Jianfeng Gao. Vinvl: Revisiting visual representations in vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5579–5588, 2021. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
174,
|
| 1462 |
+
856,
|
| 1463 |
+
825,
|
| 1464 |
+
911
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 13
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "[66] Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. arXiv preprint arXiv:2010.00747, 2020. \n[67] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223–2232, 2017. ",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
171,
|
| 1473 |
+
90,
|
| 1474 |
+
826,
|
| 1475 |
+
185
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 14
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "Checklist ",
|
| 1482 |
+
"text_level": 1,
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
174,
|
| 1485 |
+
89,
|
| 1486 |
+
254,
|
| 1487 |
+
106
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 15
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "1. For all authors... ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
214,
|
| 1496 |
+
122,
|
| 1497 |
+
339,
|
| 1498 |
+
136
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 15
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"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] Section 6. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] Section 6. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
238,
|
| 1507 |
+
141,
|
| 1508 |
+
826,
|
| 1509 |
+
232
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 15
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "2. If you are including theoretical results... ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
214,
|
| 1518 |
+
236,
|
| 1519 |
+
493,
|
| 1520 |
+
251
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 15
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
236,
|
| 1529 |
+
255,
|
| 1530 |
+
738,
|
| 1531 |
+
286
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 15
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "3. If you ran experiments... ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
214,
|
| 1540 |
+
290,
|
| 1541 |
+
393,
|
| 1542 |
+
304
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 15
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Due to extremely-compute heavy experiments. \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] ",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
238,
|
| 1551 |
+
309,
|
| 1552 |
+
825,
|
| 1553 |
+
428
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 15
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
214,
|
| 1562 |
+
431,
|
| 1563 |
+
823,
|
| 1564 |
+
446
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 15
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "text",
|
| 1570 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [No] All the non-proprietary datasets and code used are public under MIT, BSD or CC licenses. \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] ",
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
238,
|
| 1573 |
+
450,
|
| 1574 |
+
825,
|
| 1575 |
+
585
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 15
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
214,
|
| 1584 |
+
589,
|
| 1585 |
+
705,
|
| 1586 |
+
604
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 15
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"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] ",
|
| 1593 |
+
"bbox": [
|
| 1594 |
+
238,
|
| 1595 |
+
608,
|
| 1596 |
+
825,
|
| 1597 |
+
696
|
| 1598 |
+
],
|
| 1599 |
+
"page_idx": 15
|
| 1600 |
+
}
|
| 1601 |
+
]
|
parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/I-6yh2-dkyD/I-6yh2-dkyD_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ITw9edRDlD/ITw9edRDlD.md
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Are Emergent Abilities of Large Language Models a Mirage?
|
| 2 |
+
|
| 3 |
+
# Rylan Schaeffer
|
| 4 |
+
|
| 5 |
+
Brando Miranda Computer Science Stanford University brando9@cs.stanford.edu
|
| 6 |
+
|
| 7 |
+
Computer Science Stanford University rschaef@cs.stanford.edu
|
| 8 |
+
|
| 9 |
+
Sanmi Koyejo
|
| 10 |
+
Computer Science
|
| 11 |
+
Stanford University
|
| 12 |
+
sanmi@cs.stanford.edu
|
| 13 |
+
|
| 14 |
+
# Abstract
|
| 15 |
+
|
| 16 |
+
Recent work claims that large language models display emergent abilities: abilities not present in smaller-scale models that are present in larger-scale models. What makes emergent abilities intriguing is two-fold: their sharpness, transitioning seemingly instantaneously from not present to present, and their unpredictability, appearing at seemingly unforeseeable model scales. Here, we present an alternative explanation for emergent abilities: for a particular task and model family, when analyzing fixed model outputs, emergent abilities appear due to the researcher’s choice of metric rather than due to fundamental changes in models with scale. Specifically, nonlinear or discontinuous metrics produce seemingly emergent abilities, whereas linear or continuous metrics produce smooth, continuous, predictable changes in model performance. We present our alternative explanation in a simple mathematical model, then test it in three complementary ways: we (1) make, test and confirm three predictions on the effect of metric choice using the InstructGPT/GPT-3 family on tasks with claimed emergent abilities; (2) make, test and confirm two predictions about metric choices in a meta-analysis of emergent abilities on the Beyond the Imitation Game Benchmark (BIG-Bench); and (3) show how to choose metrics to produce never-before-seen seemingly emergent abilities in multiple vision tasks across diverse deep network architectures. Via all three analyses, we provide evidence that emergent abilities disappear with different metrics or with better statistics, and may not be a fundamental property of scaling AI models.
|
| 17 |
+
|
| 18 |
+
# 1 Introduction
|
| 19 |
+
|
| 20 |
+
Emergent properties of complex systems have long been studied across disciplines, from physics to biology to mathematics. The idea of emergence was popularized by Nobel Prize-winning physicist P.W. Anderson’s “More Is Different" [1], which argues that as the complexity of a system increases, new properties may materialize that cannot be predicted even from a precise quantitative understanding of the system’s microscopic details. Recently, the idea of emergence gained significant attention in machine learning due to observations that large language models (LLMs) such as GPT [4], PaLM [7] and LaMDA [35] exhibit so-called “emergent abilities" [38, 9, 33, 4] (Fig. 1).
|
| 21 |
+
|
| 22 |
+
The term “emergent abilities of LLMs" was recently and crisply defined as “abilities that are not present in smaller-scale models but are present in large-scale models; thus they cannot be predicted by simply extrapolating the performance improvements on smaller-scale models" [38]. Such emergent abilities were first discovered in the GPT-3 family [4]. Subsequent work emphasized the discovery, writing that “[although model] performance is predictable at a general level, performance on a specific task can sometimes emerge quite unpredictably and abruptly at scale" [9]. These quotations collectively identify the two defining properties of emergent abilities in LLMs:
|
| 23 |
+
|
| 24 |
+
1. Sharpness, transitioning seemingly instantaneously from not present to present
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 1: Emergent abilities of large language models. Model families display sharp and unpredictable increases in performance at specific tasks as scale increases. Source: Fig. 2 from [38].
|
| 28 |
+
|
| 29 |
+
2. Unpredictability, transitioning at seemingly unforeseeable model scales
|
| 30 |
+
|
| 31 |
+
These emergent abilities have garnered significant interest, raising questions such as: What controls which abilities will emerge? What controls when abilities will emerge? How can we make desirable abilities emerge faster, and ensure undesirable abilities never emerge? These questions are especially pertinent to AI safety and alignment, as emergent abilities forewarn that larger models might one day, without warning, acquire undesired mastery over dangerous capabilities [34, 12, 19, 20].
|
| 32 |
+
|
| 33 |
+
In this paper, we call into question the claim that LLMs possess emergent abilities, by which we specifically mean sharp and unpredictable changes in model outputs as a function of model scale on specific tasks. Our doubt stems from the observation that emergent abilities seem to appear only under metrics that nonlinearly or discontinuously scale any model’s per-token error rate. For instance, as we later show, $> 9 2 \%$ of emergent abilities on BIG-Bench tasks [33] (hand-annotated by [37]) appear under either of these two metrics:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\begin{array} { r l } { \mathrm { M u l t i p l e ~ C h o i c e ~ G r a d e ~ { \stackrel { d e f } { = } } ~ } } & { { } { \left\{ \begin{array} { l l } { 1 } & { { \mathrm { i f ~ h i g h e s t ~ p r o b a b i l i t y ~ m a s s ~ o n ~ c o r r e c t ~ o p t i o n } } } \\ { 0 } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. } } \\ { \mathrm { E x a c t ~ S t r i n g ~ M a t c h ~ { \stackrel { d e f } { = } } ~ } } & { { } { \left\{ \begin{array} { l l } { 1 } & { { \mathrm { i f ~ o u t p u t ~ s t r i n g ~ e x a c t l y ~ m a t c h e s ~ t a r g e t ~ s t r i n g } } } \\ { 0 } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. } } \end{array}
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
This raises the possibility of an alternative explanation for the origin of LLMs’ emergent abilities: sharp and unpredictable changes might be induced by the researcher’s choice of measurement, even though the model family’s per-token error rate changes smoothly, continuously and predictably with increasing scale. Specifically, our alternative posits that emergent abilities are a mirage caused primarily by the researcher choosing a metric that nonlinearly or discontinuously deforms per-token error rates, and secondarily by possessing too few test data to accurately estimate the performance of smaller models, thereby causing smaller models to appear wholly unable to perform the task.
|
| 40 |
+
|
| 41 |
+
To communicate our alternative explanation, we present it as a simple mathematical model and demonstrate how it quantitatively reproduces the evidence offered in support of emergent abilities of LLMs. We then test our alternative explanation in three complementary ways:
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 2: Emergent abilities of large language models are created by the researcher’s chosen metrics, not unpredictable changes in model behavior with scale. (A) Suppose the per-token cross-entropy loss decreases monotonically with model scale, e.g., $\mathcal { L } _ { C E }$ scales as a power law. (B) The per-token probability of selecting the correct token asymptotes towards 1. (C) If the researcher scores models’ outputs using a nonlinear metric such as Accuracy (which requires a sequence of tokens to all be correct), the metric choice nonlinearly scales performance, causing performance to change sharply and unpredictably in a manner that qualitatively matches published emergent abilities (inset). (D) If the researcher instead scores models’ outputs using a discontinuous metric such as Multiple Choice Grade (akin to a step function), the metric choice discontinuously scales performance, again causing performance to change sharply and unpredictably. (E) Changing from a nonlinear metric to a linear metric such as Token Edit Distance, scaling shows smooth, continuous and predictable improvements, ablating the emergent ability. (F) Changing from a discontinuous metric to a continuous metric such as Brier Score again reveals smooth, continuous and predictable improvements in task performance. Consequently, the observation of "emergent abilities" can be explained by the researcher’s choice of metrics, and does not require fundamental changes in model family behavior on specific tasks with scale.
|
| 45 |
+
|
| 46 |
+
1. We make, test and confirm three predictions based on our alternative hypotheses using the InstructGPT [27] / GPT-3 [4] model family.
|
| 47 |
+
2. We meta-analyze published benchmarks [33, 38] to reveal that emergent abilities only appear for specific metrics, not for model families on particular tasks, and that changing the metric causes the emergence phenomenon to disappear.
|
| 48 |
+
3. We induce never-before-seen, seemingly emergent abilities in multiple architectures across various vision tasks by intentionally changing the metrics used for evaluation.
|
| 49 |
+
|
| 50 |
+
# 2 Alternative Explanation for Emergent Abilities
|
| 51 |
+
|
| 52 |
+
How might smooth, continuous, predictable changes in model family performance appear sharp and unpredictable? The answer is that the researcher’s choice of a nonlinear or discontinuous metric can distort the model family’s performance to appear sharp and unpredictable.
|
| 53 |
+
|
| 54 |
+
To expound, suppose that within a model family, the test loss falls smoothly, continuously, and predictably with the number of model parameters. One reason to believe this is the phenomenon known as neural scaling laws: empirical observations that deep networks exhibit power law scaling in the test loss as a function of training dataset size, number of parameters or compute [15, 32, 13, 18,
|
| 55 |
+
|
| 56 |
+
10, 14, 17, 39, 16, 8, 29]. For concreteness, suppose we have a model family of different numbers of parameters $N > 0$ and assume that each model’s per-token cross entropy falls as a power law with the number of parameters $N$ for constants $c > 0 , \alpha < 0$ (Fig. 2A):
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mathcal { L } _ { C E } ( N ) = \left( \frac { N } { c } \right) ^ { \alpha }
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
To be clear, we do not require this particular functional form to hold; rather, we use it for illustrative purposes. Let $V$ denote the set of possible tokens, $p$ denote the true but unknown probability distribution, and $\hat { p } _ { N }$ denote the $N$ -parameter model’s predicted probability distribution. The pertoken cross entropy as a function of number of parameters $N$ is:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\mathcal { L } _ { C E } ( N ) \ \stackrel { \mathrm { d e f } } { = } \ - \sum _ { v \in V } p ( v ) \log \hat { p } _ { N } ( v )
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
In practice, $p$ is unknown, so we substitute a one-hot distribution of the observed token $v ^ { * }$
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\mathcal { L } _ { C E } ( N ) = - \log \hat { p } _ { N } ( v ^ { * } )
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
A model with $N$ parameters then has a per-token probability of selecting the correct token (Fig. 2B):
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
p ( \mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } ) = \exp \Big ( - \mathcal { L } _ { C E } ( N ) \Big ) = \exp \Big ( - \big ( N / c \big ) ^ { \alpha } \Big )
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
Suppose the researcher then chooses a metric that requires selecting $L$ tokens correctly. For example, our task might be $L$ -digit integer addition, and a model’s output is scored 1 if all $L$ output digits exactly match all target digits with no additions, deletions or substitutions, 0 otherwise. If the probability each token is correct is independent1, the probability of scoring 1 is:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\operatorname { A c c u r a c y } ( N ) \approx p _ { N } ( { \mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } } ) ^ { \mathrm { n u m . ~ o f ~ t o k e n s } } = \exp { \Big ( } - ( N / c ) ^ { \alpha } { \Big ) } ^ { L }
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
This choice of metric nonlinearly scales performance with increasing token sequence length. When plotting performance on a linear-log plot, one sees a sharp, unpredictable emergent ability on longer sequences (Fig. 2C) that closely matches claimed emergent abilities (inset). What happens if the researcher switches from a nonlinear metric like Accuracy, under which the per-token error rate scales geometrically in target length (App. A.3), to an approximately linear metric like Token Edit Distance, under which the per-token error rate scales quasi-linearly in target length (App. A.2)?
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
{ \mathrm { T o k e n ~ E d i t ~ D i s t a n c e } } ( N ) \approx L \left( 1 - p _ { N } ( { \mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } } ) \right) = L \left( 1 - \exp { \big ( } - ( N / c ) ^ { \alpha } { \big ) } \right)
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
The linear metric reveals smooth, continuous, predictable changes in model performance (Fig. 2E). Similarly, if the researcher uses a discontinuous metric like Multiple Choice Grade, the researcher can find emergent abilities (Fig. 2D), but switching to a continuous metric like Brier Score removes such abilities (Fig. 2F). In summary, sharp and unpredictable changes with increasing scale can be fully explained by three interpretable factors: (1) the researcher choosing a metric that nonlinearly or discontinuously scales the per-token error rate, (2) having insufficient resolution to estimate model performance in the smaller parameter regime, with resolution2 set by 1/test dataset size, and (3) insufficiently sampling the larger parameter regime.
|
| 93 |
+
|
| 94 |
+
# 3 Analyzing InstructGPT/GPT-3’s Emergent Arithmetic Abilities
|
| 95 |
+
|
| 96 |
+
Previous papers prominently claimed the GPT [4, 27] family3 displays emergent abilities at integer arithmetic tasks [9, 33, 38] (Fig. 1A). We chose these tasks as they were prominently presented [4, 9, 33, 38], and we focused on the GPT family due to it being publicly queryable. As explained mathematically and visually in Sec. 2, our alternative explanation makes three predictions:
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 3: Claimed emergent abilities evaporate upon changing the metric. Top: When performance is measured by a nonlinear metric (e.g., Accuracy), the InstructGPT/GPT-3 [4, 27] family’s performance appears sharp and unpredictable on longer target lengths. Bottom: When performance is instead measured by a linear metric (e.g., Token Edit Distance), the family exhibits smooth, predictable performance improvements.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 4: Claimed emergent abilities evaporate upon using better statistics. Based on the predictable effect Accuracy has on performance, measuring performance requires high resolution. Generating additional test data increases the resolution and reveals that even on Accuracy, the InstructGPT/GPT-3 family’s [4, 27] performance is above chance and improves in a smooth, continuous, predictable manner that qualitatively matches the mathematical model.
|
| 103 |
+
|
| 104 |
+
1. Changing the metric from a nonlinear or discontinuous metric (Fig. 2CD) to a linear or continuous metric (Fig. 2 EF) should reveal smooth, continuous, predictable performance improvement with model scale.
|
| 105 |
+
2. For nonlinear metrics, increasing the resolution of measured model performance by increasing the test dataset size should reveal smooth, continuous, predictable model improvements commensurate with the predictable nonlinear effect of the chosen metric.
|
| 106 |
+
3. Regardless of metric, increasing the target string length should predictably affect the model’s performance as a function of the length-1 target performance: approximately geometrically for accuracy and approximately quasilinearly for token edit distance.
|
| 107 |
+
|
| 108 |
+
To test these predictions, we collected outputs from the InstructGPT/GPT-3 family on two tasks: 2-shot multiplication between two 2-digit integers and 2-shot addition between two 4-digit integers.
|
| 109 |
+
|
| 110 |
+
Prediction: Emergent Abilities Disappear With Different Metrics On both arithmetic tasks, the GPT family displays emergent abilities if the target has 4 or 5 digits and if the metric is Accuracy (Fig. 3, top) [4, 9, 38]. However, if one changes from nonlinear Accuracy to linear Token Edit Distance while keeping the models’ outputs fixed, the family’s performance smoothly, continuously and predictably improves with increasing scale (Fig. 3, bottom). This confirms our first prediction and supports our alternative explanation that the observation of emergent abilities can be explained by the researcher’s choice of metric, not changes in the model family’s outputs. We also observe that under Token Edit Distance, increasing the length of the target string from 1 to 5 predictably decreases the family’s performance in an approximately quasilinear manner, confirming the first half of our third prediction.
|
| 111 |
+
|
| 112 |
+
Prediction: Emergent Abilities Disappear With Better Statistics We next tested our second prediction: that even on nonlinear metrics such as accuracy, smaller models do not have zero accuracy, but rather have non-zero above-chance accuracy commensurate with choosing to use accuracy as the metric. In order to accurately measure models’ accuracy, we increased the resolution by generating additional test data, and found that on both arithmetic tasks, all models in the InstructGPT/GPT-3 family achieve above-chance accuracy (Fig. 4). This confirms our second prediction. We also observe that as the target string length increases, the accuracy falls approximately geometrically with the length of the target string, confirming the second half of our third prediction. These results additionally demonstrate that the researcher’s choice of metric has the effect that one should predict accuracy to have, i.e., geometric decay with the target length.
|
| 113 |
+
|
| 114 |
+
# 4 Meta-Analysis of Claimed Emergent Abilities
|
| 115 |
+
|
| 116 |
+
Analyzing the GPT family is possible because the models are publicly queryable. However, at the time of this analysis, other model families claimed to exhibit emergent abilities are not publicly queryable, nor are their generated outputs publicly available, meaning we are limited to analyzing the published results themselves [9, 38, 37]. Our alternative explanation makes two predictions.
|
| 117 |
+
|
| 118 |
+
1. At the “population level" of Task-Metric-Model Family triplets, emergent abilities should appear predominantly on specific metrics, not task-model family pairs, and specifically with nonlinear and/or discontinuous metrics. 2. On individual Task-Metric-Model Family triplets that display an emergent ability, changing the metric to a linear and/or continuous metric should remove the emergent ability.
|
| 119 |
+
|
| 120 |
+
To test these predictions, we used claimed emergent abilities on BIG-Bench [33, 38] due to the benchmark being pertinent and publicly available.
|
| 121 |
+
|
| 122 |
+
Prediction: Emergent Abilities Should Appear with Metrics, not Task-Model Families If emergent abilities are real, one should expect task-model family pairs to show emergence for all reasonable metrics. However, if our alternative explanation is correct, we should expect emergent abilities to appear only under certain metrics. To test this, we analyzed on which metrics emergent abilities appear. To determine whether a task-metric-model family triplet exhibits a possible emergent ability, we used a metric from previous work [33]. Letting $y _ { i } \in \mathbb { R }$ denote model performance at model scales $x _ { i } \in \mathbb { R }$ , sorted such that $x _ { i } < x _ { i + 1 }$ , the emergence score is:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
{ \begin{array} { r l r l } { \cdot { \operatorname { S c o r e } } { \Big ( } { \Big \{ } ( x _ { n } , y _ { n } ) { \Big \} } _ { n = 1 } ^ { N } { \Big ) } } & { } & { { \stackrel { \mathrm { d e f } } { = } } } & { { \frac { \operatorname { s i g n } ( \operatorname { a r g m a x } _ { i } y _ { i } - \operatorname { a r g m i n } _ { i } y _ { i } ) ( \operatorname* { m a x } _ { i } y _ { i } - \operatorname* { m i n } _ { i } y _ { i } ) } { \sqrt { { \mathsf { M e d i a n } } ( \{ ( y _ { i } - y _ { i - 1 } ) ^ { 2 } \} _ { i } ) } } } } \end{array} }
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
We found that most metrics used in BIG-Bench have zero task-model family pairs that exhibit emergent abilities: of the 39 preferred metrics in BIG-Bench, at most 5 display emergence (Fig. 5A). Many of the 5 are nonlinear and/or discontinuous, e.g., Exact String Match, Multiple Choice Grade, ROUGE-L-Sum (App. A.4). Notably, because BIG-Bench often scores models on tasks using multiple metrics, the lack of emergent abilities under other metrics suggests that emergent abilities do not appear when model outputs are scored using other metrics.
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 5: Emergent abilities appear only for specific metrics, not task-model families. (A) Possible emergent abilities appear with at most 5 out of 39 BIG-Bench metrics. (B) Hand-annotated data by [37] reveal emergent abilities appear only under 4 preferred metrics. $\mathrm { ( C ) > 9 2 \% }$ of emergent abilities appear under one of two metrics: Multiple Choice Grade and Exact String Match.
|
| 132 |
+
|
| 133 |
+
Because emergence score only suggests emergence, we also analyzed hand-annotated task-metricmodel family triplets [37], which revealed emergent abilities appear with $4 / 3 9$ metrics (Fig. 5B), and 2 metrics account for $> 9 2 \%$ of claimed emergent abilities (Fig. 5C): Multiple Choice Grade and Exact String Match. Multiple Choice Grade is discontinuous, and Exact String Match is nonlinear.
|
| 134 |
+
|
| 135 |
+
Prediction: Changing Metric Removes Emergent Abilities To test our second prediction, we focused on the LaMDA family [35] because its outputs are available through BIG-Bench. We identified tasks on which LaMDA displays emergent abilities with Multiple Choice Grade, then asked whether LaMDA still displays emergent abilities on the same tasks with a different BIG-Bench metric: Brier Score [3]. Brier Score is a strictly proper scoring rule for predictions of mutually exclusive outcomes; for a binary outcome, the Brier Score simplifies to the squared error between 1 and the model’s probability mass on the outcome. LaMDA’s emergent abilities on the discontinuous Multiple Choice Grade disappeared when we changed the metric to the continuous Brier Score (Fig. 6). These results support our alternative explanation that emergent abilities are induced by the chosen metric.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 6: Changing the metric when evaluating task-model family pairs causes emergent abilities to disappear. Top: The LaMDA model family displays emergent abilities when measured under the discontinuous Multiple Choice Grade. Bottom: The LaMDA model family’s emergent abilities disappear when measured under a continuous BIG-Bench metric: Brier Score.
|
| 139 |
+
|
| 140 |
+
# 5 Inducing Emergent Abilities in Networks on Vision Tasks
|
| 141 |
+
|
| 142 |
+
To demonstrate how emergent abilities can be induced by the researcher’s choice of metric, we show how to produce emergent abilities in deep networks of various architectures: fully connected, convolutional, self-attentional. We focus on vision tasks because abrupt transitions in vision models’ capabilities have not been observed to the best of our knowledge; this is one reason why emergence in large language models is considered so interesting. For the convolutional example, see App. B.
|
| 143 |
+
|
| 144 |
+
Emergent Reconstruction of CIFAR100 Natural Images by Nonlinear Autoencoders We first induce an emergent ability to reconstruct images in shallow (i.e., single hidden layer) nonlinear autoencoders trained on CIFAR100 natural images [21]. To emphasize that the sharpness of the metric is responsible for emergent abilities, and to show that sharpness extends to metrics beyond Accuracy, we intentionally define a discontinuous metric that measures a network’s ability to reconstruct a dataset as the average number of test data with squared reconstruction error below cutoff $c$ :
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\mathrm { R e c o n s t r u c t i o n } _ { c } \Big ( \{ x _ { n } \} _ { n = 1 } ^ { N } \Big ) \stackrel { \mathrm { \scriptsize ~ d e f } } { = } \frac { 1 } { N } \sum _ { n } \mathbb { I } \Big [ | | x _ { n } - \hat { x } _ { n } | | ^ { 2 } < c \Big ] ,
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
where $\mathbb { I } ( \cdot )$ denotes an indicator variable and ${ \hat { x } } _ { n }$ is the autoencoder’s reconstruction of $x _ { n }$ . The autoencoder family displays smoothly decreasing squared reconstruction error as the number of bottleneck units increases (Fig. 7B). Under our newly defined Reconstructionc metric and for particular choices of $c$ , the autoencoder family exhibits a sharp and seemingly unpredictable image reconstruction ability (Fig. 7C) that qualitatively matches published emergent abilities (Fig. 7A).
|
| 151 |
+
|
| 152 |
+
Emergent Classification of Omniglot Characters by Autoregressive Transformers We next induce emergent abilities in Transformers [36] trained to autoregressively classify Omniglot handwritten characters [22], in a setup inspired by recent work [6]: Omniglot images are embedded by convolutional layers, then sequences of embedded image-image class label pairs are fed into decoder-only transformers. We measure image classification performance on sequences of length $L \in [ 1 , 5 ]$ , again via subset accuracy: 1 if all $L$ images are classified correctly (Fig. 8B), 0 otherwise. Causal transformers display a seemingly emergent ability to correctly classify Omniglot handwritten characters (Fig. 8C) that qualitatively matches published emergent abilities (Fig. 8A).
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Figure 7: Induced emergent reconstruction ability in shallow nonlinear autoencoders. (A) A published emergent ability at the BIG-Bench Periodic Elements task [33]. (B) Shallow nonlinear autoencoders trained on CIFAR100 [21] display smoothly decreasing mean squared reconstruction error. (C) Using a newly defined Reconstructionc metric (Eqn. 1) induces an unpredictable change.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 8: Induced emergent classification ability in autoregressive Transformers. (A) A published emergent ability on the MMLU benchmark [9]. (B) Autoregressive transformers trained to classify Omniglot images display increasing accuracy with increasing scale. (C) When accuracy is redefined as classifying all images correctly, a seemingly emergent ability appears.
|
| 159 |
+
|
| 160 |
+
# 6 Limitations
|
| 161 |
+
|
| 162 |
+
This paper has several limitations. First, nothing in this paper should be interpreted as claiming that large language models cannot display emergent abilities; rather, our message is that some previously claimed emergent abilities appear to be mirages induced by researcher analyses. Second, our experiments and analyses are limited because some LLMs with claimed emergent abilities (e.g., PaLM 1, Gopher, Chinchilla) are private and not queryable at the time of our analysis. Lastly, the best metric(s) arguably depends on human preferences, which may exhibit qualitatively different behavior; we are unaware of studies quantifying whether human judgment is thresholded in an “emergent" way.
|
| 163 |
+
|
| 164 |
+
# 7 Related Work
|
| 165 |
+
|
| 166 |
+
Srivastava et al. [33] observed that while accuracy at a particular task can empirically appear sharp and unpredictable, cross-entropy does not appear so; the authors then discussed whether emergent abilities may be partially attributed to the metric. Our paper converts their discussion into precise predictions, then quantitatively tests the predictions to reveal metric choice is possibly responsible for some claimed emergent abilities; well-known and widely-used metrics (including metrics used by [33]) capture graded improvements; emergent abilities do not appear only on tasks involving multiple steps, such as the discontinuous Multiple Choice Grade; metric choice can be used to induce emergent abilities in a novel domain (vision) in diverse architectures and tasks.
|
| 167 |
+
|
| 168 |
+
Alternative explanations exist for the origin of emergent abilities. Caballero et al. [5] explain emergence by assuming a piece-wise power law functional form; under this view, emergent abilities are real, caused by a “break" (or possibly multiple breaks) in the governing power law. In contrast, our work suggests that emergent abilities can be induced by the researcher under a single power law. Both explanations could be true: some emergent abilities might genuinely be abruptly appearing, whereas some emergent abilities might be attributable to the metric. Michaud et al. [28] posits that language modeling data might be comprised of discrete subtasks (“quanta”) that networks learn; if larger networks have greater capacity, and are thus more capable of learning more of these quanta, then if some downstream task requires a network to learn some combination of quanta, larger networks are more likely to have all the requisite capabilities and thus are capable of performing this downstream task. We think that this is a very interesting hypothesis. Whether language modeling data can or should be understood from this quantization perspective, and whether these quanta indeed are the origin of emergent abilities, are really exciting questions that we think merit more study.
|
| 169 |
+
|
| 170 |
+
# 8 Discussion
|
| 171 |
+
|
| 172 |
+
Our paper presents an alternative explanation for the claimed emergent abilities of large language models. For a fixed task and a fixed model family, the researcher can choose a metric to create an emergent ability or choose a metric to ablate an emergent ability. Ergo, emergent abilities may be creations of the researcher’s choices, not a fundamental property of the model family on the specific task.
|
| 173 |
+
|
| 174 |
+
Our work has several implications. Firstly, a task and a metric are distinct and meaningful choices when constructing a benchmark. Secondly, when choosing metric(s), if the goal is to accurately predict scaling behavior, then one should consider the interplay between cross-entropy, transformations, and resolution-limited evaluations so that one isn’t surprised. As a corollary, continuous/linear metrics are probably better for accurate scaling forecasts, but if discontinuous/nonlinear metrics are preferred, then one may need a lot of data for sufficient resolution to accurately measure performance. The key is thinking through the consequences of one’s choices! Thirdly, when making claims about capabilities of large models, including proper controls is critical. In this particular setting, emergent abilities claims are possibly infected by a failure to control for multiple comparisons. In BIG-Bench alone, there are $\geq 2 2 0$ tasks, $\sim 4 0$ metrics per task, $\sim 1 0$ model families, for a total of $\sim 1 0 ^ { 6 }$ taskmetric-model family triplets, meaning the probability that no task-metric-model family triplet exhibits an emergent ability by random chance might be small. Fourthly, scientific progress can be hampered when models and their outputs are not made available for independent scientific investigation.
|
| 175 |
+
|
| 176 |
+
# 9 Contributions
|
| 177 |
+
|
| 178 |
+
RS conceived of the research direction collected data, ran experiments, and analyzed results. SK supervised and guided the project. BM also provided guidance. All authors helped write the manuscript.
|
| 179 |
+
|
| 180 |
+
# 10 Acknowledgements
|
| 181 |
+
|
| 182 |
+
This work is partially supported by the National Science Foundation under grants No. 2046795, 1934986, 2205329, NIH 1R01MH116226-01A, NIFA award 2020-67021-32799, the Alfred P. Sloan Foundation, and Google Inc. RS is partially supported by a Stanford Data Science Scholarship and BM is partially supported by a Stanford School of Engineering Fellowship and a Stanford EDGE Scholar Fellowship. We thank our colleagues Professor Tatsunori Hashimoto, Eric Han, Max Lamparth, Mikail Khona, Kateryna Pistunova, Victor Lecomte, and Zane Durante for discussing our findings with us and providing much-appreciated feedback.
|
| 183 |
+
|
| 184 |
+
References
|
| 185 |
+
[1] Philip W Anderson. More is different: broken symmetry and the nature of the hierarchical structure of science. Science, 177(4047):393–396, 1972.
|
| 186 |
+
[2] Boaz Barak, Benjamin Edelman, Surbhi Goel, Sham Kakade, Eran Malach, and Cyril Zhang. Hidden progress in deep learning: Sgd learns parities near the computational limit. Advances in Neural Information Processing Systems, 35:21750–21764, 2022.
|
| 187 |
+
[3] Glenn W Brier et al. Verification of forecasts expressed in terms of probability. Monthly weather review, 78(1):1–3, 1950.
|
| 188 |
+
[4] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
|
| 189 |
+
[5] Ethan Caballero, Kshitij Gupta, Irina Rish, and David Krueger. Broken neural scaling laws. arXiv preprint arXiv:2210.14891, 2022.
|
| 190 |
+
[6] Stephanie CY Chan, Adam Santoro, Andrew Kyle Lampinen, Jane X Wang, Aaditya K Singh, Pierre Harvey Richemond, James McClelland, and Felix Hill. Data distributional properties drive emergent in-context learning in transformers. In Advances in Neural Information Processing Systems, 2022.
|
| 191 |
+
[7] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
|
| 192 |
+
[8] Aidan Clark, Diego De Las Casas, Aurelia Guy, Arthur Mensch, Michela Paganini, Jordan Hoffmann, Bogdan Damoc, Blake Hechtman, Trevor Cai, Sebastian Borgeaud, et al. Unified scaling laws for routed language models. In International Conference on Machine Learning, pages 4057–4086. PMLR, 2022.
|
| 193 |
+
[9] Deep Ganguli, Danny Hernandez, Liane Lovitt, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova Dassarma, Dawn Drain, Nelson Elhage, et al. Predictability and surprise in large generative models. In 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1747–1764, 2022.
|
| 194 |
+
[10] Mitchell A Gordon, Kevin Duh, and Jared Kaplan. Data and parameter scaling laws for neural machine translation. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5915–5922, 2021.
|
| 195 |
+
[11] Andrey Gromov. Grokking modular arithmetic. arXiv preprint arXiv:2301.02679, 2023.
|
| 196 |
+
[12] Dan Hendrycks. Detecting emergent behavior. 2022.
|
| 197 |
+
[13] Tom Henighan, Jared Kaplan, Mor Katz, Mark Chen, Christopher Hesse, Jacob Jackson, Heewoo Jun, Tom B Brown, Prafulla Dhariwal, Scott Gray, et al. Scaling laws for autoregressive generative modeling. arXiv preprint arXiv:2010.14701, 2020.
|
| 198 |
+
[14] Danny Hernandez, Jared Kaplan, Tom Henighan, and Sam McCandlish. Scaling laws for transfer. arXiv preprint arXiv:2102.01293, 2021.
|
| 199 |
+
[15] Joel Hestness, Sharan Narang, Newsha Ardalani, Gregory Diamos, Heewoo Jun, Hassan Kianinejad, Md Patwary, Mostofa Ali, Yang Yang, and Yanqi Zhou. Deep learning scaling is predictable, empirically. arXiv preprint arXiv:1712.00409, 2017.
|
| 200 |
+
[16] Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.
|
| 201 |
+
[17] Andy L Jones. Scaling scaling laws with board games. arXiv preprint arXiv:2104.03113, 2021.
|
| 202 |
+
|
| 203 |
+
[18] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
|
| 204 |
+
|
| 205 |
+
[19] Victoria Krakovna, Vikrant Varma, Ramana Kumar, and Mary Phuong. Refining the sharp left turn threat model, part 1: claims and mechanisms. 2022.
|
| 206 |
+
|
| 207 |
+
[20] Victoria Krakovna, Vikrant Varma, Ramana Kumar, and Mary Phuong. Refining the sharp left turn threat model, part 2: applying alignment techniques. 2022.
|
| 208 |
+
|
| 209 |
+
[21] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 210 |
+
|
| 211 |
+
[22] Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015.
|
| 212 |
+
|
| 213 |
+
[23] Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998.
|
| 214 |
+
|
| 215 |
+
[24] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 216 |
+
|
| 217 |
+
[25] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74–81, 2004.
|
| 218 |
+
|
| 219 |
+
[26] Ziming Liu, Eric J Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data. arXiv preprint arXiv:2210.01117, 2022.
|
| 220 |
+
|
| 221 |
+
[27] Ryan Lowe and Jan Leike. Aligning language models to follow instructions. 2022.
|
| 222 |
+
|
| 223 |
+
[28] Eric J. Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. The quantization model of neural scaling, 2023.
|
| 224 |
+
|
| 225 |
+
[29] Oren Neumann and Claudius Gros. Scaling laws for a multi-agent reinforcement learning model. arXiv preprint arXiv:2210.00849, 2022.
|
| 226 |
+
|
| 227 |
+
[30] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, Philadelphia, Pennsylvania, USA, July 2002. Association for Computational Linguistics.
|
| 228 |
+
|
| 229 |
+
[31] Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv preprint arXiv:2201.02177, 2022.
|
| 230 |
+
|
| 231 |
+
[32] Jonathan S Rosenfeld, Amir Rosenfeld, Yonatan Belinkov, and Nir Shavit. A constructive prediction of the generalization error across scales. In International Conference on Learning Representations, 2019.
|
| 232 |
+
|
| 233 |
+
[33] Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022.
|
| 234 |
+
|
| 235 |
+
[34] Jacob Steinhardt. Future ml systems will be qualitatively different. 2022.
|
| 236 |
+
|
| 237 |
+
[35] Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, HengTze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, et al. Lamda: Language models for dialog applications. arXiv preprint arXiv:2201.08239, 2022.
|
| 238 |
+
|
| 239 |
+
[36] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
|
| 240 |
+
|
| 241 |
+
[37] Jason Wei. 137 emergent abilities of large language models. 2022.
|
| 242 |
+
|
| 243 |
+
[38] Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022.
|
| 244 |
+
[39] Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12104–12113, 2022.
|
| 245 |
+
|
| 246 |
+
# A Approximate Behavior of Metrics on Sequential Data
|
| 247 |
+
|
| 248 |
+
How do different metrics behave when used to measure autoregressive model outputs? Precisely answering this question is tricky and possibly analytically unsolvable, so we provide an approximate answer here.
|
| 249 |
+
|
| 250 |
+
Notationally, we consider $N$ test data of length $L$ (here, length is measured in tokens) with targets denoted $t _ { n } \ { \stackrel { \mathrm { d e f } } { = } } \ ( t _ { n 1 } , t _ { n 2 } , . . . t _ { n L } )$ , the autoregressive model has a true-but-unknown per-token error probability of $\epsilon \in [ 0 , 1 ]$ and the model outputs prediction $\boldsymbol { \hat { t } _ { n } } \ { \stackrel { \mathrm { d e f } } { = } } \ ( { \hat { t } _ { n 1 } } , { \hat { t } _ { n 2 } } , . . . { \hat { t } _ { n L } } )$ . This assumes that the model’s per-token error probability is constant, which is empirically false, but modeling the complex dependencies of errors is beyond our scope.
|
| 251 |
+
|
| 252 |
+
# A.1 Per-Token Error Probability is Resolution-Limited
|
| 253 |
+
|
| 254 |
+
Note that because we have $N$ test data, each of length $L$ , our resolution for viewing the per-token error probability $\epsilon$ is limited by $1 / N L$ . Here, resolution refers to “the smallest interval measurable by a scientific instrument; the resolving power." To explain what resolution means via an example, suppose one wants to measure a coin’s probability of yielding heads. After a single coin flip, only two outcomes are possible (H, T), so the resolution-limited probability of heads is either 0 or 1. After two coin flips, four outcomes are possible (HH, HT, TH, TT), so the resolution-limited probability of heads is now one of $0 , 0 . 5 , 1$ . After $F$ coin flips, we can only resolve the coin’s probability of yielding heads up to $1 / F$ . Consequently, we introduce a resolution-limited notation:
|
| 255 |
+
|
| 256 |
+
$a _ { b } \ { \stackrel { \mathrm { d e f } } { = } } \ a$ rounded to the nearest integer multiple of $1 / b$
|
| 257 |
+
|
| 258 |
+
# A.2 Token Edit Distance
|
| 259 |
+
|
| 260 |
+
We first consider an adaptation of the Levenshtein (string edit) distance for models that function on tokens rather than characters, an adaptation we term the token edit distance. The token edit distance between two token sequences $t _ { n } , \hat { t _ { n } }$ is defined as the integer number of additions, deletions or substitutions necessary to transform $t _ { n }$ into $\hat { t } _ { n }$ (or vice versa).
|
| 261 |
+
|
| 262 |
+
$$
|
| 263 |
+
\begin{array} { l } { \mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \hat { t } _ { n } ) \overset { \mathrm { d e f } } { = } \mathrm { N u m ~ S u b s t i u t i o n s } + \mathrm { N u m . ~ A d d i t i o n s } + \mathrm { N u m . ~ D e l e t i o n s } } \\ { \displaystyle = \sum _ { \ell = 1 } ^ { L } \mathbb { I } [ t _ { n \ell } \neq \hat { t } _ { n \ell } ] + \mathrm { N u m . ~ A d d i t i o n s } + \mathrm { N u m . ~ D e l e t i o n s } } \\ { \displaystyle \quad \geq \sum _ { \ell = 1 } ^ { L } \mathbb { I } [ t _ { n \ell } \neq \hat { t } _ { n \ell } ] } \end{array}
|
| 264 |
+
$$
|
| 265 |
+
|
| 266 |
+
The expected token edit distance is therefore:
|
| 267 |
+
|
| 268 |
+
$$
|
| 269 |
+
\begin{array} { l } { \displaystyle \mathbb { E } [ \mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \hat { t } _ { n } ) ] \geq \mathbb { E } [ \sum _ { \ell = 1 } ^ { L } \mathbb { I } [ t _ { n \ell } \neq \hat { t } _ { n \ell } ] ] } \\ { \displaystyle = \sum _ { \ell = 1 } ^ { L } p ( t _ { n \ell } \neq \hat { t } _ { n \ell } ) } \\ { \approx L ( 1 - \epsilon ) } \end{array}
|
| 270 |
+
$$
|
| 271 |
+
|
| 272 |
+
The resolution-limited expected token edit distance is therefore:
|
| 273 |
+
|
| 274 |
+
$$
|
| 275 |
+
\mathbb { E } [ \mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \hat { t } _ { n } ) ] _ { N L } \ge L \Big ( 1 - \epsilon _ { N L } \Big )
|
| 276 |
+
$$
|
| 277 |
+
|
| 278 |
+
From this, we see that the expected token edit distance scales approximately linearly with the resolution-limited per-token probability. The real rate is slightly higher than linear because additions
|
| 279 |
+
|
| 280 |
+
and deletions contribute an additional non-negative cost, but modeling this requires a model of how likely the model is to overproduce or underproduce tokens, which is something we do not currently possess.
|
| 281 |
+
|
| 282 |
+
# A.3 Accuracy
|
| 283 |
+
|
| 284 |
+
$$
|
| 285 |
+
\begin{array} { l } { \displaystyle \mathrm { A c c u r a c y } ( t _ { n } , \hat { t } _ { n } ) \stackrel { \mathrm { d e f } } { = } \mathbb { I } [ \mathrm { N o \ a d d i t i o n s } ] \mathbb { I } [ \mathrm { N o \ d e l e t i o n s } ] \prod _ { l = 1 } ^ { L } \mathbb { I } [ t _ { n l } = \hat { t } _ { n l } ] } \\ { \displaystyle \approx \prod _ { l = 1 } ^ { L } \mathbb { I } [ t _ { n l } = \hat { t } _ { n l } ] } \end{array}
|
| 286 |
+
$$
|
| 287 |
+
|
| 288 |
+
As with the Token Edit Distance (App. A.2), we ignore how likely the language model is to overproduce or underproduce tokens because we do not have a good model of this process. Continuing along,
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
\begin{array} { l } { \displaystyle \mathbb { E } [ \log \mathrm { A c c u r a c y } ] = \sum _ { l } \mathbb { E } [ \log \mathbb { I } [ t _ { n l } = \hat { t } _ { n l } ] ] } \\ { \displaystyle \qquad \leq \sum _ { l } \log \mathbb { E } [ \mathbb { I } [ t _ { n l } = \hat { t } _ { n l } ] ] } \\ { \displaystyle \qquad \approx L \log ( 1 - \epsilon ) } \end{array}
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
Taking an approximation that would make most mathematicians cry:
|
| 295 |
+
|
| 296 |
+
$$
|
| 297 |
+
\begin{array} { r } { \mathbb { E } [ \mathrm { A c c u r a c y } ] \approx \exp ( \mathbb { E } [ \mathrm { l o g } \mathrm { A c c u r a c y } ] ) } \\ { = ( 1 - \epsilon ) ^ { L } } \end{array}
|
| 298 |
+
$$
|
| 299 |
+
|
| 300 |
+
This reveals that accuracy approximately falls geometrically with target token length. The resolutionlimited expected accuracy is therefore:
|
| 301 |
+
|
| 302 |
+
$$
|
| 303 |
+
\mathbb { E } [ \mathrm { A c c u r a c y } ] _ { N L } = ( 1 - \epsilon ) ^ { L } { } _ { N L }
|
| 304 |
+
$$
|
| 305 |
+
|
| 306 |
+
From this we can see that choosing a nonlinear metric like Accuracy is affected significantly more than a linear metric by limited resolution because Accuracy forces one to distinguish quantities that decay rapidly.
|
| 307 |
+
|
| 308 |
+
# A.4 ROUGE-L-Sum
|
| 309 |
+
|
| 310 |
+
Another BIG-Bench metric [33] is ROUGE-L-Sum [25], a metric based on the longest common subsequence (LCS) between two sequences. Section 3.2 of [25] gives the exact definition, but the key property is that ROUGE-L-Sum measures the “union" LCS, which means “stitching" together LCSs across the candidate and multiple references. As explained in the original paper [25]: if the candidate sequence is $c = w _ { 1 } w _ { 2 } w _ { 3 } w _ { 4 } w _ { 5 }$ , and if there are two reference sequences $r _ { 1 } = w _ { 1 } w _ { 2 } w _ { 6 } w _ { 7 } w _ { 8 }$ and $r _ { 2 } = w _ { 1 } w _ { 3 } w _ { 8 } w _ { 9 } w _ { 5 }$ , then $L C S ( r _ { 1 } , c ) = w _ { 1 } w _ { 2 }$ and $L C S ( r _ { 2 } , c ) = \overline { { w _ { 1 } w _ { 3 } w _ { 5 } } }$ , then the union LCS of $c , r _ { 1 } , r _ { 2 }$ is $w _ { 1 } w _ { 2 } w _ { 3 } w _ { 5 }$ , with length 4. Intuitively, this disproportionately benefits models with smaller error rates because their mistakes can be “stitched" across multiple references; this is confirmed in Monte Carlo simulation (Fig. 9).
|
| 311 |
+
|
| 312 |
+
# A.5 BLEU
|
| 313 |
+
|
| 314 |
+
Yet another BIG-Bench metric [33] is BLEU [30], a metric based on shared $\mathbf { n }$ -grams between the generated string and reference strings. BLEU is also a discontinuous and nonlinear metric for several reasons. For an explanation of its discontinuity, consider bleu.compute(predictions $=$ ["hello there general"], references=[["hello there general"]]). At first glance, this might seem like it should also result in a BLEU score of 1.0 since the prediction matches the reference. However, the issue here is the absence of longer n-grams. For the unigrams, bigrams, and trigrams, the precision is 1.0 since they match perfectly. However, for the 4-grams, there are none in both the candidate and the reference. This results in a precision of 0 for the 4-grams because the BLEU score takes the geometric mean of the n-gram precisions, meaning any 0 in the set will make the entire product 0. Hence, despite the match in unigrams, bigrams, and trigrams, the absence of 4-grams results in a BLEU score of 0.0. This behavior of BLEU has been a point of criticism, as short sentences or those with fewer n-grams than the maximum considered (often 4) can yield scores that are counter-intuitive. This is confirmed in Monte Carlo simulations (Fig. 10)
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 9: ROUGE-L-Sum is a sharp metric. Simulations show that as the per-token error probability slightly increases (e.g. from 0.05 to 0.1), the ROUGE-L-Sum metric falls sharply.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 10: BLEU is a sharp metric. Simulations show that as the per-token error probability slightly increases (e.g. from 0.05 to 0.1), the ROUGE-L-Sum metric falls sharply.
|
| 321 |
+
|
| 322 |
+
# B Inducing Emergent Abilities in Networks on Vision Tasks
|
| 323 |
+
|
| 324 |
+
# B.1 Emergent Classification of MNIST Handwritten Digits by Convolutional Networks
|
| 325 |
+
|
| 326 |
+
We begin by inducing an emergent classification ability in a LeNet convolutional neural network family [24], trained on the MNIST handwritten digits dataset [23]. This family displays smoothly increasing test accuracy as the number of parameters increases (Fig. 11B). To emulate the accuracy metric used by emergence papers [9, 38, 33], we use subset accuracy: 1 if the network classifies $K$ out of $K$ (independent) test data correctly, 0 otherwise. Under this definition of accuracy, the model family displays an “emergent" ability to correctly classify sets of MNIST digits as $K$ increases from 1 to 5, especially when combined with sparse sampling of model sizes (Fig. 11C). This convolutional family’s emergent classification ability qualitatively matches published emergent abilities, e.g., at the BIG-Bench Grounded Mappings task [38] (Fig. 11A).
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
Figure 11: Induced emergent MNIST classification ability in convolutional networks. (A) A published emergent ability from the BIG-Bench Grounded Mappings task [38]. (B) LeNet trained on MNIST [23] displays a predictable, commonplace sigmoidal increase in test accuracy as model parameters increase. (C) When accuracy is redefined as correctly classifying $K$ out of $K$ independent test data, this newly defined metric induces a seemingly unpredictable change.
|
| 330 |
+
|
| 331 |
+
# C Relationship Between Emergent Abilities and Grokking
|
| 332 |
+
|
| 333 |
+
Emergent abilities [4, 9, 33, 38] are sometimes compared with grokking [31, 26, 2, 11], a phenomenon whereby a single model will, over the course of learning, achieve high training accuracy and only much later achieve high test accuracy. There are several differences between grokking and emergent abilities:
|
| 334 |
+
|
| 335 |
+
1. Grokking is primarily studied within a single model, whereas emergent abilities are studied within a model family (i.e., multiple models).
|
| 336 |
+
2. Grokking occurs with increasing gradient steps, whereas emergent abilities occur with increasing model scale, typically measured in parameters or effective parameters (although more recently compute).
|
| 337 |
+
3. Grokking explicitly studies a discrepancy between the model’s train and test behavior, whereas emergent abilities (to the best of our knowledge) do not present separate train & test curves.
|
| 338 |
+
4. Grokking is primarily studied on toy “algorithmic" tasks in small networks, whereas emergent abilities are often studied on benchmark NLP tasks in large language models.
|
parse/dev/ITw9edRDlD/ITw9edRDlD_content_list.json
ADDED
|
@@ -0,0 +1,1629 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
303,
|
| 8 |
+
122,
|
| 9 |
+
692,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Rylan Schaeffer ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
230,
|
| 20 |
+
227,
|
| 21 |
+
343,
|
| 22 |
+
239
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Brando Miranda Computer Science Stanford University brando9@cs.stanford.edu ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
406,
|
| 31 |
+
226,
|
| 32 |
+
606,
|
| 33 |
+
281
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Computer Science Stanford University rschaef@cs.stanford.edu ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
187,
|
| 42 |
+
242,
|
| 43 |
+
385,
|
| 44 |
+
281
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Sanmi Koyejo \nComputer Science \nStanford University \nsanmi@cs.stanford.edu ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
627,
|
| 53 |
+
227,
|
| 54 |
+
810,
|
| 55 |
+
281
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Abstract ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
462,
|
| 65 |
+
318,
|
| 66 |
+
535,
|
| 67 |
+
334
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recent work claims that large language models display emergent abilities: abilities not present in smaller-scale models that are present in larger-scale models. What makes emergent abilities intriguing is two-fold: their sharpness, transitioning seemingly instantaneously from not present to present, and their unpredictability, appearing at seemingly unforeseeable model scales. Here, we present an alternative explanation for emergent abilities: for a particular task and model family, when analyzing fixed model outputs, emergent abilities appear due to the researcher’s choice of metric rather than due to fundamental changes in models with scale. Specifically, nonlinear or discontinuous metrics produce seemingly emergent abilities, whereas linear or continuous metrics produce smooth, continuous, predictable changes in model performance. We present our alternative explanation in a simple mathematical model, then test it in three complementary ways: we (1) make, test and confirm three predictions on the effect of metric choice using the InstructGPT/GPT-3 family on tasks with claimed emergent abilities; (2) make, test and confirm two predictions about metric choices in a meta-analysis of emergent abilities on the Beyond the Imitation Game Benchmark (BIG-Bench); and (3) show how to choose metrics to produce never-before-seen seemingly emergent abilities in multiple vision tasks across diverse deep network architectures. Via all three analyses, we provide evidence that emergent abilities disappear with different metrics or with better statistics, and may not be a fundamental property of scaling AI models. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
233,
|
| 76 |
+
348,
|
| 77 |
+
766,
|
| 78 |
+
625
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1 Introduction ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
647,
|
| 89 |
+
310,
|
| 90 |
+
664
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Emergent properties of complex systems have long been studied across disciplines, from physics to biology to mathematics. The idea of emergence was popularized by Nobel Prize-winning physicist P.W. Anderson’s “More Is Different\" [1], which argues that as the complexity of a system increases, new properties may materialize that cannot be predicted even from a precise quantitative understanding of the system’s microscopic details. Recently, the idea of emergence gained significant attention in machine learning due to observations that large language models (LLMs) such as GPT [4], PaLM [7] and LaMDA [35] exhibit so-called “emergent abilities\" [38, 9, 33, 4] (Fig. 1). ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
678,
|
| 100 |
+
825,
|
| 101 |
+
775
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "The term “emergent abilities of LLMs\" was recently and crisply defined as “abilities that are not present in smaller-scale models but are present in large-scale models; thus they cannot be predicted by simply extrapolating the performance improvements on smaller-scale models\" [38]. Such emergent abilities were first discovered in the GPT-3 family [4]. Subsequent work emphasized the discovery, writing that “[although model] performance is predictable at a general level, performance on a specific task can sometimes emerge quite unpredictably and abruptly at scale\" [9]. These quotations collectively identify the two defining properties of emergent abilities in LLMs: ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
781,
|
| 111 |
+
825,
|
| 112 |
+
878
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "1. Sharpness, transitioning seemingly instantaneously from not present to present ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
214,
|
| 121 |
+
888,
|
| 122 |
+
750,
|
| 123 |
+
902
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "image",
|
| 129 |
+
"img_path": "images/58619c355bf48fd739a8be2b0fcd8ad7e47c401ff272f138604393721c9fb37d.jpg",
|
| 130 |
+
"image_caption": [
|
| 131 |
+
"Figure 1: Emergent abilities of large language models. Model families display sharp and unpredictable increases in performance at specific tasks as scale increases. Source: Fig. 2 from [38]. "
|
| 132 |
+
],
|
| 133 |
+
"image_footnote": [],
|
| 134 |
+
"bbox": [
|
| 135 |
+
178,
|
| 136 |
+
89,
|
| 137 |
+
816,
|
| 138 |
+
428
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "2. Unpredictability, transitioning at seemingly unforeseeable model scales ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
210,
|
| 147 |
+
492,
|
| 148 |
+
702,
|
| 149 |
+
507
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "These emergent abilities have garnered significant interest, raising questions such as: What controls which abilities will emerge? What controls when abilities will emerge? How can we make desirable abilities emerge faster, and ensure undesirable abilities never emerge? These questions are especially pertinent to AI safety and alignment, as emergent abilities forewarn that larger models might one day, without warning, acquire undesired mastery over dangerous capabilities [34, 12, 19, 20]. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
516,
|
| 159 |
+
825,
|
| 160 |
+
587
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "In this paper, we call into question the claim that LLMs possess emergent abilities, by which we specifically mean sharp and unpredictable changes in model outputs as a function of model scale on specific tasks. Our doubt stems from the observation that emergent abilities seem to appear only under metrics that nonlinearly or discontinuously scale any model’s per-token error rate. For instance, as we later show, $> 9 2 \\%$ of emergent abilities on BIG-Bench tasks [33] (hand-annotated by [37]) appear under either of these two metrics: ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
593,
|
| 170 |
+
826,
|
| 171 |
+
676
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "equation",
|
| 177 |
+
"img_path": "images/e40144d99c5950df6256a55196ba929f579447f60232c87be728623c6f571c7d.jpg",
|
| 178 |
+
"text": "$$\n\\begin{array} { r l } { \\mathrm { M u l t i p l e ~ C h o i c e ~ G r a d e ~ { \\stackrel { d e f } { = } } ~ } } & { { } { \\left\\{ \\begin{array} { l l } { 1 } & { { \\mathrm { i f ~ h i g h e s t ~ p r o b a b i l i t y ~ m a s s ~ o n ~ c o r r e c t ~ o p t i o n } } } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. } } \\\\ { \\mathrm { E x a c t ~ S t r i n g ~ M a t c h ~ { \\stackrel { d e f } { = } } ~ } } & { { } { \\left\\{ \\begin{array} { l l } { 1 } & { { \\mathrm { i f ~ o u t p u t ~ s t r i n g ~ e x a c t l y ~ m a t c h e s ~ t a r g e t ~ s t r i n g } } } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. } } \\end{array}\n$$",
|
| 179 |
+
"text_format": "latex",
|
| 180 |
+
"bbox": [
|
| 181 |
+
240,
|
| 182 |
+
681,
|
| 183 |
+
754,
|
| 184 |
+
756
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "This raises the possibility of an alternative explanation for the origin of LLMs’ emergent abilities: sharp and unpredictable changes might be induced by the researcher’s choice of measurement, even though the model family’s per-token error rate changes smoothly, continuously and predictably with increasing scale. Specifically, our alternative posits that emergent abilities are a mirage caused primarily by the researcher choosing a metric that nonlinearly or discontinuously deforms per-token error rates, and secondarily by possessing too few test data to accurately estimate the performance of smaller models, thereby causing smaller models to appear wholly unable to perform the task. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
173,
|
| 193 |
+
765,
|
| 194 |
+
826,
|
| 195 |
+
864
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "To communicate our alternative explanation, we present it as a simple mathematical model and demonstrate how it quantitatively reproduces the evidence offered in support of emergent abilities of LLMs. We then test our alternative explanation in three complementary ways: ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
869,
|
| 205 |
+
825,
|
| 206 |
+
911
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "image",
|
| 212 |
+
"img_path": "images/e3f92f76fe9724d253565131e8cb279499fb11c062052e48ec6575ba7683ccb7.jpg",
|
| 213 |
+
"image_caption": [
|
| 214 |
+
"Figure 2: Emergent abilities of large language models are created by the researcher’s chosen metrics, not unpredictable changes in model behavior with scale. (A) Suppose the per-token cross-entropy loss decreases monotonically with model scale, e.g., $\\mathcal { L } _ { C E }$ scales as a power law. (B) The per-token probability of selecting the correct token asymptotes towards 1. (C) If the researcher scores models’ outputs using a nonlinear metric such as Accuracy (which requires a sequence of tokens to all be correct), the metric choice nonlinearly scales performance, causing performance to change sharply and unpredictably in a manner that qualitatively matches published emergent abilities (inset). (D) If the researcher instead scores models’ outputs using a discontinuous metric such as Multiple Choice Grade (akin to a step function), the metric choice discontinuously scales performance, again causing performance to change sharply and unpredictably. (E) Changing from a nonlinear metric to a linear metric such as Token Edit Distance, scaling shows smooth, continuous and predictable improvements, ablating the emergent ability. (F) Changing from a discontinuous metric to a continuous metric such as Brier Score again reveals smooth, continuous and predictable improvements in task performance. Consequently, the observation of \"emergent abilities\" can be explained by the researcher’s choice of metrics, and does not require fundamental changes in model family behavior on specific tasks with scale. "
|
| 215 |
+
],
|
| 216 |
+
"image_footnote": [],
|
| 217 |
+
"bbox": [
|
| 218 |
+
171,
|
| 219 |
+
87,
|
| 220 |
+
821,
|
| 221 |
+
386
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 2
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "1. We make, test and confirm three predictions based on our alternative hypotheses using the InstructGPT [27] / GPT-3 [4] model family. \n2. We meta-analyze published benchmarks [33, 38] to reveal that emergent abilities only appear for specific metrics, not for model families on particular tasks, and that changing the metric causes the emergence phenomenon to disappear. \n3. We induce never-before-seen, seemingly emergent abilities in multiple architectures across various vision tasks by intentionally changing the metrics used for evaluation. ",
|
| 228 |
+
"bbox": [
|
| 229 |
+
204,
|
| 230 |
+
646,
|
| 231 |
+
825,
|
| 232 |
+
756
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 2
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "2 Alternative Explanation for Emergent Abilities ",
|
| 239 |
+
"text_level": 1,
|
| 240 |
+
"bbox": [
|
| 241 |
+
173,
|
| 242 |
+
775,
|
| 243 |
+
598,
|
| 244 |
+
792
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 2
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "How might smooth, continuous, predictable changes in model family performance appear sharp and unpredictable? The answer is that the researcher’s choice of a nonlinear or discontinuous metric can distort the model family’s performance to appear sharp and unpredictable. ",
|
| 251 |
+
"bbox": [
|
| 252 |
+
174,
|
| 253 |
+
808,
|
| 254 |
+
825,
|
| 255 |
+
849
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 2
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "To expound, suppose that within a model family, the test loss falls smoothly, continuously, and predictably with the number of model parameters. One reason to believe this is the phenomenon known as neural scaling laws: empirical observations that deep networks exhibit power law scaling in the test loss as a function of training dataset size, number of parameters or compute [15, 32, 13, 18, ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
176,
|
| 264 |
+
856,
|
| 265 |
+
825,
|
| 266 |
+
911
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "10, 14, 17, 39, 16, 8, 29]. For concreteness, suppose we have a model family of different numbers of parameters $N > 0$ and assume that each model’s per-token cross entropy falls as a power law with the number of parameters $N$ for constants $c > 0 , \\alpha < 0$ (Fig. 2A): ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
171,
|
| 275 |
+
90,
|
| 276 |
+
825,
|
| 277 |
+
133
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 3
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "equation",
|
| 283 |
+
"img_path": "images/8af0b76128070114c8b41becd05c431422903df72aa8755799c99fb78638ba59.jpg",
|
| 284 |
+
"text": "$$\n\\mathcal { L } _ { C E } ( N ) = \\left( \\frac { N } { c } \\right) ^ { \\alpha }\n$$",
|
| 285 |
+
"text_format": "latex",
|
| 286 |
+
"bbox": [
|
| 287 |
+
433,
|
| 288 |
+
148,
|
| 289 |
+
563,
|
| 290 |
+
179
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "To be clear, we do not require this particular functional form to hold; rather, we use it for illustrative purposes. Let $V$ denote the set of possible tokens, $p$ denote the true but unknown probability distribution, and $\\hat { p } _ { N }$ denote the $N$ -parameter model’s predicted probability distribution. The pertoken cross entropy as a function of number of parameters $N$ is: ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
184,
|
| 300 |
+
826,
|
| 301 |
+
241
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "equation",
|
| 307 |
+
"img_path": "images/d12d7e0942eee875ba02e247fdac2ce86743247347c9c86b6be84199e00a15af.jpg",
|
| 308 |
+
"text": "$$\n\\mathcal { L } _ { C E } ( N ) \\ \\stackrel { \\mathrm { d e f } } { = } \\ - \\sum _ { v \\in V } p ( v ) \\log \\hat { p } _ { N } ( v )\n$$",
|
| 309 |
+
"text_format": "latex",
|
| 310 |
+
"bbox": [
|
| 311 |
+
379,
|
| 312 |
+
256,
|
| 313 |
+
619,
|
| 314 |
+
292
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 3
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "In practice, $p$ is unknown, so we substitute a one-hot distribution of the observed token $v ^ { * }$ ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
169,
|
| 323 |
+
297,
|
| 324 |
+
764,
|
| 325 |
+
313
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 3
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "equation",
|
| 331 |
+
"img_path": "images/1ee9c99e7812e40c6978800126e5e620c636f1b53224d74a08f05c34d216602c.jpg",
|
| 332 |
+
"text": "$$\n\\mathcal { L } _ { C E } ( N ) = - \\log \\hat { p } _ { N } ( v ^ { * } )\n$$",
|
| 333 |
+
"text_format": "latex",
|
| 334 |
+
"bbox": [
|
| 335 |
+
411,
|
| 336 |
+
330,
|
| 337 |
+
586,
|
| 338 |
+
348
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "A model with $N$ parameters then has a per-token probability of selecting the correct token (Fig. 2B): ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
171,
|
| 347 |
+
354,
|
| 348 |
+
825,
|
| 349 |
+
371
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 3
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "equation",
|
| 355 |
+
"img_path": "images/3b5832ac7d413a729a7b0b439ac6e558fb55d2924cc8f9f534d9caea6166a616.jpg",
|
| 356 |
+
"text": "$$\np ( \\mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } ) = \\exp \\Big ( - \\mathcal { L } _ { C E } ( N ) \\Big ) = \\exp \\Big ( - \\big ( N / c \\big ) ^ { \\alpha } \\Big )\n$$",
|
| 357 |
+
"text_format": "latex",
|
| 358 |
+
"bbox": [
|
| 359 |
+
277,
|
| 360 |
+
385,
|
| 361 |
+
718,
|
| 362 |
+
412
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 3
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Suppose the researcher then chooses a metric that requires selecting $L$ tokens correctly. For example, our task might be $L$ -digit integer addition, and a model’s output is scored 1 if all $L$ output digits exactly match all target digits with no additions, deletions or substitutions, 0 otherwise. If the probability each token is correct is independent1, the probability of scoring 1 is: ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
417,
|
| 372 |
+
826,
|
| 373 |
+
474
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 3
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "equation",
|
| 379 |
+
"img_path": "images/8b509ff42cbe3fe7c78e89bc130afcf7ca2207b38d561841d48ee943b4ca6f56.jpg",
|
| 380 |
+
"text": "$$\n\\operatorname { A c c u r a c y } ( N ) \\approx p _ { N } ( { \\mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } } ) ^ { \\mathrm { n u m . ~ o f ~ t o k e n s } } = \\exp { \\Big ( } - ( N / c ) ^ { \\alpha } { \\Big ) } ^ { L }\n$$",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
250,
|
| 384 |
+
489,
|
| 385 |
+
745,
|
| 386 |
+
520
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "This choice of metric nonlinearly scales performance with increasing token sequence length. When plotting performance on a linear-log plot, one sees a sharp, unpredictable emergent ability on longer sequences (Fig. 2C) that closely matches claimed emergent abilities (inset). What happens if the researcher switches from a nonlinear metric like Accuracy, under which the per-token error rate scales geometrically in target length (App. A.3), to an approximately linear metric like Token Edit Distance, under which the per-token error rate scales quasi-linearly in target length (App. A.2)? ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
525,
|
| 396 |
+
826,
|
| 397 |
+
609
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "equation",
|
| 403 |
+
"img_path": "images/97ad61b112eae0c20313f648501431aa4dc61eed1e7e8b1c4819d7f3e8289df0.jpg",
|
| 404 |
+
"text": "$$\n{ \\mathrm { T o k e n ~ E d i t ~ D i s t a n c e } } ( N ) \\approx L \\left( 1 - p _ { N } ( { \\mathrm { s i n g l e ~ t o k e n ~ c o r r e c t } } ) \\right) = L \\left( 1 - \\exp { \\big ( } - ( N / c ) ^ { \\alpha } { \\big ) } \\right)\n$$",
|
| 405 |
+
"text_format": "latex",
|
| 406 |
+
"bbox": [
|
| 407 |
+
194,
|
| 408 |
+
627,
|
| 409 |
+
802,
|
| 410 |
+
655
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "The linear metric reveals smooth, continuous, predictable changes in model performance (Fig. 2E). Similarly, if the researcher uses a discontinuous metric like Multiple Choice Grade, the researcher can find emergent abilities (Fig. 2D), but switching to a continuous metric like Brier Score removes such abilities (Fig. 2F). In summary, sharp and unpredictable changes with increasing scale can be fully explained by three interpretable factors: (1) the researcher choosing a metric that nonlinearly or discontinuously scales the per-token error rate, (2) having insufficient resolution to estimate model performance in the smaller parameter regime, with resolution2 set by 1/test dataset size, and (3) insufficiently sampling the larger parameter regime. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
173,
|
| 419 |
+
661,
|
| 420 |
+
826,
|
| 421 |
+
773
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "3 Analyzing InstructGPT/GPT-3’s Emergent Arithmetic Abilities ",
|
| 428 |
+
"text_level": 1,
|
| 429 |
+
"bbox": [
|
| 430 |
+
176,
|
| 431 |
+
790,
|
| 432 |
+
735,
|
| 433 |
+
809
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Previous papers prominently claimed the GPT [4, 27] family3 displays emergent abilities at integer arithmetic tasks [9, 33, 38] (Fig. 1A). We chose these tasks as they were prominently presented [4, 9, 33, 38], and we focused on the GPT family due to it being publicly queryable. As explained mathematically and visually in Sec. 2, our alternative explanation makes three predictions: ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
820,
|
| 443 |
+
821,
|
| 444 |
+
851
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "image",
|
| 450 |
+
"img_path": "images/bbb64d43dfd754116f39b15b55fbaf9e5565772cd7c477a77fef3cabb9c1d7e0.jpg",
|
| 451 |
+
"image_caption": [
|
| 452 |
+
"Figure 3: Claimed emergent abilities evaporate upon changing the metric. Top: When performance is measured by a nonlinear metric (e.g., Accuracy), the InstructGPT/GPT-3 [4, 27] family’s performance appears sharp and unpredictable on longer target lengths. Bottom: When performance is instead measured by a linear metric (e.g., Token Edit Distance), the family exhibits smooth, predictable performance improvements. "
|
| 453 |
+
],
|
| 454 |
+
"image_footnote": [],
|
| 455 |
+
"bbox": [
|
| 456 |
+
187,
|
| 457 |
+
85,
|
| 458 |
+
808,
|
| 459 |
+
361
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "image",
|
| 465 |
+
"img_path": "images/f69b19a9a3642de63e2e396a4a87ed592deb194782e67f78c0e5072ad4656e8b.jpg",
|
| 466 |
+
"image_caption": [
|
| 467 |
+
"Figure 4: Claimed emergent abilities evaporate upon using better statistics. Based on the predictable effect Accuracy has on performance, measuring performance requires high resolution. Generating additional test data increases the resolution and reveals that even on Accuracy, the InstructGPT/GPT-3 family’s [4, 27] performance is above chance and improves in a smooth, continuous, predictable manner that qualitatively matches the mathematical model. "
|
| 468 |
+
],
|
| 469 |
+
"image_footnote": [],
|
| 470 |
+
"bbox": [
|
| 471 |
+
189,
|
| 472 |
+
460,
|
| 473 |
+
810,
|
| 474 |
+
604
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "",
|
| 481 |
+
"bbox": [
|
| 482 |
+
176,
|
| 483 |
+
718,
|
| 484 |
+
823,
|
| 485 |
+
747
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "1. Changing the metric from a nonlinear or discontinuous metric (Fig. 2CD) to a linear or continuous metric (Fig. 2 EF) should reveal smooth, continuous, predictable performance improvement with model scale. \n2. For nonlinear metrics, increasing the resolution of measured model performance by increasing the test dataset size should reveal smooth, continuous, predictable model improvements commensurate with the predictable nonlinear effect of the chosen metric. \n3. Regardless of metric, increasing the target string length should predictably affect the model’s performance as a function of the length-1 target performance: approximately geometrically for accuracy and approximately quasilinearly for token edit distance. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
210,
|
| 494 |
+
761,
|
| 495 |
+
825,
|
| 496 |
+
910
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "To test these predictions, we collected outputs from the InstructGPT/GPT-3 family on two tasks: 2-shot multiplication between two 2-digit integers and 2-shot addition between two 4-digit integers. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
90,
|
| 506 |
+
825,
|
| 507 |
+
119
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 5
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "Prediction: Emergent Abilities Disappear With Different Metrics On both arithmetic tasks, the GPT family displays emergent abilities if the target has 4 or 5 digits and if the metric is Accuracy (Fig. 3, top) [4, 9, 38]. However, if one changes from nonlinear Accuracy to linear Token Edit Distance while keeping the models’ outputs fixed, the family’s performance smoothly, continuously and predictably improves with increasing scale (Fig. 3, bottom). This confirms our first prediction and supports our alternative explanation that the observation of emergent abilities can be explained by the researcher’s choice of metric, not changes in the model family’s outputs. We also observe that under Token Edit Distance, increasing the length of the target string from 1 to 5 predictably decreases the family’s performance in an approximately quasilinear manner, confirming the first half of our third prediction. ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
133,
|
| 517 |
+
825,
|
| 518 |
+
273
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 5
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Prediction: Emergent Abilities Disappear With Better Statistics We next tested our second prediction: that even on nonlinear metrics such as accuracy, smaller models do not have zero accuracy, but rather have non-zero above-chance accuracy commensurate with choosing to use accuracy as the metric. In order to accurately measure models’ accuracy, we increased the resolution by generating additional test data, and found that on both arithmetic tasks, all models in the InstructGPT/GPT-3 family achieve above-chance accuracy (Fig. 4). This confirms our second prediction. We also observe that as the target string length increases, the accuracy falls approximately geometrically with the length of the target string, confirming the second half of our third prediction. These results additionally demonstrate that the researcher’s choice of metric has the effect that one should predict accuracy to have, i.e., geometric decay with the target length. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
286,
|
| 528 |
+
825,
|
| 529 |
+
426
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "4 Meta-Analysis of Claimed Emergent Abilities ",
|
| 536 |
+
"text_level": 1,
|
| 537 |
+
"bbox": [
|
| 538 |
+
173,
|
| 539 |
+
445,
|
| 540 |
+
584,
|
| 541 |
+
463
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 5
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "Analyzing the GPT family is possible because the models are publicly queryable. However, at the time of this analysis, other model families claimed to exhibit emergent abilities are not publicly queryable, nor are their generated outputs publicly available, meaning we are limited to analyzing the published results themselves [9, 38, 37]. Our alternative explanation makes two predictions. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
477,
|
| 551 |
+
825,
|
| 552 |
+
534
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "1. At the “population level\" of Task-Metric-Model Family triplets, emergent abilities should appear predominantly on specific metrics, not task-model family pairs, and specifically with nonlinear and/or discontinuous metrics. 2. On individual Task-Metric-Model Family triplets that display an emergent ability, changing the metric to a linear and/or continuous metric should remove the emergent ability. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
212,
|
| 561 |
+
544,
|
| 562 |
+
825,
|
| 563 |
+
619
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "To test these predictions, we used claimed emergent abilities on BIG-Bench [33, 38] due to the benchmark being pertinent and publicly available. ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
173,
|
| 572 |
+
631,
|
| 573 |
+
823,
|
| 574 |
+
659
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "Prediction: Emergent Abilities Should Appear with Metrics, not Task-Model Families If emergent abilities are real, one should expect task-model family pairs to show emergence for all reasonable metrics. However, if our alternative explanation is correct, we should expect emergent abilities to appear only under certain metrics. To test this, we analyzed on which metrics emergent abilities appear. To determine whether a task-metric-model family triplet exhibits a possible emergent ability, we used a metric from previous work [33]. Letting $y _ { i } \\in \\mathbb { R }$ denote model performance at model scales $x _ { i } \\in \\mathbb { R }$ , sorted such that $x _ { i } < x _ { i + 1 }$ , the emergence score is: ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
173,
|
| 583 |
+
672,
|
| 584 |
+
825,
|
| 585 |
+
772
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "equation",
|
| 591 |
+
"img_path": "images/fd58c559a7dbe1dd65712e151478cf16dcab40d1f576cbcec179385137efbd9a.jpg",
|
| 592 |
+
"text": "$$\n{ \\begin{array} { r l r l } { \\cdot { \\operatorname { S c o r e } } { \\Big ( } { \\Big \\{ } ( x _ { n } , y _ { n } ) { \\Big \\} } _ { n = 1 } ^ { N } { \\Big ) } } & { } & { { \\stackrel { \\mathrm { d e f } } { = } } } & { { \\frac { \\operatorname { s i g n } ( \\operatorname { a r g m a x } _ { i } y _ { i } - \\operatorname { a r g m i n } _ { i } y _ { i } ) ( \\operatorname* { m a x } _ { i } y _ { i } - \\operatorname* { m i n } _ { i } y _ { i } ) } { \\sqrt { { \\mathsf { M e d i a n } } ( \\{ ( y _ { i } - y _ { i - 1 } ) ^ { 2 } \\} _ { i } ) } } } } \\end{array} }\n$$",
|
| 593 |
+
"text_format": "latex",
|
| 594 |
+
"bbox": [
|
| 595 |
+
248,
|
| 596 |
+
777,
|
| 597 |
+
820,
|
| 598 |
+
815
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "We found that most metrics used in BIG-Bench have zero task-model family pairs that exhibit emergent abilities: of the 39 preferred metrics in BIG-Bench, at most 5 display emergence (Fig. 5A). Many of the 5 are nonlinear and/or discontinuous, e.g., Exact String Match, Multiple Choice Grade, ROUGE-L-Sum (App. A.4). Notably, because BIG-Bench often scores models on tasks using multiple metrics, the lack of emergent abilities under other metrics suggests that emergent abilities do not appear when model outputs are scored using other metrics. ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
174,
|
| 607 |
+
827,
|
| 608 |
+
825,
|
| 609 |
+
911
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 5
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "image",
|
| 615 |
+
"img_path": "images/2151594b0144a294047300f651dcce9bfc628b1e2f77cedebc288ed61472039a.jpg",
|
| 616 |
+
"image_caption": [
|
| 617 |
+
"Figure 5: Emergent abilities appear only for specific metrics, not task-model families. (A) Possible emergent abilities appear with at most 5 out of 39 BIG-Bench metrics. (B) Hand-annotated data by [37] reveal emergent abilities appear only under 4 preferred metrics. $\\mathrm { ( C ) > 9 2 \\% }$ of emergent abilities appear under one of two metrics: Multiple Choice Grade and Exact String Match. "
|
| 618 |
+
],
|
| 619 |
+
"image_footnote": [],
|
| 620 |
+
"bbox": [
|
| 621 |
+
186,
|
| 622 |
+
90,
|
| 623 |
+
812,
|
| 624 |
+
578
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 6
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "Because emergence score only suggests emergence, we also analyzed hand-annotated task-metricmodel family triplets [37], which revealed emergent abilities appear with $4 / 3 9$ metrics (Fig. 5B), and 2 metrics account for $> 9 2 \\%$ of claimed emergent abilities (Fig. 5C): Multiple Choice Grade and Exact String Match. Multiple Choice Grade is discontinuous, and Exact String Match is nonlinear. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
699,
|
| 634 |
+
825,
|
| 635 |
+
756
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 6
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "Prediction: Changing Metric Removes Emergent Abilities To test our second prediction, we focused on the LaMDA family [35] because its outputs are available through BIG-Bench. We identified tasks on which LaMDA displays emergent abilities with Multiple Choice Grade, then asked whether LaMDA still displays emergent abilities on the same tasks with a different BIG-Bench metric: Brier Score [3]. Brier Score is a strictly proper scoring rule for predictions of mutually exclusive outcomes; for a binary outcome, the Brier Score simplifies to the squared error between 1 and the model’s probability mass on the outcome. LaMDA’s emergent abilities on the discontinuous Multiple Choice Grade disappeared when we changed the metric to the continuous Brier Score (Fig. 6). These results support our alternative explanation that emergent abilities are induced by the chosen metric. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
786,
|
| 645 |
+
825,
|
| 646 |
+
911
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 6
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "image",
|
| 652 |
+
"img_path": "images/9f821e06113838668f620fece0360ab9f0a920b262835347b401956be4719242.jpg",
|
| 653 |
+
"image_caption": [
|
| 654 |
+
"Figure 6: Changing the metric when evaluating task-model family pairs causes emergent abilities to disappear. Top: The LaMDA model family displays emergent abilities when measured under the discontinuous Multiple Choice Grade. Bottom: The LaMDA model family’s emergent abilities disappear when measured under a continuous BIG-Bench metric: Brier Score. "
|
| 655 |
+
],
|
| 656 |
+
"image_footnote": [],
|
| 657 |
+
"bbox": [
|
| 658 |
+
205,
|
| 659 |
+
90,
|
| 660 |
+
787,
|
| 661 |
+
383
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 7
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "5 Inducing Emergent Abilities in Networks on Vision Tasks ",
|
| 668 |
+
"text_level": 1,
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
472,
|
| 672 |
+
684,
|
| 673 |
+
489
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 7
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "text",
|
| 679 |
+
"text": "To demonstrate how emergent abilities can be induced by the researcher’s choice of metric, we show how to produce emergent abilities in deep networks of various architectures: fully connected, convolutional, self-attentional. We focus on vision tasks because abrupt transitions in vision models’ capabilities have not been observed to the best of our knowledge; this is one reason why emergence in large language models is considered so interesting. For the convolutional example, see App. B. ",
|
| 680 |
+
"bbox": [
|
| 681 |
+
173,
|
| 682 |
+
502,
|
| 683 |
+
826,
|
| 684 |
+
573
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 7
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "Emergent Reconstruction of CIFAR100 Natural Images by Nonlinear Autoencoders We first induce an emergent ability to reconstruct images in shallow (i.e., single hidden layer) nonlinear autoencoders trained on CIFAR100 natural images [21]. To emphasize that the sharpness of the metric is responsible for emergent abilities, and to show that sharpness extends to metrics beyond Accuracy, we intentionally define a discontinuous metric that measures a network’s ability to reconstruct a dataset as the average number of test data with squared reconstruction error below cutoff $c$ : ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
585,
|
| 694 |
+
825,
|
| 695 |
+
670
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 7
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "equation",
|
| 701 |
+
"img_path": "images/d10024623233c36dfd850f5da05c6889fbd52b7b00b95c5a9183a6c3f28e8126.jpg",
|
| 702 |
+
"text": "$$\n\\mathrm { R e c o n s t r u c t i o n } _ { c } \\Big ( \\{ x _ { n } \\} _ { n = 1 } ^ { N } \\Big ) \\stackrel { \\mathrm { \\scriptsize ~ d e f } } { = } \\frac { 1 } { N } \\sum _ { n } \\mathbb { I } \\Big [ | | x _ { n } - \\hat { x } _ { n } | | ^ { 2 } < c \\Big ] ,\n$$",
|
| 703 |
+
"text_format": "latex",
|
| 704 |
+
"bbox": [
|
| 705 |
+
292,
|
| 706 |
+
670,
|
| 707 |
+
700,
|
| 708 |
+
708
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 7
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "where $\\mathbb { I } ( \\cdot )$ denotes an indicator variable and ${ \\hat { x } } _ { n }$ is the autoencoder’s reconstruction of $x _ { n }$ . The autoencoder family displays smoothly decreasing squared reconstruction error as the number of bottleneck units increases (Fig. 7B). Under our newly defined Reconstructionc metric and for particular choices of $c$ , the autoencoder family exhibits a sharp and seemingly unpredictable image reconstruction ability (Fig. 7C) that qualitatively matches published emergent abilities (Fig. 7A). ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
715,
|
| 718 |
+
825,
|
| 719 |
+
787
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 7
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "Emergent Classification of Omniglot Characters by Autoregressive Transformers We next induce emergent abilities in Transformers [36] trained to autoregressively classify Omniglot handwritten characters [22], in a setup inspired by recent work [6]: Omniglot images are embedded by convolutional layers, then sequences of embedded image-image class label pairs are fed into decoder-only transformers. We measure image classification performance on sequences of length $L \\in [ 1 , 5 ]$ , again via subset accuracy: 1 if all $L$ images are classified correctly (Fig. 8B), 0 otherwise. Causal transformers display a seemingly emergent ability to correctly classify Omniglot handwritten characters (Fig. 8C) that qualitatively matches published emergent abilities (Fig. 8A). ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
173,
|
| 728 |
+
799,
|
| 729 |
+
826,
|
| 730 |
+
911
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 7
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "image",
|
| 736 |
+
"img_path": "images/aeaa81388b37adea8775476623a02dd5dc3201b4f674b5d84db994bf94e56554.jpg",
|
| 737 |
+
"image_caption": [
|
| 738 |
+
"Figure 7: Induced emergent reconstruction ability in shallow nonlinear autoencoders. (A) A published emergent ability at the BIG-Bench Periodic Elements task [33]. (B) Shallow nonlinear autoencoders trained on CIFAR100 [21] display smoothly decreasing mean squared reconstruction error. (C) Using a newly defined Reconstructionc metric (Eqn. 1) induces an unpredictable change. "
|
| 739 |
+
],
|
| 740 |
+
"image_footnote": [],
|
| 741 |
+
"bbox": [
|
| 742 |
+
207,
|
| 743 |
+
88,
|
| 744 |
+
790,
|
| 745 |
+
234
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 8
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "image",
|
| 751 |
+
"img_path": "images/3489b3534ad2521f4b7d830b0635c6120f9030d86dee59d62ef68e143d62e50e.jpg",
|
| 752 |
+
"image_caption": [
|
| 753 |
+
"Figure 8: Induced emergent classification ability in autoregressive Transformers. (A) A published emergent ability on the MMLU benchmark [9]. (B) Autoregressive transformers trained to classify Omniglot images display increasing accuracy with increasing scale. (C) When accuracy is redefined as classifying all images correctly, a seemingly emergent ability appears. "
|
| 754 |
+
],
|
| 755 |
+
"image_footnote": [],
|
| 756 |
+
"bbox": [
|
| 757 |
+
209,
|
| 758 |
+
316,
|
| 759 |
+
790,
|
| 760 |
+
463
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 8
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "6 Limitations ",
|
| 767 |
+
"text_level": 1,
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
556,
|
| 771 |
+
302,
|
| 772 |
+
574
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "This paper has several limitations. First, nothing in this paper should be interpreted as claiming that large language models cannot display emergent abilities; rather, our message is that some previously claimed emergent abilities appear to be mirages induced by researcher analyses. Second, our experiments and analyses are limited because some LLMs with claimed emergent abilities (e.g., PaLM 1, Gopher, Chinchilla) are private and not queryable at the time of our analysis. Lastly, the best metric(s) arguably depends on human preferences, which may exhibit qualitatively different behavior; we are unaware of studies quantifying whether human judgment is thresholded in an “emergent\" way. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
174,
|
| 781 |
+
588,
|
| 782 |
+
826,
|
| 783 |
+
685
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "7 Related Work ",
|
| 790 |
+
"text_level": 1,
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
705,
|
| 794 |
+
321,
|
| 795 |
+
723
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 8
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "Srivastava et al. [33] observed that while accuracy at a particular task can empirically appear sharp and unpredictable, cross-entropy does not appear so; the authors then discussed whether emergent abilities may be partially attributed to the metric. Our paper converts their discussion into precise predictions, then quantitatively tests the predictions to reveal metric choice is possibly responsible for some claimed emergent abilities; well-known and widely-used metrics (including metrics used by [33]) capture graded improvements; emergent abilities do not appear only on tasks involving multiple steps, such as the discontinuous Multiple Choice Grade; metric choice can be used to induce emergent abilities in a novel domain (vision) in diverse architectures and tasks. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
738,
|
| 805 |
+
825,
|
| 806 |
+
849
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 8
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "Alternative explanations exist for the origin of emergent abilities. Caballero et al. [5] explain emergence by assuming a piece-wise power law functional form; under this view, emergent abilities are real, caused by a “break\" (or possibly multiple breaks) in the governing power law. In contrast, our work suggests that emergent abilities can be induced by the researcher under a single power law. Both explanations could be true: some emergent abilities might genuinely be abruptly appearing, whereas some emergent abilities might be attributable to the metric. Michaud et al. [28] posits that language modeling data might be comprised of discrete subtasks (“quanta”) that networks learn; if larger networks have greater capacity, and are thus more capable of learning more of these quanta, then if some downstream task requires a network to learn some combination of quanta, larger networks are more likely to have all the requisite capabilities and thus are capable of performing this downstream task. We think that this is a very interesting hypothesis. Whether language modeling data can or should be understood from this quantization perspective, and whether these quanta indeed are the origin of emergent abilities, are really exciting questions that we think merit more study. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
176,
|
| 815 |
+
856,
|
| 816 |
+
823,
|
| 817 |
+
911
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 8
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
90,
|
| 827 |
+
825,
|
| 828 |
+
215
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 9
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "8 Discussion ",
|
| 835 |
+
"text_level": 1,
|
| 836 |
+
"bbox": [
|
| 837 |
+
174,
|
| 838 |
+
234,
|
| 839 |
+
292,
|
| 840 |
+
252
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 9
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "Our paper presents an alternative explanation for the claimed emergent abilities of large language models. For a fixed task and a fixed model family, the researcher can choose a metric to create an emergent ability or choose a metric to ablate an emergent ability. Ergo, emergent abilities may be creations of the researcher’s choices, not a fundamental property of the model family on the specific task. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
174,
|
| 849 |
+
266,
|
| 850 |
+
825,
|
| 851 |
+
335
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 9
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "Our work has several implications. Firstly, a task and a metric are distinct and meaningful choices when constructing a benchmark. Secondly, when choosing metric(s), if the goal is to accurately predict scaling behavior, then one should consider the interplay between cross-entropy, transformations, and resolution-limited evaluations so that one isn’t surprised. As a corollary, continuous/linear metrics are probably better for accurate scaling forecasts, but if discontinuous/nonlinear metrics are preferred, then one may need a lot of data for sufficient resolution to accurately measure performance. The key is thinking through the consequences of one’s choices! Thirdly, when making claims about capabilities of large models, including proper controls is critical. In this particular setting, emergent abilities claims are possibly infected by a failure to control for multiple comparisons. In BIG-Bench alone, there are $\\geq 2 2 0$ tasks, $\\sim 4 0$ metrics per task, $\\sim 1 0$ model families, for a total of $\\sim 1 0 ^ { 6 }$ taskmetric-model family triplets, meaning the probability that no task-metric-model family triplet exhibits an emergent ability by random chance might be small. Fourthly, scientific progress can be hampered when models and their outputs are not made available for independent scientific investigation. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
174,
|
| 860 |
+
342,
|
| 861 |
+
825,
|
| 862 |
+
522
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 9
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "9 Contributions ",
|
| 869 |
+
"text_level": 1,
|
| 870 |
+
"bbox": [
|
| 871 |
+
174,
|
| 872 |
+
541,
|
| 873 |
+
323,
|
| 874 |
+
558
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 9
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "RS conceived of the research direction collected data, ran experiments, and analyzed results. SK supervised and guided the project. BM also provided guidance. All authors helped write the manuscript. ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
176,
|
| 883 |
+
573,
|
| 884 |
+
825,
|
| 885 |
+
614
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 9
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "10 Acknowledgements ",
|
| 892 |
+
"text_level": 1,
|
| 893 |
+
"bbox": [
|
| 894 |
+
176,
|
| 895 |
+
633,
|
| 896 |
+
377,
|
| 897 |
+
651
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 9
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "This work is partially supported by the National Science Foundation under grants No. 2046795, 1934986, 2205329, NIH 1R01MH116226-01A, NIFA award 2020-67021-32799, the Alfred P. Sloan Foundation, and Google Inc. RS is partially supported by a Stanford Data Science Scholarship and BM is partially supported by a Stanford School of Engineering Fellowship and a Stanford EDGE Scholar Fellowship. We thank our colleagues Professor Tatsunori Hashimoto, Eric Han, Max Lamparth, Mikail Khona, Kateryna Pistunova, Victor Lecomte, and Zane Durante for discussing our findings with us and providing much-appreciated feedback. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
665,
|
| 907 |
+
825,
|
| 908 |
+
762
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 9
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "References \n[1] Philip W Anderson. More is different: broken symmetry and the nature of the hierarchical structure of science. Science, 177(4047):393–396, 1972. \n[2] Boaz Barak, Benjamin Edelman, Surbhi Goel, Sham Kakade, Eran Malach, and Cyril Zhang. Hidden progress in deep learning: Sgd learns parities near the computational limit. Advances in Neural Information Processing Systems, 35:21750–21764, 2022. \n[3] Glenn W Brier et al. Verification of forecasts expressed in terms of probability. Monthly weather review, 78(1):1–3, 1950. \n[4] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. \n[5] Ethan Caballero, Kshitij Gupta, Irina Rish, and David Krueger. Broken neural scaling laws. arXiv preprint arXiv:2210.14891, 2022. \n[6] Stephanie CY Chan, Adam Santoro, Andrew Kyle Lampinen, Jane X Wang, Aaditya K Singh, Pierre Harvey Richemond, James McClelland, and Felix Hill. Data distributional properties drive emergent in-context learning in transformers. In Advances in Neural Information Processing Systems, 2022. \n[7] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. \n[8] Aidan Clark, Diego De Las Casas, Aurelia Guy, Arthur Mensch, Michela Paganini, Jordan Hoffmann, Bogdan Damoc, Blake Hechtman, Trevor Cai, Sebastian Borgeaud, et al. Unified scaling laws for routed language models. In International Conference on Machine Learning, pages 4057–4086. PMLR, 2022. \n[9] Deep Ganguli, Danny Hernandez, Liane Lovitt, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova Dassarma, Dawn Drain, Nelson Elhage, et al. Predictability and surprise in large generative models. In 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1747–1764, 2022. \n[10] Mitchell A Gordon, Kevin Duh, and Jared Kaplan. Data and parameter scaling laws for neural machine translation. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5915–5922, 2021. \n[11] Andrey Gromov. Grokking modular arithmetic. arXiv preprint arXiv:2301.02679, 2023. \n[12] Dan Hendrycks. Detecting emergent behavior. 2022. \n[13] Tom Henighan, Jared Kaplan, Mor Katz, Mark Chen, Christopher Hesse, Jacob Jackson, Heewoo Jun, Tom B Brown, Prafulla Dhariwal, Scott Gray, et al. Scaling laws for autoregressive generative modeling. arXiv preprint arXiv:2010.14701, 2020. \n[14] Danny Hernandez, Jared Kaplan, Tom Henighan, and Sam McCandlish. Scaling laws for transfer. arXiv preprint arXiv:2102.01293, 2021. \n[15] Joel Hestness, Sharan Narang, Newsha Ardalani, Gregory Diamos, Heewoo Jun, Hassan Kianinejad, Md Patwary, Mostofa Ali, Yang Yang, and Yanqi Zhou. Deep learning scaling is predictable, empirically. arXiv preprint arXiv:1712.00409, 2017. \n[16] Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. \n[17] Andy L Jones. Scaling scaling laws with board games. arXiv preprint arXiv:2104.03113, 2021. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
83,
|
| 918 |
+
826,
|
| 919 |
+
906
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 10
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
897,
|
| 929 |
+
825,
|
| 930 |
+
912
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 10
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "[18] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
90,
|
| 940 |
+
823,
|
| 941 |
+
133
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 11
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "[19] Victoria Krakovna, Vikrant Varma, Ramana Kumar, and Mary Phuong. Refining the sharp left turn threat model, part 1: claims and mechanisms. 2022. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
171,
|
| 950 |
+
142,
|
| 951 |
+
825,
|
| 952 |
+
171
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 11
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "[20] Victoria Krakovna, Vikrant Varma, Ramana Kumar, and Mary Phuong. Refining the sharp left turn threat model, part 2: applying alignment techniques. 2022. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
173,
|
| 961 |
+
180,
|
| 962 |
+
825,
|
| 963 |
+
210
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 11
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "[21] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
218,
|
| 973 |
+
825,
|
| 974 |
+
234
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 11
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "[22] Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
171,
|
| 983 |
+
243,
|
| 984 |
+
825,
|
| 985 |
+
272
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 11
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "[23] Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
176,
|
| 994 |
+
281,
|
| 995 |
+
826,
|
| 996 |
+
310
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 11
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "[24] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
319,
|
| 1006 |
+
823,
|
| 1007 |
+
348
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 11
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "[25] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74–81, 2004. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
173,
|
| 1016 |
+
357,
|
| 1017 |
+
823,
|
| 1018 |
+
386
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 11
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "[26] Ziming Liu, Eric J Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data. arXiv preprint arXiv:2210.01117, 2022. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
174,
|
| 1027 |
+
395,
|
| 1028 |
+
823,
|
| 1029 |
+
424
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 11
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "[27] Ryan Lowe and Jan Leike. Aligning language models to follow instructions. 2022. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
433,
|
| 1039 |
+
754,
|
| 1040 |
+
449
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 11
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "[28] Eric J. Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. The quantization model of neural scaling, 2023. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
174,
|
| 1049 |
+
457,
|
| 1050 |
+
821,
|
| 1051 |
+
487
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 11
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "[29] Oren Neumann and Claudius Gros. Scaling laws for a multi-agent reinforcement learning model. arXiv preprint arXiv:2210.00849, 2022. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
173,
|
| 1060 |
+
494,
|
| 1061 |
+
823,
|
| 1062 |
+
525
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 11
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "[30] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, Philadelphia, Pennsylvania, USA, July 2002. Association for Computational Linguistics. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
534,
|
| 1072 |
+
828,
|
| 1073 |
+
589
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 11
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "[31] Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv preprint arXiv:2201.02177, 2022. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
173,
|
| 1082 |
+
599,
|
| 1083 |
+
825,
|
| 1084 |
+
642
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 11
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "[32] Jonathan S Rosenfeld, Amir Rosenfeld, Yonatan Belinkov, and Nir Shavit. A constructive prediction of the generalization error across scales. In International Conference on Learning Representations, 2019. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
174,
|
| 1093 |
+
650,
|
| 1094 |
+
823,
|
| 1095 |
+
694
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 11
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "[33] Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
173,
|
| 1104 |
+
703,
|
| 1105 |
+
828,
|
| 1106 |
+
760
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 11
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "[34] Jacob Steinhardt. Future ml systems will be qualitatively different. 2022. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
173,
|
| 1115 |
+
768,
|
| 1116 |
+
691,
|
| 1117 |
+
785
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 11
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "[35] Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, HengTze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, et al. Lamda: Language models for dialog applications. arXiv preprint arXiv:2201.08239, 2022. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
173,
|
| 1126 |
+
792,
|
| 1127 |
+
825,
|
| 1128 |
+
835
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 11
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "[36] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
844,
|
| 1138 |
+
825,
|
| 1139 |
+
887
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 11
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "[37] Jason Wei. 137 emergent abilities of large language models. 2022. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
173,
|
| 1148 |
+
896,
|
| 1149 |
+
647,
|
| 1150 |
+
912
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 11
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "[38] Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022. \n[39] Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12104–12113, 2022. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
90,
|
| 1160 |
+
826,
|
| 1161 |
+
185
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 12
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "A Approximate Behavior of Metrics on Sequential Data ",
|
| 1168 |
+
"text_level": 1,
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
174,
|
| 1171 |
+
88,
|
| 1172 |
+
655,
|
| 1173 |
+
107
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 13
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "How do different metrics behave when used to measure autoregressive model outputs? Precisely answering this question is tricky and possibly analytically unsolvable, so we provide an approximate answer here. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
174,
|
| 1182 |
+
119,
|
| 1183 |
+
825,
|
| 1184 |
+
161
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 13
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Notationally, we consider $N$ test data of length $L$ (here, length is measured in tokens) with targets denoted $t _ { n } \\ { \\stackrel { \\mathrm { d e f } } { = } } \\ ( t _ { n 1 } , t _ { n 2 } , . . . t _ { n L } )$ , the autoregressive model has a true-but-unknown per-token error probability of $\\epsilon \\in [ 0 , 1 ]$ and the model outputs prediction $\\boldsymbol { \\hat { t } _ { n } } \\ { \\stackrel { \\mathrm { d e f } } { = } } \\ ( { \\hat { t } _ { n 1 } } , { \\hat { t } _ { n 2 } } , . . . { \\hat { t } _ { n L } } )$ . This assumes that the model’s per-token error probability is constant, which is empirically false, but modeling the complex dependencies of errors is beyond our scope. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
167,
|
| 1194 |
+
825,
|
| 1195 |
+
247
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 13
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "A.1 Per-Token Error Probability is Resolution-Limited ",
|
| 1202 |
+
"text_level": 1,
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
173,
|
| 1205 |
+
262,
|
| 1206 |
+
570,
|
| 1207 |
+
279
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 13
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Note that because we have $N$ test data, each of length $L$ , our resolution for viewing the per-token error probability $\\epsilon$ is limited by $1 / N L$ . Here, resolution refers to “the smallest interval measurable by a scientific instrument; the resolving power.\" To explain what resolution means via an example, suppose one wants to measure a coin’s probability of yielding heads. After a single coin flip, only two outcomes are possible (H, T), so the resolution-limited probability of heads is either 0 or 1. After two coin flips, four outcomes are possible (HH, HT, TH, TT), so the resolution-limited probability of heads is now one of $0 , 0 . 5 , 1$ . After $F$ coin flips, we can only resolve the coin’s probability of yielding heads up to $1 / F$ . Consequently, we introduce a resolution-limited notation: ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
287,
|
| 1217 |
+
826,
|
| 1218 |
+
400
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 13
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "$a _ { b } \\ { \\stackrel { \\mathrm { d e f } } { = } } \\ a$ rounded to the nearest integer multiple of $1 / b$ ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
321,
|
| 1227 |
+
406,
|
| 1228 |
+
676,
|
| 1229 |
+
424
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 13
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "A.2 Token Edit Distance ",
|
| 1236 |
+
"text_level": 1,
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
174,
|
| 1239 |
+
439,
|
| 1240 |
+
357,
|
| 1241 |
+
454
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 13
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "We first consider an adaptation of the Levenshtein (string edit) distance for models that function on tokens rather than characters, an adaptation we term the token edit distance. The token edit distance between two token sequences $t _ { n } , \\hat { t _ { n } }$ is defined as the integer number of additions, deletions or substitutions necessary to transform $t _ { n }$ into $\\hat { t } _ { n }$ (or vice versa). ",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
174,
|
| 1250 |
+
464,
|
| 1251 |
+
825,
|
| 1252 |
+
523
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 13
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "equation",
|
| 1258 |
+
"img_path": "images/25889826914510fd5999570fda3860a6fdf394b61d83134a7bd26d56c641e5c6.jpg",
|
| 1259 |
+
"text": "$$\n\\begin{array} { l } { \\mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \\hat { t } _ { n } ) \\overset { \\mathrm { d e f } } { = } \\mathrm { N u m ~ S u b s t i u t i o n s } + \\mathrm { N u m . ~ A d d i t i o n s } + \\mathrm { N u m . ~ D e l e t i o n s } } \\\\ { \\displaystyle = \\sum _ { \\ell = 1 } ^ { L } \\mathbb { I } [ t _ { n \\ell } \\neq \\hat { t } _ { n \\ell } ] + \\mathrm { N u m . ~ A d d i t i o n s } + \\mathrm { N u m . ~ D e l e t i o n s } } \\\\ { \\displaystyle \\quad \\geq \\sum _ { \\ell = 1 } ^ { L } \\mathbb { I } [ t _ { n \\ell } \\neq \\hat { t } _ { n \\ell } ] } \\end{array}\n$$",
|
| 1260 |
+
"text_format": "latex",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
196,
|
| 1263 |
+
545,
|
| 1264 |
+
776,
|
| 1265 |
+
659
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 13
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "The expected token edit distance is therefore: ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
666,
|
| 1275 |
+
472,
|
| 1276 |
+
680
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 13
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "equation",
|
| 1282 |
+
"img_path": "images/e0243250ca9c28b579b35ffb406027eb4dd45b7f519cc9e46cf77b8cc90342d9.jpg",
|
| 1283 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\mathbb { E } [ \\mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \\hat { t } _ { n } ) ] \\geq \\mathbb { E } [ \\sum _ { \\ell = 1 } ^ { L } \\mathbb { I } [ t _ { n \\ell } \\neq \\hat { t } _ { n \\ell } ] ] } \\\\ { \\displaystyle = \\sum _ { \\ell = 1 } ^ { L } p ( t _ { n \\ell } \\neq \\hat { t } _ { n \\ell } ) } \\\\ { \\approx L ( 1 - \\epsilon ) } \\end{array}\n$$",
|
| 1284 |
+
"text_format": "latex",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
321,
|
| 1287 |
+
702,
|
| 1288 |
+
674,
|
| 1289 |
+
810
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 13
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "The resolution-limited expected token edit distance is therefore: ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
173,
|
| 1298 |
+
818,
|
| 1299 |
+
591,
|
| 1300 |
+
834
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 13
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "equation",
|
| 1306 |
+
"img_path": "images/2e488cd5d0123faca69d3ad78b6b5874fe2c1df04992be3b932ab2f92c00f572.jpg",
|
| 1307 |
+
"text": "$$\n\\mathbb { E } [ \\mathrm { T o k e n ~ E d i t ~ D i s t a n c e } ( t _ { n } , \\hat { t } _ { n } ) ] _ { N L } \\ge L \\Big ( 1 - \\epsilon _ { N L } \\Big )\n$$",
|
| 1308 |
+
"text_format": "latex",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
330,
|
| 1311 |
+
848,
|
| 1312 |
+
666,
|
| 1313 |
+
876
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 13
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "From this, we see that the expected token edit distance scales approximately linearly with the resolution-limited per-token probability. The real rate is slightly higher than linear because additions ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
882,
|
| 1323 |
+
823,
|
| 1324 |
+
912
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 13
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "and deletions contribute an additional non-negative cost, but modeling this requires a model of how likely the model is to overproduce or underproduce tokens, which is something we do not currently possess. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
173,
|
| 1333 |
+
90,
|
| 1334 |
+
826,
|
| 1335 |
+
133
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 14
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "A.3 Accuracy ",
|
| 1342 |
+
"text_level": 1,
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
148,
|
| 1346 |
+
282,
|
| 1347 |
+
164
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 14
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "equation",
|
| 1353 |
+
"img_path": "images/a17689acc3ce9e552ab8b7a81583f8a3ebe58973b339b735aaa2567308af5ee4.jpg",
|
| 1354 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\mathrm { A c c u r a c y } ( t _ { n } , \\hat { t } _ { n } ) \\stackrel { \\mathrm { d e f } } { = } \\mathbb { I } [ \\mathrm { N o \\ a d d i t i o n s } ] \\mathbb { I } [ \\mathrm { N o \\ d e l e t i o n s } ] \\prod _ { l = 1 } ^ { L } \\mathbb { I } [ t _ { n l } = \\hat { t } _ { n l } ] } \\\\ { \\displaystyle \\approx \\prod _ { l = 1 } ^ { L } \\mathbb { I } [ t _ { n l } = \\hat { t } _ { n l } ] } \\end{array}\n$$",
|
| 1355 |
+
"text_format": "latex",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
274,
|
| 1358 |
+
181,
|
| 1359 |
+
722,
|
| 1360 |
+
271
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 14
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "As with the Token Edit Distance (App. A.2), we ignore how likely the language model is to overproduce or underproduce tokens because we do not have a good model of this process. Continuing along, ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
176,
|
| 1369 |
+
282,
|
| 1370 |
+
823,
|
| 1371 |
+
325
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 14
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "equation",
|
| 1377 |
+
"img_path": "images/d16bd2849e775991762208e8b49a2f7a38216d53692d7d4f7b27279d9ad989af.jpg",
|
| 1378 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\mathbb { E } [ \\log \\mathrm { A c c u r a c y } ] = \\sum _ { l } \\mathbb { E } [ \\log \\mathbb { I } [ t _ { n l } = \\hat { t } _ { n l } ] ] } \\\\ { \\displaystyle \\qquad \\leq \\sum _ { l } \\log \\mathbb { E } [ \\mathbb { I } [ t _ { n l } = \\hat { t } _ { n l } ] ] } \\\\ { \\displaystyle \\qquad \\approx L \\log ( 1 - \\epsilon ) } \\end{array}\n$$",
|
| 1379 |
+
"text_format": "latex",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
357,
|
| 1382 |
+
348,
|
| 1383 |
+
638,
|
| 1384 |
+
436
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 14
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "Taking an approximation that would make most mathematicians cry: ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
171,
|
| 1393 |
+
448,
|
| 1394 |
+
622,
|
| 1395 |
+
463
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 14
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "equation",
|
| 1401 |
+
"img_path": "images/2a0b37bcf22a17705eb78cf5e057a2c33e380e7c33abe875a1f08da0f76248e3.jpg",
|
| 1402 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } [ \\mathrm { A c c u r a c y } ] \\approx \\exp ( \\mathbb { E } [ \\mathrm { l o g } \\mathrm { A c c u r a c y } ] ) } \\\\ { = ( 1 - \\epsilon ) ^ { L } } \\end{array}\n$$",
|
| 1403 |
+
"text_format": "latex",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
370,
|
| 1406 |
+
489,
|
| 1407 |
+
625,
|
| 1408 |
+
530
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 14
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "This reveals that accuracy approximately falls geometrically with target token length. The resolutionlimited expected accuracy is therefore: ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
174,
|
| 1417 |
+
559,
|
| 1418 |
+
825,
|
| 1419 |
+
588
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 14
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "equation",
|
| 1425 |
+
"img_path": "images/6df8e9b5949e4aab27210961a1263e3d0c8f4e152a055e4a5272939a20d94f46.jpg",
|
| 1426 |
+
"text": "$$\n\\mathbb { E } [ \\mathrm { A c c u r a c y } ] _ { N L } = ( 1 - \\epsilon ) ^ { L } { } _ { N L }\n$$",
|
| 1427 |
+
"text_format": "latex",
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
393,
|
| 1430 |
+
604,
|
| 1431 |
+
602,
|
| 1432 |
+
625
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 14
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "From this we can see that choosing a nonlinear metric like Accuracy is affected significantly more than a linear metric by limited resolution because Accuracy forces one to distinguish quantities that decay rapidly. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
174,
|
| 1441 |
+
632,
|
| 1442 |
+
825,
|
| 1443 |
+
675
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 14
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "A.4 ROUGE-L-Sum ",
|
| 1450 |
+
"text_level": 1,
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
174,
|
| 1453 |
+
690,
|
| 1454 |
+
330,
|
| 1455 |
+
705
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 14
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Another BIG-Bench metric [33] is ROUGE-L-Sum [25], a metric based on the longest common subsequence (LCS) between two sequences. Section 3.2 of [25] gives the exact definition, but the key property is that ROUGE-L-Sum measures the “union\" LCS, which means “stitching\" together LCSs across the candidate and multiple references. As explained in the original paper [25]: if the candidate sequence is $c = w _ { 1 } w _ { 2 } w _ { 3 } w _ { 4 } w _ { 5 }$ , and if there are two reference sequences $r _ { 1 } = w _ { 1 } w _ { 2 } w _ { 6 } w _ { 7 } w _ { 8 }$ and $r _ { 2 } = w _ { 1 } w _ { 3 } w _ { 8 } w _ { 9 } w _ { 5 }$ , then $L C S ( r _ { 1 } , c ) = w _ { 1 } w _ { 2 }$ and $L C S ( r _ { 2 } , c ) = \\overline { { w _ { 1 } w _ { 3 } w _ { 5 } } }$ , then the union LCS of $c , r _ { 1 } , r _ { 2 }$ is $w _ { 1 } w _ { 2 } w _ { 3 } w _ { 5 }$ , with length 4. Intuitively, this disproportionately benefits models with smaller error rates because their mistakes can be “stitched\" across multiple references; this is confirmed in Monte Carlo simulation (Fig. 9). ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
173,
|
| 1464 |
+
715,
|
| 1465 |
+
825,
|
| 1466 |
+
842
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 14
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "A.5 BLEU ",
|
| 1473 |
+
"text_level": 1,
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
174,
|
| 1476 |
+
857,
|
| 1477 |
+
261,
|
| 1478 |
+
872
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 14
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"text": "Yet another BIG-Bench metric [33] is BLEU [30], a metric based on shared $\\mathbf { n }$ -grams between the generated string and reference strings. BLEU is also a discontinuous and nonlinear metric for several reasons. For an explanation of its discontinuity, consider bleu.compute(predictions $=$ [\"hello there general\"], references=[[\"hello there general\"]]). At first glance, this might seem like it should also result in a BLEU score of 1.0 since the prediction matches the reference. However, the issue here is the absence of longer n-grams. For the unigrams, bigrams, and trigrams, the precision is 1.0 since they match perfectly. However, for the 4-grams, there are none in both the candidate and the reference. This results in a precision of 0 for the 4-grams because the BLEU score takes the geometric mean of the n-gram precisions, meaning any 0 in the set will make the entire product 0. Hence, despite the match in unigrams, bigrams, and trigrams, the absence of 4-grams results in a BLEU score of 0.0. This behavior of BLEU has been a point of criticism, as short sentences or those with fewer n-grams than the maximum considered (often 4) can yield scores that are counter-intuitive. This is confirmed in Monte Carlo simulations (Fig. 10) ",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
174,
|
| 1487 |
+
882,
|
| 1488 |
+
821,
|
| 1489 |
+
911
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 14
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "image",
|
| 1495 |
+
"img_path": "images/b232dac27063b9946e0f425e9311d8f3af48091cb9b2c8555faa06ef2edfb1e7.jpg",
|
| 1496 |
+
"image_caption": [
|
| 1497 |
+
"Figure 9: ROUGE-L-Sum is a sharp metric. Simulations show that as the per-token error probability slightly increases (e.g. from 0.05 to 0.1), the ROUGE-L-Sum metric falls sharply. "
|
| 1498 |
+
],
|
| 1499 |
+
"image_footnote": [],
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
192,
|
| 1502 |
+
92,
|
| 1503 |
+
802,
|
| 1504 |
+
270
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 15
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "image",
|
| 1510 |
+
"img_path": "images/38be85b71e7e7bada1a8b5a5180dbe5be8df06d1287fef6f83fcabce79b76a66.jpg",
|
| 1511 |
+
"image_caption": [
|
| 1512 |
+
"Figure 10: BLEU is a sharp metric. Simulations show that as the per-token error probability slightly increases (e.g. from 0.05 to 0.1), the ROUGE-L-Sum metric falls sharply. "
|
| 1513 |
+
],
|
| 1514 |
+
"image_footnote": [],
|
| 1515 |
+
"bbox": [
|
| 1516 |
+
194,
|
| 1517 |
+
332,
|
| 1518 |
+
802,
|
| 1519 |
+
511
|
| 1520 |
+
],
|
| 1521 |
+
"page_idx": 15
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"type": "text",
|
| 1525 |
+
"text": "",
|
| 1526 |
+
"bbox": [
|
| 1527 |
+
174,
|
| 1528 |
+
582,
|
| 1529 |
+
825,
|
| 1530 |
+
733
|
| 1531 |
+
],
|
| 1532 |
+
"page_idx": 15
|
| 1533 |
+
},
|
| 1534 |
+
{
|
| 1535 |
+
"type": "text",
|
| 1536 |
+
"text": "B Inducing Emergent Abilities in Networks on Vision Tasks ",
|
| 1537 |
+
"text_level": 1,
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
174,
|
| 1540 |
+
755,
|
| 1541 |
+
687,
|
| 1542 |
+
772
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 15
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "B.1 Emergent Classification of MNIST Handwritten Digits by Convolutional Networks ",
|
| 1549 |
+
"text_level": 1,
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
173,
|
| 1552 |
+
787,
|
| 1553 |
+
787,
|
| 1554 |
+
803
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 15
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "text",
|
| 1560 |
+
"text": "We begin by inducing an emergent classification ability in a LeNet convolutional neural network family [24], trained on the MNIST handwritten digits dataset [23]. This family displays smoothly increasing test accuracy as the number of parameters increases (Fig. 11B). To emulate the accuracy metric used by emergence papers [9, 38, 33], we use subset accuracy: 1 if the network classifies $K$ out of $K$ (independent) test data correctly, 0 otherwise. Under this definition of accuracy, the model family displays an “emergent\" ability to correctly classify sets of MNIST digits as $K$ increases from 1 to 5, especially when combined with sparse sampling of model sizes (Fig. 11C). This convolutional family’s emergent classification ability qualitatively matches published emergent abilities, e.g., at the BIG-Bench Grounded Mappings task [38] (Fig. 11A). ",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
174,
|
| 1563 |
+
814,
|
| 1564 |
+
823,
|
| 1565 |
+
911
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 15
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "image",
|
| 1571 |
+
"img_path": "images/38d1b3571deb00098b83f0272d6e8d14ac421eb06ebecf23348f75954da88ad8.jpg",
|
| 1572 |
+
"image_caption": [
|
| 1573 |
+
"Figure 11: Induced emergent MNIST classification ability in convolutional networks. (A) A published emergent ability from the BIG-Bench Grounded Mappings task [38]. (B) LeNet trained on MNIST [23] displays a predictable, commonplace sigmoidal increase in test accuracy as model parameters increase. (C) When accuracy is redefined as correctly classifying $K$ out of $K$ independent test data, this newly defined metric induces a seemingly unpredictable change. "
|
| 1574 |
+
],
|
| 1575 |
+
"image_footnote": [],
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
176,
|
| 1578 |
+
89,
|
| 1579 |
+
821,
|
| 1580 |
+
251
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 16
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
173,
|
| 1589 |
+
358,
|
| 1590 |
+
823,
|
| 1591 |
+
387
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 16
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "C Relationship Between Emergent Abilities and Grokking ",
|
| 1598 |
+
"text_level": 1,
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
174,
|
| 1601 |
+
405,
|
| 1602 |
+
676,
|
| 1603 |
+
424
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 16
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "text",
|
| 1609 |
+
"text": "Emergent abilities [4, 9, 33, 38] are sometimes compared with grokking [31, 26, 2, 11], a phenomenon whereby a single model will, over the course of learning, achieve high training accuracy and only much later achieve high test accuracy. There are several differences between grokking and emergent abilities: ",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
174,
|
| 1612 |
+
438,
|
| 1613 |
+
826,
|
| 1614 |
+
492
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 16
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "1. Grokking is primarily studied within a single model, whereas emergent abilities are studied within a model family (i.e., multiple models). \n2. Grokking occurs with increasing gradient steps, whereas emergent abilities occur with increasing model scale, typically measured in parameters or effective parameters (although more recently compute). \n3. Grokking explicitly studies a discrepancy between the model’s train and test behavior, whereas emergent abilities (to the best of our knowledge) do not present separate train & test curves. \n4. Grokking is primarily studied on toy “algorithmic\" tasks in small networks, whereas emergent abilities are often studied on benchmark NLP tasks in large language models. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
210,
|
| 1623 |
+
505,
|
| 1624 |
+
825,
|
| 1625 |
+
659
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 16
|
| 1628 |
+
}
|
| 1629 |
+
]
|
parse/dev/ITw9edRDlD/ITw9edRDlD_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ITw9edRDlD/ITw9edRDlD_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/SlxSY2UZQT/SlxSY2UZQT.md
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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| 5 |
+
Yandex Research
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Denoising diffusion probabilistic models have recently received much research attention since they outperform alternative approaches, such as GANs, and currently provide state-of-the-art generative performance. The superior performance of diffusion models has made them an appealing tool in several applications, including inpainting, super-resolution, and semantic editing. In this paper, we demonstrate that diffusion models can also serve as an instrument for semantic segmentation, especially in the setup when labeled data is scarce. In particular, for several pretrained diffusion models, we investigate the intermediate activations from the networks that perform the Markov step of the reverse diffusion process. We show that these activations effectively capture the semantic information from an input image and appear to be excellent pixel-level representations for the segmentation problem. Based on these observations, we describe a simple segmentation method, which can work even if only a few training images are provided. Our approach significantly outperforms the existing alternatives on several datasets for the same amount of human supervision. The source code of the project is publicly available.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Denoising diffusion probabilistic models (DDPM) (Sohl-Dickstein et al., 2015; Ho et al., 2020) have recently outperformed alternative approaches to model the distribution of natural images both in the realism of individual samples and their diversity (Dhariwal & Nichol, 2021). These advantages of DDPM are successfully exploited in applications, such as colorization (Song et al., 2021), inpainting (Song et al., 2021), super-resolution (Saharia et al., 2021; Li et al., 2021b), and semantic editing (Meng et al., 2021), where DDPM often achieve more impressive results compared to GANs.
|
| 14 |
+
|
| 15 |
+
So far, however, DDPM were not exploited as a source of effective image representations for discriminative computer vision problems. While the prior literature has demonstrated that various generative paradigms, such as GANs (Donahue & Simonyan, 2019) or autoregressive models (Chen et al., 2020a), can be used to extract the representations for common vision tasks, it is not clear if DDPM can also serve as representation learners. In this paper, we provide an affirmative answer to this question in the context of semantic segmentation.
|
| 16 |
+
|
| 17 |
+
In particular, we investigate the intermediate activations from the U-Net network that approximates the Markov step of the reverse diffusion process in DDPM. Intuitively, this network learns to denoise its input, and it is not clear why the intermediate activations should capture semantic information needed for high-level vision problems. Nevertheless, we show that on certain diffusion steps, these activations do capture such information, and therefore, can potentially be used as image representations for downstream tasks. Given these observations, we propose a simple semantic segmentation method, which exploits these representations and works successfully even if only a few labeled images are provided. On several datasets, we show that our DDPM-based segmentation method outperforms the existing baselines for the same amount of supervision.
|
| 18 |
+
|
| 19 |
+
To sum up, the contributions of our paper are:
|
| 20 |
+
|
| 21 |
+
1. We investigate the representations learned by the state-of-the-art DDPM and show that they capture high-level semantic information valuable for downstream vision tasks.
|
| 22 |
+
|
| 23 |
+
2. We design a simple semantic segmentation approach that exploits these representations and outperforms the alternatives in the few-shot operating point.
|
| 24 |
+
|
| 25 |
+
3. We compare the DDPM-based representations with their GAN-based counterparts on the same datasets and demonstrate the advantages of the former in the context of semantic segmentation.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORK
|
| 28 |
+
|
| 29 |
+
In this section, we briefly describe the existing lines of research relevant to our work.
|
| 30 |
+
|
| 31 |
+
Diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020) are a class of generative models that approximate the distribution of real images by the endpoint of the Markov chain which originates from a simple parametric distribution, typically a standard Gaussian. Each Markov step is modeled by a deep neural network that effectively learns to invert the diffusion process with a known Gaussian kernel. Ho et al. highlighted the equivalence of diffusion models and score matching (Song & Ermon, 2019; 2020), showing them to be two different perspectives on the gradual conversion of a simple known distribution into a target distribution via the iterative denoising process. Very recent works (Nichol, 2021; Dhariwal & Nichol, 2021) have developed more powerful model architectures as well as different advanced objectives, which led to the “victory” of DDPM over GANs in terms of generative quality and diversity. DDPM have been widely used in several applications, including image colorization (Song et al., 2021), super-resolution (Saharia et al., 2021; Li et al., 2021b), inpainting (Song et al., 2021), and semantic editing (Meng et al., 2021). In our work, we demonstrate that one can also successfully use them for semantic segmentation.
|
| 32 |
+
|
| 33 |
+
Image segmentation with generative models is an active research direction at the moment, however, existing methods are primarily based on GANs. The first line of works (Voynov & Babenko, 2020; Voynov et al., 2021; Melas-Kyriazi et al., 2021) is based on the evidence that the latent spaces of the state-of-the-art GANs have directions corresponding to effects that influence the foreground/background pixels differently, which allows producing synthetic data to train segmentation models. However, these approaches are currently able to perform binary segmentation only, and it is not clear if they can be used in the general setup of semantic segmentation. The second line of works (Zhang et al., 2021; Tritrong et al., 2021; Xu, 2021; Galeev et al., 2020) is more relevant to our study since they are based on the intermediate representations obtained in GANs. In particular, the method proposed in (Zhang et al., 2021) trains a pixel class prediction model on these representations and confirms their label efficiency. In the experimental section, we compare the method from (Zhang et al., 2021) to our DDPM-based one and demonstrate several distinctive advantages of our solution.
|
| 34 |
+
|
| 35 |
+
Representations from generative models for discriminative tasks. The usage of generative models, as representation learners, has been widely investigated for global prediction (Donahue & Simonyan, 2019; Chen et al., 2020a), and dense prediction problems (Zhang et al., 2021; Tritrong et al., 2021; Xu, 2021; Xu et al., 2021). While previous works highlighted the practical advantages of these representations, such as out-of-distribution robustness (Li et al., 2021a), generative models as representation learners receive less attention compared to alternative unsupervised methods, e.g., based on contrastive learning (Chen et al., 2020b). The main reason is probably the difficulty of training a high-quality generative model on a complex, diverse dataset. However, given the recent success of DDPM on Imagenet (Deng et al., 2009), one can expect that this direction will attract more attention in the future.
|
| 36 |
+
|
| 37 |
+
# 3 REPRESENTATIONS FROM DIFFUSION MODELS
|
| 38 |
+
|
| 39 |
+
In the following section, we investigate the image representations learned by diffusion models. First, we provide a brief overview of the DDPM framework. Then, we describe how to extract features with DDPM and investigate what kind of semantic information these features might capture.
|
| 40 |
+
|
| 41 |
+
Background. Diffusion models transform noise $x _ { T } { \sim } N ( 0 , I )$ to the sample $x _ { 0 }$ by gradually denoising $x _ { T }$ to less noisy samples $x _ { t }$ . Formally, we are given a forward diffusion process:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
q ( x _ { t } | x _ { t - 1 } ) : = N ( x _ { t } ; \sqrt { 1 - \beta _ { t } } x _ { t - 1 } , \beta _ { t } I ) ,
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
for some fixed variance schedule $\beta _ { 1 } , \ldots , \beta _ { t }$ .
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 1: Overview of the proposed method. (1) $x _ { 0 } x _ { t }$ by adding noise according to $q ( x _ { t } | x _ { 0 } )$ . (2) Extracting feature maps from a noise predictor $\epsilon _ { \theta } ( x _ { t } , t )$ . (3) Collecting pixel-level representations by upsampling the feature maps to the image resolution and concatenating them. (4) Using the pixel-wise feature vectors to train an ensemble of MLPs to predict a class label for each pixel.
|
| 51 |
+
|
| 52 |
+
Importantly, a noisy sample $x _ { t }$ can be obtained directly from the data $x _ { 0 }$
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { r } { q ( x _ { t } | x _ { 0 } ) : = \mathcal { N } ( x _ { t } ; \sqrt { \bar { \alpha } _ { t } } x _ { 0 } , ( 1 - \bar { \alpha } _ { t } ) I ) , } \\ { x _ { t } = \sqrt { \bar { \alpha } _ { t } } x _ { 0 } + \sqrt { 1 - \bar { \alpha } _ { t } } \epsilon , \epsilon \sim \mathcal { N } ( 0 , 1 ) , } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
where $\begin{array} { r } { \alpha _ { t } : = 1 - \beta _ { t } , \bar { \alpha } _ { t } : = \prod _ { s = 1 } ^ { t } \alpha _ { s } , } \end{array}$
|
| 59 |
+
|
| 60 |
+
Pretrained DDPM approximates a reverse process:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
p _ { \theta } ( x _ { t - 1 } | x _ { t } ) : = N ( x _ { t - 1 } ; \mu _ { \theta } ( x _ { t } , t ) , \Sigma _ { \theta } ( x _ { t } , t ) ) .
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
In practice, rather than predicting the mean of the distribution in Equation (3), the noise predictor network $\epsilon _ { \theta } ( x _ { t } , t )$ predicts the noise component at the step $t$ ; the mean is then a linear combination of this noise component and $x _ { t }$ . The covariance predictor $\Sigma _ { \theta } ( x _ { t } , t )$ can be either a fixed set of scalar covariances or learned as well (the latter was shown to improve the model quality (Nichol, 2021)).
|
| 67 |
+
|
| 68 |
+
The denoising model $\epsilon _ { \theta } ( x _ { t } , t )$ is typically parameterized by different variants of the UNet architecture (Ronneberger et al., 2015), and in our experiments we investigate the state-of-the-art one proposed in (Dhariwal & Nichol, 2021).
|
| 69 |
+
|
| 70 |
+
Extracting representations. For a given real image $\boldsymbol { x } _ { 0 } \in \mathbb { R } ^ { H \times W \times 3 }$ , one can compute $T$ sets of activation tensors from the noise predictor network $\epsilon _ { \theta } ( x _ { t } , t )$ . The overall scheme for a timestep $t$ is presented in Figure 1. First, we corrupt $x _ { 0 }$ by adding Gaussian noise according to Equation (2). The noisy $x _ { t }$ is used as an input of $\epsilon _ { \theta } ( x _ { t } , t )$ parameterized by the UNet model. The UNet’s intermediate activations are then upsampled to $H \times W$ with bilinear interpolation. This allows treating them as pixel-level representations of $x _ { 0 }$ .
|
| 71 |
+
|
| 72 |
+
# 3.1 REPRESENTATION ANALYSIS
|
| 73 |
+
|
| 74 |
+
We analyze the representations produced by the noise predictor $\epsilon _ { \theta } ( x _ { t } , t )$ for different $t$ . We consider the state-of-the-art DDPM checkpoints trained on the LSUN-Horse and FFHQ-256 datasets1.
|
| 75 |
+
|
| 76 |
+
The intermediate activations from the noise predictor capture semantic information. For this experiment, we take a few images from the LSUN-Horse and FFHQ datasets and manually assign each pixel to one of the 21 and 34 semantic classes, respectively. Our goal is to understand whether the pixel-level representations produced by DDPM effectively capture the information about semantics. To this end, we train a multi-layer perceptron (MLP) to predict the pixel semantic label from its features produced by one of the 18 UNet decoder blocks on a specific diffusion step $t$ . Note that we consider only the decoder activations because they also aggregate the encoder activations through the skip connections. MLPs are trained on 20 images and evaluated on 20 hold-out ones. The predictive performance is measured in terms of mean IoU.
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
Figure 2: The evolution of predictive performance of DDPM-based pixel-wise representations for different UNet decoder blocks and diffusion steps. The blocks are numbered from the deep to shallow ones. The most informative features typically correspond to the later steps of the reverse diffusion process and middle layers of the UNet decoder. The earlier steps correspond to uninformative representations. The plots for other datasets are provided in Appendix A
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 3: The evolution of predictive performance of DDPM-based pixel-wise representations on the LSUN-Horse dataset for classes with the smallest (Left) and largest (Right) average areas. The predictive performance for small-sized objects starts growing later in the reverse process. The deeper blocks are more informative for larger objects and the shallower blocks are more informative for smaller objects. A similar evaluation for other datasets is provided in Appendix A.
|
| 83 |
+
|
| 84 |
+
The evolution of predictive performance across the different blocks and diffusion steps $t$ is presented in Figure 2. The blocks are numbered from the deep to shallow ones. Figure 2 shows that the discriminability of the features produced by the noise predictor $\epsilon _ { \theta } ( x _ { t } , t )$ varies for different blocks and diffusion steps. In particular, the features corresponding to the later steps of the reverse diffusion process typically capture semantic information more effectively. In contrast, the ones corresponding to the early steps are generally uninformative. Across different blocks, the features produced by the layers in the middle of the UNet decoder appear to be the most informative on all diffusion steps.
|
| 85 |
+
|
| 86 |
+
Also, we separately consider small-sized and large-sized semantic classes based on the average area in the annotated dataset. Then, we evaluate mean IoU for these classes independently across the different UNet blocks and diffusion steps. The results on LSUN-Horse are in Figure 3. As expected, the predictive performance for large-sized objects starts growing earlier in the reverse process. The shallower blocks are more informative for smaller objects, while the deeper blocks are more so for the larger ones. In both cases, the most discriminative features still correspond to the middle blocks.
|
| 87 |
+
|
| 88 |
+
Figure 2 implies that for certain UNet blocks and diffusion steps, similar DDPM-based representations correspond to the pixels of the same semantics. Figure 4 shows the $\mathbf { k }$ -means clusters $\scriptstyle ( k = 5 )$ ) formed by the features extracted by the FFHQ checkpoint from the blocks $\{ 6 , 8 , 1 0 , 1 2 \}$ on the diffusion steps $\{ 5 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 \}$ , and confirms that clusters can span coherent semantic objects and object-parts. In the block $B { = } 6$ , the features correspond to coarse semantic masks. At the other extreme, the features from $B { = } 1 2$ can discriminate between fine-grained face parts but exhibit less semantic meaningness for coarse fragmentation. Across different diffusion steps, the most meaningful features correspond to the later ones. We attribute this behavior to the fact that on the earlier steps of the reverse process, the global structure of a DDPM sample has not yet emerged, therefore, it is hardly possible to predict segmentation masks at this stage. This intuition is qualitatively confirmed by the masks in Figure 4. For $t { = } 8 0 0$ , the masks poorly reflect the content of actual images, while for smaller values of $t$ , the masks and images are semantically coherent.
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 4: Examples of $\mathbf { k }$ -means clusters $\scriptstyle ( k = 5 )$ ) formed by the features extracted from the UNet decoder blocks $\{ 6 , 8 , 1 0 , 1 2 \}$ on the diffusion steps $\{ 5 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 \}$ . The clusters from the middle blocks spatially span coherent semantic objects and parts.
|
| 92 |
+
|
| 93 |
+
# 3.2 DDPM-BASED REPRESENTATIONS FOR FEW-SHOT SEMANTIC SEGMENTATION
|
| 94 |
+
|
| 95 |
+
The potential effectiveness of the intermediate DDPM activations observed above implies their usage as image representations for dense prediction tasks. Figure 1 schematically presents our overall approach for image segmentation, which exploits the discriminability of these representations. In more detail, we consider a few-shot semi-supervised setup, when a large number of unlabeled images $\{ X _ { 1 } , \ldots , X _ { N } \} \subset \mathbb { R } ^ { H \times W \times 3 }$ from the particular domain are available, and only for $n$ training images $\{ X _ { 1 } , \ldots , X _ { n } \} \subset \mathbb { R } ^ { H \times W \times 3 }$ the groundtruth $K$ -class semantic masks $\{ Y _ { 1 } , . . . , Y _ { n } \} \subset \mathbb { R } ^ { H \times W \times \{ 1 , . . . , K \} }$ are provided.
|
| 96 |
+
|
| 97 |
+
As a first step, we train a diffusion model on the whole $\{ X _ { 1 } , \ldots , X _ { N } \}$ in an unsupervised manner. Then, this diffusion model is used to extract the pixel-level representations of the labeled images using the subset of the UNet blocks and diffusion steps $t$ . In this work, we use the representations from the middle blocks $B { = } \{ 5 , 6 , 7 , 8 , 1 2 \}$ of the UNet decoder and later steps $t { = } \{ 5 0 , 1 5 0 , 2 5 0 \}$ of the reverse diffusion process. These blocks and time steps are motivated by the insights from Section 3.1 but intentionally not tuned for each dataset.
|
| 98 |
+
|
| 99 |
+
While the feature extraction at the particular time step is stochastic, we fix the noise for all timesteps $t$ and ablate this in Section 4.1. The extracted representations from all blocks $B$ and steps $t$ are upsampled to the image size and concatenated, forming the feature vectors for all pixels of the training images. The overall dimension of the pixel-level representations is 8448.
|
| 100 |
+
|
| 101 |
+
Then, following (Zhang et al., 2021), we train an ensemble of independent multi-layer perceptrons (MLPs) on these feature vectors, which aim to predict a semantic label of each pixel available for training images. We adopt the ensemble configuration and training settings from (Zhang et al., 2021) and exploit them across all other methods in our experiments, see Appendix C for details.
|
| 102 |
+
|
| 103 |
+
To segment a test image, we extract its DDPM-based pixel-wise representations and use them to predict the pixel labels by the ensemble. The final prediction is obtained by majority voting.
|
| 104 |
+
|
| 105 |
+
# 4 EXPERIMENTS
|
| 106 |
+
|
| 107 |
+
This section experimentally confirms the advantage of the DDPM-based representations for the semantic segmentation problem. We start from a thorough comparison to the existing alternatives and then dissect the reasons for the DDPM success by additional analysis.
|
| 108 |
+
|
| 109 |
+
Datasets. In our evaluation, we mainly work with the “bedroom”, “cat” and “horse” categories from LSUN (Yu et al., 2015) and FFHQ-256 (Karras et al., 2019). As a training set for each dataset, we consider several images for which the fine-grained semantic masks are collected following the protocol from (Zhang et al., 2021). For each dataset, a professional assessor was hired to annotate train and test samples. We denote the collected datasets as Bedroom-28, FFHQ-34, Cat-15, Horse21, where the number corresponds to the number of semantic classes.
|
| 110 |
+
|
| 111 |
+
Table 1: Number of annotated images for each dataset used in our evaluation.
|
| 112 |
+
|
| 113 |
+
<table><tr><td>Dataset</td><td>RealTrain</td><td>RealTest</td><td>GAN</td><td>DDPM</td><td>Total</td></tr><tr><td>Bedroom-28</td><td>40</td><td>20</td><td>40</td><td>40</td><td>140</td></tr><tr><td>FFHQ-34</td><td>20</td><td>20</td><td>20</td><td>20</td><td>80</td></tr><tr><td>Cat-15</td><td>30</td><td>20</td><td>30</td><td>30</td><td>110</td></tr><tr><td>Horse-21</td><td>30</td><td>30</td><td>30</td><td>30</td><td>120</td></tr><tr><td>CelebA-19</td><td>20</td><td>500</td><td>一</td><td>一</td><td>520</td></tr><tr><td>ADE-Bedroom-30</td><td>50</td><td>650</td><td>丨</td><td>丨</td><td>700</td></tr></table>
|
| 114 |
+
|
| 115 |
+
Additionally, we consider two datasets, which, in contrast to others, have publicly available annotations and sizable evaluation sets:
|
| 116 |
+
|
| 117 |
+
• ADE-Bedroom-30 is a subset of the ADE20K dataset (Zhou et al., 2018), where we extract only images of bedroom scenes with 30 most frequent classes. We resize each image to 256 for the smaller side and then crop them to obtain the $2 5 6 \times 2 5 6$ samples. • CelebA-19 is a subset of the CelebAMask-HQ dataset (Lee et al., 2020), which provides the annotation for 19 facial attributes. All images are resized to 256 resolution.
|
| 118 |
+
|
| 119 |
+
The number of annotated images for each dataset are in Table 1. Other details are in Appendix E.
|
| 120 |
+
|
| 121 |
+
Methods. In the evaluation, we compare our method (denoted as DDPM) to several prior approaches which tackle the few-shot semantic segmentation setup. First, we describe the baselines that produce a large set of annotated synthetic images to train a segmentation model:
|
| 122 |
+
|
| 123 |
+
• DatasetGAN (Zhang et al., 2021) — this method exploits the discriminability of pixel-level features produced by GANs. In more detail, assessors annotate a few GAN-produced images. Then, the latent codes of these images are used to obtain the intermediate generator activations, which are considered as pixel-level representations. Given these representations, a classifier is trained to predict a semantic label for each pixel. This classifier is then used to label new synthetic GAN images, which, for their part, serve as a training set for the DeepLabV3 segmentation model (Chen et al., 2017). For each dataset, we increase the number of synthetic images until the performance on the validation set is not saturated. According to (Zhang et al., 2021), we also remove $1 0 \%$ of synthetic samples with the most uncertain predictions. • DatasetDDPM mirrors the DatasetGAN baseline with the only difference being that GANs are replaced with DDPMs. We include this baseline to compare the GAN-based and DDPM-based representations in the same scenario.
|
| 124 |
+
|
| 125 |
+
Note that our segmentation method described in Section 3.2 is more straightforward compared to DatasetGAN and DatasetDDPM since it does not require auxiliary steps of the synthetic dataset generation and training the segmentation model on it.
|
| 126 |
+
|
| 127 |
+
Then, we consider a set of baselines that allow extracting intermediate activations from the real images directly and use them as pixel-level representations similarly to our method. In contrast to DatasetGAN and DatasetDDPM, these methods can potentially be beneficial due to the absence of the domain gap between real and synthetic images.
|
| 128 |
+
|
| 129 |
+
• MAE (He et al., 2021) — one of the state-of-the-art self-supervised methods, which learns a denoising autoencoder to reconstruct missing patches. We use ViT-Large (Dosovitskiy et al., 2021) as a backbone model and reduce the patch size to $8 \times 8$ to increase the spatial dimensions of the feature maps. We pretrain all models on the same datasets as DDPM using the official code2. The feature extraction for this method is described in Appendix F. • SwAV (Caron et al., 2020) — one more recent self-supervised approach. We consider a twice wider ResNet-50 model for evaluation. All models are pretrained on the same datasets as DDPM also using the official source code3. The input image resolution is 256. GAN Inversion employs the state-of-the-art method (Tov et al., 2021) to obtain the latent codes for real images. We map the annotated real images to the GAN latent space, which allows computing the intermediate generator activations and using them as pixel-level representations.
|
| 130 |
+
|
| 131 |
+
Table 2: The comparison of the segmentation methods in terms of mean IoU. $( ^ { * } )$ On CelebA-19 and ADE Bedroom-30, we evaluate models trained on FFHQ-256 and LSUN Bedroom, respectively.
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Method</td><td>Bedroom-28</td><td>FFHQ-34</td><td>Cat-15</td><td>Horse-21</td><td>CelebA-19*</td><td>ADE Bedroom-30*</td></tr><tr><td>ALAE</td><td>20.0 ± 1.0</td><td>48.1 ± 1.3</td><td></td><td></td><td>49.7 ± 0.7</td><td>15.0 ± 0.5</td></tr><tr><td>VDVAE</td><td></td><td>57.3 ± 1.1</td><td></td><td></td><td>54.1 ± 1.0</td><td></td></tr><tr><td>GAN Inversion</td><td>13.9 ± 0.6</td><td>51.7± 0.8</td><td>21.4 ± 1.7</td><td>17.7 ± 0.4</td><td>51.5± 2.3</td><td>11.1 ± 0.2</td></tr><tr><td>GAN Encoder</td><td>22.4 ± 1.6</td><td>53.9 ± 1.3</td><td>32.0± 1.8</td><td>26.7 ± 0.7</td><td>53.9±0.8</td><td>15.7 ± 0.3</td></tr><tr><td>SwAV</td><td>42.4 ± 1.7</td><td>56.9 ± 1.3</td><td>45.1 ± 2.1</td><td>54.0± 0.9</td><td>52.4± 1.3</td><td>30.6 ± 1.6</td></tr><tr><td>MAE</td><td>45.0 ± 2.0</td><td>58.8 ± 1.1</td><td>52.4 ± 2.3</td><td>63.4± 1.4</td><td>57.8±0.4</td><td>31.7 ± 1.8</td></tr><tr><td>DatasetGAN</td><td>31.3 ± 2.3</td><td>57.0 ± 1.1</td><td>36.5± 2.3</td><td>45.4 ± 1.4</td><td></td><td></td></tr><tr><td>DatasetDDPM (Ours)</td><td>47.9 ± 2.9</td><td>56.0± 0.9</td><td>47.6 ± 1.5</td><td>60.8 ± 1.0</td><td></td><td></td></tr><tr><td>DDPM (Ours)</td><td>49.4 ± 1.9</td><td>59.1 ± 1.4</td><td>53.7± 3.3</td><td>65.0 ± 0.8</td><td>59.9 ± 1.0</td><td>34.6 ± 1.7</td></tr></table>
|
| 134 |
+
|
| 135 |
+
• GAN Encoder — while GAN Inversion struggles to reconstruct images from LSUN domains, we also consider the activations of the pretrained GAN encoder used for GAN Inversion.
|
| 136 |
+
|
| 137 |
+
• VDVAE (Child, 2021) — state-of-the-art autoencoder model. The intermediate activations are extracted from both encoder and decoder and concatenated. While there are no pretrained models on the LSUN datasets, we evaluate this model only on the publicly available checkpoint4 on FFHQ-256. Note that VAEs are still significantly inferior to GANs and DDPMs on LSUN.
|
| 138 |
+
|
| 139 |
+
• ALAE (Pidhorskyi et al., 2020) adopts StyleGANv1 generator and adds an encoder network to the adversarial training. We extract features from the encoder model. In our evaluation, we use publicly available models on LSUN-Bedroom and FFHQ- $1 0 2 4 ^ { 5 }$ .
|
| 140 |
+
|
| 141 |
+
Generative pretrained models. In our experiments, we use the state-of-the-art StyleGAN2 (Karras et al., 2020) models for the GAN-based baselines and the state-of-the-art pretrained ADMs (Dhariwal & Nichol, 2021) for our DDPM-based method. Since there is not a pretrained model for FFHQ-256, we train it ourselves using the official implementation6. For evaluation on the ADEBedroom-30 dataset, we use the models (including the baselines) pretrained on LSUN-Bedroom. For Celeba-19, we evaluate the models trained on FFHQ-256.
|
| 142 |
+
|
| 143 |
+
Main results. The comparison of the methods in terms of the mean IoU measure is presented in Table 2. The results are averaged over 5 independent runs for different data splits. We also report per class IoUs in Appendix D. Additionally, we provide several qualitative examples of segmentation with our method in Figure 5. Below we highlight several key observations:
|
| 144 |
+
|
| 145 |
+
• The proposed method based on the DDPM representations significantly outperforms the alternatives on most datasets.
|
| 146 |
+
• The MAE baseline is the strongest competitor to the DDPM-based segmentation and demonstrates comparable results on the FFHQ-34 and Cat-15 datasets.
|
| 147 |
+
• The SwAV baseline underperforms compared to the DDPM-based segmentation. We attribute this behavior to the fact that this baseline is trained in the discriminative fashion and can suppress the details, which are needed for fine-grained semantic segmentation. This result is consistent with the recent findings in (Cole et al., 2021), which shows that the state-of-the-art contrastive methods produce representations, which are suboptimal for fine-grained problems.
|
| 148 |
+
• DatasetDDPM outperforms its counterpart DatasetGAN against most benchmarks. Note that both these methods use the DeepLabV3 network. We attribute this superiority to the higher quality of DDPM synthetics, therefore, a smaller domain gap between synthetic and real data.
|
| 149 |
+
• On most datasets, DDPM outperforms the DatasetDDPM competitor. We provide an additional experiment to investigate this in the discussion section below.
|
| 150 |
+
|
| 151 |
+
Overall, the proposed DDPM-based segmentation outperforms the baselines that exploit alternative generative models and also the baselines trained in the self-supervised fashion. This result highlights the potential of using the state-of-the-art DDPMs as strong unsupervised representation learners.
|
| 152 |
+
|
| 153 |
+

|
| 154 |
+
Figure 5: The examples of segmentation masks predicted by our method on the test images along with the groundtruth annotated masks.
|
| 155 |
+
|
| 156 |
+
Table 3: Performance of DDPM-based segmentation when trained on real and synthetic images. When trained on DDPM-produced data, DDPM demonstrates comparable performance to DatasetDDPM. When trained on GAN-produced data, DDPM still significantly outperforms DatasetGAN, but the gap between them reduces.
|
| 157 |
+
|
| 158 |
+
<table><tr><td></td><td colspan="3">Bedroom-28</td><td colspan="3">Cat-15</td><td colspan="3">Horse-21</td></tr><tr><td>Train data</td><td>Real</td><td>DDPM</td><td>GAN</td><td>Real</td><td>DDPM</td><td>GAN</td><td>Real</td><td>DDPM</td><td>GAN</td></tr><tr><td>DatasetGAN</td><td>丨</td><td>一</td><td>31.3 ± 2.3</td><td>丨</td><td>一</td><td>36.5± 2.3</td><td>1</td><td>一</td><td>45.4 ± 1.4</td></tr><tr><td>DatasetDDPM</td><td>一</td><td>47.9 ± 2.9</td><td>丨</td><td>一</td><td>47.6 ± 1.5</td><td>1</td><td>一</td><td>60.8 ±1.0</td><td>1</td></tr><tr><td>DDPM</td><td>49.4 ± 1.9</td><td>48.7±2.6</td><td>43.3±2.9</td><td>53.7± 3.3</td><td>47.9 ± 2.7</td><td>41.1 ± 2.2</td><td>65.0±0.8</td><td>62.4 ± 1.0</td><td>60.0 ±1.0</td></tr></table>
|
| 159 |
+
|
| 160 |
+
# 4.1 DISCUSSION
|
| 161 |
+
|
| 162 |
+
The effect of training on real data. The proposed DDPM method is trained on annotated real images, while DatasetDDPM and DatasetGAN are trained on synthetic ones, which are typically less natural, diverse, and can lack objects of particular classes. Moreover, synthetic images are harder for human annotation since they might have some distorted objects that are difficult to assign to a particular class. In the following experiment, we quantify the performance drop caused by training on real or synthetic data. Specifically, Table 3 reports the performance of the DDPM approach trained on real, DDPM-produced and GAN-produced annotated images. As can be seen, training on real images is very beneficial on the domains where the fidelity of generative models is still relatively low, e.g., LSUN-Cat, which indicates that annotated real images are a more reliable source of supervision. Moreover, if the DDPM method is trained on synthetic images, its performance becomes on par with DatasetDDPM. On the other hand, when trained on GAN-produced samples, DDPM significantly outperforms DatasetGAN. We attribute this to the fact that DDPMs provide more semantically-valuable pixel-wise representations compared to GANs.
|
| 163 |
+
|
| 164 |
+
Sample-efficiency. In this experiment, we evaluate the performance of our method when it utilizes less annotated data. We provide mIoU for four datasets in Table 4. Importantly, DDPM is still able to outperform most baselines in Table 2, using significantly less supervision.
|
| 165 |
+
|
| 166 |
+
The effect of stochastic feature extraction. Here, we investigate whether our method can benefit from the stochastic feature extraction described in Section 3.2. We consider the deterministic case, when the noise $\epsilon { \sim } N ( 0 , I )$ is sampled once and used in (2) to obtain $x _ { t }$ for all timesteps $t$ during both training and evaluation. Then, we compare it to the following stochastic options:
|
| 167 |
+
|
| 168 |
+
First, different $\epsilon _ { t }$ are sampled for different timesteps $t$ and shared during the training and evaluation. Second, one samples different noise for all timesteps at each training iteration; during the evaluation the method also uses unseen noise samples.
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 6: mIoU degradation for different image corruption levels on the Bedroom-28 and Horse-21 datasets. DDPM demonstrates higher robustness and preserves its advantage for all distortion levels.
|
| 172 |
+
|
| 173 |
+
Table 4: Evaluation of the proposed method with a different number of labeled training data. Even using less annotated data, DDPM still outperforms most baselines in Table 2.
|
| 174 |
+
|
| 175 |
+
<table><tr><td></td><td colspan="3">Bedroom-28</td><td colspan="3">Cat-15</td><td colspan="3">Horse-21</td></tr><tr><td>Method</td><td>40</td><td>20</td><td>10</td><td>30</td><td>20</td><td>10</td><td>30</td><td>20</td><td>10</td></tr><tr><td>DDPM</td><td></td><td></td><td></td><td>49.4±1.9 46.2 ±3.6 38.2±2.9 53.7 ±3.3 49.2 ±4.2 42.0±4.8 65.0±0.8</td><td></td><td></td><td></td><td>63.8± 0.7</td><td>56.9± 2.4</td></tr></table>
|
| 176 |
+
|
| 177 |
+
<table><tr><td>ShareTrain/Test</td><td>Share for t</td><td>Bedroom-28</td><td>FFHQ-34</td></tr><tr><td>+</td><td>+</td><td>49.3 ± 1.9</td><td>59.1 ± 1.4</td></tr><tr><td>+</td><td>=</td><td>49.1 ± 2.2</td><td>59.3 ± 1.5</td></tr><tr><td>-</td><td>-</td><td>48.9 ± 1.6</td><td>59.3 ± 1.4</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 5: Performance of the DDPM-based method for different feature extraction variations. All considered stochastic options provide a similar mIoU to the determinstic one.
|
| 180 |
+
|
| 181 |
+
The results are provided in Table 5. As one can see, the difference in the performance is marginal. We attribute this behavior to the following reasons:
|
| 182 |
+
|
| 183 |
+
• Our method uses later $t$ of the reverse diffusion process where the noise magnitude is low. • Since we exploit the deep layers of the UNet model, the noise might not affect the activations from these layers significantly.
|
| 184 |
+
|
| 185 |
+
Robustness to input corruptions. In this experiment, we investigate the robustness of DDPMbased representations. First, we learn pixel classifiers on the clean images using the DDPM, SwAV and MAE representations on the Bedroom-28 and Horse-21 datasets. Then, 18 diverse corruption types, adopted from (Hendrycks & Dietterich, 2019), are applied to test images. Each corruption has five levels of severity. In Figure 6, we provide mean IoUs computed over all corruption types for 1, 3, 5 levels of severity, denoted as “weak”, “medium” and “strong”, respectively.
|
| 186 |
+
|
| 187 |
+
One can observe that the proposed DDPM-based method demonstrates higher robustness and preserves its advantage over the SwAV and MAE models even for severe image distortions.
|
| 188 |
+
|
| 189 |
+
# 5 CONCLUSION
|
| 190 |
+
|
| 191 |
+
This paper demonstrates that DDPMs can serve as representation learners for discriminative computer vision problems. Compared to GANs, diffusion models allow for a straightforward computation of these representations for real images, and one does not need to learn an additional encoder, which maps images to the latent space. This DDPM’s advantage and superior generative quality provide state-of-the-art performance in the few-shot semantic segmentation task. The notable restraint of the DDPM-based segmentation is a requirement of high-quality diffusion models trained on the dataset at hand, which can be challenging for complex domains, like ImageNet or MSCOCO. However, given the rapid research progress on DDPM, we expect they will reach these milestones in the nearest future, thereby extending the range of applicability for the corresponding representations.
|
| 192 |
+
|
| 193 |
+
# REFERENCES
|
| 194 |
+
|
| 195 |
+
Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020.
|
| 196 |
+
|
| 197 |
+
Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017.
|
| 198 |
+
|
| 199 |
+
Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In ICML, 2020a.
|
| 200 |
+
|
| 201 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020b.
|
| 202 |
+
|
| 203 |
+
Rewon Child. Very deep $\{ { \mathrm { v a e } } \} { \mathrm { s } }$ generalize autoregressive models and can outperform them on images. In International Conference on Learning Representations, 2021.
|
| 204 |
+
|
| 205 |
+
Elijah Cole, Xuan Yang, Kimberly Wilber, Oisin Mac Aodha, and Serge Belongie. When does contrastive visual representation learning work? arXiv preprint arXiv:2105.05837, 2021.
|
| 206 |
+
|
| 207 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 208 |
+
|
| 209 |
+
Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis. 2021.
|
| 210 |
+
|
| 211 |
+
Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. NeurIPS, 2019.
|
| 212 |
+
|
| 213 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021.
|
| 214 |
+
|
| 215 |
+
Danil Galeev, Konstantin Sofiiuk, Danila Rukhovich, Mikhail Romanov, Olga Barinova, and Anton Konushin. Learning high-resolution domain-specific representations with a gan generator. In S+SSPR, 2020.
|
| 216 |
+
|
| 217 |
+
Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollar, and Ross Girshick. Masked ´ autoencoders are scalable vision learners. arXiv:2111.06377, 2021.
|
| 218 |
+
|
| 219 |
+
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019.
|
| 220 |
+
|
| 221 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. 2020.
|
| 222 |
+
|
| 223 |
+
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4401–4410, 2019.
|
| 224 |
+
|
| 225 |
+
Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8107–8116, 2020.
|
| 226 |
+
|
| 227 |
+
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.
|
| 228 |
+
|
| 229 |
+
Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. Maskgan: Towards diverse and interactive facial image manipulation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 230 |
+
|
| 231 |
+
Daiqing Li, Junlin Yang, Karsten Kreis, Antonio Torralba, and Sanja Fidler. Semantic segmentation with generative models: Semi-supervised learning and strong out-of-domain generalization. In CVPR, 2021a.
|
| 232 |
+
|
| 233 |
+
Haoying Li, Yifan Yang, Meng Chang, Huajun Feng, Zhihai Xu, Qi Li, and Yueting Chen. Srdiff: Single image super-resolution with diffusion probabilistic models. 2021b.
|
| 234 |
+
|
| 235 |
+
Luke Melas-Kyriazi, Christian Rupprecht, Iro Laina, and Andrea Vedaldi. Finding an unsupervised image segmenter in each of your deep generative models. arXiv preprint arXiv:2105.08127, 2021.
|
| 236 |
+
|
| 237 |
+
Chenlin Meng, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. Sdedit: Image synthesis and editing with stochastic differential equations. 2021.
|
| 238 |
+
|
| 239 |
+
Prafulla Nichol, Alex & Dhariwal. Improved denoising diffusion probabilistic models. ICML, 2021.
|
| 240 |
+
|
| 241 |
+
Stanislav Pidhorskyi, Donald A Adjeroh, and Gianfranco Doretto. Adversarial latent autoencoders. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 242 |
+
|
| 243 |
+
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computerassisted intervention, pp. 234–241. Springer, 2015.
|
| 244 |
+
|
| 245 |
+
Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. 2021.
|
| 246 |
+
|
| 247 |
+
Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015.
|
| 248 |
+
|
| 249 |
+
Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In NeurIPS, 2019.
|
| 250 |
+
|
| 251 |
+
Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. NeurIPS, 2020.
|
| 252 |
+
|
| 253 |
+
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. 2021.
|
| 254 |
+
|
| 255 |
+
Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. arXiv preprint arXiv:2102.02766, 2021.
|
| 256 |
+
|
| 257 |
+
Nontawat Tritrong, Pitchaporn Rewatbowornwong, and Supasorn Suwajanakorn. Repurposing gans for one-shot semantic part segmentation. In CVPR, 2021.
|
| 258 |
+
|
| 259 |
+
Andrey Voynov and Artem Babenko. Unsupervised discovery of interpretable directions in the gan latent space. In ICML, 2020.
|
| 260 |
+
|
| 261 |
+
Andrey Voynov, Stanislav Morozov, and Artem Babenko. Object segmentation without labels with large-scale generative models. ICML, 2021.
|
| 262 |
+
|
| 263 |
+
Changxi Xu, Jianjin & Zheng. Linear semantics in generative adversarial networks. In CVPR, 2021.
|
| 264 |
+
|
| 265 |
+
Yinghao Xu, Yujun Shen, Jiapeng Zhu, Ceyuan Yang, and Bolei Zhou. Generative hierarchical features from synthesizing images. In CVPR, 2021.
|
| 266 |
+
|
| 267 |
+
Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
|
| 268 |
+
|
| 269 |
+
Yuxuan Zhang, Huan Ling, Jun Gao, Kangxue Yin, Jean-Francois Lafleche, Adela Barriuso, Antonio Torralba, and Sanja Fidler. Datasetgan: Efficient labeled data factory with minimal human effort. In CVPR, 2021.
|
| 270 |
+
|
| 271 |
+
Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, 127:302–321, 2018.
|
| 272 |
+
|
| 273 |
+
# APPENDIX
|
| 274 |
+
|
| 275 |
+
# A EVOLUTION OF PREDICTIVE PERFORMANCE
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
Figure 7: The evolution of predictive performance of DDPM-based pixel-wise representations for different UNet blocks and diffusion steps on LSUN-Cat and LSUN-Bedroom. The blocks are numbered from the deep to shallow ones.
|
| 279 |
+
|
| 280 |
+

|
| 281 |
+
Figure 8: The evolution of predictive performance of DDPM-based pixel-wise representations on the FFHQ-256, LSUN-Cat and LSUN-Bedroom datasets for classes with the smallest (Left) and largest (Right) average areas.
|
| 282 |
+
|
| 283 |
+
B DATASETDDPM & DATASETGAN SATURATION
|
| 284 |
+
Table 6: Performance of DatasetDDPM and DatasetGAN for $1 0 K { - } 5 0 K$ synthetic images in the training dataset. Mean IoU of both methods saturates at $3 0 K { - } 5 0 K$ of synthetic data.
|
| 285 |
+
|
| 286 |
+
<table><tr><td colspan="7">DatasetDDPM</td><td colspan="4">DatasetGAN</td></tr><tr><td>Dataset</td><td>10k</td><td>20K</td><td>30K</td><td>40K</td><td>50K</td><td>10K</td><td>20K</td><td>30K</td><td>40K</td><td>50K</td></tr><tr><td>Bedroom-2845.1±2.346.2±2.346.1±2.847.8±2.347.9±2.930.6±2.330.4±3.1 30.9±2.430.9±2.431.3±2.7</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>FFHQ-34</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>55.9±0.8 55.8±0.7 55.9±0.7 56.0±0.8 55.9±0.7 56.4±1.0 56.9±1.0 57.0±1.1 57.0±1.2 57.0±1.2</td></tr><tr><td>Cat-15</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>43.6±3.0 46.4±1.7 46.2±1.9 47.4±1.7 47.6±1.5 34.7±2.8 34.8±2.9 36.3±2.335.8±2.5 36.5 ±2.3</td></tr><tr><td>Horse-21</td><td></td><td></td><td>57.0±1.2 59.5±0.5 59.0±2.0 60.4±1.1 60.8±0.9 41.6±2.0 43.1± 1.8 45.4±1.4 44.5±1.2 44.6 ± 1.4</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 287 |
+
|
| 288 |
+
# C TRAINING SETUP
|
| 289 |
+
|
| 290 |
+
The ensemble of MLPs consists of 10 independent models. Each MLP is trained for ${ \sim } 4$ epochs using the Adam optimizer (Kingma & Ba, 2015) with 0.001 learning rate. The batch size is 64. This setting is used for all methods and datasets.
|
| 291 |
+
|
| 292 |
+
MLP architecture. We adopt the MLP architecture from (Zhang et al., 2021). Specifically, we use MLPs with two hidden layers with ReLU nonlinearity and batch normalization. The sizes of hidden layers are 128 and 32 for datasets with a number of classes less than 30, and 256 and 128 for others.
|
| 293 |
+
|
| 294 |
+
Also, we evaluate the performance of the proposed method for twice wider / deeper MLPs on the Bedroom-28 and FFHQ-34 datasets and do not observe any noticeable difference, see Table 7.
|
| 295 |
+
|
| 296 |
+
<table><tr><td>Method</td><td>Bedroom-28</td><td>FFHQ-34</td></tr><tr><td>Original MLP</td><td>49.4</td><td>59.1</td></tr><tr><td>Wider MLP</td><td>49.5</td><td>59.1</td></tr><tr><td>Deeper MLP</td><td>49.3</td><td>58.9</td></tr></table>
|
| 297 |
+
|
| 298 |
+
Table 7: Performance of the proposed method for twice wider / deeper MLP architecture within the ensemble. More expressive MLPs do not improve the performance.
|
| 299 |
+
|
| 300 |
+
# D PER CLASS IOUS
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
Figure 9: Per class IoUs for DatasetGAN, DatasetDDPM and DDPM.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 10: Number of instances of each semantic class in the annotated real and synthetic train sets.
|
| 307 |
+
|
| 308 |
+
# E DATASET DETAILS
|
| 309 |
+
|
| 310 |
+
# E.1 CLASS NAMES
|
| 311 |
+
|
| 312 |
+
Bedroom-28: [bed, footboard, headboard, side rail, carpet, ceiling, chandelier, curtain, cushion, floor, table, table top, picture, pillow, lamp column, lamp shade, wall, window, curtain rod, window frame, chair, picture frame, plinth, door, pouf, wardrobe, plant, table staff]
|
| 313 |
+
|
| 314 |
+
FFHQ-34: [background, head, cheek, chin, ear, helix, lobule, bottom lid, eyelashes, iris, pupil, sclera, tear duct, top lid, eyebrow, forehead, frown, hair, sideburns, jaw, moustache, inferior lip, oral commissure, superior lip, teeth, neck, nose, ala of nose, bridge, nose tip, nostril, philtrum, temple, wrinkles]
|
| 315 |
+
|
| 316 |
+
Cat-15: [background, back, belly, chest, leg, paw, head, ear, eye, mouth, tongue, tail, nose, whiskers, neck]
|
| 317 |
+
|
| 318 |
+
Horse-21: [background, person, back, barrel, bridle, chest, ear, eye, forelock, head, hoof, leg, mane, muzzle, neck, nostril, tail, thigh, saddle, shoulder, leg protection]
|
| 319 |
+
|
| 320 |
+
CelebA-19: [background, cloth, ear r, eye g, hair, hat, l brow, l ear, l eye, l lip, mouth, neck, neck l, nose, r brow, r ear, r eye, skin, u lip]
|
| 321 |
+
|
| 322 |
+
ADE-Bedroom-30: [wall, bed, floor, table, lamp, ceiling, painting, windowpane, pillow, curtain, cushion, door, chair, cabinet, chest, mirror, rug, armchair, book, sconce, plant, wardrobe, clock, light, flower, vase, fan, box, shelf, television]
|
| 323 |
+
|
| 324 |
+
# E.2 CLASS STATISTICS
|
| 325 |
+
|
| 326 |
+
In Figure 10, we report the statistics of classes computed over annotated real images as well as annotated synthetic images produced by GAN and DDPM.
|
| 327 |
+
|
| 328 |
+
# F EXTRACTING REPRESENTATIONS FROM MAE
|
| 329 |
+
|
| 330 |
+
To obtain pixelwise representations, we apply the model to a fully observed image (mask ratio $\scriptstyle 1 = 0$ ) of resolution 256 and extract feature maps from the deepest 12 ViT-L blocks . The feature maps from each block have $1 0 2 4 \times 3 2 \times 3 2$ dimensions. Similarly to other methods, we upsample the extracted feature maps to $2 5 6 \times 2 5 6$ and concatenate them. The overall dimension of the pixel representation is 12288.
|
| 331 |
+
|
| 332 |
+
In addition, we investigated other feature extraction strategies and got the following observations:
|
| 333 |
+
|
| 334 |
+
1. Including activations from the decoder did not provide any noticeable gains;
|
| 335 |
+
2. Extracting activations right after self-attention layers caused slightly inferior performance;
|
| 336 |
+
3. Extracting activations from every second encoder block also provided a bit worse results.
|
parse/dev/SlxSY2UZQT/SlxSY2UZQT_content_list.json
ADDED
|
@@ -0,0 +1,1771 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LABEL-EFFICIENT SEMANTIC SEGMENTATION WITH DIFFUSION MODELS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Dmitry Baranchuk, Ivan Rubachev, Andrey Voynov, Valentin Khrulkov, Artem Babenko ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
802,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Yandex Research ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
186,
|
| 30 |
+
191,
|
| 31 |
+
297,
|
| 32 |
+
205
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
242,
|
| 43 |
+
544,
|
| 44 |
+
257
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Denoising diffusion probabilistic models have recently received much research attention since they outperform alternative approaches, such as GANs, and currently provide state-of-the-art generative performance. The superior performance of diffusion models has made them an appealing tool in several applications, including inpainting, super-resolution, and semantic editing. In this paper, we demonstrate that diffusion models can also serve as an instrument for semantic segmentation, especially in the setup when labeled data is scarce. In particular, for several pretrained diffusion models, we investigate the intermediate activations from the networks that perform the Markov step of the reverse diffusion process. We show that these activations effectively capture the semantic information from an input image and appear to be excellent pixel-level representations for the segmentation problem. Based on these observations, we describe a simple segmentation method, which can work even if only a few training images are provided. Our approach significantly outperforms the existing alternatives on several datasets for the same amount of human supervision. The source code of the project is publicly available. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
276,
|
| 54 |
+
764,
|
| 55 |
+
484
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
517,
|
| 66 |
+
336,
|
| 67 |
+
534
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Denoising diffusion probabilistic models (DDPM) (Sohl-Dickstein et al., 2015; Ho et al., 2020) have recently outperformed alternative approaches to model the distribution of natural images both in the realism of individual samples and their diversity (Dhariwal & Nichol, 2021). These advantages of DDPM are successfully exploited in applications, such as colorization (Song et al., 2021), inpainting (Song et al., 2021), super-resolution (Saharia et al., 2021; Li et al., 2021b), and semantic editing (Meng et al., 2021), where DDPM often achieve more impressive results compared to GANs. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
551,
|
| 77 |
+
825,
|
| 78 |
+
635
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "So far, however, DDPM were not exploited as a source of effective image representations for discriminative computer vision problems. While the prior literature has demonstrated that various generative paradigms, such as GANs (Donahue & Simonyan, 2019) or autoregressive models (Chen et al., 2020a), can be used to extract the representations for common vision tasks, it is not clear if DDPM can also serve as representation learners. In this paper, we provide an affirmative answer to this question in the context of semantic segmentation. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
642,
|
| 88 |
+
823,
|
| 89 |
+
726
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In particular, we investigate the intermediate activations from the U-Net network that approximates the Markov step of the reverse diffusion process in DDPM. Intuitively, this network learns to denoise its input, and it is not clear why the intermediate activations should capture semantic information needed for high-level vision problems. Nevertheless, we show that on certain diffusion steps, these activations do capture such information, and therefore, can potentially be used as image representations for downstream tasks. Given these observations, we propose a simple semantic segmentation method, which exploits these representations and works successfully even if only a few labeled images are provided. On several datasets, we show that our DDPM-based segmentation method outperforms the existing baselines for the same amount of supervision. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
733,
|
| 99 |
+
825,
|
| 100 |
+
858
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To sum up, the contributions of our paper are: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
866,
|
| 110 |
+
472,
|
| 111 |
+
878
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "1. We investigate the representations learned by the state-of-the-art DDPM and show that they capture high-level semantic information valuable for downstream vision tasks. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
183,
|
| 120 |
+
895,
|
| 121 |
+
823,
|
| 122 |
+
922
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2. We design a simple semantic segmentation approach that exploits these representations and outperforms the alternatives in the few-shot operating point. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
181,
|
| 131 |
+
103,
|
| 132 |
+
823,
|
| 133 |
+
132
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "3. We compare the DDPM-based representations with their GAN-based counterparts on the same datasets and demonstrate the advantages of the former in the context of semantic segmentation. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
184,
|
| 142 |
+
137,
|
| 143 |
+
823,
|
| 144 |
+
166
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 RELATED WORK ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
188,
|
| 155 |
+
341,
|
| 156 |
+
204
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "In this section, we briefly describe the existing lines of research relevant to our work. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
176,
|
| 165 |
+
219,
|
| 166 |
+
727,
|
| 167 |
+
234
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020) are a class of generative models that approximate the distribution of real images by the endpoint of the Markov chain which originates from a simple parametric distribution, typically a standard Gaussian. Each Markov step is modeled by a deep neural network that effectively learns to invert the diffusion process with a known Gaussian kernel. Ho et al. highlighted the equivalence of diffusion models and score matching (Song & Ermon, 2019; 2020), showing them to be two different perspectives on the gradual conversion of a simple known distribution into a target distribution via the iterative denoising process. Very recent works (Nichol, 2021; Dhariwal & Nichol, 2021) have developed more powerful model architectures as well as different advanced objectives, which led to the “victory” of DDPM over GANs in terms of generative quality and diversity. DDPM have been widely used in several applications, including image colorization (Song et al., 2021), super-resolution (Saharia et al., 2021; Li et al., 2021b), inpainting (Song et al., 2021), and semantic editing (Meng et al., 2021). In our work, we demonstrate that one can also successfully use them for semantic segmentation. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
173,
|
| 176 |
+
241,
|
| 177 |
+
825,
|
| 178 |
+
421
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Image segmentation with generative models is an active research direction at the moment, however, existing methods are primarily based on GANs. The first line of works (Voynov & Babenko, 2020; Voynov et al., 2021; Melas-Kyriazi et al., 2021) is based on the evidence that the latent spaces of the state-of-the-art GANs have directions corresponding to effects that influence the foreground/background pixels differently, which allows producing synthetic data to train segmentation models. However, these approaches are currently able to perform binary segmentation only, and it is not clear if they can be used in the general setup of semantic segmentation. The second line of works (Zhang et al., 2021; Tritrong et al., 2021; Xu, 2021; Galeev et al., 2020) is more relevant to our study since they are based on the intermediate representations obtained in GANs. In particular, the method proposed in (Zhang et al., 2021) trains a pixel class prediction model on these representations and confirms their label efficiency. In the experimental section, we compare the method from (Zhang et al., 2021) to our DDPM-based one and demonstrate several distinctive advantages of our solution. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
173,
|
| 187 |
+
429,
|
| 188 |
+
825,
|
| 189 |
+
594
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Representations from generative models for discriminative tasks. The usage of generative models, as representation learners, has been widely investigated for global prediction (Donahue & Simonyan, 2019; Chen et al., 2020a), and dense prediction problems (Zhang et al., 2021; Tritrong et al., 2021; Xu, 2021; Xu et al., 2021). While previous works highlighted the practical advantages of these representations, such as out-of-distribution robustness (Li et al., 2021a), generative models as representation learners receive less attention compared to alternative unsupervised methods, e.g., based on contrastive learning (Chen et al., 2020b). The main reason is probably the difficulty of training a high-quality generative model on a complex, diverse dataset. However, given the recent success of DDPM on Imagenet (Deng et al., 2009), one can expect that this direction will attract more attention in the future. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
173,
|
| 198 |
+
603,
|
| 199 |
+
825,
|
| 200 |
+
742
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "3 REPRESENTATIONS FROM DIFFUSION MODELS ",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
763,
|
| 211 |
+
586,
|
| 212 |
+
780
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "In the following section, we investigate the image representations learned by diffusion models. First, we provide a brief overview of the DDPM framework. Then, we describe how to extract features with DDPM and investigate what kind of semantic information these features might capture. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
795,
|
| 222 |
+
825,
|
| 223 |
+
838
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "Background. Diffusion models transform noise $x _ { T } { \\sim } N ( 0 , I )$ to the sample $x _ { 0 }$ by gradually denoising $x _ { T }$ to less noisy samples $x _ { t }$ . Formally, we are given a forward diffusion process: ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
173,
|
| 232 |
+
844,
|
| 233 |
+
823,
|
| 234 |
+
873
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 1
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "equation",
|
| 240 |
+
"img_path": "images/e4c99ee41fba176a1728d5607d7afdf61a72d53d78b5e8ac5b619eca1222854d.jpg",
|
| 241 |
+
"text": "$$\nq ( x _ { t } | x _ { t - 1 } ) : = N ( x _ { t } ; \\sqrt { 1 - \\beta _ { t } } x _ { t - 1 } , \\beta _ { t } I ) ,\n$$",
|
| 242 |
+
"text_format": "latex",
|
| 243 |
+
"bbox": [
|
| 244 |
+
359,
|
| 245 |
+
881,
|
| 246 |
+
635,
|
| 247 |
+
901
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 1
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "for some fixed variance schedule $\\beta _ { 1 } , \\ldots , \\beta _ { t }$ . ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
909,
|
| 257 |
+
467,
|
| 258 |
+
924
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 1
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "image",
|
| 264 |
+
"img_path": "images/87661b7fbec7eedb49746140ee31bd35cac0e26d89d2b0fe4bb0f41fcdad5e2f.jpg",
|
| 265 |
+
"image_caption": [
|
| 266 |
+
"Figure 1: Overview of the proposed method. (1) $x _ { 0 } x _ { t }$ by adding noise according to $q ( x _ { t } | x _ { 0 } )$ . (2) Extracting feature maps from a noise predictor $\\epsilon _ { \\theta } ( x _ { t } , t )$ . (3) Collecting pixel-level representations by upsampling the feature maps to the image resolution and concatenating them. (4) Using the pixel-wise feature vectors to train an ensemble of MLPs to predict a class label for each pixel. "
|
| 267 |
+
],
|
| 268 |
+
"image_footnote": [],
|
| 269 |
+
"bbox": [
|
| 270 |
+
179,
|
| 271 |
+
79,
|
| 272 |
+
820,
|
| 273 |
+
279
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Importantly, a noisy sample $x _ { t }$ can be obtained directly from the data $x _ { 0 }$ ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
367,
|
| 283 |
+
651,
|
| 284 |
+
382
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/1ad7b9f5590dff949f9cc140e403f7d78a32e6b37cce5c5f59cb380ba8b0e4bb.jpg",
|
| 291 |
+
"text": "$$\n\\begin{array} { r } { q ( x _ { t } | x _ { 0 } ) : = \\mathcal { N } ( x _ { t } ; \\sqrt { \\bar { \\alpha } _ { t } } x _ { 0 } , ( 1 - \\bar { \\alpha } _ { t } ) I ) , } \\\\ { x _ { t } = \\sqrt { \\bar { \\alpha } _ { t } } x _ { 0 } + \\sqrt { 1 - \\bar { \\alpha } _ { t } } \\epsilon , \\epsilon \\sim \\mathcal { N } ( 0 , 1 ) , } \\end{array}\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
361,
|
| 295 |
+
397,
|
| 296 |
+
635,
|
| 297 |
+
438
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "where $\\begin{array} { r } { \\alpha _ { t } : = 1 - \\beta _ { t } , \\bar { \\alpha } _ { t } : = \\prod _ { s = 1 } ^ { t } \\alpha _ { s } , } \\end{array}$ ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
440,
|
| 307 |
+
415,
|
| 308 |
+
458
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Pretrained DDPM approximates a reverse process: ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
173,
|
| 317 |
+
463,
|
| 318 |
+
506,
|
| 319 |
+
477
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "equation",
|
| 325 |
+
"img_path": "images/a647d1fb064d6a9d1b160666857943482854e7ce364759485ef4feabbc483cdb.jpg",
|
| 326 |
+
"text": "$$\np _ { \\theta } ( x _ { t - 1 } | x _ { t } ) : = N ( x _ { t - 1 } ; \\mu _ { \\theta } ( x _ { t } , t ) , \\Sigma _ { \\theta } ( x _ { t } , t ) ) .\n$$",
|
| 327 |
+
"text_format": "latex",
|
| 328 |
+
"bbox": [
|
| 329 |
+
346,
|
| 330 |
+
481,
|
| 331 |
+
651,
|
| 332 |
+
500
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "In practice, rather than predicting the mean of the distribution in Equation (3), the noise predictor network $\\epsilon _ { \\theta } ( x _ { t } , t )$ predicts the noise component at the step $t$ ; the mean is then a linear combination of this noise component and $x _ { t }$ . The covariance predictor $\\Sigma _ { \\theta } ( x _ { t } , t )$ can be either a fixed set of scalar covariances or learned as well (the latter was shown to improve the model quality (Nichol, 2021)). ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
173,
|
| 341 |
+
502,
|
| 342 |
+
823,
|
| 343 |
+
559
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "The denoising model $\\epsilon _ { \\theta } ( x _ { t } , t )$ is typically parameterized by different variants of the UNet architecture (Ronneberger et al., 2015), and in our experiments we investigate the state-of-the-art one proposed in (Dhariwal & Nichol, 2021). ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
176,
|
| 352 |
+
565,
|
| 353 |
+
823,
|
| 354 |
+
607
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 2
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "Extracting representations. For a given real image $\\boldsymbol { x } _ { 0 } \\in \\mathbb { R } ^ { H \\times W \\times 3 }$ , one can compute $T$ sets of activation tensors from the noise predictor network $\\epsilon _ { \\theta } ( x _ { t } , t )$ . The overall scheme for a timestep $t$ is presented in Figure 1. First, we corrupt $x _ { 0 }$ by adding Gaussian noise according to Equation (2). The noisy $x _ { t }$ is used as an input of $\\epsilon _ { \\theta } ( x _ { t } , t )$ parameterized by the UNet model. The UNet’s intermediate activations are then upsampled to $H \\times W$ with bilinear interpolation. This allows treating them as pixel-level representations of $x _ { 0 }$ . ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
613,
|
| 364 |
+
825,
|
| 365 |
+
698
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 2
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "3.1 REPRESENTATION ANALYSIS ",
|
| 372 |
+
"text_level": 1,
|
| 373 |
+
"bbox": [
|
| 374 |
+
176,
|
| 375 |
+
714,
|
| 376 |
+
411,
|
| 377 |
+
728
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 2
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "We analyze the representations produced by the noise predictor $\\epsilon _ { \\theta } ( x _ { t } , t )$ for different $t$ . We consider the state-of-the-art DDPM checkpoints trained on the LSUN-Horse and FFHQ-256 datasets1. ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
171,
|
| 386 |
+
739,
|
| 387 |
+
823,
|
| 388 |
+
768
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 2
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "The intermediate activations from the noise predictor capture semantic information. For this experiment, we take a few images from the LSUN-Horse and FFHQ datasets and manually assign each pixel to one of the 21 and 34 semantic classes, respectively. Our goal is to understand whether the pixel-level representations produced by DDPM effectively capture the information about semantics. To this end, we train a multi-layer perceptron (MLP) to predict the pixel semantic label from its features produced by one of the 18 UNet decoder blocks on a specific diffusion step $t$ . Note that we consider only the decoder activations because they also aggregate the encoder activations through the skip connections. MLPs are trained on 20 images and evaluated on 20 hold-out ones. The predictive performance is measured in terms of mean IoU. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
776,
|
| 398 |
+
825,
|
| 399 |
+
901
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 2
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "image",
|
| 405 |
+
"img_path": "images/6c8aef6a3060d0e4d210d9c6d79e93986f30966a48122d04e3b58bd627cf1468.jpg",
|
| 406 |
+
"image_caption": [
|
| 407 |
+
"Figure 2: The evolution of predictive performance of DDPM-based pixel-wise representations for different UNet decoder blocks and diffusion steps. The blocks are numbered from the deep to shallow ones. The most informative features typically correspond to the later steps of the reverse diffusion process and middle layers of the UNet decoder. The earlier steps correspond to uninformative representations. The plots for other datasets are provided in Appendix A "
|
| 408 |
+
],
|
| 409 |
+
"image_footnote": [],
|
| 410 |
+
"bbox": [
|
| 411 |
+
173,
|
| 412 |
+
77,
|
| 413 |
+
823,
|
| 414 |
+
234
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "image",
|
| 420 |
+
"img_path": "images/77469508dbb11c3b0cb7a0616376e82b590a70e073185e3712b4d67b63ff8fc4.jpg",
|
| 421 |
+
"image_caption": [
|
| 422 |
+
"Figure 3: The evolution of predictive performance of DDPM-based pixel-wise representations on the LSUN-Horse dataset for classes with the smallest (Left) and largest (Right) average areas. The predictive performance for small-sized objects starts growing later in the reverse process. The deeper blocks are more informative for larger objects and the shallower blocks are more informative for smaller objects. A similar evaluation for other datasets is provided in Appendix A. "
|
| 423 |
+
],
|
| 424 |
+
"image_footnote": [],
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
329,
|
| 428 |
+
823,
|
| 429 |
+
452
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "The evolution of predictive performance across the different blocks and diffusion steps $t$ is presented in Figure 2. The blocks are numbered from the deep to shallow ones. Figure 2 shows that the discriminability of the features produced by the noise predictor $\\epsilon _ { \\theta } ( x _ { t } , t )$ varies for different blocks and diffusion steps. In particular, the features corresponding to the later steps of the reverse diffusion process typically capture semantic information more effectively. In contrast, the ones corresponding to the early steps are generally uninformative. Across different blocks, the features produced by the layers in the middle of the UNet decoder appear to be the most informative on all diffusion steps. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
563,
|
| 439 |
+
825,
|
| 440 |
+
660
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Also, we separately consider small-sized and large-sized semantic classes based on the average area in the annotated dataset. Then, we evaluate mean IoU for these classes independently across the different UNet blocks and diffusion steps. The results on LSUN-Horse are in Figure 3. As expected, the predictive performance for large-sized objects starts growing earlier in the reverse process. The shallower blocks are more informative for smaller objects, while the deeper blocks are more so for the larger ones. In both cases, the most discriminative features still correspond to the middle blocks. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
666,
|
| 450 |
+
825,
|
| 451 |
+
750
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "Figure 2 implies that for certain UNet blocks and diffusion steps, similar DDPM-based representations correspond to the pixels of the same semantics. Figure 4 shows the $\\mathbf { k }$ -means clusters $\\scriptstyle ( k = 5 )$ ) formed by the features extracted by the FFHQ checkpoint from the blocks $\\{ 6 , 8 , 1 0 , 1 2 \\}$ on the diffusion steps $\\{ 5 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 \\}$ , and confirms that clusters can span coherent semantic objects and object-parts. In the block $B { = } 6$ , the features correspond to coarse semantic masks. At the other extreme, the features from $B { = } 1 2$ can discriminate between fine-grained face parts but exhibit less semantic meaningness for coarse fragmentation. Across different diffusion steps, the most meaningful features correspond to the later ones. We attribute this behavior to the fact that on the earlier steps of the reverse process, the global structure of a DDPM sample has not yet emerged, therefore, it is hardly possible to predict segmentation masks at this stage. This intuition is qualitatively confirmed by the masks in Figure 4. For $t { = } 8 0 0$ , the masks poorly reflect the content of actual images, while for smaller values of $t$ , the masks and images are semantically coherent. ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
173,
|
| 460 |
+
757,
|
| 461 |
+
825,
|
| 462 |
+
924
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "image",
|
| 468 |
+
"img_path": "images/8267a2745891e62a04fe53038cf44e31e651e2b80bdf7c4a407cb6be62a8cda6.jpg",
|
| 469 |
+
"image_caption": [
|
| 470 |
+
"Figure 4: Examples of $\\mathbf { k }$ -means clusters $\\scriptstyle ( k = 5 )$ ) formed by the features extracted from the UNet decoder blocks $\\{ 6 , 8 , 1 0 , 1 2 \\}$ on the diffusion steps $\\{ 5 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 \\}$ . The clusters from the middle blocks spatially span coherent semantic objects and parts. "
|
| 471 |
+
],
|
| 472 |
+
"image_footnote": [],
|
| 473 |
+
"bbox": [
|
| 474 |
+
179,
|
| 475 |
+
75,
|
| 476 |
+
818,
|
| 477 |
+
295
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "3.2 DDPM-BASED REPRESENTATIONS FOR FEW-SHOT SEMANTIC SEGMENTATION ",
|
| 484 |
+
"text_level": 1,
|
| 485 |
+
"bbox": [
|
| 486 |
+
176,
|
| 487 |
+
364,
|
| 488 |
+
750,
|
| 489 |
+
377
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "The potential effectiveness of the intermediate DDPM activations observed above implies their usage as image representations for dense prediction tasks. Figure 1 schematically presents our overall approach for image segmentation, which exploits the discriminability of these representations. In more detail, we consider a few-shot semi-supervised setup, when a large number of unlabeled images $\\{ X _ { 1 } , \\ldots , X _ { N } \\} \\subset \\mathbb { R } ^ { H \\times W \\times 3 }$ from the particular domain are available, and only for $n$ training images $\\{ X _ { 1 } , \\ldots , X _ { n } \\} \\subset \\mathbb { R } ^ { H \\times W \\times 3 }$ the groundtruth $K$ -class semantic masks $\\{ Y _ { 1 } , . . . , Y _ { n } \\} \\subset \\mathbb { R } ^ { H \\times W \\times \\{ 1 , . . . , K \\} }$ are provided. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
174,
|
| 498 |
+
388,
|
| 499 |
+
825,
|
| 500 |
+
488
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "As a first step, we train a diffusion model on the whole $\\{ X _ { 1 } , \\ldots , X _ { N } \\}$ in an unsupervised manner. Then, this diffusion model is used to extract the pixel-level representations of the labeled images using the subset of the UNet blocks and diffusion steps $t$ . In this work, we use the representations from the middle blocks $B { = } \\{ 5 , 6 , 7 , 8 , 1 2 \\}$ of the UNet decoder and later steps $t { = } \\{ 5 0 , 1 5 0 , 2 5 0 \\}$ of the reverse diffusion process. These blocks and time steps are motivated by the insights from Section 3.1 but intentionally not tuned for each dataset. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
174,
|
| 509 |
+
494,
|
| 510 |
+
825,
|
| 511 |
+
579
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "While the feature extraction at the particular time step is stochastic, we fix the noise for all timesteps $t$ and ablate this in Section 4.1. The extracted representations from all blocks $B$ and steps $t$ are upsampled to the image size and concatenated, forming the feature vectors for all pixels of the training images. The overall dimension of the pixel-level representations is 8448. ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
585,
|
| 521 |
+
823,
|
| 522 |
+
641
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Then, following (Zhang et al., 2021), we train an ensemble of independent multi-layer perceptrons (MLPs) on these feature vectors, which aim to predict a semantic label of each pixel available for training images. We adopt the ensemble configuration and training settings from (Zhang et al., 2021) and exploit them across all other methods in our experiments, see Appendix C for details. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
648,
|
| 532 |
+
825,
|
| 533 |
+
704
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "To segment a test image, we extract its DDPM-based pixel-wise representations and use them to predict the pixel labels by the ensemble. The final prediction is obtained by majority voting. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
710,
|
| 543 |
+
823,
|
| 544 |
+
739
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "4 EXPERIMENTS ",
|
| 551 |
+
"text_level": 1,
|
| 552 |
+
"bbox": [
|
| 553 |
+
176,
|
| 554 |
+
760,
|
| 555 |
+
326,
|
| 556 |
+
775
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "This section experimentally confirms the advantage of the DDPM-based representations for the semantic segmentation problem. We start from a thorough comparison to the existing alternatives and then dissect the reasons for the DDPM success by additional analysis. ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
176,
|
| 565 |
+
790,
|
| 566 |
+
823,
|
| 567 |
+
833
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Datasets. In our evaluation, we mainly work with the “bedroom”, “cat” and “horse” categories from LSUN (Yu et al., 2015) and FFHQ-256 (Karras et al., 2019). As a training set for each dataset, we consider several images for which the fine-grained semantic masks are collected following the protocol from (Zhang et al., 2021). For each dataset, a professional assessor was hired to annotate train and test samples. We denote the collected datasets as Bedroom-28, FFHQ-34, Cat-15, Horse21, where the number corresponds to the number of semantic classes. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
174,
|
| 576 |
+
840,
|
| 577 |
+
825,
|
| 578 |
+
924
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 4
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "table",
|
| 584 |
+
"img_path": "images/d906d8c5f7b096181f42a08cddac7a21c790f85e022fce01ee34946734a14a9d.jpg",
|
| 585 |
+
"table_caption": [
|
| 586 |
+
"Table 1: Number of annotated images for each dataset used in our evaluation. "
|
| 587 |
+
],
|
| 588 |
+
"table_footnote": [],
|
| 589 |
+
"table_body": "<table><tr><td>Dataset</td><td>RealTrain</td><td>RealTest</td><td>GAN</td><td>DDPM</td><td>Total</td></tr><tr><td>Bedroom-28</td><td>40</td><td>20</td><td>40</td><td>40</td><td>140</td></tr><tr><td>FFHQ-34</td><td>20</td><td>20</td><td>20</td><td>20</td><td>80</td></tr><tr><td>Cat-15</td><td>30</td><td>20</td><td>30</td><td>30</td><td>110</td></tr><tr><td>Horse-21</td><td>30</td><td>30</td><td>30</td><td>30</td><td>120</td></tr><tr><td>CelebA-19</td><td>20</td><td>500</td><td>一</td><td>一</td><td>520</td></tr><tr><td>ADE-Bedroom-30</td><td>50</td><td>650</td><td>丨</td><td>丨</td><td>700</td></tr></table>",
|
| 590 |
+
"bbox": [
|
| 591 |
+
343,
|
| 592 |
+
64,
|
| 593 |
+
660,
|
| 594 |
+
180
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "Additionally, we consider two datasets, which, in contrast to others, have publicly available annotations and sizable evaluation sets: ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
217,
|
| 604 |
+
821,
|
| 605 |
+
244
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "• ADE-Bedroom-30 is a subset of the ADE20K dataset (Zhou et al., 2018), where we extract only images of bedroom scenes with 30 most frequent classes. We resize each image to 256 for the smaller side and then crop them to obtain the $2 5 6 \\times 2 5 6$ samples. • CelebA-19 is a subset of the CelebAMask-HQ dataset (Lee et al., 2020), which provides the annotation for 19 facial attributes. All images are resized to 256 resolution. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
187,
|
| 614 |
+
257,
|
| 615 |
+
825,
|
| 616 |
+
333
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "The number of annotated images for each dataset are in Table 1. Other details are in Appendix E. ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
178,
|
| 625 |
+
345,
|
| 626 |
+
808,
|
| 627 |
+
359
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "Methods. In the evaluation, we compare our method (denoted as DDPM) to several prior approaches which tackle the few-shot semantic segmentation setup. First, we describe the baselines that produce a large set of annotated synthetic images to train a segmentation model: ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
176,
|
| 636 |
+
367,
|
| 637 |
+
821,
|
| 638 |
+
409
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "• DatasetGAN (Zhang et al., 2021) — this method exploits the discriminability of pixel-level features produced by GANs. In more detail, assessors annotate a few GAN-produced images. Then, the latent codes of these images are used to obtain the intermediate generator activations, which are considered as pixel-level representations. Given these representations, a classifier is trained to predict a semantic label for each pixel. This classifier is then used to label new synthetic GAN images, which, for their part, serve as a training set for the DeepLabV3 segmentation model (Chen et al., 2017). For each dataset, we increase the number of synthetic images until the performance on the validation set is not saturated. According to (Zhang et al., 2021), we also remove $1 0 \\%$ of synthetic samples with the most uncertain predictions. • DatasetDDPM mirrors the DatasetGAN baseline with the only difference being that GANs are replaced with DDPMs. We include this baseline to compare the GAN-based and DDPM-based representations in the same scenario. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
191,
|
| 647 |
+
421,
|
| 648 |
+
825,
|
| 649 |
+
593
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "Note that our segmentation method described in Section 3.2 is more straightforward compared to DatasetGAN and DatasetDDPM since it does not require auxiliary steps of the synthetic dataset generation and training the segmentation model on it. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
176,
|
| 658 |
+
606,
|
| 659 |
+
825,
|
| 660 |
+
648
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Then, we consider a set of baselines that allow extracting intermediate activations from the real images directly and use them as pixel-level representations similarly to our method. In contrast to DatasetGAN and DatasetDDPM, these methods can potentially be beneficial due to the absence of the domain gap between real and synthetic images. ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
176,
|
| 669 |
+
655,
|
| 670 |
+
825,
|
| 671 |
+
712
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "• MAE (He et al., 2021) — one of the state-of-the-art self-supervised methods, which learns a denoising autoencoder to reconstruct missing patches. We use ViT-Large (Dosovitskiy et al., 2021) as a backbone model and reduce the patch size to $8 \\times 8$ to increase the spatial dimensions of the feature maps. We pretrain all models on the same datasets as DDPM using the official code2. The feature extraction for this method is described in Appendix F. • SwAV (Caron et al., 2020) — one more recent self-supervised approach. We consider a twice wider ResNet-50 model for evaluation. All models are pretrained on the same datasets as DDPM also using the official source code3. The input image resolution is 256. GAN Inversion employs the state-of-the-art method (Tov et al., 2021) to obtain the latent codes for real images. We map the annotated real images to the GAN latent space, which allows computing the intermediate generator activations and using them as pixel-level representations. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
191,
|
| 680 |
+
724,
|
| 681 |
+
825,
|
| 682 |
+
887
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "table",
|
| 688 |
+
"img_path": "images/c432ee1b6eb005f9870c22b3b36fd00df98792f43d403a76188672deb91c97bc.jpg",
|
| 689 |
+
"table_caption": [
|
| 690 |
+
"Table 2: The comparison of the segmentation methods in terms of mean IoU. $( ^ { * } )$ On CelebA-19 and ADE Bedroom-30, we evaluate models trained on FFHQ-256 and LSUN Bedroom, respectively. "
|
| 691 |
+
],
|
| 692 |
+
"table_footnote": [],
|
| 693 |
+
"table_body": "<table><tr><td>Method</td><td>Bedroom-28</td><td>FFHQ-34</td><td>Cat-15</td><td>Horse-21</td><td>CelebA-19*</td><td>ADE Bedroom-30*</td></tr><tr><td>ALAE</td><td>20.0 ± 1.0</td><td>48.1 ± 1.3</td><td></td><td></td><td>49.7 ± 0.7</td><td>15.0 ± 0.5</td></tr><tr><td>VDVAE</td><td></td><td>57.3 ± 1.1</td><td></td><td></td><td>54.1 ± 1.0</td><td></td></tr><tr><td>GAN Inversion</td><td>13.9 ± 0.6</td><td>51.7± 0.8</td><td>21.4 ± 1.7</td><td>17.7 ± 0.4</td><td>51.5± 2.3</td><td>11.1 ± 0.2</td></tr><tr><td>GAN Encoder</td><td>22.4 ± 1.6</td><td>53.9 ± 1.3</td><td>32.0± 1.8</td><td>26.7 ± 0.7</td><td>53.9±0.8</td><td>15.7 ± 0.3</td></tr><tr><td>SwAV</td><td>42.4 ± 1.7</td><td>56.9 ± 1.3</td><td>45.1 ± 2.1</td><td>54.0± 0.9</td><td>52.4± 1.3</td><td>30.6 ± 1.6</td></tr><tr><td>MAE</td><td>45.0 ± 2.0</td><td>58.8 ± 1.1</td><td>52.4 ± 2.3</td><td>63.4± 1.4</td><td>57.8±0.4</td><td>31.7 ± 1.8</td></tr><tr><td>DatasetGAN</td><td>31.3 ± 2.3</td><td>57.0 ± 1.1</td><td>36.5± 2.3</td><td>45.4 ± 1.4</td><td></td><td></td></tr><tr><td>DatasetDDPM (Ours)</td><td>47.9 ± 2.9</td><td>56.0± 0.9</td><td>47.6 ± 1.5</td><td>60.8 ± 1.0</td><td></td><td></td></tr><tr><td>DDPM (Ours)</td><td>49.4 ± 1.9</td><td>59.1 ± 1.4</td><td>53.7± 3.3</td><td>65.0 ± 0.8</td><td>59.9 ± 1.0</td><td>34.6 ± 1.7</td></tr></table>",
|
| 694 |
+
"bbox": [
|
| 695 |
+
207,
|
| 696 |
+
64,
|
| 697 |
+
797,
|
| 698 |
+
253
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 6
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "• GAN Encoder — while GAN Inversion struggles to reconstruct images from LSUN domains, we also consider the activations of the pretrained GAN encoder used for GAN Inversion. ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
189,
|
| 707 |
+
309,
|
| 708 |
+
820,
|
| 709 |
+
338
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 6
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "• VDVAE (Child, 2021) — state-of-the-art autoencoder model. The intermediate activations are extracted from both encoder and decoder and concatenated. While there are no pretrained models on the LSUN datasets, we evaluate this model only on the publicly available checkpoint4 on FFHQ-256. Note that VAEs are still significantly inferior to GANs and DDPMs on LSUN. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
192,
|
| 718 |
+
340,
|
| 719 |
+
820,
|
| 720 |
+
397
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "• ALAE (Pidhorskyi et al., 2020) adopts StyleGANv1 generator and adds an encoder network to the adversarial training. We extract features from the encoder model. In our evaluation, we use publicly available models on LSUN-Bedroom and FFHQ- $1 0 2 4 ^ { 5 }$ . ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
192,
|
| 729 |
+
400,
|
| 730 |
+
821,
|
| 731 |
+
443
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "Generative pretrained models. In our experiments, we use the state-of-the-art StyleGAN2 (Karras et al., 2020) models for the GAN-based baselines and the state-of-the-art pretrained ADMs (Dhariwal & Nichol, 2021) for our DDPM-based method. Since there is not a pretrained model for FFHQ-256, we train it ourselves using the official implementation6. For evaluation on the ADEBedroom-30 dataset, we use the models (including the baselines) pretrained on LSUN-Bedroom. For Celeba-19, we evaluate the models trained on FFHQ-256. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
173,
|
| 740 |
+
454,
|
| 741 |
+
825,
|
| 742 |
+
537
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Main results. The comparison of the methods in terms of the mean IoU measure is presented in Table 2. The results are averaged over 5 independent runs for different data splits. We also report per class IoUs in Appendix D. Additionally, we provide several qualitative examples of segmentation with our method in Figure 5. Below we highlight several key observations: ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
545,
|
| 752 |
+
825,
|
| 753 |
+
601
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "• The proposed method based on the DDPM representations significantly outperforms the alternatives on most datasets. \n• The MAE baseline is the strongest competitor to the DDPM-based segmentation and demonstrates comparable results on the FFHQ-34 and Cat-15 datasets. \n• The SwAV baseline underperforms compared to the DDPM-based segmentation. We attribute this behavior to the fact that this baseline is trained in the discriminative fashion and can suppress the details, which are needed for fine-grained semantic segmentation. This result is consistent with the recent findings in (Cole et al., 2021), which shows that the state-of-the-art contrastive methods produce representations, which are suboptimal for fine-grained problems. \n• DatasetDDPM outperforms its counterpart DatasetGAN against most benchmarks. Note that both these methods use the DeepLabV3 network. We attribute this superiority to the higher quality of DDPM synthetics, therefore, a smaller domain gap between synthetic and real data. \n• On most datasets, DDPM outperforms the DatasetDDPM competitor. We provide an additional experiment to investigate this in the discussion section below. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
192,
|
| 762 |
+
612,
|
| 763 |
+
825,
|
| 764 |
+
821
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Overall, the proposed DDPM-based segmentation outperforms the baselines that exploit alternative generative models and also the baselines trained in the self-supervised fashion. This result highlights the potential of using the state-of-the-art DDPMs as strong unsupervised representation learners. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
176,
|
| 773 |
+
833,
|
| 774 |
+
825,
|
| 775 |
+
876
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "image",
|
| 781 |
+
"img_path": "images/9efda8b75a8f1afda524a62c282f6f69bea23026668dc1a1736ed93231888387.jpg",
|
| 782 |
+
"image_caption": [
|
| 783 |
+
"Figure 5: The examples of segmentation masks predicted by our method on the test images along with the groundtruth annotated masks. "
|
| 784 |
+
],
|
| 785 |
+
"image_footnote": [],
|
| 786 |
+
"bbox": [
|
| 787 |
+
169,
|
| 788 |
+
79,
|
| 789 |
+
825,
|
| 790 |
+
306
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 7
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "table",
|
| 796 |
+
"img_path": "images/7a225f56c63c26aeb6b4e9fe718739ce31db5918cd9a59dfa483342c3abeb0f8.jpg",
|
| 797 |
+
"table_caption": [
|
| 798 |
+
"Table 3: Performance of DDPM-based segmentation when trained on real and synthetic images. When trained on DDPM-produced data, DDPM demonstrates comparable performance to DatasetDDPM. When trained on GAN-produced data, DDPM still significantly outperforms DatasetGAN, but the gap between them reduces. "
|
| 799 |
+
],
|
| 800 |
+
"table_footnote": [],
|
| 801 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Bedroom-28</td><td colspan=\"3\">Cat-15</td><td colspan=\"3\">Horse-21</td></tr><tr><td>Train data</td><td>Real</td><td>DDPM</td><td>GAN</td><td>Real</td><td>DDPM</td><td>GAN</td><td>Real</td><td>DDPM</td><td>GAN</td></tr><tr><td>DatasetGAN</td><td>丨</td><td>一</td><td>31.3 ± 2.3</td><td>丨</td><td>一</td><td>36.5± 2.3</td><td>1</td><td>一</td><td>45.4 ± 1.4</td></tr><tr><td>DatasetDDPM</td><td>一</td><td>47.9 ± 2.9</td><td>丨</td><td>一</td><td>47.6 ± 1.5</td><td>1</td><td>一</td><td>60.8 ±1.0</td><td>1</td></tr><tr><td>DDPM</td><td>49.4 ± 1.9</td><td>48.7±2.6</td><td>43.3±2.9</td><td>53.7± 3.3</td><td>47.9 ± 2.7</td><td>41.1 ± 2.2</td><td>65.0±0.8</td><td>62.4 ± 1.0</td><td>60.0 ±1.0</td></tr></table>",
|
| 802 |
+
"bbox": [
|
| 803 |
+
181,
|
| 804 |
+
358,
|
| 805 |
+
823,
|
| 806 |
+
450
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 7
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "4.1 DISCUSSION ",
|
| 813 |
+
"text_level": 1,
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
553,
|
| 817 |
+
302,
|
| 818 |
+
566
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 7
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "The effect of training on real data. The proposed DDPM method is trained on annotated real images, while DatasetDDPM and DatasetGAN are trained on synthetic ones, which are typically less natural, diverse, and can lack objects of particular classes. Moreover, synthetic images are harder for human annotation since they might have some distorted objects that are difficult to assign to a particular class. In the following experiment, we quantify the performance drop caused by training on real or synthetic data. Specifically, Table 3 reports the performance of the DDPM approach trained on real, DDPM-produced and GAN-produced annotated images. As can be seen, training on real images is very beneficial on the domains where the fidelity of generative models is still relatively low, e.g., LSUN-Cat, which indicates that annotated real images are a more reliable source of supervision. Moreover, if the DDPM method is trained on synthetic images, its performance becomes on par with DatasetDDPM. On the other hand, when trained on GAN-produced samples, DDPM significantly outperforms DatasetGAN. We attribute this to the fact that DDPMs provide more semantically-valuable pixel-wise representations compared to GANs. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
582,
|
| 828 |
+
825,
|
| 829 |
+
762
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 7
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "Sample-efficiency. In this experiment, we evaluate the performance of our method when it utilizes less annotated data. We provide mIoU for four datasets in Table 4. Importantly, DDPM is still able to outperform most baselines in Table 2, using significantly less supervision. ",
|
| 836 |
+
"bbox": [
|
| 837 |
+
174,
|
| 838 |
+
770,
|
| 839 |
+
825,
|
| 840 |
+
811
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 7
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "The effect of stochastic feature extraction. Here, we investigate whether our method can benefit from the stochastic feature extraction described in Section 3.2. We consider the deterministic case, when the noise $\\epsilon { \\sim } N ( 0 , I )$ is sampled once and used in (2) to obtain $x _ { t }$ for all timesteps $t$ during both training and evaluation. Then, we compare it to the following stochastic options: ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
174,
|
| 849 |
+
819,
|
| 850 |
+
825,
|
| 851 |
+
875
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "First, different $\\epsilon _ { t }$ are sampled for different timesteps $t$ and shared during the training and evaluation. Second, one samples different noise for all timesteps at each training iteration; during the evaluation the method also uses unseen noise samples. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
176,
|
| 860 |
+
882,
|
| 861 |
+
823,
|
| 862 |
+
924
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 7
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "image",
|
| 868 |
+
"img_path": "images/12484b8608423757a49d1e7feffe10d612930f88ef18f447c0e4aeb4f9d34758.jpg",
|
| 869 |
+
"image_caption": [
|
| 870 |
+
"Figure 6: mIoU degradation for different image corruption levels on the Bedroom-28 and Horse-21 datasets. DDPM demonstrates higher robustness and preserves its advantage for all distortion levels. "
|
| 871 |
+
],
|
| 872 |
+
"image_footnote": [],
|
| 873 |
+
"bbox": [
|
| 874 |
+
178,
|
| 875 |
+
79,
|
| 876 |
+
818,
|
| 877 |
+
212
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 8
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "table",
|
| 883 |
+
"img_path": "images/cca982869659906946976fdd733248c53f349231c32c1c2f1ac6fa5b0674f3a3.jpg",
|
| 884 |
+
"table_caption": [
|
| 885 |
+
"Table 4: Evaluation of the proposed method with a different number of labeled training data. Even using less annotated data, DDPM still outperforms most baselines in Table 2. "
|
| 886 |
+
],
|
| 887 |
+
"table_footnote": [],
|
| 888 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Bedroom-28</td><td colspan=\"3\">Cat-15</td><td colspan=\"3\">Horse-21</td></tr><tr><td>Method</td><td>40</td><td>20</td><td>10</td><td>30</td><td>20</td><td>10</td><td>30</td><td>20</td><td>10</td></tr><tr><td>DDPM</td><td></td><td></td><td></td><td>49.4±1.9 46.2 ±3.6 38.2±2.9 53.7 ±3.3 49.2 ±4.2 42.0±4.8 65.0±0.8</td><td></td><td></td><td></td><td>63.8± 0.7</td><td>56.9± 2.4</td></tr></table>",
|
| 889 |
+
"bbox": [
|
| 890 |
+
197,
|
| 891 |
+
265,
|
| 892 |
+
810,
|
| 893 |
+
327
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "table",
|
| 899 |
+
"img_path": "images/38d1594b95dc2e48f5e2eecb8326badd4dc4008b0f98a7212c937c77bd8ca190.jpg",
|
| 900 |
+
"table_caption": [],
|
| 901 |
+
"table_footnote": [],
|
| 902 |
+
"table_body": "<table><tr><td>ShareTrain/Test</td><td>Share for t</td><td>Bedroom-28</td><td>FFHQ-34</td></tr><tr><td>+</td><td>+</td><td>49.3 ± 1.9</td><td>59.1 ± 1.4</td></tr><tr><td>+</td><td>=</td><td>49.1 ± 2.2</td><td>59.3 ± 1.5</td></tr><tr><td>-</td><td>-</td><td>48.9 ± 1.6</td><td>59.3 ± 1.4</td></tr></table>",
|
| 903 |
+
"bbox": [
|
| 904 |
+
346,
|
| 905 |
+
378,
|
| 906 |
+
663,
|
| 907 |
+
458
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Table 5: Performance of the DDPM-based method for different feature extraction variations. All considered stochastic options provide a similar mIoU to the determinstic one. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
171,
|
| 916 |
+
468,
|
| 917 |
+
823,
|
| 918 |
+
496
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 8
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "The results are provided in Table 5. As one can see, the difference in the performance is marginal. We attribute this behavior to the following reasons: ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
523,
|
| 928 |
+
821,
|
| 929 |
+
553
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "• Our method uses later $t$ of the reverse diffusion process where the noise magnitude is low. • Since we exploit the deep layers of the UNet model, the noise might not affect the activations from these layers significantly. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
186,
|
| 938 |
+
565,
|
| 939 |
+
825,
|
| 940 |
+
613
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Robustness to input corruptions. In this experiment, we investigate the robustness of DDPMbased representations. First, we learn pixel classifiers on the clean images using the DDPM, SwAV and MAE representations on the Bedroom-28 and Horse-21 datasets. Then, 18 diverse corruption types, adopted from (Hendrycks & Dietterich, 2019), are applied to test images. Each corruption has five levels of severity. In Figure 6, we provide mean IoUs computed over all corruption types for 1, 3, 5 levels of severity, denoted as “weak”, “medium” and “strong”, respectively. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
627,
|
| 950 |
+
825,
|
| 951 |
+
712
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "One can observe that the proposed DDPM-based method demonstrates higher robustness and preserves its advantage over the SwAV and MAE models even for severe image distortions. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
173,
|
| 960 |
+
718,
|
| 961 |
+
823,
|
| 962 |
+
746
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 8
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "5 CONCLUSION ",
|
| 969 |
+
"text_level": 1,
|
| 970 |
+
"bbox": [
|
| 971 |
+
176,
|
| 972 |
+
766,
|
| 973 |
+
318,
|
| 974 |
+
782
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "This paper demonstrates that DDPMs can serve as representation learners for discriminative computer vision problems. Compared to GANs, diffusion models allow for a straightforward computation of these representations for real images, and one does not need to learn an additional encoder, which maps images to the latent space. This DDPM’s advantage and superior generative quality provide state-of-the-art performance in the few-shot semantic segmentation task. The notable restraint of the DDPM-based segmentation is a requirement of high-quality diffusion models trained on the dataset at hand, which can be challenging for complex domains, like ImageNet or MSCOCO. However, given the rapid research progress on DDPM, we expect they will reach these milestones in the nearest future, thereby extending the range of applicability for the corresponding representations. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
173,
|
| 983 |
+
797,
|
| 984 |
+
825,
|
| 985 |
+
924
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 8
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "REFERENCES ",
|
| 992 |
+
"text_level": 1,
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
102,
|
| 996 |
+
287,
|
| 997 |
+
117
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 9
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
173,
|
| 1006 |
+
126,
|
| 1007 |
+
826,
|
| 1008 |
+
167
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 9
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
171,
|
| 1017 |
+
176,
|
| 1018 |
+
823,
|
| 1019 |
+
205
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 9
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In ICML, 2020a. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
173,
|
| 1028 |
+
213,
|
| 1029 |
+
821,
|
| 1030 |
+
243
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 9
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020b. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
173,
|
| 1039 |
+
251,
|
| 1040 |
+
823,
|
| 1041 |
+
280
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 9
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Rewon Child. Very deep $\\{ { \\mathrm { v a e } } \\} { \\mathrm { s } }$ generalize autoregressive models and can outperform them on images. In International Conference on Learning Representations, 2021. ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
173,
|
| 1050 |
+
289,
|
| 1051 |
+
823,
|
| 1052 |
+
319
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 9
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Elijah Cole, Xuan Yang, Kimberly Wilber, Oisin Mac Aodha, and Serge Belongie. When does contrastive visual representation learning work? arXiv preprint arXiv:2105.05837, 2021. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
174,
|
| 1061 |
+
325,
|
| 1062 |
+
823,
|
| 1063 |
+
356
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 9
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
174,
|
| 1072 |
+
363,
|
| 1073 |
+
826,
|
| 1074 |
+
405
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 9
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis. 2021. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
176,
|
| 1083 |
+
414,
|
| 1084 |
+
767,
|
| 1085 |
+
430
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 9
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. NeurIPS, 2019. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
171,
|
| 1094 |
+
438,
|
| 1095 |
+
818,
|
| 1096 |
+
454
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
462,
|
| 1106 |
+
825,
|
| 1107 |
+
518
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Danil Galeev, Konstantin Sofiiuk, Danila Rukhovich, Mikhail Romanov, Olga Barinova, and Anton Konushin. Learning high-resolution domain-specific representations with a gan generator. In S+SSPR, 2020. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
176,
|
| 1116 |
+
526,
|
| 1117 |
+
823,
|
| 1118 |
+
569
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 9
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollar, and Ross Girshick. Masked ´ autoencoders are scalable vision learners. arXiv:2111.06377, 2021. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
171,
|
| 1127 |
+
578,
|
| 1128 |
+
823,
|
| 1129 |
+
607
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
173,
|
| 1138 |
+
616,
|
| 1139 |
+
823,
|
| 1140 |
+
645
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 9
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. 2020. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
171,
|
| 1149 |
+
652,
|
| 1150 |
+
777,
|
| 1151 |
+
669
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4401–4410, 2019. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
176,
|
| 1160 |
+
676,
|
| 1161 |
+
821,
|
| 1162 |
+
719
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8107–8116, 2020. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
174,
|
| 1171 |
+
728,
|
| 1172 |
+
823,
|
| 1173 |
+
771
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"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. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
176,
|
| 1182 |
+
779,
|
| 1183 |
+
823,
|
| 1184 |
+
821
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. Maskgan: Towards diverse and interactive facial image manipulation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
830,
|
| 1194 |
+
823,
|
| 1195 |
+
872
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Daiqing Li, Junlin Yang, Karsten Kreis, Antonio Torralba, and Sanja Fidler. Semantic segmentation with generative models: Semi-supervised learning and strong out-of-domain generalization. In CVPR, 2021a. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
174,
|
| 1204 |
+
882,
|
| 1205 |
+
825,
|
| 1206 |
+
924
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 9
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Haoying Li, Yifan Yang, Meng Chang, Huajun Feng, Zhihai Xu, Qi Li, and Yueting Chen. Srdiff: Single image super-resolution with diffusion probabilistic models. 2021b. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
171,
|
| 1215 |
+
103,
|
| 1216 |
+
823,
|
| 1217 |
+
132
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 10
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "Luke Melas-Kyriazi, Christian Rupprecht, Iro Laina, and Andrea Vedaldi. Finding an unsupervised image segmenter in each of your deep generative models. arXiv preprint arXiv:2105.08127, 2021. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
140,
|
| 1227 |
+
823,
|
| 1228 |
+
171
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 10
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Chenlin Meng, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. Sdedit: Image synthesis and editing with stochastic differential equations. 2021. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
174,
|
| 1237 |
+
178,
|
| 1238 |
+
823,
|
| 1239 |
+
208
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 10
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Prafulla Nichol, Alex & Dhariwal. Improved denoising diffusion probabilistic models. ICML, 2021. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
174,
|
| 1248 |
+
215,
|
| 1249 |
+
825,
|
| 1250 |
+
232
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 10
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "Stanislav Pidhorskyi, Donald A Adjeroh, and Gianfranco Doretto. Adversarial latent autoencoders. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
174,
|
| 1259 |
+
239,
|
| 1260 |
+
823,
|
| 1261 |
+
284
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 10
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computerassisted intervention, pp. 234–241. Springer, 2015. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
178,
|
| 1270 |
+
291,
|
| 1271 |
+
823,
|
| 1272 |
+
335
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 10
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. 2021. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
343,
|
| 1282 |
+
823,
|
| 1283 |
+
372
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 10
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
174,
|
| 1292 |
+
381,
|
| 1293 |
+
823,
|
| 1294 |
+
410
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 10
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In NeurIPS, 2019. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
174,
|
| 1303 |
+
419,
|
| 1304 |
+
821,
|
| 1305 |
+
448
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 10
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. NeurIPS, 2020. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
176,
|
| 1314 |
+
457,
|
| 1315 |
+
821,
|
| 1316 |
+
486
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 10
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. 2021. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
176,
|
| 1325 |
+
494,
|
| 1326 |
+
823,
|
| 1327 |
+
523
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 10
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. arXiv preprint arXiv:2102.02766, 2021. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
176,
|
| 1336 |
+
531,
|
| 1337 |
+
821,
|
| 1338 |
+
561
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 10
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "Nontawat Tritrong, Pitchaporn Rewatbowornwong, and Supasorn Suwajanakorn. Repurposing gans for one-shot semantic part segmentation. In CVPR, 2021. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
174,
|
| 1347 |
+
570,
|
| 1348 |
+
821,
|
| 1349 |
+
599
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 10
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "Andrey Voynov and Artem Babenko. Unsupervised discovery of interpretable directions in the gan latent space. In ICML, 2020. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
173,
|
| 1358 |
+
607,
|
| 1359 |
+
823,
|
| 1360 |
+
637
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 10
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "Andrey Voynov, Stanislav Morozov, and Artem Babenko. Object segmentation without labels with large-scale generative models. ICML, 2021. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
173,
|
| 1369 |
+
645,
|
| 1370 |
+
821,
|
| 1371 |
+
674
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 10
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "Changxi Xu, Jianjin & Zheng. Linear semantics in generative adversarial networks. In CVPR, 2021. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
171,
|
| 1380 |
+
683,
|
| 1381 |
+
821,
|
| 1382 |
+
699
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 10
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "Yinghao Xu, Yujun Shen, Jiapeng Zhu, Ceyuan Yang, and Bolei Zhou. Generative hierarchical features from synthesizing images. In CVPR, 2021. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
173,
|
| 1391 |
+
707,
|
| 1392 |
+
821,
|
| 1393 |
+
737
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 10
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
174,
|
| 1402 |
+
744,
|
| 1403 |
+
825,
|
| 1404 |
+
787
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 10
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "Yuxuan Zhang, Huan Ling, Jun Gao, Kangxue Yin, Jean-Francois Lafleche, Adela Barriuso, Antonio Torralba, and Sanja Fidler. Datasetgan: Efficient labeled data factory with minimal human effort. In CVPR, 2021. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
174,
|
| 1413 |
+
796,
|
| 1414 |
+
825,
|
| 1415 |
+
839
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 10
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, 127:302–321, 2018. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
174,
|
| 1424 |
+
848,
|
| 1425 |
+
825,
|
| 1426 |
+
891
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 10
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "APPENDIX ",
|
| 1433 |
+
"text_level": 1,
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
176,
|
| 1436 |
+
103,
|
| 1437 |
+
263,
|
| 1438 |
+
117
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 11
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "A EVOLUTION OF PREDICTIVE PERFORMANCE ",
|
| 1445 |
+
"text_level": 1,
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
174,
|
| 1448 |
+
145,
|
| 1449 |
+
575,
|
| 1450 |
+
160
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 11
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "image",
|
| 1456 |
+
"img_path": "images/9336d075211187cebcba86e23520979299dff826590458419e8a1314a5dc8b91.jpg",
|
| 1457 |
+
"image_caption": [
|
| 1458 |
+
"Figure 7: The evolution of predictive performance of DDPM-based pixel-wise representations for different UNet blocks and diffusion steps on LSUN-Cat and LSUN-Bedroom. The blocks are numbered from the deep to shallow ones. "
|
| 1459 |
+
],
|
| 1460 |
+
"image_footnote": [],
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
173,
|
| 1463 |
+
194,
|
| 1464 |
+
825,
|
| 1465 |
+
352
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 11
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "image",
|
| 1471 |
+
"img_path": "images/1b63c382cd2bf56e9b8c04caee70ec3bc0c207c8521a06e0c72a678d7c57555a.jpg",
|
| 1472 |
+
"image_caption": [
|
| 1473 |
+
"Figure 8: The evolution of predictive performance of DDPM-based pixel-wise representations on the FFHQ-256, LSUN-Cat and LSUN-Bedroom datasets for classes with the smallest (Left) and largest (Right) average areas. "
|
| 1474 |
+
],
|
| 1475 |
+
"image_footnote": [],
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
169,
|
| 1478 |
+
445,
|
| 1479 |
+
839,
|
| 1480 |
+
835
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 11
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "table",
|
| 1486 |
+
"img_path": "images/932ce959597ee947cc0a966d848bea605301dc4af340c4d3bea54d07e34329f6.jpg",
|
| 1487 |
+
"table_caption": [
|
| 1488 |
+
"B DATASETDDPM & DATASETGAN SATURATION ",
|
| 1489 |
+
"Table 6: Performance of DatasetDDPM and DatasetGAN for $1 0 K { - } 5 0 K$ synthetic images in the training dataset. Mean IoU of both methods saturates at $3 0 K { - } 5 0 K$ of synthetic data. "
|
| 1490 |
+
],
|
| 1491 |
+
"table_footnote": [],
|
| 1492 |
+
"table_body": "<table><tr><td colspan=\"7\">DatasetDDPM</td><td colspan=\"4\">DatasetGAN</td></tr><tr><td>Dataset</td><td>10k</td><td>20K</td><td>30K</td><td>40K</td><td>50K</td><td>10K</td><td>20K</td><td>30K</td><td>40K</td><td>50K</td></tr><tr><td>Bedroom-2845.1±2.346.2±2.346.1±2.847.8±2.347.9±2.930.6±2.330.4±3.1 30.9±2.430.9±2.431.3±2.7</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>FFHQ-34</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>55.9±0.8 55.8±0.7 55.9±0.7 56.0±0.8 55.9±0.7 56.4±1.0 56.9±1.0 57.0±1.1 57.0±1.2 57.0±1.2</td></tr><tr><td>Cat-15</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>43.6±3.0 46.4±1.7 46.2±1.9 47.4±1.7 47.6±1.5 34.7±2.8 34.8±2.9 36.3±2.335.8±2.5 36.5 ±2.3</td></tr><tr><td>Horse-21</td><td></td><td></td><td>57.0±1.2 59.5±0.5 59.0±2.0 60.4±1.1 60.8±0.9 41.6±2.0 43.1± 1.8 45.4±1.4 44.5±1.2 44.6 ± 1.4</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
173,
|
| 1495 |
+
137,
|
| 1496 |
+
830,
|
| 1497 |
+
253
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 12
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "text",
|
| 1503 |
+
"text": "C TRAINING SETUP ",
|
| 1504 |
+
"text_level": 1,
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
174,
|
| 1507 |
+
315,
|
| 1508 |
+
352,
|
| 1509 |
+
332
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 12
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "The ensemble of MLPs consists of 10 independent models. Each MLP is trained for ${ \\sim } 4$ epochs using the Adam optimizer (Kingma & Ba, 2015) with 0.001 learning rate. The batch size is 64. This setting is used for all methods and datasets. ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
174,
|
| 1518 |
+
347,
|
| 1519 |
+
825,
|
| 1520 |
+
390
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 12
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "MLP architecture. We adopt the MLP architecture from (Zhang et al., 2021). Specifically, we use MLPs with two hidden layers with ReLU nonlinearity and batch normalization. The sizes of hidden layers are 128 and 32 for datasets with a number of classes less than 30, and 256 and 128 for others. ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
174,
|
| 1529 |
+
396,
|
| 1530 |
+
825,
|
| 1531 |
+
439
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 12
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "Also, we evaluate the performance of the proposed method for twice wider / deeper MLPs on the Bedroom-28 and FFHQ-34 datasets and do not observe any noticeable difference, see Table 7. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
173,
|
| 1540 |
+
445,
|
| 1541 |
+
825,
|
| 1542 |
+
474
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 12
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "table",
|
| 1548 |
+
"img_path": "images/f548c2d84e40f6d420b44744dfea46b149e0655b595abfa23d68d0f1f3f98ee9.jpg",
|
| 1549 |
+
"table_caption": [],
|
| 1550 |
+
"table_footnote": [],
|
| 1551 |
+
"table_body": "<table><tr><td>Method</td><td>Bedroom-28</td><td>FFHQ-34</td></tr><tr><td>Original MLP</td><td>49.4</td><td>59.1</td></tr><tr><td>Wider MLP</td><td>49.5</td><td>59.1</td></tr><tr><td>Deeper MLP</td><td>49.3</td><td>58.9</td></tr></table>",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
375,
|
| 1554 |
+
486,
|
| 1555 |
+
629,
|
| 1556 |
+
570
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 12
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "text",
|
| 1562 |
+
"text": "Table 7: Performance of the proposed method for twice wider / deeper MLP architecture within the ensemble. More expressive MLPs do not improve the performance. ",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
168,
|
| 1565 |
+
577,
|
| 1566 |
+
825,
|
| 1567 |
+
606
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 12
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "D PER CLASS IOUS ",
|
| 1574 |
+
"text_level": 1,
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
174,
|
| 1577 |
+
633,
|
| 1578 |
+
352,
|
| 1579 |
+
651
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 12
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "image",
|
| 1585 |
+
"img_path": "images/02f4b1e7cd5604421b93ea732e15e6ee885442fcc90f2409dc5fdf67449a18f4.jpg",
|
| 1586 |
+
"image_caption": [
|
| 1587 |
+
"Figure 9: Per class IoUs for DatasetGAN, DatasetDDPM and DDPM. "
|
| 1588 |
+
],
|
| 1589 |
+
"image_footnote": [],
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
174,
|
| 1592 |
+
660,
|
| 1593 |
+
821,
|
| 1594 |
+
888
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 12
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "image",
|
| 1600 |
+
"img_path": "images/ab730fa2e015904bdb829ac09c57fbd53b4a26673dd3daefc00740d32a680ac7.jpg",
|
| 1601 |
+
"image_caption": [
|
| 1602 |
+
"Figure 10: Number of instances of each semantic class in the annotated real and synthetic train sets. "
|
| 1603 |
+
],
|
| 1604 |
+
"image_footnote": [],
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
173,
|
| 1607 |
+
83,
|
| 1608 |
+
826,
|
| 1609 |
+
460
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 13
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "E DATASET DETAILS ",
|
| 1616 |
+
"text_level": 1,
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
174,
|
| 1619 |
+
517,
|
| 1620 |
+
361,
|
| 1621 |
+
534
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 13
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "E.1 CLASS NAMES ",
|
| 1628 |
+
"text_level": 1,
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
174,
|
| 1631 |
+
554,
|
| 1632 |
+
316,
|
| 1633 |
+
568
|
| 1634 |
+
],
|
| 1635 |
+
"page_idx": 13
|
| 1636 |
+
},
|
| 1637 |
+
{
|
| 1638 |
+
"type": "text",
|
| 1639 |
+
"text": "Bedroom-28: [bed, footboard, headboard, side rail, carpet, ceiling, chandelier, curtain, cushion, floor, table, table top, picture, pillow, lamp column, lamp shade, wall, window, curtain rod, window frame, chair, picture frame, plinth, door, pouf, wardrobe, plant, table staff] ",
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
174,
|
| 1642 |
+
583,
|
| 1643 |
+
825,
|
| 1644 |
+
625
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 13
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "text",
|
| 1650 |
+
"text": "FFHQ-34: [background, head, cheek, chin, ear, helix, lobule, bottom lid, eyelashes, iris, pupil, sclera, tear duct, top lid, eyebrow, forehead, frown, hair, sideburns, jaw, moustache, inferior lip, oral commissure, superior lip, teeth, neck, nose, ala of nose, bridge, nose tip, nostril, philtrum, temple, wrinkles] ",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
174,
|
| 1653 |
+
631,
|
| 1654 |
+
825,
|
| 1655 |
+
688
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 13
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "Cat-15: [background, back, belly, chest, leg, paw, head, ear, eye, mouth, tongue, tail, nose, whiskers, neck] ",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
174,
|
| 1664 |
+
695,
|
| 1665 |
+
823,
|
| 1666 |
+
723
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 13
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "Horse-21: [background, person, back, barrel, bridle, chest, ear, eye, forelock, head, hoof, leg, mane, muzzle, neck, nostril, tail, thigh, saddle, shoulder, leg protection] ",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
171,
|
| 1675 |
+
729,
|
| 1676 |
+
823,
|
| 1677 |
+
758
|
| 1678 |
+
],
|
| 1679 |
+
"page_idx": 13
|
| 1680 |
+
},
|
| 1681 |
+
{
|
| 1682 |
+
"type": "text",
|
| 1683 |
+
"text": "CelebA-19: [background, cloth, ear r, eye g, hair, hat, l brow, l ear, l eye, l lip, mouth, neck, neck l, nose, r brow, r ear, r eye, skin, u lip] ",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
171,
|
| 1686 |
+
765,
|
| 1687 |
+
823,
|
| 1688 |
+
795
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 13
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "text",
|
| 1694 |
+
"text": "ADE-Bedroom-30: [wall, bed, floor, table, lamp, ceiling, painting, windowpane, pillow, curtain, cushion, door, chair, cabinet, chest, mirror, rug, armchair, book, sconce, plant, wardrobe, clock, light, flower, vase, fan, box, shelf, television] ",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
174,
|
| 1697 |
+
800,
|
| 1698 |
+
825,
|
| 1699 |
+
843
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 13
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "text",
|
| 1705 |
+
"text": "E.2 CLASS STATISTICS ",
|
| 1706 |
+
"text_level": 1,
|
| 1707 |
+
"bbox": [
|
| 1708 |
+
176,
|
| 1709 |
+
867,
|
| 1710 |
+
344,
|
| 1711 |
+
881
|
| 1712 |
+
],
|
| 1713 |
+
"page_idx": 13
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "text",
|
| 1717 |
+
"text": "In Figure 10, we report the statistics of classes computed over annotated real images as well as annotated synthetic images produced by GAN and DDPM. ",
|
| 1718 |
+
"bbox": [
|
| 1719 |
+
173,
|
| 1720 |
+
895,
|
| 1721 |
+
823,
|
| 1722 |
+
924
|
| 1723 |
+
],
|
| 1724 |
+
"page_idx": 13
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "text",
|
| 1728 |
+
"text": "F EXTRACTING REPRESENTATIONS FROM MAE ",
|
| 1729 |
+
"text_level": 1,
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
173,
|
| 1732 |
+
102,
|
| 1733 |
+
583,
|
| 1734 |
+
118
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 14
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "text",
|
| 1740 |
+
"text": "To obtain pixelwise representations, we apply the model to a fully observed image (mask ratio $\\scriptstyle 1 = 0$ ) of resolution 256 and extract feature maps from the deepest 12 ViT-L blocks . The feature maps from each block have $1 0 2 4 \\times 3 2 \\times 3 2$ dimensions. Similarly to other methods, we upsample the extracted feature maps to $2 5 6 \\times 2 5 6$ and concatenate them. The overall dimension of the pixel representation is 12288. ",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
174,
|
| 1743 |
+
133,
|
| 1744 |
+
825,
|
| 1745 |
+
203
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 14
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "text",
|
| 1751 |
+
"text": "In addition, we investigated other feature extraction strategies and got the following observations: ",
|
| 1752 |
+
"bbox": [
|
| 1753 |
+
174,
|
| 1754 |
+
210,
|
| 1755 |
+
810,
|
| 1756 |
+
226
|
| 1757 |
+
],
|
| 1758 |
+
"page_idx": 14
|
| 1759 |
+
},
|
| 1760 |
+
{
|
| 1761 |
+
"type": "text",
|
| 1762 |
+
"text": "1. Including activations from the decoder did not provide any noticeable gains; \n2. Extracting activations right after self-attention layers caused slightly inferior performance; \n3. Extracting activations from every second encoder block also provided a bit worse results. ",
|
| 1763 |
+
"bbox": [
|
| 1764 |
+
202,
|
| 1765 |
+
238,
|
| 1766 |
+
825,
|
| 1767 |
+
291
|
| 1768 |
+
],
|
| 1769 |
+
"page_idx": 14
|
| 1770 |
+
}
|
| 1771 |
+
]
|
parse/dev/SlxSY2UZQT/SlxSY2UZQT_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/SlxSY2UZQT/SlxSY2UZQT_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ZlCpRiZN7n/ZlCpRiZN7n_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/fARM4P0gAJV/fARM4P0gAJV.md
ADDED
|
@@ -0,0 +1,441 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Explainable Spatio-Temporal Forecasting with Shape Functions
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Spatio-temporal modeling and forecasting are challenging due to their complicated
|
| 11 |
+
2 spatial dependence, temporal dynamics, and scenarios. Many statistical models,
|
| 12 |
+
3 such as Spatial Auto-regression Model (SAR) and Spatial Dynamic Panel Data
|
| 13 |
+
4 Model (SDPD), are restricted by a pre-specified spatial weight matrix and thus
|
| 14 |
+
5 are limited to reflect its flexibility. Graph-based or convolution-based methods
|
| 15 |
+
6 can learn more flexible representations, but they fail to show the exact interactions
|
| 16 |
+
7 between locations due to the lack of explainability. This paper proposes a spatial re
|
| 17 |
+
8 gression model with shape functions to address the limitations of existing methods.
|
| 18 |
+
9 Our method learns the shape functions by incorporating shape constraints, which
|
| 19 |
+
10 are able to capture spatial variability or distance-based effects over distance. There
|
| 20 |
+
11 fore, our approach enjoys a learnable spatial weight matrix with a distance-based
|
| 21 |
+
12 explanation. We demonstrate our method’s efficiency and forecasting performance
|
| 22 |
+
13 on synthetic and real data.
|
| 23 |
+
|
| 24 |
+
# 14 1 Introduction
|
| 25 |
+
|
| 26 |
+
15 Spatio-temporal data is widely observed in many areas, such as transportation (33; 27), climatology
|
| 27 |
+
16 (2), and environmental research(19). The popularity of spatio-temporal data brings varieties of tasks
|
| 28 |
+
17 for researchers, and one of the key tasks is forecasting. Spatio-temporal data has some inherent
|
| 29 |
+
18 characteristics, namely, spatial dependence and temporal dynamics, which need to be considered for
|
| 30 |
+
19 modeling and forecasting.
|
| 31 |
+
20 Spatial dependence means that the observations at different locations are not independent, and
|
| 32 |
+
21 observations at closer locations often have a stronger correlation. In the statistics community,
|
| 33 |
+
22 extensive research has been conducted to model spatial dependence, and various spatial models have
|
| 34 |
+
23 been proposed. For example, in the spatial autoregressive (SAR) models, the spatial dependence is
|
| 35 |
+
24 modeled by a product of an unknown parameter and a pre-specified spatial weight matrix (4; 1; 11; 12).
|
| 36 |
+
25 Combined with the panel data, various types of spatial panel data models have been used to analyze
|
| 37 |
+
26 spatio-temporal data (35; 13; 7; 22). One limitation of the autoregressive models is that the elements
|
| 38 |
+
27 of the spatial weight matrix are pre-specified, such as an inverse distance. Although these pre
|
| 39 |
+
28 specified spatial weight matrices are applied to capture decreased distance-based effects, they fail to
|
| 40 |
+
29 capture complex distance relations in real-world applications.
|
| 41 |
+
30 Researchers in the computer science community have developed various methods modeling spatio
|
| 42 |
+
31 temporal data using deep neural networks. Various neural network architectures have been proposed
|
| 43 |
+
32 and applied to spatio-temporal forecasting, for example, spatio-temporal LSTM (31), fully connected
|
| 44 |
+
33 gated graph architecture (20), Convolutional LSTM (23) and etc. One advantage of these methods
|
| 45 |
+
34 is that they can incorporate unstructured data and rely on a high-performance computing platform
|
| 46 |
+
35 to learn complicated representations for spatio-temporal problems. However, a critical limitation of
|
| 47 |
+
36 these methods is that they fail to explain how the spatial interaction works explicitly. The lack of
|
| 48 |
+
37 interpretability restricts its reliability and deep insights into the underlying spatio-temporal process.
|
| 49 |
+
38 The explanation can be obtained if we can estimate the coefficient matrix that intuitively explains
|
| 50 |
+
39 spatio-temporal interactions.
|
| 51 |
+
40 In this paper, we propose an Explainable Spatio-Temporal Forecasting (ESTF) model, which utilizes
|
| 52 |
+
41 a spatial autoregressive model with shape functions to address the current limitations. Our method
|
| 53 |
+
42 extends the vector autoregressive (VAR) model (24) by incorporating distance information into the
|
| 54 |
+
43 temporal coefficient matrix using shape functions (3). The shape constraints are designed to be
|
| 55 |
+
44 consistent with the common fact that observations from neighbours have stronger spatial dependence
|
| 56 |
+
45 versus long-distance pairs. It is known as Tobler’s First Law, which is "Everything is related to
|
| 57 |
+
46 everything else, but near things are more related than distant things"(26; 18). Unlike the pre-specified
|
| 58 |
+
47 spatial weight matrix, this coefficient matrix is learnable and is thus more flexible in capturing
|
| 59 |
+
48 real-world complex spatial relations. Moreover, the shape functions are represented as a combination
|
| 60 |
+
49 of basis functions, and thus a smaller number of parameters needs to be estimated. Finally, ESTF can
|
| 61 |
+
50 be easily extended to forecasting in non-stationary scenarios using a dynamic spatial weight matrix.
|
| 62 |
+
51 We conduct experiments on both simulated and real data, and the results demonstrate that our method
|
| 63 |
+
52 achieves better forecast accuracy and is computationally efficient and more explainable.
|
| 64 |
+
|
| 65 |
+
# 53 2 Related work
|
| 66 |
+
|
| 67 |
+
54 Statistical models Several works focus on temporal dynamics when considering spatio-temporal
|
| 68 |
+
55 forecasting problems. The classical time series models, such as VAR, and ARIMA models, are applied
|
| 69 |
+
56 to spatio-temporal process modeling(21; 38). Besides, a spatial weight matrix is also introduced to the
|
| 70 |
+
57 ARIMA model to capture spatial dependence (28). The non-stationarity, particularly unit-root non
|
| 71 |
+
58 stationarity, is mainly modeled by ARIMA or Co-integration models. In addition, spatial regression
|
| 72 |
+
59 models or panel data are classical models in econometrics and can also be applied to model spatio
|
| 73 |
+
60 temporal problems. These models, for example, spatial auto-regression models, take spatial weight
|
| 74 |
+
61 matrix into consideration and estimate parameters in the framework of regression. However, the
|
| 75 |
+
62 common characteristics of these models need a pre-specified spatial weight matrix(35; 6). Elements
|
| 76 |
+
63 in the matrices are generally an inverse distance of corresponding locations. Meanwhile, these
|
| 77 |
+
64 spatial models focus on statistical inference on the scalar parameters placed before the spatial weight
|
| 78 |
+
65 matrix(25). Although there are many choices for the spatial weight matrix, such as inverse distance,
|
| 79 |
+
66 adjacency relationships, and K-nearest neighbors, there is a lack of research on estimating the spatial
|
| 80 |
+
67 weight matrix. The pre-specified spatial weight matrix restricts models’ application and fails to
|
| 81 |
+
68 capture more complicated underlying spatial dependence. Some researchers developed a sparse
|
| 82 |
+
69 spatio-temporal model that can estimate a sparse spatial weight matrix (17). The strict sparse setting
|
| 83 |
+
70 also restricts the wide application of the spatial weight matrix.
|
| 84 |
+
71 Graph-based methods Graph-based methods are widely applied for a non-Euclidean domain.
|
| 85 |
+
72 Some types of spatio-temporal data, for example, traffic flow data or brain network data, can be
|
| 86 |
+
73 represented as graphs. The graph structures well model the complicated spatial dependence. Thus,
|
| 87 |
+
74 the definition or pre-specified graphs structure is normally required when developing a graph-based
|
| 88 |
+
75 model. Related works can be found in (30; 14). The common typical method is GraphCNN, which is
|
| 89 |
+
76 to apply a convolutional transformation to the neighbors of each node (29; 34). The graph convolution
|
| 90 |
+
77 can capture patterns and features in the spatial domain. Graph-based methods have been proposed
|
| 91 |
+
78 and widely applied to lots of real cases. Traffic flow data modeling and forecasting is a popular topic
|
| 92 |
+
79 in this area (30; 20). Other topics, for example, climate sensor data (16), video (10) and etc, are also
|
| 93 |
+
80 applied by variant graph-based models. RNN or LSTM combined with graphs, i.e., a sequence of
|
| 94 |
+
81 graphs, are also considered in spatio-temporal forecasting problems (10).
|
| 95 |
+
82 CNN-based methods Unlike graph-based methods, CNN-based methods are more suitable for
|
| 96 |
+
83 modeling spatio-temporal data collected in regular grid locations. It applies filters to find relationships
|
| 97 |
+
84 between neighboring inputs. Although some works (32) applied convolution neural networks to
|
| 98 |
+
85 model non-grid traffic data, it is more common to see CNN-based methods process grid structures,
|
| 99 |
+
86 e.g., images, video rather than a general domain. As some spatio-temporal data are collected from a
|
| 100 |
+
87 regular grid in the Euclidean space (29), they thus can be viewed as a kind of special image. The CNN
|
| 101 |
+
88 structure combined with RNN or LSTM has been developed to make forecasting for spatio-temporal
|
| 102 |
+
89 data, for example, diffusion convolutional RNN (15), Convolutional LSTM networks (23; 36)and etc.
|
| 103 |
+
|
| 104 |
+
# 90 3 Proposed method
|
| 105 |
+
|
| 106 |
+
# 3.1 Problem formulation and notation
|
| 107 |
+
|
| 108 |
+
We use a $n \times 1$ vector $\mathbf { X _ { t } } ~ = ~ \{ \mathbf { x _ { 1 t } } , \mathbf { x _ { 2 t } } , \cdot \cdot \cdot , \mathbf { x _ { n t } } \}$ to denote observations at time $t$ , where $n$ is the number of locations. At each location $i$ , $\bf { S _ { i } } = ( c _ { i } ^ { x } , c _ { i } ^ { y } )$ is the coordinates of the location $i$ . The distance between location $\mathbf { S _ { i } }$ and $\mathbf { S _ { j } }$ is $d _ { i j } = \sqrt { ( d _ { i j } ^ { x } ) ^ { 2 } + ( d _ { i j } ^ { y } ) ^ { 2 } }$ , where $d _ { i j } ^ { x } = | c _ { i } ^ { x } - c _ { j } ^ { x } |$ and $d _ { i j } ^ { y } = | c _ { i } ^ { y } - c _ { j } ^ { y } |$ . Our goal is to make forecasting for spatio-temporal data: given training data set $\mathbf { X _ { 1 } } , \mathbf { X _ { 2 } } , \cdots , \mathbf { X _ { T } }$ , we would like to make forecasting for the next $h$ , $\hat { \mathbf { X } } _ { T + 1 } , \cdot \cdot \cdot , \hat { \mathbf { X } } _ { T + h }$ .
|
| 109 |
+
|
| 110 |
+
# 3.2 The stationary spatio-temporal model with shape functions
|
| 111 |
+
|
| 112 |
+
98 We first consider the stationary case. To model the spatio-temporal stationary process, we consider
|
| 113 |
+
99 the following model
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\mathbf { X _ { t } } = \sum _ { \mathbf { k } = 1 } ^ { \mathbf { p } } \mathbf { W _ { k } } \mathbf { X _ { t - k } } + \epsilon _ { \mathbf { t } } ,
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
100 where $\mathbf { W _ { k } }$ is a spatial weight matrix for capturing the spatial dependence at $\log k$ , and $\epsilon _ { \mathbf { t } }$ is white noise. Moreover, we assume the 101 $( i , j )$ th element of $\mathbf { W _ { k } }$ , $w _ { i j } ^ { ( k ) }$ , depends on the distance $d _ { i j }$ . That is, 102 w(k)ij depends on a function $f _ { k } ( d _ { i j } )$ .
|
| 120 |
+
|
| 121 |
+
103 For spatio-temporal data, the spatial dependence, represented by $w _ { i j } ^ { ( k ) }$ , between locations decreases
|
| 122 |
+
104 as the distance between two locations increases. In other words, there is a shape constraint for
|
| 123 |
+
105 the function $f _ { k } ( d )$ , such as a decreasing function. In order to estimate the shape function, we
|
| 124 |
+
106 model $f _ { k } ( d )$ as a linear combination of basis functions $g _ { i } ( d ) , i = 1 , 2 , \cdots , m$ . More specifically,
|
| 125 |
+
107 the shape function $f _ { k } ( d )$ is a linear combination of basis functions and coefficients with positive
|
| 126 |
+
108 value $\bar { f _ { k } } ( d ) = a _ { 1 , k } ^ { 2 } \bar { g _ { 1 } } ( \dot { d } ) + \cdot \cdot \cdot + a _ { m , k } ^ { 2 } g _ { m } ( d )$ , where $a _ { 1 , k } , \cdots , a _ { m , k }$ are parameters to be estimated.
|
| 127 |
+
109 The constraint of decrease needs parameters non-negative and thus each parameters squared. The
|
| 128 |
+
110 spatial weight matrix can take the value of decreased shape function directly. The element of $\mathbf { W _ { k } }$
|
| 129 |
+
111 is $w _ { i j . } ^ { ( k ) } = f _ { k } ( d _ { i j } )$ . The details of the shape function and the corresponding basis functions can be
|
| 130 |
+
112 found in Section 3.4
|
| 131 |
+
|
| 132 |
+
The parameters in shape functions can be estimated from the neural network illustrated in Figure 1. The neural network can be trained from the following criterion:
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\operatorname* { m i n } _ { \{ W _ { k } \} _ { k = 1 } ^ { p } } \sum _ { t = 1 } ^ { T } | | \mathbf { X _ { t } } - \hat { \mathbf { X _ { t } } } | | ^ { 2 } = \sum _ { \mathbf { t } = 1 } ^ { \mathbf { T } } | | \mathbf { X _ { t } } - \sum _ { \mathbf { k } = 1 } ^ { \mathbf { p } } \hat { \mathbf { W _ { k } } } \hat { \mathbf { X _ { t - k } } } | | ^ { 2 } .
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
# 113 3.3 The non-stationary spatio-temporal model with time-variant shape functions
|
| 139 |
+
|
| 140 |
+
114 The static spatial weight matrix $\mathbf { W _ { k } }$ can reflect spatial dependence and thus can be applied to
|
| 141 |
+
115 stationary scenarios. Next, we consider the nonstationary case. Therefore, we extend the stationary
|
| 142 |
+
116 model to non-stationary cases. The spatial weight matrices only reflect static relationships across time
|
| 143 |
+
117 lags in the static model. Unlike these settings, we change spatial weight matrices to be time-variant.
|
| 144 |
+
118 The spatial weight matrices formed by time-variant shape functions can thus capture non-stationary
|
| 145 |
+
119 dynamic spatial dependence. The non-stationary model has the form below,
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\mathbf { X _ { t } } = \sum _ { \mathbf { k } = 1 } ^ { \mathbf { p } } \mathbf { W _ { t , k } } \mathbf { X _ { t - k } } + \epsilon _ { \mathbf { t } } .
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
where $\epsilon _ { \mathbf { t } }$ is white noise, and $\mathbf { W _ { t , k } }$ relies on shape function $f _ { t , k } ( d )$ . Similar with stationary settings, the time-variant shape functions are still represented as a linear combination of basis functions $g _ { i } ( d ) , i = 1 , 2 , \cdots , \bar { m }$ . The coefficients are therefore time-variant. The shape function at time $t$ has the form below $f _ { t , k } ( d ) = a _ { 1 , t , k } ^ { 2 } g _ { 1 } ( d ) + \cdot \cdot \cdot + a _ { m , t , k } ^ { 2 } g _ { m } ( d )$ . Unlike stationary setting, the coefficients of nonstationary setting, $\{ a _ { i , t , k } \} _ { i = 1 } ^ { m }$ , depend on the time $t$ . The non-stationary model can be trained from the criterion by minimizing
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\operatorname* { m i n } _ { \{ W _ { t } , k \} _ { k = 1 } ^ { p } } | | \mathbf { X _ { t } } - \hat { \mathbf { X _ { t } } } | | ^ { 2 } = | | \mathbf { X _ { t } } - \sum _ { \mathbf { k } = 1 } ^ { \mathbf { p } } \hat { \mathbf { W } } _ { \mathbf { t } , \mathbf { k } } \hat { \mathbf { X } } _ { \mathbf { t - k } } | | ^ { 2 } .
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 1: The neural network for the stationary spatio-temporal process (left) and non-stationary spatio-temporal process (right).
|
| 159 |
+
|
| 160 |
+
# 122 3.4 The basis functions for shape functions
|
| 161 |
+
|
| 162 |
+
123 The shape functions are integrated into our model to obtain distance-based explanations in stationary
|
| 163 |
+
124 and non-stationary scenarios. The motivation of the proposed shape functions is that as the distance
|
| 164 |
+
125 between two observations increases, the effects between these two locations decreases. These distance
|
| 165 |
+
126 based effects can be reflected in spatial weight matrix W and each element in the matrix can measure
|
| 166 |
+
127 how the corresponding locations interact. The shape function is represented as a linear combination of
|
| 167 |
+
128 basis functions. The basis functions, satisfying shape constraint, rely on the corresponding definition
|
| 168 |
+
129 of basis functions.
|
| 169 |
+
130 Definition of basis functions for various shape constraints. We list the definition of basis functions
|
| 170 |
+
131 for increased and decreased shape (3). The distance quantile among $\{ d _ { i _ { 1 } , j _ { 1 } } , d _ { i _ { 2 } , j _ { 2 } } , \dots , d _ { i _ { N } , j _ { N } } \}$ at
|
| 171 |
+
132 quantile level $q _ { 1 } , q _ { 2 } , \cdots , q _ { m }$ is denoted by $\{ d _ { ( 1 ) } , d _ { ( 2 ) } , \cdots , d _ { ( m ) } \}$ , where $0 \leq q _ { 1 } < q _ { 2 } < \cdot \cdot \cdot < q _ { m } \leq$
|
| 172 |
+
1 and 133 $\{ q _ { 1 } , q _ { 2 } , \cdot \cdot \cdot , q _ { m } \} = \{ { \textstyle \frac { 1 } { m } } , { \textstyle \frac { 2 } { m } } , \cdot \cdot \cdot , 1 \}$ . Here, we can set the number of $m < < n ^ { 2 }$ , and thus, the
|
| 173 |
+
number of parameters is significantly reduced.
|
| 174 |
+
135 For the constraint of monotone decreasing function, the basis function is defined as $g _ { i } ( d ) = \mathbf { 1 } _ { \left\{ \mathbf { d } < \mathbf { d } _ { \left( \mathbf { i } \right) } \right\} }$ .
|
| 175 |
+
136 The basis function for the shape function with the constraint of concave decrease is defined as
|
| 176 |
+
137 $g _ { i } ( d ) = ( d _ { ( i ) } - d ) \mathbf { 1 } _ { \{ \mathbf { d } _ { ( i ) } \leq \mathbf { d } \} }$ and convex decrease is defined as $g _ { i } ( d ) = ( d _ { ( i ) } - d ) \mathbf { 1 } _ { \{ \mathbf { d } \leq \mathbf { d } _ { ( i ) } \} }$ , for
|
| 177 |
+
138 $1 \leq i \leq m$ . Figure 2 shows the definition of basis functions for monotone decreased and increased
|
| 178 |
+
139 shape functions, respectively. We only present four basis functions for each shape and each of them
|
| 179 |
+
140 is related to four quantile levels. The dashed lines indicate the turning points for each basis function
|
| 180 |
+
141 and they equal one or zero at the beginning and turn to zero or one at turning points.
|
| 181 |
+
143 The stationary model requires fixed shape functions and related spatial weight matrix are time
|
| 182 |
+
144 invariant. Given training data set $\mathbf { X _ { 1 } } , \mathbf { X _ { 2 } } , \cdots , \mathbf { X _ { T } }$ , we can estimate spatial weight matrix
|
| 183 |
+
145 ${ \hat { W } } _ { 1 } , { \hat { W } } _ { 2 } , \cdot \cdot \cdot , { \hat { W } } _ { p }$ and make forecasting iteratively. That is $\begin{array} { r } { \hat { { \bf X } } _ { T + 1 } = \sum _ { k = 1 } ^ { p } \hat { W } _ { k } { \bf X _ { T + 1 - k } } , \hat { { \bf X } } _ { T + 2 } = } \end{array}$
|
| 184 |
+
146 $\begin{array} { r } { \hat { W } _ { 1 } \hat { \mathbf { X } } _ { T + 1 } + \sum _ { k = 2 } ^ { \bar { p } } \hat { W } _ { k } \mathbf { X } _ { \mathbf { T } + 2 - \mathbf { k } } , \cdot \cdot \cdot \hat { \mathbf { X } } _ { T + h } = \sum _ { k = 1 } ^ { p } \hat { W } _ { k } \hat { \mathbf { X } } _ { T + h - k } } \end{array}$ .
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 2: The basis functions for decreased shape (left) and for increased shape (right). The arrows indicate domain of each basis functions.
|
| 188 |
+
|
| 189 |
+
The non-stationary model incorporate time-variant spatial weight matrix ${ \hat { W } } _ { t , \cdot } .$ . Given the training data set $\mathbf { X _ { 1 } } , \mathbf { X _ { 2 } } , \cdots , \mathbf { X _ { T } }$ , we can obtain corresponding shape functions $\hat { f } _ { 1 , \cdot } , \hat { f } _ { 2 , \cdot } , \cdot \cdot \cdot , \hat { f } _ { T , \cdot }$ , where · denotes time lag. For lag $p = 1$ , we can use $\{ \hat { f } _ { t } \} _ { t = 1 } ^ { T }$ to represent time-variant shape functions for convenience. We can make dynamic forecasts for the next $h$ windows. One simple forecasting method is to use $\hat { W } _ { T , k }$ to make forecast for $\hat { \mathbf { X } } _ { T + h }$ , that is
|
| 190 |
+
|
| 191 |
+
$$
|
| 192 |
+
\hat { \mathbf { X } } _ { T + h } = \sum _ { k = 1 } ^ { p } \hat { W } _ { T , k } \mathbf { X } _ { \mathbf { T } + \mathbf { h } - \mathbf { k } } .
|
| 193 |
+
$$
|
| 194 |
+
|
| 195 |
+
The alternative method is to retrain the new forecast to obtain the latest shape functions as well as spatial weight matrix. Given long-term forecast window $L$ , we first make short-term forecast for $h$ steps
|
| 196 |
+
|
| 197 |
+
$$
|
| 198 |
+
\hat { \mathbf { X } } _ { T + h } = \sum _ { k = 1 } ^ { p } \hat { W } _ { T + h , k } \mathbf { X } _ { \mathbf { T } + \mathbf { h } - \mathbf { k } } ,
|
| 199 |
+
$$
|
| 200 |
+
|
| 201 |
+
where 147 $h = 1 , 2 , \cdots$ and $\hat { W } _ { T + h , k }$ is estimated by training forecast value of $\hat { \mathbf { X } } _ { T + h - k }$ . We repeat the 148 process until $L$ steps in total have been predicted.
|
| 202 |
+
|
| 203 |
+
49 We summarize the whole process of our model when making spatio-temporal forecasts.
|
| 204 |
+
|
| 205 |
+
Step 1 Given the observation $\{ \mathbf { X _ { t } } \} _ { \mathbf { t = 1 } } ^ { \mathbf { T } }$ and its coordinates, calculate all distance pairs among all locations, denoted by $\{ d _ { i _ { 1 } , j _ { i } } , \cdot \cdot \cdot , d _ { i _ { N } , j _ { N } } \}$ .
|
| 206 |
+
|
| 207 |
+
Step 2 Calculate $\textstyle \left\{ { \frac { 1 } { m } } , { \frac { 2 } { m } } , \cdots , 1 \right\}$ quantile levels and obtain corresponding distance quantile value $\{ d _ { ( 1 ) } , d _ { ( 2 ) } , \cdots , \ " { d _ { ( m ) } } \}$ .
|
| 208 |
+
|
| 209 |
+
Step 3 Determine the shape constraints and construct corresponding basis functions. Specify the time lag $p$ .
|
| 210 |
+
|
| 211 |
+
Step 4 Train the model according to the illustration of Figure 1.
|
| 212 |
+
|
| 213 |
+
# 157 4 Experiment
|
| 214 |
+
|
| 215 |
+
158 In order to assess our model in stationary and non-stationary scenarios, we synthesize data. Then,
|
| 216 |
+
159 we apply our model to make some comparisons. On the one hand, we need to evaluate how
|
| 217 |
+
160 the estimated shape functions look and assess their similarity and accuracy. On the other hand,
|
| 218 |
+
161 our model can make spatio-temporal forecasting after estimating for spatial weight matrix. The
|
| 219 |
+
162 basic idea for completing the two goals is to set up the expected shape function and compare
|
| 220 |
+
163 estimated parameters with the real one. Next, we assess the forecasting performance with baseline
|
| 221 |
+
164 models. Codes and data for replicating our experiments are anonymously published at https:
|
| 222 |
+
165 //anonymous.4open.science/r/STVAR-F16E/.
|
| 223 |
+
|
| 224 |
+
# 166 4.1 Simulation for stationary model
|
| 225 |
+
|
| 226 |
+
Here, we synthesize 100 stationary spatio-temporal data sets. The spatial domain consists of 30 locations and their coordinates can be found at https://anonymous.4open.science/r/ STVAR-F16E/. For each location, we observe 500 values. The observation is generated from the stationary model $\begin{array} { r } { X _ { t } = \sum _ { k = 1 } ^ { p } W _ { k } X _ { t - k } + \epsilon _ { t } } \end{array}$ , where $\epsilon _ { t }$ is randomly generated from the standard normal distribution. The next step is to construct random spatial weight matrices for each synthesized data set. The shape functions are set to be decreasing, and we set them as a logarithmic function:
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
\alpha ( - \log ( d + 1 ) + \log ( 1 7 0 ) ) ,
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
167 where $\alpha$ is randomly generated from uniform distribution [0.05,0.06] but kept to be fixed for each
|
| 233 |
+
168 simulated data set. We use $d + 1$ to avoid zero value. This setting can make the real shape function
|
| 234 |
+
169 decrease and make it equal to zero when $d = 1 6 9$ . The stationary model can iteratively generate the
|
| 235 |
+
170 $\mathbf { X _ { t } }$ given initial value $\mathbf { X _ { 0 } }$ , where $\mathbf { X _ { 0 } }$ is randomly generated from a uniform distribution with bounds
|
| 236 |
+
171 [-0.01,0.01]. The time lags are set as $p = 1$ .
|
| 237 |
+
172 Estimation for shape functions. In Figure 3,
|
| 238 |
+
173 the estimated shape function is presented in red,
|
| 239 |
+
174 while the real shape function is presented in blue.
|
| 240 |
+
175 It can be seen that the estimated shape function
|
| 241 |
+
176 can capture the trend of the real shape function.
|
| 242 |
+
177 Training details. The first 300 steps are used as
|
| 243 |
+
178 training data, saving the last 200 steps for eval
|
| 244 |
+
179 uation. We train all models for 100 epochs with
|
| 245 |
+
180 Adam optimizer (5) and a learning rate of 0.01.
|
| 246 |
+
181 The process involves parallel training across 10
|
| 247 |
+
182 CPUs. We select 100 quantile levels, and thus
|
| 248 |
+
183 100 basis functions $g _ { i } ( d )$ were generated as the
|
| 249 |
+
184 inputs for the model.
|
| 250 |
+
185 Assessment for forecasting. We assess the fore
|
| 251 |
+
186 casting performance for the stationary model
|
| 252 |
+
187 with baseline models. As introduced in the liter
|
| 253 |
+
188 ature review, the baseline models are selected from the VAR model(21), the spatial panel data(SPE)
|
| 254 |
+
189 model that applied pre-specified spatial weigh matrix (28), graph-based models (20; 37) and
|
| 255 |
+
190 convolution-based models (15; 23). The error metrics are mean absolute error and root mean squared
|
| 256 |
+
191 error defined by 1Nn PNj=1 Pni=1 $\begin{array} { r } { \frac { 1 } { N n } \sum _ { j = 1 } ^ { N } \sum _ { i = 1 } ^ { n } \frac { \sum _ { t = T } ^ { T + h } | \hat { X } _ { i t } ^ { ( j ) } - X _ { i t } ^ { ( j ) } | } { h } } \end{array}$ , $\begin{array} { r } { \frac { 1 } { N n } \sum _ { j = 1 } ^ { N } \sum _ { i = 1 } ^ { n } \sqrt { \frac { 1 } { h } \sum _ { t = T } ^ { T + h } ( X _ { i t } ^ { ( j ) } - \hat { X } _ { i t } ^ { ( j ) } ) ^ { 2 } } } \end{array}$ ,
|
| 257 |
+
192 respectively. The Table 1 shows the six baseline models with the proposed model. As totally we
|
| 258 |
+
193 have 100 synthesised data sets, $X _ { i t } ^ { ( j ) }$ and $\hat { X } _ { i t } ^ { ( j ) }$ denote $i - t h$ variable in $j - t h$ data sets. $n = 3 0$ is
|
| 259 |
+
194 the number of locations and $N = 1 0 0$ is the number of synthesised data. We conducted one-step
|
| 260 |
+
195 forecasting for the next 200 observations.
|
| 261 |
+
96 Compared with baseline models, the proposed model performs better under the metric MAE and
|
| 262 |
+
97 RMSE. The proposed method outperforms the closest competing method, DC-RNN, by $10 \%$ .
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
Figure 3: The sample of estimated shape function. Distances are shown every $2 0 ^ { t h }$ quantile.
|
| 266 |
+
|
| 267 |
+
# 198 4.2 Experiments for non-stationary model
|
| 268 |
+
|
| 269 |
+
We conduct a simulation for the non-stationary model with time lag $p = 1$ and synthesize 100 data sets using a similar approach to the stationary model simulation. The initial value $\mathbf { X _ { 0 } }$ and $\epsilon _ { t }$ are generated from a uniform and normal distribution respectively. The locations of observations are the same as those in the stationary model simulation. In order to construct $W _ { t }$ , the time-varying shape functions are created under the decreased constraint. The shape function at time $t$ is constructed as
|
| 270 |
+
|
| 271 |
+
$$
|
| 272 |
+
\alpha _ { t } ( - \log ( d + 1 ) + \log ( 1 7 0 ) ) ,
|
| 273 |
+
$$
|
| 274 |
+
|
| 275 |
+
99 where $\alpha _ { t }$ controls the level of value at each time $t$ . $\epsilon _ { t }$ is generated from a normal distribution. $\mathbf { X _ { 0 } }$ is
|
| 276 |
+
00 generated from a uniform distribution with bound [-0.001,0.001].
|
| 277 |
+
201 Shape functions settings and estimation. The shape functions are set as time-variant, as they can
|
| 278 |
+
202 simulate the non-stationary process across time. We specified $\alpha _ { 0 }$ at $t = 0$ from uniform distribution
|
| 279 |
+
203 $[ 1 \times 1 0 ^ { - 4 } , 2 \times 1 0 ^ { - 4 } ]$ and then make an interpolation from $\alpha _ { 0 }$ to $\alpha _ { 5 0 0 }$ . The total length for every
|
| 280 |
+
204 location is 500 and we set $\alpha _ { 5 0 0 } = 1 0 \times \alpha _ { 0 }$ . For example, generally if $\alpha _ { 0 } ~ = ~ 0 . 0 0 0 1$ , we have
|
| 281 |
+
205 $\begin{array} { r } { \alpha _ { t } = 0 . 0 0 0 1 ( 1 - \frac { t } { T } ) + 0 . 0 0 1 \frac { t } { T } } \end{array}$ , where $T = 5 0 0$ . This setting guarantee that shape functions vary
|
| 282 |
+
206 from lower level to higher level. The larger $\alpha _ { t }$ is, the more larger distance-based effects they have.
|
| 283 |
+
207 Thus, the corresponding spatial weight matrix consists of dynamic shape functions and can reflect the
|
| 284 |
+
208 non-stationary dependence among each site. We present the estimated shape functions in Figure 4
|
| 285 |
+
209 and compare them with the real ones.
|
| 286 |
+
10 Training details. Similar to the stationary simulation, the train-test split is $3 0 0 - 2 0 0$ over the data
|
| 287 |
+
11 size of 500. However, we train all models for 100 epochs with Adam optimizer (5) at a learning rate
|
| 288 |
+
12 of 0.001. We train models in parallel across 10 CPUs.
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
Figure 4: The sample of estimated shape function for the 120 testing time steps. Distances are shown every $4 0 ^ { t h }$ quantile.
|
| 292 |
+
|
| 293 |
+
Forecasting performance. The forecasting performance is assessed by the same metrics used in the previous simulation for the stationary case. We made a one-step forecast by our model. As for the baseline models, we adjusted their published code accordingly. The results show that the proposed model can still capture non-stationary processes compared with baseline models. The proposed method outperforms the other competing methods. The error metric is shown in Table 1.
|
| 294 |
+
|
| 295 |
+
Table 1: The error metrics with baseline models for simulation.
|
| 296 |
+
|
| 297 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="2">Stationary Simulation</td><td colspan="2">Non-stationary Simulation</td></tr><tr><td>MAE</td><td>RMSE</td><td>MAE</td><td>RMSE</td></tr><tr><td>VAR</td><td>2.9611 ± 1.8573</td><td>3.2588 ± 1.8077</td><td>2.4426 ±1.2285</td><td>2.7676 ± 1.2015</td></tr><tr><td>SPM</td><td>1.8850 ± 0.6348</td><td>1.8671 ± 0.6778</td><td>2.1918 ± 0.7350</td><td>2.2161 ± 0.6876</td></tr><tr><td>DC-RNN</td><td>0.8960 ± 0.0370</td><td>1.1168 ± 0.0426</td><td>0.9017 ± 0.0358</td><td>1.1328 ± 0.0463</td></tr><tr><td>FC-GAGA</td><td>2.5425 ± 0.2965</td><td>3.1066 ± 0.3633</td><td>1.0270 ± 0.0080</td><td>1.2939 ± 0.0120</td></tr><tr><td>GMAN</td><td>1.6806 ± 0.1491</td><td>1.9293 ± 0.1483</td><td>1.5714 ± 0.1104</td><td>1.8608 ± 0.1155</td></tr><tr><td>ConvLSTM</td><td>2.9495 ± 0.2980</td><td>3.2509 ± 0.2887</td><td>2.2478 ± 0.2295</td><td>2.5469 ± 0.2324</td></tr><tr><td>ESTF</td><td>0.7997 ± 0.0015</td><td>1.0017 ± 0.0016</td><td>0.8075 ± 0.0016</td><td>1.0112 ± 0.0020</td></tr></table>
|
| 298 |
+
|
| 299 |
+
# 218 4.3 Real case studies
|
| 300 |
+
|
| 301 |
+
Air quality data. We apply our model to air quality data, which records air quality in California over 2021 1. The daily mean of $\mathrm { P M } 2 . 5$ is recorded across 172 sites.
|
| 302 |
+
|
| 303 |
+
We obtain the first 200 steps for training and perform forecasting for the next 165 steps. All models are trained for 100 epochs using Adam optimizer (5), at a learning rate of 0.01 and batch size of 50. We present the estimated time-variant shape functions in supplemental file. The value of shape functions decays to zero at around 5.926, which is $80 \%$ quantile in the sample of distance pairs. In other words, the distance-based effects decay to zero at a distance equal or larger than 5.926. Our
|
| 304 |
+
|
| 305 |
+
226 model has ideal performance with low time consummation compared with baseline models. We put
|
| 306 |
+
227 detailed forecasting results of simulation and real cases in a supplemental file.
|
| 307 |
+
228 The result is shown in Table 2. The ESTF performs best in terms of RMSE, while the DC-RNN
|
| 308 |
+
229 method performs best in terms of MAE. For the computational time, the ESTF method is significantly
|
| 309 |
+
230 faster than most machine learning methods, and only takes around $1 / 1 0$ time of DC-RNN. In Figure 5,
|
| 310 |
+
231 MAE, RMSE, and time are presented with different numbers of $m$ . As $m$ increases, the computational
|
| 311 |
+
232 time increases while both MAE and RMSE decrease. There is a significant increase in the forecasting
|
| 312 |
+
233 performance when $m$ increases from 10 to 50. For $m > 5 0$ , the forecasting performance does not
|
| 313 |
+
234 increase much as $m$ increases.
|
| 314 |
+
235 One key advantage of the ESTF method is that we can make an explicit distance-based explanation
|
| 315 |
+
236 for our dataset. Figure 6 shows the distance-based effects at time $t = 9$ . We only present the effects
|
| 316 |
+
237 using a threshold to obtain a more concise visualization. The estimated shape function $\hat { f } _ { 9 }$ ranges
|
| 317 |
+
238 from 0 to 9.8 and we set 5 as the threshold. The red line indicates the value of the shape function
|
| 318 |
+
239 larger than 7, while the gray line indicates the value between 5 and 7. Figure 6 shows how any two
|
| 319 |
+
240 locations interact and measure the distance-based effects quantitatively. For example, air quality
|
| 320 |
+
241 monitoring sites around the Greater Los Angeles(red circle in Figure 6) area have a strong spatial
|
| 321 |
+
242 interaction with each other, such as node 7 and node 8.
|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
Figure 6: The significant distance-based effect Figure 5: Comparing efficiency vs. performanceamong all 30 locations. trade-off at different quantile values.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
|
| 328 |
+
# 4.4 $S O _ { 2 }$ data
|
| 329 |
+
|
| 330 |
+
Texas is the second largest manufacturing state in the USA and prediction for $S O _ { 2 }$ is critical task for researchers. The data 2 records daily $S O _ { 2 }$ at 31 locations in 2021. More detailed spatial information can be found in the supplemental file. The numeric result is listed in Table 2.
|
| 331 |
+
|
| 332 |
+
Table 2: The error metrics with baseline models for real case study. Clock time (in seconds) for real case study is recorded when training each model for 100 epochs on a single CPU.
|
| 333 |
+
|
| 334 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="6">Air quality data</td><td rowspan="2">SO2 data Training Time (s)</td><td rowspan="2">Inference Time (s)</td></tr><tr><td>MAE</td><td>RMSE</td><td>Training time (s)</td><td>Inference Time (s)</td><td>MAE</td><td>RMSE</td></tr><tr><td>VAR</td><td>16.9844</td><td>22.3410</td><td>3.56</td><td>0.04</td><td>6.2705</td><td>9.1388</td><td>3.330</td><td>0.016</td></tr><tr><td>SPM</td><td>8.4547</td><td>13.8262</td><td>0.31</td><td>0.03</td><td>7.1453</td><td>9.1086</td><td>0.143</td><td>0.027</td></tr><tr><td>DC-RNN</td><td>4.7157</td><td>9.3873</td><td>203</td><td>1.211</td><td>3.5094</td><td>6.8681</td><td>264.215</td><td>1.366</td></tr><tr><td>FC-GAGA</td><td>7.8671</td><td>18.1870</td><td>181</td><td>2.759</td><td>4.5976</td><td>7.7528</td><td>169.425</td><td>2.889</td></tr><tr><td>GMAN</td><td>12.5268</td><td>17.3817</td><td>140</td><td>1.823</td><td>4.1099</td><td>7.4806</td><td>172.016</td><td>1.581</td></tr><tr><td>ConvLSTM</td><td>12.6292</td><td>17.9149</td><td>53</td><td>1.940</td><td>4.1445</td><td>8.0688</td><td>96.233</td><td>1.656</td></tr><tr><td>ESTF</td><td>5.2237</td><td>9.2169</td><td>22</td><td>1.625</td><td>4.2966</td><td>6.8307</td><td>31.050</td><td>1.868</td></tr></table>
|
| 335 |
+
|
| 336 |
+
247 Similar conclusions can be drawn in $S O _ { 2 }$ data as that of air quality data. The ESTF model performs
|
| 337 |
+
248 best under the RMSE metric, while DC-RNN is best in the MAE metric. In terms of training time,
|
| 338 |
+
251 The efficiency analysis and performance at different quantiles are shown in Figure 7. Together with
|
| 339 |
+
252 Figure 5, we can see that the increasing number of basis functions does not have much improvement
|
| 340 |
+
253 when the number of basis functions is larger than 50, while the training time increases as the number
|
| 341 |
+
254 of basis functions increases. The spatial distribution at time $t = 9 0$ is presented in Figure 8 where
|
| 342 |
+
255 coordinates are denoted by latitude and longitude. Two significant clusters, representing Houston
|
| 343 |
+
256 and Dallas respectively, have the strongest distance-based effect. It quantitatively shows how these
|
| 344 |
+
257 neighbors affect each other. Counties around Dallas-Fort Worth metropolitan area show strong
|
| 345 |
+
258 interaction, which should be noted by environmental policy-makers. More detailed results are
|
| 346 |
+
259 presented in the supplemental file.
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
Figure 8: The significant distance-based effect Figure 7: Comparing efficiency vs. performanceamong all 31 locations at $t = 9 0$ trade-off at different quantile values.
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
|
| 353 |
+
# 260 5 Discussion
|
| 354 |
+
|
| 355 |
+
This paper applies learnable shape functions to capture distance-based effects. It can model dynamic spatial dependence for stationary and non-stationary spatio-temporal data based on their distance. The model does not have the limitations of classical statistical spatial models and provides a more explanatory model than usual deep learning methods. Furthermore, some spatio-temporal data, such as temperature for sea surface and air quality monitoring data, usually viewed as collected from the continuous field, are more suitable for the proposed models since these kinds of data follow the basic rule that variability between two locations is significantly affected by their distance. However, some spatio-temporal data, such as traffic flow or some biology data, do not follow the rule. As a result, the spatial dependence may rely on road structure or biological mechanisms instead of distance. It is worth researching such data by considering graph structure when estimating spatial weight matrix. In addition, we can develop spatio-temporal causal inference based on the ESTF model. Grander causal analysis can be done by fitting the first-order VAR model (24). The estimation of the coefficients matrix of the VAR model attracts researchers’ interest as it can be treated as a causal transition matrix. In the causal inference community, lots of work have been conducted on the VAR model (8; 9). However, there is a lack of research on causal inference under the spatio-temporal process. The quantitative distance-based effects in ESTF can be further researched and extended to develop a spatio-temporal causal model.
|
| 356 |
+
|
| 357 |
+
# References
|
| 358 |
+
|
| 359 |
+
[1] ANSELIN, L. Spatial econometrics: methods and models, vol. 4. Springer Science & Business Media, 1988.
|
| 360 |
+
[2] CASTRUCCIO, S., AND GENTON, M. G. Principles for statistical inference on big spatiotemporal data from climate models. Statistics & Probability Letters 136 (2018), 92–96.
|
| 361 |
+
|
| 362 |
+
[3] CHEN, Y., AND SAMWORTH, R. J. Generalized additive and index models with shape constraints. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 78, 4 (2016), 729–754. [4] CLIFF, A. Spatial autocorrelation: Technical report. [5] DIEDERIK, K., JIMMY, B., ET AL. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980 (2014), 273–297. [6] DOU, B., PARRELLA, M. L., AND YAO, Q. Generalized Yule–Walker estimation for spatiotemporal models with unknown diagonal coefficients. Journal of Econometrics 194, 2 (2016), 369–382. [7] ELHORST, J. P. Spatial panel data models. In Spatial econometrics. Springer, 2014, pp. 37–93. [8] GEIGER, P., ZHANG, K., SCHOELKOPF, B., GONG, M., AND JANZING, D. Causal inference by identification of vector autoregressive processes with hidden components. In International Conference on Machine Learning (2015), PMLR, pp. 1917–1925. [9] GONG, M., ZHANG, K., SCHÖLKOPF, B., GLYMOUR, C., AND TAO, D. Causal discovery from temporally aggregated time series. In Uncertainty in artificial intelligence: proceedings of the... conference. Conference on Uncertainty in Artificial Intelligence (2017), vol. 2017, NIH Public Access. [10] JAIN, A., ZAMIR, A. R., SAVARESE, S., AND SAXENA, A. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the ieee conference on computer vision and pattern recognition (2016), pp. 5308–5317. [11] KELEJIAN, H. H., AND PRUCHA, I. R. A generalized spatial two-stage least squares procedure for estimating a spatial autoregressive model with autoregressive disturbances. The Journal of Real Estate Finance and Economics 17, 1 (1998), 99–121. [12] LEE, L.-F. Asymptotic distributions of quasi-maximum likelihood estimators for spatial autoregressive models. Econometrica 72, 6 (2004), 1899–1925. [13] LEE, L.-F., AND YU, J. Some recent developments in spatial panel data models. Regional Science and Urban Economics 40, 5 (2010), 255–271. [14] LI, M., AND ZHU, Z. Spatial-temporal fusion graph neural networks for traffic flow forecasting. In Proceedings of the AAAI conference on artificial intelligence (2021), vol. 35, pp. 4189–4196. [15] LI, Y., YU, R., SHAHABI, C., AND LIU, Y. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926 (2017). [16] LIN, Y., MAGO, N., GAO, Y., LI, Y., CHIANG, Y.-Y., SHAHABI, C., AND AMBITE, J. L. Exploiting spatiotemporal patterns for accurate air quality forecasting using deep learning. In Proceedings of the 26th ACM SIGSPATIAL international conference on advances in geographic information systems (2018), pp. 359–368. [17] MA, Y., GUO, S., AND WANG, H. Sparse spatio-temporal autoregressions by profiling and bagging. Journal of Econometrics (2021). [18] MILLER, H. J. Tobler’s first law and spatial analysis. Annals of the association of American geographers 94, 2 (2004), 284–289. [19] MOKBEL, M. F., XIONG, X., HAMMAD, M. A., AND AREF, W. G. Continuous query processing of spatio-temporal data streams in place. GeoInformatica 9, 4 (2005), 343–365. 324 [20] ORESHKIN, B. N., AMINI, A., COYLE, L., AND COATES, M. J. FC-GAGA: Fully connected gated graph architecture for spatio-temporal traffic forecasting. In Proc. AAAI Conf. Artificial Intell (2021). [21] QIAN, G., TORDESILLAS, A., AND ZHENG, H. Landslide forecast by time series modeling and analysis of high-dimensional and non-stationary ground motion data. Forecasting 3, 4 (2021), 850–867.
|
| 363 |
+
|
| 364 |
+
330 [22] QU, X., LEE, L.-F., AND YU, J. QML estimation of spatial dynamic panel data models with
|
| 365 |
+
331 endogenous time varying spatial weights matrices. Journal of Econometrics 197, 2 (2017),
|
| 366 |
+
332 173–201.
|
| 367 |
+
333 [23] SHI, X., CHEN, Z., WANG, H., YEUNG, D.-Y., WONG, W.-K., AND WOO, W.-C. Convolu
|
| 368 |
+
334 tional lstm network: A machine learning approach for precipitation nowcasting. Advances in
|
| 369 |
+
335 neural information processing systems 28 (2015).
|
| 370 |
+
336 [24] SIMS, C. A. Macroeconomics and reality. Econometrica: journal of the Econometric Society
|
| 371 |
+
337 (1980), 1–48.
|
| 372 |
+
338 [25] SU, L. Semiparametric GMM estimation of spatial autoregressive models. Journal of Econo
|
| 373 |
+
339 metrics 167, 2 (2012), 543–560.
|
| 374 |
+
340 [26] TOBLER, W. R. A computer movie simulating urban growth in the detroit region. Economic
|
| 375 |
+
341 geography 46, sup1 (1970), 234–240.
|
| 376 |
+
342 [27] WANG, D., AND CHENG, T. A spatio-temporal data model for activity-based transport demand
|
| 377 |
+
343 modelling. International Journal of Geographical Information Science 15, 6 (2001), 561–585.
|
| 378 |
+
344 [28] WANG, H., QIAN, G., AND TORDESILLAS, A. Modeling big spatio-temporal geo-hazards data
|
| 379 |
+
345 for forecasting by error-correction cointegration and dimension-reduction. Spatial Statistics 36
|
| 380 |
+
346 (2020), 100432.
|
| 381 |
+
347 [29] WANG, S., CAO, J., AND YU, P. Deep learning for spatio-temporal data mining: A survey.
|
| 382 |
+
348 IEEE transactions on knowledge and data engineering (2020).
|
| 383 |
+
349 [30] WANG, X., CHEN, C., MIN, Y., HE, J., YANG, B., AND ZHANG, Y. Efficient metropolitan
|
| 384 |
+
350 traffic prediction based on graph recurrent neural network. arXiv preprint arXiv:1811.00740
|
| 385 |
+
351 (2018).
|
| 386 |
+
352 [31] WANG, Y., LONG, M., WANG, J., GAO, Z., AND YU, P. S. PredRNN: Recurrent neural
|
| 387 |
+
353 networks for predictive learning using spatio-temporal LSTMs. In Advances in Neural Informa
|
| 388 |
+
354 tion Processing Systems (2017), I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus,
|
| 389 |
+
355 S. Vishwanathan, and R. Garnett, Eds., vol. 30, Curran Associates, Inc.
|
| 390 |
+
356 [32] WU, Y., AND TAN, H. Short-term traffic flow forecasting with spatial-temporal correlation in a
|
| 391 |
+
357 hybrid deep learning framework. arXiv preprint arXiv:1612.01022 (2016).
|
| 392 |
+
358 [33] YANG, S., MA, W., PI, X., AND QIAN, S. A deep learning approach to real-time parking
|
| 393 |
+
359 occupancy prediction in transportation networks incorporating multiple spatio-temporal data
|
| 394 |
+
360 sources. Transportation Research Part C: Emerging Technologies 107 (2019), 248–265.
|
| 395 |
+
361 [34] YU, B., YIN, H., AND ZHU, Z. Spatio-temporal graph convolutional networks: A deep
|
| 396 |
+
362 learning framework for traffic forecasting. arXiv preprint arXiv:1709.04875 (2017).
|
| 397 |
+
363 [35] YU, J., DE JONG, R., AND LEE, L.-F. Quasi-maximum likelihood estimators for spatial
|
| 398 |
+
364 dynamic panel data with fixed effects when both n and t are large. Journal of Econometrics 146,
|
| 399 |
+
365 1 (2008), 118–134.
|
| 400 |
+
366 [36] YUAN, Z., ZHOU, X., AND YANG, T. Hetero-convlstm: A deep learning approach to traffic
|
| 401 |
+
367 accident prediction on heterogeneous spatio-temporal data. In Proceedings of the 24th ACM
|
| 402 |
+
368 SIGKDD International Conference on Knowledge Discovery & Data Mining (2018), pp. 984–
|
| 403 |
+
369 992.
|
| 404 |
+
370 [37] ZHENG, C., FAN, X., WANG, C., AND QI, J. Gman: A graph multi-attention network for
|
| 405 |
+
371 traffic prediction. In Proceedings of the AAAI Conference on Artificial Intelligence (2020),
|
| 406 |
+
372 vol. 34, pp. 1234–1241.
|
| 407 |
+
373 [38] ZHOU, S., BONDELL, H., TORDESILLAS, A., RUBINSTEIN, B. I., AND BAILEY, J. Early
|
| 408 |
+
374 identification of an impending rockslide location via a spatially-aided gaussian mixture model.
|
| 409 |
+
375 The Annals of Applied Statistics 14, 2 (2020), 977–992.
|
| 410 |
+
|
| 411 |
+
1. For all authors...
|
| 412 |
+
|
| 413 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 414 |
+
(b) Did you describe the limitations of your work? [Yes] We describe limitations in discussion section
|
| 415 |
+
(c) Did you discuss any potential negative societal impacts of your work? [No]
|
| 416 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 417 |
+
|
| 418 |
+
2. If you are including theoretical results...
|
| 419 |
+
|
| 420 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 421 |
+
|
| 422 |
+
3. If you ran experiments...
|
| 423 |
+
|
| 424 |
+
(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] We upload data and code to github
|
| 425 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Please check training details in simulation and real case section
|
| 426 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
|
| 427 |
+
(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] They are included in training details
|
| 428 |
+
|
| 429 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 430 |
+
|
| 431 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 432 |
+
(b) Did you mention the license of the assets? [Yes]
|
| 433 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
|
| 434 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 435 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 436 |
+
|
| 437 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 438 |
+
|
| 439 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 440 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 441 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/fARM4P0gAJV/fARM4P0gAJV_content_list.json
ADDED
|
@@ -0,0 +1,1161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Explainable Spatio-Temporal Forecasting with Shape Functions ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
122,
|
| 9 |
+
821,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
222,
|
| 20 |
+
578,
|
| 21 |
+
276
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
313,
|
| 32 |
+
535,
|
| 33 |
+
329
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "1 Spatio-temporal modeling and forecasting are challenging due to their complicated \n2 spatial dependence, temporal dynamics, and scenarios. Many statistical models, \n3 such as Spatial Auto-regression Model (SAR) and Spatial Dynamic Panel Data \n4 Model (SDPD), are restricted by a pre-specified spatial weight matrix and thus \n5 are limited to reflect its flexibility. Graph-based or convolution-based methods \n6 can learn more flexible representations, but they fail to show the exact interactions \n7 between locations due to the lack of explainability. This paper proposes a spatial re \n8 gression model with shape functions to address the limitations of existing methods. \n9 Our method learns the shape functions by incorporating shape constraints, which \n10 are able to capture spatial variability or distance-based effects over distance. There \n11 fore, our approach enjoys a learnable spatial weight matrix with a distance-based \n12 explanation. We demonstrate our method’s efficiency and forecasting performance \n13 on synthetic and real data. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
148,
|
| 42 |
+
344,
|
| 43 |
+
767,
|
| 44 |
+
525
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "14 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
551,
|
| 55 |
+
312,
|
| 56 |
+
569
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "15 Spatio-temporal data is widely observed in many areas, such as transportation (33; 27), climatology \n16 (2), and environmental research(19). The popularity of spatio-temporal data brings varieties of tasks \n17 for researchers, and one of the key tasks is forecasting. Spatio-temporal data has some inherent \n18 characteristics, namely, spatial dependence and temporal dynamics, which need to be considered for \n19 modeling and forecasting. \n20 Spatial dependence means that the observations at different locations are not independent, and \n21 observations at closer locations often have a stronger correlation. In the statistics community, \n22 extensive research has been conducted to model spatial dependence, and various spatial models have \n23 been proposed. For example, in the spatial autoregressive (SAR) models, the spatial dependence is \n24 modeled by a product of an unknown parameter and a pre-specified spatial weight matrix (4; 1; 11; 12). \n25 Combined with the panel data, various types of spatial panel data models have been used to analyze \n26 spatio-temporal data (35; 13; 7; 22). One limitation of the autoregressive models is that the elements \n27 of the spatial weight matrix are pre-specified, such as an inverse distance. Although these pre \n28 specified spatial weight matrices are applied to capture decreased distance-based effects, they fail to \n29 capture complex distance relations in real-world applications. \n30 Researchers in the computer science community have developed various methods modeling spatio \n31 temporal data using deep neural networks. Various neural network architectures have been proposed \n32 and applied to spatio-temporal forecasting, for example, spatio-temporal LSTM (31), fully connected \n33 gated graph architecture (20), Convolutional LSTM (23) and etc. One advantage of these methods \n34 is that they can incorporate unstructured data and rely on a high-performance computing platform \n35 to learn complicated representations for spatio-temporal problems. However, a critical limitation of \n36 these methods is that they fail to explain how the spatial interaction works explicitly. The lack of \n37 interpretability restricts its reliability and deep insights into the underlying spatio-temporal process. \n38 The explanation can be obtained if we can estimate the coefficient matrix that intuitively explains \n39 spatio-temporal interactions. \n40 In this paper, we propose an Explainable Spatio-Temporal Forecasting (ESTF) model, which utilizes \n41 a spatial autoregressive model with shape functions to address the current limitations. Our method \n42 extends the vector autoregressive (VAR) model (24) by incorporating distance information into the \n43 temporal coefficient matrix using shape functions (3). The shape constraints are designed to be \n44 consistent with the common fact that observations from neighbours have stronger spatial dependence \n45 versus long-distance pairs. It is known as Tobler’s First Law, which is \"Everything is related to \n46 everything else, but near things are more related than distant things\"(26; 18). Unlike the pre-specified \n47 spatial weight matrix, this coefficient matrix is learnable and is thus more flexible in capturing \n48 real-world complex spatial relations. Moreover, the shape functions are represented as a combination \n49 of basis functions, and thus a smaller number of parameters needs to be estimated. Finally, ESTF can \n50 be easily extended to forecasting in non-stationary scenarios using a dynamic spatial weight matrix. \n51 We conduct experiments on both simulated and real data, and the results demonstrate that our method \n52 achieves better forecast accuracy and is computationally efficient and more explainable. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
147,
|
| 65 |
+
583,
|
| 66 |
+
825,
|
| 67 |
+
652
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
145,
|
| 76 |
+
659,
|
| 77 |
+
825,
|
| 78 |
+
797
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
803,
|
| 88 |
+
825,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
147,
|
| 98 |
+
92,
|
| 99 |
+
825,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
147,
|
| 109 |
+
140,
|
| 110 |
+
825,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "53 2 Related work ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
148,
|
| 121 |
+
342,
|
| 122 |
+
316,
|
| 123 |
+
359
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "54 Statistical models Several works focus on temporal dynamics when considering spatio-temporal \n55 forecasting problems. The classical time series models, such as VAR, and ARIMA models, are applied \n56 to spatio-temporal process modeling(21; 38). Besides, a spatial weight matrix is also introduced to the \n57 ARIMA model to capture spatial dependence (28). The non-stationarity, particularly unit-root non \n58 stationarity, is mainly modeled by ARIMA or Co-integration models. In addition, spatial regression \n59 models or panel data are classical models in econometrics and can also be applied to model spatio \n60 temporal problems. These models, for example, spatial auto-regression models, take spatial weight \n61 matrix into consideration and estimate parameters in the framework of regression. However, the \n62 common characteristics of these models need a pre-specified spatial weight matrix(35; 6). Elements \n63 in the matrices are generally an inverse distance of corresponding locations. Meanwhile, these \n64 spatial models focus on statistical inference on the scalar parameters placed before the spatial weight \n65 matrix(25). Although there are many choices for the spatial weight matrix, such as inverse distance, \n66 adjacency relationships, and K-nearest neighbors, there is a lack of research on estimating the spatial \n67 weight matrix. The pre-specified spatial weight matrix restricts models’ application and fails to \n68 capture more complicated underlying spatial dependence. Some researchers developed a sparse \n69 spatio-temporal model that can estimate a sparse spatial weight matrix (17). The strict sparse setting \n70 also restricts the wide application of the spatial weight matrix. \n71 Graph-based methods Graph-based methods are widely applied for a non-Euclidean domain. \n72 Some types of spatio-temporal data, for example, traffic flow data or brain network data, can be \n73 represented as graphs. The graph structures well model the complicated spatial dependence. Thus, \n74 the definition or pre-specified graphs structure is normally required when developing a graph-based \n75 model. Related works can be found in (30; 14). The common typical method is GraphCNN, which is \n76 to apply a convolutional transformation to the neighbors of each node (29; 34). The graph convolution \n77 can capture patterns and features in the spatial domain. Graph-based methods have been proposed \n78 and widely applied to lots of real cases. Traffic flow data modeling and forecasting is a popular topic \n79 in this area (30; 20). Other topics, for example, climate sensor data (16), video (10) and etc, are also \n80 applied by variant graph-based models. RNN or LSTM combined with graphs, i.e., a sequence of \n81 graphs, are also considered in spatio-temporal forecasting problems (10). \n82 CNN-based methods Unlike graph-based methods, CNN-based methods are more suitable for \n83 modeling spatio-temporal data collected in regular grid locations. It applies filters to find relationships \n84 between neighboring inputs. Although some works (32) applied convolution neural networks to \n85 model non-grid traffic data, it is more common to see CNN-based methods process grid structures, \n86 e.g., images, video rather than a general domain. As some spatio-temporal data are collected from a \n87 regular grid in the Euclidean space (29), they thus can be viewed as a kind of special image. The CNN \n88 structure combined with RNN or LSTM has been developed to make forecasting for spatio-temporal \n89 data, for example, diffusion convolutional RNN (15), Convolutional LSTM networks (23; 36)and etc. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
145,
|
| 132 |
+
376,
|
| 133 |
+
825,
|
| 134 |
+
611
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "",
|
| 141 |
+
"bbox": [
|
| 142 |
+
147,
|
| 143 |
+
630,
|
| 144 |
+
825,
|
| 145 |
+
781
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "",
|
| 152 |
+
"bbox": [
|
| 153 |
+
147,
|
| 154 |
+
800,
|
| 155 |
+
825,
|
| 156 |
+
911
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "90 3 Proposed method ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
150,
|
| 166 |
+
89,
|
| 167 |
+
352,
|
| 168 |
+
107
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 2
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "3.1 Problem formulation and notation ",
|
| 175 |
+
"text_level": 1,
|
| 176 |
+
"bbox": [
|
| 177 |
+
163,
|
| 178 |
+
118,
|
| 179 |
+
452,
|
| 180 |
+
133
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 2
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "We use a $n \\times 1$ vector $\\mathbf { X _ { t } } ~ = ~ \\{ \\mathbf { x _ { 1 t } } , \\mathbf { x _ { 2 t } } , \\cdot \\cdot \\cdot , \\mathbf { x _ { n t } } \\}$ to denote observations at time $t$ , where $n$ is the number of locations. At each location $i$ , $\\bf { S _ { i } } = ( c _ { i } ^ { x } , c _ { i } ^ { y } )$ is the coordinates of the location $i$ . The distance between location $\\mathbf { S _ { i } }$ and $\\mathbf { S _ { j } }$ is $d _ { i j } = \\sqrt { ( d _ { i j } ^ { x } ) ^ { 2 } + ( d _ { i j } ^ { y } ) ^ { 2 } }$ , where $d _ { i j } ^ { x } = | c _ { i } ^ { x } - c _ { j } ^ { x } |$ and $d _ { i j } ^ { y } = | c _ { i } ^ { y } - c _ { j } ^ { y } |$ . Our goal is to make forecasting for spatio-temporal data: given training data set $\\mathbf { X _ { 1 } } , \\mathbf { X _ { 2 } } , \\cdots , \\mathbf { X _ { T } }$ , we would like to make forecasting for the next $h$ , $\\hat { \\mathbf { X } } _ { T + 1 } , \\cdot \\cdot \\cdot , \\hat { \\mathbf { X } } _ { T + h }$ . ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
168,
|
| 189 |
+
143,
|
| 190 |
+
826,
|
| 191 |
+
232
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 2
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "3.2 The stationary spatio-temporal model with shape functions ",
|
| 198 |
+
"text_level": 1,
|
| 199 |
+
"bbox": [
|
| 200 |
+
161,
|
| 201 |
+
244,
|
| 202 |
+
622,
|
| 203 |
+
261
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 2
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "98 We first consider the stationary case. To model the spatio-temporal stationary process, we consider \n99 the following model ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
151,
|
| 212 |
+
270,
|
| 213 |
+
823,
|
| 214 |
+
299
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "equation",
|
| 220 |
+
"img_path": "images/c4ae415f4c4435398d331df745db97e8ef13a9695838b5efdb482d2fd41396d3.jpg",
|
| 221 |
+
"text": "$$\n\\mathbf { X _ { t } } = \\sum _ { \\mathbf { k } = 1 } ^ { \\mathbf { p } } \\mathbf { W _ { k } } \\mathbf { X _ { t - k } } + \\epsilon _ { \\mathbf { t } } ,\n$$",
|
| 222 |
+
"text_format": "latex",
|
| 223 |
+
"bbox": [
|
| 224 |
+
408,
|
| 225 |
+
296,
|
| 226 |
+
586,
|
| 227 |
+
339
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "100 where $\\mathbf { W _ { k } }$ is a spatial weight matrix for capturing the spatial dependence at $\\log k$ , and $\\epsilon _ { \\mathbf { t } }$ is white noise. Moreover, we assume the 101 $( i , j )$ th element of $\\mathbf { W _ { k } }$ , $w _ { i j } ^ { ( k ) }$ , depends on the distance $d _ { i j }$ . That is, 102 w(k)ij depends on a function $f _ { k } ( d _ { i j } )$ . ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
142,
|
| 236 |
+
338,
|
| 237 |
+
826,
|
| 238 |
+
390
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "103 For spatio-temporal data, the spatial dependence, represented by $w _ { i j } ^ { ( k ) }$ , between locations decreases \n104 as the distance between two locations increases. In other words, there is a shape constraint for \n105 the function $f _ { k } ( d )$ , such as a decreasing function. In order to estimate the shape function, we \n106 model $f _ { k } ( d )$ as a linear combination of basis functions $g _ { i } ( d ) , i = 1 , 2 , \\cdots , m$ . More specifically, \n107 the shape function $f _ { k } ( d )$ is a linear combination of basis functions and coefficients with positive \n108 value $\\bar { f _ { k } } ( d ) = a _ { 1 , k } ^ { 2 } \\bar { g _ { 1 } } ( \\dot { d } ) + \\cdot \\cdot \\cdot + a _ { m , k } ^ { 2 } g _ { m } ( d )$ , where $a _ { 1 , k } , \\cdots , a _ { m , k }$ are parameters to be estimated. \n109 The constraint of decrease needs parameters non-negative and thus each parameters squared. The \n110 spatial weight matrix can take the value of decreased shape function directly. The element of $\\mathbf { W _ { k } }$ \n111 is $w _ { i j . } ^ { ( k ) } = f _ { k } ( d _ { i j } )$ . The details of the shape function and the corresponding basis functions can be \n112 found in Section 3.4 ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
140,
|
| 247 |
+
398,
|
| 248 |
+
826,
|
| 249 |
+
544
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "The parameters in shape functions can be estimated from the neural network illustrated in Figure 1. The neural network can be trained from the following criterion: ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
550,
|
| 259 |
+
821,
|
| 260 |
+
579
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/3c4f2f07abe3e5eab66a7d9bdb6eebdff45eb1dbab0f6f063aca42284c6769cb.jpg",
|
| 267 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\{ W _ { k } \\} _ { k = 1 } ^ { p } } \\sum _ { t = 1 } ^ { T } | | \\mathbf { X _ { t } } - \\hat { \\mathbf { X _ { t } } } | | ^ { 2 } = \\sum _ { \\mathbf { t } = 1 } ^ { \\mathbf { T } } | | \\mathbf { X _ { t } } - \\sum _ { \\mathbf { k } = 1 } ^ { \\mathbf { p } } \\hat { \\mathbf { W _ { k } } } \\hat { \\mathbf { X _ { t - k } } } | | ^ { 2 } .\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
303,
|
| 271 |
+
579,
|
| 272 |
+
694,
|
| 273 |
+
623
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "113 3.3 The non-stationary spatio-temporal model with time-variant shape functions ",
|
| 280 |
+
"text_level": 1,
|
| 281 |
+
"bbox": [
|
| 282 |
+
150,
|
| 283 |
+
636,
|
| 284 |
+
745,
|
| 285 |
+
651
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "114 The static spatial weight matrix $\\mathbf { W _ { k } }$ can reflect spatial dependence and thus can be applied to \n115 stationary scenarios. Next, we consider the nonstationary case. Therefore, we extend the stationary \n116 model to non-stationary cases. The spatial weight matrices only reflect static relationships across time \n117 lags in the static model. Unlike these settings, we change spatial weight matrices to be time-variant. \n118 The spatial weight matrices formed by time-variant shape functions can thus capture non-stationary \n119 dynamic spatial dependence. The non-stationary model has the form below, ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
140,
|
| 294 |
+
660,
|
| 295 |
+
826,
|
| 296 |
+
744
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "equation",
|
| 302 |
+
"img_path": "images/7692f06c13f7b821248c9d700167adf4a808b7e5354e9ce40a5599b5a033e87a.jpg",
|
| 303 |
+
"text": "$$\n\\mathbf { X _ { t } } = \\sum _ { \\mathbf { k } = 1 } ^ { \\mathbf { p } } \\mathbf { W _ { t , k } } \\mathbf { X _ { t - k } } + \\epsilon _ { \\mathbf { t } } .\n$$",
|
| 304 |
+
"text_format": "latex",
|
| 305 |
+
"bbox": [
|
| 306 |
+
403,
|
| 307 |
+
744,
|
| 308 |
+
593,
|
| 309 |
+
787
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "where $\\epsilon _ { \\mathbf { t } }$ is white noise, and $\\mathbf { W _ { t , k } }$ relies on shape function $f _ { t , k } ( d )$ . Similar with stationary settings, the time-variant shape functions are still represented as a linear combination of basis functions $g _ { i } ( d ) , i = 1 , 2 , \\cdots , \\bar { m }$ . The coefficients are therefore time-variant. The shape function at time $t$ has the form below $f _ { t , k } ( d ) = a _ { 1 , t , k } ^ { 2 } g _ { 1 } ( d ) + \\cdot \\cdot \\cdot + a _ { m , t , k } ^ { 2 } g _ { m } ( d )$ . Unlike stationary setting, the coefficients of nonstationary setting, $\\{ a _ { i , t , k } \\} _ { i = 1 } ^ { m }$ , depend on the time $t$ . The non-stationary model can be trained from the criterion by minimizing ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
173,
|
| 318 |
+
787,
|
| 319 |
+
826,
|
| 320 |
+
873
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "equation",
|
| 326 |
+
"img_path": "images/1e817e14bf1104bc56a96249773586bd9a8f29560c75cacceabdd5b1dc7f3779.jpg",
|
| 327 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\{ W _ { t } , k \\} _ { k = 1 } ^ { p } } | | \\mathbf { X _ { t } } - \\hat { \\mathbf { X _ { t } } } | | ^ { 2 } = | | \\mathbf { X _ { t } } - \\sum _ { \\mathbf { k } = 1 } ^ { \\mathbf { p } } \\hat { \\mathbf { W } } _ { \\mathbf { t } , \\mathbf { k } } \\hat { \\mathbf { X } } _ { \\mathbf { t - k } } | | ^ { 2 } .\n$$",
|
| 328 |
+
"text_format": "latex",
|
| 329 |
+
"bbox": [
|
| 330 |
+
321,
|
| 331 |
+
873,
|
| 332 |
+
676,
|
| 333 |
+
916
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "image",
|
| 339 |
+
"img_path": "images/1b8f28065b5df206375a0dece1e19a6c9d354e44db886268da7cfb359b1d8c90.jpg",
|
| 340 |
+
"image_caption": [
|
| 341 |
+
"Figure 1: The neural network for the stationary spatio-temporal process (left) and non-stationary spatio-temporal process (right). "
|
| 342 |
+
],
|
| 343 |
+
"image_footnote": [],
|
| 344 |
+
"bbox": [
|
| 345 |
+
200,
|
| 346 |
+
154,
|
| 347 |
+
813,
|
| 348 |
+
273
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "122 3.4 The basis functions for shape functions ",
|
| 355 |
+
"text_level": 1,
|
| 356 |
+
"bbox": [
|
| 357 |
+
142,
|
| 358 |
+
354,
|
| 359 |
+
485,
|
| 360 |
+
369
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 3
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "123 The shape functions are integrated into our model to obtain distance-based explanations in stationary \n124 and non-stationary scenarios. The motivation of the proposed shape functions is that as the distance \n125 between two observations increases, the effects between these two locations decreases. These distance \n126 based effects can be reflected in spatial weight matrix W and each element in the matrix can measure \n127 how the corresponding locations interact. The shape function is represented as a linear combination of \n128 basis functions. The basis functions, satisfying shape constraint, rely on the corresponding definition \n129 of basis functions. \n130 Definition of basis functions for various shape constraints. We list the definition of basis functions \n131 for increased and decreased shape (3). The distance quantile among $\\{ d _ { i _ { 1 } , j _ { 1 } } , d _ { i _ { 2 } , j _ { 2 } } , \\dots , d _ { i _ { N } , j _ { N } } \\}$ at \n132 quantile level $q _ { 1 } , q _ { 2 } , \\cdots , q _ { m }$ is denoted by $\\{ d _ { ( 1 ) } , d _ { ( 2 ) } , \\cdots , d _ { ( m ) } \\}$ , where $0 \\leq q _ { 1 } < q _ { 2 } < \\cdot \\cdot \\cdot < q _ { m } \\leq$ \n1 and 133 $\\{ q _ { 1 } , q _ { 2 } , \\cdot \\cdot \\cdot , q _ { m } \\} = \\{ { \\textstyle \\frac { 1 } { m } } , { \\textstyle \\frac { 2 } { m } } , \\cdot \\cdot \\cdot , 1 \\}$ . Here, we can set the number of $m < < n ^ { 2 }$ , and thus, the \nnumber of parameters is significantly reduced. \n135 For the constraint of monotone decreasing function, the basis function is defined as $g _ { i } ( d ) = \\mathbf { 1 } _ { \\left\\{ \\mathbf { d } < \\mathbf { d } _ { \\left( \\mathbf { i } \\right) } \\right\\} }$ . \n136 The basis function for the shape function with the constraint of concave decrease is defined as \n137 $g _ { i } ( d ) = ( d _ { ( i ) } - d ) \\mathbf { 1 } _ { \\{ \\mathbf { d } _ { ( i ) } \\leq \\mathbf { d } \\} }$ and convex decrease is defined as $g _ { i } ( d ) = ( d _ { ( i ) } - d ) \\mathbf { 1 } _ { \\{ \\mathbf { d } \\leq \\mathbf { d } _ { ( i ) } \\} }$ , for \n138 $1 \\leq i \\leq m$ . Figure 2 shows the definition of basis functions for monotone decreased and increased \n139 shape functions, respectively. We only present four basis functions for each shape and each of them \n140 is related to four quantile levels. The dashed lines indicate the turning points for each basis function \n141 and they equal one or zero at the beginning and turn to zero or one at turning points. \n143 The stationary model requires fixed shape functions and related spatial weight matrix are time \n144 invariant. Given training data set $\\mathbf { X _ { 1 } } , \\mathbf { X _ { 2 } } , \\cdots , \\mathbf { X _ { T } }$ , we can estimate spatial weight matrix \n145 ${ \\hat { W } } _ { 1 } , { \\hat { W } } _ { 2 } , \\cdot \\cdot \\cdot , { \\hat { W } } _ { p }$ and make forecasting iteratively. That is $\\begin{array} { r } { \\hat { { \\bf X } } _ { T + 1 } = \\sum _ { k = 1 } ^ { p } \\hat { W } _ { k } { \\bf X _ { T + 1 - k } } , \\hat { { \\bf X } } _ { T + 2 } = } \\end{array}$ \n146 $\\begin{array} { r } { \\hat { W } _ { 1 } \\hat { \\mathbf { X } } _ { T + 1 } + \\sum _ { k = 2 } ^ { \\bar { p } } \\hat { W } _ { k } \\mathbf { X } _ { \\mathbf { T } + 2 - \\mathbf { k } } , \\cdot \\cdot \\cdot \\hat { \\mathbf { X } } _ { T + h } = \\sum _ { k = 1 } ^ { p } \\hat { W } _ { k } \\hat { \\mathbf { X } } _ { T + h - k } } \\end{array}$ . ",
|
| 367 |
+
"bbox": [
|
| 368 |
+
142,
|
| 369 |
+
385,
|
| 370 |
+
826,
|
| 371 |
+
482
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 3
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "",
|
| 378 |
+
"bbox": [
|
| 379 |
+
140,
|
| 380 |
+
488,
|
| 381 |
+
825,
|
| 382 |
+
560
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "",
|
| 389 |
+
"bbox": [
|
| 390 |
+
140,
|
| 391 |
+
566,
|
| 392 |
+
825,
|
| 393 |
+
667
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "image",
|
| 399 |
+
"img_path": "images/8db77b9cc5e93deb1966a1a21c820773c0c8a69b925b2d3a8fdceab9ce3b175b.jpg",
|
| 400 |
+
"image_caption": [
|
| 401 |
+
"Figure 2: The basis functions for decreased shape (left) and for increased shape (right). The arrows indicate domain of each basis functions. "
|
| 402 |
+
],
|
| 403 |
+
"image_footnote": [],
|
| 404 |
+
"bbox": [
|
| 405 |
+
223,
|
| 406 |
+
705,
|
| 407 |
+
774,
|
| 408 |
+
862
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "",
|
| 415 |
+
"bbox": [
|
| 416 |
+
143,
|
| 417 |
+
116,
|
| 418 |
+
825,
|
| 419 |
+
180
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 4
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "The non-stationary model incorporate time-variant spatial weight matrix ${ \\hat { W } } _ { t , \\cdot } .$ . Given the training data set $\\mathbf { X _ { 1 } } , \\mathbf { X _ { 2 } } , \\cdots , \\mathbf { X _ { T } }$ , we can obtain corresponding shape functions $\\hat { f } _ { 1 , \\cdot } , \\hat { f } _ { 2 , \\cdot } , \\cdot \\cdot \\cdot , \\hat { f } _ { T , \\cdot }$ , where · denotes time lag. For lag $p = 1$ , we can use $\\{ \\hat { f } _ { t } \\} _ { t = 1 } ^ { T }$ to represent time-variant shape functions for convenience. We can make dynamic forecasts for the next $h$ windows. One simple forecasting method is to use $\\hat { W } _ { T , k }$ to make forecast for $\\hat { \\mathbf { X } } _ { T + h }$ , that is ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
185,
|
| 429 |
+
825,
|
| 430 |
+
265
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 4
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "equation",
|
| 436 |
+
"img_path": "images/4508f24ec0ab26b6be9f04261405c76c3af2656ed75072250528a5e07d71067b.jpg",
|
| 437 |
+
"text": "$$\n\\hat { \\mathbf { X } } _ { T + h } = \\sum _ { k = 1 } ^ { p } \\hat { W } _ { T , k } \\mathbf { X } _ { \\mathbf { T } + \\mathbf { h } - \\mathbf { k } } .\n$$",
|
| 438 |
+
"text_format": "latex",
|
| 439 |
+
"bbox": [
|
| 440 |
+
400,
|
| 441 |
+
270,
|
| 442 |
+
596,
|
| 443 |
+
311
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "The alternative method is to retrain the new forecast to obtain the latest shape functions as well as spatial weight matrix. Given long-term forecast window $L$ , we first make short-term forecast for $h$ steps ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
315,
|
| 453 |
+
823,
|
| 454 |
+
356
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "equation",
|
| 460 |
+
"img_path": "images/a72ce3028fb02166a42ed9dfe727a8c277b6ae6822c56d8b8815023d91b535f3.jpg",
|
| 461 |
+
"text": "$$\n\\hat { \\mathbf { X } } _ { T + h } = \\sum _ { k = 1 } ^ { p } \\hat { W } _ { T + h , k } \\mathbf { X } _ { \\mathbf { T } + \\mathbf { h } - \\mathbf { k } } ,\n$$",
|
| 462 |
+
"text_format": "latex",
|
| 463 |
+
"bbox": [
|
| 464 |
+
390,
|
| 465 |
+
354,
|
| 466 |
+
604,
|
| 467 |
+
396
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "where 147 $h = 1 , 2 , \\cdots$ and $\\hat { W } _ { T + h , k }$ is estimated by training forecast value of $\\hat { \\mathbf { X } } _ { T + h - k }$ . We repeat the 148 process until $L$ steps in total have been predicted. ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
147,
|
| 476 |
+
400,
|
| 477 |
+
828,
|
| 478 |
+
429
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "49 We summarize the whole process of our model when making spatio-temporal forecasts. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
156,
|
| 487 |
+
435,
|
| 488 |
+
745,
|
| 489 |
+
450
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "Step 1 Given the observation $\\{ \\mathbf { X _ { t } } \\} _ { \\mathbf { t = 1 } } ^ { \\mathbf { T } }$ and its coordinates, calculate all distance pairs among all locations, denoted by $\\{ d _ { i _ { 1 } , j _ { i } } , \\cdot \\cdot \\cdot , d _ { i _ { N } , j _ { N } } \\}$ . ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
160,
|
| 498 |
+
459,
|
| 499 |
+
826,
|
| 500 |
+
491
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "Step 2 Calculate $\\textstyle \\left\\{ { \\frac { 1 } { m } } , { \\frac { 2 } { m } } , \\cdots , 1 \\right\\}$ quantile levels and obtain corresponding distance quantile value $\\{ d _ { ( 1 ) } , d _ { ( 2 ) } , \\cdots , \\ \" { d _ { ( m ) } } \\}$ . ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
169,
|
| 509 |
+
493,
|
| 510 |
+
825,
|
| 511 |
+
525
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Step 3 Determine the shape constraints and construct corresponding basis functions. Specify the time lag $p$ . ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
161,
|
| 520 |
+
526,
|
| 521 |
+
825,
|
| 522 |
+
556
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Step 4 Train the model according to the illustration of Figure 1. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
179,
|
| 531 |
+
559,
|
| 532 |
+
602,
|
| 533 |
+
574
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "157 4 Experiment ",
|
| 540 |
+
"text_level": 1,
|
| 541 |
+
"bbox": [
|
| 542 |
+
143,
|
| 543 |
+
592,
|
| 544 |
+
303,
|
| 545 |
+
609
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 4
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "158 In order to assess our model in stationary and non-stationary scenarios, we synthesize data. Then, \n159 we apply our model to make some comparisons. On the one hand, we need to evaluate how \n160 the estimated shape functions look and assess their similarity and accuracy. On the other hand, \n161 our model can make spatio-temporal forecasting after estimating for spatial weight matrix. The \n162 basic idea for completing the two goals is to set up the expected shape function and compare \n163 estimated parameters with the real one. Next, we assess the forecasting performance with baseline \n164 models. Codes and data for replicating our experiments are anonymously published at https: \n165 //anonymous.4open.science/r/STVAR-F16E/. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
142,
|
| 554 |
+
622,
|
| 555 |
+
826,
|
| 556 |
+
733
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "166 4.1 Simulation for stationary model ",
|
| 563 |
+
"text_level": 1,
|
| 564 |
+
"bbox": [
|
| 565 |
+
143,
|
| 566 |
+
750,
|
| 567 |
+
434,
|
| 568 |
+
763
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "Here, we synthesize 100 stationary spatio-temporal data sets. The spatial domain consists of 30 locations and their coordinates can be found at https://anonymous.4open.science/r/ STVAR-F16E/. For each location, we observe 500 values. The observation is generated from the stationary model $\\begin{array} { r } { X _ { t } = \\sum _ { k = 1 } ^ { p } W _ { k } X _ { t - k } + \\epsilon _ { t } } \\end{array}$ , where $\\epsilon _ { t }$ is randomly generated from the standard normal distribution. The next step is to construct random spatial weight matrices for each synthesized data set. The shape functions are set to be decreasing, and we set them as a logarithmic function: ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
773,
|
| 578 |
+
826,
|
| 579 |
+
858
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "equation",
|
| 585 |
+
"img_path": "images/c6caf52b3c8cac794927274343b311ebd19e8794b9e513b9db5dcfd1099c6254.jpg",
|
| 586 |
+
"text": "$$\n\\alpha ( - \\log ( d + 1 ) + \\log ( 1 7 0 ) ) ,\n$$",
|
| 587 |
+
"text_format": "latex",
|
| 588 |
+
"bbox": [
|
| 589 |
+
401,
|
| 590 |
+
862,
|
| 591 |
+
594,
|
| 592 |
+
878
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "167 where $\\alpha$ is randomly generated from uniform distribution [0.05,0.06] but kept to be fixed for each \n168 simulated data set. We use $d + 1$ to avoid zero value. This setting can make the real shape function \n169 decrease and make it equal to zero when $d = 1 6 9$ . The stationary model can iteratively generate the \n170 $\\mathbf { X _ { t } }$ given initial value $\\mathbf { X _ { 0 } }$ , where $\\mathbf { X _ { 0 } }$ is randomly generated from a uniform distribution with bounds \n171 [-0.01,0.01]. The time lags are set as $p = 1$ . \n172 Estimation for shape functions. In Figure 3, \n173 the estimated shape function is presented in red, \n174 while the real shape function is presented in blue. \n175 It can be seen that the estimated shape function \n176 can capture the trend of the real shape function. \n177 Training details. The first 300 steps are used as \n178 training data, saving the last 200 steps for eval \n179 uation. We train all models for 100 epochs with \n180 Adam optimizer (5) and a learning rate of 0.01. \n181 The process involves parallel training across 10 \n182 CPUs. We select 100 quantile levels, and thus \n183 100 basis functions $g _ { i } ( d )$ were generated as the \n184 inputs for the model. \n185 Assessment for forecasting. We assess the fore \n186 casting performance for the stationary model \n187 with baseline models. As introduced in the liter \n188 ature review, the baseline models are selected from the VAR model(21), the spatial panel data(SPE) \n189 model that applied pre-specified spatial weigh matrix (28), graph-based models (20; 37) and \n190 convolution-based models (15; 23). The error metrics are mean absolute error and root mean squared \n191 error defined by 1Nn PNj=1 Pni=1 $\\begin{array} { r } { \\frac { 1 } { N n } \\sum _ { j = 1 } ^ { N } \\sum _ { i = 1 } ^ { n } \\frac { \\sum _ { t = T } ^ { T + h } | \\hat { X } _ { i t } ^ { ( j ) } - X _ { i t } ^ { ( j ) } | } { h } } \\end{array}$ , $\\begin{array} { r } { \\frac { 1 } { N n } \\sum _ { j = 1 } ^ { N } \\sum _ { i = 1 } ^ { n } \\sqrt { \\frac { 1 } { h } \\sum _ { t = T } ^ { T + h } ( X _ { i t } ^ { ( j ) } - \\hat { X } _ { i t } ^ { ( j ) } ) ^ { 2 } } } \\end{array}$ , \n192 respectively. The Table 1 shows the six baseline models with the proposed model. As totally we \n193 have 100 synthesised data sets, $X _ { i t } ^ { ( j ) }$ and $\\hat { X } _ { i t } ^ { ( j ) }$ denote $i - t h$ variable in $j - t h$ data sets. $n = 3 0$ is \n194 the number of locations and $N = 1 0 0$ is the number of synthesised data. We conducted one-step \n195 forecasting for the next 200 observations. \n96 Compared with baseline models, the proposed model performs better under the metric MAE and \n97 RMSE. The proposed method outperforms the closest competing method, DC-RNN, by $10 \\%$ . ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
137,
|
| 601 |
+
882,
|
| 602 |
+
828,
|
| 603 |
+
912
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "",
|
| 610 |
+
"bbox": [
|
| 611 |
+
140,
|
| 612 |
+
90,
|
| 613 |
+
826,
|
| 614 |
+
133
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "",
|
| 621 |
+
"bbox": [
|
| 622 |
+
140,
|
| 623 |
+
140,
|
| 624 |
+
486,
|
| 625 |
+
209
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 5
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "",
|
| 632 |
+
"bbox": [
|
| 633 |
+
142,
|
| 634 |
+
215,
|
| 635 |
+
486,
|
| 636 |
+
327
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "",
|
| 643 |
+
"bbox": [
|
| 644 |
+
140,
|
| 645 |
+
333,
|
| 646 |
+
485,
|
| 647 |
+
373
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "image",
|
| 653 |
+
"img_path": "images/3f90af4b01d3f86e6ea9005e43f224ee9862c72c8e5e1f8c38e688ce1b660d08.jpg",
|
| 654 |
+
"image_caption": [
|
| 655 |
+
"Figure 3: The sample of estimated shape function. Distances are shown every $2 0 ^ { t h }$ quantile. "
|
| 656 |
+
],
|
| 657 |
+
"image_footnote": [],
|
| 658 |
+
"bbox": [
|
| 659 |
+
517,
|
| 660 |
+
137,
|
| 661 |
+
794,
|
| 662 |
+
292
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "",
|
| 669 |
+
"bbox": [
|
| 670 |
+
140,
|
| 671 |
+
375,
|
| 672 |
+
826,
|
| 673 |
+
497
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 5
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "text",
|
| 679 |
+
"text": "",
|
| 680 |
+
"bbox": [
|
| 681 |
+
151,
|
| 682 |
+
503,
|
| 683 |
+
825,
|
| 684 |
+
532
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 5
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "198 4.2 Experiments for non-stationary model ",
|
| 691 |
+
"text_level": 1,
|
| 692 |
+
"bbox": [
|
| 693 |
+
142,
|
| 694 |
+
571,
|
| 695 |
+
480,
|
| 696 |
+
588
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 5
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "We conduct a simulation for the non-stationary model with time lag $p = 1$ and synthesize 100 data sets using a similar approach to the stationary model simulation. The initial value $\\mathbf { X _ { 0 } }$ and $\\epsilon _ { t }$ are generated from a uniform and normal distribution respectively. The locations of observations are the same as those in the stationary model simulation. In order to construct $W _ { t }$ , the time-varying shape functions are created under the decreased constraint. The shape function at time $t$ is constructed as ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
173,
|
| 705 |
+
607,
|
| 706 |
+
825,
|
| 707 |
+
678
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 5
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "equation",
|
| 713 |
+
"img_path": "images/8a7723e14b023ebff7f6faa2ed7d026ae7d27c04bb56bd1e5af2b100650cea61.jpg",
|
| 714 |
+
"text": "$$\n\\alpha _ { t } ( - \\log ( d + 1 ) + \\log ( 1 7 0 ) ) ,\n$$",
|
| 715 |
+
"text_format": "latex",
|
| 716 |
+
"bbox": [
|
| 717 |
+
398,
|
| 718 |
+
707,
|
| 719 |
+
598,
|
| 720 |
+
724
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "99 where $\\alpha _ { t }$ controls the level of value at each time $t$ . $\\epsilon _ { t }$ is generated from a normal distribution. $\\mathbf { X _ { 0 } }$ is \n00 generated from a uniform distribution with bound [-0.001,0.001]. \n201 Shape functions settings and estimation. The shape functions are set as time-variant, as they can \n202 simulate the non-stationary process across time. We specified $\\alpha _ { 0 }$ at $t = 0$ from uniform distribution \n203 $[ 1 \\times 1 0 ^ { - 4 } , 2 \\times 1 0 ^ { - 4 } ]$ and then make an interpolation from $\\alpha _ { 0 }$ to $\\alpha _ { 5 0 0 }$ . The total length for every \n204 location is 500 and we set $\\alpha _ { 5 0 0 } = 1 0 \\times \\alpha _ { 0 }$ . For example, generally if $\\alpha _ { 0 } ~ = ~ 0 . 0 0 0 1$ , we have \n205 $\\begin{array} { r } { \\alpha _ { t } = 0 . 0 0 0 1 ( 1 - \\frac { t } { T } ) + 0 . 0 0 1 \\frac { t } { T } } \\end{array}$ , where $T = 5 0 0$ . This setting guarantee that shape functions vary \n206 from lower level to higher level. The larger $\\alpha _ { t }$ is, the more larger distance-based effects they have. \n207 Thus, the corresponding spatial weight matrix consists of dynamic shape functions and can reflect the \n208 non-stationary dependence among each site. We present the estimated shape functions in Figure 4 \n209 and compare them with the real ones. \n10 Training details. Similar to the stationary simulation, the train-test split is $3 0 0 - 2 0 0$ over the data \n11 size of 500. However, we train all models for 100 epochs with Adam optimizer (5) at a learning rate \n12 of 0.001. We train models in parallel across 10 CPUs. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
150,
|
| 729 |
+
752,
|
| 730 |
+
823,
|
| 731 |
+
781
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "",
|
| 738 |
+
"bbox": [
|
| 739 |
+
138,
|
| 740 |
+
786,
|
| 741 |
+
825,
|
| 742 |
+
911
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 5
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "image",
|
| 748 |
+
"img_path": "images/1bb651c4367ceea65a5aca2eebdb4f0acb26ea67b9ed6301cd50eeef841b3a2f.jpg",
|
| 749 |
+
"image_caption": [
|
| 750 |
+
"Figure 4: The sample of estimated shape function for the 120 testing time steps. Distances are shown every $4 0 ^ { t h }$ quantile. "
|
| 751 |
+
],
|
| 752 |
+
"image_footnote": [],
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
85,
|
| 756 |
+
818,
|
| 757 |
+
339
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "",
|
| 764 |
+
"bbox": [
|
| 765 |
+
151,
|
| 766 |
+
405,
|
| 767 |
+
826,
|
| 768 |
+
446
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 6
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Forecasting performance. The forecasting performance is assessed by the same metrics used in the previous simulation for the stationary case. We made a one-step forecast by our model. As for the baseline models, we adjusted their published code accordingly. The results show that the proposed model can still capture non-stationary processes compared with baseline models. The proposed method outperforms the other competing methods. The error metric is shown in Table 1. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
453,
|
| 778 |
+
825,
|
| 779 |
+
522
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 6
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "table",
|
| 785 |
+
"img_path": "images/d5c85dc2380203f3845b090f82221f7f8063b4c461d3066f95eb95545ba74c87.jpg",
|
| 786 |
+
"table_caption": [
|
| 787 |
+
"Table 1: The error metrics with baseline models for simulation. "
|
| 788 |
+
],
|
| 789 |
+
"table_footnote": [],
|
| 790 |
+
"table_body": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"2\">Stationary Simulation</td><td colspan=\"2\">Non-stationary Simulation</td></tr><tr><td>MAE</td><td>RMSE</td><td>MAE</td><td>RMSE</td></tr><tr><td>VAR</td><td>2.9611 ± 1.8573</td><td>3.2588 ± 1.8077</td><td>2.4426 ±1.2285</td><td>2.7676 ± 1.2015</td></tr><tr><td>SPM</td><td>1.8850 ± 0.6348</td><td>1.8671 ± 0.6778</td><td>2.1918 ± 0.7350</td><td>2.2161 ± 0.6876</td></tr><tr><td>DC-RNN</td><td>0.8960 ± 0.0370</td><td>1.1168 ± 0.0426</td><td>0.9017 ± 0.0358</td><td>1.1328 ± 0.0463</td></tr><tr><td>FC-GAGA</td><td>2.5425 ± 0.2965</td><td>3.1066 ± 0.3633</td><td>1.0270 ± 0.0080</td><td>1.2939 ± 0.0120</td></tr><tr><td>GMAN</td><td>1.6806 ± 0.1491</td><td>1.9293 ± 0.1483</td><td>1.5714 ± 0.1104</td><td>1.8608 ± 0.1155</td></tr><tr><td>ConvLSTM</td><td>2.9495 ± 0.2980</td><td>3.2509 ± 0.2887</td><td>2.2478 ± 0.2295</td><td>2.5469 ± 0.2324</td></tr><tr><td>ESTF</td><td>0.7997 ± 0.0015</td><td>1.0017 ± 0.0016</td><td>0.8075 ± 0.0016</td><td>1.0112 ± 0.0020</td></tr></table>",
|
| 791 |
+
"bbox": [
|
| 792 |
+
176,
|
| 793 |
+
564,
|
| 794 |
+
821,
|
| 795 |
+
708
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 6
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "218 4.3 Real case studies ",
|
| 802 |
+
"text_level": 1,
|
| 803 |
+
"bbox": [
|
| 804 |
+
143,
|
| 805 |
+
750,
|
| 806 |
+
330,
|
| 807 |
+
763
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 6
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Air quality data. We apply our model to air quality data, which records air quality in California over 2021 1. The daily mean of $\\mathrm { P M } 2 . 5$ is recorded across 172 sites. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
166,
|
| 816 |
+
776,
|
| 817 |
+
823,
|
| 818 |
+
805
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 6
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "We obtain the first 200 steps for training and perform forecasting for the next 165 steps. All models are trained for 100 epochs using Adam optimizer (5), at a learning rate of 0.01 and batch size of 50. We present the estimated time-variant shape functions in supplemental file. The value of shape functions decays to zero at around 5.926, which is $80 \\%$ quantile in the sample of distance pairs. In other words, the distance-based effects decay to zero at a distance equal or larger than 5.926. Our ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
810,
|
| 828 |
+
825,
|
| 829 |
+
881
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 6
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "226 model has ideal performance with low time consummation compared with baseline models. We put \n227 detailed forecasting results of simulation and real cases in a supplemental file. \n228 The result is shown in Table 2. The ESTF performs best in terms of RMSE, while the DC-RNN \n229 method performs best in terms of MAE. For the computational time, the ESTF method is significantly \n230 faster than most machine learning methods, and only takes around $1 / 1 0$ time of DC-RNN. In Figure 5, \n231 MAE, RMSE, and time are presented with different numbers of $m$ . As $m$ increases, the computational \n232 time increases while both MAE and RMSE decrease. There is a significant increase in the forecasting \n233 performance when $m$ increases from 10 to 50. For $m > 5 0$ , the forecasting performance does not \n234 increase much as $m$ increases. \n235 One key advantage of the ESTF method is that we can make an explicit distance-based explanation \n236 for our dataset. Figure 6 shows the distance-based effects at time $t = 9$ . We only present the effects \n237 using a threshold to obtain a more concise visualization. The estimated shape function $\\hat { f } _ { 9 }$ ranges \n238 from 0 to 9.8 and we set 5 as the threshold. The red line indicates the value of the shape function \n239 larger than 7, while the gray line indicates the value between 5 and 7. Figure 6 shows how any two \n240 locations interact and measure the distance-based effects quantitatively. For example, air quality \n241 monitoring sites around the Greater Los Angeles(red circle in Figure 6) area have a strong spatial \n242 interaction with each other, such as node 7 and node 8. ",
|
| 836 |
+
"bbox": [
|
| 837 |
+
143,
|
| 838 |
+
90,
|
| 839 |
+
825,
|
| 840 |
+
119
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 7
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "image",
|
| 846 |
+
"img_path": "images/dd4d473906519ef5ba947df7fea59f24905c50959bed2dd219ffc764876dfad4.jpg",
|
| 847 |
+
"image_caption": [
|
| 848 |
+
"Figure 6: The significant distance-based effect Figure 5: Comparing efficiency vs. performanceamong all 30 locations. trade-off at different quantile values. "
|
| 849 |
+
],
|
| 850 |
+
"image_footnote": [],
|
| 851 |
+
"bbox": [
|
| 852 |
+
178,
|
| 853 |
+
137,
|
| 854 |
+
495,
|
| 855 |
+
309
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 7
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "image",
|
| 861 |
+
"img_path": "images/46cdb021a33e3b06570a98c9f9aad44cf364e116f094694b1e15aa7d5b312e72.jpg",
|
| 862 |
+
"image_caption": [],
|
| 863 |
+
"image_footnote": [],
|
| 864 |
+
"bbox": [
|
| 865 |
+
545,
|
| 866 |
+
142,
|
| 867 |
+
774,
|
| 868 |
+
303
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "",
|
| 875 |
+
"bbox": [
|
| 876 |
+
140,
|
| 877 |
+
373,
|
| 878 |
+
825,
|
| 879 |
+
470
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "",
|
| 886 |
+
"bbox": [
|
| 887 |
+
143,
|
| 888 |
+
477,
|
| 889 |
+
825,
|
| 890 |
+
590
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 7
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "4.4 $S O _ { 2 }$ data ",
|
| 897 |
+
"text_level": 1,
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
607,
|
| 901 |
+
279,
|
| 902 |
+
621
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 7
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "Texas is the second largest manufacturing state in the USA and prediction for $S O _ { 2 }$ is critical task for researchers. The data 2 records daily $S O _ { 2 }$ at 31 locations in 2021. More detailed spatial information can be found in the supplemental file. The numeric result is listed in Table 2. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
632,
|
| 912 |
+
825,
|
| 913 |
+
674
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 7
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "table",
|
| 919 |
+
"img_path": "images/df1a6660577b2bd246541ce2256798752f4a9b22efcef7d70163c4e0b2d2545c.jpg",
|
| 920 |
+
"table_caption": [
|
| 921 |
+
"Table 2: The error metrics with baseline models for real case study. Clock time (in seconds) for real case study is recorded when training each model for 100 epochs on a single CPU. "
|
| 922 |
+
],
|
| 923 |
+
"table_footnote": [],
|
| 924 |
+
"table_body": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"6\">Air quality data</td><td rowspan=\"2\">SO2 data Training Time (s)</td><td rowspan=\"2\">Inference Time (s)</td></tr><tr><td>MAE</td><td>RMSE</td><td>Training time (s)</td><td>Inference Time (s)</td><td>MAE</td><td>RMSE</td></tr><tr><td>VAR</td><td>16.9844</td><td>22.3410</td><td>3.56</td><td>0.04</td><td>6.2705</td><td>9.1388</td><td>3.330</td><td>0.016</td></tr><tr><td>SPM</td><td>8.4547</td><td>13.8262</td><td>0.31</td><td>0.03</td><td>7.1453</td><td>9.1086</td><td>0.143</td><td>0.027</td></tr><tr><td>DC-RNN</td><td>4.7157</td><td>9.3873</td><td>203</td><td>1.211</td><td>3.5094</td><td>6.8681</td><td>264.215</td><td>1.366</td></tr><tr><td>FC-GAGA</td><td>7.8671</td><td>18.1870</td><td>181</td><td>2.759</td><td>4.5976</td><td>7.7528</td><td>169.425</td><td>2.889</td></tr><tr><td>GMAN</td><td>12.5268</td><td>17.3817</td><td>140</td><td>1.823</td><td>4.1099</td><td>7.4806</td><td>172.016</td><td>1.581</td></tr><tr><td>ConvLSTM</td><td>12.6292</td><td>17.9149</td><td>53</td><td>1.940</td><td>4.1445</td><td>8.0688</td><td>96.233</td><td>1.656</td></tr><tr><td>ESTF</td><td>5.2237</td><td>9.2169</td><td>22</td><td>1.625</td><td>4.2966</td><td>6.8307</td><td>31.050</td><td>1.868</td></tr></table>",
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
727,
|
| 928 |
+
821,
|
| 929 |
+
825
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 7
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "247 Similar conclusions can be drawn in $S O _ { 2 }$ data as that of air quality data. The ESTF model performs \n248 best under the RMSE metric, while DC-RNN is best in the MAE metric. In terms of training time, \n251 The efficiency analysis and performance at different quantiles are shown in Figure 7. Together with \n252 Figure 5, we can see that the increasing number of basis functions does not have much improvement \n253 when the number of basis functions is larger than 50, while the training time increases as the number \n254 of basis functions increases. The spatial distribution at time $t = 9 0$ is presented in Figure 8 where \n255 coordinates are denoted by latitude and longitude. Two significant clusters, representing Houston \n256 and Dallas respectively, have the strongest distance-based effect. It quantitatively shows how these \n257 neighbors affect each other. Counties around Dallas-Fort Worth metropolitan area show strong \n258 interaction, which should be noted by environmental policy-makers. More detailed results are \n259 presented in the supplemental file. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
140,
|
| 938 |
+
858,
|
| 939 |
+
826,
|
| 940 |
+
887
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 7
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "image",
|
| 946 |
+
"img_path": "images/99b92a32e5602d31d5e3d0bd9d9e3978f4094cd4390f92648068ad7dc59e4c58.jpg",
|
| 947 |
+
"image_caption": [
|
| 948 |
+
"Figure 8: The significant distance-based effect Figure 7: Comparing efficiency vs. performanceamong all 31 locations at $t = 9 0$ trade-off at different quantile values. "
|
| 949 |
+
],
|
| 950 |
+
"image_footnote": [],
|
| 951 |
+
"bbox": [
|
| 952 |
+
178,
|
| 953 |
+
140,
|
| 954 |
+
495,
|
| 955 |
+
313
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 8
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "image",
|
| 961 |
+
"img_path": "images/235426f14840fbb29557b205ac1dba42bc7e460606884504bc3963cd61bc31a0.jpg",
|
| 962 |
+
"image_caption": [],
|
| 963 |
+
"image_footnote": [],
|
| 964 |
+
"bbox": [
|
| 965 |
+
545,
|
| 966 |
+
145,
|
| 967 |
+
774,
|
| 968 |
+
306
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "",
|
| 975 |
+
"bbox": [
|
| 976 |
+
140,
|
| 977 |
+
381,
|
| 978 |
+
825,
|
| 979 |
+
505
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "260 5 Discussion ",
|
| 986 |
+
"text_level": 1,
|
| 987 |
+
"bbox": [
|
| 988 |
+
150,
|
| 989 |
+
526,
|
| 990 |
+
292,
|
| 991 |
+
542
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "This paper applies learnable shape functions to capture distance-based effects. It can model dynamic spatial dependence for stationary and non-stationary spatio-temporal data based on their distance. The model does not have the limitations of classical statistical spatial models and provides a more explanatory model than usual deep learning methods. Furthermore, some spatio-temporal data, such as temperature for sea surface and air quality monitoring data, usually viewed as collected from the continuous field, are more suitable for the proposed models since these kinds of data follow the basic rule that variability between two locations is significantly affected by their distance. However, some spatio-temporal data, such as traffic flow or some biology data, do not follow the rule. As a result, the spatial dependence may rely on road structure or biological mechanisms instead of distance. It is worth researching such data by considering graph structure when estimating spatial weight matrix. In addition, we can develop spatio-temporal causal inference based on the ESTF model. Grander causal analysis can be done by fitting the first-order VAR model (24). The estimation of the coefficients matrix of the VAR model attracts researchers’ interest as it can be treated as a causal transition matrix. In the causal inference community, lots of work have been conducted on the VAR model (8; 9). However, there is a lack of research on causal inference under the spatio-temporal process. The quantitative distance-based effects in ESTF can be further researched and extended to develop a spatio-temporal causal model. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
169,
|
| 1000 |
+
559,
|
| 1001 |
+
825,
|
| 1002 |
+
794
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "References ",
|
| 1009 |
+
"text_level": 1,
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
171,
|
| 1012 |
+
816,
|
| 1013 |
+
266,
|
| 1014 |
+
832
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "[1] ANSELIN, L. Spatial econometrics: methods and models, vol. 4. Springer Science & Business Media, 1988. \n[2] CASTRUCCIO, S., AND GENTON, M. G. Principles for statistical inference on big spatiotemporal data from climate models. Statistics & Probability Letters 136 (2018), 92–96. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
171,
|
| 1023 |
+
842,
|
| 1024 |
+
825,
|
| 1025 |
+
911
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "[3] CHEN, Y., AND SAMWORTH, R. J. Generalized additive and index models with shape constraints. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 78, 4 (2016), 729–754. [4] CLIFF, A. Spatial autocorrelation: Technical report. [5] DIEDERIK, K., JIMMY, B., ET AL. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980 (2014), 273–297. [6] DOU, B., PARRELLA, M. L., AND YAO, Q. Generalized Yule–Walker estimation for spatiotemporal models with unknown diagonal coefficients. Journal of Econometrics 194, 2 (2016), 369–382. [7] ELHORST, J. P. Spatial panel data models. In Spatial econometrics. Springer, 2014, pp. 37–93. [8] GEIGER, P., ZHANG, K., SCHOELKOPF, B., GONG, M., AND JANZING, D. Causal inference by identification of vector autoregressive processes with hidden components. In International Conference on Machine Learning (2015), PMLR, pp. 1917–1925. [9] GONG, M., ZHANG, K., SCHÖLKOPF, B., GLYMOUR, C., AND TAO, D. Causal discovery from temporally aggregated time series. In Uncertainty in artificial intelligence: proceedings of the... conference. Conference on Uncertainty in Artificial Intelligence (2017), vol. 2017, NIH Public Access. [10] JAIN, A., ZAMIR, A. R., SAVARESE, S., AND SAXENA, A. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the ieee conference on computer vision and pattern recognition (2016), pp. 5308–5317. [11] KELEJIAN, H. H., AND PRUCHA, I. R. A generalized spatial two-stage least squares procedure for estimating a spatial autoregressive model with autoregressive disturbances. The Journal of Real Estate Finance and Economics 17, 1 (1998), 99–121. [12] LEE, L.-F. Asymptotic distributions of quasi-maximum likelihood estimators for spatial autoregressive models. Econometrica 72, 6 (2004), 1899–1925. [13] LEE, L.-F., AND YU, J. Some recent developments in spatial panel data models. Regional Science and Urban Economics 40, 5 (2010), 255–271. [14] LI, M., AND ZHU, Z. Spatial-temporal fusion graph neural networks for traffic flow forecasting. In Proceedings of the AAAI conference on artificial intelligence (2021), vol. 35, pp. 4189–4196. [15] LI, Y., YU, R., SHAHABI, C., AND LIU, Y. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926 (2017). [16] LIN, Y., MAGO, N., GAO, Y., LI, Y., CHIANG, Y.-Y., SHAHABI, C., AND AMBITE, J. L. Exploiting spatiotemporal patterns for accurate air quality forecasting using deep learning. In Proceedings of the 26th ACM SIGSPATIAL international conference on advances in geographic information systems (2018), pp. 359–368. [17] MA, Y., GUO, S., AND WANG, H. Sparse spatio-temporal autoregressions by profiling and bagging. Journal of Econometrics (2021). [18] MILLER, H. J. Tobler’s first law and spatial analysis. Annals of the association of American geographers 94, 2 (2004), 284–289. [19] MOKBEL, M. F., XIONG, X., HAMMAD, M. A., AND AREF, W. G. Continuous query processing of spatio-temporal data streams in place. GeoInformatica 9, 4 (2005), 343–365. 324 [20] ORESHKIN, B. N., AMINI, A., COYLE, L., AND COATES, M. J. FC-GAGA: Fully connected gated graph architecture for spatio-temporal traffic forecasting. In Proc. AAAI Conf. Artificial Intell (2021). [21] QIAN, G., TORDESILLAS, A., AND ZHENG, H. Landslide forecast by time series modeling and analysis of high-dimensional and non-stationary ground motion data. Forecasting 3, 4 (2021), 850–867. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
147,
|
| 1034 |
+
79,
|
| 1035 |
+
830,
|
| 1036 |
+
915
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "330 [22] QU, X., LEE, L.-F., AND YU, J. QML estimation of spatial dynamic panel data models with \n331 endogenous time varying spatial weights matrices. Journal of Econometrics 197, 2 (2017), \n332 173–201. \n333 [23] SHI, X., CHEN, Z., WANG, H., YEUNG, D.-Y., WONG, W.-K., AND WOO, W.-C. Convolu \n334 tional lstm network: A machine learning approach for precipitation nowcasting. Advances in \n335 neural information processing systems 28 (2015). \n336 [24] SIMS, C. A. Macroeconomics and reality. Econometrica: journal of the Econometric Society \n337 (1980), 1–48. \n338 [25] SU, L. Semiparametric GMM estimation of spatial autoregressive models. Journal of Econo \n339 metrics 167, 2 (2012), 543–560. \n340 [26] TOBLER, W. R. A computer movie simulating urban growth in the detroit region. Economic \n341 geography 46, sup1 (1970), 234–240. \n342 [27] WANG, D., AND CHENG, T. A spatio-temporal data model for activity-based transport demand \n343 modelling. International Journal of Geographical Information Science 15, 6 (2001), 561–585. \n344 [28] WANG, H., QIAN, G., AND TORDESILLAS, A. Modeling big spatio-temporal geo-hazards data \n345 for forecasting by error-correction cointegration and dimension-reduction. Spatial Statistics 36 \n346 (2020), 100432. \n347 [29] WANG, S., CAO, J., AND YU, P. Deep learning for spatio-temporal data mining: A survey. \n348 IEEE transactions on knowledge and data engineering (2020). \n349 [30] WANG, X., CHEN, C., MIN, Y., HE, J., YANG, B., AND ZHANG, Y. Efficient metropolitan \n350 traffic prediction based on graph recurrent neural network. arXiv preprint arXiv:1811.00740 \n351 (2018). \n352 [31] WANG, Y., LONG, M., WANG, J., GAO, Z., AND YU, P. S. PredRNN: Recurrent neural \n353 networks for predictive learning using spatio-temporal LSTMs. In Advances in Neural Informa \n354 tion Processing Systems (2017), I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, \n355 S. Vishwanathan, and R. Garnett, Eds., vol. 30, Curran Associates, Inc. \n356 [32] WU, Y., AND TAN, H. Short-term traffic flow forecasting with spatial-temporal correlation in a \n357 hybrid deep learning framework. arXiv preprint arXiv:1612.01022 (2016). \n358 [33] YANG, S., MA, W., PI, X., AND QIAN, S. A deep learning approach to real-time parking \n359 occupancy prediction in transportation networks incorporating multiple spatio-temporal data \n360 sources. Transportation Research Part C: Emerging Technologies 107 (2019), 248–265. \n361 [34] YU, B., YIN, H., AND ZHU, Z. Spatio-temporal graph convolutional networks: A deep \n362 learning framework for traffic forecasting. arXiv preprint arXiv:1709.04875 (2017). \n363 [35] YU, J., DE JONG, R., AND LEE, L.-F. Quasi-maximum likelihood estimators for spatial \n364 dynamic panel data with fixed effects when both n and t are large. Journal of Econometrics 146, \n365 1 (2008), 118–134. \n366 [36] YUAN, Z., ZHOU, X., AND YANG, T. Hetero-convlstm: A deep learning approach to traffic \n367 accident prediction on heterogeneous spatio-temporal data. In Proceedings of the 24th ACM \n368 SIGKDD International Conference on Knowledge Discovery & Data Mining (2018), pp. 984– \n369 992. \n370 [37] ZHENG, C., FAN, X., WANG, C., AND QI, J. Gman: A graph multi-attention network for \n371 traffic prediction. In Proceedings of the AAAI Conference on Artificial Intelligence (2020), \n372 vol. 34, pp. 1234–1241. \n373 [38] ZHOU, S., BONDELL, H., TORDESILLAS, A., RUBINSTEIN, B. I., AND BAILEY, J. Early \n374 identification of an impending rockslide location via a spatially-aided gaussian mixture model. \n375 The Annals of Applied Statistics 14, 2 (2020), 977–992. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
140,
|
| 1045 |
+
74,
|
| 1046 |
+
828,
|
| 1047 |
+
912
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 10
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "1. For all authors... ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
214,
|
| 1056 |
+
116,
|
| 1057 |
+
341,
|
| 1058 |
+
131
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 11
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"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] We describe limitations in discussion section \n(c) Did you discuss any potential negative societal impacts of your work? [No] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
238,
|
| 1067 |
+
135,
|
| 1068 |
+
825,
|
| 1069 |
+
241
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 11
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "2. If you are including theoretical results... ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
214,
|
| 1078 |
+
243,
|
| 1079 |
+
493,
|
| 1080 |
+
258
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 11
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
238,
|
| 1089 |
+
262,
|
| 1090 |
+
738,
|
| 1091 |
+
295
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 11
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "3. If you ran experiments... ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
214,
|
| 1100 |
+
299,
|
| 1101 |
+
393,
|
| 1102 |
+
313
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 11
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"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] We upload data and code to github \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Please check training details in simulation and real case section \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \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] They are included in training details ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
238,
|
| 1111 |
+
316,
|
| 1112 |
+
825,
|
| 1113 |
+
463
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 11
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
218,
|
| 1122 |
+
467,
|
| 1123 |
+
825,
|
| 1124 |
+
482
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 11
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \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] ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
238,
|
| 1133 |
+
486,
|
| 1134 |
+
823,
|
| 1135 |
+
593
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 11
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
214,
|
| 1144 |
+
598,
|
| 1145 |
+
705,
|
| 1146 |
+
612
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 11
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"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] ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
238,
|
| 1155 |
+
616,
|
| 1156 |
+
825,
|
| 1157 |
+
705
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 11
|
| 1160 |
+
}
|
| 1161 |
+
]
|
parse/dev/fARM4P0gAJV/fARM4P0gAJV_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/fARM4P0gAJV/fARM4P0gAJV_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/v54eUIayFh/v54eUIayFh.md
ADDED
|
@@ -0,0 +1,520 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
| 1 |
+
# UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild
|
| 2 |
+
|
| 3 |
+
Can $\mathrm { Q i n } ^ { \dag \star }$ , Shu Zhang†, Ning $\mathrm { Y u ^ { \dag } }$ , Yihao Feng†, Xinyi Yang†, Yingbo Zhou†, Huan Wang†, Juan Carlos Niebles†, Caiming Xiong†, Silvio Savarese†, Stefano Ermon‡, Yun $\operatorname { F u } ^ { \star }$ , and Ran $\mathrm { { X u ^ { \dag } } }$
|
| 4 |
+
|
| 5 |
+
†Salesforce AI Research, ⋆Northeastern University, ‡Stanford Univeristy, qin.ca@northeastern.edu, ermon@cs.stanford.edu, yunfu@ece.neu.edu, {shu.zhang, ning.yu, yihaof, x.yang, yingbo.zhou, huan.wang, jniebles, cxiong, ssavarese, ran.xu}@salesforce.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Achieving machine autonomy and human control often represent divergent objectives in the design of interactive AI systems. Visual generative foundation models such as Stable Diffusion show promise in navigating these goals, especially when prompted with arbitrary languages. However, they often fall short in generating images with spatial, structural, or geometric controls. The integration of such controls, which can accommodate various visual conditions in a single unified model, remains an unaddressed challenge. In response, we introduce UniControl , a new generative foundation model that consolidates a wide array of controllable condition-to-image (C2I) tasks within a singular framework, while still allowing for arbitrary language prompts. UniControl enables pixel-level-precise image generation, where visual conditions primarily influence the generated structures and language prompts guide the style and context. To equip UniControl with the capacity to handle diverse visual conditions, we augment pretrained text-to-image diffusion models and introduce a task-aware HyperNet to modulate the diffusion models, enabling the adaptation to different C2I tasks simultaneously. Trained on nine unique C2I tasks, UniControl demonstrates impressive zero-shot generation abilities with unseen visual conditions. Experimental results show that UniControl often surpasses the performance of single-task-controlled methods of comparable model sizes. This control versatility positions UniControl as a significant advancement in the realm of controllable visual generation. 1
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Generative foundation models are revolutionizing the ways that humans and AI interact in natural language processing (NLP) [1–6], computer vision (CV) [7–10], audio processing (AP) [11, 12], and robotic controls [13–15], to name a few. In NLP, generative foundation models such as InstructGPT or GPT-4, achieve excellent performance on a wide range of tasks, e.g., question answering, summarization, text generation, or machine translation within a single-unified model. Such multi-tasking ability is one of the most appealing characteristics of generative foundation models. Furthermore, generative foundation models can also perform zero-shot or few-shot learning on unseen tasks [3, 16, 17].
|
| 14 |
+
|
| 15 |
+
For generative models in vision domains [9, 18–20], such multi-tasking ability is less clear. Stable Diffusion Model (SDM) [9] has established itself as the major cornerstone for text-conditioned image generation. However, while text descriptions provide a very flexible way to control the generated images, their ability to provide pixel-level precision for spatial, structural, or geometric controls is often inadequate. A recent work, ControlNet [21], was proposed to augment SDM to enable visual conditions (e.g., edge maps, depth maps). With the additional visual conditions, ControlNet can achieve explicit spatial, structural, or geometric control over generated structures, without losing the semantic control from textual captions. Unfortunately, unlike language prompts that a unified module such as CLIP [22] can handle, each ControlNet model can only handle a specific control modality that it was trained on (e.g., edge map). Retraining a separate model is necessary to handle a different modality of visual conditions, incurring non-trivial time and spatial complexity costs.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: UniControl is trained with multiple tasks with a unified model, and it further demonstrates promising capability in zero-shot tasks generalization with visual example results shown above.
|
| 19 |
+
|
| 20 |
+
To overcome the limitation of previous works, we present UniControl, a unified diffusion model for controllable visual generation in the wild, which is capable of simultaneously handling both language and various visual conditions. Naturally, UniControl can perform multi-tasking and can encode visual conditions from different tasks into a universal representation space, seeking a common representation structure among tasks. The unified design of UniControl allows us to enjoy the advantages of improved training and inference efficiency, as well as enhanced controllable generation. On the one hand, the model size of UniControl does not significantly increase as the number of tasks scales up. On the other hand, UniControl derives advantages from the inherent connections between different visual conditions [e.g., 23–25]. These relationships, such as depth and segmentation mapping, leverage shared geometric information to enhance the controllable generation quality.
|
| 21 |
+
|
| 22 |
+
The unified controllable generation ability of UniControl relies on two novel designed modules, a mixture of expert (MOE)-style adapter and a task-aware HyperNet [26, 27]. The MOE-style adapter can learn necessary low-level feature maps from various visual conditions, allowing UniControl to capture unique information from different visual conditions. The task-aware HyperNet, which takes the task instruction as natural language prompt inputs, and outputs a task-aware embedding. The output embeddings can be incorporated to modulate ControlNet [21] for task-aware visual condition controls, where each task corresponds to a particular format of visual condition. As a result, the task-aware HyperNet allows UniControl to learn meta-knowledge across various tasks, and obtain abilities to generalize to unseen tasks. As Tab. 1, UniControl has significantly compressed the model size compared with its direct baseline, i.e., Multi-ControlNet, by unifying nine tasks into ONE model.
|
| 23 |
+
|
| 24 |
+
Table 1: Architecture and Model Size (#Params): UniControl vs. Multi-ControlNet
|
| 25 |
+
|
| 26 |
+
<table><tr><td></td><td>Stable Diffusion</td><td>ControlNet</td><td>MoE-Adapter</td><td>TaskHyperNet</td><td>Total</td></tr><tr><td>UniControl</td><td>1065.7M</td><td>361M</td><td>0.06M</td><td>12.7M</td><td>1.44B</td></tr><tr><td>Multi-ControlNet</td><td>1065.7M</td><td>361M×9</td><td>-</td><td>-</td><td>4.32B</td></tr></table>
|
| 27 |
+
|
| 28 |
+
To obtain multi-tasking and zero-shot learning abilities, we pre-train UniControl on nine distinct tasks across five categories: 1) edges (Canny, HED, User Sketch); 2) region-wise maps (Segmentation Maps, Bounding Boxes); 3) skeletons (Human Pose Skeletons); 4) geometric maps Depth, Surface Normal); 5) editing (Image Outpainting). We build MultiGen-20M dataset, comprising over 20 million high-quality triplets of original images, language prompts, and visual conditions for all the tasks. Then UniControl is trained for over 5,000 GPU hours on NVIDIA A100-40G hardware that is comparable with the overall training cost of different ControlNets. Moreover, UniControl exhibits a remarkable capacity for zero-shot adaptation to new tasks, highlighting its potential for deployment in real-world applications. Our contributions are summarized below:
|
| 29 |
+
|
| 30 |
+
• We present UniControl, a unified model capable of handling various visual conditions for the controllable visual generation.
|
| 31 |
+
|
| 32 |
+
• We collect a new dataset for multi-condition visual generation with more than 20 million imagetext-condition triplets over nine distinct tasks across five categories.
|
| 33 |
+
|
| 34 |
+
• We conduct extensive experiments to demonstrate that the unified model UniControl outperforms each single-task controlled image generation, thanks to learning the intrinsic relationships between different visual conditions.
|
| 35 |
+
|
| 36 |
+
• UniControl shows the ability to adapt to unseen tasks in a zero-shot manner, highlighting its versatility and potential for widespread adoption in the wild.
|
| 37 |
+
|
| 38 |
+
# 2 Related Works
|
| 39 |
+
|
| 40 |
+
Diffusion-based Generative Models. Diffusion models were initially introduced in [28] that yield favorable outcomes for generating images [18, 21]. Improvements have been made through various training and sampling techniques such as score-based diffusion [29, 30], Denoising Diffusion Probabilistic Model (DDPM) [31], and Denoising Diffusion Implicit Model (DDIM) [32], When training U-Net denoisers [33] with high-resolution images, researchers involve speed-up techniques including pyramids [34], multiple stages [20], or latent representations [9]. In particular, UniControl leverages Stable Diffusion Models (SDM) [9] as the base model to perform multi-tasking.
|
| 41 |
+
|
| 42 |
+
Text-to-Image Diffusion. Diffusion models emerge to set up a cutting-edge performance in text-to-image generation tasks [20, 19], by cross-attending U-Net denoiser in diffusion generators with CLIP [22] or T5-pretrained [2] text embeddings. GLIDE [35] is another example of a textguided diffusion model that supports image generation and editing. UniControl and closely related
|
| 43 |
+
|
| 44 |
+
ControlNet [21] are both built upon previous works on diffusion-based text-to-image generation [9].
|
| 45 |
+
[36] introduces the compositional conditions to guide visual generation.
|
| 46 |
+
|
| 47 |
+
Image-to-Image Translation. Image-to-image (I2I) translation task was initially proposed in Pix2Pix [37], focusing on learning a mapping between images in different domains. Recently, diffusion-based approaches [38, 39, 21] set up the new state of the art results. Recent diffusionbased image editing methods show outstanding performances without requiring paired data, e.g., SDEdit [40], prompt-to-prompt [41], Edict [42]. Other image editing examples include various diffusion bridges and flows [43–47], classifier guidance [30] based methods for colorization, superresolution [34], inpainting [48], and etc. ControlNet [21] takes both visual and text conditions and achieves new state-of-the-art controllable image generation. Our proposed UniControl unifies various visual conditions of ControlNet, and is capable of performing zero-shot learning on newly unseen tasks. Concurrently, Prompt Diffusion [49] introduces visual prompt [50] from image inpainting to controllable diffusion models, which requires two additional image pairs as the in-context example for both training and inference. By contrast, UniControl takes only a single visual condition while still capable of both multi-tasking and zero-shot learning.
|
| 48 |
+
|
| 49 |
+
# 3 UniControl
|
| 50 |
+
|
| 51 |
+
In this section, we describe the training and the model design of our unified controllable diffusion model UniControl. Specifically, we first provide the problem setup and training objectives in Sec. 3.1, and then show the novel network design of UniControl in Sec. 3.2. Finally, we explain how to perform zero-shot image generation with the trained UniControl in Sec. 3.3.
|
| 52 |
+
|
| 53 |
+
# 3.1 Training Setup
|
| 54 |
+
|
| 55 |
+
Different from the previous generative models such as Stable Diffusion Models (SDM) [9] or ControlNet [21], where the image generation conditions are single language prompt, or single type of visual condition such as canny, UniControl is required to take a wide range of visual conditions from different tasks, as well as the language prompt.
|
| 56 |
+
|
| 57 |
+
To achieve this, we reformulate the training conditions and target pairs for UniControl. Specifically, suppose we have a dataset consisting of $K$ tasks : $\mathcal { D } : = \{ { \mathcal { D } } _ { 1 } \cup \cdot \cdot \cdot \cup { \mathcal { D } } _ { K } \}$ , and for each task training set $\mathcal { D } _ { k }$ , denote the training pairs by $( [ c _ { \mathrm { t e x t } } , c _ { \mathrm { t a s k } } ] , { \mathcal { T } } _ { c } , \pmb { x } )$ , with $c _ { \mathrm { t a s k } }$ being the task instruction that indicates the task type, $c _ { \mathrm { t e x t } }$ being the language prompt describing the target image, $\mathcal { T } _ { c }$ being the visual conditions, and $_ { \pmb { x } }$ being the target image. With the additional task instruction, UniControl can differentiate visual conditions from different tasks. A concrete training example pair is the following:
|
| 58 |
+
|
| 59 |
+
# Task-Aware Vision-Language Condition
|
| 60 |
+
|
| 61 |
+

|
| 62 |
+
Visual Condition $\mathcal { T } _ { c }$
|
| 63 |
+
|
| 64 |
+
Language Prompt :
|
| 65 |
+
“Camp on a mountain top: Birthday Presents,
|
| 66 |
+
Adventure, Outdoor, Mountain Camps, Great
|
| 67 |
+
View, Places, Hiking, Mornings Lights,
|
| 68 |
+
Himalayan Sunri”
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Target output
|
| 72 |
+
|
| 73 |
+
Task Instruction $c _ { \mathrm { t a s k } }$ : “Canny Edge to Image”
|
| 74 |
+
|
| 75 |
+
where the task is to translate the canny edge to real images following language prompt. With the induced training pairs $( \pmb { x } , [ c _ { \mathrm { t a s k } } , c _ { \mathrm { t e x t } } ] , \pmb { \mathcal { T } } _ { c } )$ , we define the training loss for task $k$ following LDM [9]:
|
| 76 |
+
|
| 77 |
+
$\ell ^ { k } ( \theta ) : = \mathbb { E } _ { z , \varepsilon , t , c _ { \mathrm { t a s k } } , c _ { \mathrm { t e x t } } , { T _ { c } } } \left[ \lVert \varepsilon - \varepsilon _ { \theta } ( z _ { t } , t , c _ { \mathrm { t a s k } } , c _ { \mathrm { t e x t } } , \mathcal { T } _ { c } ) \rVert _ { 2 } ^ { 2 } \right]$ , with $( [ c _ { \mathrm { t a s k } } , c _ { \mathrm { t e x t } } ] , \mathcal { T } _ { c } , \pmb { x } ) \sim \mathcal { D } _ { k } .$ , where $t$ represents the time step, $z _ { t }$ is the noise-corrupted latent tensor at time step $t$ , $z _ { 0 } = E ( \pmb { x } )$ , and $\theta$ is the trainable parameters of UniControl . We also apply classifier-free guidance [51] to randomly drop $30 \%$ text prompts to enhance the controllability of input visual conditions. We train UniControl uniformly on the $K$ tasks. To be more specific, we first randomly select a task $k$ and sample a mini-match from $\mathcal { D } _ { k }$ , and optimize $\theta$ with the calculated loss $\ell ^ { k } ( \theta )$ .
|
| 78 |
+
|
| 79 |
+
# 3.2 Model Design
|
| 80 |
+
|
| 81 |
+
Since our unified model UniControl needs to achieve superior performance on a set of diverse tasks, it is necessary to ensure the network design enjoys the following properties: 1) The model can overcome the misalignment of low-level features from different tasks; 2) The model can learn meta-knowledge across tasks, and adapt to each task effectively.
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
Figure 2: This figure shows our proposed UniControl method. To accommodate diverse tasks, we’ve designed a Mixture of Experts (MOE) Adapter, containing roughly $\mathord { \sim } 7 0 \mathrm { K }$ $\#$ params for each task, and a Task-aware HyperNet $\mathrm { \sim } 1 2 \mathrm { M }$ #params) to modulate $N$ (i.e., 7) zero-conv layers. This structure allows for multi-task functionality within a singular model, significantly reducing the model size compared to an equivalent stack of single-task models, each with around 1.4B #params.
|
| 85 |
+
|
| 86 |
+
The first property can ensure that UniControl can learn necessary and unique information from all tasks. For instance, if UniControl takes the segmentation map as the visual condition, the model might ignore the 3D information. As a result, the feature map learned may not be suitable for the task that takes the depth map images as visual condition. The second property would allow the model to learn the shared knowledge across tasks, as well as the differences among them.
|
| 87 |
+
|
| 88 |
+
We introduce two novel designed modules, MOE-style adapter and task-aware HyperNet, that allows UniControl enjoys the above two properties. An overview of the model design for UniControl is in Fig. 2. We describe the detailed designs of these modules below.
|
| 89 |
+
|
| 90 |
+
MOE-Style Adapter. Inspired by the design of Mixture-of-Experts (MOEs) [52], we devise a group of convolution modules to serve as the adapter for UniControl to capture features of various low-level visual conditions. Precisely, the designed adapter module can be expressed as
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\mathcal { F } _ { \mathrm { A d a p t e r } } ( \mathcal { Z } _ { c } ^ { k } ) : = \sum _ { i = 1 } ^ { K } \mathbb { 1 } ( i = = k ) \cdot \mathcal { F } _ { \mathrm { C o v 1 } } ^ { ( i ) } \circ \mathcal { F } _ { \mathrm { C o v 2 } } ^ { ( i ) } ( \mathcal { Z } _ { c } ^ { k } ) ,
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\mathbb { 1 } ( \cdot )$ is the indicator func on, $\mathcal { T } _ { c } ^ { k }$ is the conditioned image from task $k$ , and $\mathcal { F } _ { \mathrm { { C o v 1 } } } ^ { ( i ) } , \mathcal { F } _ { \mathrm { { C o v 2 } } } ^ { ( i ) }$ are the convolution layers of the $i$ -th module of the adapter. We remove the weights of the original MOEs since our designed adapter is required to differentiate various visual conditions. Meanwhile, naive MOE modules can not explicitly distinguish different visual conditions when the weights are learnable. Moreover, such task-specific MOE adapters facilitate the zero-shot tasks with explicit retrieval of the adapters of highly related pre-training tasks. Besides, the number of parameters for each convolution module is approximately 70K, which is computationally efficient.
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 3: Illustration of MOE’s behaviors under zero-shot scenarios. The left part shows the capacity of the MOE to generalize to hybrid task conditions, achieved through the integration of outputs from two pertinent convolution layers. The right part illustrates the ability of the MOE-style adapter to generalize to unseen tasks, facilitated by the aggregation of pre-trained tasks using estimated weights.
|
| 100 |
+
|
| 101 |
+
Task-Aware HyperNet. The task-aware HyperNet modulates the zero-convolution modules of ControlNet [21] with the task instruction condition $c _ { \mathrm { t a s k } }$ . As shown in Figure 2, our hyperNet first projects the task instruction $c _ { \mathrm { t a s k } }$ into task embedding with the help of CLIPText encoder. Then similar in spirit of style modulation in StyleGAN2 [53], we inject the task embedding into the trainable copy of ControlNet, by multiplying the task embedding to each zero-conv layer. In specific, the length of the embedding is the same as the number of input channels of the zero-conv layer, and each element scalar in the embedding is multiplied to the convolution kernel per input channel. We also show that our newly designed task-aware HyperNet can also efficiently learn from training instances and task supervision following a similar analysis as in ControlNet [21].
|
| 102 |
+
|
| 103 |
+
# 3.3 Task Generalization Ability
|
| 104 |
+
|
| 105 |
+
With the comprehensive pretraining on the MultiGen-20M dataset, UniControl exhibits zero-shot capabilities on tasks that were not encountered during its training, suggesting that Unicontrol possesses the ability to transcend in-domain distributions for broader generalization. We demonstrate the zeroshot ability of UniControl in the following two scenarios:
|
| 106 |
+
|
| 107 |
+
Hybrid Tasks Generalization. As shown in the left side of Fig. 3, We consider two different visual conditions as the input of UniControl, a hybrid combination of segmentation maps and human skeletons, and augment specific keywords "background" and "foreground" into the text prompts. Besides, we rewrite the hybrid task instruction as a blend of instructions of the combined two tasks such as "segmentation map and human skeleton to image".
|
| 108 |
+
|
| 109 |
+
Zero-Shot New Tasks Generalization. As shown in the right side of Fig. 3, UniControl needs to generate controllable images on a newly unseen visual condition. To achieve this, estimating the task weights based on the relationship between unseen and seen pre-trained tasks is essential. The task weights can be estimated by either manual assignment or calculating the similarity score of task instructions in the embedding space. The example result in Fig. 5 (d) is generated by our manually assigned MOE weights as “depth: 0.6, seg: 0.3, canny: 0.1” for colorization. The MOE-style adapter can be linearly assembled with the estimated task weights to extract shallow features from the newly unseen visual condition.
|
| 110 |
+
|
| 111 |
+
# 4 Experiments
|
| 112 |
+
|
| 113 |
+
We empirically evaluate the effectiveness and robustness of UniControl. We conduct a series of comprehensive experiments across various conditions and tasks, utilizing diverse datasets to challenge the model’s adaptability and versatility. Experimental setup, methodologies, and results analysis are provided in the subsequent sections.
|
| 114 |
+
|
| 115 |
+
# 4.1 Experiment Setup
|
| 116 |
+
|
| 117 |
+
Implementation. The UniControl is illustrated as Fig. 2 with Stable Diffusion, ControlNet, MOE Adapter, and Task-aware HyperNet consisting ${ \sim } 1 . 5 \mathrm { B }$ parameters. MOE Adapter consists of parallel convolutional modules, each of which corresponds to one task. The task-aware HyperNet inputs the CLIP text embedding [22] of task instructions and outputs the task embeddings to modulate the weights of zero-conv kernels. We implement our model upon the ControlNet . We take the AdamW [54] as the optimizer based on PyTorch Lightning [55]. The learning rate is assigned as $1 \times 1 0 ^ { - 5 }$ . Our full-version UniControl model is trained on 16 Nvidia-A100 GPUs with the batch size of 4, requiring $\sim 5$ , 000 GPU hours. We have also applied Safety-Checker as safeguards of results.
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 4: Visual comparison between official or re-implemented task-specific ControlNet and our proposed model. The example data is collected from our testing set sampled from COCO and Laion.
|
| 121 |
+
|
| 122 |
+
Data Collection. Since the training set of ControlNet is currently unavailable, we initiate our own data collection process from scratch and name it as MultiGen-20M. We use a subset of LaionAesthetics-V2 [56] with aesthetics ratings over six, excluding low-resolution images smaller than 512. This yields approximately 2.8 million image-text pairs. Subsequently, we process this dataset for nine distinct tasks across five categories (edges, regions, skeletons, geometric maps, real images):
|
| 123 |
+
|
| 124 |
+
• Canny (2.8M): Utilize the Canny edge detector [57] with randomized thresholds.
|
| 125 |
+
|
| 126 |
+
• HED (2.8M): Deploy the Holistically-nested edge detection [58] for robust boundary determination.
|
| 127 |
+
|
| 128 |
+
• Depth (2.8M): Employ the Midas [59] for monocular depth estimation.
|
| 129 |
+
|
| 130 |
+
• Normal (2.8M): Use the depth estimation results from the depth task to estimate scene or object surface normals.
|
| 131 |
+
|
| 132 |
+
• Segmentation (2.8M): Implement the Uniformer [60] model, pre-trained on the ADE20K [61] dataset, to generate segmentation maps across 150 classes.
|
| 133 |
+
|
| 134 |
+
• Object Bounding Box (874K): Utilize YOLO V4 [62] pre-trained on the COCO [63] dataset for bounding box labelling across 80 object classes.
|
| 135 |
+
|
| 136 |
+
• Human Skeleton (1.3M): Employ the pre-trained Openpose [64] model to generate human skeleton labels from source images.
|
| 137 |
+
|
| 138 |
+
• Image Outpainting (2.8M): Create boundary masks for source images with random masking percentages from $20 \%$ to $80 \%$ .
|
| 139 |
+
|
| 140 |
+
Further processings are carried out on HED maps using Gaussian filtering and binary thresholding to simulate user sketching. Overall, we amass over 20 million image-prompt-condition triplets. Task instructions were naturally derived from the respective conditions, with each task corresponding to a specific instruction, such as "canny edge to image" for the canny task. We maintain a one-toone correspondence between tasks and instructions without introducing variance to ensure stability during training. We have additionally collected a testing dataset for evaluation with 100-300 imagecondition-prompt triplets for each task. The source data is collected from Laion and COCO. We will open-source our training and testing data to contribute to the community.
|
| 141 |
+
|
| 142 |
+
Benchmark Models. The most straightforward comparison for UniControl comes from task-specific ControlNet models. Six tasks overlap with those presented in ControlNet, so their official models are chosen as baselines for these tasks. For fair comparison, we re-implement the ControlNet model (single task) using our collected data. Our unified multi-task UniControl is compared against these task-aware models for each task. We apply default sampler as DDIM [32] with guidance weight 9 and steps 50. All single-task models used for comparison are trained by 100K iterations and our multi-task model is trained around 900K with similar iterations for each task to ensure fairness. The efficiency and compact design of our proposed model are evident in its construction. The total size of UniControl is around 1.5B #params and a single task ControlNet $^ +$ SDM takes 1.4B. In order to achieve the same nine-task functionality, a single-task strategy would require the ensemble of a SDM with nine task-specific ControlNet models, amounting to approximately 4.3B #params in total.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 5: (a)-(b): Example results of UniControl over hybrid (unseen combination) conditions with key words "background" and "foreground" attached in prompts. (c)-(e): Example results of UniControl on three unseen tasks (deblurring, colorization, inpainting).
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 6: User study between our method and official ControlNet checkpoints on six tasks. Our method outperforms ControlNet on all tasks.
|
| 149 |
+
|
| 150 |
+
# 4.2 Visual Comparison
|
| 151 |
+
|
| 152 |
+
We visually compare different tasks (Canny, HED, Depth, Normal, Segmentation, Openpose, Bounding Box, and Outpainting) in Fig. 4. Our method consistently outperforms the baseline ControlNet model. This superiority is in terms of both visual quality and alignment with conditions or prompts.
|
| 153 |
+
|
| 154 |
+
For the Canny task, the results generated by our model exhibit a higher degree of detail preservation and visual consistency. The outputs of UniControl maintain a faithful reproduction of the edge information (i.e., round table) compared to ControlNet. In the HED task, our model effectively captures the robust boundaries, leading to visually appealing images with clear and sharp edge transitions, whereas ControlNet results appear to be non-factual. Moreover, our model demonstrate a more subtle understanding of 3D geometrical guidance of depth maps and surface normals than ControlNet. The depth map conditions produce visibly more accurate outputs. In the Normal task, our model faithfully reproduces the normal surface information (i.e., ski pole), leading to more realistic and visually superior outputs. During the Segmentation, Openpose, and Object Bounding Box tasks, the produced images generated by our model are better aligned with the given conditions than that by ControlNet, ensuring a higher fidelity to the input prompts. For example, the re-implemented ControlNet-BBox misunderstands “a woman near a statue”, whereas our outputs exhibit a high degree of accuracy and detail. In the Outpainting task, our model demonstrates its superiority by generating reasonable images with smooth transitions and natural-looking textures. It outperforms the ControlNet model, which produces less coherent results - “a bear missing one leg”. This visual comparison underscores the strength and versatility of our approach across a diverse set of tasks.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 7: User study between our multi-task model (Ours-multi) and single task model (Ours-single) on eight tasks. Our method outperforms baselines on most of tasks, and achieves big performance gains on tasks of seg-to-image and outpainting-to-image. Moreover, the p-value of voting Ours-multi in all cases is computed as 0.0028 that is statistically significant according to the criteria of $< 0 . 0 5$ .
|
| 158 |
+
|
| 159 |
+
# 4.3 Quantitative Evaluation
|
| 160 |
+
|
| 161 |
+
User Study. We compare the performance of our method with both the released ControlNet model and the re-implemented single-task ControlNet on our training set. As shown in Fig. 6, our approach consistently outperforms the alternatives in all cases. In the HED-to-image generation task, our method significantly surpasses ControlNet. This superiority is even more pronounced in the depth and normal surface to image generation tasks, where users overwhelmingly favor our method, demonstrating its ability to handle complex geometric interpretations. When compared to the re-implemented single-task model, Fig. 7 reveals that our approach maintains a smaller advantage, yet it still demonstrates its benefits by effectively discerning image regions to guide content generation. Even in the challenging outpainting task, our model outperforms the baseline, highlighting its robustness and capacity to generalize.
|
| 162 |
+
|
| 163 |
+
Table 2: Image Perceptual Distance
|
| 164 |
+
|
| 165 |
+
<table><tr><td></td><td>Canny↓</td><td>HED↓</td><td>Normal↓</td><td>Depth↓</td><td>Pose↓</td><td>Segmentation ↓</td></tr><tr><td>UniControl</td><td>0.546</td><td>0.466</td><td>0.623</td><td>0.654</td><td>0.741</td><td>0.693</td></tr><tr><td>ControlNet</td><td>0.577</td><td>0.582</td><td>0.778</td><td>0.700</td><td>0.747</td><td>0.693</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Image Perceptual Metric. We evaluate the distance between our output and the ground truth image. As we aim to obtain
|
| 168 |
+
|
| 169 |
+
a structural similar image to the ground truth image, we adopt the perceptual metric in [65], where a lower value indicates more similar images. As shown in Tab. 2, UniControl outperforms ControlNet on five tasks, and obtains the same image distance to ControlNet on Segmentation.
|
| 170 |
+
|
| 171 |
+
Fréchet Inception Distance (FID). We’ve further conducted quantitative analysis with FID [66] to include more classic single-task-controlled methods such as GLIGEN [67] and T2I-adapter [68]. With a collection of over 2,000 test samples sourced from Laion and COCO, we’ve assessed a wide range of tasks covering edges (Canny, HED), regions (Seg), skeletons (Pose), and geometric maps (Depth, Normal). The Tab. 3 demonstrates that our UniControl consistently surpasses the baseline methods across the majority of tasks. Notably, UniControl achieves this while maintaining a more compact and efficient architecture than its counterparts.
|
| 172 |
+
|
| 173 |
+
Ablation Study. We’ve conducted an ablation study, specifically focusing on the MoE-Style Adapter and TaskHyperNet in Tab. 4 with FID scores reported as the previous part. It is noticeable that the full-version UniControl (MoE-Style Adapter $^ +$ TaskHyperNet) significantly outperforms the ablations which demonstrates the superiority of proposed MoE-Style Adapter and TaskHyperNet.
|
| 174 |
+
|
| 175 |
+
Table 3: Quantitative Comparison (FID)
|
| 176 |
+
|
| 177 |
+
<table><tr><td></td><td>Canny↓</td><td>HED↓</td><td>Depth ↓</td><td>Normal↓</td><td>Seg↓</td><td>Pose↓</td></tr><tr><td>GLIGEN [67]</td><td>24.9</td><td>27.8</td><td>25.8</td><td>27.7</td><td>-</td><td>=</td></tr><tr><td>T2I-Adapter [68]</td><td>23.6</td><td>1</td><td>25.4</td><td>-</td><td>27.1</td><td>28.9</td></tr><tr><td>ControlNet [21]</td><td>22.7</td><td>25.1</td><td>25.5</td><td>28.4</td><td>26.7</td><td>28.8</td></tr><tr><td>UniControl</td><td>22.9</td><td>23.6</td><td>21.3</td><td>23.4</td><td>25.5</td><td>27.4</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 4: Ablation Study (FID)
|
| 180 |
+
|
| 181 |
+
<table><tr><td>MoE-Adapter</td><td>TaskHyperNet</td><td>Canny↓</td><td>HED↓</td><td>Depth ↓</td><td>Normal↓</td><td>Seg↓</td><td>Pose↓</td><td>Avg</td></tr><tr><td></td><td>X</td><td>27.2</td><td>29.0</td><td>27.6</td><td>28.8</td><td>29.1</td><td>30.2</td><td>28.7</td></tr><tr><td></td><td></td><td>24.5</td><td>26.1</td><td>23.7</td><td>24.8</td><td>26.9</td><td>28.3</td><td>25.7</td></tr><tr><td>x<></td><td>X</td><td>22.9</td><td>23.6</td><td>21.3</td><td>23.4</td><td>25.5</td><td>27.4</td><td>24.0</td></tr></table>
|
| 182 |
+
|
| 183 |
+
# 4.4 Zero-shot Generalization
|
| 184 |
+
|
| 185 |
+
We further showcase the surprising capabilities of our method to undertake the zero-shot challenge of hybrid conditions combination and unseen tasks generalization.
|
| 186 |
+
|
| 187 |
+
Hybrid Tasks Combination. This involves generating results from two distinct conditions simultaneously. Our model’s zero-shot ability is tested with combinations such as depth and human skeleton or segmentation map and human skeleton. The results are shown in Fig. 5 (a)-(b). When the background is conditioned on a depth map, the model effectively portrays the intricate 3D structure of the scene, while maintaining the skeletal structure of the human subject. Similarly, when the model is presented with a combination of a segmentation map and human skeleton, the output skillfully retains the structural details of the subject, while adhering to the segmentation boundaries. These examples illustrate our model’s adaptability and robustness, highlighting its ability to handle complex hybrid tasks without any prior explicit training.
|
| 188 |
+
|
| 189 |
+
Unseen Tasks Generalization. To evaluate the zero-shot ability to generalize to unseen tasks such as gray image colorization, image deblurring, and image inpainting, we conduct the case analysis in Fig. 5 (c)-(e). The model skillfully handles the unseen tasks, producing compelling results. This capability is deeply rooted in the shared attributes and implicit correlations among pre-training and new tasks, allowing our model to adapt seamlessly. For instance, the colorization task leverages the model’s understanding of image structures from the segmentation task and depth estimation task, while deblurring and inpainting tasks benefit from the model’s familiarity with edge detection and outpainting ones.
|
| 190 |
+
|
| 191 |
+
# 5 Conclusion and Discussion
|
| 192 |
+
|
| 193 |
+
We introduce UniControl , a novel unified model for incorporating a wide range of conditions into the generation process of diffusion models. UniControl has been designed to be adaptable to various tasks through the employment of two key components: a Mixture-of-Experts (MOE) style adapter and a task-aware HyperNet. The experimental results have showcased the model’s robust performance and adaptability across different tasks and conditions, demonstrating its potential for handling complex text-to-image generation tasks.
|
| 194 |
+
|
| 195 |
+
Limitation and Broader Impact. While UniControl demonstrates impressive performance, it still inherits the limitation of diffusion-based image generation models. Specifically, it is limited by our training data, which is obtained from a subset of the Laion-Aesthetics datasets. We observe that there is a data bias in this dataset. Although we have performed keywords and image based data filtering methods, we are aware that the model may generate biased or low-fidelity output. Our model is also limited when high-quality human output is desired. UniControl could be improved if better open-source datasets are available to block the creation of biased, toxic, sexualized, or other harmful content. We hope our work can motivate researchers to develop visual generative foundation models.
|
| 196 |
+
|
| 197 |
+
# References
|
| 198 |
+
|
| 199 |
+
[1] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 200 |
+
|
| 201 |
+
[2] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J Liu, et al. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140):1–67, 2020.
|
| 202 |
+
|
| 203 |
+
[3] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416, 2022.
|
| 204 |
+
|
| 205 |
+
[4] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022.
|
| 206 |
+
|
| 207 |
+
[5] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
|
| 208 |
+
|
| 209 |
+
[6] OpenAI. Gpt-4 technical report, 2023.
|
| 210 |
+
|
| 211 |
+
[7] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping languageimage pre-training with frozen image encoders and large language models. arXiv preprint arXiv:2301.12597, 2023.
|
| 212 |
+
|
| 213 |
+
[8] Haoxuan You, Mandy Guo, Zhecan Wang, Kai-Wei Chang, Jason Baldridge, and Jiahui Yu. Cobit: A contrastive bi-directional image-text generation model. arXiv preprint arXiv:2303.13455, 2023.
|
| 214 |
+
|
| 215 |
+
[9] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. Highresolution image synthesis with latent diffusion models. In CVPR, pages 10684–10695, 2022.
|
| 216 |
+
|
| 217 |
+
[10] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. arXiv preprint arXiv:2304.02643, 2023.
|
| 218 |
+
|
| 219 |
+
[11] Bo Li, Dongseong Hwang, Zhouyuan Huo, Junwen Bai, Guru Prakash, Tara N Sainath, Khe Chai Sim, Yu Zhang, Wei Han, Trevor Strohman, et al. Efficient domain adaptation for speech foundation models. In ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5. IEEE, 2023.
|
| 220 |
+
|
| 221 |
+
[12] Rongjie Huang, Mingze Li, Dongchao Yang, Jiatong Shi, Xuankai Chang, Zhenhui Ye, Yuning Wu, Zhiqing Hong, Jiawei Huang, Jinglin Liu, et al. Audiogpt: Understanding and generating speech, music, sound, and talking head. arXiv preprint arXiv:2304.12995, 2023.
|
| 222 |
+
|
| 223 |
+
[13] Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, et al. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691, 2022.
|
| 224 |
+
|
| 225 |
+
[14] Yilun Dai, Mengjiao Yang, Bo Dai, Hanjun Dai, Ofir Nachum, Josh Tenenbaum, Dale Schuurmans, and Pieter Abbeel. Learning universal policies via text-guided video generation. arXiv preprint arXiv:2302.00111, 2023.
|
| 226 |
+
|
| 227 |
+
[15] Sai Vemprala, Rogerio Bonatti, Arthur Bucker, and Ashish Kapoor. Chatgpt for robotics: Design principles and model abilities. Technical Report MSR-TR-2023-8, Microsoft, February 2023. URL https://www.microsoft.com/en-us/research/publication/ chatgpt-for-robotics-design-principles-and-model-abilities/.
|
| 228 |
+
|
| 229 |
+
[16] Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. arXiv preprint arXiv:2203.02155, 2022.
|
| 230 |
+
|
| 231 |
+
[17] OpenAI. Chatgpt. https://openai.com/blog/chatgpt/, 2022.
|
| 232 |
+
|
| 233 |
+
[18] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. NeurIPS, 34:8780–8794, 2021.
|
| 234 |
+
|
| 235 |
+
[19] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S Sara Mahdavi, Rapha Gontijo Lopes, et al. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint arXiv:2205.11487, 2022.
|
| 236 |
+
|
| 237 |
+
[20] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
|
| 238 |
+
|
| 239 |
+
[21] Lvmin Zhang and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. arXiv preprint arXiv:2302.05543, 2023.
|
| 240 |
+
|
| 241 |
+
[22] 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.
|
| 242 |
+
|
| 243 |
+
[23] Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3712–3722, 2018.
|
| 244 |
+
|
| 245 |
+
[24] Golnaz Ghiasi, Barret Zoph, Ekin D Cubuk, Quoc V Le, and Tsung-Yi Lin. Multi-task selftraining for learning general representations. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8856–8865, 2021.
|
| 246 |
+
|
| 247 |
+
[25] Shikun Liu, Edward Johns, and Andrew J Davison. End-to-end multi-task learning with attention. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1871–1880, 2019.
|
| 248 |
+
|
| 249 |
+
[26] David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. In International Conference on Learning Representations, 2017.
|
| 250 |
+
|
| 251 |
+
[27] Johannes Von Oswald, Christian Henning, Benjamin F Grewe, and João Sacramento. Continual learning with hypernetworks. arXiv preprint arXiv:1906.00695, 2019.
|
| 252 |
+
|
| 253 |
+
[28] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, pages 2256–2265. PMLR, 2015.
|
| 254 |
+
|
| 255 |
+
[29] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in Neural Information Processing Systems, 32, 2019.
|
| 256 |
+
|
| 257 |
+
[30] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020.
|
| 258 |
+
|
| 259 |
+
[31] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. NeurIPS, 33:6840–6851, 2020.
|
| 260 |
+
|
| 261 |
+
[32] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv:2010.02502, October 2020. URL https://arxiv.org/abs/2010.02502.
|
| 262 |
+
|
| 263 |
+
[33] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, pages 234–241. Springer, 2015.
|
| 264 |
+
|
| 265 |
+
[34] Jonathan Ho, Chitwan Saharia, William Chan, David J Fleet, Mohammad Norouzi, and Tim Salimans. Cascaded diffusion models for high fidelity image generation. J. Mach. Learn. Res., 23(47):1–33, 2022.
|
| 266 |
+
[35] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint arXiv:2112.10741, 2021.
|
| 267 |
+
[36] Nan Liu, Shuang Li, Yilun Du, Antonio Torralba, and Joshua B Tenenbaum. Compositional visual generation with composable diffusion models. In European Conference on Computer Vision, pages 423–439. Springer, 2022.
|
| 268 |
+
[37] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, 2017.
|
| 269 |
+
[38] Chitwan Saharia, William Chan, Huiwen Chang, Chris Lee, Jonathan Ho, Tim Salimans, David Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. In ACM SIGGRAPH 2022 Conference Proceedings, pages 1–10, 2022.
|
| 270 |
+
[39] Tengfei Wang, Ting Zhang, Bo Zhang, Hao Ouyang, Dong Chen, Qifeng Chen, and Fang Wen. Pretraining is all you need for image-to-image translation. arXiv preprint arXiv:2205.12952, 2022.
|
| 271 |
+
[40] Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. Sdedit: Guided image synthesis and editing with stochastic differential equations. In International Conference on Learning Representations, 2021.
|
| 272 |
+
[41] Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626, 2022.
|
| 273 |
+
[42] Bram Wallace, Akash Gokul, and Nikhil Naik. Edict: Exact diffusion inversion via coupled transformations. arXiv preprint arXiv:2211.12446, 2022.
|
| 274 |
+
[43] Xuan Su, Jiaming Song, Chenlin Meng, and Stefano Ermon. Dual diffusion implicit bridges for image-to-image translation. In The Eleventh International Conference on Learning Representations, 2022.
|
| 275 |
+
[44] Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
|
| 276 |
+
[45] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. arXiv preprint arXiv:2209.03003, 2022.
|
| 277 |
+
[46] Xingchao Liu, Lemeng Wu, Mao Ye, and Qiang Liu. Let us build bridges: Understanding and extending diffusion generative models. arXiv preprint arXiv:2208.14699, 2022.
|
| 278 |
+
[47] Guan-Horng Liu, Arash Vahdat, De-An Huang, Evangelos A Theodorou, Weili Nie, and Anima Anandkumar. $\mathrm { I } ^ { 2 } \mathrm { s b }$ : Image-to-image schrödinger bridge. arXiv preprint arXiv:2302.05872, 2023.
|
| 279 |
+
[48] Andreas Lugmayr, Martin Danelljan, Andres Romero, Fisher Yu, Radu Timofte, and Luc Van Gool. Repaint: Inpainting using denoising diffusion probabilistic models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022.
|
| 280 |
+
[49] Zhendong Wang, Yifan Jiang, Yadong Lu, Yelong Shen, Pengcheng He, Weizhu Chen, Zhangyang Wang, and Mingyuan Zhou. In-context learning unlocked for diffusion models. arXiv preprint arXiv:2305.01115, 2023. URL https://arxiv.org/abs/2305.01115.
|
| 281 |
+
[50] Amir Bar, Yossi Gandelsman, Trevor Darrell, Amir Globerson, and Alexei Efros. Visual prompting via image inpainting. Advances in Neural Information Processing Systems, 35: 25005–25017, 2022.
|
| 282 |
+
[51] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
|
| 283 |
+
|
| 284 |
+
[52] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017.
|
| 285 |
+
|
| 286 |
+
[53] Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8110–8119, 2020.
|
| 287 |
+
|
| 288 |
+
[54] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
|
| 289 |
+
|
| 290 |
+
[55] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS. NeurIPS, 2019.
|
| 291 |
+
|
| 292 |
+
[56] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. Laion-5b: An open large-scale dataset for training next generation image-text models. arXiv preprint arXiv:2111.02114, 2021.
|
| 293 |
+
|
| 294 |
+
[57] John Canny. A computational approach to edge detection. IEEE Transactions on pattern analysis and machine intelligence, pages 679–698, 1986.
|
| 295 |
+
|
| 296 |
+
[58] Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proceedings of the IEEE international conference on computer vision, pages 1395–1403, 2015.
|
| 297 |
+
|
| 298 |
+
[59] René Ranftl, Katrin Lasinger, David Hafner, Konrad Schindler, and Vladlen Koltun. Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. IEEE transactions on pattern analysis and machine intelligence, 44(3):1623–1637, 2020.
|
| 299 |
+
|
| 300 |
+
[60] Kunchang Li, Yali Wang, Junhao Zhang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, and Yu Qiao. Uniformer: Unifying convolution and self-attention for visual recognition. arXiv preprint arXiv:2201.09450, 2022.
|
| 301 |
+
|
| 302 |
+
[61] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, 127:302–321, 2019.
|
| 303 |
+
|
| 304 |
+
[62] Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao. Yolov4: Optimal speed and accuracy of object detection. arXiv preprint arXiv:2004.10934, 2020.
|
| 305 |
+
|
| 306 |
+
[63] 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 Computer Vision–ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740–755. Springer, 2014.
|
| 307 |
+
|
| 308 |
+
[64] Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7291–7299, 2017.
|
| 309 |
+
|
| 310 |
+
[65] Richard Zhang, Phillip Isola, Alexei Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2018.
|
| 311 |
+
|
| 312 |
+
[66] 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. NeurIPS, 30, 2017.
|
| 313 |
+
|
| 314 |
+
[67] Yuheng Li, Haotian Liu, Qingyang Wu, Fangzhou Mu, Jianwei Yang, Jianfeng Gao, Chunyuan Li, and Yong Jae Lee. Gligen: Open-set grounded text-to-image generation. arXiv:2301.07093, 2023.
|
| 315 |
+
|
| 316 |
+
# Appendix
|
| 317 |
+
|
| 318 |
+
# A Details of Implementation
|
| 319 |
+
|
| 320 |
+
# A.1 MOE-Style Adapter
|
| 321 |
+
|
| 322 |
+
The MOE adapter is implemented as a set of parallel ConvNets composed of three consecutive convolution and non-linear activation layers. The entire model is comprised of nine individual MOE adapters, each of which consumes 70K parameters. Task keys are designated to each adapter, ensuring that they align with the corresponding visual conditions. Once the MOE adapter processes the input, the remaining model parameters become shared across all tasks. This architecture facilitates task adaptability while promoting parameter efficiency.
|
| 323 |
+
|
| 324 |
+
# A.2 Task-aware HyperNet
|
| 325 |
+
|
| 326 |
+
The task-aware hypernet is applied to modulate the parameters of zero-conv layers in the ControlNet. Since the ControlNet can be considered as the hypernet of Stable Diffusion (fixed copy). Our idea can be concluded as the control over control or meta-control to let the task-aware hypernet learn the universe representation that is generalizable across different tasks. To implement it, we firstly map the task keys to instruction with a mapping function as: {"hed": "hed edge to image", "canny": "canny edge to image", "seg": "segmentation map to image", "depth": "depth map to image", "normal": "normal surface map to image", "pose": "human pose skeleton to image", "hedsketch": "sketch to image", "bbox": "bounding box to image", "outpainting": "image outpainting"}. Then, such instructions will be projected as text embeddings with the help of a language model (we adopt CLIPText in our implementation). The Task-aware HyperNet takes these task instruction embeddings, and projects them into different shapes to match the size of different zero-conv kernels, which will be modulated by these task embeddings accordingly. We would fix the parameters of task-aware hyperNet in the later stage of model training to ensure the stability of dynamics.
|
| 327 |
+
|
| 328 |
+
# A.3 Data Collection
|
| 329 |
+
|
| 330 |
+
We have collected a large amount of training set (MultiGen-20M) including over 20M conditionimage-prompt triplets across nine different tasks. We firstly download 3/4 of Laion-Aesthetics-V2 with score over six and filter out low-resolution $( < 5 1 2 )$ images. As a result, $2 . 8 \mathbf { M }$ images are selected as source images. Then we apply the visual condition extractors as described in the main paper to collect Canny, HED, Sketch, Depth, Normal Surface, Seg Map, Object Bounding Box, Human Skeleton and Outpainting.
|
| 331 |
+
|
| 332 |
+
# B Numerical Analysis of Task-Aware Modulated ControlNet
|
| 333 |
+
|
| 334 |
+
We show that our proposed task-aware modulated ControlNet preserves the properties of the original ControlNet structure. Specifically, we show 1) The new task-aware modulated ControlNet preserves the zero-initialization property of ControlNet; 2) The parameters of the task-aware modulated Controlnet can be updated once we start to train the model.
|
| 335 |
+
|
| 336 |
+
Denote the input feature map by , the frozen SD Block in Fig. 2 by $\mathcal { F } _ { \mathrm { S D } }$ , the extra condition by $c$ , two zero convolution operators by $\mathcal { Z } _ { \theta _ { 1 } } ^ { 1 } ( \cdot )$ and $\mathcal { Z } _ { \theta _ { 2 } } ^ { 2 } ( \cdot )$ , the trainable copy of SD Block by $\mathcal { G } _ { \theta _ { \mathrm { s } } } ^ { \mathrm { S D } } ( \cdot )$ , the task instruction by $c _ { \mathrm { t a s k } }$ , and the task-aware hyperNet by $\mathcal { H } _ { \boldsymbol { \theta } _ { \mathcal { H } } } ( \cdot )$ . Then the output of the new task-aware modulated Controlnet can be expressed as
|
| 337 |
+
|
| 338 |
+
$$
|
| 339 |
+
{ \pmb y } _ { c } = \mathcal { F } _ { \mathrm { S D } } ( { \pmb x } ) + \mathcal { Z } _ { \theta _ { 1 } } ^ { 1 } ( \mathcal { G } _ { \theta _ { \mathrm { s } } } ^ { \mathrm { S D } } ( { \pmb x } + \mathcal { Z } _ { \theta _ { 2 } } ^ { 2 } ( c ) \cdot \mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) ) ) \cdot \mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) .
|
| 340 |
+
$$
|
| 341 |
+
|
| 342 |
+
Property of Zero Initialization. Similar to ControlNet [21], the weights and biases of the convolution layers are initialized as zeros. As a result, we have $\mathcal { Z } _ { \theta _ { 1 } } ^ { 1 } ( \cdot ) \equiv 0$ and $\pmb { y } _ { c } = \mathcal { F } _ { \mathrm { S D } } ( \pmb { x } )$ , regardless of the initialization of $\mathcal { H } _ { \theta _ { \mathcal { H } } } ( \cdot )$ .
|
| 343 |
+
|
| 344 |
+
Gradient Analysis. We analyze the gradient of the modulated part
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\nabla _ { \theta } \left( Z _ { \theta _ { 1 } } ^ { 1 } ( I ) \cdot \mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) \right) = \mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) \cdot \nabla _ { \theta } Z _ { \theta _ { 1 } } ^ { 1 } ( I ) + Z _ { \theta _ { 1 } } ^ { 1 } ( I ) \cdot \nabla _ { \theta _ { \mathcal { H } } } \mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) ,
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
where $I$ is the input of the zero convolution layer.
|
| 351 |
+
|
| 352 |
+
When we start to train the network, the first part of the RHS of (2) follows similar analysis of ControlNet [21] since $\mathcal { H } _ { \boldsymbol { \theta } _ { \mathcal { H } } } \left( c _ { \mathrm { t a s k } } \right)$ is constant when we analyze the gradient $\nabla _ { \theta } Z _ { \theta _ { 1 } } ^ { 1 } ( I )$ . Since the parameters of $\mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } )$ are not initialized to zero, it is known that $\mathcal { H } _ { \theta _ { \mathcal { H } } } ( c _ { \mathrm { t a s k } } ) \neq 0$ . So the gradient dynamic follows the analysis of ControlNet. Therefore, we conclude that $Z _ { \theta _ { \bot } } ^ { 1 } ( I ) \neq 0$ after the first gradient update, and that the network can start to learn and update the following standard dynamics of stochastic gradient descent.
|
| 353 |
+
|
| 354 |
+
As for the second part of the RHS of (2), $Z _ { \theta _ { 1 } } ^ { 1 } ( I ) \equiv 0$ before the first gradient update, so the gradient is zero for $\theta _ { \mathcal { H } }$ . However, after the first gradient update of $\theta _ { 1 }$ , we know $Z _ { \theta _ { 1 } } ^ { 1 } ( I ) \neq 0$ , and $\theta _ { \mathcal { H } }$ can be updated with non-zero gradients.
|
| 355 |
+
|
| 356 |
+
To conclude, the new task-aware Modulated ControlNet can still be efficiently updated and learned even if the convolution layers are initialized to zero.
|
| 357 |
+
|
| 358 |
+
# C Zero-shot-task Results and Analysis
|
| 359 |
+
|
| 360 |
+
We show more zero-shot-task results in this section, where the tasks have not been trained on. In Fig. 13, we show zero-shot deblurring results guided by the keywords. Our deblurred images can successfully recover the fine-grained details of the images without training on such data. We note that some details are still missing, e.g., the details in the painting in the first row are still not clear enough. In Fig. 14, we illustrate two zero-shot image colorization results. We believe that most parts of the generated images are acceptable, though the clothes of the second woman do not look the same to the input blurred image. In Fig. 15, we observe impressive zero-shot inpainting results. In the first row, the duck that is inputted in the text has been successfully generated in the inpainted image. The second row obtains acceptable results as well, though the faces do not look perfect. The overall zero-shot quality of UniControl is remarkable.
|
| 361 |
+
|
| 362 |
+
While inpainting and outpainting might appear related, they are fundamentally distinct. Inpainting heavily leverages the contextual information from unmasked regions, necessitating a precise match. Conversely, outpainting has more freedom, with the generative model prioritizing prompts to envision new content. As shown in Fig. 8, directly using outpainting model for inpainting tasks can be challenging since the model tends to leave a sharp change over the mask boundaries. Our pretrained UniControl, thanks to intensive training across multiple tasks, has learned edge and region-to-image mappings, which assists in preserving contextual information.
|
| 363 |
+
|
| 364 |
+
Our model also demonstrates a promising capacity to generalize under scribble conditions, showing parallels to the ControlNet’s ability, even though UniControl hasn’t been directly trained using scribble data. Fig. 9 provides results illustrating the scribble-to-image generation.
|
| 365 |
+
|
| 366 |
+
# D Details of User Study
|
| 367 |
+
|
| 368 |
+
In the evaluation steps, we use Amazon Mechanical Turk (Mturk) 2 to perform user study. Specifically, we ask three Mturk master workers to select the best output result for each input condition. As shown in Fig. 10, we provide instructions on guidelines to select the best generated image. The annotators are provided the condition map and the text that describes the image, and are required to select the better output between the two generated images. Considering that images can both in good or bad qualities, we provide the tie option as well. We use the majority vote to determine the result of each image, which means that an image is considered as a better image if two or more annotators vote for it. We use 294 images for the tasks of Canny, HED, Surface Normal, Depth, Segmentation, User Sketch, and Outpainting. We adopt 100 images for the task of Human Skeleton and 187 images for the task of Bounding Box. In summary, we totally obtain 7,035 voting results for all nine tasks. 2/3 of source images in testing set are collected from MSCOCO with the remaining 1/3 from Laion. And it includes a very diverse range of topics including indoor scene, outdoor scene, oil painting, portrait, pencil sketch, animation, cartoon, etc.
|
| 369 |
+
|
| 370 |
+

|
| 371 |
+
“Contemporary Bedroom Designs 2015 modern bedroom designs intended design”
|
| 372 |
+
|
| 373 |
+

|
| 374 |
+
Figure 8: Visual comparison of Ours-single-outpainting and UniControl on the inpainting task. The single outpainting model cannot well address the zero-shot inpainting task whereas UniControl demonstrates promising capacity.
|
| 375 |
+
Figure 9: Visual comparison of ControlNet-Scribble and UniControl on the scribble data. ControlNetScribble is trained by the scribble data which, however, are unseen for UniControl.
|
| 376 |
+
|
| 377 |
+

|
| 378 |
+
Figure 10: Mturk interface to select the better generated image.
|
| 379 |
+
|
| 380 |
+

|
| 381 |
+
Figure 11: User study results of User Sketch to image generation.
|
| 382 |
+
|
| 383 |
+
# E Failure Cases
|
| 384 |
+
|
| 385 |
+
We illustrate some failure cases in Fig. 12. In the first row, although our generated image successfully aligns the Bounding Box condition, the generated human has a distorted body. In the second row, our generated image looks similar to the ground truth; however, the human faces are blurred. We think that the reason is that UniControl inherits the data and model bias of Stable Diffusion, where the generated human commonly have issues. In the third row, the generated image does not look realistic. We believe that the training data can be improved both quantitatively and qualitatively.
|
| 386 |
+
|
| 387 |
+
# F Additional Results
|
| 388 |
+
|
| 389 |
+
We illustrate more visualized results in this section on tasks Canny (Fig. 16), HED (Fig. 17), Depth (Fig. 18), Surface Normal (Fig. 19), Human Skeleton (Fig. 20), Bounding Box (Fig. 21), Segmentation (Fig. 22) and Outpainting (Fig. 23). These results further demonstrate the effectiveness of our proposed method. Moreover, due to the space limitation in the main paper, we report results of the last task, User Sketch. Given a sketched image, UniControl is able to achieve promising realistic images. The visualized results are in Fig. 24. The user study result can be found in Fig. 11, where it is observed that UniControl obtains significantly more votes than the single task model.
|
| 390 |
+
|
| 391 |
+

|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
“La tricoteuse Realism William Adolphe Bouguereau Oil Paintings”
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
|
| 398 |
+
“A man and woman in ski gear standing in front of a mountain. “ “The Taj Mahal mirrored by a water fountain's reflection. - Agra, Uttar Pradesh, India - Daily Travel Photos”
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 12: Failure Cases: distorted body (row one); blurred faces (row two); incorrect creation (row three).
|
| 402 |
+
|
| 403 |
+

|
| 404 |
+
|
| 405 |
+
“Christa McAuliffe (right, sat with her backup crew member Barbara Morgan) was a social studies teacher who had won NASA's Teacher in Space contest and earned herself a spot on the mission”
|
| 406 |
+
|
| 407 |
+

|
| 408 |
+
Figure 13: More zero-shot-task deblurring results.
|
| 409 |
+
|
| 410 |
+
Gray Image
|
| 411 |
+
|
| 412 |
+

|
| 413 |
+
|
| 414 |
+
Our Result
|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
|
| 418 |
+
# “Long White Casual Wedding Dress”
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+
“Pixie Cropped Short Layered Synthetic Wig for Women-KAMI WIGS”
|
| 425 |
+
|
| 426 |
+

|
| 427 |
+
Figure 14: More zero-shot-task gray-to-RGB colorization results.
|
| 428 |
+
|
| 429 |
+

|
| 430 |
+
|
| 431 |
+
“Early morning view over the town of Tinerhir, south of the Todra Gorge, Morocco, North Africa, Africa”
|
| 432 |
+
|
| 433 |
+

|
| 434 |
+
“A lone duck basks in the calm lake's mirror reflection of the Chugach mountain valley”
|
| 435 |
+
|
| 436 |
+

|
| 437 |
+
“Chancellor of the Exchequer Rishi Sunak was the most high-profile, and unexpected, appointment of the day”
|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
“Contemporary Bedroom Designs 2015 modern bedroom designs intended design “
|
| 441 |
+
Figure 15: More zero-shot-task image in-painting results. The in-painting MOE adapter weights are directly inherited from outpainting.
|
| 442 |
+
|
| 443 |
+

|
| 444 |
+
|
| 445 |
+

|
| 446 |
+
Figure 17: HED to Image Generation
|
| 447 |
+
|
| 448 |
+
(d) “A young girl who is brushing her teeth with a toothbrush.”
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
Figure 18: Depth to Image Generation
|
| 452 |
+
|
| 453 |
+

|
| 454 |
+
|
| 455 |
+

|
| 456 |
+
|
| 457 |
+

|
| 458 |
+
Figure 19: Surface Normal to Image Generation
|
| 459 |
+
|
| 460 |
+

|
| 461 |
+
|
| 462 |
+

|
| 463 |
+
|
| 464 |
+
(a) “Photo of handsome man in black leather jacket”
|
| 465 |
+
|
| 466 |
+

|
| 467 |
+
Input Image<Captio
|
| 468 |
+
|
| 469 |
+

|
| 470 |
+
Our Method Outputhe snow.
|
| 471 |
+
|
| 472 |
+
(b) “A woman is sitting near a prominent landmark”
|
| 473 |
+
|
| 474 |
+

|
| 475 |
+
Our Method Outputdesk
|
| 476 |
+
|
| 477 |
+
(c) “A man that has ski’s and is standing in the snow.”
|
| 478 |
+
|
| 479 |
+

|
| 480 |
+
Input Image<
|
| 481 |
+
Figure 20: Human Pose Skeleton to Image Generation
|
| 482 |
+
|
| 483 |
+
(d) “A woman is sitting in front of a desk”
|
| 484 |
+
|
| 485 |
+

|
| 486 |
+
|
| 487 |
+

|
| 488 |
+
Input Image
|
| 489 |
+
|
| 490 |
+

|
| 491 |
+
Our Method Output
|
| 492 |
+
|
| 493 |
+
(a) “A bench at the beach next to the sea”ion>: Water traffic along the Thames by Big
|
| 494 |
+
|
| 495 |
+

|
| 496 |
+
|
| 497 |
+

|
| 498 |
+
Our Method Output
|
| 499 |
+
|
| 500 |
+
(b) “Water traffic along the Thames by Big Ben”
|
| 501 |
+
|
| 502 |
+

|
| 503 |
+
|
| 504 |
+
(c) “A well-lit and well-decorated living room shows a glimpse of a glass front door through the corridor.”
|
| 505 |
+
|
| 506 |
+

|
| 507 |
+
Figure 22: Segmentation Map (by Uniformer-ADE20K) to Image Generation
|
| 508 |
+
|
| 509 |
+

|
| 510 |
+
Figure 23: Image Outpainting
|
| 511 |
+
|
| 512 |
+
(d) “Beautiful kitchen grand scale living pinterest for Kitchen cabinets lowes with old world metal wall art”
|
| 513 |
+
|
| 514 |
+

|
| 515 |
+
|
| 516 |
+

|
| 517 |
+
(a) “A Limited Edition, Fine Art photograph of a beautiful sunrise at Lake Jackson in Sebring, Florida. Available as a Fine Art print”
|
| 518 |
+
Figure 24: User Sketch to Image Generation
|
| 519 |
+
|
| 520 |
+
(d) “Superhero watching over city. No transparency used. Basic (linear) gradients. A4 proportions.”
|
parse/dev/v54eUIayFh/v54eUIayFh_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/v54eUIayFh/v54eUIayFh_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|