ZHANGYUXUAN-zR commited on
Commit
3b44463
·
verified ·
1 Parent(s): 9506a0d

Add files using upload-large-folder tool

Browse files
parse/dev/9rKTy4oZAQt/9rKTy4oZAQt.md ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A RISK-SENSITIVE POLICY GRADIENT METHOD
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Standard deep reinforcement learning (DRL) agents aim to maximize expected reward, considering collected experiences equally in formulating a policy. This differs from human decision-making, where gains and losses are valued differently and outlying outcomes are given increased consideration. It also wastes an opportunity for the agent to modulate behavior based on distributional context. Several approaches to distributional DRL have been investigated, with one popular strategy being to evaluate the projected distribution of returns for possible actions. We propose a more direct approach, whereby the distribution of full-episode outcomes is optimized to maximize a chosen function of its cumulative distribution function (CDF). This technique allows for outcomes to be weighed based on relative quality, does not require modification of the reward function to modulate agent behavior, and may be used for both continuous and discrete action spaces. We show how to achieve an asymptotically consistent estimate of the policy gradient for a broad class of CDF-based objectives via sampling, subsequently incorporating variance reduction measures to facilitate effective on-policy learning. We use the resulting algorithm to train agents with different “risk profiles” in penalty-based formulations of six OpenAI Safety Gym environments, observing that moderate emphasis on improvement in training scenarios where the agent performs poorly both increases the accumulation of positive rewards and decreases the frequency of incurred penalties. We found that, in all environments tested, the same risk profile can be used to produce both stronger overall performance than standard Proximal Policy Optimization (PPO) and higher levels of positive reward than PPO constrained by Lagrangians to maintain the same cost levels.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ While deep reinforcement learning (DRL) has been used to master an impressive array of simulated tasks in controlled settings, it has not yet been widely adopted for high-stakes, real-world applications. One reason for this gap is the lack of distributional perspective in standard artificial agents. Endowing agents with such perspective could make their decision-making more robust, potentially leading to increased safety, increased trust from humans, and more widespread real-world adoption.
12
+
13
+ In reinforcement learning (RL), risk arises due to uncertainty around the possible outcomes of an agent’s future actions. It is a result of randomness in the operating environment, mismatch between training and test conditions, and the inherent randomness of a stochastic policy. Risk-sensitive policies, or those that consider more than a mean over the distribution of possible outcomes, offer the potential for added robustness under uncertain and dynamic conditions. There is an evolving landscape of algorithmic paradigms for handling risk in RL, from constraint-based approaches adapted from optimal control (Achiam et al., 2017; Chow et al., 2019; Ray et al., 2019; Zhong et al., 2020) to adversarial approaches emerging from AI Safety (Garc´ıa & Fernandez, 2015; Amodei et al., 2016). ´ Within this landscape, learning approaches that optimize distributional measures offer the ability to express design preferences over the full distribution of potential outcomes, through the specification of a risk-sensitivity criterion.
14
+
15
+ Distributional RL has been studied for value-based methods, with a popular strategy being to use the distributional Bellman equation to estimate the distribution of Q-values for each member of a discrete set of potential actions (Bellemare et al., 2017; Dabney et al., 2018a;b). However, distributional RL has not been widely explored for policy gradient methods, which could permit direct optimization of risk-sensitive measures and naturally accommodate both discrete and continuous action spaces.
16
+
17
+ In the following, we introduce a novel framework for risk-sensitive learning using policy gradients. Our approach allows agents to be trained with different risk profiles through design-time specification of both utility and weight functions, with the latter being defined over the estimated distribution of full-episode rewards. This framework enables agent-based learning that captures aspects of human decision-making, such as overemphasis of rare occurrences and diminishing marginal utility relative to a reference outcome (Kahneman & Tversky, 1979). It also allows implementation of another key strategy of human learning: emphasizing improvement on tasks where one is deficient. We demonstrate the ability of our algorithm to use this strategy to improve performance relative to both unconstrained and constrained methods in six OpenAI Safety Gym environments (Ray et al., 2019).
18
+
19
+ # 2 RELATED WORK
20
+
21
+ Constrained RL offers a set of approaches to safe exploration (Garc´ıa & Fernandez (2015)) that aim ´ to enforce explicit constraints throughout the learning process via methods including Lagrangian constraints (Ray et al. (2019)) and constraint coefficients (Achiam et al. (2017)). Differing from the safe exploration scenario, we here consider problems with distinct training and test phases where agent performance is to be evaluated. Our experiments indicate that risk-sensitive learning can offer performance improvements over constrained learning in scenarios where safety constraints need not be enforced during training.
22
+
23
+ Distributional approaches to risk-sensitive RL have primarily been explored in the value-based setting. Therein, the value distribution has been explicitly modeled through categorical techniques (Bellemare et al., 2017) or quantile regression (Dabney et al., 2018a) and used to improve both value predictions and overall performance. Recent works utilize distributional modeling in the actor-critic setting to enable application to continuous action spaces, again demonstrating improved performance over baseline approaches (Ma et al., 2020; Zhang et al., 2021; Duan et al., 2021). In value-based approaches, risk-sensitivity criteria are applied at run time as a nonlinear warping of the estimated value distribution.
24
+
25
+ Policy gradient approaches offer additional promise for risk-sensitive RL, but require direct optimization of a parameterized policy with respect to a distributional objective. Some existing methods are limited to a specific class of learning objective, such as the set of concave risk measures that allow a globally-optimal solution (Tamar et al., 2015; Zhong et al., 2020). Others allow a broader class of measures but are more restrictive in the class of policies that can be represented (Prashanth et al., 2016). We aim for a risk-sensitive policy gradient approach that both offers significant flexibility in the choice of learning objective and can learn policies parameterized by a deep neural network.
26
+
27
+ Various measures have been considered in the context of risk-sensitive RL, including exponential utility (Pratt, 1964), percentile performance criteria (Wu & Lin, 1999), value-at-risk (Leavens, 1945), conditional value-at-risk (Rockafellar & Uryasev, 2000), and prospect theory (Kahneman & Tversky, 1979). In this work, we consider a class of risk-sensitivity measures motivated by Cumulative Prospect Theory (CPT) (Tversky & Kahneman, 1992). CPT uniquely models two key aspects of human decision-making: (1) a utility function $u$ , computed relative to a reference point that induces more risk-averse behavior in the presence of gains than losses and (2) a weight function $w$ that prioritizes outlying events. Specific forms of $u$ and $w$ are given in Tversky & Kahneman (1992) (and in Appendix A.4), but the general form of CPT admits a wide variety of risk-sensitive objectives.
28
+
29
+ Here we show how to train agents to optimize this class of objectives through sampling-based estimation of their policy gradients and requisite variance reduction. The final algorithm resembles well-known on-policy approaches such as Proximal Policy Optimization (Schulman et al., 2017b) and is similarly widely applicable. Although we do not explore it here, the incorporation of an appropriate risk-sensitivity criterion could additionally enable risk-aware exploration and adversarial training for increased robustness (Pinto et al., 2017; Parisi et al., 2019; Zhang et al., 2020).
30
+
31
+ # 3 RISK-SENSITIVE POLICY OPTIMIZATION
32
+
33
+ In this section we formalize the class of distributional objectives to be considered, derive a samplingbased approximation of its policy gradient, enact variance reduction on this estimate, and use the result to produce a practical learning algorithm.
34
+
35
+ # 3.1 PRELIMINARIES: PROBLEM AND NOTATION
36
+
37
+ Standard deep reinforcement learning seeks to maximize the expected reward of an agent over encountered trajectories; that is, it maximizes the objective
38
+
39
+ $$
40
+ J ( \theta ) = E _ { \tau \sim p _ { \theta } ( \tau ) } \Big [ \sum _ { t } r ( \mathbf { s } _ { t } , \mathbf { a } _ { t } ) \Big ] .
41
+ $$
42
+
43
+ Here $p _ { \theta } ( \tau )$ is the distribution over trajectories $\tau \equiv \mathbf { s } _ { 1 } , \mathbf { a } _ { 1 } , \dots , \mathbf { s } _ { T } , \mathbf { a } _ { T }$ induced by a policy parameterized by $\theta$ ; $\mathbf { s } _ { t } , \mathbf { a } _ { t }$ , and $r ( \mathbf { s } _ { t } , \mathbf { a } _ { t } )$ denote the state, action, and reward at time $t$ , respectively. To enable the incorporation of distributional context, we instead consider the objective
44
+
45
+ $$
46
+ J ( \theta ) = \int _ { - \infty } ^ { + \infty } u ( r ( \tau ) ) \frac { d } { d r ( \tau ) } \biggl ( w ( P _ { \theta } ( r ( \tau ) ) \biggr ) d r ( \tau ) ,
47
+ $$
48
+
49
+ where $u ( r ( \tau ) )$ is the utility associated with full-trajectory reward $\begin{array} { r } { r ( \tau ) \equiv \sum _ { t } r ( \mathbf { s } _ { t } , \mathbf { a } _ { t } ) } \end{array}$ and $w$ is a piecewise differentiable weighting function of the CDF of trajectory reward $P _ { \theta } ( r ( \tau ) ) ~ =$ $\int _ { - \infty } ^ { r ( \tau ) } p _ { \theta } ( r ^ { \prime } ) d r ^ { \prime }$ .
50
+
51
+ Equation 2 is inspired by CPT (Tversky & Kahneman, 1992), which includes a pair of integrals of this form. It was chosen for its generality; by using different utility functions $u$ and weight functions $w$ one may represent all of the risk measures mentioned in Section 2 and all of the risk measures evaluated by Dabney et al. (2018a). The form (2) reduces to (1) when $u$ and $w$ are both the identity mapping. While designed for the episodic setting, the objective (2) may be considered for infinite horizons through the choice of appropriately long windows.
52
+
53
+ # 3.2 RISK-SENSITIVE POLICY GRADIENT
54
+
55
+ To optimize the objective (2), we first derive an approximation to its gradient with respect to the policy parameters $\theta$ . Working toward a representation that can be sampled, we assert the independence of the reward on $\theta$ and use the chain rule to write
56
+
57
+ $$
58
+ \nabla _ { \theta } J ( \theta ) = \int _ { - \infty } ^ { \infty } u ( r ( \tau ) ) \frac { d } { d r ( \tau ) } \biggl ( w ^ { \prime } ( P _ { \theta } ( r ( \tau ) ) ) \nabla _ { \theta } P _ { \theta } ( r ( \tau ) ) \biggr ) d r ( \tau ) ,
59
+ $$
60
+
61
+ where $w ^ { \prime }$ is the derivative of $w$ with respect to $P _ { \theta } ( r ( \tau ) )$ . The gradient of the CDF may be written as follows:
62
+
63
+ $$
64
+ \begin{array} { l } { \displaystyle \nabla _ { \theta } P _ { \theta } ( r ( \tau ) ) = \nabla _ { \theta } \int _ { - \infty } ^ { r ( \tau ) } p _ { \theta } ( r ^ { \prime } ) d r ^ { \prime } = \nabla _ { \theta } \int _ { \tau ^ { \prime } } H ( r ( \tau ) - r ( \tau ^ { \prime } ) ) p _ { \theta } ( \tau ^ { \prime } ) d \tau ^ { \prime } } \\ { \displaystyle = \int _ { \tau ^ { \prime } } H ( r ( \tau ) - r ( \tau ^ { \prime } ) ) \nabla _ { \theta } p _ { \theta } ( \tau ^ { \prime } ) d \tau ^ { \prime } = \int _ { \tau ^ { \prime } } H ( r ( \tau ) - r ( \tau ^ { \prime } ) ) p _ { \theta } ( \tau ^ { \prime } ) \nabla _ { \theta } \log p _ { \theta } ( \tau ^ { \prime } ) d \tau ^ { \prime } . } \end{array}
65
+ $$
66
+
67
+ Here the first equality is the integral representation of $P _ { \theta } ( r ( \tau ) )$ , the second uses the Heaviside step function to select all trajectories with total reward $\leq r ( \tau )$ , the third follows from the independence of reward on $\theta$ , and the fourth follows from the expression for the derivative of the natural logarithm. In the following, we also use the complementary expression
68
+
69
+ $$
70
+ \nabla _ { \theta } P _ { \theta } ( r ( \tau ) ) = \nabla _ { \theta } \bigg ( 1 - \int _ { r ( \tau ) } ^ { \infty } p _ { \theta } ( r ^ { \prime } ) d r ^ { \prime } \bigg ) = - \int _ { \tau ^ { \prime } } H ( r ( \tau ^ { \prime } ) - r ( \tau ) ) p _ { \theta } ( \tau ^ { \prime } ) \nabla _ { \theta } \log p _ { \theta } ( \tau ^ { \prime } ) d \tau ^ { \prime } .
71
+ $$
72
+
73
+ Either form, or a combination of the two, may be substituted into (3) and the result sampled over $N$ trajectories by first ordering trajectories $i = 1 \ldots N$ by increasing reward $r ( \tau )$ . Then
74
+
75
+ $$
76
+ \nabla _ { \theta } J ( \theta ) \approx \sum _ { i = 1 } ^ { N } u ( r ( \tau _ { i } ) ) \bigg ( w ^ { \prime } \bigg ( \frac { i } { N } \bigg ) \nabla _ { \theta } P _ { \theta } ( r ( \tau _ { i } ) ) - w ^ { \prime } \bigg ( \frac { i - 1 } { N } \bigg ) \nabla _ { \theta } P _ { \theta } ( r ( \tau _ { i - 1 } ) ) \bigg ) ,
77
+ $$
78
+
79
+ where the term $w ^ { \prime } ( 0 ) \nabla _ { \theta } P _ { \theta } \big ( r ( \tau _ { 0 } ) \big ) \equiv 0$ . This ordering scheme produces an asymptotically consistent estimate, as shown in the context of CPT value estimation by Prashanth et al. (2016). $\nabla _ { \theta } P _ { \theta } ( r ( \tau _ { i } ) )$ may be sampled in one of two ways, based on either (4) or (5):
80
+
81
+ $$
82
+ \nabla _ { \theta } P _ { \theta } ( r ( \tau _ { i } ) ) \approx \frac { 1 } { N } \sum _ { j = 1 } ^ { i } \sum _ { t = 1 } ^ { T _ { j } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) \approx - \frac { 1 } { N } \sum _ { j = i + 1 } ^ { N } \sum _ { t = 1 } ^ { T _ { j } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) .
83
+ $$
84
+
85
+ The expression (6) may be used to train a policy that optimizes the distributional objective (2) in a manner similar to REINFORCE (Williams, 1992).
86
+
87
+ # 3.3 VARIANCE REDUCTION
88
+
89
+ Reducing the variance of sample-based gradient estimates enables faster learning. Here we take several steps to reduce the variance of (6), as has been done with the policy gradient estimate of REINFORCE (Williams, 1992).
90
+
91
+ First, note that cross-trajectory terms of the form $f ( \tau _ { i } , \mathbf { a } _ { j , t } , \mathbf { s } _ { j , t } ) \stackrel { } { = } u ( r ( \tau _ { i } ) ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } )$ while nonzero, do not contribute to the gradient estimate in expectation when $i \neq j$ . A proof of this assertion is given in Appendix A.1. Using (4) for the first term of (6) and (5) for the second allows us to write
92
+
93
+ $$
94
+ \begin{array} { r l r } { { \nabla _ { \theta } J ( \theta ) \approx \sum _ { i = 1 } ^ { N } u ( r ( \tau _ { i } ) ) \bigg ( w ^ { \prime } \bigg ( \frac { i } { N } \bigg ) \frac { 1 } { N } \sum _ { j = 1 } ^ { i } \sum _ { t = 1 } ^ { T _ { j } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) } } \\ & { } & { \qquad + w ^ { \prime } \bigg ( \frac { i - 1 } { N } \bigg ) \frac { 1 } { N } \sum _ { j = i } ^ { N } \sum _ { t = 1 } ^ { T _ { j } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) \bigg ) . } \end{array}
95
+ $$
96
+
97
+ Removing cross-trajectory terms gives
98
+
99
+ $$
100
+ \overline { { \nabla _ { \theta } J ( \theta ) } } \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } u ( r ( \tau _ { i } ) ) \bigg ( \bigg ( w ^ { \prime } \bigg ( \frac { i } { N } \bigg ) + w ^ { \prime } \bigg ( \frac { i - 1 } { N } \bigg ) \bigg ) \sum _ { t = 1 } ^ { T _ { i } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) .
101
+ $$
102
+
103
+ Note that the weight coefficients $\begin{array} { r } { ( w ^ { \prime } ( \frac { i } { N } ) + w ^ { \prime } ( \frac { i - 1 } { N } ) ) } \end{array}$ should be normalized over each batch. The expression (9) is equivalent to (6) in expectation, but with reduced variance (see Appendix A.1 for justification). It has a clear intuition – trajectories are assigned utilities based on their rewards and their contributions to the gradient are scaled by the derivative of the weight function, just as they are in Cumulative Prospect Theory (Tversky & Kahneman, 1992).
104
+
105
+ Standard variance reduction techniques may be applied to this simplified form. Without further assumption or introduction of additional bias, a static baseline $b$ can be employed:
106
+
107
+ $$
108
+ \nabla _ { \theta } J ( \theta ) \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \left( u ( r ( \tau _ { i } ) ) - b \right) \left( w ^ { \prime } \left( \frac { i } { N } \right) + w ^ { \prime } \left( \frac { i - 1 } { N } \right) \right) \sum _ { t = 1 } ^ { T _ { i } } \nabla _ { \theta } \log \pi _ { \theta } \big ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \big )
109
+ $$
110
+
111
+ Justification for this assertion is given in Appendix A.2. Learning may be further improved if we additionally assume that utility may be allocated on a per-step basis. In this case, per-step utilities are computed as the difference between what the full-episode utility would be if the episode were to end at a given time step and what it would have been had the episode ended at the previous time step. While not applicable in cases where episode utility is adjusted based on final outcome, this assumption has the significant benefit of modeling the temporal allocation of rewards and aligns with the standard formulation of RL. With it, the variance of (9) may be further reduced through the incorporation of utility-to-go and a state-dependent baseline $V _ { \phi } ( \mathbf { s } _ { i , t } )$ :
112
+
113
+ $$
114
+ \nabla _ { \theta } J ( \theta ) \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \left[ w ^ { \prime } \left( \frac { i } { N } \right) + w ^ { \prime } \left( \frac { i - 1 } { N } \right) \right] \sum _ { t = 1 } ^ { T _ { i } } \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) \left[ \sum _ { t ^ { \prime } = t } ^ { T _ { i } } u ( \mathbf { s } _ { i , t ^ { \prime } } , \mathbf { a } _ { i , t ^ { \prime } } ) - V _ { \phi } ( \mathbf { s } _ { i , t } ) \right] .
115
+ $$
116
+
117
+ Here $u ( \mathbf { s } _ { i , t ^ { \prime } } , \mathbf { a } _ { i , t ^ { \prime } } )$ is the per-step utility. The value function $V _ { \phi } ( \mathbf { s } _ { i , t } )$ is parameterized by $\phi$ and trained via regression to minimize
118
+
119
+ $$
120
+ \mathcal { L } ( \phi ) = \sum _ { i , t } \bigg ( V _ { \phi } ( \mathbf { s } _ { i , t } ) - \sum _ { t ^ { \prime } = t } ^ { T _ { i } } u ( \mathbf { s } _ { i , t ^ { \prime } } , \mathbf { a } _ { i , t ^ { \prime } } ) \bigg ) ^ { 2 } .
121
+ $$
122
+
123
+ A standard argument, similar to the approach taken in (Achiam, 2018), can be used to show that the incorporation of utility-to-go does not change the expected value of (9). The addition of a state-dependent baseline also does not introduce additional bias, as justified in Appendix A.2.
124
+
125
+ Finally, discount factors, bootstrapping, and trust regions may be used to provide additional variance reduction, just as they are in conventional on-policy learning (Appendix A.2). These measures may introduce additional bias to the policy gradient estimate, but typically lead to more sampleefficient learning. In our experiments, we evaluate the use of generalized advantage estimation (GAE; (Schulman et al., 2016)) based on the utility-to-go as well as the clipping-based trust regions of Proximal Policy Optimization (PPO; (Schulman et al., 2017b)). Incorporating these in the policy gradient yields
126
+
127
+ $$
128
+ \nabla _ { \theta } J ( \theta ) \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \left( w ^ { \prime } \left( \frac { i } { N } \right) + w ^ { \prime } \left( \frac { i - 1 } { N } \right) \right) \sum _ { t = 1 } ^ { T _ { i } } \nabla _ { \theta } L _ { \mathrm { c l i p } } \bigg ( \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) , A _ { u } ^ { \pi } ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i , t } ) \bigg ) ,
129
+ $$
130
+
131
+ where $A _ { u } ^ { \pi } ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i , t } )$ is the standard GAE except with per-step utilities in place of rewards. Trust regions are implemented similarly to PPO, pessimistically clipping policy updates to be within a multiplicative factor of $1 \pm \epsilon$ of the existing policy:
132
+
133
+ $$
134
+ \begin{array} { r l } & { L _ { \mathrm { c l i p } } = \operatorname* { m i n } \Bigg ( \log \pi _ { \boldsymbol \theta } \big ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \big ) A _ { u } ^ { \pi } \big ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i , t } \big ) , } \\ & { \qquad \log \bigg ( \mathrm { c l i p } \bigg ( \frac { \pi _ { \boldsymbol \theta } \big ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \big ) } { \pi _ { \theta _ { \mathrm { o l d } } } \big ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \big ) } , 1 \pm \epsilon \bigg ) \pi _ { \theta _ { \mathrm { o l d } } } \big ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \big ) \Bigg ) A _ { u } ^ { \pi } \big ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i , t } \big ) \Bigg ) . } \end{array}
135
+ $$
136
+
137
+ They are used to perform multiple policy updates using the same batch of data, providing learning that is no longer strictly on-policy but that can be significantly more sample efficient. When following this route, we apply the same early stopping mechanism, based on the Kullback-Leibler divergence $( D _ { \mathrm { K L } } )$ between old and new policies, as was used by Ray et al. (2019).
138
+
139
+ # 3.4 LEARNING ALGORITHM
140
+
141
+ The above sample-based estimate of the policy gradient may be used to train agents to maximize distributional objectives of the form (2). The resulting method, Cumulative Prospect Proximal Policy Optimization (C3PO), is given in Algorithm 1 and mirrors standard on-policy learning.
142
+
143
+ <table><tr><td>Algorithm 1 Cumulative Prospect Proximal Policy Optimization (C3PO)</td></tr><tr><td>Require: Policy: initial parameters 0o,learning rate αθ,updates per batch Mθ</td></tr><tr><td>Require: Value: initial parameters o,learning rate α𝜙,updates per batch MΦ Require:Early stopping threshold DKL,stop, discount factor y</td></tr><tr><td>for k = 1,2,... do</td></tr><tr><td>Collect set of episodes Dk = {Ti} by running policy π(0k) in the environment</td></tr><tr><td>Compute per-step utilities u(Si,t, ai,t)</td></tr><tr><td>Fit value function by regression:</td></tr><tr><td>for m=1,...M do</td></tr><tr><td>(v(i)-∑()) ←Φ+aV∑T∑it(</td></tr><tr><td>end for</td></tr><tr><td></td></tr><tr><td>Update utility-based advantage estimates A&quot;(s,a), using new V(s)</td></tr><tr><td>Compute weight coefficients based on ordered episode outcomes and normalize</td></tr><tr><td>Update policy, using KL-based early stopping:</td></tr><tr><td>for m=1,...Mθ do if DKL(πθ/πold)&lt;DkL, stop then</td></tr><tr><td>N</td></tr><tr><td>θ←θ+aθ∑1(w′()+w′(1))∑=1 VLeip(logθ(ai,tlsi,t),A((sit,ai,t)) else</td></tr></table>
144
+
145
+ ![](images/77aa2a8e4e8903a0e8c73d9178f7e58cb69c1b08ab6f8e6fde7356f5b778ee51.jpg)
146
+ Figure 1: Example weight functions and their resulting coefficients in the policy gradient estimate (9). In these plots, outcomes increase in quality from left to right. As in CPT (Tversky & Kahneman, 1992), weight coefficients are proportional to the derivative of the weight function.
147
+
148
+ Beyond the utility and weight components, Algorithm 1 differs from conventional methods in the requirement to collect full episodes of data in each batch. This requirement can be removed if outcomes can be defined over partial rather than full episodes, an assumption that is often viable and matches human decision-making. For instance, while out of scope for this work, our approach could be applied to the Atari suite (Bellemare et al., 2013) by considering the outcomes of fixed-length windows and restructuring Algorithm 1 to mimic minibatch PPO (Schulman et al., 2017b).
149
+
150
+ # 4 EXPERIMENTS
151
+
152
+ To evaluate our approach, we sought to both establish that it can effectively optimize different distributional objectives and explore the impact of using different objectives on agent outcomes. We found the OpenAI Safety Gym (Ray et al., 2019) to be suitable for these purposes. Safety Gym is a configurable suite of continuous, multidimensional control tasks wherein different types of robots must navigate through obstacles with different dynamics to perform different tasks. By including both positive and negative events in each training scenario, it allowed us to evaluate how our various agents handled risk. Safety Gym is also highly stochastic: the locations of the goals and obstacles are randomized, leading to outcome variability and forcing the agent to learn a generalized navigation strategy.
153
+
154
+ Safety Gym logs adverse events but does not incorporate them into the reward function. As our method relies solely on the training signal from the reward, we assigned each logged adverse event a fixed, negative reward contribution in experiments using it or other unconstrained agents. Our initial experiments were conducted with a reward contribution of $- 0 . 0 2 5$ , which was found to allow agents to prioritize reaching goals but deter them from collisions with obstacles. To further emphasize obstacle avoidance, we doubled this contribution to $- 0 . 0 5$ in our experiments using cautious weightings. These choices and the role they play are further discussed in Section 5.
155
+
156
+ To highlight distributional differences, we focused on the publicly available, obstacle-rich level 2 environments.1 Avoiding the longer compute time of the “Doggo” robot, we evaluated the “Point” and “Car” robots on each task (“Goal”, “Button”, and “Push”). Further details on these environments and our rationale for choosing them are given in Appendix A.3.
157
+
158
+ In all experiments, we evaluated five random seeds and matched the hyperparameters used in the baselines accompanying Safety Gym (Ray et al., 2019) as closely as possible. The neural networks used to model both policy and value were multilayer perceptrons (MLPs), with two hidden layers of 256 units each and tanh activations. As in Ray et al. (2019), the policy network outputs the mean values of a multivariate gaussian with diagonal covariance. The control variances are optimized but independent of state. The full complement of variance reduction measures were used throughout; see Appendix A.4 for experimental justification of this choice.
159
+
160
+ # 4.1 DIFFERING OBJECTIVES
161
+
162
+ Agent performance was explored under four different distributional objectives. In addition to expected reward and CPT (configured to match the original form of Tversky & Kahneman (1992) and as given in Appendix A.4), we optimized for cautious ( $\gamma = 0 . 7 5 )$ and aggressive $( \eta = - 0 . 7 5 )$ versions of the distortion risk measure proposed in Wang (2000). This measure is defined as $w ( p ) = \Phi ( \Phi ^ { - 1 } ( p ) + \eta )$ where $\Phi$ and $\Phi ^ { - 1 }$ are the standard normal cumulative distribution function and its inverse. While we found this form to be convenient, the “Pow” metric in Dabney et al. (2018a) or any other set of similarly shaped $w$ curves should achieve a similar effect. In experiments using the objective from Tversky & Kahneman (1992), the reference point was taken to be the mean episode reward of the current batch, matching the tendency of humans to change their standards over time. The four weight functions and their resulting coefficients in (9) are shown in Figure 1.
163
+
164
+ ![](images/e0e22e1a977d26c084e5a479a42b9426590fced223729c1eece0c6e3436890d2.jpg)
165
+ Figure 2: Impact of different distributional objectives in one environment (CarButton2). The shading in the first 2 plots (and subsequent learning curves) reflects the standard deviation associated with running over 5 random seeds. Left: Net reward (positive reward minus penalty) throughout learning. Middle: Average number of cost events per episode during training (lower is better). Right: Agent outcome distribution in testing (with sampling turned off). The cautious (Wang $( \eta = 0 . 7 5 )$ ) weighting shows higher reward and lower cost once trained.
166
+
167
+ Plots of the total rewards (including penalties) in training, average cost events per episode in training, and outcome distributions in testing are shown for one environment in Figure 2 and for two additional environments in Appendix A.5. The trends were fairly consistent over the three environments evaluated in this manner. While no explicit effort was made to handle cost (agents were given only the sum of positive rewards and penalties), the cautious and aggressive weightings consistently accumulated relatively low and high costs, respectively. The cautious $( \mathrm { W a n g } ( \eta = 0 . 7 5 ) )$ ) agent typically also generated the highest positive and total rewards after 10 millions steps of training.
168
+
169
+ To generate the histograms in Figures 2, 5, 8, 9, and 13 as well as the numbers in Table 1, the trained agents were deployed on a set of 5000 test episodes – 1000 for each of the 5 networks learned using different random seeds in training. The resulting distributions therefore include contributions from both aleatoric and epistemic uncertainty. Sampling was turned off, allowing the agents to choose their perceived optimal action at each time step. In this context the benefit of emphasizing the lower part of the outcome distribution (i.e., cautious weighting) became more pronounced, in part because the methods that emphasize poor outcomes tended to maintain higher policy entropy (Appendix A.5).
170
+
171
+ # 4.2 CAUTIOUS WEIGHTINGS
172
+
173
+ To further explore the apparent benefits of cautious weightings in Safety Gym, we trained a series of variably cautious agents by tuning $\eta$ in the risk-averse weight function proposed by Wang (2000). Histograms of their episode rewards in testing are given in Appendix A.5 and summarized in Table 1. In these environments, agent performance – both in terms of improving the lower end of the reward distribution and on average – was seen to generally improve with increasing $\eta$ until the range $\eta \in [ 0 . 7 5 , 1 . 2 5 ]$ , subsequently degrading. Additional comparisons were made with PPO (Schulman et al., 2017b), which unsurprisingly was found to closely track performance of the “Uniform” agent. We found that naively incorporating cautious weightings into PPO improved its performance (row $\mathrm { P P O } + \mathrm { W a n g } ( 0 . 7 5 )$ in Table 1), though not to the level of the full C3PO method with $\eta = 0 . 7 5$ .
174
+
175
+ We then pursued a set of longer runs to compare C3PO with the cautious objective from Wang (2000) to both unconstrained and constrained benchmarks. Here we did not tune $\eta$ , keeping it fixed at 0.75 for all experiments. Comparisons with unconstrained methods for three environments are given in Figures 3, 4, and 5 and for the remaining three environments in Appendix A.6. In addition to PPO, we compared performance with Trust Region Policy Optimization (TRPO; Schulman et al. (2017a)) as configured in Ray et al. (2019). Since this TRPO configuration generally outperformed the PPO configuration in Ray et al. (2019) from which we derived the hyperparameters for C3PO, we would expect C3PO to be at a disadvantage compared to TRPO. However, we found C3PO had the highest
176
+
177
+ <table><tr><td rowspan="2"></td><td colspan="4">PointButton2</td><td colspan="4">CarGoal2</td><td colspan="4">CarButton2</td></tr><tr><td>Mean</td><td>Std</td><td>Q=0.5</td><td>Q=.05</td><td>Mean</td><td>Std</td><td>Q=0.5</td><td>Q=.05</td><td>Mean</td><td>Std</td><td>Q=0.5</td><td>Q=.05</td></tr><tr><td>Uniform</td><td>22.5</td><td>7.1</td><td>22.8</td><td>10.7</td><td>18.1</td><td>6.6</td><td>18.0</td><td>7.4</td><td>12.4</td><td>9.1</td><td>14.0</td><td>-6.1</td></tr><tr><td> CPT Value</td><td>16.5</td><td>7.3</td><td>16.3</td><td>4.9</td><td>13.9</td><td>7.7</td><td>14.6</td><td>-0.5</td><td>9.5</td><td>10.7</td><td>11.2</td><td>-11.0</td></tr><tr><td>Wang (-0.75)</td><td>17.5</td><td>6.1</td><td>17.6</td><td>7.6</td><td>13.5</td><td>6.9</td><td>14.0</td><td>0.9</td><td>6.4</td><td>10.7</td><td>8.9</td><td>-15.5</td></tr><tr><td>Wang (0.5)</td><td>23.3</td><td>6.3</td><td>23.3</td><td>13.1</td><td>18.5</td><td>6.0</td><td>18.8</td><td>8.2</td><td>12.9</td><td>9.0</td><td>14.4</td><td>-5.6</td></tr><tr><td>Wang (0.75)</td><td>24.2</td><td>6.7</td><td>24.4</td><td>13.7</td><td>19.0</td><td>6.4</td><td>19.3</td><td>8.2</td><td>14.3</td><td>9.5</td><td>15.8</td><td>-4.4</td></tr><tr><td>Wang (1.0)</td><td>24.7</td><td>6.0</td><td>24.9</td><td>15.1</td><td>20.3</td><td>6.9</td><td>21.3</td><td>7.2</td><td>11.4</td><td>11.0</td><td>13.8</td><td>-12.2</td></tr><tr><td>Wang (1.25)</td><td>25.4</td><td>6.1</td><td>25.4</td><td>15.9</td><td>17.3</td><td>6.7</td><td>17.8</td><td>5.6</td><td>12.7</td><td>10.4</td><td>14.8</td><td>-8.3</td></tr><tr><td>Wang (1.50)</td><td>23.6</td><td>5.9</td><td>23.7</td><td>14.1</td><td>16.6</td><td>7.5</td><td>17.2</td><td>3.1</td><td>10.1</td><td>12.0</td><td>13.3</td><td>-17.9</td></tr><tr><td>Wang (1.75)</td><td>23.4</td><td>6.2</td><td>23.5</td><td>13.5</td><td>12.5</td><td>8.0</td><td>13.0</td><td>-0.6</td><td>7.3</td><td>13.0</td><td>11.1</td><td>-22.8</td></tr><tr><td>PPO°</td><td>19.0</td><td>6.4</td><td>18.9</td><td>9.1</td><td>15.8</td><td>6.0</td><td>15.8</td><td>5.8</td><td>8.3</td><td>9.5</td><td>9.5</td><td>-9.8</td></tr><tr><td>PPO + Wang(0.75)</td><td>20.4</td><td>8.4</td><td>21.7</td><td>2.6</td><td>17.7</td><td>6.7</td><td>18.0</td><td>6.3</td><td>12.1</td><td>9.5</td><td>13.6</td><td>-6.8</td></tr></table>
178
+
179
+ Table 1: Testing statistics for episode rewards achieved by agents trained over 10 million steps with different distributional objectives. $Q = 0 . 5$ is the median and $Q = 0 . 0 5$ refers to the location of the 0.05 quantile. Blue bold-face represents the best performance for a given environment; in all cases these occur for moderately cautious weightings $( \eta \in [ 0 . 7 5 , 1 . 2 5 ] )$ .
180
+
181
+ ![](images/bb501da34dad9ffd280e1e0abf0d5aecacef9ec4aebd9042e3c91ece0f75c297.jpg)
182
+ Figure 3: Average episode reward (including penalty) over training for different learning approaches in three different environments. C3PO with Wang $\langle \eta = 0 . 7 5 \rangle$ weighting outperforms others.
183
+
184
+ average reward (including penalty) in five of the six environments and lowest average cost in five of the six environments. In addition, agents that used the cautious weightings tended to have more stable and repeatable training, as evidenced by the tight distribution of their learning curves. This tightness was found to reflect a lack of negative outlier episodes and potentially lower epistemic uncertainty throughout training. Finally, note that the use of a nonzero penalty for cost events resulted in significantly lower incurred costs than were observed with unconstrained agents trained without a penalty (Ray et al., 2019). PPO and TRPO were seen to reach similar cost levels without a penalty; these levels are indicated by red dashed lines in the cost figures.
185
+
186
+ Comparisons with versions of PPO and TRPO that use Lagrangian constraints (PPO-Lagrangian and TRPO-Lagrangian; Ray et al. (2019)) to match the cost level of C3PO are shown in Figure 6 and Appendix A.7 . We see that, given the same level of cost incurred per episode, agents trained using C3PO consistently achieve higher levels of reward than those trained with PPO-Lagrangian and TRPO-Lagrangian. As above, training is seen to be more stable and repeatable using our risksensitive method. Additional comparisons were generated with Constrained Policy Optimization (CPO; Achiam et al. (2017)), but are not shown in Figure 6 because they failed to maintain the cost levels of the other methods. For completeness, they are given in Appendix A.7.
187
+
188
+ ![](images/b480abf87ed601bfa9179249c5ec3dd7d87906197280fa6f22c1a694668b308f.jpg)
189
+ Figure 4: Average number of penalty events per episode (lower is better) over training for different learning approaches in three different environments. The horizontal lines reflect the cost levels reached by both PPO and TRPO training with zero penalty in Ray et al. (2019).
190
+
191
+ ![](images/1ea98699dfc873c29da3ef3b46e960c5a5e7468be941a26dfa56083a0f5b663d.jpg)
192
+ Figure 5: Testing reward distributions (including penalty; sampling turned off) for long training runs of three Safety Gym environments.
193
+
194
+ ![](images/590e3d8733c49cdf2b37370bfa39c5fd34856e12ec257bbfea7255b8db3a9693.jpg)
195
+ Figure 6: Comparison of positive contributions to episode reward during training for our approach (yellow) and Lagrangian methods configured to have the same cost level.
196
+
197
+ # 5 DISCUSSION
198
+
199
+ The analysis above allows for sample-based policy gradient estimates of a broad class of distributional objectives. Variance reduction measures were shown to enable efficient optimization based on these estimates (Appendix A.4). However, it was not seen to be the case that a given distributional objective could be most effectively optimized directly. Instead, the best results were generally obtained through moderate emphasis on improving negative training outcomes (Table 1).
200
+
201
+ To understand this behavior, consider the interplay of optimization and exploration in the training of cautious and aggressive agents. Cautious weightings continually emphasize the lower part of the outcome distribution, pushing that part of the distribution upward and adjusting behavior the most where it is most necessary. Once a part of the state space where the agent is deficient is adequately addressed, a different part of the state space takes its place. Policy entropy remains high because of the emphasis on problematic situations, ensuring adequate exploration. This trend continues with increasing $\eta$ , until the point where the agent begins to ignore high quality training outcomes too much. Conversely, aggressive weightings continually emphasize the best outcomes in the distribution. When an already strong outcome is given increased attention, it is likely to stay at the top. Hence agents trained with aggressive weightings tend to become myopic, obsessing over a fraction of the state space while neglecting the rest of it. They tend to explore inadequately and ironically fail to attain better top-end performance than more cautious weightings.
202
+
203
+ Given the consistent performance gains observed using our method, we propose that it represents a useful option for improving the performance and stability of on-policy learners. This should be particularly true in the presence of a meaningful trade-off between positive and negative reward terms and when there is significant stochasticity. While our approach does add an additional hyperparameter – the shaping constant $\eta$ – one value for that hyperparameter was seen to provide gains across all environments tested. While our approach does not provide for a direct choice of cost limit as constrained methods do, it is simpler to implement and was consistently seen to be more performant for the cost level it reached. It is also likely possible to use cautious weightings in conjunction with constrained RL, though this has not yet been investigated.
204
+
205
+ # 6 CONCLUSIONS
206
+
207
+ In this work, we proposed a risk-sensitive learning algorithm based on a policy gradient estimate for a broad class of distributional objectives. When configured to emphasize improvement in scenarios where the agent performs poorly, we found our method to compare favorably with existing unconstrained and constrained on-policy learners.
208
+
209
+ # REFERENCES
210
+
211
+ Josh Achiam. Openai spinning up: Proof for don’t let the past distract you. http://spinningup. openai.com/en/latest/spinningup/extra_pg_proof1.html, 2018.
212
+
213
+ Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. In Proceedings of the 34th International Conference on Machine Learning (ICML), pp. 22–31, 2017.
214
+
215
+ Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mane.´ Concrete problems in AI safety. arXiv:1606.06565, 2016.
216
+
217
+ M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, jun 2013.
218
+
219
+ Marc G. Bellemare, Will Dabney, and Remi Munos. A distributional perspective on reinforcement ´ learning. In Proceedings of the 34th International Conference on Machine Learning (ICML), volume 70, pp. 449–458, 2017.
220
+
221
+ Yinlam Chow, Ofir Nachum, Aleksandra Faust, Mohammad Ghavamzadeh, and Edgar A. Due´nez- ˜ Guzman. Lyapunov-based safe policy optimization for continuous control. ´ CoRR, abs/1901.10031, 2019. URL http://arxiv.org/abs/1901.10031.
222
+
223
+ Will Dabney, Georg Ostrovski, David Silver, and Remi Munos. Implicit quantile networks for ´ distributional reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80, pp. 1096–1105, 2018a.
224
+
225
+ Will Dabney, Mark Rowland, Marc G. Bellemare, and Remi Munos. Distributional reinforcement ´ learning with quantile regression. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence (AAAI), pp. 2892–2901, 2018b.
226
+
227
+ Jingliang Duan, Yang Guan, Shengbo Eben Li, Yangang Ren, Qi Sun, and Bo Cheng. Distributional soft actor-critic: Off-policy reinforcement learning for addressing value estimation errors. IEEE Transactions on Neural Networks and Learning Systems, pp. 1–15, 2021.
228
+
229
+ Javier Garc´ıa and Fernando Fernandez. A comprehensive survey on safe reinforcement learning. ´ Journal of Machine Learning Research, 16(42):1437–1480, 2015.
230
+
231
+ Daniel Kahneman and Amos Tversky. Prospect theory: An analysis of decision under risk. Econometrica, 47(2):263–291, 1979.
232
+
233
+ Dickson H. Leavens. Diversification of investments. Trusts and Estates, 80:469–473, 1945.
234
+
235
+ Xiaoteng Ma, Li Xia, Zhengyuan Zhou, Jun Yang, and Qianchuan Zhao. DSAC: Distributional soft actor critic for risk-sensitive reinforcement learning. arXiv:2004.14547, June 2020.
236
+
237
+ German I. Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, May 2019.
238
+
239
+ Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017.
240
+
241
+ L.A. Prashanth, Cheng Jie, Michael C. Fu, Steven I. Marcus, and Csaba Szepesvari. Cumulative ´ prospect theory meets reinforcement learning: Prediction and control. In Proceedings of the 33nd International Conference on Machine Learning (ICML), pp. 1406–1415, 2016.
242
+
243
+ John W. Pratt. Risk aversion in the small and in the large. Econometrica, 32:122–136, 1964.
244
+
245
+ Alex Ray, Joshua Achiam, and Dario Amodei. Benchmarking safe exploration in deep reinforcement learning. https://cdn.openai.com/safexp-short.pdf, 2019.
246
+
247
+ R. Tyrrell Rockafellar and Stanislav Uryasev. Optimization of conditional value-at-risk. Journal of Risk, 2:21–41, 2000.
248
+
249
+ John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2016.
250
+
251
+ John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust region policy optimization. In Proceedings of the 32nd International Conference on Machine Learning (ICML), 2017a.
252
+
253
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv:1707.06347, 2017b.
254
+
255
+ Aviv Tamar, Yinlam Chow, Mohammad Ghavamzadeh, and Shie Mannor. Policy gradient for coherent risk measures. In Proceedings of the 28th International Conference on Neural Information Processing Systems (NeurIPS), pp. 1468–1476, 2015.
256
+
257
+ Amos Tversky and Daniel Kahneman. Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and Uncertainty, 5(4):297–323, 1992.
258
+
259
+ Shaun S. Wang. A class of distortion operators for pricing financial and insurance risks. The Journal of Risk and Insurance, 67(1):15, March 2000.
260
+
261
+ Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3):229–256, May 1992.
262
+
263
+ Congbin Wu and Yuanlie Lin. Minimizing risk models in Markov decision processes with policies depending on target values. Journal of Mathematical Analysis and Applications, 231:47–67, 1999.
264
+
265
+ Huan Zhang, Hongge Chen, Chaowei Xiao, Bo Li, Mingyan Liu, Duane Boning, and Cho-Jui Hsieh. Robust deep reinforcement learning against adversarial perturbations on state observations. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Proceedings of the 34th International Conference on Neural Information Processing Systems (NeurIPS), volume 33, pp. 21024–21037, 2020.
266
+
267
+ Junyu Zhang, Amrit Singh Bedi, Mengdi Wang, and Alec Koppel. Cautious reinforcement learning via distributional risk in the dual domain. IEEE Journal on Selected Areas in Information Theory, 2(2):611–626, 2021.
268
+
269
+ Han Zhong, Ethan X. Fang, Zhuoran Yang, and Zhaoran Wang. Risk-sensitive deep RL: Varianceconstrained actor-critic provably finds globally optimal policy. arXiv:2012.14098, 2020.
270
+
271
+ # A APPENDIX
272
+
273
+ # A.1 EVALUATION OF CROSS-TRAJECTORY TERMS IN POLICY GRADIENT
274
+
275
+ In this section, we first show that the cross-trajectory terms in our policy gradient estimate (6) have an expectation value of 0. We then argue that their removal leads to a policy gradient estimate with reduced variance.
276
+
277
+ Lemma 1. Cross-trajectory terms of the form $f ( \tau _ { i } , \mathbf { a } _ { j , t } , \mathbf { s } _ { j , t } ) = u ( r ( \tau _ { i } ) ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } )$ , where $i \neq j$ , do not contribute to the gradient estimate (6) in expectation.
278
+
279
+ Proof. First, note that
280
+
281
+ $$
282
+ \begin{array} { r l } & { E _ { \tau _ { i } \sim p _ { \theta } ( \tau ) , \tau _ { j } \sim p _ { \theta } ( \tau ) } f ( \tau _ { i } , \mathbf { a } _ { j , t } , \mathbf { s } _ { j , t } ) = E _ { \tau _ { i } \sim p _ { \theta } ( \tau ) , \tau _ { j } \sim p _ { \theta } ( \tau ) } u ( r ( \tau _ { i } ) ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) } \\ & { \qquad = E _ { \tau _ { i } \sim p _ { \theta } ( \tau ) } \Bigg [ u ( r ( \tau _ { i } ) ) E _ { \tau _ { j } \sim p _ { \theta } ( \tau ) } \Bigg [ \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) \Bigg | \tau _ { i } \Bigg ] \Bigg ] } \end{array}
283
+ $$
284
+
285
+ Then consider the innermost expectation:
286
+
287
+ $$
288
+ \begin{array} { r l } { \mathbb { E } _ { \tau _ { j } \sim \mathbb { P } _ { \theta } ( \tau ) } \Bigg [ \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) \Bigg | \tau _ { i } \Bigg ] = \displaystyle \int _ { \mathbf { s } _ { j , t } , \mathbf { a } _ { j , t } } p ( \mathbf { s } _ { j , t } , \mathbf { a } _ { j , t } | \tau _ { \theta } , \tau _ { j } ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) d \mathbf { a } _ { j , t } d \mathbf { s } _ { j , t } } \\ { = \displaystyle \int _ { \mathbf { s } _ { j , t } } p ( \mathbf { s } _ { j , t } | \pi _ { \theta } , \tau _ { i } ) \int _ { \mathbf { a } _ { j , t } } \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) d \mathbf { a } _ { j , t } d \mathbf { s } _ { j , t } } \\ { = \displaystyle \int _ { \mathbf { s } _ { j , t } } p ( \mathbf { s } _ { j , t } | \pi _ { \theta } , \tau _ { i } ) \int _ { \mathbf { a } _ { j , t } } \nabla _ { \theta } \pi _ { \theta } ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) d \mathbf { a } _ { j , t } d \mathbf { s } _ { j , t } } \\ { = \displaystyle \int _ { \mathbf { s } _ { j , t } } p ( \mathbf { s } _ { j , t } | \pi _ { \theta } , \tau _ { i } ) \nabla _ { \theta } \int _ { \mathbf { a } _ { j , t } } \pi ( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } ) d \mathbf { a } _ { j , t } d \mathbf { s } _ { j , t } } \\ { = \displaystyle \int _ { \mathbf { s } _ { j , t } } p ( \mathbf { s } _ { j , t } | \pi _ { \theta } , \tau _ { i } ) \nabla _ { \theta } \log \left( \mathbf { a } _ { j , t } | \mathbf { s } _ { j , t } \right) d \mathbf { a } _ { j , t } d \mathbf { s } _ { j , t } } \\ = \displaystyle \int _ { \mathbf { s } _ { j , t } , | \pi _ { \theta } , \tau _ { i } | } \end{array}
289
+ $$
290
+
291
+ To see why removal of cross-trajectory terms leads to reduced variance, consider that the full expression (6) may be written as the sum of terms of the form $\begin{array} { r l } { f ( \tau _ { i } , \mathbf { a } _ { j , t } , \mathbf { s } _ { j , t } ) } & { { } = } \end{array}$ $u ( r ( \tau _ { i } ) \bar { ) } _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { j , t } , \bar { \mathbf { s } _ { j , t } } )$ . Its variance is the sum of the total variance from terms where $i = j$ , the total variance from terms where $i \neq j$ , and a term proportional to the covariance of these two totals. However, because each term in the covariance contains at least one trajectory that differs from the rest, the above reasoning may be applied to argue that the covariance is 0. Hence, the removal of the cross-trajectory terms lowers the variance of the policy gradient estimate by the variance of the cross-trajectory terms.
292
+
293
+ A.2 INTRODUCTION OF STATIC AND STATE-DEPENDENT BASELINES
294
+
295
+ Lemma 2. A static baseline of the utility may be added to the policy gradient estimate (9) without introduction of bias.
296
+
297
+ Proof. The additional term is 0 in expectation as
298
+
299
+ $$
300
+ \begin{array} { r l } & { \mathbb { E } _ { \tau _ { \tau } \sim p _ { \theta } ( \tau ) } \left[ b \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i } , | \mathbf { s } _ { i } , t ) \right] } \\ & { \qquad = b \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } , \mathbf { a } _ { i } , t } p ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i } , t | \pi _ { \theta } ) \Bigg [ \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i } , | \mathbf { s } _ { i } , t ) \Bigg ] d \mathbf { a } _ { i , t } d \mathbf { s } _ { i , t } } \\ & { \qquad = b \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } | \pi _ { \theta } ) \int _ { \mathbf { a } _ { i , t } } \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i } , t ) d \mathbf { a } _ { i , t } d \mathbf { s } _ { i , t } } \\ & { \qquad = b \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } | \pi _ { \theta } ) \nabla _ { \theta } \int _ { \mathbf { a } _ { i , t } } \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) d \mathbf { a } _ { i , t } d \mathbf { s } _ { i , t } } \\ & \qquad = b \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } | \pi _ { \theta } ) \nabla _ { \theta } \mathbf { 1 } _ { i , t } d \end{array}
301
+ $$
302
+
303
+ The contribution of the weight terms $\begin{array} { r } { ( w ^ { \prime } ( \frac { i } { n } ) + w ^ { \prime } ( \frac { i - 1 } { n } ) ) } \end{array}$ may be pulled out of the integral between the first and second line because of its independence on both state and action. This term is fixed for a given trajectory by the rank of its reward amongst the rewards accumulated on all trajectories in the current batch.
304
+
305
+ In our variance reduction experiments (Appendix A.4), the “Base” agent uses $b$ equal to the mean of full-episode utility in the current batch.
306
+
307
+ As described in Section 3.3, we may further adjust the policy gradient estimate through introduction of per-step utilities. In this case, we may justify the use of a state-dependent baseline through the following.
308
+
309
+ Lemma 3. A state-dependent baseline $V _ { \phi } ( \mathbf { s } _ { i , t } )$ may be added to the policy gradient estimate (9) without introduction of bias, if per-step utilities are assumed.
310
+
311
+ Proof. The additional term is 0 in expectation as
312
+
313
+ $$
314
+ \begin{array} { r l } & { \mathbb { E } _ { \tau _ { i } \sim p _ { 0 } ( \tau ) } \Big [ \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Big ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) V _ { \phi } ( \mathbf { s } _ { i , t } ) \Big ] } \\ & { \qquad = \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } , \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } , \mathbf { a } _ { i , t } | \pi _ { \theta } ) V _ { \phi } ( \mathbf { s } _ { i , t } ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) d \mathbf { a } _ { i , t } d \mathbf { s } _ { i , t } } \\ & { \qquad = \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } | \pi _ { \theta } ) V _ { \phi } ( \mathbf { s } _ { i , t } ) \int _ { \mathbf { a } _ { i , t } } \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } ) d \mathbf { a } _ { i , t } } \\ & { \qquad = \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf { s } _ { i , t } | \pi _ { \theta } ) V _ { \phi } ( \mathbf { s } _ { i , t } ) \nabla _ { \theta } \left( \mathbf { a } _ { i , t } | \mathbf { s } _ { i , t } \right) d \mathbf { a } _ { i , t } d \mathbf { s } _ { i , t } } \\ & \qquad = \Bigg ( w ^ { \prime } \left( \frac { i } { n } \right) + w ^ { \prime } \left( \frac { i - 1 } { n } \right) \Bigg ) \int _ { \mathbf { s } _ { i , t } } p ( \mathbf s \end{array}
315
+ $$
316
+
317
+ The rationale for pulling the $w ^ { \prime }$ terms out of the integral is the same as in Lemma 2.
318
+
319
+ Finally, we note that the ability to pull the contribution of the weight terms $\begin{array} { r } { ( w ^ { \prime } ( \frac { i } { n } ) + w ^ { \prime } ( \frac { i - 1 } { n } ) ) } \end{array}$ to the front of Equation 11 allows us to formulate advantage estimates based on per-step utility. Bootstrap estimates of the value function $V _ { \phi } ( \mathbf { s } _ { i , t } )$ and Generalized Advantage Estimation as in Schulman et al. (2016) can be conducted exactly as they are in standard on-policy learning, if rewards are replaced by per-step utilities.
320
+
321
+ # A.3 ADDITIONAL INFORMATION ON SAFETY GYM
322
+
323
+ As mentioned in Section 4, we chose to evaluate our approach using the OpenAI Safety Gym (Ray et al., 2019). The choice was governed by our desire to test in conditions with clear cost-benefit trade-offs, significant stochasticity, adequate complexity, and available benchmarks. While our methods are not limited to particular task types or observation/action spaces, we found Safety Gym to be suitable for exploring their potential.
324
+
325
+ The six environments chosen were the most obstacle-rich of the publicly available environments that used the “Point” and “Car” robots. The Point robot is constrained to the 2D plane and has two control dimensions: one for moving forward/backward and one for turning. The Car robot also has two control dimensions, corresponding to independently actuated parallel wheels. It has a freely rotating wheel and, while it is not constrained to the 2D plane, typically remains in it. While we expect our results to extend to the remaining default robot, “Doggo”, we did not experiment with it because of the order of magnitude longer training times it exhibited in Ray et al. (2019).
326
+
327
+ Several types of obstacles and tasks were present in the environments we evaluated. In all cases, the robot is given a fixed amount of time (1000 steps) to complete the prescribed task as many times as possible and is motivated by both sparse and dense reward contributions. In the “Goal” environments, the robot must navigate to a series of randomly-assigned goal positions, with a new target being assigned as soon as a goal is reached. In the “Button” environments, the robot must reach and press a sequence of goal buttons while avoiding other buttons. In the “Push” task, the robot must push a box to a series of goal positions. The set of obstacles are different for each task; among the three environments there are a total of five different constraint elements (hazards, vases, incorrect buttons, pillars, and gremlins), each with different dynamics. See Ray et al. (2019) for further details.
328
+
329
+ # A.4 EMPIRICAL PERFORMANCE OF VARIANCE REDUCTION MEASURES
330
+
331
+ To gauge the impact of the variance reduction techniques outlined in Section 3.3, we evaluated their performance in maximizing the value function of Cumulative Prospect Theory (Tversky & Kahneman, 1992). As mentioned in Section 3.1, this function has two integrals of the form (2):
332
+
333
+ ![](images/e4fc7555f5d13748a1481c4e76a2449b69e4d2ae8e481a159d249b1af8716792.jpg)
334
+ Figure 7: Impact of variance reduction measures on optimization of the CPT value function. Here “Base” refers to the risk-sensitive policy gradient estimate (10), “UTG” adds utility-to-go and a neural network baseline (11), “GAE” incorporates generalized advantage estimation, and “TR” implements trust regions via clipping. Shading represents the variation over five random seeds.
335
+
336
+ $$
337
+ \begin{array} { l } { \displaystyle { J ( \theta ) = - \int _ { - \infty } ^ { \infty } u ^ { - } ( r ( \tau ) ) \frac { d } { d r ( \tau ) } \bigg ( w ^ { - } ( P _ { \theta } ( r ( \tau ) ) ) \bigg ) d r ( \tau ) } } \\ { \displaystyle { + \int _ { - \infty } ^ { \infty } u ^ { + } ( r ( \tau ) ) \frac { d } { d r ( \tau ) } \bigg ( - w ^ { + } ( 1 - P _ { \theta } ( r ( \tau ) ) ) \bigg ) d r ( \tau ) } } \end{array}
338
+ $$
339
+
340
+ In Tversky & Kahneman (1992), the utility functions are computed relative to a reference point and reflect the tendency of humans to be more risk-averse in the presence of gains than in the presence of losses. The weight functions $\{ w ^ { + } , w ^ { - } \}$ model our inclination to emphasize the best and worst possible outcomes in our decision-making.
341
+
342
+ More specifically, in these experiments we used the piecewise utility functions $u ^ { + } ( r ) = H ( r -$ $r _ { 0 } ) ( r - r _ { 0 } ) ^ { \sigma }$ and $u ^ { - } = \lambda H ( r _ { 0 } - r ) ( r _ { 0 } - r ) ^ { \sigma }$ with static reference $r _ { 0 } = 1 0$ , $\sigma = 0 . 8 8$ , and $\lambda = 2 . 2 5$ . The weight function $\begin{array} { r } { w ( p ) = \frac { p ^ { \eta } } { ( p ^ { \eta } + ( 1 - p ) ^ { \eta } ) ^ { \frac { 1 } { \eta } } } } \end{array}$ was used, where $\eta = 0 . 6 1$ for $r < r _ { 0 }$ and $\eta = 0 . 6 9$ for $r \geq r _ { 0 }$ . Four methods were evaluated, incorporating progressive amounts of variance reduction:
343
+
344
+ • Base: Risk-sensitive policy gradient with a static baseline (10)
345
+
346
+ • UTG: Base with utility-to-go and a neural network baseline (11)
347
+
348
+ • GAE: UTG with generalized advantage estimation ((13) without clipping)
349
+
350
+ • TR: GAE with trust regions ((13) with clipping (14))
351
+
352
+ As shown in Figure 7, the incorporation of these techniques increased the sample efficiency of the CPT value optimization significantly. Consequently, we used the full complement (TR) in all other experiments.
353
+
354
+ # A.5 DIFFERING OBJECTIVES: ADDITIONAL RESULTS
355
+
356
+ Below we include results for all environments for the experiments described in Section 4.1.
357
+
358
+ ![](images/81ec3e345b1af717ace27eb04a70b8099728900fe08a0cfddaef39054e279403.jpg)
359
+ Figure 8: Impact of different distributional objectives in remaining two environments of initial trials. The shading reflects the standard deviation associated with running over 5 random seeds. Left: Net reward (positive reward minus penalty) throughout learning. Middle: Average number of cost events per episode during training (lower is better). Right: Agent outcome distribution in testing (i.e., with sampling turned off).
360
+
361
+ ![](images/59f9e15291612540513e9a339525bfe082627947977ab0f09ef0a60afb6db7e4.jpg)
362
+ Figure 9: Agent outcome distributions across trials run over increasingly cautious ( $\dot { \eta }$ increasing) objectives. Distributions correspond to results shown in Table 1.
363
+
364
+ In addition, we note the trend of policy entropies with different distributional objectives. In general, more cautious weightings maintain higher entropy for longer than more aggressive weightings. Note that these plots represent an upper bound because they do not account for action clipping by the environment; see Ray et al. (2019) for details.
365
+
366
+ ![](images/00ab35e3a5313b6d13471e09bf379ea0297414422ff0001e0a1ee8e3d079506d.jpg)
367
+ Figure 10: Policy entropy progression during training for three environments. Shading reflects the observed variation over 5 random seeds.
368
+
369
+ # A.6 ADDITIONAL COMPARISONS WITH UNCONSTRAINED METHODS
370
+
371
+ Below are plots of average episode reward and average number of episode cost events throughout training for the remainder of the environments on which we conducted long runs (Section 4.2). Also included are histograms of testing performance for those runs.
372
+
373
+ ![](images/4e0bde6c535c84b3123dd3fcc102743d54ee7eb04ce8ee2c18002eb2e37c1a66.jpg)
374
+ Figure 11: Average episode reward (including penalty) over training for different unconstrained learning approaches in remaining three environments.
375
+
376
+ ![](images/d1c2fdfe7eb2dab990a76db14e17c5a4577c034dc9ac5e533dc1af2133f48d77.jpg)
377
+ Figure 12: Average number of cost events per episode (lower is better) over training for different unconstrained learning approaches in remaining three environments. As above, the “zero-penalty” line refers to the level reached by PPO and TRPO trained with no penalty in the reward (Ray et al., 2019).
378
+
379
+ ![](images/92c7a36dbcab49314f44bc5df77ef04e277e3258109d0f0552b1bdccdf5113e3.jpg)
380
+ Figure 13: Testing reward distributions (including penalty; sampling turned off) for long training runs in the remaining three Safety Gym environments. In five of the six environments, C3PO with $\eta = 0 . 7 5$ provides tangible benefit. A smaller $\eta$ is likely required to improve performance on CarPush2.
381
+
382
+ # A.7 ADDITIONAL COMPARISONS WITH CONSTRAINED METHODS
383
+
384
+ As mentioned in Section 4.2, we compared the performance of C3PO with constrained methods by setting the cost limit of the constrained methods to match the cost level attained by C3PO. Here we provide
385
+
386
+ • the positive reward plots for the remaining three Safety Gym environments studied, • the cost plots for each of the six environments, and
387
+
388
+ • all plots for Constrained Policy Optimization (CPO; Achiam et al. (2017)).
389
+
390
+ The intent of the cost plots of Figure 15 is to show rough consistency between the cost levels of our approach and Lagrangian methods configured to have the same cost limit. This is verified, but other trends should be noted. First, while the Lagrangian-based methods typically follow the cost constraint well, they cannot satisfy it in each batch. Second, our approach tends to have comparable or lower cost rates throughout training. This safe exploration metric, defined in Ray et al. (2019), refers to the average cost per episode over all of training up to a given point.
391
+
392
+ Results related to Constrained Policy Optimization (CPO; Achiam et al. (2017)) are included here but not in the main text because, consistent with (Ray et al., 2019), we were not able to configure CPO to respect the cost levels of the other constrained methods. Here we show the cost levels reached by CPO compared with C3PO (Figure 16) as well as a comparison of the average episode rewards of the two (Figure 17). For the latter, we employed the penalty scaling used by C3PO to enable a fair comparison.
393
+
394
+ ![](images/24de7d6235c5be2e5e1dc0b014bc5127dafbe58f7faa61aa080822bd5d15716a.jpg)
395
+ Figure 14: Comparison of positive contributions to episode reward during training for our approach (yellow) and Lagrangian methods configured to have the same cost level. The plots for the other three environments are shown in Figure 6.
396
+
397
+ ![](images/0a1c8a5e024f2f99938d54a3a75070e0d0ca8e8cf1be356e2020459e46f946b6.jpg)
398
+ Figure 15: Comparison of cost incurred (lower is better) during training for our approach and Lagrangian methods configured to have the same cost level. As intended, cost levels are consistently matched between the methods. As above, the “zero-penalty” line refers to the level reached by PPO and TRPO trained with no penalty in the reward (Ray et al., 2019).
399
+
400
+ ![](images/6423517191387cafba4cc4f1f5f46b465712c3f21dbd55084697f87212ff8ad3.jpg)
401
+ Figure 16: Comparison of cost incurred (lower is better) during training for our method and Constrained Policy Optimization (Achiam et al., 2017) configured to have a matching cost limit. Results are consistent with Ray et al. (2019). As above, the “zero-penalty” line refers to the level reached by unconstrained PPO and TRPO trained with no penalty in the reward (Ray et al., 2019).
402
+
403
+ ![](images/c52be513072a68cb4cd41cf8eaae3878b94349cfe8d6349a99d42264d32f3dfd.jpg)
404
+ Figure 17: Comparison of average episode reward (including penalty) for C3PO and CPO.
405
+
406
+ # A.8 SUPPLEMENTARY MATERIALS
407
+
408
+ The code used to produce these results is included in our Supplementary Materials.
parse/dev/9rKTy4oZAQt/9rKTy4oZAQt_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/9rKTy4oZAQt/9rKTy4oZAQt_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/9rKTy4oZAQt/9rKTy4oZAQt_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/HtqnVSCj3q/HtqnVSCj3q.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/HtqnVSCj3q/HtqnVSCj3q_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/HtqnVSCj3q/HtqnVSCj3q_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/aD7uesX1GF_/aD7uesX1GF__content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/aD7uesX1GF_/aD7uesX1GF__model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/iAWNOXfLz0/iAWNOXfLz0_content_list.json ADDED
@@ -0,0 +1,992 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "AnoFormer: Time Series Anomaly Detection using Transformer-based GAN with Two-Step Masking ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 192,
8
+ 122,
9
+ 807,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 578,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Time series anomaly detection is a task that determines whether an unseen signal is normal or abnormal, and it is a crucial function in various real-world applications. Typical approach is to learn normal data representation using generative models, like Generative Adversarial Network (GAN), to discriminate between normal and abnormal signals. Recently, a few studies actively adopt transformer to model time series data, but there is no transformer-based GAN framework for time series anomaly detection. As a pioneer work, we propose a new transformerbased GAN framework, called AnoFormer, and its effective training strategy for better representation learning. Specifically, we improve the detection ability of our model by introducing two-step masking strategies. The first step is Random masking: we design a random mask pool to hide parts of the signal randomly. This allows our model to learn the representation of normal data. The second step is Exclusive and Entropy-based Re-masking: we propose a novel refinement step to provide feedback to accurately model the exclusive and uncertain parts in the first step. We empirically demonstrate the effectiveness of re-masking step that our model generates more normal-like signals robustly. Extensive experiments on various datasets show that AnoFormer significantly outperforms the state-of-the-art methods in time series anomaly detection. ",
40
+ "bbox": [
41
+ 148,
42
+ 348,
43
+ 766,
44
+ 597
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "19 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 622,
55
+ 312,
56
+ 638
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "20 Time series anomaly detection is a crucial technology to prevent potential risks and financial losses \n21 in a variety of areas, such as detecting anomalies on sensor data of large-scale plants [1], ECG \n22 monitoring [2], and the network traffic analysis [3]. To deal with this task, from the classic methods \n23 [4, 5, 6] to the recent deep learning-based methods [2, 7, 8, 9, 10, 11, 12, 13], many studies have \n24 focused on unsupervised learning methods due to the lack of labeled anomalies and highly nonlinear \n25 temporal dependencies. \n26 One of major deep learning-based approaches is a reconstruction-based method. It typically uses an \n27 autoencoder (AE) or Generative Adversarial Network (GAN) to learn the representation of normal \n28 data and to reconstruct a normal-like signal from an input always. As a backbone network, the \n29 existing studies widely utilize CNN (Convolutional Neural Networks) [2] or RNN (Recurrent Neural \n30 Networks) [8, 9, 10]. More recently, there have been attempts to apply transformer [14] to time \n31 series anomaly detection, and it shows remarkable performances [11]. In this work, we also adopt \n32 transformer to embed time series representation, but design an adversarial framework for anomaly \n33 detection. \n34 If we devise GAN using a transformer encoder, we expect that the model learns normal time series \n35 data and eventually generates real normal-like signals. However, there is a major issue. Unlike the \n36 AE structure, a pure transformer encoder-based generator does not have a compressed latent space, \n37 i.e., it makes the model find the trivial solution, just copying an input and pasting to the output for the \n38 reconstruction. Therefore, we need a new training method for the generator to learn the distribution \n39 of normal time series data. To address this issue, we introduce a novel two-step masking strategy. \n40 From this approach, the next question is where to mask an input signal to detect anomalies effectively. \n41 Understandably, in order to make the normal-like output, the best masking positions are abnormal \n42 points in the input signal. It is a challenging to mask the abnormal areas selectively because we do \n43 not know where the abnormal parts are in advance. \n44 In this paper, we propose AnoFormer, which is a novel transformer-based GAN utilizing a pure \n45 transformer encoder only. To learn data representation effectively, we adopt a masking strategy. We \n46 first train transformer-based GAN with random masking (Step 1) for representation learning of the \n47 normal time series data. While filling the randomly masked parts of the input at Step 1, the model \n48 learns the distribution of normal data effectively. In Step 1 alone, all parts of the input signal cannot \n49 be considered, and this randomness is a big problem in anomaly detection. Therefore, we solve this \n50 problem by re-masking the exclusive parts of Step 1. Also, to find the best masking positions, we \n51 calculate entropy from the attention maps of transformer blocks and re-mask the parts with high \n52 entropy that is likely to be abnormal points with high uncertainty. This exclusive and entropy-based \n53 re-masking (Step 2) provides feedback for better representation learning, eventually improving the \n54 anomaly detection performance. We experimentally prove that the proposed two-step masking is \n55 essential for AnoFormer to solve anomaly detection problem successfully. ",
63
+ "bbox": [
64
+ 147,
65
+ 654,
66
+ 825,
67
+ 736
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 145,
76
+ 742,
77
+ 825,
78
+ 853
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 859,
88
+ 825,
89
+ 902
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 147,
98
+ 92,
99
+ 825,
100
+ 188
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 145,
109
+ 194,
110
+ 825,
111
+ 361
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "56 Our contributions can be summarized as follows: ",
118
+ "bbox": [
119
+ 150,
120
+ 367,
121
+ 493,
122
+ 381
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We propose a simple yet effective transformer-based GAN framework having a generator and a discriminator for unsupervised time series anomaly detection, called AnoFormer. Moreover, we present pre-processing and embedding methods for our framework to deal with time series data effectively. \n• We introduce a new two-step masking method to encode the distribution of normal time series data. A newly proposed entropy-based re-masking helps our model to provide the feedback to the uncertain parts based on entropy. From the extensive ablations, we empirically verify that our two-step masking makes our model robust and successfully embed the representation of normal time series data. \n• AnoFormer achieves new state-of-the-art results with significant improvements on various unsupervised time series anomaly detection datasets: NeurIPS-TS, MIT-BIH, 2D-gesture, and Power-demand. ",
129
+ "bbox": [
130
+ 200,
131
+ 397,
132
+ 825,
133
+ 590
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "69 2 Related Work ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 147,
143
+ 618,
144
+ 321,
145
+ 636
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "70 Generative models using transformer have been proposed and applied to diverse domains, e.g., \n71 computer vision [15, 16, 17, 18], natural language processing [19, 20], and sequence modeling \n72 [21, 22]. In particular, these models are used to solve various tasks in the image domain, such \n73 as scene generation [15, 16, 23], saliency prediction [18], semantic segmentation [24], and sketch \n74 synthesis [25]. Moreover, transformer is presented to solve graph-to-sequence transduction task \n75 using graph neural network [26], text generation task [27], and time series forecasting task with \n76 the modified self-attention mechanism [28]. We also utilize transformer to construct a generative \n77 framework, i.e., having both a generator and a discriminator. In this framework, we propose an \n78 appropriate embedding method and loss form to effectively solve the anomaly detection problems. \n79 Many studies have used masking to the transformer architecture for effective representation learning. \n80 Including BERT [29], which proposes the Masked Language Model (MLM) technique to pretrain \n81 the language representation, many studies also adopt the masking methods, like [30] for action \n82 recognition, [30] for text classification task, [31] for text log anomaly detection, [32, 33] for visual \n83 representation learning. In [34], the CNN-based model learns the semantic context features by using \n84 a multi-scale mask across the whole image with different scales for anomaly detection in image \n85 domain. We also use masking in our transformer-based GAN for time series anomaly detection, but \n86 unlike the above studies, we propose the two-step masking strategy for training and test to provide \n87 feedback that boosts the model to generate the uncertain parts successfully. ",
152
+ "bbox": [
153
+ 147,
154
+ 656,
155
+ 825,
156
+ 781
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 147,
165
+ 786,
166
+ 825,
167
+ 911
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "image",
173
+ "img_path": "images/7115bd0fec0ddd2e3db41bbe484d7135d01fb4409712ae48ff3ddde0e1a8c791.jpg",
174
+ "image_caption": [
175
+ "Figure 1: Overview of the proposed AnoFormer. For simplicity, this figure shows the univariate case. In Step 1 (random masking), a pre-processed input $\\tilde { \\boldsymbol { X } }$ is masked with a randomly selected mask from a predefined mask pool. After passing the masked input $\\tilde { \\pmb X } _ { m } ^ { 1 }$ to the generator, $\\hat { X } _ { 1 }$ is generated as the output by passing through embedding, transformer encoder, and inverse embedding layers. In Step 2 (exclusive and entropy-based re-masking), based on the entropy calculated from attention maps of all layers in Step 1, $\\tilde { \\boldsymbol { X } }$ is re-masked and ${ \\hat { \\mathbf { X } } } _ { 2 }$ is generated again from the generator. Final output $\\hat { \\pmb X }$ is constructed via the combination of the masked parts of Step 1 and Step 2. With an aid of a critic, the generator is able to generate more normal-like signals. Here, $\\mathcal { L } _ { a d v }$ is the adversarial loss, including $\\mathcal { L } _ { a d v } ^ { g }$ and $\\mathcal { L } _ { a d v } ^ { c }$ . Note that the critic is used only for the train time. "
176
+ ],
177
+ "image_footnote": [],
178
+ "bbox": [
179
+ 173,
180
+ 98,
181
+ 823,
182
+ 279
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "88 3 AnoFormer ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 148,
192
+ 430,
193
+ 303,
194
+ 446
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "89 In this section, we propose AnoFormer for unsupervised time series anomaly detection. We first \n90 define the target task including an algorithm procedure briefly in Section 3.1. We then describe how \n91 to construct a transformer-based GAN framework based on a transformer encoder in Section 3.2. \n92 Next, we introduce two different masking steps for our model to encode time series data effectively \n93 in Section 3.3. Finally, we present the whole training scheme of AnoFormer in Section 3.4. Figure 1 \n94 shows the overall architecture of AnoFormer. ",
201
+ "bbox": [
202
+ 147,
203
+ 460,
204
+ 825,
205
+ 545
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "3.1 Problem Definition ",
212
+ "text_level": 1,
213
+ "bbox": [
214
+ 161,
215
+ 560,
216
+ 346,
217
+ 575
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "Let $\\begin{array} { r c l } { { \\textbf { { X } } } } & { { = } } & { { \\left\\{ { \\pmb x } _ { 1 } , { \\pmb x } _ { 2 } , \\cdot \\cdot \\cdot , { \\pmb x } _ { T } \\right\\} \\ \\in \\ \\mathbb { R } ^ { T \\times n } } } \\end{array}$ be an input signal of $T$ lengths, where $\\begin{array} { r l } { \\mathbf { \\boldsymbol { x } } _ { t } } & { { } = } \\end{array}$ $\\left\\{ \\pmb { x } _ { t } ^ { 1 } , \\pmb { x } _ { t } ^ { 2 } , \\cdot \\cdot \\cdot , \\pmb { x } _ { t } ^ { n } \\right\\} \\in \\mathbb { R } ^ { n }$ at time step $t$ is a vector of dimension $n$ . Since it is easier to get normal time series data compared to abnormal ones, we train a generator $\\mathbf { G }$ and a discriminator $\\mathrm { D }$ using only normal data without any label in an unsupervised manner. After training, for each unseen signal $\\boldsymbol { X }$ , which can be normal or abnormal, the generator $G$ generates a normal-like signal $\\hat { X }$ . From the generated signal, we can determine whether the observed signal $\\boldsymbol { X }$ is normal or not based on the reconstruction errors between the given signal $\\boldsymbol { X }$ and the generated signal $\\hat { X }$ . ",
224
+ "bbox": [
225
+ 173,
226
+ 585,
227
+ 825,
228
+ 690
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "3.2 Transformer-based GAN for Time Series Data ",
235
+ "text_level": 1,
236
+ "bbox": [
237
+ 174,
238
+ 705,
239
+ 534,
240
+ 720
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "Pre-Processing. To deal with an input signal for a transformer encoder, we need a pre-processing step that makes the input signal discrete tokens. To this end, we normalize each time series input $\\boldsymbol { X }$ between $^ { - 1 }$ and 1 by using the min-max scaling. Then, we quantize the normalized real value within a specific range $[ 0 , K )$ , where the integer $K$ is a hyperparameter controlling the quantization resolution, and use the corresponding integer value as a token. Let $\\tilde { \\pmb X } \\in \\mathbb { R } ^ { T \\times n }$ be the pre-processed signal. We set $K = 4 0 0$ for all the experiments, in which the pre-processed signal $\\tilde { X }$ looks almost like the input $\\boldsymbol { X }$ . In total of $K$ tokens (quantization levels), we add a [MASK] token to utilize it for both training and test. To sum up, the input signal $\\boldsymbol { X }$ is pre-processed to be $\\tilde { \\boldsymbol { X } }$ by applying scaling and quantization sequentially. ",
247
+ "bbox": [
248
+ 169,
249
+ 731,
250
+ 825,
251
+ 862
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "113 Embedding. An embedding step embeds discrete tokens into the embedding vectors. Here we use \n114 a token embedding layer to map each token to the corresponding entry in an embedding weight \n115 $W ^ { e } \\in \\mathbb { R } ^ { ( K + 1 ) \\times d }$ . We denote $z ^ { \\prime } \\in \\mathbb { R } ^ { T \\times d }$ as the output token embedding, where $d$ is an embedding ",
258
+ "bbox": [
259
+ 143,
260
+ 867,
261
+ 825,
262
+ 911
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "dimension. We add a sinusoidal positional embedding 116 $\\pmb { p } ^ { \\prime }$ to the token embedding $z ^ { \\prime }$ to allow the 117 model to attend relative positions as follows: ",
269
+ "bbox": [
270
+ 142,
271
+ 90,
272
+ 825,
273
+ 119
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "equation",
279
+ "img_path": "images/5af77b482249728d1d3b1213b8c68e8fb98458f84094d50b6a344e4c958b26b8.jpg",
280
+ "text": "$$\nz = z ^ { \\prime } + p ^ { \\prime } .\n$$",
281
+ "text_format": "latex",
282
+ "bbox": [
283
+ 454,
284
+ 122,
285
+ 544,
286
+ 140
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "118 Transformer Encoder. A transformer encoder uses the embedding $z \\in \\mathbb { R } ^ { T \\times d }$ as the input, and \n119 outputs $\\hat { \\boldsymbol { z } } \\in \\mathbb { R } ^ { T \\times d }$ . Each block of the transformer encoder contains a multi-head self-attention layer \n120 and a feed-forward network, followed by a residual connection and a layer normalization. Through \n121 the self-attention mechanism, it is possible to attend the relevant information of each time step at \n122 once, while multiple attention heads can consider different periodicities in time series data [35]. \n123 Inverse Embedding. We need to invert the output $\\hat { z }$ into the original form of time series, $\\hat { \\boldsymbol { X } } \\in \\mathbb { R } ^ { T \\times n }$ . \n124 To this end, we introduce an inverse embedding layer to our model. We calculate the cosine similarity \n125 between the output embedding $\\hat { z }$ and the embedding weight $\\pmb { W } ^ { e }$ taken from the token embedding \n126 layer, and apply the softmax operation as follows: ",
293
+ "bbox": [
294
+ 140,
295
+ 151,
296
+ 825,
297
+ 222
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "",
304
+ "bbox": [
305
+ 142,
306
+ 229,
307
+ 825,
308
+ 286
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "equation",
314
+ "img_path": "images/a71b20f479bdb45b2a158c976d47f18fc5c33907e7e8c0dc71181902094cdccd.jpg",
315
+ "text": "$$\n\\hat { \\pmb { p } } = s o f t m a x \\left( \\frac { \\hat { \\boldsymbol { z } } \\cdot \\mathbf { W } ^ { e ^ { \\top } } } { \\lVert \\hat { \\boldsymbol { z } } \\rVert \\left. \\mathbf { W } ^ { e ^ { \\top } } \\right. } \\right) .\n$$",
316
+ "text_format": "latex",
317
+ "bbox": [
318
+ 385,
319
+ 289,
320
+ 612,
321
+ 340
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "127 From the above equation, we obtain the probability distribution $\\hat { \\pmb { p } } \\in \\mathbb { R } ^ { T \\times K }$ , where $\\hat { p } _ { t , k }$ means the \n128 probability that $k$ will be selected in the range of $[ 0 , K )$ except the [MASK] token at the position $t$ . \n129 We then extract an index $\\hat { \\mathbf { x } } _ { t }$ of the maximum probability for each time step $t \\in [ 1 , 2 , \\cdots , T ]$ , using \n130 the soft-argmax operation as follows: ",
328
+ "bbox": [
329
+ 140,
330
+ 344,
331
+ 826,
332
+ 402
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/1f0624b289e50399c4da019a9c61d1a31f18cc34b9a45c33163c93d109cada7c.jpg",
339
+ "text": "$$\n\\begin{array} { r } { \\hat { \\pmb { x } } _ { t } = s o f t - a r g m a x ( \\hat { \\pmb { p } } _ { t } ) = \\sum _ { i = 0 } ^ { K - 1 } \\frac { e ^ { \\beta \\hat { \\pmb { p } } _ { t , i } } } { \\sum _ { j = 0 } ^ { K - 1 } e ^ { \\beta \\hat { \\pmb { p } } _ { t , j } } } i , } \\end{array}\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 336,
343
+ 405,
344
+ 658,
345
+ 434
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "131 where $\\beta$ is a sufficiently large value, such as 1000. Then, the indices in all time steps are concatenated to reconstruct the quantized output 132 $\\hat { X }$ as follows: ",
352
+ "bbox": [
353
+ 142,
354
+ 435,
355
+ 826,
356
+ 467
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "equation",
362
+ "img_path": "images/ab0c7cc7cebf2dd842944d7342c971da98806d9028673833a5d313d10a9f2d71.jpg",
363
+ "text": "$$\n\\hat { \\pmb X } = \\left\\{ \\hat { \\pmb x } _ { 1 } , \\hat { \\pmb x } _ { 2 } , \\hat { \\star } \\hat { \\star } \\hat { \\ b } _ { T } \\right\\} .\n$$",
364
+ "text_format": "latex",
365
+ "bbox": [
366
+ 415,
367
+ 469,
368
+ 583,
369
+ 489
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "133 Transformer-based GAN Framework. To enhance the generation quality of $\\hat { X }$ , we design an \n134 adversarial framework using transformer encoders. Following the notation of WGAN-GP [36], from \n135 now on we use the term critic $C$ instead of the discriminator $D$ . Same as the generator $G$ , we \n136 construct the critic $C$ using the transformer encoder, but in the critic $C$ , a [CLS] token is added in \n137 front of the input tokens for classification. After passing through the transformer encoder, the linear \n138 classifier outputs the critic score using only the [CLS] token. While classifying the real input $\\tilde { \\boldsymbol X }$ and \n139 the fake output $\\hat { X }$ , the critic $C$ guides the generator $G$ to reconstruct more normal-like signal $\\hat { X }$ . As \n140 a result, our model can distinguish $\\tilde { \\boldsymbol X }$ whether it is normal or abnormal according to the difference \n141 between the input signal $\\tilde { \\boldsymbol { X } }$ and the reconstructed signal $\\hat { X }$ from the generator $G$ at test time. ",
376
+ "bbox": [
377
+ 140,
378
+ 501,
379
+ 825,
380
+ 636
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "3.3 Two-Step Masking for Time Series Encoding ",
387
+ "text_level": 1,
388
+ "bbox": [
389
+ 171,
390
+ 650,
391
+ 524,
392
+ 665
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "143 In the previous section, we introduce the transformer-based GAN framework for time series data. \n144 However, we empirically find that the representation learning of the proposed transformer-based \n145 GAN is not possible because the generator $G$ just copies the input as the output always. Inspired by \n146 recent studies [35, 32, 33] that effectively learn the representation through masking in transformer, \n147 we propose two different masking steps during training and test time: 1) random masking and 2) \n148 exclusive and entropy-based re-masking. We experimentally demonstrate that the proposed two-step \n149 masking is essential for our framework to learn the distribution of normal time series data successfully. \n150 In the following content, we describe how to mask the input effectively in each step with details. ",
399
+ "bbox": [
400
+ 140,
401
+ 675,
402
+ 826,
403
+ 787
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "Step 1: Random Masking. As the first step, we partially hide the input signal $\\tilde { \\boldsymbol { X } }$ using a randomly selected mask from a mask pool. To construct the mask pool, we design a single mask in which the mask and the non-mask sections alternately appear. We then generate multiple masks by applying sliding window to the single mask, and group them as the mask pool. The composition of the mask pool depends on a length $l _ { m }$ of a single mask section, a ratio $r _ { m }$ of all mask parts, and a stride $s _ { m }$ for the sliding window. The number of masks $n _ { m }$ in the predefined mask pool is determined as follows: ",
410
+ "bbox": [
411
+ 165,
412
+ 794,
413
+ 825,
414
+ 878
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "equation",
420
+ "img_path": "images/1f94296985c1d7f521193683b0c1c827be1c81f84a5411bd838bb326105e9871.jpg",
421
+ "text": "$$\nn _ { m } = 2 \\times \\left\\lceil { \\frac { l _ { m } } { s _ { m } } } \\right\\rceil .\n$$",
422
+ "text_format": "latex",
423
+ "bbox": [
424
+ 436,
425
+ 881,
426
+ 562,
427
+ 916
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "157 Using the above equation, we generate the enough number of masks in the pool to cover all sections \n158 of the signal. During the train and test time, the mask is randomly selected in the predefined mask \n159 pool per each signal, and the generator $G$ reconstructs $\\hat { X } _ { 1 }$ from the masked input $\\bar { \\tilde { \\mathbf { X } } } _ { m } ^ { 1 }$ . \n160 Step 2: Exclusive and Entropy-based Re-Masking. After $\\hat { \\pmb X } _ { 1 }$ is generated from Step 1, we again \n161 mask the exclusive parts that are not covered in Step 1 for our model to consider all parts of the \n162 input. To avoid the error accumulation, here we re-mask the input $\\tilde { \\boldsymbol X }$ , instead of the first output $\\hat { X } _ { 1 }$ . \n163 In addition, we provide feedback to our model by re-masking the parts that the model considers \n164 uncertain during Step 1. To this end, we get an attention map from each layer of the generator as \n165 follows: ",
434
+ "bbox": [
435
+ 140,
436
+ 90,
437
+ 825,
438
+ 138
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "",
445
+ "bbox": [
446
+ 140,
447
+ 145,
448
+ 826,
449
+ 232
450
+ ],
451
+ "page_idx": 4
452
+ },
453
+ {
454
+ "type": "equation",
455
+ "img_path": "images/d1b2da5425c010147d359fa4bf881dd73b7d48888cdb790074b7946637573a44.jpg",
456
+ "text": "$$\n\\begin{array} { c } { { A ^ { l , h } = s o f t m a x \\left( \\displaystyle \\frac { Q ^ { h } K ^ { h ^ { T } } } { \\sqrt { d } } \\right) , } } \\\\ { { A ^ { l } = \\displaystyle \\frac { 1 } { H } \\sum _ { h = 1 } ^ { H } A ^ { l , h } , } } \\end{array}\n$$",
457
+ "text_format": "latex",
458
+ "bbox": [
459
+ 392,
460
+ 236,
461
+ 604,
462
+ 323
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "166 where $l \\in [ 1 , 2 , \\cdots , L ]$ and $A ^ { l }$ is the attention map in the $l$ -th layer, calculated by the average of all \n167 attention maps for individual heads, $A ^ { l , h }$ . This layer-wise attention map determines how much a \n168 specific time step focuses on the other parts of the input per signal. In this context, the uniformly \n169 distributed attention means that the model does not know which connections are valuable [37], i.e., \n170 the prediction is uncertain. To quantify the uncertainty, we calculate an entropy $H _ { \\hat { X } _ { 1 } }$ of the masked \n171 input ${ \\hat { X } } _ { 1 }$ as follows: ",
469
+ "bbox": [
470
+ 140,
471
+ 328,
472
+ 826,
473
+ 419
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "equation",
479
+ "img_path": "images/7b7cef18302eefc34af94f806207219f75b629b4fbd97050526d0f3fca1cf4de.jpg",
480
+ "text": "$$\n\\begin{array} { r } { H ( t ) = - \\displaystyle \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } \\sum _ { j = 1 } ^ { T } A _ { t , j } ^ { l } \\log A _ { t , j } ^ { l } , } \\\\ { H _ { \\hat { \\pmb X } _ { 1 } } = \\{ H ( 1 ) , H ( 2 ) , \\cdots , H ( T ) \\} . } \\end{array}\n$$",
481
+ "text_format": "latex",
482
+ "bbox": [
483
+ 382,
484
+ 424,
485
+ 617,
486
+ 492
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "172 To provide feedback on the high entropy parts, we re-mask $50 \\%$ of the parts already masked in Step \n173 1. Then the generator $G$ re-generates the second output ${ \\hat { \\mathbf { X } } } _ { 2 }$ from the masked signal ${ \\tilde { \\bf X } } _ { 2 }$ . Finally, \n174 we combine the masked parts generated from Step 1 and the ones from Step 2 to construct the final \n175 output $\\hat { X }$ . If there are overlapped parts between Step 1 and Step 2, the parts of Step 2 are used. From \n176 this re-masking step, we experimentally prove that our model becomes robust to unexplored and \n177 uncertain parts within a fixed model size. We also use the same random masking and re-masking \n178 strategies at test time. ",
493
+ "bbox": [
494
+ 140,
495
+ 501,
496
+ 826,
497
+ 597
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "3.4 Training AnoFormer ",
504
+ "text_level": 1,
505
+ "bbox": [
506
+ 169,
507
+ 613,
508
+ 357,
509
+ 628
510
+ ],
511
+ "page_idx": 4
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "To train AnoFormer, we apply the cross-entropy loss to reconstruct the same input 80 $\\tilde { \\boldsymbol X }$ from the final output 81 $\\hat { X }$ as follows: ",
516
+ "bbox": [
517
+ 155,
518
+ 638,
519
+ 825,
520
+ 669
521
+ ],
522
+ "page_idx": 4
523
+ },
524
+ {
525
+ "type": "equation",
526
+ "img_path": "images/b4dee98012c340c8a46652695b059bebc84adf953184b1b4ff256f743f55ad7c.jpg",
527
+ "text": "$$\n\\mathcal { L } _ { r e c } = - \\sum _ { i = 1 } ^ { T } \\sum _ { j = 1 } ^ { K } \\tilde { X } _ { i , j } \\cdot \\log \\left( \\hat { p } _ { i , j } \\right) ,\n$$",
528
+ "text_format": "latex",
529
+ "bbox": [
530
+ 382,
531
+ 667,
532
+ 614,
533
+ 713
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "where 182 $\\tilde { X } _ { i , j }$ denotes the one-hot label vector from the input and $\\hat { p } _ { i , j }$ denotes the probability distribu183 tion of the final output $\\hat { X }$ . Using $\\hat { X }$ from the generator $G$ during two-step masking, the critic $C$ tries 184 to minimize the following loss function: ",
540
+ "bbox": [
541
+ 142,
542
+ 717,
543
+ 826,
544
+ 765
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "equation",
550
+ "img_path": "images/bb6197e84fbc8da51a2c79bfb2a11c09abb4d2438239c477be947a36a46e5cbb.jpg",
551
+ "text": "$$\n\\begin{array} { c } { { X ^ { \\prime } = \\epsilon \\tilde { X } + ( 1 - \\epsilon ) \\hat { X } , } } \\\\ { { { \\mathcal { L } } _ { C , a d v } = \\left( \\mathbb { E } \\left[ C \\left( \\hat { X } \\right) \\right] - \\mathbb { E } \\left[ C \\left( \\tilde { X } \\right) \\right] \\right) + \\lambda \\mathbb { E } _ { X ^ { \\prime } \\sim P _ { X ^ { \\prime } } } \\left[ \\left( \\left. \\nabla _ { X ^ { \\prime } } C \\left( X ^ { \\prime } \\right) \\right. _ { 2 } - 1 \\right) ^ { 2 } \\right] , } } \\end{array}\n$$",
552
+ "text_format": "latex",
553
+ "bbox": [
554
+ 225,
555
+ 768,
556
+ 769,
557
+ 820
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "185 where $\\epsilon$ is randomly chosen between zero and one. The first term measures the Wasserstein distance \n186 and the second term is the gradient penalty, where $X ^ { \\prime }$ is a random sample from $P _ { X ^ { \\prime } }$ to enforce the \n187 Lipschitz constraint. The coefficient is a harmonic parameter to balance the Wasserstein distance and \n188 the gradient penalty, where we use the value of 10. The loss function of the generator $G$ is as follows: \n189 ",
564
+ "bbox": [
565
+ 140,
566
+ 824,
567
+ 826,
568
+ 888
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "equation",
574
+ "img_path": "images/845ba6154e501fc6c41df3d8cd7a97fb64f6b65c0ddb77884bd9d824b46f13c5.jpg",
575
+ "text": "$$\n\\mathcal { L } _ { a d v } ^ { g } = - \\mathbb { E } \\left[ C \\left( \\hat { \\boldsymbol { X } } \\right) \\right] ,\n$$",
576
+ "text_format": "latex",
577
+ "bbox": [
578
+ 419,
579
+ 888,
580
+ 578,
581
+ 916
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "table",
587
+ "img_path": "images/f5d35d824e0f51fe78877b9551cfdf57efc90b96896aa2acf52cca926903bd36.jpg",
588
+ "table_caption": [
589
+ "Table 1: Quantitative comparisons in four datasets. For all of the metrics, a higher value indicates a better performance. "
590
+ ],
591
+ "table_footnote": [],
592
+ "table_body": "<table><tr><td rowspan=\"2\">Metric</td><td rowspan=\"2\">Base Architecture</td><td rowspan=\"2\">Method</td><td colspan=\"6\">NeurIPS-TS</td><td rowspan=\"2\">MIT-BIH</td><td rowspan=\"2\">2D-gesture</td><td rowspan=\"2\">Power-demand</td></tr><tr><td>Global</td><td>Contextual</td><td>Shapelet</td><td>Seasonal</td><td>Trend</td><td>Average</td></tr><tr><td rowspan=\"6\">AUROC</td><td>CNN</td><td>BeatGAN</td><td>0.9753</td><td>0.6128</td><td>0.7398</td><td>0.9742</td><td>1.0000</td><td>0.8372</td><td>0.9475</td><td>0.7256</td><td>0.5796</td></tr><tr><td>RNN</td><td>TadGAN</td><td>1.0000</td><td>0.4285</td><td>0.9834</td><td>0.9744</td><td>0.9327</td><td>0.9726</td><td>0.8256</td><td>0.5294</td><td>0.8438</td></tr><tr><td></td><td>RAE-ensemble</td><td>0.5226</td><td>0.9348</td><td>0.9244</td><td>0.9625</td><td>0.7246</td><td>0.8138</td><td>-</td><td>0.7808</td><td>0.6587</td></tr><tr><td></td><td>RAMED</td><td>0.5265</td><td>0.9325</td><td>0.9084</td><td>0.9628</td><td>0.7259</td><td>0.8112</td><td>-</td><td>0.7839</td><td>0.6787</td></tr><tr><td>Transformer</td><td>Anomaly Transformer</td><td>0.9931</td><td>0.6224</td><td>0.7407</td><td>0.9332</td><td>0.9976</td><td>0.8400</td><td>0.8108</td><td>0.7868</td><td>0.7739</td></tr><tr><td></td><td>AnoFormer (Ours)</td><td>1.0000</td><td>0.9758</td><td>0.9900</td><td>0.9985</td><td>0.9985</td><td>0.9911</td><td>0.9552</td><td>0.8407</td><td>0.8667</td></tr><tr><td rowspan=\"6\">AUPRC</td><td>CNN</td><td>BeatGAN</td><td>0.9855</td><td>0.7051</td><td>0.6817</td><td>0.9748</td><td>1.0000</td><td>0.9634</td><td>0.9143</td><td>0.4952</td><td>0.1228</td></tr><tr><td>RNN</td><td>TadGAN</td><td>1.0000</td><td>0.3603</td><td>0.9565</td><td>0.9754</td><td>0.8731</td><td>0.9806</td><td>0.4621</td><td>0.4367</td><td>0.3098</td></tr><tr><td></td><td>RAE-ensemble</td><td>0.0453</td><td>0.8297</td><td>0.8159</td><td>0.9191</td><td>0.1378</td><td>0.5496</td><td>-</td><td>0.5287</td><td>0.1400</td></tr><tr><td></td><td>RAMED</td><td>0.0443</td><td>0.8223</td><td>0.6873</td><td>0.9109</td><td>0.1291</td><td>0.5188</td><td>-</td><td>0.5331</td><td>0.1627</td></tr><tr><td>Transformer</td><td>Anomaly Transformer</td><td>0.9959</td><td>0.6957</td><td>0.6630</td><td>0.9364</td><td>0.9978</td><td>0.9639</td><td>0.5603</td><td>0.5607</td><td>0.4967</td></tr><tr><td></td><td>AnoFormer (Ours)</td><td>1.0000</td><td>0.9854</td><td>0.9901</td><td>0.9985</td><td>0.9987</td><td>0.9982</td><td>0.9187</td><td>0.6142</td><td>0.5584</td></tr><tr><td rowspan=\"6\">F1 score</td><td>CNN</td><td>BeatGAN</td><td>0.9345</td><td>0.7348</td><td>0.6136</td><td>0.9487</td><td>1.0000</td><td>0.9008</td><td>0.8015</td><td>0.4941</td><td>0.2266</td></tr><tr><td>RNN</td><td>TadGAN</td><td>1.0000</td><td>0.3590</td><td>0.9331</td><td>0.9844</td><td>0.8170</td><td>0.9380</td><td>0.5289</td><td>0.4138</td><td>0.5714</td></tr><tr><td></td><td>RAE-ensemble</td><td>0.0853</td><td>0.8343</td><td>0.7750</td><td>0.9181</td><td>0.3889</td><td>0.6003</td><td>-</td><td>0.5511</td><td>0.2678</td></tr><tr><td></td><td>RAMED</td><td>0.0838</td><td>0.8272</td><td>0.6203</td><td>0.8782</td><td>0.4040</td><td>0.5627</td><td>-</td><td>0.5633</td><td>0.2934</td></tr><tr><td>Transformer</td><td>Anomaly Transformer</td><td>0.9751</td><td>0.7358</td><td>0.6115</td><td>0.8730</td><td>0.9958</td><td>0.9014</td><td>0.5446</td><td>0.6486</td><td>0.6053</td></tr><tr><td></td><td>AnoFormer (Ours)</td><td>1.0000</td><td>0.9400</td><td>0.9696</td><td>0.9913</td><td>0.9974</td><td>0.9798</td><td>0.8410</td><td>0.6667</td><td>0.6226</td></tr></table>",
593
+ "bbox": [
594
+ 173,
595
+ 123,
596
+ 823,
597
+ 344
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "which makes the critic 190 $C$ not be able to classify the generated $\\hat { X }$ . To sum up, the proposed AnoFormer 191 is trained via the following loss functions for the generator $G$ and the critic $C$ : ",
604
+ "bbox": [
605
+ 143,
606
+ 371,
607
+ 826,
608
+ 400
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "equation",
614
+ "img_path": "images/187b51cdbd7631c63c3feb414ee4b75917ff3893f7590288cb292855f9a1ea88.jpg",
615
+ "text": "$$\n\\begin{array} { c } { { \\mathcal { L } _ { G } = \\lambda _ { r e c } \\mathcal { L } _ { r e c } + \\lambda _ { a d v } \\mathcal { L } _ { a d v } ^ { g } , } } \\\\ { { \\mathcal { L } _ { C } = \\mathcal { L } _ { a d v } ^ { c } , } } \\end{array}\n$$",
616
+ "text_format": "latex",
617
+ "bbox": [
618
+ 400,
619
+ 405,
620
+ 596,
621
+ 443
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "192 where we set $\\lambda _ { r e c }$ and $\\lambda _ { a d v }$ as 1. ",
628
+ "bbox": [
629
+ 145,
630
+ 449,
631
+ 390,
632
+ 463
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "4 Experiments ",
639
+ "text_level": 1,
640
+ "bbox": [
641
+ 160,
642
+ 482,
643
+ 312,
644
+ 500
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Datasets. We evaluated AnoFormer on four real-world benchmarks: 1) MIT-BIH 1 contains 48 ECG records of test subjects from Beth Israel Hospital, 2) 2D-gesture contains time series of X and Y coordinates of an actor’s right hand, 3) Power-demand is a dataset measuring the power comsumption for the Dutch research facility, and 4) NeurIPS-TS 2 [38] is a synthetic dataset including five different time series anomaly scenarios as point-global, point-contextual, pattern-shapelet, pattern-seasonal, and pattern-trend. More details on each dataset are summarized in Appendix A. ",
651
+ "bbox": [
652
+ 173,
653
+ 513,
654
+ 825,
655
+ 597
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "Baselines. We compared our model with various baselines, including CNN, RNN, and transformerbased reconstruction models. BeatGAN [2] and TadGAN [8] are CNN and LSTM-based GAN models, respectively. RAE-ensemble [9] is an ensemble of RNNs with sparse skip connections in autoencoder. RAMED [10] additionally uses the multiresolution decoding based on RAE-ensemble. Anomaly Transformer [11] develops the transformer architecture to utilize association information. ",
662
+ "bbox": [
663
+ 173,
664
+ 603,
665
+ 825,
666
+ 672
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "Implementation Details. For both the generator $G$ and the critic $C$ , we utilized the basic transformer encoders with 9 and 6 layers for MIT-BIH, and 4 and 2 layers for other datasets, respectively. The embedding dimension and the number of heads are 128 and 8, respectively. The mask length $l _ { m }$ is about $10 \\%$ of the sequence length $T$ , and the mask stride $s _ { m }$ is about half of the mask length $l _ { m }$ We used Adam optimizer with initial learning rate, momentum $\\beta _ { 1 }$ , and $\\beta _ { 2 }$ as 0.0001, 0.5, and 0.999, respectively. We implemented our model using PyTorch and trained on a NVIDIA RTX 3090 GPU. ",
673
+ "bbox": [
674
+ 173,
675
+ 678,
676
+ 825,
677
+ 762
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "4.1 Quantitative Results ",
684
+ "text_level": 1,
685
+ "bbox": [
686
+ 161,
687
+ 779,
688
+ 354,
689
+ 794
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Table 1 shows the anomaly detection performances of each baseline on three different real-world datasets (i.e., MIT-BIH, 2D-gesture, and Power-demand), and a synthetic dataset (i.e., NeurIPS-TS [38]). Overall, RNN or transformer-based models showed high performances except MIT-BIH. In MIT-BIH, BeatGAN showed the second-best performances among all the benchmarks. In case of the proposed AnoFormer, this model outperformed all the baselines in four different datasets. In ",
696
+ "bbox": [
697
+ 173,
698
+ 804,
699
+ 825,
700
+ 875
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "image",
706
+ "img_path": "images/47b408cd47c8108b2ae4f17f6296ca554263ab559cf561bb93d4146ced1092e0.jpg",
707
+ "image_caption": [
708
+ "Figure 2: Output visualization in Point-Contextual (NeurIPS-TS) and MIT-BIH datasets. Left: visualization of abnormal input and the normal-like output. Middle: reconstruction results of random masking (blue). Right: reconstruction results of exclusive (green) and entropy-based (red) re-masking. Vest viewed in color. "
709
+ ],
710
+ "image_footnote": [],
711
+ "bbox": [
712
+ 178,
713
+ 94,
714
+ 820,
715
+ 339
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "217 particular, our model performed well on NeurIPS-TS containing five types of outliers, and it means \n218 AnoFormer is robust to the various types of outliers. AnoFormer achieved the state-of-the-art results \n219 from small datasets (e.g., 2D-gesture and Power-demand) with about 1,000 training sets to large \n220 datasets (e.g., NeurIPS-TS and MIT-BIH) with about tens of thousands of training sets, and from \n221 univariate to multivariate cases. The experimental results demonstrate that the proposed transformer \n222 based GAN framework with the two-step masking strategy is effective to reconstruct normal time \n223 series data for anomaly detection. ",
722
+ "bbox": [
723
+ 143,
724
+ 416,
725
+ 825,
726
+ 513
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "4.2 Qualitative Results ",
733
+ "text_level": 1,
734
+ "bbox": [
735
+ 168,
736
+ 530,
737
+ 344,
738
+ 544
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "Figure 2 shows the qualitative examples of AnoFormer. First column (Figure 2(a) and Figure 2(d)) shows the abnormal examples of point-contextual of NeurIPS-TS and MIT-BIH datasets, respectively. The other columns show that the proposed rnadom masking and re-masking strategies actually provide feedback to our framework. For example, the incorrectly copied parts in Step 1 was refined by the entropy-based re-masking (please see the black circles in the figure). As shown in the figure, when the abnormal inputs were received, the model generated the normal-like outputs. Therefore, AnoFormer can detect the abnormal points through the difference between the input and the output. ",
745
+ "bbox": [
746
+ 173,
747
+ 554,
748
+ 825,
749
+ 651
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "4.3 Ablation Study ",
756
+ "text_level": 1,
757
+ "bbox": [
758
+ 163,
759
+ 667,
760
+ 316,
761
+ 683
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "We conducted various ablation studies to analyze the effectiveness of the proposed transformerbased GAN framework and two-step masking. All of the ablation studies were performed on the Point-Contextual dataset of NeurIPS-TS, since it is the most difficult task to detect the anomalies out of the five types of outliers. Figure 2 shows an example of Point-Contextual dataset, which has the small glitches as the outliers. In Appendix B, we additionally examined the sensitivity of each hyperparameter newly adopted in our model. ",
768
+ "bbox": [
769
+ 171,
770
+ 693,
771
+ 825,
772
+ 776
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "4.3.1 Transformer-based GAN Framework ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 171,
782
+ 790,
783
+ 485,
784
+ 805
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "We first investigated the effectiveness of the transformer-based adversarial framework in our model. In this experiment, we used BeatGAN as a CNN-based baseline. Table 2 shows the ablation results when the generator and the critic use different backbone networks, such as CNN, and transformer. As shown in the table, the transformer-based generator showed higher performances on all of metrics with large margins than the CNN-based generator. Interestingly, we empirically found that there was no synergy when using CNN-based critic with the transformer-based generator. It means, it is not helpful for the transformer-based generator to construct the critic with an inappropriate baseline. On ",
791
+ "bbox": [
792
+ 173,
793
+ 814,
794
+ 825,
795
+ 911
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "table",
801
+ "img_path": "images/bca7feaa2fd9a1a9c3563a63edcdca89c832506b75f674128bf51e540bbb3be4.jpg",
802
+ "table_caption": [
803
+ "Table 2: Ablation study of the proposed transformer-based GAN. "
804
+ ],
805
+ "table_footnote": [],
806
+ "table_body": "<table><tr><td>Generator</td><td>Critic</td><td>AUROC</td><td>AUPRC</td><td>F1 score</td></tr><tr><td>CNN</td><td>CNN</td><td>0.6128</td><td>0.7051</td><td>0.7348</td></tr><tr><td>Transformer</td><td>-</td><td>0.9572</td><td>0.9735</td><td>0.9093</td></tr><tr><td>Transformer</td><td>CNN</td><td>0.9510</td><td>0.9675</td><td>0.9026</td></tr><tr><td>Transformer</td><td>Transformer</td><td>0.9758</td><td>0.9854</td><td>0.9400</td></tr></table>",
807
+ "bbox": [
808
+ 302,
809
+ 111,
810
+ 691,
811
+ 181
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "table",
817
+ "img_path": "images/a411a39e6ddc34da1423d6ffd0537b736f9ceac713076e3012f497d263d9d769.jpg",
818
+ "table_caption": [
819
+ "Table 3: Ablation study of the proposed two-step masking. "
820
+ ],
821
+ "table_footnote": [],
822
+ "table_body": "<table><tr><td>Step1</td><td>Step 2</td><td>AUROC</td><td>AUPRC</td><td>F1 score</td></tr><tr><td>-</td><td>-</td><td>0.5000</td><td>0.3602</td><td>0.2386</td></tr><tr><td>Random</td><td>■</td><td>0.8557</td><td>0.7959</td><td>0.7548</td></tr><tr><td>Mask pool</td><td>■</td><td>0.9109</td><td>0.8651</td><td>0.8200</td></tr><tr><td>Mask pool</td><td>Mask pool (50%)</td><td>0.9277</td><td>0.8590</td><td>0.7808</td></tr><tr><td>Mask pool</td><td>Exclusive (50%)</td><td>0.9489</td><td>0.9622</td><td>0.9057</td></tr><tr><td>Mask pool</td><td>Exclusive +Random (75%)</td><td>0.9709</td><td>0.9466</td><td>0.9004</td></tr><tr><td>Mask pool</td><td>Exclusive + Anomaly score (75%)</td><td>0.9747</td><td>0.9533</td><td>0.9119</td></tr><tr><td>Mask pool</td><td>Exclusive+ Entropy (75%)</td><td>0.9758</td><td>0.9854</td><td>0.9400</td></tr></table>",
823
+ "bbox": [
824
+ 269,
825
+ 229,
826
+ 723,
827
+ 367
828
+ ],
829
+ "page_idx": 7
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "247 the other hand, the transformer-based critic showed better performances than the baseline without \n248 the critic, which means it encourages the generated output to be close to the normal signal. From \n249 this result, we demonstrate that our transformer-based GAN framework trained with the proposed \n250 masking strategy is effective to reconstruct normal time series data for anomaly detection. ",
834
+ "bbox": [
835
+ 142,
836
+ 409,
837
+ 823,
838
+ 464
839
+ ],
840
+ "page_idx": 7
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "4.3.2 Two-Step Masking ",
845
+ "text_level": 1,
846
+ "bbox": [
847
+ 176,
848
+ 481,
849
+ 354,
850
+ 496
851
+ ],
852
+ "page_idx": 7
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "As shown in Table 3, we investigated the effect of two-step masking in our model. The first row means a naive form of the transformer-based GAN without any masking. The result was 0.5 of AUROC, which means the naive transformer-based GAN cannot distinguish between normal and abnormal signals at all. To overcome this critical issue, we adopted various masking strategies. First, we investigated the masking for Step 1. Here, Random means a fully random masking without any predefined mask pool. Mask Pool means our predefined mask pool defined in Section 3.3. The results showed that regardless of the masking strategy, masking itself during training and test enabled the transformer-based GAN to effectively learn the distribution of normal time series data. Moreover, we confirmed that Mask Pool is much better than Random masking, because each mask in the mask pool definitely covers the different parts from each other, providing a complementary effect. ",
857
+ "bbox": [
858
+ 173,
859
+ 506,
860
+ 825,
861
+ 643
862
+ ],
863
+ "page_idx": 7
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "262 Next, we conducted in-depth experiments to evaluate and compare different re-masking strategies in \n263 Step 2. Mask pool method in Step 1 can be also used for re-masking. Exclusive method re-masks the \n264 exclusive parts of the random mask selected in Step 1. From the results, we found that re-masking \n265 improved the detection ability of our model, and especially, exclusive masking strategy was really \n266 effective. This is because the model can consider the characteristic of whole signal during two-step \n267 masking. To provide more feedback to our model, we additionally re-masked the masked parts in \n268 Step 1. We experimented the following three cases: 1) Random method re-masks the signal randomly, \n269 2) Anomaly score method re-masks the parts with high anomaly scores, and 3) Entropy method \n270 re-masks the parts with high entropy values. The results showed that masking the uncertain parts \n271 provided the proper feedback to our model, resulting in the highest scores among all the baselines. \n272 Therefore, we confirmed that the entropy-based re-masking is more effective than the other additional \n273 masking methods. ",
868
+ "bbox": [
869
+ 143,
870
+ 650,
871
+ 825,
872
+ 815
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "5 Discussion ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 169,
882
+ 837,
883
+ 294,
884
+ 854
885
+ ],
886
+ "page_idx": 7
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "275 We further conducted analysis to demonstrate the effectiveness of the proposed two-step masking \n276 strategy. To confirm the importance of Step 2, we compared our method with the absence of Step 2. \n277 Here, we also used Point-Contextual dataset in NeurIPS-TS for analysis. \n278 The Effectiveness of Re-Masking. First, we investigated the validity of re-masking step. We reported \n279 the average AUROC and std for all masks in the predefined mask pool in Figure 3. In Step 1, there \n280 was a problem that the standard deviation (std) was too high because both training and test time \n281 had randomness in selecting the mask parts. By re-masking through Step 2, the randomness of the \n282 masked parts was eliminated and the std was significantly reduced. The performance of anomaly \n283 detection also increased with a large margin by referring to the entire signal. \n284 Analysis on Entropy-based Re-Masking. To understand the effectiveness of entropy-based re \n285 masking intuitively, we visualized the relation between entropy and anomaly score in Figure 3(b) and \n286 Figure 3(c) for both cases of normal and abnormal. Since the entropy-based method re-masked the \n287 parts selected in Step 1, we measured the anomaly score only in the parts corresponding to Step 1. We \n288 found two meaningful insights through the analysis. First, the higher the entropy, the more incorrect \n289 signal the model generates. In training phase, the high anomaly score means that the model generates \n290 output incorrectly, because only normal data is used. From the result of Figure 3(b), the entropy was \n291 also high in the parts with high anomaly score, which means that the model did not generate signals \n292 well in the parts with high entropy during Step 1. This is because in the high entropy the attention is \n293 uniformly distributed and the meaningful connection is not learned. By re-masking these parts in Step \n294 2, anomaly score was significantly reduces, which means that the model reconstructed the normal \n295 data well in the training process. Second, the entropy-based masking improves the discriminative \n296 ability between normal and abnormal in test time. As shown in Figure 3(c), likewise in the case of \n297 normal, the higher the entropy, the higher the anomaly score in abnormal case. However, there was \n298 also a part with a high entropy and a low anomaly score. These parts mean that the model copied \n299 the abnormal input as it was without making it normal. It is possible to provide feedback in both \n300 cases with entropy-based re-masking. By re-masking the parts with high entropy, anomaly score was \n301 considerably increased, and it means the parts that were not well generated due to copying in Step 1 \n302 were well re-generated. This makes it possible to further discriminate between normal and abnormal \n303 through anomaly score. In fact, a large anomaly score does not mean getting close to normal data. We \n304 used a NeurIPS-TS dataset to see if the output gets closer to normal data through re-masking. Since \n305 we synthesized abnormal datasets by injecting sporadic outliers in an additive manner, we could \n306 easily get the original normal version of the abnormal data. From this, we confirmed that the output \n307 was correctly getting closer to the original normal through Step 2. We further experimented about \n308 which layer’s entropy information should be used? From the results in Appendix C, we calculated \n309 entropy from all layers and averaged them. ",
891
+ "bbox": [
892
+ 142,
893
+ 869,
894
+ 825,
895
+ 911
896
+ ],
897
+ "page_idx": 7
898
+ },
899
+ {
900
+ "type": "image",
901
+ "img_path": "images/ed4625d277a62b4ec5b0601fff9fc4d34c1c943f2d384494de37abcbde8e24f6.jpg",
902
+ "image_caption": [
903
+ "Figure 3: (a) AUROC and std of all masks in the predefined mask pool. (b) Analysis on the entropy-based re-masking strategy (normal-case). (c) Analysis on the entropy-based re-masking strategy (abnormal-case). "
904
+ ],
905
+ "image_footnote": [],
906
+ "bbox": [
907
+ 176,
908
+ 95,
909
+ 821,
910
+ 231
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "",
917
+ "bbox": [
918
+ 142,
919
+ 296,
920
+ 825,
921
+ 380
922
+ ],
923
+ "page_idx": 8
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "",
928
+ "bbox": [
929
+ 145,
930
+ 387,
931
+ 825,
932
+ 744
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "0 6 Conclusion ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 158,
942
+ 763,
943
+ 297,
944
+ 781
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "311 In this paper, we introduce AnoFormer, a novel transformer-based GAN for time series anomaly \n312 detection. To learn time series data directly with our model, we propose pre-processing and embedding \n313 methods suitable for time series data. A new training scheme based on two-step masking enables \n314 AnoFormer to embed the representation of normal signals. Especially, the exclusive and entropy \n315 based re-masking method significantly improves the anomaly detection performances on several \n316 benchmark datasets. From the extensive experiments, we empirically demonstrate that our model \n317 is really effective to solve time series anomaly detection. As future work, we plan to study novel \n318 techniques for shorter inference time, and deal with time series data longer than an hour or a day. ",
951
+ "bbox": [
952
+ 147,
953
+ 795,
954
+ 825,
955
+ 906
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "319 References [1] Ailin Deng and Bryan Hooi. Graph neural network-based anomaly detection in multivariate time series. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 4027–4035, 2021. [2] Bin Zhou, Shenghua Liu, Bryan Hooi, Xueqi Cheng, and Jing Ye. Beatgan: Anomalous rhythm detection using adversarially generated time series. In IJCAI, pages 4433–4439, 2019. [3] Zekai Chen, Dingshuo Chen, Xiao Zhang, Zixuan Yuan, and Xiuzhen Cheng. Learning graph structures with transformer for multivariate time series anomaly detection in iot. IEEE Internet of Things Journal, 2021. [4] Markus M Breunig, Hans-Peter Kriegel, Raymond T $\\mathrm { N g }$ , and Jörg Sander. Lof: identifying density-based local outliers. In Proceedings of the 2000 ACM SIGMOD international conference on Management of data, pages 93–104, 2000. [5] Bernhard Schölkopf, John C Platt, John Shawe-Taylor, Alex J Smola, and Robert C Williamson. Estimating the support of a high-dimensional distribution. Neural computation, 13(7):1443– 1471, 2001. [6] David MJ Tax and Robert PW Duin. Support vector data description. Machine learning, 54(1):45–66, 2004. [7] Lifeng Shen, Zhuocong Li, and James Kwok. Timeseries anomaly detection using temporal hierarchical one-class network. Advances in Neural Information Processing Systems, 33:13016– 13026, 2020. [8] Alexander Geiger, Dongyu Liu, Sarah Alnegheimish, Alfredo Cuesta-Infante, and Kalyan Veeramachaneni. Tadgan: Time series anomaly detection using generative adversarial networks. In 2020 IEEE International Conference on Big Data (Big Data), pages 33–43. IEEE, 2020. [9] Tung Kieu, Bin Yang, Chenjuan Guo, and Christian S Jensen. Outlier detection for time series with recurrent autoencoder ensembles. In IJCAI, pages 2725–2732, 2019. \n344 [10] Lifeng Shen, Zhongzhong Yu, Qianli Ma, and James T Kwok. Time series anomaly detection with multiresolution ensemble decoding. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 9567–9575, 2021. \n347 [11] Jiehui Xu, Haixu Wu, Jianmin Wang, and Mingsheng Long. Anomaly transformer: Time series anomaly detection with association discrepancy. In International Conference on Learning Representations, 2022. [12] Chuxu Zhang, Dongjin Song, Yuncong Chen, Xinyang Feng, Cristian Lumezanu, Wei Cheng, Jingchao Ni, Bo Zong, Haifeng Chen, and Nitesh V Chawla. A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 1409–1416, 2019. [13] Julien Audibert, Pietro Michiardi, Frédéric Guyard, Sébastien Marti, and Maria A Zuluaga. Usad: unsupervised anomaly detection on multivariate time series. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3395–3404, 2020. \n358 [14] 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. \n361 [15] Aljaz Bozic, Pablo Palafox, Justus Thies, Angela Dai, and Matthias Nießner. Transformerfusion: Monocular rgb scene reconstruction using transformers. Advances in Neural Information Processing Systems, 34, 2021. [16] Dor Arad Hudson and Larry Zitnick. Compositional transformers for scene generation. Advances in Neural Information Processing Systems, 34, 2021. \n366 [17] Yifan Jiang, Shiyu Chang, and Zhangyang Wang. Transgan: Two pure transformers can make one strong gan, and that can scale up. Advances in Neural Information Processing Systems, 34, 2021. \n369 [18] Jing Zhang, Jianwen Xie, Nick Barnes, and Ping Li. Learning generative vision transformer with energy-based latent space for saliency prediction. Advances in Neural Information Processing Systems, 34, 2021. \n372 [19] Yufei Wang, Can Xu, Huang Hu, Chongyang Tao, Stephen Wan, Mark Dras, Mark Johnson, and Daxin Jiang. Neural rule-execution tracking machine for transformer-based text generation. Advances in Neural Information Processing Systems, 34, 2021. \n375 [20] Marcella Cornia, Matteo Stefanini, Lorenzo Baraldi, and Rita Cucchiara. Meshed-memory transformer for image captioning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10578–10587, 2020. [21] Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Misha Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. Advances in neural information processing systems, 34, 2021. [22] Jiehui Xu, Jianmin Wang, Mingsheng Long, et al. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Advances in Neural Information Processing Systems, 34, 2021. [23] Dor Arad Hudson and Larry Zitnick. Compositional transformers for scene generation. Advances in Neural Information Processing Systems, 34, 2021. [24] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. Advances in Neural Information Processing Systems, 34, 2021. [25] Mingrui Zhu, Changcheng Liang, Nannan Wang, Xiaoyu Wang, Zhifeng Li, and Xinbo Gao. A sketch-transformer network for face photo-sketch synthesis. In International Joint Conference on Artificial Intelligence, 2021. [26] Deng Cai and Wai Lam. Graph transformer for graph-to-sequence learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 7464–7471, 2020. [27] Zhidong Liu, Junhui Li, and Muhua Zhu. Improving text generation with dynamic masking and recovering. In IJCAI, 2021. [28] Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of AAAI, 2021. [29] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. \n404 [30] Yi-Bin Cheng, Xipeng Chen, Dongyu Zhang, and Liang Lin. Motion-transformer: selfsupervised pre-training for skeleton-based action recognition. In Proceedings of the 2nd ACM International Conference on Multimedia in Asia, pages 1–6, 2021. [31] Haixuan Guo, Shuhan Yuan, and Xintao Wu. Logbert: Log anomaly detection via bert. In 2021 International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2021. \n409 [32] Zhaowen Li, Zhiyang Chen, Fan Yang, Wei Li, Yousong Zhu, Chaoyang Zhao, Rui Deng, Liwei Wu, Rui Zhao, Ming Tang, et al. Mst: Masked self-supervised transformer for visual representation. Advances in Neural Information Processing Systems, 34, 2021. \n412 [33] Hangbo Bao, Li Dong, Songhao Piao, and Furu Wei. BEit: BERT pre-training of image transformers. In International Conference on Learning Representations, 2022. ",
962
+ "bbox": [
963
+ 145,
964
+ 63,
965
+ 828,
966
+ 919
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "",
973
+ "bbox": [
974
+ 148,
975
+ 54,
976
+ 828,
977
+ 916
978
+ ],
979
+ "page_idx": 10
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "414 [34] Xudong Yan, Huaidong Zhang, Xuemiao Xu, Xiaowei Hu, and Pheng-Ann Heng. Learning \n415 semantic context from normal samples for unsupervised anomaly detection. In Proceedings of \n416 the AAAI Conference on Artificial Intelligence, volume 35, pages 3110–3118, 2021. \n417 [35] George Zerveas, Srideepika Jayaraman, Dhaval Patel, Anuradha Bhamidipaty, and Carsten \n418 Eickhoff. A transformer-based framework for multivariate time series representation learning. \n419 In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, \n420 pages 2114–2124, 2021. \n421 [36] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. \n422 Improved training of wasserstein gans. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, \n423 R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing \n424 Systems, volume 30. Curran Associates, Inc., 2017. \n425 [37] Edward Choi, Zhen Xu, Yujia Li, Michael Dusenberry, Gerardo Flores, Emily Xue, and Andrew \n426 Dai. Learning the graphical structure of electronic health records with graph convolutional \n427 transformer. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages \n428 606–613, 2020. \n429 [38] Kwei-Herng Lai, Daochen Zha, Junjie Xu, Yue Zhao, Guanchu Wang, and Xia Hu. Revisiting \n430 time series outlier detection: Definitions and benchmarks. In Thirty-fifth Conference on Neural \n431 Information Processing Systems Datasets and Benchmarks Track (Round 1), 2021. ",
984
+ "bbox": [
985
+ 143,
986
+ 89,
987
+ 828,
988
+ 383
989
+ ],
990
+ "page_idx": 11
991
+ }
992
+ ]
parse/dev/iAWNOXfLz0/iAWNOXfLz0_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/iEvAf8i6JjO/iEvAf8i6JjO_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/kTcRljax0x9/kTcRljax0x9.md ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ASSESSING REINFORCEMENT LEARNING POLICIES VIA NATURAL CORRUPTIONS AT THE EDGE OF IMPERCEPTIBILITY
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Deep reinforcement learning algorithms have recently achieved significant success in learning high-performing policies from purely visual observations. The ability to perform end-to-end learning from raw high dimensional input alone has led to deep reinforcement learning algorithms being deployed in a variety of fields. Thus, understanding and improving the ability of deep reinforcement learning policies to generalize to unseen data distributions is of critical importance. Much recent work has focused on assessing the generalization of deep reinforcement learning policies by introducing specifically crafted adversarial perturbations to their inputs. In this paper, we approach this problem from another perspective and propose a framework to assess the generalization skills of trained deep reinforcement learning policies. Rather than focusing on worst-case analysis of distribution shift, our approach is based on black-box perturbations that correspond to minimal semantically meaningful natural changes to the environment or the agent’s visual observation system ranging from brightness to compression artifacts. We demonstrate that the perceptual similarity distance of the minimal natural perturbations is orders of magnitude smaller than the perceptual similarity distance of the adversarial perturbations to the unperturbed observations (i.e. minimal natural perturbations are perceptually more similar to the unperturbed states than the adversarial perturbations), while causing larger degradation in the policy performance. Furthermore, we investigate state-of-the-art adversarial training methods and show that adversarially trained deep reinforcement learning policies are more sensitive to almost all of the natural perturbations compared to vanilla trained policies. Lastly, we highlight that our framework captures a diverse set of bands in the Fourier spectrum; thus providing a better overall understanding of the policy’s generalization capabilities. We believe our work can be crucial towards building resilient and generalizable deep reinforcement learning policies.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Following the initial work of Mnih et al. (2015), the use of DNNs as function approximators in reinforcement learning has led to a dramatic increase in the capabilities of RL agents Schulman et al. (2017); Lillicrap et al. (2015). In particular, these developments allow for the direct learning of strong policies from raw, high-dimensional inputs (i.e. visual observations). With the successes of these new methods come new challenges regarding the robustness and generalization capabilities of deep reinforcement learning agents.
12
+
13
+ Szegedy et al. (2014) showed that specifically crafted imperceptible perturbations can lead to misclassification in image classification. After this initial work a new research area emerged to investigate the abilities of deep neural networks against specifically crafted adversarial examples. While various works studied many different ways to compute these examples (Carlini & Wagner, 2017; Madry et al., 2018; Goodfellow et al., 2015; Kurakin et al., 2016), several works focused on studying ways to increase the robustness against such specifically crafted perturbations, based on training with the existence of such perturbations (Madry et al., 2018; Tramer et al., 2018; Goodfellow et al., \` 2015; Xie & Yuille, 2020).
14
+
15
+ As image classification suffered from this vulnerability towards worst-case distributional shift in the input, a series of work conducted in deep reinforcement learning showed that deep neural policies are also susceptible to specifically crafted imperceptible perturbations (Huang et al., 2017; Kos & Song, 2017; Pattanaik et al., 2018; Lin et al., 2017; Sun et al., 2020; Korkmaz, 2021). While one line of work put effort on exploring these vulnerabilities in deep neural policies, another line in parallel focused making them robust and reliable via adversarial training (Pinto et al., 2017; Mandlekar et al., 2017; Huan et al., 2020).
16
+
17
+ While adversarial perturbations and adversarial training provide a notion of robustness for trained deep neural policies, in this paper we approach the resilience problem of the deep neural policies from a wider perspective, and propose a framework to test a more generic sense of robustness towards minimal perceptually similar perturbations1. To be able to achieve this we go beyond $\ell _ { p }$ -norm bounded pixel perturbations and include semantically meaningful minimal realistic perturbations. By this approach we seek answers to the following questions: (i) How perceptually similar are minimal semantically meaningful perturbed states to the original unperturbed states, and how does this compare to $\ell _ { p }$ -norm bounded adversarially perturbed states? (ii) What are the differences between adversarial perturbations and minimal natural perturbations introduced to the policy observation in terms of performance degradation of the trained deep reinforcement learning policy? (iii) How does state-of-the-art adversarial training affect the performance degradation caused by perceptually similar minimal natural perturbations compared to vanilla training? To be able answer these questions, in this work we focus on the notion of robustness of trained deep reinforcement learning agents and make the following contributions:
18
+
19
+ • We propose a framework consisting of a diverse set of minimalistic (i.e. perceptually similar) semantically meaningful natural perturbations.
20
+ • We run multiple experiments in the Arcade Learning Environment (ALE) in various games with high dimensional state representation and provide the relationship between the perceptual similarities to unperturbed states under our proposed natural perturbation framework and adversarial perturbations.
21
+ • We compare our proposed framework with the state-of-the-art adversarial method based on $\ell _ { p }$ -norm changes, and we show that our natural perturbation framework is competitive in degrading the performance of the deep reinforcement learning agent with lower perceptual similarity distance.
22
+ • We inspect state-of-the-art adversarial training under our proposed framework, and demonstrate that the adversarially trained models become more vulnerable to various natural perturbations compared to vanilla trained models.
23
+ • Finally, we investigate the frequency domain of our framework and state-of-the-art targeted attacks. We show that our framework captures different bands of the frequency spectrum, thus yielding a better estimate of the model robustness.
24
+
25
+ # 2 BACKGROUND AND RELATED WORK
26
+
27
+ # 2.1 PRELIMINARIES
28
+
29
+ In this paper we consider Markov Decision Processes (MDPs) given by a tuple $( S , A , P , r , \gamma , s _ { 0 } )$ . The reinforcement learning agent interacts with the MDP by observing states $s \in S$ , and then taking actions $a \in A$ . Here $s _ { 0 }$ represents the initial state of the agent, and $\gamma$ represents the discount factor. The probability of transitioning to state $s ^ { \prime }$ when the agent takes action $a$ in state $s$ is determined by the Markovian transition kernel $P : S \times A \times S \to \mathbb { R }$ . The reward received by the agent when taking action $a$ in state $s$ is given by the reward function $r : S \times A \to \mathbb { R }$ . The goal of the expected cumulative discounted reward with the environment. This goal is achieve the agent is to learn a policy $\pi _ { \theta } : S \times A \to \mathbb { R }$ $\scriptstyle \sum _ { t = 0 } ^ { T - 1 } \gamma ^ { t } r ( s _ { t } , a _ { t } )$ which takes an action that the agent receives viastate-action value function $a$ in state that maximizes $Q ( s , a ) =$ $\mathbb { E } _ { \pi } [ \sum _ { t = 0 } ^ { T - 1 } \gamma ^ { t } r ( s _ { t } , a _ { t } ) | s = s _ { 0 } , a _ { 0 } = 0 ]$ assigning a value to each state-action pair. We use $\mathcal { F } ( s )$ to denote the 2D discrete Fourier transform of state $s$ in which each frequency is computed via $\begin{array} { r } { \mathcal { F } ( m , n ) = \sum _ { k = 0 } ^ { M - 1 } \sum _ { l = 0 } ^ { N - 1 } s ( k , l ) e ^ { - j 2 \pi ( m k / M + n l / N ) } } \end{array}$ where $k$ and $l$ are the coordinates of the state, and $M$ and $N$ correspond to ranges of the 2D state representation.
30
+
31
+ # 2.2 CRAFTING ADVERSARIAL PERTURBATIONS
32
+
33
+ Szegedy et al. (2014) proposed to minimize the distance between the original image and adversarially produced image to create adversarial perturbations. The authors used box-constrained L-BFGS to solve this optimization problem. Goodfellow et al. (2015) introduced the fast gradient method (FGM)
34
+
35
+ $$
36
+ x _ { \mathrm { a d v } } = x + \epsilon \cdot \frac { \nabla _ { x } J ( x , y ) } { | | \nabla _ { x } J ( x , y ) | | _ { p } } ,
37
+ $$
38
+
39
+ for crafting adversarial examples in image classification by taking the gradient of the cost function $J ( x , y )$ used to train the neural network in the direction of the input, where $x$ is the input, $y$ is the output label, and $J ( x , y )$ is the cost function for image classification. Carlini & Wagner (2017) introduced targeted attacks in the image classification domain based on distance minimization between the adversarial image and the original image while targeting a particular label. In the deep reinforcement learning domain the Carlini & Wagner (2017) formulation is
40
+
41
+ $$
42
+ \begin{array} { r l } & { \underset { s _ { \mathrm { a d v } } \in D _ { \epsilon , p } ( s ) } { \operatorname* { m i n } } \Vert s _ { \mathrm { a d v } } - s \Vert _ { p } } \\ & { \mathrm { s u b j e c t ~ t o ~ } \underset { a } { \operatorname { a r g m a x } } Q ( s , a ) \neq \underset { a } { \operatorname { a r g m a x } } Q ( s _ { \mathrm { a d v } } , a ) } \end{array}
43
+ $$
44
+
45
+ where $s$ is the unperturbed input, $S _ { \mathrm { a d v } }$ is the adversarially perturbed input, $a ^ { * } ( s )$ is the action taken in the unperturbed state, and $a ^ { * } ( s _ { \mathrm { a d v } } ) = \arg \operatorname* { m a x } _ { a } Q ( s _ { \mathrm { a d v } } , a )$ is the action taken in the adversarial state. This formulation attempts to minimize the distance to the original state, constrained to states leading to sub-optimal actions as determined by the $Q$ -network. In contrast to adversarial attacks, in our proposed threat model we will not need any information on the cost function used to train the network, the $Q$ -network of the trained agent, or access to the visited states themselves.
46
+
47
+ # 2.3 ADVERSARIAL APPROACH IN DEEP REINFORCEMENT LEARNING
48
+
49
+ The first adversarial attacks on deep reinforcement learning introduced by Huang et al. (2017) and Kos & Song (2017) adapted FGSM from image classification to the deep reinforcement learning setting. Subsequently, Mandlekar et al. (2017) used FGSM perturbations for adversarial training of deep reinforcement learning agents. Pinto et al. (2017); Gleave et al. (2020) focused on modeling the interaction between the adversary and the agent, while Lin et al. (2017); Sun et al. (2020) focused on strategically timing when (i.e. in which state) to attack an agent using perturbations computed with the Carlini & Wagner (2017) adversarial formulation. Quite recently, Huan et al. (2020) proposed to model this dynamic as a State-Adversarial Markov Decision Process (SA-MDP), and the authors claimed the SA-MDP model provides theoretically justified robust deep reinforcement learning agents.
50
+
51
+ # 2.4 PERCEPTUAL SIMILARITY DISTANCE
52
+
53
+ Zhang et al. (2018) found that internal activations of networks trained for high-level tasks correspond to human perceptual judgements across different network architectures Iandola et al. (2016), Krizhevsky et al. (2012), Simonyan & Zisserman (2015) without calibration. Furthermore, the authors propose a method to measure the perceptual distance between two images with the Learned Perceptual Image Patch Similarity (LPIPS) metric. We compare the distance between adversarial states ${ \boldsymbol { s } } _ { \mathrm { a d v } }$ and the original states $s$ with the LPIPS metric. We refer to the LPIPS metric as $\mathcal { P } _ { \mathrm { s i m i l a r i t y } }$ throughout the paper. $\mathcal { P } _ { \mathrm { s i m i l a r i t y } } ( s , s _ { \mathrm { a d v } } )$ returns the distance between $s$ and ${ \boldsymbol { s } } _ { \mathrm { a d v } }$ based on network activations. Zhang et al. (2018) show that $\mathcal { P } _ { \mathrm { s i m i l a r i t y } }$ results in a reliable approximation of human perception.
54
+
55
+ In more detail, the LPIPS metric in Zhang et al. (2018) is given by measuring the $\ell _ { 2 }$ distance between a normalized version of the activations of the neural network at several internal convolutional layers. For each convolutional layer $l$ let $W _ { l }$ be the width, $H _ { l }$ the height, and $C _ { l }$ the number of channels. Further, let $y ^ { l } \in \mathbb { R } ^ { W _ { l } \times H _ { l } \times C _ { l } }$ denote the vector of activations in convolutional layer $l$ .
56
+
57
+ To compute the perceptual similarity distance between two states $s$ and $s _ { 0 }$ , first calculate the internal activations $y ^ { \hat { l } } , y _ { 0 } ^ { l } \ { \in } \ \mathbb { R } ^ { W _ { l } \times H _ { l } \times C _ { l } ^ { \bullet } }$ (corresponding to $s$ and $s _ { 0 }$ respectively) for $L$ internal layers. Second, unit-normalize the activation vectors in the channel dimension, and denote the resulting normalized activations by $\hat { y } ^ { l }$ and $\hat { y } _ { 0 } ^ { l }$ . Next scale each channel in $\hat { y } ^ { l }$ and $\hat { y } _ { 0 } ^ { l }$ by the same, fixed weight vector $w _ { l } \in \mathbb { R } ^ { C _ { l } }$ . Here $w _ { l }$ can either be a learned vector of weights for layer $l$ or the vector of all ones if no scaling is desired. The last step is then to compute the perceptual similarity distance by first averaging the $\ell _ { 2 }$ distance between the scaled activations over the spatial dimensions, and then summing over the $L$ layers. Formally,
58
+
59
+ $$
60
+ { \mathcal { P } } _ { \mathrm { s i m i l a r i t y } } \big ( s , s _ { 0 } \big ) = \sum _ { l } { \frac { 1 } { H _ { l } W _ { l } } \sum _ { h , w } \left\| w _ { l } \odot \big ( \hat { y } _ { h w } ^ { l } - \hat { y } _ { 0 h w } ^ { l } \big ) \right\| _ { 2 } ^ { 2 } }
61
+ $$
62
+
63
+ # 2.5 IMPACT
64
+
65
+ To be able to compare between different algorithms and different games the performance degradation of the deep reinforcement learning policy is defined as the normalized impact of an adversary on the agent:
66
+
67
+ $$
68
+ \mathcal { T } = \frac { \mathrm { S c o r e } _ { \mathrm { c l e a n } } - \mathrm { S c o r e } _ { \mathrm { a d v } } } { \mathrm { S c o r e } _ { \mathrm { c l e a n } } - \mathrm { S c o r e } _ { \mathrm { m i n } } ^ { \mathrm { f u x e d } } } .
69
+ $$
70
+
71
+ Scorefixedmin is a fixed minimum score for a game, ${ \mathrm { S c o r e } } _ { \mathrm { a d v } }$ and $\mathbf { S c o r e } _ { \mathrm { c l e a n } }$ are the scores of the agent with and without any modification to the agent’s observations system respectively.
72
+
73
+ # 3 A GENERALIZATION TESTING FRAMEWORK WITH NATURAL PERTURBATIONS
74
+
75
+ In our paper we focus on robustness and generalization issues that deep reinforcement learning policies encounter with a contrasting view compared to prior work focusing on worst-case distributional shift within an imperceptibility bound (see Section 2.3). We propose a baseline to evaluate deep reinforcement learning policies with realistic and minimal corruptions to the environment with which they interact. We essentially juxtapose adversarial perturbations and natural corruptions with respect to their perceptual similarity distance (see Section 2.4) to the original states and their degree of impact on the policy performance. More importantly, we question the imperceptibility of $\ell _ { p }$ -norm bounded adversarial perturbations in terms of perceptual similarity distance, and compare this imperceptibility notion to natural perturbations. While we categorize adversarial perturbations also as a component in the framework majorly concentrated on the high frequencies, we embed several realistic perturbations that aim to cover diverse bands in the frequency spectrum. We highlight that prior work focused on the presence of a strong adversary model that requires prior access to training details of the agent’s neural network Huang et al. (2017); Korkmaz (2021), real time access to the agent’s perception system Pattanaik et al. (2018); Kos & Song (2017), and highly computationally demanding adversarial formulations for computing simultaneous perturbations Lin et al. (2017); Sun et al. (2020). From the security point of view we emphasize that natural corruptions at the edge of imperceptibility can be more dangerous than a strong adversary assumption 2 without carrying any of these requirements.
76
+
77
+ In our model we examine several natural environmental changes such as: changes in the brightness of the environment, blurring of the observation, slight rotation of the observation, several geometric transformations and compression artifacts. These changes from our model can be easily linked to naturally occurring changes in the environment3. In Table 1 we compare our proposed framework with the state-of-the-art targeted adversarial attack proposed by Carlini & Wagner (2017) in terms of perceptual similarity distances, and the impacts on the policy performance. While in the remainder of this section we explain in detail each component of our proposed framework, we provide all the experimental details in Section 5, as well as results on policy gradients, performance degradation in the time domain, and complementary results for Section 5 in the appendix.
78
+
79
+ ![](images/645e2c179f1e81f16c3049bee457fd7714c16bc7569b48ad9acd77a7ef956d7f.jpg)
80
+ Figure 1: Original frame and environmental modifications. Columns: original frame, shifting, rotation, perspective transformation, blurring, compression artifacts. brightness and contrast. Rows: JamesBond, Pong and BankHeist.
81
+
82
+ Note that the natural corruptions considered in our framework are as minimalistic as possible. Most of the perturbations from the proposed framework cannot be recognized by human perception (see Figure 1). More formally, the perceptual similarity distances for each corruption, and the resulting policy performance degradation, are given in Table 1.
83
+
84
+ Brightness and Contrast: To inspect the effects of low frequency corruptions we included brightness and contrast level changes using linear brightness and contrast transformation,
85
+
86
+ $$
87
+ s _ { \mathrm { a d v } } ( i , j ) = s ( i , j ) \cdot \alpha + \beta ,
88
+ $$
89
+
90
+ where $s ( i , j )$ is the $i j ^ { \mathrm { t h } }$ pixel of state $s$ , and $\alpha$ and $\beta$ are the linear brightness parameters. In Table 1 we show the impacts and perceptual similarity distances with corresponding $\alpha , \beta$ values. In all of the games except BankHeist brightness and contrast change results in higher impact than the Carlini & Wagner (2017) formulation, while the perceptual similarity distance of brightness and contrast is lower in every game.
91
+
92
+ Blurring: To observe the effects of high frequency corruptions we included blurring in our framework. In particular, median bluring4 is a nonlinear noise removal technique that replaces the original pixel value with the median pixel value of its neighbouring pixels. A kernel size $k$ means that the median is computed over a $k \times k$ neighborhood of the original pixel. Only in BankHeist and TimePilot we observe that the perceptual similarity distance required for blurring is higher compared to adversarial perturbations to be able to cause higher impact on policy performance (see Table 1). For the rest of the games impact is higher and perceptual similarity distance is lower for blurring.
93
+
94
+ Rotation: Rotation is one of the most fundamental geometric changes in an environment which we incorporate in our framework. In Table 1 we show impact values and perceptual similarity distance with corresponding rotation angle in degrees. In all of the games except Pong rotation results in higher impact and orders of magnitude lower perceptual similarity distance than the Carlini & Wagner (2017) formulation. In Pong the impact is comparable and the perceptual similarity distance is lower by a factor of 6.
95
+
96
+ Table 1: Impacts on the policy performance, perceptual similarity distances $\mathcal { P } _ { \mathrm { s i m i l a r i t y } }$ to the unperturbed states, and raw scores for Carlini & Wagner (2017) formulation and natural perturbation framework components. We report all of the results with the standard error of the mean.
97
+
98
+ <table><tr><td>Games</td><td>BankHeist</td><td>JamesBond</td><td>Pong</td><td>Riverraid</td><td>TimePilot</td></tr><tr><td>Carlini&amp;Wagner Impact</td><td>0.982±0.009</td><td>0.451±0.231</td><td>0.995±0.014</td><td>0.928±0.030</td><td>0.567 ±0.159</td></tr><tr><td>Brightness&amp;Contrast Impact</td><td>0.966± 0.030</td><td>0.913 ±0.047</td><td>1.0±0.009</td><td>0.951 ±0.016</td><td>0.663±0.239</td></tr><tr><td>Blurring Impact</td><td>0.979±0.009</td><td>0.635±0.200</td><td>1.0±0.000</td><td>0.946±0.015</td><td>0.589±0.150</td></tr><tr><td>Rotation Impact</td><td>0.997±0.004</td><td>0.635±0.189</td><td>0.99±0.015</td><td>0.942±0.042</td><td>0.581±0.158</td></tr><tr><td>Shifting Impact</td><td>0.985 ±0.005</td><td>0.865±0.140</td><td>1.0±0.00</td><td>0.935 ±0.023</td><td>0.623±0.199</td></tr><tr><td>Compression Artifacts Impact</td><td>0.980 ±0.013</td><td>0.884 ±0.128</td><td>0.962±0.032</td><td>0.803 ±0.051</td><td>0.578 ±0.271</td></tr><tr><td>Perspective Transform Impact</td><td>0.998±0.003</td><td>0.865±0.087</td><td>0.996±0.009</td><td>0.968±0.006</td><td>0.624±0.198</td></tr><tr><td>Carlini&amp;Wagner Psimilarity</td><td>0.0657±0.0073</td><td>0.2622±0.0312</td><td>0.6134±0.0271</td><td>0.2714±0.0285</td><td>0.1336± 0.0231</td></tr><tr><td>Brightness&amp;Contrast Psimilarity</td><td>0.0307±0.0039</td><td>0.011± 0.0003</td><td>0.2190± 0.0046</td><td>0.2147±0.0212</td><td>0.1045± 0.0031</td></tr><tr><td>Blurring Psimilarity</td><td>0.1672±0.0192</td><td>0.0707±0.0074</td><td>0.0351±0.0072</td><td>0.1442±0.0107</td><td>0.2014±0.0645</td></tr><tr><td>Rotation Psimilarity</td><td>0.0520±0.0070</td><td>0.0275±0.0016</td><td>0.1020±0.0115</td><td>0.0422± 0.0033</td><td>0.1020±0.0115</td></tr><tr><td>Shifting Psimilarity</td><td>0.0492±0.0046</td><td>0.0650±0.0092</td><td>0.2455±0.0432</td><td>0.0945±0.0032</td><td>0.1167±0.0121</td></tr><tr><td>Compression Artifacts Psimilarity</td><td>0.0240±0.0037</td><td>0.1325±0.0301</td><td>0.2506±0.0559</td><td>0.2250±0.0202</td><td>0.1592±0.0369</td></tr><tr><td>Perspective Transform Psimilarity</td><td>0.0398±0.0067</td><td>0.012±0.0007</td><td>0.0140±0.0018</td><td>0.0422±0.0016</td><td>0.0440±0.0050</td></tr><tr><td>Carlini&amp;WagnerRaw Scores</td><td>15.0±2.549</td><td>285.0±25.495</td><td>-20.8±0.189</td><td>1168.0± 140.696</td><td>4090.0±347.979</td></tr><tr><td>Brightness&amp;Contrast Raw Scores</td><td>17.0±1.651</td><td>45.0±6.846</td><td>-21.0±0.000</td><td>744.0±76.957</td><td>3180.0±711.027</td></tr><tr><td>Blurring Raw Scores</td><td>18.0±3.405</td><td>190.0±33.015</td><td>-21.0±0.000</td><td>820.0±72.013</td><td>3880.0±329.484</td></tr><tr><td>Rotation Raw Scores</td><td>2.0±1.264</td><td>190.0± 27.203</td><td>-20.6±0.209</td><td>873.0±201.866</td><td>3150.0±482.959</td></tr><tr><td>Shifting Raw Scores</td><td>13.0±1.449</td><td>70.0±20.248</td><td>-21.0±0.000</td><td>988.0± 89.057</td><td>3560.0± 437.538</td></tr><tr><td>Compression ArtifactsRaw Scores Perspective Transform Raw Scores</td><td>17.0±3.478</td><td>60.0±18.439</td><td>-19.4±0.428</td><td>2589.0±389.679</td><td>3980.0±593.936</td></tr><tr><td></td><td>1.0±0.948</td><td>75.0±12.649</td><td>-20.9±0.126</td><td>486.0±29.127</td><td>3550.0±435.028</td></tr><tr><td>Brightness&amp;Contrast [α,β]</td><td>[1.2,40]</td><td>[0.9,20]</td><td>[1.7,40]</td><td>[2.4,-275]</td><td>[2.4,-260]</td></tr><tr><td>Blurring Kernel Size</td><td>5</td><td>3</td><td>3</td><td>5</td><td>5</td></tr><tr><td>Rotation Degree</td><td>1.4</td><td>1.6</td><td>3</td><td>1.8</td><td>5</td></tr><tr><td>Shifting[ti,tj]</td><td>[1,1]</td><td>[0,1]</td><td>[2,1]</td><td>[1,2]</td><td>[2.2]</td></tr><tr><td>Perspective Transform Norm</td><td>1</td><td>1</td><td>3</td><td>2</td><td>3</td></tr></table>
99
+
100
+ Shifting: We included several plausible geometric transformations in our natural perturbation framework, the first of which is shifting. In more detail, shifting an image moves the elements of the image matrix along any dimension by any number of elements. For this modification we shift the inputs in the $x$ or $y$ direction with as few pixels shifted as possible. We use $[ t _ { i } , t _ { j } ]$ to denote the distance shifted, where $t _ { i }$ is in the direction of $x$ and $t _ { j }$ is in the direction of $y$ . In Table 1 we show the impact values and perceptual similarity distances for both Carlini & Wagner (2017) and shifting with corresponding $[ t _ { i } , t _ { j } ]$ values. For all of the games shifting yields higher impact and lower perceptual similarity distance.
101
+
102
+ Compression Artifacts: With this natural perturbation component we look at JPEG compression artifacts caused by the discrete cosine transform (DCT) resulting in the loss of high frequency components (ringing and blocking). In Table 1 we show the impact values and perceptual similarities of Carlini & Wagner (2017) and compression artifacts (CA). Only in Pong and Riverraid do we observe a lower impact than Carlini & Wagner (2017) while the perceptual similarity distance is significantly smaller for compression artifacts. While in TimePilot the perceptual similarity distance is higher, in the rest of the games compression artifacts result in higher impact and lower perceptual similarity distance compared to Carlini & Wagner (2017).
103
+
104
+ Perspective Transformation: The final component of our proposed natural perturbation framework is perspective transformation. Given four points in the plane defining a convex quadrangle, there is a unique perspective transformation mapping the corners of the square to these four points5. We define the norm of a perspective transformation as the maximum distance that one of the corners of the square moves under this mapping. Note that for most of the games the perspective norm is small (see Table 1). Hence, the changes caused by the perspective transform are imperceptible (e.g. fourth column of Figure 1). Furthermore, for all the games we observe perspective transformation yields higher impact and lower perceptual similarity distance than the Carlini & Wagner (2017) formulation.
105
+
106
+ ![](images/c30a5ebe5a8f6ed96e6cf33e91031eb6818a31a770b28cb51b7d34c5823dd9c3.jpg)
107
+ Figure 2: Performance drop of adversarially trained deep reinforcement learning policy and vanilla trained deep reinforcement learning policy under the changes in rotation, compression artifacts, and contrast.
108
+
109
+ # 4 ADVERSARIAL TRAINING UNDER NATURAL CORRUPTIONS
110
+
111
+ In this section we investigate state-of-the-art adversarially trained deep reinforcement learning policies within our proposed natural perturbation framework. In particular, we test State Adversarial Double Deep Q-Network, a state-of-the-art algorithm (see Section 2.3). In this paper the authors propose using what they call a state-adversarial MDP to model adversarial attacks in deep reinforcement learning. Based on this model they develop methods to regularize Double Deep Q-Network policies to be more robust to adversarial attacks. In more detail, letting $B ( s )$ be the $\ell _ { p }$ -norm ball of radius $\epsilon$ , this regularization is achieved by adding,
112
+
113
+ $$
114
+ \mathcal { R } ( \theta ) = \operatorname* { m a x } \{ \operatorname* { m a x } _ { \hat { s } \in B ( s ) } \operatorname* { m a x } _ { a \neq a ^ { * } ( s ) } Q _ { \theta } ( \hat { s } , a ) - Q _ { \theta } ( \hat { s } , a ^ { * } ( s ) ) , - c \} .
115
+ $$
116
+
117
+ to the temporal difference loss used in standard DQN. In particular, for a sample of the form $( s , a , r , s ^ { \prime } )$ the loss is
118
+
119
+ $$
120
+ \mathcal { L } ( \theta ) = L _ { H } \left( r + \gamma \operatorname* { m a x } _ { a ^ { \prime } } Q ^ { \mathrm { t a r g e t } } ( s ^ { \prime } , a ^ { \prime } ) - Q _ { \theta } ( s , a ) \right) + \mathcal { R } ( \theta )
121
+ $$
122
+
123
+ where $L _ { H }$ is the Huber loss.
124
+
125
+ Table 2 shows the impact values of the components of our proposed framework for the vanilla trained agent and the adversarially trained agent. We find that while the adversarially trained model gains robustness against blurring, no additional robustness is gained against any other component of the framework under adversarial training. Furthermore, in Figure 2 and Figure 3 we show the effect of varying the degrees for rotation, $\alpha$ for contrast, $\beta$ for brightness, and jpeg quality $\kappa$ for compression artifacts. We find that, as these parameters are varied, the vanilla trained agent is more robust than the adversarially trained one. For example, modifying brightness with $\beta$ in the range 3.1 to 20.0 causes impact close to 1.0 (i.e. total failure) for the adversarially trained policy, but has negligible impact on the vanilla trained policy. Thus, not only does our proposed framework capture semantically meaningful perturbations that are not captured by adversarial robustness, but additionally adversarial training actively harms robustness to some of the natural perturbations from our proposed framework.
126
+
127
+ ![](images/a6e117b8a55972f97737fb94c1a6f776016e91d7dfcbec374f9aeca50629b9b6.jpg)
128
+ Figure 3: Performance drop of adversarially trained model and vanilla trained model to the changes in brightness.
129
+
130
+ The results in Figure 2 and Figure 3 demonstrate that, across a wide range of parameters, adversarially trained neural policies are less robust to natural perturbations than vanilla trained policies. This occurs despite the fact that the central purpose of adversarial training is to increase robustness to imperceptible perturbations, where imperceptibility is measured by $\ell _ { p }$ -norm. Our results indicate that an increase in robustness to $\ell _ { p }$ -norm bounded perturbations can come at the cost of a loss in robustness to other natural types of imperceptible corruptions. These results call into question the use of adversarial training for the creation of robust deep reinforcement learning policies, and in particular the use of $\ell _ { p }$ -norm bounds as a metric of imperceptibility.
131
+
132
+ The fact that deep reinforcement learning policies are being widely deployed in many different domains: self-driving automobiles Dosovitsky et al. (2017); Wolf et al. (2017), drug design Pereira et al. (2021); Popova et al. (2018), autonomous aerial vehicles Zhang et al. (2020), medical diagnosis and treatment Thananjeyan et al. (2017); Yauney & Pratik (2018), natural language processing He et al. (2016); Jaques et al. (2017), and industrial control and security Wang et al. (2019); Duan et al. (2020), brings the term “robustness” into question. The decrease in resilience to overall distributional shift that “certified robust” adversarial training methods encounter demonstrates the need for further investigation into how robustness should be defined.
133
+
134
+ Table 2: Impacts of adversarially and vanilla trained policies with natural perturbation framework: brightness &contrast, blurring, rotation, shifting, compression artifacts and perspective transform.
135
+
136
+ <table><tr><td>Environment Training Method</td><td>BankHeist Adversarially Trained</td><td>BankHeist Vanilla Trained</td><td>Pong Vanilla Trained</td><td>Pong Adversarially Trained</td></tr><tr><td>Brightness&amp;Contrast (D)</td><td>0.881±0.010</td><td>0.971±0.030</td><td>0.996±0.009</td><td>1.0±0.000</td></tr><tr><td>Compression Artifacts (I)</td><td>0.960±0.0014</td><td>0.984±0.013</td><td>0.962±0.032</td><td>1.0±0.000</td></tr><tr><td>Perspective Transform (Z)</td><td>1.0±0.000</td><td>1.0±0.003</td><td>0.996±0.009</td><td>0.992±0.0034</td></tr><tr><td>Blurring ()</td><td>0.003±0.002</td><td>0.983±0.009</td><td>1.0±0.000</td><td>0.805±0.123</td></tr><tr><td>Rotation (T)</td><td>1.0±0.000</td><td>1.0±0.004</td><td>0.99±0.015</td><td>1.0±0.000</td></tr><tr><td>Shifting (Z)</td><td>1.0±0.000</td><td>0.989±0.005</td><td>1.0±0.000</td><td>1.0±0.000</td></tr></table>
137
+
138
+ # 5 PERTURBATIONS IN THE FOURIER DOMAIN
139
+
140
+ In this section we provide frequency analysis of our proposed framework and state-of-the-art adversarial formulations. The purpose of this analysis is to provide quantitative evidence that natural perturbations cover a broader concept of robustness than adversarial perturbations alone. In particular, we demonstrate that each natural perturbation has distinctly different effects in the Fourier spectrum, both from other natural corruptions and from adversarial perturbations. Furthermore, we quantify these effects by measuring, for each type of perturbation, the change in total Fourier energy at each spatial frequency level. Aside from outlining our methodology, Section 5 serves the purpose of explaining results obtained in Section 4. In particular, training techniques (e.g. adversarial training) solely focusing on building robustness towards high spatial frequency corruptions become more vulnerable towards corruptions in different band of the spectrum.
141
+
142
+ ![](images/cae3eb783dca1b500f5ec6970823a62f059205060d247c5bbd7e2eb75525bb52.jpg)
143
+ Figure 4: Rows: $\mathcal { F } ( s )$ for BankHeist, $\mathcal { F } ( s )$ for Riverraid. Columns: unperturbed state, Carlini & Wagner, brightness and contrast, blurring, rotation, shifting, perspective transformation, compression artifacts.
144
+
145
+ In Figure 4 we show the Fourier spectrum of the original state $s$ and the perturbed states ${ \boldsymbol { s } } _ { \mathrm { a d v } }$ from our proposed framework based on natural perturbations and Carlini & Wagner (2017) formulated perturbations. In these spectrums the magnitude of the spatial frequencies increases by moving outward from the center, and the center of the image represents the Fourier basis function where spatial frequencies are zero. We provide more detailed description of $\mathcal { F } ( s )$ in Section 2.1. To investigate which type of perturbations occupy which band in the Fourier domain we compute total energy $\mathcal { E } ( f )$ for all basis functions whose maximum spatial frequency is $f$ . Hence, Figure 5 shows the power spectral density of the original state compared to perturbed states computed via components from our proposed natural perturbation framework and Carlini $\&$ Wagner (2017). Figure 5 demonstrates that each component from our natural perturbation framework occupies different bands in the Fourier domain. In particular, in Figure 5 we observe that while the Carlini & Wagner (2017) formulation increases the magnitude of the higher frequencies, compression artifacts decrease the magnitude of the high frequency band. On the other hand, brightness and contrast decreases the magnitude of the low frequency band, and shifting increases the mid-band. Blurring decreases the mid-band and high frequencies together, and perspective transformation decreases the low frequencies and high frequencies while increasing the mid-band.
146
+
147
+ Figure 5 shows that our proposed framework indeed captures a broader set of directions in the frequency domain. Thus, capturing the susceptibilities towards perturbations in different bands of the frequency domain represents a wider notion of robustness compared to only focusing on worstcase distributional shifts.
148
+
149
+ ![](images/0250fd9ab1722285efb853d4454959ce839bb298e8808c9a20b2dd37f13bc988.jpg)
150
+ Figure 5: Riverraid total energy $\mathcal { E } ( f )$ spectrum with various perturbations: Carlini & Wagner, compression artifacts, brightness and contrast, perspective transformation, shifting, rotation.
151
+
152
+ Experimental Details: In our experiments the vanilla trained deep neural policies are trained with Double Deep Q- Network Wang et al. (2016) and the adversarially trained deep neural policy is trained via the theoretically justified State-Adversarial MDP modelled State-Adversarial Double Deep Q-Network (SA-DDQN) (see Section 2.3) in the OpenAI Gym Brockman et al. (2016) Arcade Learning Environment Bellemare et al. (2013). We evaluate several trained policies from Arcade Learning Environment with our proposed framework averaged over 10 episodes. In all of our tables and figures we include the means and the standard error of the mean values. See more details in the appendix.
153
+
154
+ # 6 CONCLUSION
155
+
156
+ In this paper we studied a realistic threat model based on basic environmental changes and proposed a framework to asses the generalization capabilities of deep reinforcement learning policies. We compared our natural perturbation framework with the state-of-the-art adversarial attacks in the Arcade Learning Environment (ALE). We questioned the imperceptibility notion of the $\ell _ { p }$ -norm bounded adversarial perturbations, and demonstrated that the states with minimal natural perturbations are more perceptually similar to the unperturbed states compared to adversarial ones. Moreover, we demonstrated that our framework achieves higher impact on policy performance with lower perceptual similarity distance without having access to the policy training details, real time access to the agent’s memory and perception system, and computationally demanding adversarial formulations to compute simultaneous perturbations. Furthermore, we showed that each component of our framework contains distinct bands in the frequency domain, resulting in a better estimate of the generalization capabilities of trained agents. Most importantly, we investigated state-of-the-art adversarial training methods and found that vanilla trained policies are more robust than adversarially trained policies to minimal natural perturbations. We think that the robustness of the trained deep neural policies should be investigated in a more diverse spectrum and we believe our framework can be instrumental towards generalization and robustification of deep reinforcement learning algorithms.
157
+
158
+ # REFERENCES
159
+
160
+ Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research., pp. 253–279, 2013.
161
+
162
+ Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv:1606.01540, 2016.
163
+
164
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57, 2017.
165
+
166
+ Alexey Dosovitsky, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. Carla: An open urban driving simulator. In Proceedings of the Conference on Robot Learning (CoRL), 78: 1–16, 2017.
167
+
168
+ Jiajun Duan, Di Shi, Ruisheng Diao, Haifeng Li, Zhiwei Wang, Bei Zhang, Desong Bian, and Zhehan Yi. Deep-reinforcement-learning-based autonomous voltage control for power grid operations. IEEE Transactions on Power Systems, 35(1):814–817, 2020.
169
+
170
+ Adam Gleave, Michael Dennis, Cody Wild, Kant Neel, Sergey Levine, and Stuart Russell. Adversarial policies: Attacking deep reinforcement learning. International Conference on Learning Representations ICLR, 2020.
171
+
172
+ Ian Goodfellow, Jonathan Shelens, and Christian Szegedy. Explaning and harnessing adversarial examples. International Conference on Learning Representations, 2015.
173
+
174
+ Ji He, Jianshu Chen, Xiaodong He, Jianfeng Gao, Lihong Li, Li Deng, and Mari. Ostendorf. Deep reinforcement learning with a natural language action space. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pp. 1621–1630, 2016.
175
+
176
+ Zhang Huan, Hongge Chen, Chaowe Xiao, Bo Li, Mingyan Liu, Duane S. Boning, and ChoJui Hseh. Robust deep renforcement learning against adversaral perturbations on state observations. In Hugo Larochelle, Marc’Aurelo Ranzato, Raia Hadsell, Maria-Florna Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
177
+
178
+ Sandy Huang, Nicholas Papernot, Yan Goodfellow, Ian an Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. Workshop Track of the 5th International Conference on Learning Representations, 2017.
179
+
180
+ Forrest N. Iandola, Song Han, Matthew W. Moskewicz, Khalid Ashraf, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and¡ $0 . 5 \mathrm { m b }$ model size. arXiv preprint arXiv:1602.07360, 2016.
181
+
182
+ Natasha Jaques, Shixiang Gu, Dzmitry Bahdanau, Jose Miguel Hern ´ andez-Lobato, Richard ´ E. Turner, and Douglas Eck. Sequence tutor: Conservative fine-tuning of sequence generation models with kl-control. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1645–1654, 2017.
183
+
184
+ Ezgi Korkmaz. Investigating vulnerabilities of deep neural policies. Conference on Uncertainty in Artificial Intelligence (UAI), 2021.
185
+
186
+ Jernej Kos and Dawn Song. Delving into adversarial attacks on deep policies. International Conference on Learning Representations, 2017.
187
+
188
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 2012.
189
+
190
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
191
+
192
+ Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan. Wierstra. Continuous control with deep reinforcement learning. arXivpreprint arXiv:1509.02971, 2015.
193
+
194
+ Yen-Chen Lin, Hong Zhang-Wei, Yuan-Hong Liao, Meng-Li Shih, ing-Yu Liu, and Min Sun. Tactics of adversarial attack on deep reinforcement learning agents. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, pp. 3756–3762, 2017.
195
+
196
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
197
+
198
+ Ajay Mandlekar, Yuke Zhu, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Adversarially robust policy learning: Active construction of physically-plausible perturbations. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3932–3939, 2017.
199
+
200
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, arc G Bellemare, Alex Graves, Martin Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518: 529–533, 2015.
201
+
202
+ Anay Pattanaik, Zhenyi Tang, Shuijing Liu, and Bommannan Gautham. Robust deep reinforcement learning with adversarial attacks. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 2040–2042, 2018.
203
+
204
+ Tiago Pereira, Maryam Abbasi, Bernardete Ribeiro, and Joel P. Arrais. Diversity oriented deep reinforcement learning for targeted molecule generation. J. Cheminformatics, 13(1): 21, 2021. doi: 10.1186/s13321-021-00498-z. URL https://doi.org/10.1186/ s13321-021-00498-z.
205
+
206
+ Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. International Conference on Learning Representations ICLR, 2017.
207
+
208
+ Mariya Popova, Olexandr Isayev, and Alexander. Tropsha. Deep reinforcement learning for de novo drug design. Science advances 4, 78, 2018.
209
+
210
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg. Klimov. Proximal policy optimization algorithms. arXiv:1707.06347v2 [cs.LG]., 2017.
211
+
212
+ Karen Simonyan and Andrew. Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, ICLR, 2015.
213
+
214
+ Jianwen Sun, Tianwei Zhang, Lei Xiaofei, Xie Ma, Yan Zheng, Kangjie Chen, and Yang. Liu. Stealthy and efficient adversarial attacks against deep reinforcement learning. Association for the Advancement of Artificial Intelligence (AAAI), 2020.
215
+
216
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dimutru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2014.
217
+
218
+ Brijen Thananjeyan, Animesh Garg, Sanjay Krishnan, Carolyn Chen, Lauren Miller, and Ken. Goldberg. Multilateral surgical pattern cutting in 2d orthotropic gauze with deep reinforcement learning policies for tensioning. In 2017 IEEE International Conference on Robotics and Automation (ICRA)., pp. 2371–2378, 2017.
219
+
220
+ Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian J. Goodfellow, Dan Boneh, and Patrick D. \` McDaniel. Ensemble adversarial training: Attacks and defenses. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
221
+
222
+ Yuandou Wang, Hang Liu, Wanbo Zheng, Yunni Xia, Yawen Li, Peng Chen, Kunyin Guo, , and Hong Xie. Multi-objective workflow scheduling with deep-q-network-based multi-agent reinforcement learning. IEEE Access, pp. 39974–39982, 2019.
223
+
224
+ Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Van Hasselt, Marc Lanctot, and Nando. De Freitas. Dueling network architectures for deep reinforcement learning. Internation Conference on Machine Learning ICML., pp. 1995–2003, 2016.
225
+
226
+ Peter Wolf, Christian Hubschneider, Michael Weber, Andre Bauer, Jonathan H ´ artl, Fabian D ¨ urr, and ¨ Marius Zollner J. Learning how to drive in a real world simulation with deep q-networks. ¨ IEEE Intelligent Vehicles Symposium (IV), pp. 244–250, 2017.
227
+
228
+ Cihang Xie and Alan L. Yuille. Intriguing properties of adversarial training at scale. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
229
+
230
+ Gregory Yauney and Shah Pratik. Reinforcement learning with action-derived rewards for chemotherapy and clinical trial dosing regimen selection. In Machine Learning for Healthcare Conference, pp. 161–226, 2018.
231
+
232
+ Ning Zhang, Juan Liu, Lingfu Xie, and Peng Tong. A deep reinforcement learning approach to energy-harvesting uav-aided data collection. In 2020 International Conference on Wireless Communications and Signal Processing (WCSP), Nanjing, China, October 21-23, 2020, pp. 93–98. IEEE, 2020.
233
+
234
+ Richard Zhang, Phillip Isola, Alexei Efros, Eli Shechtman, and Oliver. Wang. The unreasonable effectiveness of deep features as a perceptual metric. Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
parse/dev/kTcRljax0x9/kTcRljax0x9_content_list.json ADDED
@@ -0,0 +1,1270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ASSESSING REINFORCEMENT LEARNING POLICIES VIA NATURAL CORRUPTIONS AT THE EDGE OF IMPERCEPTIBILITY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 398,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 261,
32
+ 544,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Deep reinforcement learning algorithms have recently achieved significant success in learning high-performing policies from purely visual observations. The ability to perform end-to-end learning from raw high dimensional input alone has led to deep reinforcement learning algorithms being deployed in a variety of fields. Thus, understanding and improving the ability of deep reinforcement learning policies to generalize to unseen data distributions is of critical importance. Much recent work has focused on assessing the generalization of deep reinforcement learning policies by introducing specifically crafted adversarial perturbations to their inputs. In this paper, we approach this problem from another perspective and propose a framework to assess the generalization skills of trained deep reinforcement learning policies. Rather than focusing on worst-case analysis of distribution shift, our approach is based on black-box perturbations that correspond to minimal semantically meaningful natural changes to the environment or the agent’s visual observation system ranging from brightness to compression artifacts. We demonstrate that the perceptual similarity distance of the minimal natural perturbations is orders of magnitude smaller than the perceptual similarity distance of the adversarial perturbations to the unperturbed observations (i.e. minimal natural perturbations are perceptually more similar to the unperturbed states than the adversarial perturbations), while causing larger degradation in the policy performance. Furthermore, we investigate state-of-the-art adversarial training methods and show that adversarially trained deep reinforcement learning policies are more sensitive to almost all of the natural perturbations compared to vanilla trained policies. Lastly, we highlight that our framework captures a diverse set of bands in the Fourier spectrum; thus providing a better overall understanding of the policy’s generalization capabilities. We believe our work can be crucial towards building resilient and generalizable deep reinforcement learning policies. ",
40
+ "bbox": [
41
+ 232,
42
+ 295,
43
+ 764,
44
+ 655
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 688,
55
+ 334,
56
+ 704
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Following the initial work of Mnih et al. (2015), the use of DNNs as function approximators in reinforcement learning has led to a dramatic increase in the capabilities of RL agents Schulman et al. (2017); Lillicrap et al. (2015). In particular, these developments allow for the direct learning of strong policies from raw, high-dimensional inputs (i.e. visual observations). With the successes of these new methods come new challenges regarding the robustness and generalization capabilities of deep reinforcement learning agents. ",
63
+ "bbox": [
64
+ 174,
65
+ 722,
66
+ 825,
67
+ 805
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Szegedy et al. (2014) showed that specifically crafted imperceptible perturbations can lead to misclassification in image classification. After this initial work a new research area emerged to investigate the abilities of deep neural networks against specifically crafted adversarial examples. While various works studied many different ways to compute these examples (Carlini & Wagner, 2017; Madry et al., 2018; Goodfellow et al., 2015; Kurakin et al., 2016), several works focused on studying ways to increase the robustness against such specifically crafted perturbations, based on training with the existence of such perturbations (Madry et al., 2018; Tramer et al., 2018; Goodfellow et al., \\` 2015; Xie & Yuille, 2020). ",
74
+ "bbox": [
75
+ 174,
76
+ 811,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "As image classification suffered from this vulnerability towards worst-case distributional shift in the input, a series of work conducted in deep reinforcement learning showed that deep neural policies are also susceptible to specifically crafted imperceptible perturbations (Huang et al., 2017; Kos & Song, 2017; Pattanaik et al., 2018; Lin et al., 2017; Sun et al., 2020; Korkmaz, 2021). While one line of work put effort on exploring these vulnerabilities in deep neural policies, another line in parallel focused making them robust and reliable via adversarial training (Pinto et al., 2017; Mandlekar et al., 2017; Huan et al., 2020). ",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 825,
89
+ 200
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "While adversarial perturbations and adversarial training provide a notion of robustness for trained deep neural policies, in this paper we approach the resilience problem of the deep neural policies from a wider perspective, and propose a framework to test a more generic sense of robustness towards minimal perceptually similar perturbations1. To be able to achieve this we go beyond $\\ell _ { p }$ -norm bounded pixel perturbations and include semantically meaningful minimal realistic perturbations. By this approach we seek answers to the following questions: (i) How perceptually similar are minimal semantically meaningful perturbed states to the original unperturbed states, and how does this compare to $\\ell _ { p }$ -norm bounded adversarially perturbed states? (ii) What are the differences between adversarial perturbations and minimal natural perturbations introduced to the policy observation in terms of performance degradation of the trained deep reinforcement learning policy? (iii) How does state-of-the-art adversarial training affect the performance degradation caused by perceptually similar minimal natural perturbations compared to vanilla training? To be able answer these questions, in this work we focus on the notion of robustness of trained deep reinforcement learning agents and make the following contributions: ",
96
+ "bbox": [
97
+ 174,
98
+ 208,
99
+ 825,
100
+ 401
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• We propose a framework consisting of a diverse set of minimalistic (i.e. perceptually similar) semantically meaningful natural perturbations. \n• We run multiple experiments in the Arcade Learning Environment (ALE) in various games with high dimensional state representation and provide the relationship between the perceptual similarities to unperturbed states under our proposed natural perturbation framework and adversarial perturbations. \n• We compare our proposed framework with the state-of-the-art adversarial method based on $\\ell _ { p }$ -norm changes, and we show that our natural perturbation framework is competitive in degrading the performance of the deep reinforcement learning agent with lower perceptual similarity distance. \n• We inspect state-of-the-art adversarial training under our proposed framework, and demonstrate that the adversarially trained models become more vulnerable to various natural perturbations compared to vanilla trained models. \n• Finally, we investigate the frequency domain of our framework and state-of-the-art targeted attacks. We show that our framework captures different bands of the frequency spectrum, thus yielding a better estimate of the model robustness. ",
107
+ "bbox": [
108
+ 217,
109
+ 414,
110
+ 825,
111
+ 661
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 BACKGROUND AND RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 174,
121
+ 683,
122
+ 511,
123
+ 698
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "2.1 PRELIMINARIES ",
130
+ "text_level": 1,
131
+ "bbox": [
132
+ 174,
133
+ 713,
134
+ 326,
135
+ 728
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "In this paper we consider Markov Decision Processes (MDPs) given by a tuple $( S , A , P , r , \\gamma , s _ { 0 } )$ . The reinforcement learning agent interacts with the MDP by observing states $s \\in S$ , and then taking actions $a \\in A$ . Here $s _ { 0 }$ represents the initial state of the agent, and $\\gamma$ represents the discount factor. The probability of transitioning to state $s ^ { \\prime }$ when the agent takes action $a$ in state $s$ is determined by the Markovian transition kernel $P : S \\times A \\times S \\to \\mathbb { R }$ . The reward received by the agent when taking action $a$ in state $s$ is given by the reward function $r : S \\times A \\to \\mathbb { R }$ . The goal of the expected cumulative discounted reward with the environment. This goal is achieve the agent is to learn a policy $\\pi _ { \\theta } : S \\times A \\to \\mathbb { R }$ $\\scriptstyle \\sum _ { t = 0 } ^ { T - 1 } \\gamma ^ { t } r ( s _ { t } , a _ { t } )$ which takes an action that the agent receives viastate-action value function $a$ in state that maximizes $Q ( s , a ) =$ $\\mathbb { E } _ { \\pi } [ \\sum _ { t = 0 } ^ { T - 1 } \\gamma ^ { t } r ( s _ { t } , a _ { t } ) | s = s _ { 0 } , a _ { 0 } = 0 ]$ assigning a value to each state-action pair. We use $\\mathcal { F } ( s )$ to denote the 2D discrete Fourier transform of state $s$ in which each frequency is computed via $\\begin{array} { r } { \\mathcal { F } ( m , n ) = \\sum _ { k = 0 } ^ { M - 1 } \\sum _ { l = 0 } ^ { N - 1 } s ( k , l ) e ^ { - j 2 \\pi ( m k / M + n l / N ) } } \\end{array}$ where $k$ and $l$ are the coordinates of the state, and $M$ and $N$ correspond to ranges of the 2D state representation. ",
142
+ "bbox": [
143
+ 174,
144
+ 739,
145
+ 825,
146
+ 898
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "",
153
+ "bbox": [
154
+ 173,
155
+ 101,
156
+ 821,
157
+ 132
158
+ ],
159
+ "page_idx": 2
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "2.2 CRAFTING ADVERSARIAL PERTURBATIONS ",
164
+ "text_level": 1,
165
+ "bbox": [
166
+ 174,
167
+ 150,
168
+ 516,
169
+ 165
170
+ ],
171
+ "page_idx": 2
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "Szegedy et al. (2014) proposed to minimize the distance between the original image and adversarially produced image to create adversarial perturbations. The authors used box-constrained L-BFGS to solve this optimization problem. Goodfellow et al. (2015) introduced the fast gradient method (FGM) ",
176
+ "bbox": [
177
+ 173,
178
+ 176,
179
+ 825,
180
+ 232
181
+ ],
182
+ "page_idx": 2
183
+ },
184
+ {
185
+ "type": "equation",
186
+ "img_path": "images/c1f9cd2ae1b835b5633d25bbe4b136bd42c0a128653a041f3978caa61327842c.jpg",
187
+ "text": "$$\nx _ { \\mathrm { a d v } } = x + \\epsilon \\cdot \\frac { \\nabla _ { x } J ( x , y ) } { | | \\nabla _ { x } J ( x , y ) | | _ { p } } ,\n$$",
188
+ "text_format": "latex",
189
+ "bbox": [
190
+ 397,
191
+ 232,
192
+ 599,
193
+ 267
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "for crafting adversarial examples in image classification by taking the gradient of the cost function $J ( x , y )$ used to train the neural network in the direction of the input, where $x$ is the input, $y$ is the output label, and $J ( x , y )$ is the cost function for image classification. Carlini & Wagner (2017) introduced targeted attacks in the image classification domain based on distance minimization between the adversarial image and the original image while targeting a particular label. In the deep reinforcement learning domain the Carlini & Wagner (2017) formulation is ",
200
+ "bbox": [
201
+ 173,
202
+ 270,
203
+ 825,
204
+ 354
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "equation",
210
+ "img_path": "images/777492679d894a0a39a89d9d5e8a32c3b5e63191eb9624d9534f943d2b44d2e2.jpg",
211
+ "text": "$$\n\\begin{array} { r l } & { \\underset { s _ { \\mathrm { a d v } } \\in D _ { \\epsilon , p } ( s ) } { \\operatorname* { m i n } } \\Vert s _ { \\mathrm { a d v } } - s \\Vert _ { p } } \\\\ & { \\mathrm { s u b j e c t ~ t o ~ } \\underset { a } { \\operatorname { a r g m a x } } Q ( s , a ) \\neq \\underset { a } { \\operatorname { a r g m a x } } Q ( s _ { \\mathrm { a d v } } , a ) } \\end{array}\n$$",
212
+ "text_format": "latex",
213
+ "bbox": [
214
+ 331,
215
+ 362,
216
+ 665,
217
+ 416
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "where $s$ is the unperturbed input, $S _ { \\mathrm { a d v } }$ is the adversarially perturbed input, $a ^ { * } ( s )$ is the action taken in the unperturbed state, and $a ^ { * } ( s _ { \\mathrm { a d v } } ) = \\arg \\operatorname* { m a x } _ { a } Q ( s _ { \\mathrm { a d v } } , a )$ is the action taken in the adversarial state. This formulation attempts to minimize the distance to the original state, constrained to states leading to sub-optimal actions as determined by the $Q$ -network. In contrast to adversarial attacks, in our proposed threat model we will not need any information on the cost function used to train the network, the $Q$ -network of the trained agent, or access to the visited states themselves. ",
224
+ "bbox": [
225
+ 173,
226
+ 422,
227
+ 825,
228
+ 507
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "2.3 ADVERSARIAL APPROACH IN DEEP REINFORCEMENT LEARNING",
235
+ "text_level": 1,
236
+ "bbox": [
237
+ 176,
238
+ 525,
239
+ 665,
240
+ 540
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "The first adversarial attacks on deep reinforcement learning introduced by Huang et al. (2017) and Kos & Song (2017) adapted FGSM from image classification to the deep reinforcement learning setting. Subsequently, Mandlekar et al. (2017) used FGSM perturbations for adversarial training of deep reinforcement learning agents. Pinto et al. (2017); Gleave et al. (2020) focused on modeling the interaction between the adversary and the agent, while Lin et al. (2017); Sun et al. (2020) focused on strategically timing when (i.e. in which state) to attack an agent using perturbations computed with the Carlini & Wagner (2017) adversarial formulation. Quite recently, Huan et al. (2020) proposed to model this dynamic as a State-Adversarial Markov Decision Process (SA-MDP), and the authors claimed the SA-MDP model provides theoretically justified robust deep reinforcement learning agents. ",
247
+ "bbox": [
248
+ 174,
249
+ 551,
250
+ 825,
251
+ 690
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "2.4 PERCEPTUAL SIMILARITY DISTANCE ",
258
+ "text_level": 1,
259
+ "bbox": [
260
+ 176,
261
+ 709,
262
+ 472,
263
+ 723
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Zhang et al. (2018) found that internal activations of networks trained for high-level tasks correspond to human perceptual judgements across different network architectures Iandola et al. (2016), Krizhevsky et al. (2012), Simonyan & Zisserman (2015) without calibration. Furthermore, the authors propose a method to measure the perceptual distance between two images with the Learned Perceptual Image Patch Similarity (LPIPS) metric. We compare the distance between adversarial states ${ \\boldsymbol { s } } _ { \\mathrm { a d v } }$ and the original states $s$ with the LPIPS metric. We refer to the LPIPS metric as $\\mathcal { P } _ { \\mathrm { s i m i l a r i t y } }$ throughout the paper. $\\mathcal { P } _ { \\mathrm { s i m i l a r i t y } } ( s , s _ { \\mathrm { a d v } } )$ returns the distance between $s$ and ${ \\boldsymbol { s } } _ { \\mathrm { a d v } }$ based on network activations. Zhang et al. (2018) show that $\\mathcal { P } _ { \\mathrm { s i m i l a r i t y } }$ results in a reliable approximation of human perception. ",
270
+ "bbox": [
271
+ 174,
272
+ 734,
273
+ 825,
274
+ 861
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "In more detail, the LPIPS metric in Zhang et al. (2018) is given by measuring the $\\ell _ { 2 }$ distance between a normalized version of the activations of the neural network at several internal convolutional layers. For each convolutional layer $l$ let $W _ { l }$ be the width, $H _ { l }$ the height, and $C _ { l }$ the number of channels. Further, let $y ^ { l } \\in \\mathbb { R } ^ { W _ { l } \\times H _ { l } \\times C _ { l } }$ denote the vector of activations in convolutional layer $l$ . ",
281
+ "bbox": [
282
+ 174,
283
+ 867,
284
+ 825,
285
+ 924
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "To compute the perceptual similarity distance between two states $s$ and $s _ { 0 }$ , first calculate the internal activations $y ^ { \\hat { l } } , y _ { 0 } ^ { l } \\ { \\in } \\ \\mathbb { R } ^ { W _ { l } \\times H _ { l } \\times C _ { l } ^ { \\bullet } }$ (corresponding to $s$ and $s _ { 0 }$ respectively) for $L$ internal layers. Second, unit-normalize the activation vectors in the channel dimension, and denote the resulting normalized activations by $\\hat { y } ^ { l }$ and $\\hat { y } _ { 0 } ^ { l }$ . Next scale each channel in $\\hat { y } ^ { l }$ and $\\hat { y } _ { 0 } ^ { l }$ by the same, fixed weight vector $w _ { l } \\in \\mathbb { R } ^ { C _ { l } }$ . Here $w _ { l }$ can either be a learned vector of weights for layer $l$ or the vector of all ones if no scaling is desired. The last step is then to compute the perceptual similarity distance by first averaging the $\\ell _ { 2 }$ distance between the scaled activations over the spatial dimensions, and then summing over the $L$ layers. Formally, ",
292
+ "bbox": [
293
+ 173,
294
+ 103,
295
+ 825,
296
+ 215
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "equation",
302
+ "img_path": "images/1301541b70b019bcb8f2cf48ef469f5f633d20d449b7e5fef3a970c5e8ade218.jpg",
303
+ "text": "$$\n{ \\mathcal { P } } _ { \\mathrm { s i m i l a r i t y } } \\big ( s , s _ { 0 } \\big ) = \\sum _ { l } { \\frac { 1 } { H _ { l } W _ { l } } \\sum _ { h , w } \\left\\| w _ { l } \\odot \\big ( \\hat { y } _ { h w } ^ { l } - \\hat { y } _ { 0 h w } ^ { l } \\big ) \\right\\| _ { 2 } ^ { 2 } }\n$$",
304
+ "text_format": "latex",
305
+ "bbox": [
306
+ 310,
307
+ 222,
308
+ 687,
309
+ 261
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "2.5 IMPACT ",
316
+ "text_level": 1,
317
+ "bbox": [
318
+ 174,
319
+ 276,
320
+ 269,
321
+ 291
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "To be able to compare between different algorithms and different games the performance degradation of the deep reinforcement learning policy is defined as the normalized impact of an adversary on the agent: ",
328
+ "bbox": [
329
+ 176,
330
+ 303,
331
+ 823,
332
+ 343
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/29212ed6aea0331a94109cf2952c090daf4d9dfe03b92b5fc9baa4db3f56e236.jpg",
339
+ "text": "$$\n\\mathcal { T } = \\frac { \\mathrm { S c o r e } _ { \\mathrm { c l e a n } } - \\mathrm { S c o r e } _ { \\mathrm { a d v } } } { \\mathrm { S c o r e } _ { \\mathrm { c l e a n } } - \\mathrm { S c o r e } _ { \\mathrm { m i n } } ^ { \\mathrm { f u x e d } } } .\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 403,
343
+ 343,
344
+ 593,
345
+ 378
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "Scorefixedmin is a fixed minimum score for a game, ${ \\mathrm { S c o r e } } _ { \\mathrm { a d v } }$ and $\\mathbf { S c o r e } _ { \\mathrm { c l e a n } }$ are the scores of the agent with and without any modification to the agent’s observations system respectively. ",
352
+ "bbox": [
353
+ 174,
354
+ 383,
355
+ 825,
356
+ 412
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "3 A GENERALIZATION TESTING FRAMEWORK WITH NATURAL PERTURBATIONS ",
363
+ "text_level": 1,
364
+ "bbox": [
365
+ 174,
366
+ 433,
367
+ 709,
368
+ 467
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "In our paper we focus on robustness and generalization issues that deep reinforcement learning policies encounter with a contrasting view compared to prior work focusing on worst-case distributional shift within an imperceptibility bound (see Section 2.3). We propose a baseline to evaluate deep reinforcement learning policies with realistic and minimal corruptions to the environment with which they interact. We essentially juxtapose adversarial perturbations and natural corruptions with respect to their perceptual similarity distance (see Section 2.4) to the original states and their degree of impact on the policy performance. More importantly, we question the imperceptibility of $\\ell _ { p }$ -norm bounded adversarial perturbations in terms of perceptual similarity distance, and compare this imperceptibility notion to natural perturbations. While we categorize adversarial perturbations also as a component in the framework majorly concentrated on the high frequencies, we embed several realistic perturbations that aim to cover diverse bands in the frequency spectrum. We highlight that prior work focused on the presence of a strong adversary model that requires prior access to training details of the agent’s neural network Huang et al. (2017); Korkmaz (2021), real time access to the agent’s perception system Pattanaik et al. (2018); Kos & Song (2017), and highly computationally demanding adversarial formulations for computing simultaneous perturbations Lin et al. (2017); Sun et al. (2020). From the security point of view we emphasize that natural corruptions at the edge of imperceptibility can be more dangerous than a strong adversary assumption 2 without carrying any of these requirements. ",
375
+ "bbox": [
376
+ 174,
377
+ 483,
378
+ 825,
379
+ 732
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "In our model we examine several natural environmental changes such as: changes in the brightness of the environment, blurring of the observation, slight rotation of the observation, several geometric transformations and compression artifacts. These changes from our model can be easily linked to naturally occurring changes in the environment3. In Table 1 we compare our proposed framework with the state-of-the-art targeted adversarial attack proposed by Carlini & Wagner (2017) in terms of perceptual similarity distances, and the impacts on the policy performance. While in the remainder of this section we explain in detail each component of our proposed framework, we provide all the experimental details in Section 5, as well as results on policy gradients, performance degradation in the time domain, and complementary results for Section 5 in the appendix. ",
386
+ "bbox": [
387
+ 174,
388
+ 739,
389
+ 825,
390
+ 809
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "image",
396
+ "img_path": "images/645e2c179f1e81f16c3049bee457fd7714c16bc7569b48ad9acd77a7ef956d7f.jpg",
397
+ "image_caption": [
398
+ "Figure 1: Original frame and environmental modifications. Columns: original frame, shifting, rotation, perspective transformation, blurring, compression artifacts. brightness and contrast. Rows: JamesBond, Pong and BankHeist. "
399
+ ],
400
+ "image_footnote": [],
401
+ "bbox": [
402
+ 173,
403
+ 99,
404
+ 823,
405
+ 376
406
+ ],
407
+ "page_idx": 4
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "",
412
+ "bbox": [
413
+ 174,
414
+ 455,
415
+ 825,
416
+ 512
417
+ ],
418
+ "page_idx": 4
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Note that the natural corruptions considered in our framework are as minimalistic as possible. Most of the perturbations from the proposed framework cannot be recognized by human perception (see Figure 1). More formally, the perceptual similarity distances for each corruption, and the resulting policy performance degradation, are given in Table 1. ",
423
+ "bbox": [
424
+ 173,
425
+ 518,
426
+ 825,
427
+ 575
428
+ ],
429
+ "page_idx": 4
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "Brightness and Contrast: To inspect the effects of low frequency corruptions we included brightness and contrast level changes using linear brightness and contrast transformation, ",
434
+ "bbox": [
435
+ 173,
436
+ 582,
437
+ 820,
438
+ 611
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "equation",
444
+ "img_path": "images/c6a0d5cf4689af9e2925e9efc2214a28e3250693eb0e64d736713df1f74e1060.jpg",
445
+ "text": "$$\ns _ { \\mathrm { a d v } } ( i , j ) = s ( i , j ) \\cdot \\alpha + \\beta ,\n$$",
446
+ "text_format": "latex",
447
+ "bbox": [
448
+ 408,
449
+ 614,
450
+ 588,
451
+ 632
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "where $s ( i , j )$ is the $i j ^ { \\mathrm { t h } }$ pixel of state $s$ , and $\\alpha$ and $\\beta$ are the linear brightness parameters. In Table 1 we show the impacts and perceptual similarity distances with corresponding $\\alpha , \\beta$ values. In all of the games except BankHeist brightness and contrast change results in higher impact than the Carlini & Wagner (2017) formulation, while the perceptual similarity distance of brightness and contrast is lower in every game. ",
458
+ "bbox": [
459
+ 174,
460
+ 637,
461
+ 825,
462
+ 708
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "Blurring: To observe the effects of high frequency corruptions we included blurring in our framework. In particular, median bluring4 is a nonlinear noise removal technique that replaces the original pixel value with the median pixel value of its neighbouring pixels. A kernel size $k$ means that the median is computed over a $k \\times k$ neighborhood of the original pixel. Only in BankHeist and TimePilot we observe that the perceptual similarity distance required for blurring is higher compared to adversarial perturbations to be able to cause higher impact on policy performance (see Table 1). For the rest of the games impact is higher and perceptual similarity distance is lower for blurring. ",
469
+ "bbox": [
470
+ 173,
471
+ 714,
472
+ 825,
473
+ 813
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "Rotation: Rotation is one of the most fundamental geometric changes in an environment which we incorporate in our framework. In Table 1 we show impact values and perceptual similarity distance with corresponding rotation angle in degrees. In all of the games except Pong rotation results in higher impact and orders of magnitude lower perceptual similarity distance than the Carlini & Wagner (2017) formulation. In Pong the impact is comparable and the perceptual similarity distance is lower by a factor of 6. ",
480
+ "bbox": [
481
+ 174,
482
+ 819,
483
+ 825,
484
+ 876
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "table",
490
+ "img_path": "images/49853b8a229e26369affe294535fbfc1a64597193084344fec320d682012a4ca.jpg",
491
+ "table_caption": [
492
+ "Table 1: Impacts on the policy performance, perceptual similarity distances $\\mathcal { P } _ { \\mathrm { s i m i l a r i t y } }$ to the unperturbed states, and raw scores for Carlini & Wagner (2017) formulation and natural perturbation framework components. We report all of the results with the standard error of the mean. "
493
+ ],
494
+ "table_footnote": [],
495
+ "table_body": "<table><tr><td>Games</td><td>BankHeist</td><td>JamesBond</td><td>Pong</td><td>Riverraid</td><td>TimePilot</td></tr><tr><td>Carlini&amp;Wagner Impact</td><td>0.982±0.009</td><td>0.451±0.231</td><td>0.995±0.014</td><td>0.928±0.030</td><td>0.567 ±0.159</td></tr><tr><td>Brightness&amp;Contrast Impact</td><td>0.966± 0.030</td><td>0.913 ±0.047</td><td>1.0±0.009</td><td>0.951 ±0.016</td><td>0.663±0.239</td></tr><tr><td>Blurring Impact</td><td>0.979±0.009</td><td>0.635±0.200</td><td>1.0±0.000</td><td>0.946±0.015</td><td>0.589±0.150</td></tr><tr><td>Rotation Impact</td><td>0.997±0.004</td><td>0.635±0.189</td><td>0.99±0.015</td><td>0.942��0.042</td><td>0.581±0.158</td></tr><tr><td>Shifting Impact</td><td>0.985 ±0.005</td><td>0.865±0.140</td><td>1.0±0.00</td><td>0.935 ±0.023</td><td>0.623±0.199</td></tr><tr><td>Compression Artifacts Impact</td><td>0.980 ±0.013</td><td>0.884 ±0.128</td><td>0.962±0.032</td><td>0.803 ±0.051</td><td>0.578 ±0.271</td></tr><tr><td>Perspective Transform Impact</td><td>0.998±0.003</td><td>0.865±0.087</td><td>0.996±0.009</td><td>0.968±0.006</td><td>0.624±0.198</td></tr><tr><td>Carlini&amp;Wagner Psimilarity</td><td>0.0657±0.0073</td><td>0.2622±0.0312</td><td>0.6134±0.0271</td><td>0.2714±0.0285</td><td>0.1336± 0.0231</td></tr><tr><td>Brightness&amp;Contrast Psimilarity</td><td>0.0307±0.0039</td><td>0.011± 0.0003</td><td>0.2190± 0.0046</td><td>0.2147±0.0212</td><td>0.1045± 0.0031</td></tr><tr><td>Blurring Psimilarity</td><td>0.1672±0.0192</td><td>0.0707±0.0074</td><td>0.0351±0.0072</td><td>0.1442±0.0107</td><td>0.2014±0.0645</td></tr><tr><td>Rotation Psimilarity</td><td>0.0520±0.0070</td><td>0.0275±0.0016</td><td>0.1020±0.0115</td><td>0.0422± 0.0033</td><td>0.1020±0.0115</td></tr><tr><td>Shifting Psimilarity</td><td>0.0492±0.0046</td><td>0.0650±0.0092</td><td>0.2455±0.0432</td><td>0.0945±0.0032</td><td>0.1167±0.0121</td></tr><tr><td>Compression Artifacts Psimilarity</td><td>0.0240±0.0037</td><td>0.1325±0.0301</td><td>0.2506±0.0559</td><td>0.2250±0.0202</td><td>0.1592±0.0369</td></tr><tr><td>Perspective Transform Psimilarity</td><td>0.0398±0.0067</td><td>0.012±0.0007</td><td>0.0140±0.0018</td><td>0.0422±0.0016</td><td>0.0440±0.0050</td></tr><tr><td>Carlini&amp;WagnerRaw Scores</td><td>15.0±2.549</td><td>285.0±25.495</td><td>-20.8±0.189</td><td>1168.0± 140.696</td><td>4090.0±347.979</td></tr><tr><td>Brightness&amp;Contrast Raw Scores</td><td>17.0±1.651</td><td>45.0±6.846</td><td>-21.0±0.000</td><td>744.0±76.957</td><td>3180.0±711.027</td></tr><tr><td>Blurring Raw Scores</td><td>18.0±3.405</td><td>190.0±33.015</td><td>-21.0±0.000</td><td>820.0±72.013</td><td>3880.0±329.484</td></tr><tr><td>Rotation Raw Scores</td><td>2.0±1.264</td><td>190.0± 27.203</td><td>-20.6±0.209</td><td>873.0±201.866</td><td>3150.0±482.959</td></tr><tr><td>Shifting Raw Scores</td><td>13.0±1.449</td><td>70.0±20.248</td><td>-21.0±0.000</td><td>988.0± 89.057</td><td>3560.0± 437.538</td></tr><tr><td>Compression ArtifactsRaw Scores Perspective Transform Raw Scores</td><td>17.0±3.478</td><td>60.0±18.439</td><td>-19.4±0.428</td><td>2589.0±389.679</td><td>3980.0±593.936</td></tr><tr><td></td><td>1.0±0.948</td><td>75.0±12.649</td><td>-20.9±0.126</td><td>486.0±29.127</td><td>3550.0±435.028</td></tr><tr><td>Brightness&amp;Contrast [α,β]</td><td>[1.2,40]</td><td>[0.9,20]</td><td>[1.7,40]</td><td>[2.4,-275]</td><td>[2.4,-260]</td></tr><tr><td>Blurring Kernel Size</td><td>5</td><td>3</td><td>3</td><td>5</td><td>5</td></tr><tr><td>Rotation Degree</td><td>1.4</td><td>1.6</td><td>3</td><td>1.8</td><td>5</td></tr><tr><td>Shifting[ti,tj]</td><td>[1,1]</td><td>[0,1]</td><td>[2,1]</td><td>[1,2]</td><td>[2.2]</td></tr><tr><td>Perspective Transform Norm</td><td>1</td><td>1</td><td>3</td><td>2</td><td>3</td></tr></table>",
496
+ "bbox": [
497
+ 174,
498
+ 162,
499
+ 859,
500
+ 469
501
+ ],
502
+ "page_idx": 5
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "",
507
+ "bbox": [
508
+ 176,
509
+ 500,
510
+ 825,
511
+ 526
512
+ ],
513
+ "page_idx": 5
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Shifting: We included several plausible geometric transformations in our natural perturbation framework, the first of which is shifting. In more detail, shifting an image moves the elements of the image matrix along any dimension by any number of elements. For this modification we shift the inputs in the $x$ or $y$ direction with as few pixels shifted as possible. We use $[ t _ { i } , t _ { j } ]$ to denote the distance shifted, where $t _ { i }$ is in the direction of $x$ and $t _ { j }$ is in the direction of $y$ . In Table 1 we show the impact values and perceptual similarity distances for both Carlini & Wagner (2017) and shifting with corresponding $[ t _ { i } , t _ { j } ]$ values. For all of the games shifting yields higher impact and lower perceptual similarity distance. ",
518
+ "bbox": [
519
+ 173,
520
+ 534,
521
+ 825,
522
+ 645
523
+ ],
524
+ "page_idx": 5
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Compression Artifacts: With this natural perturbation component we look at JPEG compression artifacts caused by the discrete cosine transform (DCT) resulting in the loss of high frequency components (ringing and blocking). In Table 1 we show the impact values and perceptual similarities of Carlini & Wagner (2017) and compression artifacts (CA). Only in Pong and Riverraid do we observe a lower impact than Carlini & Wagner (2017) while the perceptual similarity distance is significantly smaller for compression artifacts. While in TimePilot the perceptual similarity distance is higher, in the rest of the games compression artifacts result in higher impact and lower perceptual similarity distance compared to Carlini & Wagner (2017). ",
529
+ "bbox": [
530
+ 173,
531
+ 652,
532
+ 825,
533
+ 763
534
+ ],
535
+ "page_idx": 5
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "Perspective Transformation: The final component of our proposed natural perturbation framework is perspective transformation. Given four points in the plane defining a convex quadrangle, there is a unique perspective transformation mapping the corners of the square to these four points5. We define the norm of a perspective transformation as the maximum distance that one of the corners of the square moves under this mapping. Note that for most of the games the perspective norm is small (see Table 1). Hence, the changes caused by the perspective transform are imperceptible (e.g. fourth column of Figure 1). Furthermore, for all the games we observe perspective transformation yields higher impact and lower perceptual similarity distance than the Carlini & Wagner (2017) formulation. ",
540
+ "bbox": [
541
+ 173,
542
+ 770,
543
+ 825,
544
+ 895
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "image",
550
+ "img_path": "images/c30a5ebe5a8f6ed96e6cf33e91031eb6818a31a770b28cb51b7d34c5823dd9c3.jpg",
551
+ "image_caption": [
552
+ "Figure 2: Performance drop of adversarially trained deep reinforcement learning policy and vanilla trained deep reinforcement learning policy under the changes in rotation, compression artifacts, and contrast. "
553
+ ],
554
+ "image_footnote": [],
555
+ "bbox": [
556
+ 176,
557
+ 99,
558
+ 812,
559
+ 212
560
+ ],
561
+ "page_idx": 6
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "4 ADVERSARIAL TRAINING UNDER NATURAL CORRUPTIONS ",
566
+ "text_level": 1,
567
+ "bbox": [
568
+ 176,
569
+ 292,
570
+ 694,
571
+ 308
572
+ ],
573
+ "page_idx": 6
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "In this section we investigate state-of-the-art adversarially trained deep reinforcement learning policies within our proposed natural perturbation framework. In particular, we test State Adversarial Double Deep Q-Network, a state-of-the-art algorithm (see Section 2.3). In this paper the authors propose using what they call a state-adversarial MDP to model adversarial attacks in deep reinforcement learning. Based on this model they develop methods to regularize Double Deep Q-Network policies to be more robust to adversarial attacks. In more detail, letting $B ( s )$ be the $\\ell _ { p }$ -norm ball of radius $\\epsilon$ , this regularization is achieved by adding, ",
578
+ "bbox": [
579
+ 173,
580
+ 323,
581
+ 825,
582
+ 421
583
+ ],
584
+ "page_idx": 6
585
+ },
586
+ {
587
+ "type": "equation",
588
+ "img_path": "images/144f91a40843330cb86de1382a4131b58b7737153ef741977c7d70d54084a146.jpg",
589
+ "text": "$$\n\\mathcal { R } ( \\theta ) = \\operatorname* { m a x } \\{ \\operatorname* { m a x } _ { \\hat { s } \\in B ( s ) } \\operatorname* { m a x } _ { a \\neq a ^ { * } ( s ) } Q _ { \\theta } ( \\hat { s } , a ) - Q _ { \\theta } ( \\hat { s } , a ^ { * } ( s ) ) , - c \\} .\n$$",
590
+ "text_format": "latex",
591
+ "bbox": [
592
+ 302,
593
+ 426,
594
+ 696,
595
+ 452
596
+ ],
597
+ "page_idx": 6
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "to the temporal difference loss used in standard DQN. In particular, for a sample of the form $( s , a , r , s ^ { \\prime } )$ the loss is ",
602
+ "bbox": [
603
+ 173,
604
+ 458,
605
+ 823,
606
+ 487
607
+ ],
608
+ "page_idx": 6
609
+ },
610
+ {
611
+ "type": "equation",
612
+ "img_path": "images/28d33da085eb96ef1ebccf770bc0377ef4d2646e1fb187a5e3d11ec6c290efd5.jpg",
613
+ "text": "$$\n\\mathcal { L } ( \\theta ) = L _ { H } \\left( r + \\gamma \\operatorname* { m a x } _ { a ^ { \\prime } } Q ^ { \\mathrm { t a r g e t } } ( s ^ { \\prime } , a ^ { \\prime } ) - Q _ { \\theta } ( s , a ) \\right) + \\mathcal { R } ( \\theta )\n$$",
614
+ "text_format": "latex",
615
+ "bbox": [
616
+ 302,
617
+ 493,
618
+ 696,
619
+ 520
620
+ ],
621
+ "page_idx": 6
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "where $L _ { H }$ is the Huber loss. ",
626
+ "bbox": [
627
+ 174,
628
+ 526,
629
+ 359,
630
+ 541
631
+ ],
632
+ "page_idx": 6
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Table 2 shows the impact values of the components of our proposed framework for the vanilla trained agent and the adversarially trained agent. We find that while the adversarially trained model gains robustness against blurring, no additional robustness is gained against any other component of the framework under adversarial training. Furthermore, in Figure 2 and Figure 3 we show the effect of varying the degrees for rotation, $\\alpha$ for contrast, $\\beta$ for brightness, and jpeg quality $\\kappa$ for compression artifacts. We find that, as these parameters are varied, the vanilla trained agent is more robust than the adversarially trained one. For example, modifying brightness with $\\beta$ in the range 3.1 to 20.0 causes impact close to 1.0 (i.e. total failure) for the adversarially trained policy, but has negligible impact on the vanilla trained policy. Thus, not only does our proposed framework capture semantically meaningful perturbations that are not captured by adversarial robustness, but additionally adversarial training actively harms robustness to some of the natural perturbations from our proposed framework. ",
637
+ "bbox": [
638
+ 174,
639
+ 547,
640
+ 599,
641
+ 714
642
+ ],
643
+ "page_idx": 6
644
+ },
645
+ {
646
+ "type": "image",
647
+ "img_path": "images/a6e117b8a55972f97737fb94c1a6f776016e91d7dfcbec374f9aeca50629b9b6.jpg",
648
+ "image_caption": [
649
+ "Figure 3: Performance drop of adversarially trained model and vanilla trained model to the changes in brightness. "
650
+ ],
651
+ "image_footnote": [],
652
+ "bbox": [
653
+ 614,
654
+ 540,
655
+ 812,
656
+ 648
657
+ ],
658
+ "page_idx": 6
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "",
663
+ "bbox": [
664
+ 173,
665
+ 715,
666
+ 823,
667
+ 770
668
+ ],
669
+ "page_idx": 6
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "The results in Figure 2 and Figure 3 demonstrate that, across a wide range of parameters, adversarially trained neural policies are less robust to natural perturbations than vanilla trained policies. This occurs despite the fact that the central purpose of adversarial training is to increase robustness to imperceptible perturbations, where imperceptibility is measured by $\\ell _ { p }$ -norm. Our results indicate that an increase in robustness to $\\ell _ { p }$ -norm bounded perturbations can come at the cost of a loss in robustness to other natural types of imperceptible corruptions. These results call into question the use of adversarial training for the creation of robust deep reinforcement learning policies, and in particular the use of $\\ell _ { p }$ -norm bounds as a metric of imperceptibility. ",
674
+ "bbox": [
675
+ 173,
676
+ 776,
677
+ 825,
678
+ 888
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "The fact that deep reinforcement learning policies are being widely deployed in many different domains: self-driving automobiles Dosovitsky et al. (2017); Wolf et al. (2017), drug design Pereira et al. (2021); Popova et al. (2018), autonomous aerial vehicles Zhang et al. (2020), medical diagnosis and treatment Thananjeyan et al. (2017); Yauney & Pratik (2018), natural language processing He et al. (2016); Jaques et al. (2017), and industrial control and security Wang et al. (2019); Duan et al. (2020), brings the term “robustness” into question. The decrease in resilience to overall distributional shift that “certified robust” adversarial training methods encounter demonstrates the need for further investigation into how robustness should be defined. ",
685
+ "bbox": [
686
+ 173,
687
+ 895,
688
+ 823,
689
+ 924
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "table",
695
+ "img_path": "images/d83af0f85f4f2d0b2f2f165ed5a7d6c974fff56f5b9ae76234b419bee057c355.jpg",
696
+ "table_caption": [
697
+ "Table 2: Impacts of adversarially and vanilla trained policies with natural perturbation framework: brightness &contrast, blurring, rotation, shifting, compression artifacts and perspective transform. "
698
+ ],
699
+ "table_footnote": [],
700
+ "table_body": "<table><tr><td>Environment Training Method</td><td>BankHeist Adversarially Trained</td><td>BankHeist Vanilla Trained</td><td>Pong Vanilla Trained</td><td>Pong Adversarially Trained</td></tr><tr><td>Brightness&amp;Contrast (D)</td><td>0.881±0.010</td><td>0.971±0.030</td><td>0.996±0.009</td><td>1.0±0.000</td></tr><tr><td>Compression Artifacts (I)</td><td>0.960±0.0014</td><td>0.984±0.013</td><td>0.962±0.032</td><td>1.0±0.000</td></tr><tr><td>Perspective Transform (Z)</td><td>1.0±0.000</td><td>1.0±0.003</td><td>0.996±0.009</td><td>0.992±0.0034</td></tr><tr><td>Blurring ()</td><td>0.003±0.002</td><td>0.983±0.009</td><td>1.0±0.000</td><td>0.805±0.123</td></tr><tr><td>Rotation (T)</td><td>1.0±0.000</td><td>1.0±0.004</td><td>0.99±0.015</td><td>1.0±0.000</td></tr><tr><td>Shifting (Z)</td><td>1.0±0.000</td><td>0.989±0.005</td><td>1.0±0.000</td><td>1.0±0.000</td></tr></table>",
701
+ "bbox": [
702
+ 192,
703
+ 148,
704
+ 803,
705
+ 252
706
+ ],
707
+ "page_idx": 7
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "",
712
+ "bbox": [
713
+ 173,
714
+ 276,
715
+ 825,
716
+ 361
717
+ ],
718
+ "page_idx": 7
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "5 PERTURBATIONS IN THE FOURIER DOMAIN ",
723
+ "text_level": 1,
724
+ "bbox": [
725
+ 174,
726
+ 381,
727
+ 565,
728
+ 397
729
+ ],
730
+ "page_idx": 7
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "In this section we provide frequency analysis of our proposed framework and state-of-the-art adversarial formulations. The purpose of this analysis is to provide quantitative evidence that natural perturbations cover a broader concept of robustness than adversarial perturbations alone. In particular, we demonstrate that each natural perturbation has distinctly different effects in the Fourier spectrum, both from other natural corruptions and from adversarial perturbations. Furthermore, we quantify these effects by measuring, for each type of perturbation, the change in total Fourier energy at each spatial frequency level. Aside from outlining our methodology, Section 5 serves the purpose of explaining results obtained in Section 4. In particular, training techniques (e.g. adversarial training) solely focusing on building robustness towards high spatial frequency corruptions become more vulnerable towards corruptions in different band of the spectrum. ",
735
+ "bbox": [
736
+ 174,
737
+ 411,
738
+ 825,
739
+ 551
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "image",
745
+ "img_path": "images/cae3eb783dca1b500f5ec6970823a62f059205060d247c5bbd7e2eb75525bb52.jpg",
746
+ "image_caption": [
747
+ "Figure 4: Rows: $\\mathcal { F } ( s )$ for BankHeist, $\\mathcal { F } ( s )$ for Riverraid. Columns: unperturbed state, Carlini & Wagner, brightness and contrast, blurring, rotation, shifting, perspective transformation, compression artifacts. "
748
+ ],
749
+ "image_footnote": [],
750
+ "bbox": [
751
+ 174,
752
+ 564,
753
+ 836,
754
+ 694
755
+ ],
756
+ "page_idx": 7
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "In Figure 4 we show the Fourier spectrum of the original state $s$ and the perturbed states ${ \\boldsymbol { s } } _ { \\mathrm { a d v } }$ from our proposed framework based on natural perturbations and Carlini & Wagner (2017) formulated perturbations. In these spectrums the magnitude of the spatial frequencies increases by moving outward from the center, and the center of the image represents the Fourier basis function where spatial frequencies are zero. We provide more detailed description of $\\mathcal { F } ( s )$ in Section 2.1. To investigate which type of perturbations occupy which band in the Fourier domain we compute total energy $\\mathcal { E } ( f )$ for all basis functions whose maximum spatial frequency is $f$ . Hence, Figure 5 shows the power spectral density of the original state compared to perturbed states computed via components from our proposed natural perturbation framework and Carlini $\\&$ Wagner (2017). Figure 5 demonstrates that each component from our natural perturbation framework occupies different bands in the Fourier domain. In particular, in Figure 5 we observe that while the Carlini & Wagner (2017) formulation increases the magnitude of the higher frequencies, compression artifacts decrease the magnitude of the high frequency band. On the other hand, brightness and contrast decreases the magnitude of the low frequency band, and shifting increases the mid-band. Blurring decreases the mid-band and high frequencies together, and perspective transformation decreases the low frequencies and high frequencies while increasing the mid-band. ",
761
+ "bbox": [
762
+ 173,
763
+ 757,
764
+ 825,
765
+ 924
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "",
772
+ "bbox": [
773
+ 174,
774
+ 103,
775
+ 825,
776
+ 159
777
+ ],
778
+ "page_idx": 8
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Figure 5 shows that our proposed framework indeed captures a broader set of directions in the frequency domain. Thus, capturing the susceptibilities towards perturbations in different bands of the frequency domain represents a wider notion of robustness compared to only focusing on worstcase distributional shifts. ",
783
+ "bbox": [
784
+ 173,
785
+ 166,
786
+ 825,
787
+ 222
788
+ ],
789
+ "page_idx": 8
790
+ },
791
+ {
792
+ "type": "image",
793
+ "img_path": "images/0250fd9ab1722285efb853d4454959ce839bb298e8808c9a20b2dd37f13bc988.jpg",
794
+ "image_caption": [
795
+ "Figure 5: Riverraid total energy $\\mathcal { E } ( f )$ spectrum with various perturbations: Carlini & Wagner, compression artifacts, brightness and contrast, perspective transformation, shifting, rotation. "
796
+ ],
797
+ "image_footnote": [],
798
+ "bbox": [
799
+ 178,
800
+ 244,
801
+ 792,
802
+ 469
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Experimental Details: In our experiments the vanilla trained deep neural policies are trained with Double Deep Q- Network Wang et al. (2016) and the adversarially trained deep neural policy is trained via the theoretically justified State-Adversarial MDP modelled State-Adversarial Double Deep Q-Network (SA-DDQN) (see Section 2.3) in the OpenAI Gym Brockman et al. (2016) Arcade Learning Environment Bellemare et al. (2013). We evaluate several trained policies from Arcade Learning Environment with our proposed framework averaged over 10 episodes. In all of our tables and figures we include the means and the standard error of the mean values. See more details in the appendix. ",
809
+ "bbox": [
810
+ 174,
811
+ 523,
812
+ 825,
813
+ 636
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "6 CONCLUSION ",
820
+ "text_level": 1,
821
+ "bbox": [
822
+ 174,
823
+ 656,
824
+ 318,
825
+ 672
826
+ ],
827
+ "page_idx": 8
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "In this paper we studied a realistic threat model based on basic environmental changes and proposed a framework to asses the generalization capabilities of deep reinforcement learning policies. We compared our natural perturbation framework with the state-of-the-art adversarial attacks in the Arcade Learning Environment (ALE). We questioned the imperceptibility notion of the $\\ell _ { p }$ -norm bounded adversarial perturbations, and demonstrated that the states with minimal natural perturbations are more perceptually similar to the unperturbed states compared to adversarial ones. Moreover, we demonstrated that our framework achieves higher impact on policy performance with lower perceptual similarity distance without having access to the policy training details, real time access to the agent’s memory and perception system, and computationally demanding adversarial formulations to compute simultaneous perturbations. Furthermore, we showed that each component of our framework contains distinct bands in the frequency domain, resulting in a better estimate of the generalization capabilities of trained agents. Most importantly, we investigated state-of-the-art adversarial training methods and found that vanilla trained policies are more robust than adversarially trained policies to minimal natural perturbations. We think that the robustness of the trained deep neural policies should be investigated in a more diverse spectrum and we believe our framework can be instrumental towards generalization and robustification of deep reinforcement learning algorithms. ",
832
+ "bbox": [
833
+ 174,
834
+ 688,
835
+ 825,
836
+ 924
837
+ ],
838
+ "page_idx": 8
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "REFERENCES ",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 174,
846
+ 103,
847
+ 287,
848
+ 117
849
+ ],
850
+ "page_idx": 9
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research., pp. 253–279, 2013. ",
855
+ "bbox": [
856
+ 173,
857
+ 125,
858
+ 823,
859
+ 167
860
+ ],
861
+ "page_idx": 9
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv:1606.01540, 2016. ",
866
+ "bbox": [
867
+ 171,
868
+ 176,
869
+ 823,
870
+ 205
871
+ ],
872
+ "page_idx": 9
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57, 2017. ",
877
+ "bbox": [
878
+ 171,
879
+ 212,
880
+ 823,
881
+ 242
882
+ ],
883
+ "page_idx": 9
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Alexey Dosovitsky, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. Carla: An open urban driving simulator. In Proceedings of the Conference on Robot Learning (CoRL), 78: 1–16, 2017. ",
888
+ "bbox": [
889
+ 173,
890
+ 250,
891
+ 823,
892
+ 292
893
+ ],
894
+ "page_idx": 9
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Jiajun Duan, Di Shi, Ruisheng Diao, Haifeng Li, Zhiwei Wang, Bei Zhang, Desong Bian, and Zhehan Yi. Deep-reinforcement-learning-based autonomous voltage control for power grid operations. IEEE Transactions on Power Systems, 35(1):814–817, 2020. ",
899
+ "bbox": [
900
+ 173,
901
+ 300,
902
+ 823,
903
+ 343
904
+ ],
905
+ "page_idx": 9
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Adam Gleave, Michael Dennis, Cody Wild, Kant Neel, Sergey Levine, and Stuart Russell. Adversarial policies: Attacking deep reinforcement learning. International Conference on Learning Representations ICLR, 2020. ",
910
+ "bbox": [
911
+ 173,
912
+ 351,
913
+ 823,
914
+ 393
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Ian Goodfellow, Jonathan Shelens, and Christian Szegedy. Explaning and harnessing adversarial examples. International Conference on Learning Representations, 2015. ",
921
+ "bbox": [
922
+ 168,
923
+ 401,
924
+ 823,
925
+ 431
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Ji He, Jianshu Chen, Xiaodong He, Jianfeng Gao, Lihong Li, Li Deng, and Mari. Ostendorf. Deep reinforcement learning with a natural language action space. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pp. 1621–1630, 2016. ",
932
+ "bbox": [
933
+ 174,
934
+ 438,
935
+ 823,
936
+ 482
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Zhang Huan, Hongge Chen, Chaowe Xiao, Bo Li, Mingyan Liu, Duane S. Boning, and ChoJui Hseh. Robust deep renforcement learning against adversaral perturbations on state observations. In Hugo Larochelle, Marc’Aurelo Ranzato, Raia Hadsell, Maria-Florna Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. ",
943
+ "bbox": [
944
+ 173,
945
+ 488,
946
+ 825,
947
+ 560
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Sandy Huang, Nicholas Papernot, Yan Goodfellow, Ian an Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. Workshop Track of the 5th International Conference on Learning Representations, 2017. ",
954
+ "bbox": [
955
+ 173,
956
+ 568,
957
+ 823,
958
+ 611
959
+ ],
960
+ "page_idx": 9
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Forrest N. Iandola, Song Han, Matthew W. Moskewicz, Khalid Ashraf, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and¡ $0 . 5 \\mathrm { m b }$ model size. arXiv preprint arXiv:1602.07360, 2016. ",
965
+ "bbox": [
966
+ 173,
967
+ 617,
968
+ 823,
969
+ 661
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Natasha Jaques, Shixiang Gu, Dzmitry Bahdanau, Jose Miguel Hern ´ andez-Lobato, Richard ´ E. Turner, and Douglas Eck. Sequence tutor: Conservative fine-tuning of sequence generation models with kl-control. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1645–1654, 2017. ",
976
+ "bbox": [
977
+ 173,
978
+ 669,
979
+ 825,
980
+ 726
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Ezgi Korkmaz. Investigating vulnerabilities of deep neural policies. Conference on Uncertainty in Artificial Intelligence (UAI), 2021. ",
987
+ "bbox": [
988
+ 173,
989
+ 733,
990
+ 821,
991
+ 762
992
+ ],
993
+ "page_idx": 9
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Jernej Kos and Dawn Song. Delving into adversarial attacks on deep policies. International Conference on Learning Representations, 2017. ",
998
+ "bbox": [
999
+ 173,
1000
+ 770,
1001
+ 820,
1002
+ 800
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 2012. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 808,
1012
+ 821,
1013
+ 837
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. ",
1020
+ "bbox": [
1021
+ 173,
1022
+ 844,
1023
+ 820,
1024
+ 873
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan. Wierstra. Continuous control with deep reinforcement learning. arXivpreprint arXiv:1509.02971, 2015. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 882,
1034
+ 823,
1035
+ 924
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Yen-Chen Lin, Hong Zhang-Wei, Yuan-Hong Liao, Meng-Li Shih, ing-Yu Liu, and Min Sun. Tactics of adversarial attack on deep reinforcement learning agents. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, pp. 3756–3762, 2017. ",
1042
+ "bbox": [
1043
+ 176,
1044
+ 103,
1045
+ 821,
1046
+ 146
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. ",
1053
+ "bbox": [
1054
+ 173,
1055
+ 155,
1056
+ 825,
1057
+ 213
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Ajay Mandlekar, Yuke Zhu, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Adversarially robust policy learning: Active construction of physically-plausible perturbations. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3932–3939, 2017. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 222,
1067
+ 825,
1068
+ 279
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, arc G Bellemare, Alex Graves, Martin Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518: 529–533, 2015. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 287,
1078
+ 825,
1079
+ 358
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Anay Pattanaik, Zhenyi Tang, Shuijing Liu, and Bommannan Gautham. Robust deep reinforcement learning with adversarial attacks. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 2040–2042, 2018. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 369,
1089
+ 825,
1090
+ 412
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Tiago Pereira, Maryam Abbasi, Bernardete Ribeiro, and Joel P. Arrais. Diversity oriented deep reinforcement learning for targeted molecule generation. J. Cheminformatics, 13(1): 21, 2021. doi: 10.1186/s13321-021-00498-z. URL https://doi.org/10.1186/ s13321-021-00498-z. ",
1097
+ "bbox": [
1098
+ 173,
1099
+ 421,
1100
+ 825,
1101
+ 478
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. International Conference on Learning Representations ICLR, 2017. ",
1108
+ "bbox": [
1109
+ 169,
1110
+ 488,
1111
+ 823,
1112
+ 517
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Mariya Popova, Olexandr Isayev, and Alexander. Tropsha. Deep reinforcement learning for de novo drug design. Science advances 4, 78, 2018. ",
1119
+ "bbox": [
1120
+ 169,
1121
+ 526,
1122
+ 823,
1123
+ 556
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg. Klimov. Proximal policy optimization algorithms. arXiv:1707.06347v2 [cs.LG]., 2017. ",
1130
+ "bbox": [
1131
+ 171,
1132
+ 565,
1133
+ 823,
1134
+ 594
1135
+ ],
1136
+ "page_idx": 10
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Karen Simonyan and Andrew. Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, ICLR, 2015. ",
1141
+ "bbox": [
1142
+ 171,
1143
+ 603,
1144
+ 823,
1145
+ 633
1146
+ ],
1147
+ "page_idx": 10
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Jianwen Sun, Tianwei Zhang, Lei Xiaofei, Xie Ma, Yan Zheng, Kangjie Chen, and Yang. Liu. Stealthy and efficient adversarial attacks against deep reinforcement learning. Association for the Advancement of Artificial Intelligence (AAAI), 2020. ",
1152
+ "bbox": [
1153
+ 174,
1154
+ 642,
1155
+ 825,
1156
+ 686
1157
+ ],
1158
+ "page_idx": 10
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dimutru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2014. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 695,
1166
+ 825,
1167
+ 738
1168
+ ],
1169
+ "page_idx": 10
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Brijen Thananjeyan, Animesh Garg, Sanjay Krishnan, Carolyn Chen, Lauren Miller, and Ken. Goldberg. Multilateral surgical pattern cutting in 2d orthotropic gauze with deep reinforcement learning policies for tensioning. In 2017 IEEE International Conference on Robotics and Automation (ICRA)., pp. 2371–2378, 2017. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 748,
1177
+ 825,
1178
+ 805
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian J. Goodfellow, Dan Boneh, and Patrick D. \\` McDaniel. Ensemble adversarial training: Attacks and defenses. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 815,
1188
+ 825,
1189
+ 872
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Yuandou Wang, Hang Liu, Wanbo Zheng, Yunni Xia, Yawen Li, Peng Chen, Kunyin Guo, , and Hong Xie. Multi-objective workflow scheduling with deep-q-network-based multi-agent reinforcement learning. IEEE Access, pp. 39974–39982, 2019. ",
1196
+ "bbox": [
1197
+ 176,
1198
+ 882,
1199
+ 823,
1200
+ 924
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Van Hasselt, Marc Lanctot, and Nando. De Freitas. Dueling network architectures for deep reinforcement learning. Internation Conference on Machine Learning ICML., pp. 1995–2003, 2016. ",
1207
+ "bbox": [
1208
+ 174,
1209
+ 103,
1210
+ 823,
1211
+ 146
1212
+ ],
1213
+ "page_idx": 11
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Peter Wolf, Christian Hubschneider, Michael Weber, Andre Bauer, Jonathan H ´ artl, Fabian D ¨ urr, and ¨ Marius Zollner J. Learning how to drive in a real world simulation with deep q-networks. ¨ IEEE Intelligent Vehicles Symposium (IV), pp. 244–250, 2017. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 155,
1221
+ 823,
1222
+ 198
1223
+ ],
1224
+ "page_idx": 11
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Cihang Xie and Alan L. Yuille. Intriguing properties of adversarial training at scale. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. ",
1229
+ "bbox": [
1230
+ 173,
1231
+ 207,
1232
+ 823,
1233
+ 248
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Gregory Yauney and Shah Pratik. Reinforcement learning with action-derived rewards for chemotherapy and clinical trial dosing regimen selection. In Machine Learning for Healthcare Conference, pp. 161–226, 2018. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 257,
1243
+ 825,
1244
+ 301
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Ning Zhang, Juan Liu, Lingfu Xie, and Peng Tong. A deep reinforcement learning approach to energy-harvesting uav-aided data collection. In 2020 International Conference on Wireless Communications and Signal Processing (WCSP), Nanjing, China, October 21-23, 2020, pp. 93–98. IEEE, 2020. ",
1251
+ "bbox": [
1252
+ 174,
1253
+ 309,
1254
+ 825,
1255
+ 366
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Richard Zhang, Phillip Isola, Alexei Efros, Eli Shechtman, and Oliver. Wang. The unreasonable effectiveness of deep features as a perceptual metric. Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
1262
+ "bbox": [
1263
+ 174,
1264
+ 375,
1265
+ 825,
1266
+ 417
1267
+ ],
1268
+ "page_idx": 11
1269
+ }
1270
+ ]
parse/dev/kTcRljax0x9/kTcRljax0x9_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/mxzIrQIOGIK/mxzIrQIOGIK_content_list.json ADDED
@@ -0,0 +1,1374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Multi-Objective Online Learning ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 297,
8
+ 122,
9
+ 700,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 200,
20
+ 580,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 292,
32
+ 535,
33
+ 309
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 This paper presents a systematic study of multi-objective online learning. We first \n2 formulate the framework of Multi-Objective Online Convex Optimization, which \n3 encompasses two novel multi-objective regret definitions. The regret definitions \n4 build upon an equivalent transformation of the multi-objective dynamic regret \n5 based on the commonly used Pareto suboptimality gap metric in zero-order multi \n6 objective bandits, making it amenable to be optimized via first-order iterative \n7 methods. To motivate the algorithm design, we give an explicit example in which \n8 equipping OMD with the vanilla min-norm solver for gradient composition will \n9 incur a linear regret, which shows that only regularizing the iterates, as in single \n10 objective online learning, is not enough to guarantee sublinear regrets in the multi \n11 objective setting. To resolve this issue, we propose a novel min-regularized-norm \n12 solver that regularizes the composite weights. Combining min-regularized-norm \n13 with OMD results in the Doubly Regularized Online Mirror Multiple Descent \n14 algorithm. We further derive both the static and dynamic regret bounds for the \n15 proposed algorithm, each of which matches the corresponding optimal bound in the \n16 single-objective setting. Extensive experiments on both simulation and real-world \n17 datasets verify the effectiveness of the proposed algorithm. ",
40
+ "bbox": [
41
+ 148,
42
+ 327,
43
+ 766,
44
+ 561
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "18 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 594,
55
+ 312,
56
+ 611
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "19 Traditional optimization methods for machine learning are usually designed to optimize a single \n20 objective. However, in many real-world applications, we are often required to optimize multiple \n21 correlated objectives concurrently. For example, in autonomous driving [12, 20], the self-driving \n22 vehicles need to solve multiple tasks such as self-localization and object identification at the same \n23 time. In online advertising [21, 22], advertisers need to determine the exposure of items to different \n24 users to maximize both the Click-Through Rate (CTR) and the Post-Click Conversion Rate (CVR). \n25 In many multi-objective scenarios, the objectives may conflict with each other [15]. Hence, there may \n26 not exist any single solution that optimizes all the objectives simultaneously. For example, in online \n27 advertising, merely optimizing CTR or CVR will degrade the performance of the other [21, 22]. \n28 Multi-objective optimization (MOO) [23, 6] is concerned with optimizing multiple conflicting \n29 objectives simultaneously. It seeks Pareto optimality, where no single objective can be improved \n30 without hurting the performance of the others. Many different methods for MOO have been proposed, \n31 including evolutionary methods [26, 39], scalarization methods [9], and gradient-based iterative \n32 methods [7]. Recently, the Multiple Gradient Descent Algorithm (MGDA) and its variants have been \n33 introduced to the training of multi-task deep neural networks and achieved great empirical success \n34 [29], making them regain a significant amount of research interest [17, 33, 18]. These methods \n35 compute a composite gradient based on the gradient information of all the individual objectives \n36 and then apply the composite gradient to update the model parameters. The composite weights are \n37 determined by a min-norm solver [7] which yields a common descent direction of all the objectives. \n38 However, compared to the increasingly wide application prospect, the gradient-based iterative \n39 algorithms are relatively understudied, especially for the online learning setting. Multi-objective \n40 online learning is of essential importance due to reasons in two folds. First, due to the data explosion in \n41 many real-world scenarios such as web applications, making in-time predictions requires performing \n42 online learning. Second, the theoretical investigation of multi-objective online learning will lay a solid \n43 foundation for the design of new optimizers for multi-task deep neural networks. This is analogous to \n44 the single-objective setting, where nearly all the optimizers for training DNNs are initially analyzed \n45 in the online setting, such as AdaGrad [8], Adam [16], and AMSGrad [28]. \n46 In this paper, we give a systematic study of multi-objective online learning. To begin with, we \n47 formulate the framework of Multi-Objective Online Convex Optimization (MO-OCO). The first \n48 major challenge is the lack of regret definitions in the multi-objective setting. To tackle this challenge, \n49 we need appropriate discrepancy metrics that can be used in the regret definitions, which evaluate the \n50 gap between any two vector losses by producing scalar values. Intuitively, the Pareto suboptimality \n51 gap (PSG) metric, which is frequently used in zero-order multi-objective bandits [30, 19], is a very \n52 promising candidate. It can yield scalarized distances from any vector loss to a given comparator set. \n53 We can thus define the multi-objective regret by simply plugging in PSG as the discrepancy metric. \n54 However, as a metric designed purely from the geometric view, PSG is intrinsically difficult to be \n55 optimized directly via gradient-based iterative methods. To resolve this problem, for the PSG-based \n56 multi-objective dynamic regret, we derive its equivalent unconstrained max-min form via a highly \n57 non-trivial transformation. This form is intuitive to the design of first-order multi-objective online \n58 algorithms, indicating that we should select a convex combination of the gradients at each round. \n59 Unfortunately, for the PSG-based static variant, such an equivalence does not exist. To remedy this \n60 issue, we make extensions of the dynamic variant by fixing the comparator set and the composite \n61 weights, which yields an appropriate definition of the multi-objective static regret. \n62 Based on the MO-OCO framework, we develop a novel multi-objective online algorithm termed \n63 Doubly Regularized Online Mirror Multiple Descent. The key module of the algorithm is the gradient \n64 composition scheme, which calculates a composite gradient in the form of a convex combination of \n65 the gradients of all objectives. Intuitively, the most direct way to determine the composite weights is \n66 to apply the min-norm solver [7] commonly used in offline multi-objective optimization. However, \n67 directly applying min-norm is not workable in the online setting. Specifically, the composite weights \n68 in min-norm are only determined by the gradients at the current round. In the online setting, since \n69 the gradients can be adversarial, they may result in undesired composite weights, further producing \n70 a composite gradient that reversely optimizes the loss. To rigorously verify this point, we give a \n71 showcase in which equipping OMD with vanilla min-norm even incurs a linear regret, showing that \n72 only regularizing the iterate, as in OMD, is not enough to guarantee sublinear regrets in the multi \n73 objective setting. To fix this issue, we devise a novel min-regularized-norm solver with an explicit \n74 regularization on composite weights. Equipping it with OMD results in our proposed algorithm. \n75 We then conduct the theoretical analysis for our proposed algorithm. We derive a multi-objective static \n76 regret bound $O ( \\sqrt { T } )$ and a multi-objective dynamic regret bound $O ( V _ { T } ^ { 1 / 3 } T ^ { 2 / 3 } )$ for DR-OMMD. \n77 Both bounds match the optimal bounds in the single-objective setting [11, 34]. Our analysis also \n78 shows that DR-OMMD attains a lower regret than linearization with fixed composite weights. \n79 To evaluate the effectiveness of DR-OMMD, we conduct extensive experiments on both simulation \n80 datasets and real-world datasets. We first elaborate simulation experiments, in which we find \n81 that DR-OMMD attains lower regret than vanilla min-norm and linearization, which verifies the \n82 superiority of the min-regularized-norm solver. We then realize adaptive regularization via multi \n83 objective optimization on real-world datasets, and find that adaptive regularization with DR-OMMD \n84 significantly outperforms fixed regularization with linearization. \n85 In summary, in this paper, we give the first systematic study of multi-objective online learning, which \n86 encompasses a novel framework, a new algorithm, and corresponding non-trivial theoretical analysis. \n87 We believe that this work paves the way for future research on more advanced multiple-objective \n88 optimization algorithms, which may inspire the design of new optimizers for multi-task deep learning. ",
63
+ "bbox": [
64
+ 147,
65
+ 627,
66
+ 825,
67
+ 753
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 758,
77
+ 825,
78
+ 897
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 92,
88
+ 825,
89
+ 203
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 208,
99
+ 825,
100
+ 429
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 145,
109
+ 435,
110
+ 825,
111
+ 616
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 147,
120
+ 622,
121
+ 825,
122
+ 681
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 147,
131
+ 686,
132
+ 825,
133
+ 770
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "",
140
+ "bbox": [
141
+ 147,
142
+ 776,
143
+ 825,
144
+ 833
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "89 2 Preliminaries ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 150,
154
+ 852,
155
+ 318,
156
+ 868
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "90 In this section, we briefly review the necessary background knowledge of online convex optimization \n91 and multi-objective optimization. \n93 Online Convex Optimization (OCO) [38, 11] is the most commonly adopted framework for \n94 designing online learning algorithms. It can be viewed as a structured repeated game between a \n95 learner and an adversary. At each round $t \\in \\{ 1 , \\ldots , T \\}$ , the learner is required to generate a decision \n96 $x _ { t }$ from a convex compact set $\\mathcal { X } \\subset \\mathbb { R } ^ { n }$ . Then the adversary replies the learner with a convex function \n97 $f _ { t } : \\mathcal { X } \\mathbb { R }$ and the learner suffers the loss $f _ { t } ( x _ { t } )$ . The goal of the learner is to minimize the regret \n98 with respect to the best fixed decision in hindsight, i.e., ",
163
+ "bbox": [
164
+ 148,
165
+ 883,
166
+ 825,
167
+ 911
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "",
174
+ "bbox": [
175
+ 145,
176
+ 116,
177
+ 825,
178
+ 200
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "equation",
184
+ "img_path": "images/fbff3e00487c576616ab7a128d7bdf67f62a72d02e7057df9fe3abb4b171d697.jpg",
185
+ "text": "$$\nR _ { S } ( T ) = \\sum _ { t = 1 } ^ { T } f _ { t } ( x _ { t } ) - \\operatorname* { m i n } _ { x ^ { * } \\in \\mathcal { X } } \\sum _ { t = 1 } ^ { T } f _ { t } ( x ^ { * } ) .\n$$",
186
+ "text_format": "latex",
187
+ "bbox": [
188
+ 341,
189
+ 204,
190
+ 655,
191
+ 234
192
+ ],
193
+ "page_idx": 2
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "99 Note that the above regret is the static regret [10], which compares the learner’s cumulative loss \n100 with that of a fixed decision. There is another version of regret, namely the dynamic regret [10, 34], \n101 which compares the learner’s cumulative loss with that of a sequence of local optimal decisions, i.e., ",
198
+ "bbox": [
199
+ 142,
200
+ 239,
201
+ 826,
202
+ 282
203
+ ],
204
+ "page_idx": 2
205
+ },
206
+ {
207
+ "type": "equation",
208
+ "img_path": "images/eadabcf279d60ea72a6b2a50b561e45286d3dc414d9e8b4ec7bbbc9ef9629c85.jpg",
209
+ "text": "$$\nR _ { D } ( T ) = \\sum _ { t = 1 } ^ { T } f _ { t } ( x _ { t } ) - \\sum _ { t = 1 } ^ { T } \\operatorname* { m i n } _ { x _ { t } ^ { * } \\in \\mathcal { X } } f _ { t } ( x _ { t } ^ { * } ) .\n$$",
210
+ "text_format": "latex",
211
+ "bbox": [
212
+ 339,
213
+ 286,
214
+ 656,
215
+ 318
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "102 Any meaningful regret is required to be sublinear in $T$ , i.e., $\\begin{array} { r } { \\operatorname* { l i m } _ { T \\to \\infty } R _ { S / D } ( T ) / T = 0 } \\end{array}$ , which implies \n103 that when $T$ is large enough, the learner can perform as well as the best fixed decision in hindsight \n104 (for static regret) or the local optimal decision at each round (for dynamic regret). \n105 Online Mirror Descent (OMD) [11] is a classic first-order online learning algorithm. At each round \n106 $t \\in \\{ 1 , \\ldots , T \\}$ , OMD yields its decision using the following formula ",
222
+ "bbox": [
223
+ 142,
224
+ 324,
225
+ 826,
226
+ 367
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "",
233
+ "bbox": [
234
+ 142,
235
+ 372,
236
+ 825,
237
+ 401
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "equation",
243
+ "img_path": "images/70a13dedb725aa713afbda64629149e6b5a056bd60425f621dec9e28aedd0a0c.jpg",
244
+ "text": "$$\n\\begin{array} { r } { x _ { t + 1 } = \\underset { x \\in \\mathcal { X } } { \\arg \\operatorname* { m i n } } \\eta \\langle \\nabla f _ { t } ( x _ { t } ) , x \\rangle + B _ { R } ( x , x _ { t } ) , } \\end{array}\n$$",
245
+ "text_format": "latex",
246
+ "bbox": [
247
+ 349,
248
+ 405,
249
+ 647,
250
+ 431
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "107 where $\\eta$ is the step size, $R : \\mathcal { X } \\mathbb { R }$ is the regularization function, and $B _ { R } ( x , x ^ { \\prime } ) = R ( x ) - R ( x ^ { \\prime } ) -$ \n108 $\\langle \\nabla R ( x ^ { \\prime } ) , x - x ^ { \\prime } \\rangle$ is the Bregman divergence induced from $R$ . As a meta-algorithm, by instantiating \n109 different regularization functions, OMD can induce two important algorithms, i.e., Online Gradient \n110 Descent [38, 13] and Online Exponentiated Gradient [11]. ",
257
+ "bbox": [
258
+ 142,
259
+ 438,
260
+ 825,
261
+ 494
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "11 2.2 Multi-Objective Optimization ",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 151,
271
+ 508,
272
+ 419,
273
+ 525
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "112 Multiple-objective optimization (MOO) is concerned with solving the problems of optimizing \n113 multiple objectives simultaneously [39, 29]. In general, since different objectives may conflict with \n114 each other, there is no single solution that can optimize all the objectives at the same time. Instead, \n115 MOO seeks to find solutions that achieve Pareto optimality. Next, we exposit Pareto optimality and \n116 related definitions more formally using a vector-valued loss $H = ( h ^ { 1 } , \\ldots , \\overline { { { h ^ { m } } } } ) ^ { \\top }$ as objectives, where \n117 $m \\geq 2$ and $h ^ { i } : { \\mathcal { K } } \\mathbb { R }$ , $i \\in \\{ 1 , \\ldots , m \\}$ , $\\kappa \\subset \\mathbb { R }$ , is the $i$ -th loss function. ",
280
+ "bbox": [
281
+ 140,
282
+ 534,
283
+ 825,
284
+ 619
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "Definition 2.1 (Pareto optimality). (a) For any two solutions $x , x ^ { \\prime } \\in \\mathcal { K }$ , we say that $x$ dominates $x ^ { \\prime }$ , denoted as $\\boldsymbol { x } \\prec \\boldsymbol { x } ^ { \\prime }$ or $x ^ { \\prime } \\succ x$ , if $h ^ { i } ( x ) \\leq h ^ { i } ( x ^ { \\prime } )$ for all $i$ , and there exists one $i$ such that $h ^ { i } ( x ) < h ^ { i } ( x ^ { \\prime } )$ ; otherwise, we say that $x$ does not dominate $x ^ { \\prime }$ , denoted as $x \\not \\prec x ^ { \\prime }$ or $x ^ { \\prime } \\nsimeq x$ . ",
291
+ "bbox": [
292
+ 165,
293
+ 622,
294
+ 821,
295
+ 664
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "(b) A solution $x ^ { * } \\in \\kappa$ is called Pareto optimal if it is not dominated by any other solution in $\\kappa$ . ",
302
+ "bbox": [
303
+ 160,
304
+ 664,
305
+ 799,
306
+ 678
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "122 There may exist multiple Pareto optimal solutions. For example, it is easy to show that the optimizer \n123 of any single objective, i.e., $x _ { i } ^ { * } \\in \\arg \\operatorname* { m i n } _ { x \\in \\mathcal { K } } h ^ { i } ( x ) , i \\in \\{ \\bar { 1 } , \\ldots , m \\}$ , is Pareto optimal. Different \n124 Pareto optimal solutions reflect different trade-offs among the objectives [17]. \n25 Definition 2.2 (Pareto front). (a) All Pareto optimal solutions form the Pareto set ${ \\mathcal { P } } _ { \\kappa } ( H )$ . \n26 (b) The image of ${ \\mathcal { P } } _ { \\kappa } ( H )$ constitutes the Pareto front, denoted as $\\mathcal { P } ( H ) = \\{ H ( x ) \\mid x \\in \\mathcal { P } _ { K } ( H ) \\} .$ \n127 Now that we have established the notion of optimality in MOO, we proceed to introduce the metrics \n128 that measure the discrepancy of an arbitrary solution $x \\in \\kappa$ from being optimal. Recall that, in the \n129 single-objective setting with merely one loss function $h : \\mathcal { Q } \\mathbb { R }$ , where $\\mathcal { Q } \\subset \\mathbb { R }$ , for any $z \\in \\mathcal { Q }$ , \n130 the loss gap $h ( z ) - \\mathrm { { m i n } } _ { z ^ { \\prime \\prime } \\in \\mathcal { Q } } h ( z ^ { \\prime \\prime } )$ is directly the discrepancy measure. However, in MOO with \n131 more than one loss, for any $x \\in \\kappa$ , the loss gap $H ( x ) - \\overline { { H ( x ^ { \\prime \\prime } ) } }$ , where $x ^ { \\prime \\prime } \\in { \\mathcal { P } } _ { \\kappa } ( H )$ , is a vector. \n132 Intuitionally, the desired discrepancy metric shall scalarize the vector-valued loss gap and yield \n133 the value 0 for any Pareto optimal solution. In general, there are two commonly used discrepancy \n134 metrics in MOO, i.e. Pareto suboptimality gap (PSG) [30] and Hypervolume (HV) [4]. As HV is a \n135 volume-based metric, it is more difficult to optimize or analyze via iterative algorithms [36]. Hence \n136 in this paper, we adopt PSG, which has been extensively used in multi-objective bandits [30, 19]. \n137 Definition 2.3 (Pareto suboptimality gap). For any $x \\in \\kappa$ , the Pareto suboptimality gap to a given \n138 comparator set $\\kappa ^ { * } \\subset \\kappa$ , denoted as $\\Delta ( x ; K ^ { * } , H )$ , is defined as the minimal scalar $\\epsilon \\geq 0$ that needs \n139 to be subtracted from all entries of $H ( x )$ , such that $H ( x ) - \\epsilon \\mathbf { 1 }$ is not dominated by any point in $\\kappa ^ { * }$ , \n140 where 1 denotes the all-one vector in $\\mathbb { R } ^ { m }$ , i.e.,1 ",
313
+ "bbox": [
314
+ 142,
315
+ 688,
316
+ 823,
317
+ 731
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "",
324
+ "bbox": [
325
+ 153,
326
+ 733,
327
+ 810,
328
+ 763
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "",
335
+ "bbox": [
336
+ 140,
337
+ 772,
338
+ 825,
339
+ 912
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "",
346
+ "bbox": [
347
+ 142,
348
+ 90,
349
+ 826,
350
+ 147
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "equation",
356
+ "img_path": "images/d7fcf54e6ec56f6b8f193f886213dc0261a83213dacd482a99751aa8661113cb.jpg",
357
+ "text": "$$\n\\Delta ( x ; K ^ { * } , H ) = \\operatorname* { i n f } _ { \\epsilon \\geq 0 } \\epsilon , \\quad \\mathrm { s . t . } \\forall x ^ { \\prime \\prime } \\in K ^ { * } , \\exists i \\in \\{ 1 , . . . , m \\} , h ^ { i } ( x ) - \\epsilon < h ^ { i } ( x ^ { \\prime \\prime } ) .\n$$",
358
+ "text_format": "latex",
359
+ "bbox": [
360
+ 240,
361
+ 154,
362
+ 756,
363
+ 179
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "141 Clearly, PSG is a distance-based discrepancy metric that motivated from a purely geometric viewpoint. \n142 In practice, the comparator set $\\kappa ^ { * }$ is often set to be the Pareto set ${ \\mathcal { P } } _ { \\kappa } ( H )$ [30]. Then for any $x \\in \\kappa$ , \n143 its PSG is always non-negative and equals to zero if and only if $x \\in { \\mathcal { P } } _ { \\kappa } ( H )$ . \n144 Multiple Gradient Descent Algorithm (MGDA) is an offline first-order algorithm for MOO [9, 7]. \n145 146 At each iteration for each objectiv $l \\in \\{ 1 , \\ldots , L \\}$ $i \\in \\{ 1 , \\ldots , m \\}$ $L$ is the number of iterations), it first c then derive the composite gradient $\\begin{array} { r } { g _ { l } ^ { c o \\bar { m } p } = \\sum _ { i = 1 } ^ { \\bar { m } } \\lambda _ { l } ^ { i } \\nabla h ^ { i } ( x _ { l } ) } \\end{array}$ $\\nabla h ^ { i } ( x _ { l } )$ \n147 the convex combination of these multiple gradients; it applies ${ \\dot { \\boldsymbol g } _ { l } } ^ { c o m p }$ to execute the gradient descent \n148 step to update the decision, i.e., $x _ { l + 1 } = x _ { l } - \\eta g _ { l } ^ { c o m p }$ gcompl , where η is the step size. The core part of \n149 MGDA is the module that determines the composite weights $\\lambda _ { l } = ( \\lambda _ { l } ^ { 1 } , \\ldots , \\lambda _ { l } ^ { m } )$ , which is given as ",
370
+ "bbox": [
371
+ 140,
372
+ 193,
373
+ 826,
374
+ 236
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "",
381
+ "bbox": [
382
+ 140,
383
+ 241,
384
+ 825,
385
+ 328
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/3b09344f2c234bb8bfb5048ae48bcfec97daefc50018ca12964a675ce017d9f8.jpg",
392
+ "text": "$$\n\\lambda _ { l } = \\arg \\operatorname* { m i n } _ { \\lambda _ { l } \\in \\mathcal { S } _ { m } } \\| \\sum _ { i = 1 } ^ { m } \\lambda _ { l } ^ { i } \\nabla h ^ { i } ( x _ { l } ) \\| _ { 2 } ^ { 2 } ,\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 387,
396
+ 335,
397
+ 609,
398
+ 376
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "150 where $\\begin{array} { r } { \\mathcal { S } _ { m } = \\{ \\lambda \\in \\mathbb { R } ^ { m } | \\sum _ { i = 1 } ^ { m } \\lambda ^ { i } = 1 , \\lambda ^ { i } \\geq 0 , i \\in \\{ 1 , \\dots , m \\} \\} } \\end{array}$ denotes the probabilistic simplex in \n151 $\\mathbb { R } ^ { m }$ . This is a min-norm solver which finds the weights in the simplex that yields the minimum $L _ { 2 }$ \n152 norm of the composite gradient. Thus MGDA is also called the min-norm method. Existing works \n153 [7, 29] have shown that MGDA is guaranteed to decrease all the objectives simultaneously until it \n154 reaches a Pareto optimal decision (under the convex setting where all $h ^ { i }$ are convex functions). ",
405
+ "bbox": [
406
+ 140,
407
+ 383,
408
+ 825,
409
+ 455
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "3 Multi-Objective Online Convex Optimization ",
416
+ "text_level": 1,
417
+ "bbox": [
418
+ 158,
419
+ 474,
420
+ 581,
421
+ 492
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "In this section, we formally formulate the framework of multi-objective optimization in the online setting, termed Multi-Objective Online Convex Optimization (MO-OCO). ",
428
+ "bbox": [
429
+ 166,
430
+ 506,
431
+ 823,
432
+ 536
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Framework overview. We tailor the famous online convex optimization (OCO) framework to the multi-objective setting, which can be viewed as a repeated game between an online learner and the adversarial environment. At each round $t \\in \\{ 1 , \\ldots , T \\}$ , the learner generates a decision $x _ { t }$ from a given convex compact decision set $\\mathcal { X } \\subset \\mathbb { R } ^ { n }$ . Then the adversary replies the decision with a vector loss function $F _ { t } ( \\bar { x } ) : \\mathcal { X } \\mathbb { R } ^ { m }$ , where its $i$ -th component $f _ { t } ^ { i } ( x ) \\ \\bar { : } \\ x \\ \\to \\ \\mathbb { R }$ belongs to the $i$ -th objective, and the learner suffers the loss $F _ { t } ( x _ { t } ) \\in \\mathbb { R } ^ { m }$ . The goal of the learner is to generate a sequence of decisions $\\{ x _ { t } \\} _ { t = 1 } ^ { T }$ so that the cumulative loss $\\textstyle \\sum _ { t = 1 } ^ { T } F _ { t } ( x _ { t } )$ can be optimized. ",
439
+ "bbox": [
440
+ 169,
441
+ 541,
442
+ 825,
443
+ 643
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "165 Recall that, in the single-objective setting, the performance metric $\\begin{array} { r } { R ( T ) = \\sum _ { t = 1 } ^ { T } ( f _ { t } ( x _ { t } ) - f _ { t } ( z _ { t } ) ) } \\end{array}$ \n166 i.e., the regret, compares the actual decisions with some comparator $z _ { t } \\in \\mathcal { X }$ at each round $t$ . For \n167 the static regret, all $z _ { t }$ are identically set as the fixed optimal decision $x ^ { * }$ w.r.t. all losses in hindsight, \n168 i.e., $\\begin{array} { r } { z _ { t } \\equiv x ^ { * } \\in \\arg \\operatorname* { m i n } _ { x \\in \\mathcal { X } } \\sum _ { t = 1 } ^ { T } f _ { t } ( x ) } \\end{array}$ . For the dynamic regret, each $z _ { t }$ is selected as the optimal \n169 decision $\\boldsymbol { x } _ { t } ^ { * }$ w.r.t. the instantaneous loss $f _ { t }$ at that round, i.e., $z _ { t } = x _ { t } ^ { * } \\in \\arg \\operatorname* { m i n } _ { x \\in \\mathcal { X } } f _ { t } ( x )$ . \n170 In analogy, we can define the multi-objective regret as $\\begin{array} { r } { R ( T ) = \\sum _ { t = 1 } ^ { T } \\Delta _ { t } } \\end{array}$ , where each $\\Delta _ { t }$ compares \n171 . However, in general, no single decision can \n172 optimize all the objectives at the same time. Hence, it is natural to compare $x _ { t }$ with a group of Pareto \n173 optimal decisions, which constitute a comparator set $\\mathcal { C } _ { t } \\subset \\mathcal { X }$ . To measure the discrepancy between $x _ { t }$ \n174 and $\\mathcal { C } _ { t }$ , we further introduce the Pareto suboptimality gap (PSG) [30] $\\Delta ( x _ { t } ; \\mathcal { C } _ { t } , F _ { t } )$ . Then the multi \n175 objective regret can be defined as $\\begin{array} { r } { R ( T ) = \\sum _ { t = 1 } ^ { T } \\Delta ( x _ { t } ; \\mathcal { C } _ { t } , F _ { t } ) } \\end{array}$ . Now we can formulate the static or \n176 the dynamic variant by specifying the comparator set $\\mathcal { C } _ { t }$ at each round. Specifically, by setting all $\\mathcal { C } _ { t }$ to \n177 be the Pareto set $\\mathcal { X } ^ { \\ast }$ of the cumulative loss $\\textstyle \\sum _ { t = 1 } ^ { T } F _ { t }$ , we formulate the multi-objective static regret \n178 $\\begin{array} { r } { R _ { \\mathrm { M O S } } ( T ) = \\sum _ { t = 1 } ^ { T } \\Delta ( x _ { t } ; \\mathcal { X } ^ { \\ast } , F _ { t } ) } \\end{array}$ $F _ { t }$ . By setting each bjective dynamic $\\mathcal { C } _ { t }$ to bgret $\\begin{array} { r } { R _ { \\mathrm { M O D } } ( T ) = \\sum _ { t = 1 } ^ { T } \\Delta ( x _ { t } ; \\mathcal { X } _ { t } ^ { \\ast } , F _ { t } ) } \\end{array}$ $\\mathcal { X } _ { t } ^ { \\ast }$ neous. \n180 Recall that PSG is a zero-order metric motivated in a purely geometric sense, namely, its calculation \n181 needs to solve a constrained optimization problem with an unknown boundary $f _ { t } ^ { i } ( x ^ { \\prime \\prime } ) , \\forall x ^ { \\prime \\prime } \\in { \\mathcal { C } } _ { t }$ \n182 Hence, it is not straightforward to design a first-order algorithm to optimize PSG, not to mention \n183 the regret analysis. To motivate algorithm design and analysis, we investigate the two variants in \n184 more detail. We begin with the dynamic variant, since we find that it has an equivalent form, which is \n185 intuitive and has a strong implication on the design of effective online multiple gradient algorithms. ",
450
+ "bbox": [
451
+ 140,
452
+ 648,
453
+ 825,
454
+ 724
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "",
461
+ "bbox": [
462
+ 142,
463
+ 731,
464
+ 826,
465
+ 886
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "",
472
+ "bbox": [
473
+ 140,
474
+ 90,
475
+ 825,
476
+ 175
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "An equivalent form of the dynamic regret. Surprisingly, the multi-objective dynamic regret $R _ { \\mathrm { M O D } }$ can be transformed into an unconstrained max-min form. The derivation utilizes Pareto optimality of $\\mathcal { X } _ { t } ^ { \\ast }$ and is highly non-trivial, which is deferred to the appendix due to the space limit. ",
483
+ "bbox": [
484
+ 158,
485
+ 180,
486
+ 823,
487
+ 223
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "189 Proposition 3.1. The multi-objective dynamic regret has an equivalent form, i.e., ",
494
+ "bbox": [
495
+ 147,
496
+ 226,
497
+ 707,
498
+ 241
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "equation",
504
+ "img_path": "images/a54de984c645f34484feb27cf9ca2cb5bed88897700e2a277d12ed36c921d08d.jpg",
505
+ "text": "$$\nR _ { \\mathrm { M O D } } ( T ) = \\operatorname* { s u p } _ { \\stackrel { x _ { t } ^ { * } \\in \\mathcal { X } _ { t } ^ { * } , \\ } { 1 \\leq t \\leq T } } \\operatorname* { i n f } _ { \\stackrel { x \\in S _ { m } } { 1 \\leq t \\leq T } } \\sum _ { t = 1 } ^ { T } \\lambda _ { t } ^ { * } { ^ { \\top } ( F _ { t } ( x _ { t } ) - F _ { t } ( x _ { t } ^ { * } ) ) } .\n$$",
506
+ "text_format": "latex",
507
+ "bbox": [
508
+ 302,
509
+ 244,
510
+ 694,
511
+ 285
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "190 Remark. (i) The above form can be understood as a variant of the standard dynamic regret regarding \n191 $\\{ \\lambda _ { t } ^ { * } ^ { \\top } F _ { t } \\} _ { t = 1 } ^ { T }$ , whereas $\\lambda _ { t } ^ { * }$ are unknown to the learner. This provides an intuition that we can gen \n192 erate weights $\\lambda _ { t } \\in \\boldsymbol { S } _ { m }$ at each round and optimize $\\{ \\lambda _ { t } F _ { t } \\} _ { t = 1 } ^ { T }$ via single-objective techniques. For \n193 first-order algorithms, it is equivalent to selecting a convex combination of individual gradients and \n194 then applying the composite gradient to model update. Undoubtedly, how to generate the weights $\\lambda _ { t }$ \n195 needs some careful designs, which will be explicated later in the algorithm section. ",
518
+ "bbox": [
519
+ 140,
520
+ 296,
521
+ 826,
522
+ 381
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "(ii) When $m \\ = \\ 1$ , we have $S _ { m } ~ = ~ \\{ 1 \\}$ and $\\begin{array} { r } { \\mathcal { X } _ { t } ^ { * } ~ = ~ \\arg \\operatorname* { m i n } _ { x \\in \\mathcal { X } } F _ { t } ( x ) } \\end{array}$ . Hence $R _ { \\mathrm { M O D } } ( T ) ~ =$ $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } ( F _ { t } ( x _ { t } ) - \\operatorname* { m i n } _ { x \\in \\mathcal { X } } F _ { t } ( x ) ) } \\end{array}$ , which is exactly the single-objective dynamic regret $R _ { D } ( T )$ . ",
529
+ "bbox": [
530
+ 163,
531
+ 382,
532
+ 823,
533
+ 414
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "198 An alternative form of the static regret. Unfortunately, for $R _ { \\mathrm { M O S } }$ , the above equivalence form \n199 does not exist. Here is the reason. In $R _ { \\mathrm { M O S } }$ , the comparator set $\\mathcal { X } ^ { \\ast }$ is the Pareto set of the cumulative \n200 loss $\\textstyle \\sum _ { t = 1 } ^ { T } F _ { t }$ rather than the instantaneous loss $F _ { t }$ . Hence, at some specific round $t$ , the decision \n201 $x _ { t }$ may Pareto dominate all points in w.r.t. the instantaneous $F _ { t }$ , and we would expect the \n202 metric $\\Delta _ { t }$ to be negative. However, PSG (or other commonly used metrics such as Hypervolume) \n203 204 yields no, we have $R _ { \\mathrm { M O S } }$ th , w $R _ { S }$ . For example, whenh can be much looser \n$m = 1$ $\\begin{array} { r } { R _ { \\operatorname { M O S } } ( T ) = \\operatorname* { s u p } _ { x ^ { * } \\in \\mathcal { X } ^ { * } } \\sum _ { t = 1 } ^ { T } \\operatorname* { m a x } \\{ F _ { t } ( x _ { t } ) - F _ { t } ( x ^ { * } ) , 0 \\} } \\end{array}$ \n205 than the static regret $\\begin{array} { r } { R _ { S } ( T ) = \\operatorname* { s u p } _ { x ^ { * } \\in \\mathcal { X } ^ { * } } \\sum _ { t = 1 } ^ { T } ( F _ { t } ( x _ { t } ) - F _ { t } ( x ^ { * } ) ) } \\end{array}$ . Hence the analysis of $R _ { \\mathrm { M O S } }$ is \n206 intrinsically complex if we use existing discrepancy metrics that always yield non-negative values. \n207 Enlightened by Proposition 3.1, we can formulate the static regret in a different way, i.e., by modifying \n208 the equivalent form of dynamic regret. Recall that in Proposition 3.1, at each round $t$ , the comparator \n209 $\\boldsymbol { x } _ { t } ^ { * }$ is selected from the Pareto set $\\mathcal { X } _ { t } ^ { \\ast }$ of the instantaneous loss $F _ { t }$ , and the weights $\\lambda _ { t } ^ { * }$ are generated \n210 from $S _ { m }$ . To formulate the static variant, we can use a fixed comparator $x ^ { * }$ from the Pareto set $\\mathcal { X } ^ { \\ast }$ of \n211 the cumulative loss $\\sum _ { t } F _ { t }$ and fixed weights $\\lambda ^ { * } \\in S _ { m }$ at all rounds. Now the static variant takes ",
540
+ "bbox": [
541
+ 140,
542
+ 419,
543
+ 826,
544
+ 554
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "",
551
+ "bbox": [
552
+ 140,
553
+ 558,
554
+ 825,
555
+ 628
556
+ ],
557
+ "page_idx": 4
558
+ },
559
+ {
560
+ "type": "equation",
561
+ "img_path": "images/759e8230542b99bdaacb7436137bb1f0c245c8706ac39c7fa62d608bdfe0a42e.jpg",
562
+ "text": "$$\nR _ { \\mathrm { M O S } } ( T ) : = \\operatorname* { s u p } _ { x ^ { * } \\in \\mathcal { X } ^ { * } } \\operatorname* { i n f } _ { \\lambda ^ { * } \\in \\mathcal { S } _ { m } } { \\lambda ^ { * } } ^ { \\top } ( \\sum _ { t = 1 } ^ { T } F _ { t } ( x _ { t } ) - \\sum _ { t = 1 } ^ { T } F _ { t } ( x ^ { * } ) ) .\n$$",
563
+ "text_format": "latex",
564
+ "bbox": [
565
+ 281,
566
+ 633,
567
+ 715,
568
+ 665
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "212 Remark. (i) $R _ { \\mathrm { M O S } } ( T )$ has a clear physical meaning that optimizing it will impose the cumulative loss 213 $\\textstyle \\sum _ { t = 1 } ^ { T } F _ { t } ( x _ { t } )$ to reach the Pareto front ${ \\mathcal { P } } ^ { * }$ . See more details in Appendix C. ",
575
+ "bbox": [
576
+ 147,
577
+ 670,
578
+ 823,
579
+ 702
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "(ii) When 214 $m = 1$ , $S _ { m } = \\{ 1 \\}$ and $\\mathcal { X } ^ { \\ast }$ reduces to $\\begin{array} { r } { \\arg \\operatorname* { m i n } _ { x \\in \\mathcal { X } } \\sum _ { t = 1 } ^ { T } F _ { t } ( x ) } \\end{array}$ . Therein $R _ { \\mathrm { M O S } } ( T ) =$ 15 $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } F _ { t } ( x _ { t } ) - \\operatorname* { m i n } _ { x ^ { * } \\in \\mathcal { X } ^ { * } } \\sum _ { t = 1 } ^ { T } F _ { t } ( x ^ { * } ) } \\end{array}$ x∈X t=1 , which reduces to the single-objective static regret $R _ { S } ( T )$ ",
586
+ "bbox": [
587
+ 153,
588
+ 704,
589
+ 825,
590
+ 739
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "216 4 Online Mirror Multiple Descent ",
597
+ "text_level": 1,
598
+ "bbox": [
599
+ 147,
600
+ 755,
601
+ 473,
602
+ 773
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "In this section, we present the Online Mirror Multiple Descent (OMMD) algorithm, the protocol of which is given in Algorithm 1. At each round $t$ , the learner first computes the gradient of the loss regarding each objective, then determines the composite weights of all these gradients, and finally applies the composite gradient to the online mirror descent step. ",
609
+ "bbox": [
610
+ 173,
611
+ 785,
612
+ 825,
613
+ 842
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "4.1 Vanilla Min-Norm May Incur Linear Regrets ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 169,
623
+ 857,
624
+ 529,
625
+ 873
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "222 The core module of OMMD is the composition of multiple gradients. For simplicity, we represent the gradients at round 223 $t$ in a matrix form $\\nabla F _ { t } ( x _ { t } ) = [ \\nabla \\mathsf { \\bar { f } } _ { t } ^ { 1 } ( \\bar { x } _ { t } ) , \\ldots , \\nabla f _ { t } ^ { m } ( x _ { t } ) ] \\in \\bar { \\mathbb { R } } ^ { \\mathsf { \\bar { n } } \\times m }$ . Then the ",
632
+ "bbox": [
633
+ 147,
634
+ 882,
635
+ 825,
636
+ 912
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "1: Input: Convex set $\\mathcal { X }$ , time horizon $T$ , regularization parameter $\\alpha _ { t }$ , learning rate $\\eta _ { t }$ , regulariza tion function $R$ , user preference $\\lambda _ { 0 }$ . \n2: Initialize: $x _ { 1 } \\in \\mathcal { X }$ . \n3: for $t = 1 , \\dots , T$ do \n4: Predict $x _ { t }$ and receive a loss function $F _ { t } : \\mathcal { X } \\mathbb { R } ^ { m }$ . \n5: Compute the multiple gradients $\\nabla F _ { t } ( x _ { t } ) = [ \\nabla f _ { t } ^ { 1 } ( x _ { t } ) , \\ldots , \\nabla f _ { t } ^ { m } ( x _ { t } ) ] \\in \\mathbb { R } ^ { n \\times m } .$ . \n6: Determine the weights for the gradient composition via min-regularized-norm $\\lambda _ { t } = \\operatorname * { \\bar { a r g m i n } } _ { \\lambda \\in { \\cal S } _ { m } } \\| \\nabla \\dot { F _ { t } } ( x _ { t } ) \\lambda \\| _ { 2 } ^ { 2 } + \\alpha \\| \\lambda - \\stackrel { \\smile } { \\lambda } _ { 0 } \\| _ { 1 } .$ \n7: Compute the composite gradient $g _ { t } = \\nabla F _ { t } ( x _ { t } ) \\lambda _ { t }$ . \n8: Perform online mirror descent using $g _ { t }$ $x _ { t + 1 } = \\underset { x \\in \\mathcal { X } } { \\arg \\operatorname* { m i n } } \\eta \\langle g _ { t } , x \\rangle + B _ { R } ( x , x _ { t } ) .$ ",
643
+ "bbox": [
644
+ 179,
645
+ 109,
646
+ 818,
647
+ 289
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "9: end for ",
654
+ "bbox": [
655
+ 179,
656
+ 294,
657
+ 253,
658
+ 308
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "224 composite gradient is given as $g _ { t } = \\nabla F _ { t } ( x _ { t } ) \\lambda _ { t }$ , where $\\lambda _ { t }$ is the composite weights. As illustrated in \n225 Preliminary, the min-norm method in MGDA [7, 29] is a classic method to determine the composite \n226 weights in the offline setting, which results in a common descent direction that can descend all the \n227 losses simultaneously. Thus, it is tempting to consider applying it to the online setting. \n228 However, directly applying the min-norm method to the online setting is not workable, which may \n229 even incur linear regrets of the resulting algorithms. The rationale is as follows. In the vanilla \n230 min-norm method, the composite weights $\\lambda _ { t }$ are determined solely by the gradients $\\nabla F _ { t } ( x _ { t } )$ at the \n231 current round $t$ , hence they are very sensitive to the instantaneous loss $F _ { t }$ . In the online setting, \n232 the losses at each round can be adversarially chosen, and thus the corresponding gradients can be \n233 adversarial. These adversarial gradients may result in undesired composite weights, which may \n234 further produce a composite gradient that even deteriorates the next prediction. In the following, \n235 we provide a problem instance in which min-norm incurs a linear regret. We extend OMD to the \n236 multi-objective setting, where the composite weights are directly yielded by min-norm [11]. \n237 Problem instance. We consider a two-objective problem. The decision domain is $\\mathcal { X } = \\{ ( u , v ) ~ |$ \n238 $\\begin{array} { r } { u + v \\leq \\frac { 1 } { 2 } , v - u \\leq \\frac { 1 } { 2 } , v \\geq 0 \\} } \\end{array}$ and the loss function at each round is ",
665
+ "bbox": [
666
+ 142,
667
+ 335,
668
+ 825,
669
+ 392
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "",
676
+ "bbox": [
677
+ 138,
678
+ 397,
679
+ 825,
680
+ 523
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "",
687
+ "bbox": [
688
+ 148,
689
+ 529,
690
+ 821,
691
+ 559
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "equation",
697
+ "img_path": "images/0d5a171f637adb9f2eb0528d59a5870302286e4146b4f9aa99c52bd39766479f.jpg",
698
+ "text": "$$\nF _ { t } ( x ) = \\left\\{ \\begin{array} { l l } { ( \\| x - a \\| ^ { 2 } , \\| x - b \\| ^ { 2 } ) , ~ t = 2 k - 1 , } & { ~ k = 1 , 2 , . . . ; } \\\\ { ( \\| x - b \\| ^ { 2 } , \\| x - c \\| ^ { 2 } ) , ~ t = 2 k , } & { ~ k = 1 , 2 , . . . , } \\end{array} \\right.\n$$",
699
+ "text_format": "latex",
700
+ "bbox": [
701
+ 282,
702
+ 564,
703
+ 712,
704
+ 608
705
+ ],
706
+ "page_idx": 5
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "239 where $a = ( - 2 , - 1 ) , b = ( 0 , 1 ) , c = ( 2 , - 1 )$ . For simplicity, we first analyze the case where the \n240 total time horizon $T$ is an even number. Then we can compute the Pareto set of the cumulative \n241 loss $\\textstyle \\sum _ { t = 1 } ^ { T } F _ { t }$ , i.e., $\\begin{array} { r } { \\mathcal { X } ^ { * } = \\{ ( u , 0 ) \\mid - \\frac { 1 } { 2 } \\leq u \\leq \\frac { 1 } { 2 } \\} } \\end{array}$ , which locates at the $x$ -axis. For conciseness of \n242 analysis, we instantiate OMD with L2-regularization, which results in the simple OGD algorithm \n243 [24]. We start at an arbitrary point $x _ { 1 } = ( u _ { 1 } , v _ { 1 } ) \\in \\mathcal { X }$ satisfying $v _ { 1 } > 0$ . At each round $t$ , suppose \n244 the decision $x _ { t } = ( u _ { t } , v _ { t } ) \\in \\mathcal { X }$ , then the gradients of each objective w.r.t. $x _ { t }$ can be calculated as ",
711
+ "bbox": [
712
+ 140,
713
+ 612,
714
+ 826,
715
+ 700
716
+ ],
717
+ "page_idx": 5
718
+ },
719
+ {
720
+ "type": "equation",
721
+ "img_path": "images/14cb2aa94f549718bcec12a508e4b0249ddaad2970271250ebf8e7e7304f85c8.jpg",
722
+ "text": "$$\ng _ { t } ^ { 1 } = { \\left\\{ \\begin{array} { l l } { ( 2 u _ { t } + 4 , ~ 2 v _ { t } + 2 ) , } & { t = 2 k - 1 ; } \\\\ { ( 2 u _ { t } , } & { 2 v _ { t } - 2 ) , } & { t = 2 k . } \\end{array} \\right. } \\qquad g _ { t } ^ { 2 } = { \\left\\{ \\begin{array} { l l } { ( 2 u _ { t } , } & { 2 v _ { t } - 2 ) , } & { t = 2 k - 1 ; } \\\\ { ( 2 u _ { t } - 4 , } & { 2 v _ { t } + 2 ) , } & { t = 2 k . } \\end{array} \\right. }\n$$",
723
+ "text_format": "latex",
724
+ "bbox": [
725
+ 192,
726
+ 704,
727
+ 800,
728
+ 742
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "245 Since $\\begin{array} { r } { 0 \\leq v _ { t } \\leq \\frac { 1 } { 2 } } \\end{array}$ , we observe that the second entry of either gradient alternates between positive \n246 and negative. By using min-norm, the composite weights $\\lambda _ { t }$ can be computed as ",
735
+ "bbox": [
736
+ 135,
737
+ 748,
738
+ 826,
739
+ 777
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "equation",
745
+ "img_path": "images/e7d836d82406529953d1663daa665b08f603af784654f260f81479c5d843ade6.jpg",
746
+ "text": "$$\n\\lambda _ { t } = \\left\\{ { \\begin{array} { l l } { ( ( 1 - u _ { t } - v _ { t } ) / 4 , } & { ( 3 + u _ { t } + v _ { t } ) / 4 ) , t = 2 k - 1 ; } \\\\ { ( ( 3 - u _ { t } + v _ { t } ) / 4 , } & { ( 1 + u _ { t } - v _ { t } ) / 4 ) , t = 2 k . } \\end{array} } \\right.\n$$",
747
+ "text_format": "latex",
748
+ "bbox": [
749
+ 299,
750
+ 781,
751
+ 696,
752
+ 820
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "247 We observe that both entries of composite weights alternative between above $\\frac { 1 } { 2 }$ and below $\\frac { 1 } { 2 }$ , and \n248 $\\| \\lambda _ { t + 1 } - \\lambda _ { t } \\| _ { 1 } \\geq 1$ . Recall that $\\| \\lambda _ { t } \\| _ { 1 } = 1$ , hence the composite weights at two consecutive rounds \n249 change radically. The resulting composite gradient takes ",
759
+ "bbox": [
760
+ 140,
761
+ 825,
762
+ 825,
763
+ 868
764
+ ],
765
+ "page_idx": 5
766
+ },
767
+ {
768
+ "type": "equation",
769
+ "img_path": "images/4dd34499bce826f3562f71baea025f23e37535bd5d8aa7ab1b6d598418786ef5.jpg",
770
+ "text": "$$\ng _ { t } ^ { c o m p } = \\left\\{ \\begin{array} { l l } { { ( u _ { t } - v _ { t } + 1 , ~ } } & { { - u _ { t } + v _ { t } - 1 ) , t = 2 k - 1 ; } } \\\\ { { ( - u _ { t } - v _ { t } - 1 , } } & { { - u _ { t } - v _ { t } - 1 ) , t = 2 k . } } \\end{array} \\right.\n$$",
771
+ "text_format": "latex",
772
+ "bbox": [
773
+ 303,
774
+ 873,
775
+ 692,
776
+ 910
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "250 The fluctuating composite weights mix with the positive and negative second entries of gradients, \n251 making the second entry of $g _ { t } ^ { c \\bar { o } m p }$ always negative, i.e., $- u _ { t } + v _ { t } - 1 < 0$ and $- u _ { t } - v _ { t } - 1 < 0$ \n252 Hence ${ \\bf { \\bar { \\it g } } } _ { t } ^ { c o m p }$ actually drives $x _ { t }$ away from the Pareto set $\\mathcal { X } ^ { \\ast }$ that coincides with the $x$ -axis. This \n253 essentially reversely optimizes the loss, hence increases the regret. In fact, we can prove that it even \n254 incurs a linear regret2. Due to the lack of space, we leave the proof of linear regret when $T$ is an odd \n255 number in the appendix. The above results of the problem instance are summarized as follows. ",
783
+ "bbox": [
784
+ 140,
785
+ 90,
786
+ 826,
787
+ 175
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "Proposition 4.1. For OMD equipped with vanilla min-norm, there exists a multi-objective online convex optimization problem, in which the resulting algorithm incurs a linear regret. ",
794
+ "bbox": [
795
+ 158,
796
+ 179,
797
+ 823,
798
+ 208
799
+ ],
800
+ "page_idx": 6
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "258 Remark. Stability is a basic requirement to guarantee meaningful regrets in online learning [25]. \n259 In the single-objective setting, directly regularizing the iterate $x _ { t }$ (e.g., OMD) is already enough. \n260 However, as shown in the above analysis, only regularizing $x _ { t }$ is not enough to attain sublinear regrets \n261 in the multi-objective setting, since there is another source of instability, i.e., the composite weights, \n262 that affects the direction of the composite gradient. Therefore, in multi-objective online learning, \n263 besides regularizing the iterates, we also need to explicitly regularize the composite weights. ",
805
+ "bbox": [
806
+ 145,
807
+ 218,
808
+ 826,
809
+ 303
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "4.2 Doubly Regularized Online Mirror Multiple Descent ",
816
+ "text_level": 1,
817
+ "bbox": [
818
+ 171,
819
+ 318,
820
+ 578,
821
+ 334
822
+ ],
823
+ "page_idx": 6
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "Enlightened by the design of regularization in FTRL [25], we consider the regularizer $r ( \\lambda , \\lambda _ { 0 } )$ , where $\\lambda _ { 0 }$ is the pre-defined composite weight that may reflect the user preference. This results in a new solver called min-regularized-norm, i.e., ",
828
+ "bbox": [
829
+ 169,
830
+ 343,
831
+ 825,
832
+ 386
833
+ ],
834
+ "page_idx": 6
835
+ },
836
+ {
837
+ "type": "equation",
838
+ "img_path": "images/52361531472f26bd6b6a2fcda139d4374fd851cd8ab1047f09b6327f3470ce75.jpg",
839
+ "text": "$$\n\\lambda _ { t } = \\underset { \\lambda \\in S _ { m } } { \\arg \\operatorname* { m i n } } \\| \\nabla F _ { t } ( x _ { t } ) \\lambda \\| _ { 2 } ^ { 2 } + \\alpha r ( \\lambda , \\lambda _ { 0 } ) ,\n$$",
840
+ "text_format": "latex",
841
+ "bbox": [
842
+ 361,
843
+ 392,
844
+ 635,
845
+ 420
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "268 where $\\alpha$ is the strength of regularization. Equipping OMD with the new solver, we derive the \n269 proposed online algorithm. Note that beyond the regularization on the iterate $x _ { t }$ that is intrinsic in \n270 online learning, there is another regularization on the composite weights $\\lambda _ { t }$ in min-regularized norm. \n271 Both regularizations are fundamental and they together ensure the stability in the multi-objective \n272 online setting. Hence we call the algorithm Doubly Regularized OMMD (DR-OMMD). \n273 In principle, $r$ can take various forms such as $L _ { 1 }$ -norm, $L _ { 2 }$ -norm and KL divergence etc. Here \n274 we adopt $L _ { 1 }$ -norm since it aligns well with the simplex constraint of $\\lambda$ . Min-regularized-norm \n275 can be computed very efficiently, since it has a closed-form solution when $m = 2$ . Specifically, \n276 suppose the gradients at round $t$ are $g _ { t } ^ { 1 }$ and $g _ { t } ^ { 2 }$ . Set $\\gamma _ { L } = ( g _ { 2 } ^ { \\top } ( g _ { 2 } - g _ { 1 } ) - \\alpha ) / \\Vert g _ { 2 } - g _ { 1 } \\Vert ^ { 2 }$ and \n277 $\\gamma _ { R } = ( g _ { 2 } ^ { \\top } ( g _ { 2 } - g _ { 1 } ) + \\alpha ) / \\Vert g _ { 2 } - g _ { 1 } \\Vert ^ { 2 }$ . Given any $\\lambda _ { 0 } = ( \\gamma _ { 0 } , 1 - \\gamma _ { 0 } ) \\in S _ { 2 }$ , we can compute the \n278 composite weights $\\lambda _ { t }$ as $( \\gamma _ { t } , 1 - \\gamma _ { t } )$ where ",
852
+ "bbox": [
853
+ 140,
854
+ 426,
855
+ 825,
856
+ 497
857
+ ],
858
+ "page_idx": 6
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "",
863
+ "bbox": [
864
+ 140,
865
+ 502,
866
+ 825,
867
+ 588
868
+ ],
869
+ "page_idx": 6
870
+ },
871
+ {
872
+ "type": "equation",
873
+ "img_path": "images/55b0cd35b705b0b6dea4715bc89b3755504987afbf586b3967e9ff91a46e6c9d.jpg",
874
+ "text": "$$\n\\gamma _ { t } = \\operatorname* { m a x } \\{ \\operatorname* { m i n } \\{ \\gamma _ { t } ^ { \\prime \\prime } , 1 \\} , 0 \\} , \\quad \\mathrm { w h e r e } \\ \\gamma _ { t } ^ { \\prime \\prime } = \\operatorname* { m a x } \\{ \\operatorname* { m i n } \\{ \\gamma _ { 0 } , \\gamma _ { R } \\} , \\gamma _ { L } \\} .\n$$",
875
+ "text_format": "latex",
876
+ "bbox": [
877
+ 274,
878
+ 593,
879
+ 720,
880
+ 612
881
+ ],
882
+ "page_idx": 6
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "79 In addition, when $m > 2$ , since the feasible region $S _ { m }$ is a simplex, we can introduce a Frank-Wolfe \n80 solver [14] to compute the composite weights. See the protocol and more details in Appendix D. ",
887
+ "bbox": [
888
+ 153,
889
+ 618,
890
+ 823,
891
+ 647
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Compared to vanilla min-norm, the composite weights in min-regularized-norm are not fully determined by the adversarial gradients. The resulting relative stability of composite weights make the composite gradients more robust to the adversarial environment. In the following, we give a general analysis and prove that DR-OMMD indeed guarantees sublinear regrets. ",
898
+ "bbox": [
899
+ 171,
900
+ 652,
901
+ 825,
902
+ 709
903
+ ],
904
+ "page_idx": 6
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "4.3 Analysis ",
909
+ "text_level": 1,
910
+ "bbox": [
911
+ 174,
912
+ 726,
913
+ 272,
914
+ 741
915
+ ],
916
+ "page_idx": 6
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "We now analyze the static regret and the dynamic regret of DR-OMMD. Our analysis is based on the following commonly used assumptions [13, 11]. ",
921
+ "bbox": [
922
+ 169,
923
+ 751,
924
+ 823,
925
+ 780
926
+ ],
927
+ "page_idx": 6
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Assumption 4.2 (Bregman divergence). The regularization function $R$ is 1-strongly convex. In addition, the Bregman divergence is $\\gamma$ -Lipschitz continuous, i.e., $B _ { R } ( x , z ) - B _ { R } ( \\bar { y } , z ) \\leq \\gamma \\| x -$ $y \\| , \\forall x , y , z \\in \\mathrm { d o m } R$ , where $\\mathrm { d o m } R$ is the domain of $R$ and satisfies $\\mathcal { X } \\subset \\mathrm { d o m } R \\subset \\mathbb { R } ^ { n }$ . ",
932
+ "bbox": [
933
+ 174,
934
+ 784,
935
+ 825,
936
+ 827
937
+ ],
938
+ "page_idx": 6
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Assumption 4.3 (Lipschitz continuity). For each $i \\in \\{ 1 , \\ldots , m \\}$ , there exists some positive and finite $G$ such that, the $i$ -th loss $f _ { t } ^ { i }$ at each round $t \\in \\{ 1 , \\ldots , T \\}$ is $G$ -Lipschitz continuous w.r.t. $\\| \\cdot \\|$ , i.e., $| f _ { t } ^ { i } ( x ) - f _ { t } ^ { i } ( x ^ { \\prime } ) | \\leq G \\| x - \\bar { x } ^ { \\prime } \\|$ . Note that in the convex setting, this assumption leads to bounded gradients, i.e., $\\| \\nabla f _ { t } ^ { i } ( x ) \\| _ { * } \\leq G$ for any $t \\in \\{ 1 , \\ldots , T \\} , i \\in \\{ 1 , \\ldots , m \\} , x \\in \\mathcal { X }$ . ",
943
+ "bbox": [
944
+ 174,
945
+ 830,
946
+ 825,
947
+ 888
948
+ ],
949
+ "page_idx": 6
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "295 We first provide the static regret bound. The proof is left to the appendix due to the lack of space. ",
954
+ "bbox": [
955
+ 143,
956
+ 90,
957
+ 810,
958
+ 106
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Theorem 4.4. Suppose the diameter of 296 $\\mathcal { X }$ is bounded by $D$ . Assume $F _ { t }$ is bounded, i.e., $| f _ { t } ^ { i } ( x ) | \\leq$ 297 $F , \\forall x \\in \\mathcal { X } , t \\in \\{ \\bar { 1 } , \\dots , T \\} , i \\in \\{ 1 , \\dots , m \\}$ . For any $\\lambda _ { 0 } \\in { S _ { m } }$ , DR-OMMD attains ",
965
+ "bbox": [
966
+ 138,
967
+ 109,
968
+ 823,
969
+ 140
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "equation",
975
+ "img_path": "images/244348e8a04debb30b6e01f798772fa63f1a766a31f073cc4754407ab786b25e.jpg",
976
+ "text": "$$\nR _ { \\mathrm { M O S } } ( T ) \\leq \\frac { 1 } { \\eta } B _ { R } ( x ^ { * } , x _ { 1 } ) + \\frac { \\eta } { 2 } \\sum _ { t = 1 } ^ { T } ( \\Vert \\nabla F _ { t } ( x _ { t } ) \\lambda _ { t } \\Vert _ { 2 } ^ { 2 } + \\frac { 4 F } { \\eta } \\Vert \\lambda _ { t } - \\lambda _ { 0 } \\Vert _ { 1 } ) .\n$$",
977
+ "text_format": "latex",
978
+ "bbox": [
979
+ 253,
980
+ 146,
981
+ 743,
982
+ 179
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Remark. (i) Linearization with weights $\\lambda _ { 0 } \\in \\mathcal { S } _ { m }$ can be viewed as single-objective optimization on scalar loss $\\lambda _ { 0 } ^ { \\top } F _ { t }$ , whose gradient is $g _ { t } = \\nabla F _ { t } ( x _ { t } ) \\lambda _ { 0 }$ . Hence we can directly borrow the tight bound of OMD (Theorem 6.8 in [27]) and derive a bound $\\begin{array} { r } { \\frac { 1 } { \\eta } B _ { R } ( x ^ { * } , x _ { 1 } ) + \\sum _ { t = 1 } ^ { T } \\frac { \\eta _ { t } } { 2 } \\| \\nabla F _ { t } ( x _ { t } ) \\lambda _ { 0 } \\| _ { 2 } ^ { 2 } } \\end{array}$ $\\lambda _ { t }$ r linearization. In co, the bound becomes $\\begin{array} { r } { \\frac { 1 } { \\eta } B _ { R } ( x ^ { * } , x _ { 1 } ) + \\frac { \\eta } { 2 } \\sum _ { t = 1 } ^ { T } \\operatorname* { m i n } _ { \\lambda \\in { \\cal S } _ { m } } \\{ \\| \\nabla F _ { t } ( x _ { t } ) \\lambda \\| ^ { 2 } + \\alpha \\| \\lambda - \\lambda _ { 0 } \\| _ { 1 } \\} . } \\end{array}$ $\\alpha = 4 F / \\eta$ ulation of, which is smaller than that of linearization. Note that the lower regret of DR-OMMD compared to linearization is also empirically verified in our experiments (see Figure 1). ",
989
+ "bbox": [
990
+ 140,
991
+ 191,
992
+ 826,
993
+ 301
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "(ii) When $\\begin{array} { r } { \\eta = \\frac { \\hat { \\sqrt { 2 \\gamma D } } } { G \\sqrt { T } } , \\alpha = \\frac { 4 F } { \\eta } } \\end{array}$ , the bound is in the order of $O ( \\sqrt { T } )$ . It matches the optimal static single-objective regret bound w.r.t. $T$ [11] (see more details in Appendix E). ",
1000
+ "bbox": [
1001
+ 160,
1002
+ 301,
1003
+ 825,
1004
+ 335
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Then we turn to the dynamic regret. Our analysis relies on an additional assumption [2, 32, 5]. ",
1011
+ "bbox": [
1012
+ 163,
1013
+ 340,
1014
+ 794,
1015
+ 356
1016
+ ],
1017
+ "page_idx": 7
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Assumption 4.5 (Temporal variability). For each $i \\in \\{ 1 , \\ldots , m \\}$ , there exists some positive and finite $V _ { T }$ such that $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T - 1 } \\operatorname* { s u p } _ { x \\in \\mathcal { X } } | f _ { t } ^ { i } ( x ) - f _ { t + 1 } ^ { i } ( x ) | \\leq V _ { T } } \\end{array}$ . ",
1022
+ "bbox": [
1023
+ 163,
1024
+ 358,
1025
+ 818,
1026
+ 393
1027
+ ],
1028
+ "page_idx": 7
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Theorem 4.6. Assume the step size satisfies 310 $\\begin{array} { r } { \\frac { 4 V _ { T } } { G ^ { 2 } T } \\leq \\eta \\leq \\frac { 4 V _ { T } } { G ^ { 2 } } } \\end{array}$ . Then under all the above assumptions, 311 for any preference $\\lambda _ { 0 } \\in { S _ { m } }$ , OMMD with min-regularized-norm attains ",
1033
+ "bbox": [
1034
+ 150,
1035
+ 396,
1036
+ 826,
1037
+ 428
1038
+ ],
1039
+ "page_idx": 7
1040
+ },
1041
+ {
1042
+ "type": "equation",
1043
+ "img_path": "images/95e535e5a9e21f4de7055d2b2a383d0d2930960b2c050fd2203447d57c6ea6c9.jpg",
1044
+ "text": "$$\nR _ { \\mathrm { M O D } } ( T ) \\leq \\frac { \\eta G ^ { 2 } T } { 2 } + \\frac { 4 \\gamma D V _ { T } } { \\eta ^ { 2 } G ^ { 2 } } + \\frac { \\eta } { 2 } \\sum _ { t = 1 } ^ { T } ( \\Vert \\nabla F _ { t } ( x _ { t } ) \\lambda _ { t } \\Vert _ { 2 } ^ { 2 } + \\frac { 8 F G ^ { 2 } T } { V _ { T } } \\Vert \\lambda _ { t } - \\lambda _ { 0 } \\Vert _ { 1 } ) .\n$$",
1045
+ "text_format": "latex",
1046
+ "bbox": [
1047
+ 220,
1048
+ 433,
1049
+ 777,
1050
+ 468
1051
+ ],
1052
+ "page_idx": 7
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Remark. When 312 $\\begin{array} { r } { \\eta = \\frac { 2 } { G } ( \\frac { \\gamma D V _ { T } } { G T } ) ^ { 1 / 3 } , \\alpha = \\frac { 8 F G ^ { 2 } T } { V _ { T } } } \\end{array}$ , the bound is in the order of $O ( T ^ { 2 / 3 } V _ { T } ^ { 1 / 3 } )$ , matching 313 the best attainable single-objective dynamic regret bound [2, 35] (see more details in Appendix E). ",
1057
+ "bbox": [
1058
+ 143,
1059
+ 482,
1060
+ 826,
1061
+ 516
1062
+ ],
1063
+ "page_idx": 7
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "5 Experiments ",
1068
+ "text_level": 1,
1069
+ "bbox": [
1070
+ 161,
1071
+ 535,
1072
+ 312,
1073
+ 553
1074
+ ],
1075
+ "page_idx": 7
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "In this section, we conduct extensive experiments to evaluate the effectiveness of DR-OMMD. We consider two baselines: (i) linearization performs single-objective online learning on the linearized loss $\\lambda _ { 0 } ^ { \\top } F _ { t }$ at each round $t$ , where the weights $\\lambda _ { 0 } \\in { S _ { m } }$ are given beforehand; note that it is equivalent to computing composite gradients with fixed weights $\\lambda _ { t } \\equiv \\lambda _ { 0 }$ . (ii) min-norm equips OMD with vanilla min-norm [7] for gradient composition. ",
1080
+ "bbox": [
1081
+ 161,
1082
+ 565,
1083
+ 825,
1084
+ 637
1085
+ ],
1086
+ "page_idx": 7
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "5.1 Simulation Experiments: Tracking the Pareto Front ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 165,
1094
+ 652,
1095
+ 575,
1096
+ 667
1097
+ ],
1098
+ "page_idx": 7
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "As summarized in Figure 1 (a), the goal is to track two points $\\xi _ { t } ^ { 1 } , \\xi _ { t } ^ { 2 }$ cycling along a circle ${ \\mathcal { C } } = \\{ \\xi \\in { }$ $\\mathbb { R } ^ { 2 } \\mid \\| \\xi \\| _ { 2 } = 1 \\}$ . For each $i \\in \\{ 1 , 2 \\}$ , $\\xi _ { t } ^ { i } = ( \\cos \\theta _ { t } ^ { i } , \\sin \\bar { \\theta } _ { t } ^ { i } )$ is determined by some angle $\\theta _ { t } ^ { i }$ . We set a positive integer $P ^ { i }$ as the rotating period of $\\xi _ { t } ^ { i }$ , which is unknown to the learner. The two points are initialized by $\\theta _ { 1 } ^ { 1 } = 0$ and $\\theta _ { 1 } ^ { 2 } = \\pi / 2$ and move as follows: at each round $t$ , for each $i \\in \\{ 1 , 2 \\}$ , the adversary independently samples an angle $\\delta _ { t } ^ { i }$ from a Gaussian distribution $\\mathcal { N } ( { 2 \\pi } / { P ^ { i } } , { 1 } / { \\sqrt { P ^ { i } } } )$ , then moves the $i$ -th point to $\\xi _ { t + 1 } ^ { i } \\bar { \\mathbf { \\xi } } = ( \\cos \\theta _ { t + 1 } ^ { i } , \\sin \\theta _ { t + 1 } ^ { i } )$ where $\\theta _ { t + 1 } ^ { i } = \\theta _ { t } ^ { i } - \\delta _ { t } ^ { i }$ . Note that $\\mathbb { E } \\theta _ { t + 1 } ^ { i } =$ $\\theta _ { 1 } ^ { i } + 2 \\pi t / P ^ { i }$ , hence in average $\\xi _ { t } ^ { i }$ rotates clockwise with a period of $P ^ { i }$ . At each round $t$ , the learner 1 generates a decision $x _ { t }$ from a $L 2$ -norm ball $\\mathcal { X } = \\{ x \\in \\mathbb { R } ^ { 2 ^ { \\cdot } } | \\ \\| x \\| _ { 2 } \\leq 2 \\}$ . Then it acquires $\\xi _ { t } ^ { 1 } , \\xi _ { t } ^ { 2 }$ and suffer the losses $f _ { t } ^ { i } ( x _ { t } ) = \\| x _ { t } - \\xi _ { t } ^ { i } \\| _ { 2 } ^ { 2 } / 2 , i \\in \\{ 1 , 2 \\}$ . In this problem, the Pareto set of $F _ { t } = ( f _ { t } ^ { \\mathrm { i } } , f _ { t } ^ { 2 } )$ is exactly the line segment between $\\xi _ { t } ^ { 1 }$ and $\\xi _ { t } ^ { 2 }$ , i.e., $\\mathcal { X } _ { t } ^ { * } = \\{ \\lambda \\xi _ { t } ^ { 1 } + ( 1 - \\lambda ) \\xi _ { t } ^ { 2 } \\ | \\ \\lambda \\in [ 0 , 1 ] \\}$ . A t each round $t$ , PSG measures the squared distance between $x _ { t }$ and $\\mathcal { X } _ { t } ^ { \\ast }$ . ",
1103
+ "bbox": [
1104
+ 171,
1105
+ 678,
1106
+ 826,
1107
+ 837
1108
+ ],
1109
+ "page_idx": 7
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "332 We run $T = 1 0 , 0 0 0$ rounds. To simulate the pattern drift, we set $P ^ { 1 } = 1 0 , P ^ { 2 } = 2 0$ at the first \n333 $T _ { 1 } = 3 , 0 0 0$ rounds, and $P ^ { 1 } = 2 0 , P ^ { 2 } = 1 0$ at the last $T _ { 2 } = 7 , 0 0 0$ rounds. For linearization, \n334 the weights $\\lambda _ { 0 } = ( \\lambda _ { 0 } ^ { 1 } , 1 - \\lambda _ { 0 } ^ { 1 } )$ are decided via a grid search $\\lambda _ { 0 } ^ { 1 } \\in \\{ 0 , 0 . 1 , . . . , 1 \\}$ ; we consider \n335 three variants: lin- $^ { 1 }$ uses the optimal $\\lambda _ { 0 }$ for the first $T _ { 1 }$ rounds, lin-2 uses the optimal $\\lambda _ { 0 }$ for the \n336 last $T _ { 2 }$ rounds, and lin-opt uses the optimal $\\lambda _ { 0 }$ for all $T$ rounds. For DR-OMMD, for fairness of ",
1114
+ "bbox": [
1115
+ 140,
1116
+ 842,
1117
+ 825,
1118
+ 912
1119
+ ],
1120
+ "page_idx": 7
1121
+ },
1122
+ {
1123
+ "type": "image",
1124
+ "img_path": "images/a3b4326a03d8acf25d9ced0df3ebeaa1dfb1dd10d00da99c7cc03a87bd49e358.jpg",
1125
+ "image_caption": [
1126
+ "Figure 1: Simulation setup and results. (a) The targets $\\xi _ { t } ^ { 1 } , \\xi _ { t } ^ { 2 }$ cycle along the circle. The Pareto set at each round is the line segment $[ \\xi _ { t } ^ { 1 } , \\xi _ { t } ^ { 2 } ]$ PSG measures the distance from $x _ { t }$ to $[ \\xi _ { t } ^ { 1 } , \\xi _ { t } ^ { 2 } ]$ (b) Performance of DR-OMMD and baselines. "
1127
+ ],
1128
+ "image_footnote": [],
1129
+ "bbox": [
1130
+ 179,
1131
+ 85,
1132
+ 480,
1133
+ 175
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "image",
1139
+ "img_path": "images/30ee82d59d0ad7951da9536a53b3265f80f8ed0fa2dccfd60c48a4136590979b.jpg",
1140
+ "image_caption": [
1141
+ "Figure 2: Results to verify the effectiveness of adaptive regularization on protein. (a) Performance of DR-OMMD and linearization under varying $\\lambda _ { 0 } = ( \\lambda _ { 0 } ^ { 1 } , 1 - \\lambda _ { 0 } ^ { 1 } )$ . (b) Performance using the optimal weights $\\lambda _ { 0 } = ( 0 . 1 , 0 . 9 )$ . "
1142
+ ],
1143
+ "image_footnote": [],
1144
+ "bbox": [
1145
+ 509,
1146
+ 88,
1147
+ 805,
1148
+ 176
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "comparison we use the same $\\lambda _ { 0 }$ of lin-opt. The learning rates $\\eta$ in all algorithms and the parameter $\\alpha$ in DR-OMMD follow the corresponding theories (e.g., Theorem 4.6). In this experiment, since the loss functions are manually designed, the value of $V _ { T }$ can be directly calculated. Note that in some scenarios where $V _ { T }$ is unknown, we can conduct a grid search and utilize a meta-algorithm to handle the unknown $V _ { T }$ [37, 1], similar to the single-objective setting. From the results in Figure 1 (b), we find that DR-OMMD achieves the lowest PSG, showing its ability to track the Pareto front; meanwhile, min-norm appears very unstable in the online setting, even worse than linearization. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 268,
1158
+ 825,
1159
+ 366
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "5.2 Convex Experiments: Adaptive Regularization via Multi-Objective Optimization ",
1166
+ "text_level": 1,
1167
+ "bbox": [
1168
+ 161,
1169
+ 382,
1170
+ 774,
1171
+ 398
1172
+ ],
1173
+ "page_idx": 8
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "In many real-world online scenarios, regularization is often adopted to avoid overfitting. A standard way is to add a term $r ( x )$ to the loss $f _ { t } ( x )$ at each round and optimize the regularized loss $f _ { t } ( x ) +$ $\\sigma r ( x )$ [24], where $\\sigma$ is treated as a hyperparameter that needs to be fixed beforehand. The formalism of multi-objective online learning provides a novel way to realize regularization. Since $r ( x )$ measures the complexity of $x$ , it can be regarded as the second objective alongside the primary goal $f _ { t } ( x )$ . We can construct a vector loss $F _ { t } ( \\bar { x ) = ( f _ { t } ( x ) , r ( x ) ) }$ at each round and thereby cast regularized online learning into a bi-objective online optimization problem. Compared to fixed regularization, the new approach effectively chooses the regularization strength $\\sigma _ { t } = \\bar { \\lambda } _ { t } ^ { 2 } / \\lambda _ { t } ^ { 1 }$ in an adaptive way. ",
1178
+ "bbox": [
1179
+ 173,
1180
+ 409,
1181
+ 825,
1182
+ 520
1183
+ ],
1184
+ "page_idx": 8
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "353 We use two large-scale online benchmark datasets. (i) protein is a bioinformatics dataset for protein \n354 type classification [31], which has 17 thousand instances with 357 features. (ii) covtype is a biological \n355 dataset collected from a non-stationary environment for forest cover type prediction [3], which has \n356 50 thousand instances with 54 features. For both tasks, we set the logistic loss of classification as \n357 the first objective, and the squared $L 2$ -norm of model parameters as the second objective. Since the \n358 ultimate goal of regularization is to enhance predictive performance, we adopt the average loss as the \n359 performance metric, namely $\\textstyle \\sum _ { t \\leq T } l _ { t } ( x _ { t } ) / { \\bar { T } }$ , where $l _ { t } ( x _ { t } )$ is the classification loss at round $t$ . ",
1189
+ "bbox": [
1190
+ 140,
1191
+ 526,
1192
+ 825,
1193
+ 625
1194
+ ],
1195
+ "page_idx": 8
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "We adopt a $L 2$ -norm ball centered at the origin with diameter $K = 1 0 0$ as the decision set. The learning rates are decided by a grid search over $\\{ 0 . 1 , 0 . 2 , \\ldots , 3 . 0 \\}$ . For DR-OMMD, the parameter $\\alpha$ is simply set as 0.1. For fixed regularization, the strength $\\sigma = ( 1 - \\lambda _ { 0 } ^ { 1 } ) / \\lambda _ { 0 } ^ { 1 }$ is determined by the some preference $\\lambda _ { 0 } ^ { 1 } \\in [ 0 , 1 ]$ , which is essentially linearization with weights $\\overset { \\vartriangle } { \\lambda _ { 0 } } = ( \\lambda _ { 0 } ^ { 1 } , 1 - \\lambda _ { 0 } ^ { \\bar { 1 } } )$ . We run both algorithms with varying initial weights $\\lambda _ { 0 } ^ { 1 } \\in \\{ 0 , 0 . 1 , . . . , 1 \\}$ . In Figure 2, we plot (a) their final performance w.r.t. the choice of $\\lambda _ { 0 }$ and (b) their learning curves with desirable $\\lambda _ { 0 }$ (e.g., (0.1, 0.9) on protein). Other results are deferred to the appendix due to the lack of space. The results show that DR-OMMD consistently outperforms fixed regularization. ",
1200
+ "bbox": [
1201
+ 161,
1202
+ 631,
1203
+ 825,
1204
+ 742
1205
+ ],
1206
+ "page_idx": 8
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "6 Conclusions ",
1211
+ "text_level": 1,
1212
+ "bbox": [
1213
+ 171,
1214
+ 762,
1215
+ 305,
1216
+ 779
1217
+ ],
1218
+ "page_idx": 8
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "In this paper, we give a systematic study of multi-objective optimization in the online setting. We first formulate the framework of Multi-Objective Online Convex Optimization. Then we devise the Doubly Regularized Online Mirror Multiple Descent algorithm, which has a special design for gradient composition in online learning, namely min-regularized-norm. We provide non-trivial regret bounds for DR-OMMD and conduct extensive experiments to demonstrate its effectiveness. ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 794,
1226
+ 823,
1227
+ 863
1228
+ ],
1229
+ "page_idx": 8
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Limitations. As the first step of studying multiple gradient algorithm in online learning, we conduct our analysis in the convex setting. Although it does not affect the usage in the non-convex setting (see empirical validation in Appendix F), we can give a formal non-convex analysis in the future. ",
1234
+ "bbox": [
1235
+ 165,
1236
+ 869,
1237
+ 823,
1238
+ 911
1239
+ ],
1240
+ "page_idx": 8
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "References \n[1] Dheeraj Baby and Yu-Xiang Wang. Optimal dynamic regret in exp-concave online learning. In Conference on Learning Theory, pages 359–409. PMLR, 2021. \n[2] Omar Besbes, Yonatan Gur, and Assaf Zeevi. Non-stationary stochastic optimization. Operations Research, 63(5):1227–1244, 2015. \n[3] Jock A Blackard and Denis J Dean. Comparative accuracies of artificial neural networks and discriminant analysis in predicting forest cover types from cartographic variables. Computers and Electronics in Agriculture, 24(3):131–151, 1999. \n[4] Lucas Bradstreet. The hypervolume indicator for multi-objective optimisation: calculation and use. University of Western Australia Perth, 2011. \n[5] Nicolò Campolongo and Francesco Orabona. A closer look at temporal variability in dynamic online learning. arXiv preprint arXiv:2102.07666, 2021. \n[6] Kalyanmoy Deb. Multi-objective optimization. In Search methodologies, pages 403–449. 2014. \n[7] Jean-Antoine Désidéri. Multiple-gradient descent algorithm for multiobjective optimization. Comptes Rendus Mathematique, 350(5-6):313–318, 2012. \n[8] John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of machine learning research, 12(7), 2011. \n[9] Jörg Fliege and Benar Fux Svaiter. Steepest descent methods for multicriteria optimization. Mathematical Methods of Operations Research, 51(3):479–494, 2000. \n[10] Eric Hall and Rebecca Willett. Dynamical models and tracking regret in online convex programming. In International Conference on Machine Learning, pages 579–587, 2013. \n[11] Elad Hazan et al. Introduction to online convex optimization. Foundations and Trends® in Optimization, 2(3-4):157–325, 2016. \n[12] Xinyu Huang, Peng Wang, Xinjing Cheng, Dingfu Zhou, Qichuan Geng, and Ruigang Yang. The apolloscape open dataset for autonomous driving and its application. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(10):2702–2719, 2019. \n[13] Ali Jadbabaie, Alexander Rakhlin, Shahin Shahrampour, and Karthik Sridharan. Online optimization: Competing with dynamic comparators. In Artificial Intelligence and Statistics, pages 398–406, 2015. \n[14] Martin Jaggi. Revisiting Frank-Wolfe: Projection-free sparse convex optimization. In International Conference on Machine Learning, pages 427–435, 2013. \n[15] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In IEEE Conference on Computer Vision and Pattern Recognition, pages 7482–7491, 2018. \n[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \n[17] Xi Lin, Hui-Ling Zhen, Zhenhua Li, Qing-Fu Zhang, and Sam Kwong. Pareto multi-task learning. In Advances in Neural Information Processing Systems, pages 12060–12070, 2019. \n[18] Bo Liu, Xingchao Liu, Xiaojie Jin, Peter Stone, and Qiang Liu. Conflict-averse gradient descent for multi-task learning. arXiv preprint arXiv:2110.14048, 2021. \n[19] Shiyin Lu, Guanghui Wang, Yao Hu, and Lijun Zhang. Multi-objective generalized linear bandits. In International Joint Conference on Artificial Intelligence, pages 3080–3086, 2019. \n[20] Weixin Lu, Yao Zhou, Guowei Wan, Shenhua Hou, and Shiyu Song. L3-net: Towards learning based lidar localization for autonomous driving. In IEEE Conference on Computer Vision and Pattern Recognition, pages 6389–6398, 2019. \n[21] Jiaqi Ma, Zhe Zhao, Xinyang Yi, Jilin Chen, Lichan Hong, and Ed H Chi. Modeling task relationships in multi-task learning with multi-gate mixture-of-experts. In International Conference on Knowledge Discovery & Data Mining, pages 1930–1939, 2018. \n[22] Xiao Ma, Liqin Zhao, Guan Huang, Zhi Wang, Zelin Hu, Xiaoqiang Zhu, and Kun Gai. Entire space multi-task model: An effective approach for estimating post-click conversion rate. In International ACM SIGIR Conference on Research & Development in Information Retrieval, pages 1137–1140, 2018. \n[23] R Timothy Marler and Jasbir S Arora. Survey of multi-objective optimization methods for engineering. Structural and Multidisciplinary Optimization, 26(6):369–395, 2004. \n[24] Brendan McMahan. Follow-the-regularized-leader and mirror descent: Equivalence theorems and L1 regularization. In International Conference on Artificial Intelligence and Statistics, pages 525–533, 2011. \n[25] H Brendan McMahan. A survey of algorithms and analysis for adaptive online learning. The Journal of Machine Learning Research, 18(1):3117–3166, 2017. \n[26] Tadahiko Murata, Hisao Ishibuchi, et al. MOGA: multi-objective genetic algorithms. In IEEE International Conference on Evolutionary Computation, pages 289–294, 1995. \n[27] Francesco Orabona. A modern introduction to online learning. arXiv preprint arXiv:1912.13213, 2019. \n[28] Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of Adam and beyond. In International Conference on Learning Representations, 2018. \n[29] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. In Advances in Neural Information Processing Systems, pages 525–536, 2018. \n[30] Eralp Turgay, Doruk Oner, and Cem Tekin. Multi-objective contextual bandit problem with similarity information. In International Conference on Artificial Intelligence and Statistics, pages 1673–1681, 2018. \n[31] Jung-Ying Wang. Application of support vector machines in bioinformatics. PhD thesis, National Taiwan University, 2002. \n[32] Tianbao Yang, Lijun Zhang, Rong Jin, and Jinfeng Yi. Tracking slowly moving clairvoyant: Optimal dynamic regret of online learning with true and noisy gradient. In International Conference on Machine Learning, pages 449–457, 2016. \n[33] Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning. In Advances in Neural Information Processing Systems, pages 5824–5836, 2020. \n[34] Lijun Zhang, Shiyin Lu, and Zhi-Hua Zhou. Adaptive online learning in dynamic environments. In Advances in Neural Information Processing Systems, pages 1330–1340, 2018. \n[35] Lijun Zhang, Tianbao Yang, Zhi-Hua Zhou, et al. Dynamic regret of strongly adaptive methods. In International Conference on Machine Learning, pages 5882–5891, 2018. \n[36] Richard Zhang and Daniel Golovin. Random hypervolume scalarizations for provable multiobjective black box optimization. In International Conference on Machine Learning, pages 11096–11105, 2020. \n[37] Peng Zhao, Yu-Jie Zhang, Lijun Zhang, and Zhi-Hua Zhou. Dynamic regret of convex and smooth functions. Advances in Neural Information Processing Systems, 33:12510–12520, 2020. \n[38] Martin Zinkevich. Online convex programming and generalized infinitesimal gradient ascent. In International Conference on Machine Learning, pages 928–936, 2003. \n[39] Eckart Zitzler and Lothar Thiele. Multiobjective evolutionary algorithms: A comparative case study and the strength Pareto approach. IEEE transactions on Evolutionary Computation, 3(4):257–271, 1999. ",
1245
+ "bbox": [
1246
+ 169,
1247
+ 71,
1248
+ 828,
1249
+ 916
1250
+ ],
1251
+ "page_idx": 9
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "",
1256
+ "bbox": [
1257
+ 166,
1258
+ 60,
1259
+ 828,
1260
+ 915
1261
+ ],
1262
+ "page_idx": 10
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "1. For all authors... ",
1267
+ "bbox": [
1268
+ 214,
1269
+ 116,
1270
+ 339,
1271
+ 131
1272
+ ],
1273
+ "page_idx": 11
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 6. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] Our work is concerning a general problem in online learning. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1278
+ "bbox": [
1279
+ 238,
1280
+ 135,
1281
+ 825,
1282
+ 241
1283
+ ],
1284
+ "page_idx": 11
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "2. If you are including theoretical results... ",
1289
+ "bbox": [
1290
+ 214,
1291
+ 244,
1292
+ 493,
1293
+ 258
1294
+ ],
1295
+ "page_idx": 11
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 4.3. (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix G, H, I. ",
1300
+ "bbox": [
1301
+ 238,
1302
+ 262,
1303
+ 825,
1304
+ 308
1305
+ ],
1306
+ "page_idx": 11
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "3. If you ran experiments... ",
1311
+ "bbox": [
1312
+ 214,
1313
+ 311,
1314
+ 393,
1315
+ 327
1316
+ ],
1317
+ "page_idx": 11
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "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] They are included in the supplementary materials. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] We conduct online learning experiments, where the learning process is deterministic. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix E. ",
1322
+ "bbox": [
1323
+ 238,
1324
+ 330,
1325
+ 825,
1326
+ 477
1327
+ ],
1328
+ "page_idx": 11
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1333
+ "bbox": [
1334
+ 212,
1335
+ 481,
1336
+ 823,
1337
+ 496
1338
+ ],
1339
+ "page_idx": 11
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We cite the source of datasets. \n(b) Did you mention the license of the assets? [Yes] In the supplemental material. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] Our codes are provided in the supplemental material. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] We only use publicly available benchmark datasets. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] We only use publicly available benchmark datasets. ",
1344
+ "bbox": [
1345
+ 238,
1346
+ 500,
1347
+ 825,
1348
+ 647
1349
+ ],
1350
+ "page_idx": 11
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1355
+ "bbox": [
1356
+ 214,
1357
+ 652,
1358
+ 705,
1359
+ 667
1360
+ ],
1361
+ "page_idx": 11
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "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] ",
1366
+ "bbox": [
1367
+ 238,
1368
+ 671,
1369
+ 825,
1370
+ 761
1371
+ ],
1372
+ "page_idx": 11
1373
+ }
1374
+ ]
parse/dev/pfNyExj7z2/pfNyExj7z2.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VECTOR-QUANTIZED IMAGE MODELING WITH IMPROVED VQGAN
2
+
3
+ Jiahui Yu Xin Li Jing Yu Koh Han Zhang Ruoming Pang James Qin Alexander Ku Yuanzhong Xu Jason Baldridge Yonghui Wu
4
+
5
+ Google Research
6
+
7
+ jiahuiyu@google.com
8
+
9
+ # ABSTRACT
10
+
11
+ Pretraining language models with next-token prediction on massive text corpora has delivered phenomenal zero-shot, few-shot, transfer learning and multi-tasking capabilities on both generative and discriminative language tasks. Motivated by this success, we explore a Vector-quantized Image Modeling (VIM) approach that involves pretraining a Transformer to predict rasterized image tokens autoregressively. The discrete image tokens are encoded from a learned Vision-Transformerbased VQGAN (ViT-VQGAN). We first propose multiple improvements over vanilla VQGAN from architecture to codebook learning, yielding better efficiency and reconstruction fidelity. The improved ViT-VQGAN further improves vectorquantized image modeling tasks, including unconditional, class-conditioned image generation and unsupervised representation learning. When trained on ImageNet at $2 5 6 \times 2 5 6$ resolution, we achieve Inception Score (IS) of 175.1 and Frechet Inception Distance (FID) of 4.17, a dramatic improvement over the vanilla ´ VQGAN, which obtains 70.6 and 17.04 for IS and FID, respectively. Based on ViT-VQGAN and unsupervised pretraining, we further evaluate the pretrained Transformer by averaging intermediate features, similar to Image GPT (iGPT). This ImageNet-pretrained VIM-L significantly beats iGPT-L on linear-probe accuracy from $6 0 . 3 \%$ to $7 3 . 2 \%$ for a similar model size. ViM-L also outperforms iGPT-XL which is trained with extra web image data and larger model size.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Natural language processing (NLP) has recently experienced dramatic improvements from learning general-purpose representations by pretraining language models on unlabeled text corpora. This strategy has produced large performance gains for a wide range of natural language generation (NLG) and natural language understanding (NLU) tasks (Dai & Le, 2015; Radford et al., 2018; 2019; Brown et al., 2020). Conceptually, generative pretraining models the data density $P ( X )$ in a tractable way, with the hope of also helping discriminative tasks of $P ( { Y \vert } X )$ (Lasserre et al., 2006); importantly, there are no limitations on whether the signals are from the language domain or others, such as vision.
16
+
17
+ In computer vision, in contrast, most recent unsupervised or self-supervised learning research focuses on applying different random augmentations to images, with the pretraining objective to distinguish image instances (Chen et al., 2020b; He et al., 2020; Chen et al., 2020d; Grill et al., 2020; Chen et al., $2 0 2 0 \mathrm { c }$ ; Caron et al., 2021). The quality of learned representation relies on manually chosen augmentations, such as random brightness, cropping, blurring, and others. Chen et al. (2020a) explored GPT-style (Radford et al., 2018) generative pretraining on images by autoregressively predicting pixels without incorporating knowledge of the 2D structure. Each pixel is represented as a 9-bit value created by clustering (R, G, B) pixel values, using k-means with $_ { \mathrm { k } = 5 1 2 }$ . Unfortunately, this color encoding does not scale to typical image resolutions as it entails very long sequences to represent the image (e.g., $2 2 4 \times 2 2 4$ resolution leads to 50,176 tokens per image), and this demands much more memory and computation for training, compared to language models. As a result, iGPT’s maximum resolution is $6 4 \times 6 4$ for image recognition at scale—which severely limits its representation capabilities.
18
+
19
+ ![](images/dcffd61f6310583296baec12b1619c518511d41255d7c41866c6e4b3aab1f278.jpg)
20
+ Figure 1: Overview of ViT-VQGAN (left) and Vector-quantized Image Modeling (right) for both image generation and image understanding.
21
+
22
+ Remarkable image generation results have been achieved by pre-quantizing images into discrete latent variables and modeling them autoregressively, including VQVAE (Oord et al., 2017), DALLE (Ramesh et al., 2021) and VQGAN (Esser et al., 2021). In these approaches, a convolution neural network (CNN) is learned to auto-encode an image and a second stage CNN or Transformer is learned to model the density of encoded latent variables. These have been proved effective for image generation, but few studies have evaluated the learned representation in discriminative tasks (Ramesh et al., 2021; Esser et al., 2021).
23
+
24
+ We explore an approach we refer to as Vector-quantized Image Modeling (VIM) and apply it to both image generation and image understanding tasks. VIM follows a two-stage approach:
25
+
26
+ • Stage 1: Image Quantization. Given an image of resolution $2 5 6 \times 2 5 6$ , a VisionTransformer-based VQGAN encodes it into $3 2 \times 3 2$ discretized latent codes where the codebook size is 8192. We propose multiple improvements–from architecture to codebook learning–to VQGAN (Esser et al., 2021). The resulting ViT-VQGAN is more efficient and improves reconstruction fidelity in terms of pixel-wise reconstruction metrics, Inception Score (IS) and Frechet Inception Distance (FID). ViT-VQGAN is trained end-to-end on ´ image-only data with combined objective functions of logit-laplace loss, $\ell _ { 2 }$ loss, adversarial loss and perceptual loss (Johnson et al., 2016; Zhang et al., 2018). • Stage 2: Vector-quantized Image Modeling. We train a Transformer model to predict rasterized $3 2 \times 3 2 = 1 0 2 4$ image tokens autoregressively, where image tokens are encoded by a learned Stage 1 ViT-VQGAN. For unconditional image synthesis or unsupervised learning, we pretrain a decoder-only Transformer model to predict the next token. For class-conditioned image synthesis, a class-id token is prepended before the image tokens. To evaluate the quality of unsupervised learning, we average the intermediate Transformer features and learn a linear head to predict the logit of the classes (a.k.a., linear-probe).
27
+
28
+ We show that one key component for improving both image generation and image understanding with VIM is to have a better image quantizer with respect to both computational efficiency and reconstruction quality. An efficient quantizer can speed up Stage 2 training, where random augmentations are applied first to an image, followed by the encoder of image quantizer to obtain the input tokens. Moreover, an image quantizer with better reconstruction quality can reduce information loss compared with the original image in pixel space, which is critical for image understanding tasks.
29
+
30
+ The evaluations of our proposed ViT-VQGAN and VIM are studied with three aspects. (1) We evaluate the image quantizer based on reconstruction quality metrics including $\ell _ { 1 }$ distance, $\ell _ { 2 }$ distance, log-laplace distance, as well as Inception Score (IS) and Frechet Inception Distance (FID) ´ of reconstructed images. (2) We evaluate the capabilities of the learned quantizer for unconditional or class-conditioned image synthesis based on FID and IS, and compare with other methods. (3) We rely on linear-probe accuracy to evaluate representations with the common intuition that good features should linearly separate the classes of downstream tasks.
31
+
32
+ # 2 RELATED WORK
33
+
34
+ Image Synthesis. Image generation has received much attention with the progress of deep generative models, including Generative Adversarial Networks (GANs) (Goodfellow et al., 2014; Zhang et al., 2019b), Variational Autoencoders (VAEs) (Kingma & Welling, 2014; Vahdat & Kautz, 2020), Diffusion Models (Song & Ermon, 2019; Dhariwal & Nichol, 2021) and Autoregressive Models (van den Oord et al., 2016; Parmar et al., 2018). Unlike many autogressive methods which generate sequence directly in pixel space, VQVAE (van den Oord et al., 2017; Razavi et al., 2019) decomposes the image generation process into two stages: the first stage trains a vector quantized autoencoder with image reconstruction objective to convert an image into a shorter sequence of discrete tokens. Then the second stage learns an autoregressive model, e.g., PixelSNAIL (Chen et al., 2018), to model the underlying distribution of token sequences. Driven by the effectiveness of VQVAE and progress in sequence modeling (Vaswani et al., 2017; Devlin et al., 2019), many approaches follow the two-stage paradigm. DALL-E (Ramesh et al., 2021) improves token prediction in second stage by using Transformers (Vaswani et al., 2017), resulting in a strong text-to-image synthesis model. VQGAN (Esser et al., 2021) further uses adversarial loss and perceptual loss (Johnson et al., 2016; Zhang et al., 2018) to train a better autoencoder in the first stage to synthesize greater detail in images.
35
+
36
+ Image Recognition with Generative Pretraining. Many image generation models (Goodfellow et al., 2014; Kingma & Welling, 2014; Radford et al., 2016; Donahue et al., 2017; Higgins et al., 2017) have been studied for their capabilities in representation learning. However, their performance is usually not superior to competing self-supervised approaches that solve auxiliary classification tasks (Noroozi & Favaro, 2016a; Gidaris et al., 2018a; van den Oord et al., 2018). BigBiGAN (Donahue & Simonyan, 2019a) first demonstrated that a generation-based model can match other self-supervised methods in representation learning on ImageNet. iGPT (Chen et al., 2020a) uses the autoregressive objective to learn a giant transformer that directly predicts pixel values, producing even more competitive results. Compared to iGPT, our method first tokenizes the original image into discrete image tokens and then trains a transformer to predict them. As a result, our approach obtains comparable results with smaller model and less data. Similar to our method in predicting image tokens, BEiT (Bao et al., 2021) follows pre-training scheme of BERT Devlin et al. (2019) by learning to recover randomly masked image tokens with a bidirectional transformer. Unlike BEiT, we explore vector-quantized image modeling for image generation in addition to image recognition.
37
+
38
+ # 3 VECTOR-QUANTIZED IMAGES WITH VIT-VQGAN
39
+
40
+ The Vector-quantized Variational AutoEncoder (VQVAE) (van den Oord et al., 2017) is a CNNbased auto-encoder whose latent space is a matrix of discrete learnable variables, trained end-to-end via straight-through estimation. Esser et al. (2021) introduce VQGAN, a model which improves upon VQVAE by introducing an adversarial loss produced by a discriminator. Below, we introduce further improvements to VQGAN that boost efficiency and enhance reconstruction quality.
41
+
42
+ # 3.1 VQGAN WITH VISION TRANSFORMERS
43
+
44
+ The core network architectures used by both VQVAE and VQGAN to encode and reconstruct images are CNNs. VQGAN introduces transformer-like elements in the form of non-local attention block (Zhang et al., 2019a), allowing it to capture distant interactions with fewer layers. We propose taking this approach one step further by replacing the CNN encoder and decoder with Vision Transformer (ViT) (Dosovitskiy et al., 2020), as shown in Figure 1. Given sufficient data (for which unlabeled image data is plentiful) we find that ViT-VQGAN is less constrained by the inductive priors imposed by convolutions. Furthermore, ViT-VQGAN yields better computational efficiency on accelerators, and produces higher quality reconstructions, as shown in Table 1.
45
+
46
+ The encoder of ViT-VQGAN first maps $8 \times 8$ non-overlapping image patches into image tokens, followed by Transformer blocks, encoding a $2 5 6 \times 2 5 6$ resolution image into a $3 2 \times 3 2 { = } 1 0 2 4$ token sequence. The decoder performs the inverse operation, mapping each image token from latent variables back to $8 \times 8$ image patches and regrouping them into a $2 5 6 \times 2 5 6$ image (see Figure 1). At the output of transformer blocks, we apply a two-layer feed-forward network with a tanh activation layer in the middle. No activation is applied at the output of ViT-VQGAN encoder or decoder. We find that this simple approach yields high quality reconstructions without any noticeable grid artifacts.
47
+
48
+ Table 1: ViT-VQGAN achieves better speed-quality trade-offs compared with CNN-VQGAN. This in turn further speeds up Stage 2 training. Throughputs are benchmarked with the same 128 CloudTPUv4 devices.
49
+
50
+ <table><tr><td>Architecture</td><td>Model Size (encoder-decoder)</td><td>Throughput 个 (imgs/sec)</td><td>l2loss (1e-2)</td><td>Logit-Laplace loss ↓</td><td>FID↓</td><td>IS↑</td></tr><tr><td>ViT-VQGAN</td><td>Small-Small</td><td>1520</td><td>3.34</td><td>-2.44</td><td>1.99</td><td>184.4</td></tr><tr><td>CNN-VQGAN</td><td>Channels ×1</td><td>946</td><td>3.81</td><td>-2.36</td><td>2.26</td><td>178.7</td></tr><tr><td>ViT-VQGAN</td><td>Base-Base</td><td>960</td><td>3.09</td><td>-2.54</td><td>1.55</td><td>190.2</td></tr><tr><td>CNN-VQGAN</td><td>Channels × 2</td><td>400</td><td>3.44</td><td>-2.46</td><td>1.91</td><td>183.4</td></tr><tr><td>ViT-VQGAN</td><td> Small-Large</td><td>384</td><td>2.88</td><td>-2.58</td><td>1.28</td><td>192.3</td></tr></table>
51
+
52
+ # 3.2 CODEBOOK LEARNING
53
+
54
+ Vanilla VQVAEs usually suffer from low codebook usage due to the poor initialization of the codebook. Therefore, during training a significant portion of codes are rarely used, or dead. The reduction in effective codebook size results in worse reconstructions in stage 1 quantizer training and poor diversity in stage 2 for image synthesis. As a result, VQGAN (Esser et al., 2021) relies on top$k$ and top- $p$ (nucleus) sampling heuristics (Holtzman et al., 2020) with a default codebook size of 1024 to obtain best results for image synthesis. We propose two improvements that can significantly encourage the codebook usage even with a larger codebook size of 8192. During image synthesis, we perform simple sampling with temperature of 1.0 without top- $k$ and top- $p$ heuristics.
55
+
56
+ The training objective of vector-quantization is defined as follows:
57
+
58
+ $$
59
+ L _ { \mathrm { V Q } } = \| \mathbf { s g } [ z _ { e } ( x ) ] - e \| _ { 2 } ^ { 2 } + \beta \| z _ { e } ( x ) - \mathbf { s g } [ e ] \| _ { 2 } ^ { 2 } .
60
+ $$
61
+
62
+ Here, $\operatorname { s g } ( x ) \equiv x$ , $\begin{array} { r } { { \frac { \mathrm { d } } { \mathrm { d } x } } \mathrm { s g } ( x ) \equiv 0 } \end{array}$ is the stop-gradient operator, $\beta$ is a commitment loss hyperparameter set to 0.25 in all our experiments, and $e$ is the codebook vector. The quantized codebook index is determined by looking up the codebook vector closest to the input features $z _ { e } ( x )$ in terms of the Euclidean distance, yielding $i = \mathrm { a r g m i n } _ { j } \| z _ { e } ( x ) - e _ { j } \| _ { 2 } ^ { 2 }$ .
63
+
64
+ Factorized codes. We introduce a linear projection from the output of the encoder to a lowdimensional latent variable space for code index lookup (e.g., reduced from a 768-d vector to a 32-d or 8-d vector per code) and find it has an immediate boost of codebook usage. The factorization can be viewed as decoupling code lookup and code embedding: we lookup the the closest variable encoded from input on a lower-dimensional lookup space and then project the matched latent code to the high-dimensional embedding space. Our experiments show reducing dimension of lookup space from 256-d to 32-d consistently improves reconstruction quality. A detailed illustration is provided in the supplementary materials.
65
+
66
+ $\ell _ { 2 }$ -normalized codes. We also apply $\ell _ { 2 }$ normalization on the encoded latent variables $z _ { e } ( x )$ and codebook latent variables $e$ . The codebook variables are initialized from a normal distribution. By mapping all latent variables on a sphere, the Euclidean distance of $\ell _ { 2 }$ -normalized latent variables $| | \ell _ { 2 } ( \bar { z } _ { e } ( \bar { x } ) ) - \ell _ { 2 } ( e _ { j } ) | | _ { 2 } ^ { 2 }$ evolves to the cosine similarity of two vectors between $z _ { e } ( x )$ and $e$ , further improving training stability and reconstruction quality shown in our experiments.
67
+
68
+ # 3.3 VIT-VQGAN TRAINING LOSSES
69
+
70
+ We use a combination of logit-laplace loss, $\ell _ { 2 }$ loss, perceptual loss (Johnson et al., 2016; Zhang et al., 2018) based on VGG network (Simonyan & Zisserman, 2014) and GAN loss with architecture of StyleGAN discriminator (Karras et al., 2020). Loss balancing weights are configured with a hyper-parameter sweep to optimize image reconstruction quality, codebook usage, FID and Inception Score. After the sweep, we apply the same set of hyper-parameters of training losses to all datasets including CelebA-HQ, FFHQ, and ImageNet. Logit-Laplace loss can be viewed as normalized $\ell _ { 1 }$ loss which assumes the noise at the pixel level is laplace-distributed while $\ell _ { 2 }$ loss assumes the noise is of a Gaussian distribution. We find logit-laplace loss contributes to codebook usage while $\ell _ { 2 }$ loss and perceptual loss significantly contribute to FID. The final loss combination we used by default is $L = L _ { \mathrm { { V Q } } } + 0 . 1 L _ { \mathrm { { A d v } } } + 0 . 1 L _ { \mathrm { { P e r c e p t u a l } } } + 0 . 1 L _ { \mathrm { { L o g i t } \mathrm { { - } \mathrm { { l a p l a c e } } } } } + 1 . 0 L _ { \mathrm { { 2 } } } .$ .
71
+
72
+ Table 2: Transformer architectures of Stage 1 ViT-VQGAN and Stage 2 VIM.
73
+
74
+ <table><tr><td>Model</td><td>Size</td><td>#Params</td><td>#Blocks</td><td>#Heads</td><td>Model Dim</td><td>Hidden Dim</td><td>Dropout</td><td>#Tokens</td></tr><tr><td>ViT-VQGAN</td><td>Small</td><td>32M</td><td>8</td><td>8</td><td>512</td><td>2048</td><td>0.0</td><td>1024</td></tr><tr><td>ViT-VQGAN</td><td>Base</td><td>91M</td><td>12</td><td>12</td><td>768</td><td>3072</td><td>0.0</td><td>1024</td></tr><tr><td>ViT-VQGAN</td><td>Large</td><td>599M</td><td>32</td><td>16</td><td>1280</td><td>5120</td><td>0.0</td><td>1024</td></tr><tr><td>VIM</td><td>Base</td><td>650M</td><td>24</td><td>16</td><td>1536</td><td>6144</td><td>0.1</td><td>1024</td></tr><tr><td>VIM</td><td>Large</td><td>1697M</td><td>36</td><td>32</td><td>2048</td><td>8192</td><td>0.1</td><td>1024</td></tr></table>
75
+
76
+ One caveat on the VGG-based perceptual loss is that the VGG network is pretrained with supervised classification loss, so the supervision might leak into Stage 2 for linear-probe accuracy measurement. Thus, for all of our reported unsupervised learning results, we exclude the perceptual loss during ViT-VQGAN training. For all unconditional and class-conditioned image synthesis, we use ViTVQGAN quantizers trained with perceptual loss, as it leads to higher-fidelity reconstructions.
77
+
78
+ # 4 VECTOR-QUANTIZED IMAGE MODELING
79
+
80
+ With a learned ViT-VQGAN, images are encoded into discrete latent code ids flattened in the raster order, similar to Image GPT (Chen et al., 2020a). A decoder-only Transformer model is used to model the density of image data $P ( x )$ autoregressively as
81
+
82
+ $$
83
+ P ( x ) = \prod _ { i = 1 } ^ { n } P ( x _ { i } | x _ { 1 } , x _ { 2 } , . . . , x _ { i - 1 } ; \theta ) ,
84
+ $$
85
+
86
+ where $\theta$ is learnable weights. The training objective is to minimize the negative log-likelihood of the data $L = \mathbb { E } _ { x \in X } [ - l o g P ( x ) ]$ .
87
+
88
+ Table 2 summarizes the architecture configurations for the Transformers. We first embed discrete image token ids into a learnable embedding space at each position, with an additive learnable 2D positional embedding. Both embedding dimensions are the same as model dimension. We apply a stack of Transformer blocks to the inputs with causal attention over the entire sequence. A dropout ratio of 0.1 is used in all residual, activation and attention outputs. At the final layer of all Transformer blocks, we apply an additional layer normalization.
89
+
90
+ # 4.1 IMAGE SYNTHESIS
91
+
92
+ With a pretrained generative Transformer model, unconditional image generation is achieved by simply sampling token-by-token from the output softmax distribution. All samples used for both qualitative and quantitative results are obtained without temperature reduction. The sampled tokens are then fed into the decoder of ViT-VQGAN to decode output images. Our default Stage 1 ViTVQGAN encodes input images of resolution $2 5 6 \times 2 5 6$ into $3 2 \times 3 2$ latent codes with a codebook size 8192, while Stage 2 Transformer takes the flattened image tokens with total a length of 1024.
93
+
94
+ Class-conditioned ImageNet generation is also a widely used benchmark for measuring capabiltiy of models for image synthesis. We extend the unconditional generation to class-conditioned generation by prepending a class-id token before the image tokens. Separate embedding layers are learned from scratch for class-id token and image tokens, with the embedding dimension the same as the Transformer model dimension. During sampling, a class-id token is provided at the first position to decode the remaining image tokens autoregressively.
95
+
96
+ # 4.2 UNSUPERVISED LEARNING
97
+
98
+ For the image understanding task, we feed all image tokens of the input into a pretrained Transformer, and get a sequence of 1024 token features. Similar to Image GPT (Chen et al., 2020a), we take a layer output at a specific block $l$ over total blocks $L$ , average over the sequence of token features (frozen) and insert a softmax layer (learnable) projecting averaged feature to class logits. We only take one specific Transformer block output instead of concatenating different block outputs as in iGPT (Chen et al., 2020a). We find that most discriminating feature for the linear-probe is typically near the middle of all Transformer blocks.
99
+
100
+ Table 3: Frechet Inception Distance (FID) between reconstructed validation split and original val- ´ idation split on ImageNet, CelebA-HQ and FFHQ. ∗ denotes models trained with Gumbel-Softmax reparameterization as in Ramesh et al. (2021). ∗∗ denotes models trained with multi-scale hierarchical codebook as in Razavi et al. (2019).
101
+
102
+ <table><tr><td>Model</td><td>Dataset</td><td>Latent Size</td><td>dimZ</td><td>FID on Validation</td></tr><tr><td>DALL-E dVAE</td><td>Web data</td><td>32 ×32</td><td>8192</td><td>32.00</td></tr><tr><td>VQGAN</td><td>ImageNet</td><td>16 ×16</td><td>1024</td><td>7.94</td></tr><tr><td>VQGAN</td><td>ImageNet</td><td>16 ×16</td><td>16384</td><td>4.98</td></tr><tr><td>VQGAN*</td><td>ImageNet</td><td>32 × 32</td><td>8192</td><td>1.49</td></tr><tr><td>VQGAN**</td><td>ImageNet</td><td>64×64&amp;32×32</td><td>512</td><td>1.45</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>ImageNet</td><td>32×32</td><td>8192</td><td>1.28</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>CelebA-HQ</td><td>32 ×32</td><td>8192</td><td>4.66</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>FFHQ</td><td>32 ×32</td><td>8192</td><td>3.13</td></tr></table>
103
+
104
+ # 5 EXPERIMENTS
105
+
106
+ # 5.1 IMAGE QUANTIZATION
107
+
108
+ We train the proposed ViT-VQGAN on three datasets separately, CelebA-HQ (Karras et al., 2019), FFHQ (Karras et al., 2019), and ImageNet (Krizhevsky et al., 2012). For CelebA-HQ and FFHQ, we follow the default train and validation split as VQGAN (Esser et al., 2021).1 For Stage 1 image quantization, three different architecture sizes are experimented, Small, Base and Large for either encoder or decoder, as defined in Table 2. The smallest ViT-VQGAN-SS has a Small-size encoder and Small-size decoder, while ViT-VQGAN-BB has a Base-size encoder and Base-size decoder. The largest ViT-VQGAN-SL has an asymmetric Small-size encoder and Large-size decoder, with the motivation that Stage 2 training only requires forward propagation of the encoder of ViT-VQGAN (in inference/decoding for image synthesis, the decoder of ViT-VQGAN is still required to decode images from codes predicted during Stage 2).
109
+
110
+ We train all ViT-VQGAN models with a training batch size of 256 distributed across 128 CloudTPUv4 for a total 500,000 training steps. For both ViT-VQGAN and StyleGAN discriminator, Adam optimizer (Kingma & Ba, 2014) is used with $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9$ with the learning rate linearly warming up to a peak value of $1 \times 1 0 ^ { - 4 }$ over 50,000 steps and then decaying to $5 \times \mathrm { \overline { { 1 } } 0 ^ { - 5 } }$ over the remaining 450,000 steps with a cosine schedule. We use a decoupled weight decay (Loshchilov & Hutter, 2017) of $1 \dot { \times } 1 0 ^ { - 4 }$ for both ViT-VQGAN and StyleGAN discriminator. All models are trained with an input image resolution $2 5 6 \times 2 5 6$ on CloudTPUv4.
111
+
112
+ Table 3 shows FID between reconstructed images and original images in the validation split on ImageNet, CelebA-HQ and FFHQ datasets. Without multi-scale hierarchical codebook or gumbelsoftmax, ViT-VQGAN is able to achieve better FID with a large codebook size of 8192 compared with vanilla VQGAN.
113
+
114
+ Table 4 provides extensive ablations on the proposed modifications, with empirical results on mean $\ell _ { 1 }$ distance, $\ell _ { 2 }$ distance, logit-laplace distance, Inception Score and FID on ImageNet. Among different model sizes, ViT-VQGAN-SS (small-encoder, small-decoder) performs worse than ViTVQGAN-BB (base-encoder, base-decoder) and ViT-VQGAN-SL (small-encoder, large-decoder), but achieves much better throughput. The CNN-based VQGAN architecture is worse in both quality and throughput compared with ViT-based VQGAN. The StyleGAN-based discriminator (Karras et al., 2019) is more stable and yields better reconstruction quality than PatchGAN (Isola et al., 2017)
115
+
116
+ Table 4: Ablation study on ViT-VQGAN. The codebook usage is calculated as the percentage of used codes given a batch of 256 test images averaged over the entire test set.
117
+
118
+ <table><tr><td></td><td>groe ereerg rrr repeeeg</td><td>JAeeettect</td><td>Jirrriisi</td><td></td><td>pineg Lir aeaer</td><td>↑(2-0)</td><td>↑(-01)</td><td> 9der-18g</td><td></td><td>→ D</td><td>eeesn googopeg</td><td>↑ndysnou</td></tr><tr><td>Ablation on</td><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>32</td><td>√</td><td>3.06</td><td>3.09 -2.54</td><td>190.2</td><td></td><td>1.55 96%</td><td>960</td></tr><tr><td>Model Size</td><td>Small Small</td><td>Small</td><td>ViT ViT</td><td>StyleGAN</td><td>32</td><td>√ 3.22</td><td>3.34</td><td>-2.44</td><td>184.4</td><td>1.99</td><td>95%</td><td>1520</td></tr><tr><td rowspan="2"></td><td rowspan="2"></td><td rowspan="2">Large</td><td rowspan="2"></td><td rowspan="2">StyleGAN</td><td rowspan="2">32</td><td rowspan="2">√ 2.93</td><td rowspan="2">2.88</td><td rowspan="2">-2.58</td><td rowspan="2">192.3</td><td rowspan="2">1.28</td><td rowspan="2">95%</td><td rowspan="2">384</td></tr><tr><td>√ 3.45 2.82</td></tr><tr><td>Architecture</td><td>1 Base</td><td>1 Base</td><td>CNN ViT</td><td>StyleGAN PatchGAN</td><td>32 32</td><td>√</td><td>3.81 2.58</td><td>-2.36 -2.62</td><td>178.7 165.6</td><td>2.26 3.88</td><td>63% 89%</td><td>946 1227</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>4.28</td><td>-2.38</td><td>160.1</td><td>3.68</td><td>4%</td><td></td></tr><tr><td rowspan="8">Codebook Learning</td><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>256 128</td><td>1</td><td>3.60 3.41</td><td></td><td></td><td></td><td></td><td>954</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td></td><td></td><td>3.93</td><td>-2.44</td><td>173.9</td><td>2.77</td><td>14%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>64</td><td></td><td>3.18 3.37</td><td>-2.49</td><td>179.5 191.2</td><td>2.50</td><td>37%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>16</td><td></td><td>3.00</td><td>2.96 -2.54</td><td></td><td>1.50</td><td>95%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>8</td><td></td><td>2.98</td><td>2.92 -2.55</td><td>189.5</td><td>1.52</td><td>96%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>4</td><td></td><td>3.55</td><td>4.18 -2.37</td><td>143.8</td><td>3.68 5.44</td><td>96%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>32</td><td>&gt;&gt;&gt;&gt;&gt;x</td><td>4.13</td><td>5.41</td><td>-2.20</td><td>123.6</td><td>2%</td><td>960</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><td></td></tr></table>
119
+
120
+ Table 5: FID comparison with unconditional image synthesis on CelebA-HQ and FFHQ.
121
+
122
+ <table><tr><td colspan="2">CelebA-HQ 256 × 256</td><td colspan="2">FFHQ 256× 256</td></tr><tr><td>Method</td><td>FID↓</td><td>Method</td><td>FID↓</td></tr><tr><td>GLOW (Kingma &amp; Dhariwal, 2018)</td><td>69.0</td><td>VDVAE (t = 0.7) (Child,2021)</td><td>38.8</td></tr><tr><td>NVAE (Vahdat &amp; Kautz,2020)</td><td>40.3</td><td>VDVAE (t = 1.0)</td><td>33.5</td></tr><tr><td>PIONEER (Heljakka etal.,2018)</td><td>25.3</td><td>VDVAE (t = 0.8)</td><td>29.8</td></tr><tr><td>NCPVAE (Aneja et al.,2020)</td><td>24.8</td><td>VDVAE (t = 0.9)</td><td>28.5</td></tr><tr><td>VAEBM (Xiao et al., 2021)</td><td>20.4</td><td>VQGAN+P.SNAIL</td><td>21.9</td></tr><tr><td>Style ALAE (Pidhorskyi et al., 2020)</td><td>19.2</td><td>BigGAN</td><td>12.4</td></tr><tr><td>DC-VAE (Parmar et al., 2021)</td><td>15.8</td><td>U-Net GAN (Schonfeld et al., 2020)</td><td>10.9</td></tr><tr><td>PGGAN(Karras et al.,2018)</td><td>8.0</td><td>StyleGAN2 (Karras etal., 2020)</td><td>3.8</td></tr><tr><td>VQGAN (w/ top-k sampling)</td><td>10.2</td><td>VQGAN (w/ top-k sampling)</td><td>9.6</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>7.0</td><td>ViT-VQGAN (Ours)</td><td>5.3</td></tr></table>
123
+
124
+ (which was used for VQGAN). For codebook learning, factorized codes with low-dimensional latent variables consistently achieve better reconstruction quality when the latent dimension is reduced from 256 to 16 or 8. Moreover, removing $\ell _ { 2 }$ -normalization leads to much worse results.
125
+
126
+ # 5.2 IMAGE SYNTHESIS
127
+
128
+ On top of the pre-learned ViT-VQGAN image quantizer, we train stage 2 transformer models for unconditional and class-conditioned image synthesis and compare with previous work. We use a default model size of ViT-VQGAN-SS (small-encoder, small-decoder) for stage 1 and VIM-Large for stage 2 (model architectures are listed in Table 2), as we find it beneficial to put more computation in stage 2 while keeping stage 1 transformers lightweight. We also present a model size ablation study and comparison with VQGAN in the Appendix. Models are trained with a global training batch size of 1024 for a total of 450,000 training steps. We use Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 6$ with the learning rate linearly warming up to a peak constant value of $4 . 5 \times 1 0 ^ { - 4 }$ over the first 5000 steps and then exponentially decaying to $1 \times \mathrm { 1 0 ^ { - 5 } }$ starting from 80,000 steps. To save memory, we use a factorized version of Adam, Adafactor (Shazeer & Stern, 2018), with the first moment quantized into Int8 and factorized second moments. No other techniques like mixed-precision training, model sharding, or gradient compression is used. All models are trained with an input image resolution $2 5 6 \times 2 5 6$ on CloudTPUv4.
129
+
130
+ <table><tr><td>Model</td><td>Acceptance Rate</td><td>FID</td><td>IS</td></tr><tr><td>Validation data</td><td>1.0</td><td>1.62</td><td>235.0</td></tr><tr><td>DCTransformer (Nash et al.,2021)</td><td>1.0</td><td>36.5</td><td>n/a</td></tr><tr><td>BigGAN (Brock et al.,2019)</td><td>1.0</td><td>7.53</td><td>168.6</td></tr><tr><td>BigGAN-deep</td><td>1.0</td><td>6.84</td><td>203.6</td></tr><tr><td>IDDPM (Nichol &amp; Dhariwal,2021)</td><td>1.0</td><td>12.3</td><td>n/a</td></tr><tr><td>ADM-G, no guid. (Dhariwal &amp; Nichol, 2021)</td><td>1.0</td><td>10.94</td><td>101.0</td></tr><tr><td>ADM-G, 1.0 guid.</td><td>1.0</td><td>4.59</td><td>186.7</td></tr><tr><td>VQVAE-2 (Razavi et al.,2019)</td><td>1.0</td><td>~31</td><td>~45</td></tr><tr><td>VQGAN (Esser et al.,2021)</td><td>1.0</td><td>17.04</td><td>70.6</td></tr><tr><td>VQGAN</td><td>0.5</td><td>10.26</td><td>125.5</td></tr><tr><td>VQGAN</td><td>0.25</td><td>7.35</td><td>188.6</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>1.0</td><td>4.17</td><td>175.1</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>0.5</td><td>3.04</td><td>227.4</td></tr></table>
131
+
132
+ Table 6: FID comparison for class-conditional image synthesis on ImageNet with resolution $2 5 6 \times$ 256. Acceptance rate shows results based on ResNet-101 classifier-based rejection sampling.
133
+
134
+ ![](images/2d4bd8b401b7977b3c4ee742b5204d1709b675afa13b9a6ea9cac79c8b6d5b86.jpg)
135
+ Figure 2: Uncurated set of samples from class-conditioned image generation trained on ImageNet. Top row shows sampled class ids while bottom row shows fine-grained dog species from class id 184 to 189. More samples are shown in Appendix.
136
+
137
+ Our main results on unconditional image synthesis on CelebA-HQ and FFHQ are summarized in Table 5. Without top- $k$ and top- $p$ (nucleus) sampling heuristics, we achieve FID of 7.0 on CelebAHQ and 5.3 on FFHQ, significantly better than VQGAN (Esser et al., 2021). Table 6 shows classconditioned image synthesis models on ImageNet, following Section 4.1. Based on ViT-VQGANSS, we achieve IS of 175.1 and FID of 4.17, improving over the IS of 70.6 and FID of 17.04 with vanilla VQGAN. When applied with classifier-based rejection sampling, the ViT-VQGAN based model further achieves best FID of 3.04 and best Inception Score of 321.7. Qualitative results are sampled and shown in Figure 2 (see the Appendix for more).
138
+
139
+ # 5.3 UNSUPERVISED LEARNING
140
+
141
+ After the generative pretraining to autoregressively model the density of ViT-VQGAN quantized image tokens, we evaluate the learned representation under the common linear protocol on ImageNet classification. We follow the same training hyper-parameters as the unconditional image synthesis models on ImageNet, and use ViT-VQGAN-SS image quantizer for better training throughput. As discussed in Section 3.3, the ViT-VQGAN-SS image quantizer is trained without perceptual loss for unsupervised learning (perceptual loss is based on a supervised VGG network trained on ImageNet, which may make comparison unfair). We apply an average pooling over the token features at a specific transformer block $l$ from totally $L$ blocks. Similar to findings reported in iGPT (Chen et al., 2020a), the representations from the middle transformer blocks has better linear-probe accuracy (more study can be found in Appendix). Specifically, we use the Transformer block of index 15 (36 blocks in total) for VIM-Large and index 10 (24 blocks in total) for VIM-Base (architecture configurations are listed in Table 2).
142
+
143
+ Table 7: Linear-probe accuracy with different unsupervised learning methods on ImageNet. DALLE dVAE (Ramesh et al., 2021) image quantizer is trained with extra image data. VIM-Large is trained without dropout in transformers.
144
+
145
+ <table><tr><td>Method</td><td></td><td>#Tokens</td><td>Features</td><td>Params</td><td>Top-1 ↑</td></tr><tr><td rowspan="15">Brirrniir irnrriiiirig</td><td>Jigsaw (Noroozi &amp; Favaro,2016b)</td><td></td><td>4096</td><td>94M</td><td>44.6</td></tr><tr><td>RelativePosition (Doersch et al., 2015)</td><td></td><td>4096</td><td>94M</td><td>51.4</td></tr><tr><td>Rotation (Gidaris et al.,2018b)</td><td></td><td>8192</td><td>86M</td><td>55.4</td></tr><tr><td>AMDIM (Bachman et al.,2019)</td><td></td><td>8192</td><td>626M</td><td>68.1</td></tr><tr><td>CPC v2 (Henaff, 2020)</td><td></td><td>4096</td><td>303M</td><td>71.5</td></tr><tr><td>MoCo (He et al.,2020)</td><td></td><td>8192</td><td>375M</td><td>68.6</td></tr><tr><td>SimCLR (Chen et al., 2020b)</td><td></td><td>8192</td><td>375M</td><td>76.5</td></tr><tr><td>SwAV (Caron et al., 2020)</td><td></td><td>2048</td><td>93M</td><td>75.3</td></tr><tr><td>DINO (Caron et al., 2021)</td><td></td><td>2048</td><td>85M</td><td>75.3</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td></td><td>8192</td><td>375M</td><td>78.6</td></tr><tr><td rowspan="4">Greeeed rierieeg</td><td>BiGAN (Donahue et al., 2016)</td><td></td><td>512</td><td>138M</td><td>31.0</td></tr><tr><td>BigBiGAN (Donahue &amp; Simonyan,2019b)</td><td></td><td>4096</td><td>86M</td><td>56.6</td></tr><tr><td>BigBiGAN</td><td>=</td><td>16384</td><td>344M</td><td>61.3</td></tr><tr><td>iGPT-L (Chen et al., 2020a)</td><td>32× 32</td><td>1536</td><td>1362M</td><td>60.3</td></tr><tr><td>iGPT-L</td><td></td><td>48×48</td><td>1536</td><td>1362M</td><td>65.2</td></tr><tr><td>iGPT-XL (extra data)</td><td></td><td>64×64</td><td>3072</td><td>6801M</td><td>68.7</td></tr><tr><td></td><td> iGPT-XL (extra data, feature ensemble)</td><td>64 × 64</td><td>5×3072</td><td>6801M</td><td>72.0</td></tr><tr><td></td><td>VIM-Base (Ours)</td><td>32 × 32</td><td>1024</td><td>650M</td><td>65.1</td></tr><tr><td></td><td>VIM-Large (Ours)</td><td>32 × 32</td><td>2048</td><td>1697M</td><td>73.2</td></tr><tr><td></td><td>VIM-Base + DALL-E dVAE quantizer</td><td>32 ×32</td><td>1024</td><td>650M</td><td>63.8 (-1.3)</td></tr><tr><td></td><td>VIM-Base + CNN-VQGAN quantizer</td><td>32×32</td><td>1024</td><td>650M</td><td>61.8 (-3.3)</td></tr></table>
146
+
147
+ Table 7 shows the comparisons among different approaches divided into two categories: discriminative pretraining methods to distinguish among cropped or augmented image patches; and generative pretraining methods to generate image pixels or patches. The linear-probe accuracy of our proposed VIM with ViT-VQGAN are superior to other generative pretraining approaches like iGPT, and competitive with discriminative pretraining methods like BYOL (Grill et al., 2020) and DINO (Caron et al., 2021). Specifically, ImageNet-pretrained VIM-L significantly improves over iGPT-L, increasing linear-probe accuracy from $6 0 . 3 \%$ to $7 3 . 2 \%$ for a similar model size. VIM-L also outperforms iGPT-XL, which is larger and trained with extra web image data. Moreover, we also compare different stage 1 quantizers including CNN-based VQGAN and pretrained DALL-E dVAE (trained with extra web-scale image data)2 in Table 7; these results are all worse than ViT-VQGAN quantizer, suggesting the importance of the multiple changes defined in Section 3.
148
+
149
+ # 6 ETHICS
150
+
151
+ Tasks involving generation raise a number of issues that should be considered, such as possible biases in underlying models and data—especially with respect to capabilities for people with different demographic backgrounds. The three datasets used in this paper–ImageNet, CelebA-HQ, and FFHQ–are all widely used in the literature, but it is worthwhile highlighting their unique natures and recent scholarship around them.
152
+
153
+ The FFHQ dataset3 contains 70,000 images collected from Flickr, all of which have licenses appropriate for sharing, and the data maintainers provide means for individuals to opt-out of inclusion in the dataset. FFHQ was specifically collected to cover a broad range of demographics with respect to faces of people. This is confirmed in our models’ generated examples, which cover a broad range of perceived ages, genders and ethnicities. Nevertheless, Balakrishnan et al. (2020) provide an extensive analysis of multiple forms of bias in datasets (including CelebA-HQ and FFHQ) and algorithms for face generation; not only do they find imbalances in skin tone in FFHQ, but also correlations between multiple attributes such as skin tone and hair length. Based on this and other factors such as privacy and copyright, they argue that synthetically-created face datasets, for which multiple attributes can be controlled, is an important direction of investment and general inquiry.
154
+
155
+ The CelebA-HQ dataset covers celebrities, which brings a consequent bias toward images of attractive people who are mostly in age range of twenty to forty years old. Esser et al. (2020) discusses these biases in details, and they furthermore project images from the FFHQ dataset onto CelebAHQ: the main effect of which is to produce images of younger people with features conforming more to norms of celebrities popular in the United States of America. Our model’s generations appear to have a similar bias as derived from training on CelebA-HQ. Neverethless, they do show broad coverage of different perceived genders and ethnicities, but with age skewed to the 20-40 year old range.
156
+
157
+ ImageNet is, of course, quite pervasive in computer vision. In this paper, we learn to generate images given ImageNet class labels; these labels mostly concern animals, plants and things. People are sometimes generated when conditioning on classes such as sunglasses since the training data images contain people wearing sunglasses, but the generated images contain few depictions of people overall. Nevertheless, it is important to recognize that ImageNet itself was created with biases in terms of image selection and label annotation as a result of its process of creation (Denton et al., 2021). Given this, results present on ImageNet cover a significant, but nonetheless biased, sample of the kinds of scenes and objects one might encounter across the entire world.
158
+
159
+ There are also potential problematic aspects of image generation models, as demonstrated with biases found in the PULSE model (Menon et al., 2020) (see Section 6) and in model correlations with human biases found in social psychology (Steed & Caliskan, 2021), as well as with possible uses of such models to create fake media (Westerlund, 2019).
160
+
161
+ # REFERENCES
162
+
163
+ Jyoti Aneja, Alexander G. Schwing, Jan Kautz, and Arash Vahdat. NCP-VAE: variational autoencoders with noise contrastive priors. CoRR, abs/2010.02917, 2020. URL https://arxiv. org/abs/2010.02917.
164
+ Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019.
165
+ Guha Balakrishnan, Yuanjun Xiong, Wei Xia, and Pietro Perona. Towards causal benchmarking of bias in face analysis algorithms, 2020.
166
+ Hangbo Bao, Li Dong, and Furu Wei. Beit: BERT pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021.
167
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In ICLR, 2019.
168
+ Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
169
+ 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.
170
+ Mathilde Caron, Hugo Touvron, Ishan Misra, Herve J ´ egou, Julien Mairal, Piotr Bojanowski, and ´ Armand Joulin. Emerging properties in self-supervised vision transformers. arXiv preprint arXiv:2104.14294, 2021.
171
+ Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pp. 1691– 1703. PMLR, 2020a.
172
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020b.
173
+
174
+ Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big selfsupervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020c.
175
+
176
+ Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. Pixelsnail: An improved autoregressive generative model. In Jennifer G. Dy and Andreas Krause (eds.), ICML, 2018.
177
+
178
+ Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020d.
179
+
180
+ Rewon Child. Very deep {vae}s generalize autoregressive models and can outperform them on images. In International Conference on Learning Representations, 2021. URL https: //openreview.net/forum?id ${ . } = { }$ RLRXCV6DbEJ.
181
+
182
+ Andrew M Dai and Quoc V Le. Semi-supervised sequence learning. Advances in neural information processing systems, 28:3079–3087, 2015.
183
+
184
+ Emily Denton, Alex Hanna, Razvan Amironesei, Andrew Smart, and Hilary Nicole. On the genealogy of machine learning datasets: A critical history of imagenet. Big Data & Society, 8(2): 20539517211035955, 2021. doi: 10.1177/20539517211035955. URL https://doi.org/ 10.1177/20539517211035955.
185
+
186
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In Jill Burstein, Christy Doran, and Thamar Solorio (eds.), NAACL-HLT, 2019.
187
+
188
+ Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis. arXiv preprint arXiv:2105.05233, 2021.
189
+
190
+ Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE international conference on computer vision, pp. 1422–1430, 2015.
191
+
192
+ Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, Emily B. Fox, and Roman ´ Garnett (eds.), NeurIPS, 2019a.
193
+
194
+ Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. arXiv preprint arXiv:1907.02544, 2019b.
195
+
196
+ Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. ¨ arXiv preprint arXiv:1605.09782, 2016.
197
+
198
+ Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. In ¨ ICLR, 2017.
199
+
200
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
201
+
202
+ Patrick Esser, Robin Rombach, and Bjorn Ommer. A note on data biases in generative models. In ¨ NeurIPS 2020 Workshop on Machine Learning for Creativity and Design, 2020. URL https: //arxiv.org/abs/2012.02516.
203
+
204
+ Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image ¨ synthesis. In CVPR, 2021.
205
+
206
+ Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018a.
207
+
208
+ Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018b.
209
+
210
+ Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014.
211
+
212
+ Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020.
213
+
214
+ 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, pp. 9729–9738, 2020.
215
+
216
+ Ari Heljakka, Arno Solin, and Juho Kannala. Pioneer networks: Progressively growing generative autoencoder. In Asia conference on computer vision, 2018.
217
+
218
+ Olivier Henaff. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning, pp. 4182–4192. PMLR, 2020.
219
+
220
+ Irina Higgins, Lo¨ıc Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In ICLR, 2017.
221
+
222
+ Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id $=$ rygGQyrFvH.
223
+
224
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5967–5976, 2017. doi: 10.1109/CVPR.2017.632.
225
+
226
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European conference on computer vision, pp. 694–711. Springer, 2016.
227
+
228
+ Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ Hk99zCeAb.
229
+
230
+ 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 (CVPR), June 2019.
231
+
232
+ 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, pp. 8110–8119, 2020.
233
+
234
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
235
+
236
+ Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.
237
+
238
+ Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper/2018/file/ d139db6a236200b21cc7f752979132d0-Paper.pdf.
239
+
240
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012.
241
+
242
+ Julia A Lasserre, Christopher M Bishop, and Thomas P Minka. Principled hybrids of generative and discriminative models. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 1, pp. 87–94. IEEE, 2006.
243
+
244
+ Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
245
+
246
+ Sachit Menon, Alex Damian, McCourt Hu, Nikhil Ravi, and Cynthia Rudin. Pulse: Self-supervised photo upsampling via latent space exploration of generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
247
+
248
+ Charlie Nash, Jacob Menick, S. Dieleman, and P. Battaglia. Generating images with sparse representations. ICML, abs/2103.03841, 2021.
249
+
250
+ Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8162–8171. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/ nichol21a.html.
251
+
252
+ Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (eds.), ECCV, 2016a.
253
+
254
+ Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision, pp. 69–84. Springer, 2016b.
255
+
256
+ Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. arXiv preprint arXiv:1711.00937, 2017.
257
+
258
+ Gaurav Parmar, Dacheng Li, Kwonjoon Lee, and Zhuowen Tu. Dual contradistinctive generative autoencoder. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 823–832, June 2021.
259
+
260
+ Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In Jennifer G. Dy and Andreas Krause (eds.), ICML, 2018.
261
+
262
+ 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. [to appear].
263
+
264
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In Yoshua Bengio and Yann LeCun (eds.), ICLR, 2016.
265
+
266
+ Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.
267
+
268
+ 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.
269
+
270
+ Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In Marina Meila and Tong Zhang (eds.), ICML, 2021.
271
+
272
+ Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with ¨ VQ-VAE-2. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, ´ Emily B. Fox, and Roman Garnett (eds.), NeurIPS, 2019.
273
+
274
+ Edgar Schonfeld, Bernt Schiele, and Anna Khoreva. A u-net based discriminator for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8207–8216, 2020.
275
+
276
+ Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. In International Conference on Machine Learning, pp. 4596–4604. PMLR, 2018.
277
+
278
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
279
+
280
+ Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, Emily B. ´ Fox, and Roman Garnett (eds.), NeurIPS, 2019.
281
+
282
+ Ryan Steed and Aylin Caliskan. Image representations learned with unsupervised pre-training contain human-like biases. In The 2021 ACM Conference on Fairness, Accountability, and Transparency (ACM FAccT 2021), 2021. URL https://arxiv.org/abs/2010.15052.
283
+
284
+ Arash Vahdat and Jan Kautz. NVAE: A deep hierarchical variational autoencoder. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), NeurIPS, 2020.
285
+
286
+ Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and ¨ Alex Graves. Conditional image generation with pixelcnn decoders. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett (eds.), NeurIPS, 2016.
287
+
288
+ Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learn- ¨ ing. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett (eds.), NeurIPS, 2017.
289
+
290
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predic- ¨ tive coding. arXiv preprint arXiv:1807.03748, abs/1807.03748, 2018.
291
+
292
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017.
293
+
294
+ Mika Westerlund. The emergence of deepfake technology: A review. Technology Innovation Management Review, 9:40–53, 11/2019 2019. ISSN 1927-0321. doi: http://doi.org/10.22215/ timreview/1282. URL timreview.ca/article/1282.
295
+
296
+ Zhisheng Xiao, Karsten Kreis, Jan Kautz, and Arash Vahdat. $\{ { \mathrm { V A E B M } } \}$ : A symbiosis between variational autoencoders and energy-based models. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id ${ . } =$ 5m3SEczOV8L.
297
+
298
+ Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In International conference on machine learning, pp. 7354–7363. PMLR, 2019a.
299
+
300
+ Han Zhang, Ian J. Goodfellow, Dimitris N. Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In ICML, 2019b.
301
+
302
+ Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018.
303
+
304
+ # A LINEAR-PROBE ON IMAGENET
305
+
306
+ We show linear-probe accuracy from different layers in a pretrained VIM-Base Transformer model in Figure 3. Similar to iGPT (Chen et al., 2020a), we also find the last few layers may not be the best layers for discriminative features, as the generative pretraining objective is to recover the original image tokens. The linearprobe accuracy increases quickly from the first transformer output, reaches its peak at middle layers, and finally decreases for the last few blocks. Interestingly, we find for both VIMBase and VIM-Large, the middle transformer block has the near-best result. This observation connects the transformer model to an encoderdecoder model where the encoder encodes image tokens into high-level semantic features and the decoder takes feature information to gener
307
+
308
+ ![](images/1d84e809d5636b23d7ceb5e8d59293c393c6e1ce9679abdcb3fefcdce313b433.jpg)
309
+ Figure 3: Linear-probe accuracy from different layers in a pretrained VIM-Base Transformer model.
310
+
311
+ ate output image tokens. We leave for future study regrading the interpretability of pretrained VIM models.
312
+
313
+ # B MODEL SIZES OF CLASS-CONDITIONED IMAGENET SYNTHESIS
314
+
315
+ We also present results of different sizes of Stage 2 Transformers for class-conditioned image synthesis and compare with VQGAN (Esser et al., 2021)4 summarized in Table 8.
316
+
317
+ <table><tr><td>Model</td><td>Stage-2 Transformer Size</td><td>#Tokens</td><td>FID</td><td>IS</td></tr><tr><td>Validation data</td><td>/</td><td>=</td><td>1.62</td><td>235.0</td></tr><tr><td>VQGAN (Esser et al.,2021)</td><td>1.4B</td><td>16 ×16</td><td>17.04</td><td>70.6</td></tr><tr><td>ViT-VQGAN+VIM-Base</td><td>650M</td><td>16 ×16</td><td>11.20</td><td>97.2</td></tr><tr><td>ViT-VQGAN + VIM-Large</td><td>1.7B</td><td>16 ×16</td><td>5.3</td><td>149.9</td></tr><tr><td>ViT-VQGAN + VIM-Base</td><td>650M</td><td>32 × 32</td><td>8.81</td><td>110.8</td></tr><tr><td>ViT-VQGAN + VIM-Large</td><td>1.7B</td><td>32 ×32</td><td>4.17</td><td>175.1</td></tr></table>
318
+
319
+ Table 8: FID comparison for class-conditional image synthesis on ImageNet with different Transformer sizes in Stage 2. Results are reported without rejection sampling.
320
+
321
+ # C IMPLEMENTATION DETAILS OF FACTORIZED CODEBOOK
322
+
323
+ As we introduced in Section 3.2, we use a linear projection to reduce the encoded embedding to a low-dimensional variable space for code lookup. A detailed illustration is shown in Figure 4.
324
+
325
+ ![](images/808468d18686ea4c5749fcf0e24a77e6508b7620f5bbe5bc1144fb5f4eb09778.jpg)
326
+ Figure 4: Illustration of factorized codes and codebook details.
327
+
328
+ ![](images/0cf2583848d23fed0a25567a05ff4f7a7593c2be749af32a27ee19d63132e4bd.jpg)
329
+ Figure 5: Uncurated set of samples from class-conditioned generation trained on ImageNet.
330
+
331
+ Scale
332
+
333
+ ![](images/2260824a7c774887327e7ed39a63230563e7ec24f408abf7f020883a92447b17.jpg)
334
+ Figure 6: Uncurated set of samples from class-conditioned generation trained on ImageNet.
parse/dev/pfNyExj7z2/pfNyExj7z2_content_list.json ADDED
@@ -0,0 +1,1793 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VECTOR-QUANTIZED IMAGE MODELING WITH IMPROVED VQGAN ",
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": "Jiahui Yu Xin Li Jing Yu Koh Han Zhang Ruoming Pang James Qin Alexander Ku Yuanzhong Xu Jason Baldridge Yonghui Wu ",
17
+ "bbox": [
18
+ 189,
19
+ 164,
20
+ 805,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Google Research ",
28
+ "bbox": [
29
+ 450,
30
+ 200,
31
+ 565,
32
+ 214
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "jiahuiyu@google.com ",
39
+ "bbox": [
40
+ 416,
41
+ 218,
42
+ 602,
43
+ 232
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 246,
54
+ 544,
55
+ 261
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Pretraining language models with next-token prediction on massive text corpora has delivered phenomenal zero-shot, few-shot, transfer learning and multi-tasking capabilities on both generative and discriminative language tasks. Motivated by this success, we explore a Vector-quantized Image Modeling (VIM) approach that involves pretraining a Transformer to predict rasterized image tokens autoregressively. The discrete image tokens are encoded from a learned Vision-Transformerbased VQGAN (ViT-VQGAN). We first propose multiple improvements over vanilla VQGAN from architecture to codebook learning, yielding better efficiency and reconstruction fidelity. The improved ViT-VQGAN further improves vectorquantized image modeling tasks, including unconditional, class-conditioned image generation and unsupervised representation learning. When trained on ImageNet at $2 5 6 \\times 2 5 6$ resolution, we achieve Inception Score (IS) of 175.1 and Frechet Inception Distance (FID) of 4.17, a dramatic improvement over the vanilla ´ VQGAN, which obtains 70.6 and 17.04 for IS and FID, respectively. Based on ViT-VQGAN and unsupervised pretraining, we further evaluate the pretrained Transformer by averaging intermediate features, similar to Image GPT (iGPT). This ImageNet-pretrained VIM-L significantly beats iGPT-L on linear-probe accuracy from $6 0 . 3 \\%$ to $7 3 . 2 \\%$ for a similar model size. ViM-L also outperforms iGPT-XL which is trained with extra web image data and larger model size. ",
62
+ "bbox": [
63
+ 233,
64
+ 282,
65
+ 764,
66
+ 546
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 588,
77
+ 336,
78
+ 603
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Natural language processing (NLP) has recently experienced dramatic improvements from learning general-purpose representations by pretraining language models on unlabeled text corpora. This strategy has produced large performance gains for a wide range of natural language generation (NLG) and natural language understanding (NLU) tasks (Dai & Le, 2015; Radford et al., 2018; 2019; Brown et al., 2020). Conceptually, generative pretraining models the data density $P ( X )$ in a tractable way, with the hope of also helping discriminative tasks of $P ( { Y \\vert } X )$ (Lasserre et al., 2006); importantly, there are no limitations on whether the signals are from the language domain or others, such as vision. ",
85
+ "bbox": [
86
+ 174,
87
+ 625,
88
+ 825,
89
+ 736
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In computer vision, in contrast, most recent unsupervised or self-supervised learning research focuses on applying different random augmentations to images, with the pretraining objective to distinguish image instances (Chen et al., 2020b; He et al., 2020; Chen et al., 2020d; Grill et al., 2020; Chen et al., $2 0 2 0 \\mathrm { c }$ ; Caron et al., 2021). The quality of learned representation relies on manually chosen augmentations, such as random brightness, cropping, blurring, and others. Chen et al. (2020a) explored GPT-style (Radford et al., 2018) generative pretraining on images by autoregressively predicting pixels without incorporating knowledge of the 2D structure. Each pixel is represented as a 9-bit value created by clustering (R, G, B) pixel values, using k-means with $_ { \\mathrm { k } = 5 1 2 }$ . Unfortunately, this color encoding does not scale to typical image resolutions as it entails very long sequences to represent the image (e.g., $2 2 4 \\times 2 2 4$ resolution leads to 50,176 tokens per image), and this demands much more memory and computation for training, compared to language models. As a result, iGPT’s maximum resolution is $6 4 \\times 6 4$ for image recognition at scale—which severely limits its representation capabilities. ",
96
+ "bbox": [
97
+ 173,
98
+ 743,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/dcffd61f6310583296baec12b1619c518511d41255d7c41866c6e4b3aab1f278.jpg",
107
+ "image_caption": [
108
+ "Figure 1: Overview of ViT-VQGAN (left) and Vector-quantized Image Modeling (right) for both image generation and image understanding. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 179,
113
+ 80,
114
+ 826,
115
+ 290
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Remarkable image generation results have been achieved by pre-quantizing images into discrete latent variables and modeling them autoregressively, including VQVAE (Oord et al., 2017), DALLE (Ramesh et al., 2021) and VQGAN (Esser et al., 2021). In these approaches, a convolution neural network (CNN) is learned to auto-encode an image and a second stage CNN or Transformer is learned to model the density of encoded latent variables. These have been proved effective for image generation, but few studies have evaluated the learned representation in discriminative tasks (Ramesh et al., 2021; Esser et al., 2021). ",
122
+ "bbox": [
123
+ 174,
124
+ 364,
125
+ 825,
126
+ 463
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "We explore an approach we refer to as Vector-quantized Image Modeling (VIM) and apply it to both image generation and image understanding tasks. VIM follows a two-stage approach: ",
133
+ "bbox": [
134
+ 174,
135
+ 469,
136
+ 821,
137
+ 497
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• Stage 1: Image Quantization. Given an image of resolution $2 5 6 \\times 2 5 6$ , a VisionTransformer-based VQGAN encodes it into $3 2 \\times 3 2$ discretized latent codes where the codebook size is 8192. We propose multiple improvements–from architecture to codebook learning–to VQGAN (Esser et al., 2021). The resulting ViT-VQGAN is more efficient and improves reconstruction fidelity in terms of pixel-wise reconstruction metrics, Inception Score (IS) and Frechet Inception Distance (FID). ViT-VQGAN is trained end-to-end on ´ image-only data with combined objective functions of logit-laplace loss, $\\ell _ { 2 }$ loss, adversarial loss and perceptual loss (Johnson et al., 2016; Zhang et al., 2018). • Stage 2: Vector-quantized Image Modeling. We train a Transformer model to predict rasterized $3 2 \\times 3 2 = 1 0 2 4$ image tokens autoregressively, where image tokens are encoded by a learned Stage 1 ViT-VQGAN. For unconditional image synthesis or unsupervised learning, we pretrain a decoder-only Transformer model to predict the next token. For class-conditioned image synthesis, a class-id token is prepended before the image tokens. To evaluate the quality of unsupervised learning, we average the intermediate Transformer features and learn a linear head to predict the logit of the classes (a.k.a., linear-probe). ",
144
+ "bbox": [
145
+ 214,
146
+ 510,
147
+ 825,
148
+ 723
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "We show that one key component for improving both image generation and image understanding with VIM is to have a better image quantizer with respect to both computational efficiency and reconstruction quality. An efficient quantizer can speed up Stage 2 training, where random augmentations are applied first to an image, followed by the encoder of image quantizer to obtain the input tokens. Moreover, an image quantizer with better reconstruction quality can reduce information loss compared with the original image in pixel space, which is critical for image understanding tasks. ",
155
+ "bbox": [
156
+ 174,
157
+ 736,
158
+ 825,
159
+ 819
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "The evaluations of our proposed ViT-VQGAN and VIM are studied with three aspects. (1) We evaluate the image quantizer based on reconstruction quality metrics including $\\ell _ { 1 }$ distance, $\\ell _ { 2 }$ distance, log-laplace distance, as well as Inception Score (IS) and Frechet Inception Distance (FID) ´ of reconstructed images. (2) We evaluate the capabilities of the learned quantizer for unconditional or class-conditioned image synthesis based on FID and IS, and compare with other methods. (3) We rely on linear-probe accuracy to evaluate representations with the common intuition that good features should linearly separate the classes of downstream tasks. ",
166
+ "bbox": [
167
+ 174,
168
+ 825,
169
+ 825,
170
+ 924
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 RELATED WORK ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 176,
180
+ 102,
181
+ 343,
182
+ 117
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Image Synthesis. Image generation has received much attention with the progress of deep generative models, including Generative Adversarial Networks (GANs) (Goodfellow et al., 2014; Zhang et al., 2019b), Variational Autoencoders (VAEs) (Kingma & Welling, 2014; Vahdat & Kautz, 2020), Diffusion Models (Song & Ermon, 2019; Dhariwal & Nichol, 2021) and Autoregressive Models (van den Oord et al., 2016; Parmar et al., 2018). Unlike many autogressive methods which generate sequence directly in pixel space, VQVAE (van den Oord et al., 2017; Razavi et al., 2019) decomposes the image generation process into two stages: the first stage trains a vector quantized autoencoder with image reconstruction objective to convert an image into a shorter sequence of discrete tokens. Then the second stage learns an autoregressive model, e.g., PixelSNAIL (Chen et al., 2018), to model the underlying distribution of token sequences. Driven by the effectiveness of VQVAE and progress in sequence modeling (Vaswani et al., 2017; Devlin et al., 2019), many approaches follow the two-stage paradigm. DALL-E (Ramesh et al., 2021) improves token prediction in second stage by using Transformers (Vaswani et al., 2017), resulting in a strong text-to-image synthesis model. VQGAN (Esser et al., 2021) further uses adversarial loss and perceptual loss (Johnson et al., 2016; Zhang et al., 2018) to train a better autoencoder in the first stage to synthesize greater detail in images. ",
189
+ "bbox": [
190
+ 174,
191
+ 136,
192
+ 825,
193
+ 358
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Image Recognition with Generative Pretraining. Many image generation models (Goodfellow et al., 2014; Kingma & Welling, 2014; Radford et al., 2016; Donahue et al., 2017; Higgins et al., 2017) have been studied for their capabilities in representation learning. However, their performance is usually not superior to competing self-supervised approaches that solve auxiliary classification tasks (Noroozi & Favaro, 2016a; Gidaris et al., 2018a; van den Oord et al., 2018). BigBiGAN (Donahue & Simonyan, 2019a) first demonstrated that a generation-based model can match other self-supervised methods in representation learning on ImageNet. iGPT (Chen et al., 2020a) uses the autoregressive objective to learn a giant transformer that directly predicts pixel values, producing even more competitive results. Compared to iGPT, our method first tokenizes the original image into discrete image tokens and then trains a transformer to predict them. As a result, our approach obtains comparable results with smaller model and less data. Similar to our method in predicting image tokens, BEiT (Bao et al., 2021) follows pre-training scheme of BERT Devlin et al. (2019) by learning to recover randomly masked image tokens with a bidirectional transformer. Unlike BEiT, we explore vector-quantized image modeling for image generation in addition to image recognition. ",
200
+ "bbox": [
201
+ 174,
202
+ 366,
203
+ 825,
204
+ 559
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 VECTOR-QUANTIZED IMAGES WITH VIT-VQGAN ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 176,
214
+ 583,
215
+ 622,
216
+ 599
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "The Vector-quantized Variational AutoEncoder (VQVAE) (van den Oord et al., 2017) is a CNNbased auto-encoder whose latent space is a matrix of discrete learnable variables, trained end-to-end via straight-through estimation. Esser et al. (2021) introduce VQGAN, a model which improves upon VQVAE by introducing an adversarial loss produced by a discriminator. Below, we introduce further improvements to VQGAN that boost efficiency and enhance reconstruction quality. ",
223
+ "bbox": [
224
+ 174,
225
+ 617,
226
+ 825,
227
+ 686
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "3.1 VQGAN WITH VISION TRANSFORMERS ",
234
+ "text_level": 1,
235
+ "bbox": [
236
+ 174,
237
+ 708,
238
+ 493,
239
+ 722
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "The core network architectures used by both VQVAE and VQGAN to encode and reconstruct images are CNNs. VQGAN introduces transformer-like elements in the form of non-local attention block (Zhang et al., 2019a), allowing it to capture distant interactions with fewer layers. We propose taking this approach one step further by replacing the CNN encoder and decoder with Vision Transformer (ViT) (Dosovitskiy et al., 2020), as shown in Figure 1. Given sufficient data (for which unlabeled image data is plentiful) we find that ViT-VQGAN is less constrained by the inductive priors imposed by convolutions. Furthermore, ViT-VQGAN yields better computational efficiency on accelerators, and produces higher quality reconstructions, as shown in Table 1. ",
246
+ "bbox": [
247
+ 174,
248
+ 734,
249
+ 823,
250
+ 847
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "The encoder of ViT-VQGAN first maps $8 \\times 8$ non-overlapping image patches into image tokens, followed by Transformer blocks, encoding a $2 5 6 \\times 2 5 6$ resolution image into a $3 2 \\times 3 2 { = } 1 0 2 4$ token sequence. The decoder performs the inverse operation, mapping each image token from latent variables back to $8 \\times 8$ image patches and regrouping them into a $2 5 6 \\times 2 5 6$ image (see Figure 1). At the output of transformer blocks, we apply a two-layer feed-forward network with a tanh activation layer in the middle. No activation is applied at the output of ViT-VQGAN encoder or decoder. We find that this simple approach yields high quality reconstructions without any noticeable grid artifacts. ",
257
+ "bbox": [
258
+ 176,
259
+ 854,
260
+ 823,
261
+ 924
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "table",
267
+ "img_path": "images/3c67b3d968b68ec6900c6d41a2e7a1ba3316d5a8ef2798d024cdaece7a3c37ea.jpg",
268
+ "table_caption": [
269
+ "Table 1: ViT-VQGAN achieves better speed-quality trade-offs compared with CNN-VQGAN. This in turn further speeds up Stage 2 training. Throughputs are benchmarked with the same 128 CloudTPUv4 devices. "
270
+ ],
271
+ "table_footnote": [],
272
+ "table_body": "<table><tr><td>Architecture</td><td>Model Size (encoder-decoder)</td><td>Throughput 个 (imgs/sec)</td><td>l2loss (1e-2)</td><td>Logit-Laplace loss ↓</td><td>FID↓</td><td>IS↑</td></tr><tr><td>ViT-VQGAN</td><td>Small-Small</td><td>1520</td><td>3.34</td><td>-2.44</td><td>1.99</td><td>184.4</td></tr><tr><td>CNN-VQGAN</td><td>Channels ×1</td><td>946</td><td>3.81</td><td>-2.36</td><td>2.26</td><td>178.7</td></tr><tr><td>ViT-VQGAN</td><td>Base-Base</td><td>960</td><td>3.09</td><td>-2.54</td><td>1.55</td><td>190.2</td></tr><tr><td>CNN-VQGAN</td><td>Channels × 2</td><td>400</td><td>3.44</td><td>-2.46</td><td>1.91</td><td>183.4</td></tr><tr><td>ViT-VQGAN</td><td> Small-Large</td><td>384</td><td>2.88</td><td>-2.58</td><td>1.28</td><td>192.3</td></tr></table>",
273
+ "bbox": [
274
+ 178,
275
+ 101,
276
+ 818,
277
+ 217
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "",
284
+ "bbox": [
285
+ 173,
286
+ 292,
287
+ 825,
288
+ 321
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "3.2 CODEBOOK LEARNING ",
295
+ "text_level": 1,
296
+ "bbox": [
297
+ 176,
298
+ 338,
299
+ 375,
300
+ 352
301
+ ],
302
+ "page_idx": 3
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "Vanilla VQVAEs usually suffer from low codebook usage due to the poor initialization of the codebook. Therefore, during training a significant portion of codes are rarely used, or dead. The reduction in effective codebook size results in worse reconstructions in stage 1 quantizer training and poor diversity in stage 2 for image synthesis. As a result, VQGAN (Esser et al., 2021) relies on top$k$ and top- $p$ (nucleus) sampling heuristics (Holtzman et al., 2020) with a default codebook size of 1024 to obtain best results for image synthesis. We propose two improvements that can significantly encourage the codebook usage even with a larger codebook size of 8192. During image synthesis, we perform simple sampling with temperature of 1.0 without top- $k$ and top- $p$ heuristics. ",
307
+ "bbox": [
308
+ 173,
309
+ 364,
310
+ 825,
311
+ 477
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "The training objective of vector-quantization is defined as follows: ",
318
+ "bbox": [
319
+ 174,
320
+ 483,
321
+ 607,
322
+ 497
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/4c8c30328e0595cac30cb68ffcad93728f8c8cb82aa8b52d677393c414bcca58.jpg",
329
+ "text": "$$\nL _ { \\mathrm { V Q } } = \\| \\mathbf { s g } [ z _ { e } ( x ) ] - e \\| _ { 2 } ^ { 2 } + \\beta \\| z _ { e } ( x ) - \\mathbf { s g } [ e ] \\| _ { 2 } ^ { 2 } .\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 343,
333
+ 503,
334
+ 655,
335
+ 522
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "Here, $\\operatorname { s g } ( x ) \\equiv x$ , $\\begin{array} { r } { { \\frac { \\mathrm { d } } { \\mathrm { d } x } } \\mathrm { s g } ( x ) \\equiv 0 } \\end{array}$ is the stop-gradient operator, $\\beta$ is a commitment loss hyperparameter set to 0.25 in all our experiments, and $e$ is the codebook vector. The quantized codebook index is determined by looking up the codebook vector closest to the input features $z _ { e } ( x )$ in terms of the Euclidean distance, yielding $i = \\mathrm { a r g m i n } _ { j } \\| z _ { e } ( x ) - e _ { j } \\| _ { 2 } ^ { 2 }$ . ",
342
+ "bbox": [
343
+ 174,
344
+ 530,
345
+ 825,
346
+ 588
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Factorized codes. We introduce a linear projection from the output of the encoder to a lowdimensional latent variable space for code index lookup (e.g., reduced from a 768-d vector to a 32-d or 8-d vector per code) and find it has an immediate boost of codebook usage. The factorization can be viewed as decoupling code lookup and code embedding: we lookup the the closest variable encoded from input on a lower-dimensional lookup space and then project the matched latent code to the high-dimensional embedding space. Our experiments show reducing dimension of lookup space from 256-d to 32-d consistently improves reconstruction quality. A detailed illustration is provided in the supplementary materials. ",
353
+ "bbox": [
354
+ 173,
355
+ 593,
356
+ 825,
357
+ 705
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "$\\ell _ { 2 }$ -normalized codes. We also apply $\\ell _ { 2 }$ normalization on the encoded latent variables $z _ { e } ( x )$ and codebook latent variables $e$ . The codebook variables are initialized from a normal distribution. By mapping all latent variables on a sphere, the Euclidean distance of $\\ell _ { 2 }$ -normalized latent variables $| | \\ell _ { 2 } ( \\bar { z } _ { e } ( \\bar { x } ) ) - \\ell _ { 2 } ( e _ { j } ) | | _ { 2 } ^ { 2 }$ evolves to the cosine similarity of two vectors between $z _ { e } ( x )$ and $e$ , further improving training stability and reconstruction quality shown in our experiments. ",
364
+ "bbox": [
365
+ 174,
366
+ 712,
367
+ 825,
368
+ 782
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3.3 VIT-VQGAN TRAINING LOSSES ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 176,
378
+ 799,
379
+ 442,
380
+ 814
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "We use a combination of logit-laplace loss, $\\ell _ { 2 }$ loss, perceptual loss (Johnson et al., 2016; Zhang et al., 2018) based on VGG network (Simonyan & Zisserman, 2014) and GAN loss with architecture of StyleGAN discriminator (Karras et al., 2020). Loss balancing weights are configured with a hyper-parameter sweep to optimize image reconstruction quality, codebook usage, FID and Inception Score. After the sweep, we apply the same set of hyper-parameters of training losses to all datasets including CelebA-HQ, FFHQ, and ImageNet. Logit-Laplace loss can be viewed as normalized $\\ell _ { 1 }$ loss which assumes the noise at the pixel level is laplace-distributed while $\\ell _ { 2 }$ loss assumes the noise is of a Gaussian distribution. We find logit-laplace loss contributes to codebook usage while $\\ell _ { 2 }$ loss and perceptual loss significantly contribute to FID. The final loss combination we used by default is $L = L _ { \\mathrm { { V Q } } } + 0 . 1 L _ { \\mathrm { { A d v } } } + 0 . 1 L _ { \\mathrm { { P e r c e p t u a l } } } + 0 . 1 L _ { \\mathrm { { L o g i t } \\mathrm { { - } \\mathrm { { l a p l a c e } } } } } + 1 . 0 L _ { \\mathrm { { 2 } } } .$ . ",
387
+ "bbox": [
388
+ 173,
389
+ 825,
390
+ 825,
391
+ 924
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "table",
397
+ "img_path": "images/87ef8f604057b4abf1a2f09332fb5943fa00af5f6008c54f13d634537bfd59b3.jpg",
398
+ "table_caption": [
399
+ "Table 2: Transformer architectures of Stage 1 ViT-VQGAN and Stage 2 VIM. "
400
+ ],
401
+ "table_footnote": [],
402
+ "table_body": "<table><tr><td>Model</td><td>Size</td><td>#Params</td><td>#Blocks</td><td>#Heads</td><td>Model Dim</td><td>Hidden Dim</td><td>Dropout</td><td>#Tokens</td></tr><tr><td>ViT-VQGAN</td><td>Small</td><td>32M</td><td>8</td><td>8</td><td>512</td><td>2048</td><td>0.0</td><td>1024</td></tr><tr><td>ViT-VQGAN</td><td>Base</td><td>91M</td><td>12</td><td>12</td><td>768</td><td>3072</td><td>0.0</td><td>1024</td></tr><tr><td>ViT-VQGAN</td><td>Large</td><td>599M</td><td>32</td><td>16</td><td>1280</td><td>5120</td><td>0.0</td><td>1024</td></tr><tr><td>VIM</td><td>Base</td><td>650M</td><td>24</td><td>16</td><td>1536</td><td>6144</td><td>0.1</td><td>1024</td></tr><tr><td>VIM</td><td>Large</td><td>1697M</td><td>36</td><td>32</td><td>2048</td><td>8192</td><td>0.1</td><td>1024</td></tr></table>",
403
+ "bbox": [
404
+ 173,
405
+ 101,
406
+ 838,
407
+ 199
408
+ ],
409
+ "page_idx": 4
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "",
414
+ "bbox": [
415
+ 174,
416
+ 253,
417
+ 825,
418
+ 296
419
+ ],
420
+ "page_idx": 4
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "One caveat on the VGG-based perceptual loss is that the VGG network is pretrained with supervised classification loss, so the supervision might leak into Stage 2 for linear-probe accuracy measurement. Thus, for all of our reported unsupervised learning results, we exclude the perceptual loss during ViT-VQGAN training. For all unconditional and class-conditioned image synthesis, we use ViTVQGAN quantizers trained with perceptual loss, as it leads to higher-fidelity reconstructions. ",
425
+ "bbox": [
426
+ 174,
427
+ 303,
428
+ 825,
429
+ 372
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "4 VECTOR-QUANTIZED IMAGE MODELING ",
436
+ "text_level": 1,
437
+ "bbox": [
438
+ 174,
439
+ 392,
440
+ 544,
441
+ 409
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "With a learned ViT-VQGAN, images are encoded into discrete latent code ids flattened in the raster order, similar to Image GPT (Chen et al., 2020a). A decoder-only Transformer model is used to model the density of image data $P ( x )$ autoregressively as ",
448
+ "bbox": [
449
+ 174,
450
+ 422,
451
+ 825,
452
+ 465
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "equation",
458
+ "img_path": "images/af75e1b6e1a59d7efd98c666b5becb4609ce27c98b194de3631dfb2fc550295c.jpg",
459
+ "text": "$$\nP ( x ) = \\prod _ { i = 1 } ^ { n } P ( x _ { i } | x _ { 1 } , x _ { 2 } , . . . , x _ { i - 1 } ; \\theta ) ,\n$$",
460
+ "text_format": "latex",
461
+ "bbox": [
462
+ 374,
463
+ 472,
464
+ 622,
465
+ 512
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "where $\\theta$ is learnable weights. The training objective is to minimize the negative log-likelihood of the data $L = \\mathbb { E } _ { x \\in X } [ - l o g P ( x ) ]$ . ",
472
+ "bbox": [
473
+ 173,
474
+ 516,
475
+ 825,
476
+ 546
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "Table 2 summarizes the architecture configurations for the Transformers. We first embed discrete image token ids into a learnable embedding space at each position, with an additive learnable 2D positional embedding. Both embedding dimensions are the same as model dimension. We apply a stack of Transformer blocks to the inputs with causal attention over the entire sequence. A dropout ratio of 0.1 is used in all residual, activation and attention outputs. At the final layer of all Transformer blocks, we apply an additional layer normalization. ",
483
+ "bbox": [
484
+ 174,
485
+ 551,
486
+ 825,
487
+ 636
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "4.1 IMAGE SYNTHESIS ",
494
+ "text_level": 1,
495
+ "bbox": [
496
+ 176,
497
+ 652,
498
+ 346,
499
+ 666
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "With a pretrained generative Transformer model, unconditional image generation is achieved by simply sampling token-by-token from the output softmax distribution. All samples used for both qualitative and quantitative results are obtained without temperature reduction. The sampled tokens are then fed into the decoder of ViT-VQGAN to decode output images. Our default Stage 1 ViTVQGAN encodes input images of resolution $2 5 6 \\times 2 5 6$ into $3 2 \\times 3 2$ latent codes with a codebook size 8192, while Stage 2 Transformer takes the flattened image tokens with total a length of 1024. ",
506
+ "bbox": [
507
+ 174,
508
+ 678,
509
+ 823,
510
+ 762
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Class-conditioned ImageNet generation is also a widely used benchmark for measuring capabiltiy of models for image synthesis. We extend the unconditional generation to class-conditioned generation by prepending a class-id token before the image tokens. Separate embedding layers are learned from scratch for class-id token and image tokens, with the embedding dimension the same as the Transformer model dimension. During sampling, a class-id token is provided at the first position to decode the remaining image tokens autoregressively. ",
517
+ "bbox": [
518
+ 174,
519
+ 768,
520
+ 825,
521
+ 853
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "4.2 UNSUPERVISED LEARNING ",
528
+ "text_level": 1,
529
+ "bbox": [
530
+ 176,
531
+ 869,
532
+ 401,
533
+ 883
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "For the image understanding task, we feed all image tokens of the input into a pretrained Transformer, and get a sequence of 1024 token features. Similar to Image GPT (Chen et al., 2020a), we take a layer output at a specific block $l$ over total blocks $L$ , average over the sequence of token features (frozen) and insert a softmax layer (learnable) projecting averaged feature to class logits. We only take one specific Transformer block output instead of concatenating different block outputs as in iGPT (Chen et al., 2020a). We find that most discriminating feature for the linear-probe is typically near the middle of all Transformer blocks. ",
540
+ "bbox": [
541
+ 174,
542
+ 895,
543
+ 821,
544
+ 924
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "table",
550
+ "img_path": "images/76bfbf1eb24a6e2680b1f4c7a1a4a9a9a77e50e2e9d66bc60cecd6deab9737a4.jpg",
551
+ "table_caption": [
552
+ "Table 3: Frechet Inception Distance (FID) between reconstructed validation split and original val- ´ idation split on ImageNet, CelebA-HQ and FFHQ. ∗ denotes models trained with Gumbel-Softmax reparameterization as in Ramesh et al. (2021). ∗∗ denotes models trained with multi-scale hierarchical codebook as in Razavi et al. (2019). "
553
+ ],
554
+ "table_footnote": [],
555
+ "table_body": "<table><tr><td>Model</td><td>Dataset</td><td>Latent Size</td><td>dimZ</td><td>FID on Validation</td></tr><tr><td>DALL-E dVAE</td><td>Web data</td><td>32 ×32</td><td>8192</td><td>32.00</td></tr><tr><td>VQGAN</td><td>ImageNet</td><td>16 ×16</td><td>1024</td><td>7.94</td></tr><tr><td>VQGAN</td><td>ImageNet</td><td>16 ×16</td><td>16384</td><td>4.98</td></tr><tr><td>VQGAN*</td><td>ImageNet</td><td>32 × 32</td><td>8192</td><td>1.49</td></tr><tr><td>VQGAN**</td><td>ImageNet</td><td>64×64&amp;32×32</td><td>512</td><td>1.45</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>ImageNet</td><td>32×32</td><td>8192</td><td>1.28</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>CelebA-HQ</td><td>32 ×32</td><td>8192</td><td>4.66</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>FFHQ</td><td>32 ×32</td><td>8192</td><td>3.13</td></tr></table>",
556
+ "bbox": [
557
+ 228,
558
+ 101,
559
+ 764,
560
+ 234
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "",
567
+ "bbox": [
568
+ 174,
569
+ 334,
570
+ 825,
571
+ 404
572
+ ],
573
+ "page_idx": 5
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "5 EXPERIMENTS ",
578
+ "text_level": 1,
579
+ "bbox": [
580
+ 176,
581
+ 426,
582
+ 326,
583
+ 443
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "5.1 IMAGE QUANTIZATION ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 176,
593
+ 458,
594
+ 375,
595
+ 473
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "We train the proposed ViT-VQGAN on three datasets separately, CelebA-HQ (Karras et al., 2019), FFHQ (Karras et al., 2019), and ImageNet (Krizhevsky et al., 2012). For CelebA-HQ and FFHQ, we follow the default train and validation split as VQGAN (Esser et al., 2021).1 For Stage 1 image quantization, three different architecture sizes are experimented, Small, Base and Large for either encoder or decoder, as defined in Table 2. The smallest ViT-VQGAN-SS has a Small-size encoder and Small-size decoder, while ViT-VQGAN-BB has a Base-size encoder and Base-size decoder. The largest ViT-VQGAN-SL has an asymmetric Small-size encoder and Large-size decoder, with the motivation that Stage 2 training only requires forward propagation of the encoder of ViT-VQGAN (in inference/decoding for image synthesis, the decoder of ViT-VQGAN is still required to decode images from codes predicted during Stage 2). ",
602
+ "bbox": [
603
+ 174,
604
+ 486,
605
+ 825,
606
+ 625
607
+ ],
608
+ "page_idx": 5
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "We train all ViT-VQGAN models with a training batch size of 256 distributed across 128 CloudTPUv4 for a total 500,000 training steps. For both ViT-VQGAN and StyleGAN discriminator, Adam optimizer (Kingma & Ba, 2014) is used with $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 9$ with the learning rate linearly warming up to a peak value of $1 \\times 1 0 ^ { - 4 }$ over 50,000 steps and then decaying to $5 \\times \\mathrm { \\overline { { 1 } } 0 ^ { - 5 } }$ over the remaining 450,000 steps with a cosine schedule. We use a decoupled weight decay (Loshchilov & Hutter, 2017) of $1 \\dot { \\times } 1 0 ^ { - 4 }$ for both ViT-VQGAN and StyleGAN discriminator. All models are trained with an input image resolution $2 5 6 \\times 2 5 6$ on CloudTPUv4. ",
613
+ "bbox": [
614
+ 174,
615
+ 632,
616
+ 825,
617
+ 729
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Table 3 shows FID between reconstructed images and original images in the validation split on ImageNet, CelebA-HQ and FFHQ datasets. Without multi-scale hierarchical codebook or gumbelsoftmax, ViT-VQGAN is able to achieve better FID with a large codebook size of 8192 compared with vanilla VQGAN. ",
624
+ "bbox": [
625
+ 176,
626
+ 736,
627
+ 825,
628
+ 791
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "Table 4 provides extensive ablations on the proposed modifications, with empirical results on mean $\\ell _ { 1 }$ distance, $\\ell _ { 2 }$ distance, logit-laplace distance, Inception Score and FID on ImageNet. Among different model sizes, ViT-VQGAN-SS (small-encoder, small-decoder) performs worse than ViTVQGAN-BB (base-encoder, base-decoder) and ViT-VQGAN-SL (small-encoder, large-decoder), but achieves much better throughput. The CNN-based VQGAN architecture is worse in both quality and throughput compared with ViT-based VQGAN. The StyleGAN-based discriminator (Karras et al., 2019) is more stable and yields better reconstruction quality than PatchGAN (Isola et al., 2017) ",
635
+ "bbox": [
636
+ 173,
637
+ 799,
638
+ 825,
639
+ 897
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "table",
645
+ "img_path": "images/51348d4ffd36ed642ee900149e5c4c1fc1b0af54302de4e5fa9ec117fa95942b.jpg",
646
+ "table_caption": [
647
+ "Table 4: Ablation study on ViT-VQGAN. The codebook usage is calculated as the percentage of used codes given a batch of 256 test images averaged over the entire test set. "
648
+ ],
649
+ "table_footnote": [],
650
+ "table_body": "<table><tr><td></td><td>groe ereerg rrr repeeeg</td><td>JAeeettect</td><td>Jirrriisi</td><td></td><td>pineg Lir aeaer</td><td>↑(2-0)</td><td>↑(-01)</td><td> 9der-18g</td><td></td><td>→ D</td><td>eeesn googopeg</td><td>↑ndysnou</td></tr><tr><td>Ablation on</td><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>32</td><td>√</td><td>3.06</td><td>3.09 -2.54</td><td>190.2</td><td></td><td>1.55 96%</td><td>960</td></tr><tr><td>Model Size</td><td>Small Small</td><td>Small</td><td>ViT ViT</td><td>StyleGAN</td><td>32</td><td>√ 3.22</td><td>3.34</td><td>-2.44</td><td>184.4</td><td>1.99</td><td>95%</td><td>1520</td></tr><tr><td rowspan=\"2\"></td><td rowspan=\"2\"></td><td rowspan=\"2\">Large</td><td rowspan=\"2\"></td><td rowspan=\"2\">StyleGAN</td><td rowspan=\"2\">32</td><td rowspan=\"2\">√ 2.93</td><td rowspan=\"2\">2.88</td><td rowspan=\"2\">-2.58</td><td rowspan=\"2\">192.3</td><td rowspan=\"2\">1.28</td><td rowspan=\"2\">95%</td><td rowspan=\"2\">384</td></tr><tr><td>√ 3.45 2.82</td></tr><tr><td>Architecture</td><td>1 Base</td><td>1 Base</td><td>CNN ViT</td><td>StyleGAN PatchGAN</td><td>32 32</td><td>√</td><td>3.81 2.58</td><td>-2.36 -2.62</td><td>178.7 165.6</td><td>2.26 3.88</td><td>63% 89%</td><td>946 1227</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>4.28</td><td>-2.38</td><td>160.1</td><td>3.68</td><td>4%</td><td></td></tr><tr><td rowspan=\"8\">Codebook Learning</td><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>256 128</td><td>1</td><td>3.60 3.41</td><td></td><td></td><td></td><td></td><td>954</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td></td><td></td><td>3.93</td><td>-2.44</td><td>173.9</td><td>2.77</td><td>14%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>64</td><td></td><td>3.18 3.37</td><td>-2.49</td><td>179.5 191.2</td><td>2.50</td><td>37%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>16</td><td></td><td>3.00</td><td>2.96 -2.54</td><td></td><td>1.50</td><td>95%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>8</td><td></td><td>2.98</td><td>2.92 -2.55</td><td>189.5</td><td>1.52</td><td>96%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>4</td><td></td><td>3.55</td><td>4.18 -2.37</td><td>143.8</td><td>3.68 5.44</td><td>96%</td><td>960</td></tr><tr><td>Base</td><td>Base</td><td>ViT</td><td>StyleGAN</td><td>32</td><td>&gt;&gt;&gt;&gt;&gt;x</td><td>4.13</td><td>5.41</td><td>-2.20</td><td>123.6</td><td>2%</td><td>960</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><td></td></tr></table>",
651
+ "bbox": [
652
+ 176,
653
+ 85,
654
+ 839,
655
+ 338
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "table",
661
+ "img_path": "images/422bb23bc60c859847af6ccfcd100585ca6e9f87402d463f3c4a5d88631aa644.jpg",
662
+ "table_caption": [
663
+ "Table 5: FID comparison with unconditional image synthesis on CelebA-HQ and FFHQ. "
664
+ ],
665
+ "table_footnote": [],
666
+ "table_body": "<table><tr><td colspan=\"2\">CelebA-HQ 256 × 256</td><td colspan=\"2\">FFHQ 256× 256</td></tr><tr><td>Method</td><td>FID↓</td><td>Method</td><td>FID↓</td></tr><tr><td>GLOW (Kingma &amp; Dhariwal, 2018)</td><td>69.0</td><td>VDVAE (t = 0.7) (Child,2021)</td><td>38.8</td></tr><tr><td>NVAE (Vahdat &amp; Kautz,2020)</td><td>40.3</td><td>VDVAE (t = 1.0)</td><td>33.5</td></tr><tr><td>PIONEER (Heljakka etal.,2018)</td><td>25.3</td><td>VDVAE (t = 0.8)</td><td>29.8</td></tr><tr><td>NCPVAE (Aneja et al.,2020)</td><td>24.8</td><td>VDVAE (t = 0.9)</td><td>28.5</td></tr><tr><td>VAEBM (Xiao et al., 2021)</td><td>20.4</td><td>VQGAN+P.SNAIL</td><td>21.9</td></tr><tr><td>Style ALAE (Pidhorskyi et al., 2020)</td><td>19.2</td><td>BigGAN</td><td>12.4</td></tr><tr><td>DC-VAE (Parmar et al., 2021)</td><td>15.8</td><td>U-Net GAN (Schonfeld et al., 2020)</td><td>10.9</td></tr><tr><td>PGGAN(Karras et al.,2018)</td><td>8.0</td><td>StyleGAN2 (Karras etal., 2020)</td><td>3.8</td></tr><tr><td>VQGAN (w/ top-k sampling)</td><td>10.2</td><td>VQGAN (w/ top-k sampling)</td><td>9.6</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>7.0</td><td>ViT-VQGAN (Ours)</td><td>5.3</td></tr></table>",
667
+ "bbox": [
668
+ 202,
669
+ 404,
670
+ 792,
671
+ 583
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "(which was used for VQGAN). For codebook learning, factorized codes with low-dimensional latent variables consistently achieve better reconstruction quality when the latent dimension is reduced from 256 to 16 or 8. Moreover, removing $\\ell _ { 2 }$ -normalization leads to much worse results. ",
678
+ "bbox": [
679
+ 176,
680
+ 643,
681
+ 823,
682
+ 685
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "5.2 IMAGE SYNTHESIS ",
689
+ "text_level": 1,
690
+ "bbox": [
691
+ 176,
692
+ 713,
693
+ 344,
694
+ 727
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "On top of the pre-learned ViT-VQGAN image quantizer, we train stage 2 transformer models for unconditional and class-conditioned image synthesis and compare with previous work. We use a default model size of ViT-VQGAN-SS (small-encoder, small-decoder) for stage 1 and VIM-Large for stage 2 (model architectures are listed in Table 2), as we find it beneficial to put more computation in stage 2 while keeping stage 1 transformers lightweight. We also present a model size ablation study and comparison with VQGAN in the Appendix. Models are trained with a global training batch size of 1024 for a total of 450,000 training steps. We use Adam optimizer (Kingma & Ba, 2014) with $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 6$ with the learning rate linearly warming up to a peak constant value of $4 . 5 \\times 1 0 ^ { - 4 }$ over the first 5000 steps and then exponentially decaying to $1 \\times \\mathrm { 1 0 ^ { - 5 } }$ starting from 80,000 steps. To save memory, we use a factorized version of Adam, Adafactor (Shazeer & Stern, 2018), with the first moment quantized into Int8 and factorized second moments. No other techniques like mixed-precision training, model sharding, or gradient compression is used. All models are trained with an input image resolution $2 5 6 \\times 2 5 6$ on CloudTPUv4. ",
701
+ "bbox": [
702
+ 174,
703
+ 743,
704
+ 825,
705
+ 924
706
+ ],
707
+ "page_idx": 6
708
+ },
709
+ {
710
+ "type": "table",
711
+ "img_path": "images/0f5fc7274130fa616b56310c7a07d6bb0de7bf2d946fd5b731b377840ca3fa5b.jpg",
712
+ "table_caption": [],
713
+ "table_footnote": [],
714
+ "table_body": "<table><tr><td>Model</td><td>Acceptance Rate</td><td>FID</td><td>IS</td></tr><tr><td>Validation data</td><td>1.0</td><td>1.62</td><td>235.0</td></tr><tr><td>DCTransformer (Nash et al.,2021)</td><td>1.0</td><td>36.5</td><td>n/a</td></tr><tr><td>BigGAN (Brock et al.,2019)</td><td>1.0</td><td>7.53</td><td>168.6</td></tr><tr><td>BigGAN-deep</td><td>1.0</td><td>6.84</td><td>203.6</td></tr><tr><td>IDDPM (Nichol &amp; Dhariwal,2021)</td><td>1.0</td><td>12.3</td><td>n/a</td></tr><tr><td>ADM-G, no guid. (Dhariwal &amp; Nichol, 2021)</td><td>1.0</td><td>10.94</td><td>101.0</td></tr><tr><td>ADM-G, 1.0 guid.</td><td>1.0</td><td>4.59</td><td>186.7</td></tr><tr><td>VQVAE-2 (Razavi et al.,2019)</td><td>1.0</td><td>~31</td><td>~45</td></tr><tr><td>VQGAN (Esser et al.,2021)</td><td>1.0</td><td>17.04</td><td>70.6</td></tr><tr><td>VQGAN</td><td>0.5</td><td>10.26</td><td>125.5</td></tr><tr><td>VQGAN</td><td>0.25</td><td>7.35</td><td>188.6</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>1.0</td><td>4.17</td><td>175.1</td></tr><tr><td>ViT-VQGAN (Ours)</td><td>0.5</td><td>3.04</td><td>227.4</td></tr></table>",
715
+ "bbox": [
716
+ 243,
717
+ 101,
718
+ 751,
719
+ 306
720
+ ],
721
+ "page_idx": 7
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "Table 6: FID comparison for class-conditional image synthesis on ImageNet with resolution $2 5 6 \\times$ 256. Acceptance rate shows results based on ResNet-101 classifier-based rejection sampling. ",
726
+ "bbox": [
727
+ 173,
728
+ 316,
729
+ 821,
730
+ 344
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "image",
736
+ "img_path": "images/2d4bd8b401b7977b3c4ee742b5204d1709b675afa13b9a6ea9cac79c8b6d5b86.jpg",
737
+ "image_caption": [
738
+ "Figure 2: Uncurated set of samples from class-conditioned image generation trained on ImageNet. Top row shows sampled class ids while bottom row shows fine-grained dog species from class id 184 to 189. More samples are shown in Appendix. "
739
+ ],
740
+ "image_footnote": [],
741
+ "bbox": [
742
+ 184,
743
+ 363,
744
+ 818,
745
+ 522
746
+ ],
747
+ "page_idx": 7
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Our main results on unconditional image synthesis on CelebA-HQ and FFHQ are summarized in Table 5. Without top- $k$ and top- $p$ (nucleus) sampling heuristics, we achieve FID of 7.0 on CelebAHQ and 5.3 on FFHQ, significantly better than VQGAN (Esser et al., 2021). Table 6 shows classconditioned image synthesis models on ImageNet, following Section 4.1. Based on ViT-VQGANSS, we achieve IS of 175.1 and FID of 4.17, improving over the IS of 70.6 and FID of 17.04 with vanilla VQGAN. When applied with classifier-based rejection sampling, the ViT-VQGAN based model further achieves best FID of 3.04 and best Inception Score of 321.7. Qualitative results are sampled and shown in Figure 2 (see the Appendix for more). ",
752
+ "bbox": [
753
+ 174,
754
+ 593,
755
+ 825,
756
+ 705
757
+ ],
758
+ "page_idx": 7
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "5.3 UNSUPERVISED LEARNING ",
763
+ "text_level": 1,
764
+ "bbox": [
765
+ 176,
766
+ 728,
767
+ 401,
768
+ 742
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "After the generative pretraining to autoregressively model the density of ViT-VQGAN quantized image tokens, we evaluate the learned representation under the common linear protocol on ImageNet classification. We follow the same training hyper-parameters as the unconditional image synthesis models on ImageNet, and use ViT-VQGAN-SS image quantizer for better training throughput. As discussed in Section 3.3, the ViT-VQGAN-SS image quantizer is trained without perceptual loss for unsupervised learning (perceptual loss is based on a supervised VGG network trained on ImageNet, which may make comparison unfair). We apply an average pooling over the token features at a specific transformer block $l$ from totally $L$ blocks. Similar to findings reported in iGPT (Chen et al., 2020a), the representations from the middle transformer blocks has better linear-probe accuracy (more study can be found in Appendix). Specifically, we use the Transformer block of index 15 (36 blocks in total) for VIM-Large and index 10 (24 blocks in total) for VIM-Base (architecture configurations are listed in Table 2). ",
775
+ "bbox": [
776
+ 174,
777
+ 757,
778
+ 825,
779
+ 922
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "table",
785
+ "img_path": "images/6a1d3d8e08c316b9638eda1eb783af5e1411bed289b1b3453e8f51dd16529c24.jpg",
786
+ "table_caption": [
787
+ "Table 7: Linear-probe accuracy with different unsupervised learning methods on ImageNet. DALLE dVAE (Ramesh et al., 2021) image quantizer is trained with extra image data. VIM-Large is trained without dropout in transformers. "
788
+ ],
789
+ "table_footnote": [],
790
+ "table_body": "<table><tr><td>Method</td><td></td><td>#Tokens</td><td>Features</td><td>Params</td><td>Top-1 ↑</td></tr><tr><td rowspan=\"15\">Brirrniir irnrriiiirig</td><td>Jigsaw (Noroozi &amp; Favaro,2016b)</td><td></td><td>4096</td><td>94M</td><td>44.6</td></tr><tr><td>RelativePosition (Doersch et al., 2015)</td><td></td><td>4096</td><td>94M</td><td>51.4</td></tr><tr><td>Rotation (Gidaris et al.,2018b)</td><td></td><td>8192</td><td>86M</td><td>55.4</td></tr><tr><td>AMDIM (Bachman et al.,2019)</td><td></td><td>8192</td><td>626M</td><td>68.1</td></tr><tr><td>CPC v2 (Henaff, 2020)</td><td></td><td>4096</td><td>303M</td><td>71.5</td></tr><tr><td>MoCo (He et al.,2020)</td><td></td><td>8192</td><td>375M</td><td>68.6</td></tr><tr><td>SimCLR (Chen et al., 2020b)</td><td></td><td>8192</td><td>375M</td><td>76.5</td></tr><tr><td>SwAV (Caron et al., 2020)</td><td></td><td>2048</td><td>93M</td><td>75.3</td></tr><tr><td>DINO (Caron et al., 2021)</td><td></td><td>2048</td><td>85M</td><td>75.3</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td></td><td>8192</td><td>375M</td><td>78.6</td></tr><tr><td rowspan=\"4\">Greeeed rierieeg</td><td>BiGAN (Donahue et al., 2016)</td><td></td><td>512</td><td>138M</td><td>31.0</td></tr><tr><td>BigBiGAN (Donahue &amp; Simonyan,2019b)</td><td></td><td>4096</td><td>86M</td><td>56.6</td></tr><tr><td>BigBiGAN</td><td>=</td><td>16384</td><td>344M</td><td>61.3</td></tr><tr><td>iGPT-L (Chen et al., 2020a)</td><td>32× 32</td><td>1536</td><td>1362M</td><td>60.3</td></tr><tr><td>iGPT-L</td><td></td><td>48×48</td><td>1536</td><td>1362M</td><td>65.2</td></tr><tr><td>iGPT-XL (extra data)</td><td></td><td>64×64</td><td>3072</td><td>6801M</td><td>68.7</td></tr><tr><td></td><td> iGPT-XL (extra data, feature ensemble)</td><td>64 × 64</td><td>5×3072</td><td>6801M</td><td>72.0</td></tr><tr><td></td><td>VIM-Base (Ours)</td><td>32 × 32</td><td>1024</td><td>650M</td><td>65.1</td></tr><tr><td></td><td>VIM-Large (Ours)</td><td>32 × 32</td><td>2048</td><td>1697M</td><td>73.2</td></tr><tr><td></td><td>VIM-Base + DALL-E dVAE quantizer</td><td>32 ×32</td><td>1024</td><td>650M</td><td>63.8 (-1.3)</td></tr><tr><td></td><td>VIM-Base + CNN-VQGAN quantizer</td><td>32×32</td><td>1024</td><td>650M</td><td>61.8 (-3.3)</td></tr></table>",
791
+ "bbox": [
792
+ 184,
793
+ 75,
794
+ 810,
795
+ 409
796
+ ],
797
+ "page_idx": 8
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Table 7 shows the comparisons among different approaches divided into two categories: discriminative pretraining methods to distinguish among cropped or augmented image patches; and generative pretraining methods to generate image pixels or patches. The linear-probe accuracy of our proposed VIM with ViT-VQGAN are superior to other generative pretraining approaches like iGPT, and competitive with discriminative pretraining methods like BYOL (Grill et al., 2020) and DINO (Caron et al., 2021). Specifically, ImageNet-pretrained VIM-L significantly improves over iGPT-L, increasing linear-probe accuracy from $6 0 . 3 \\%$ to $7 3 . 2 \\%$ for a similar model size. VIM-L also outperforms iGPT-XL, which is larger and trained with extra web image data. Moreover, we also compare different stage 1 quantizers including CNN-based VQGAN and pretrained DALL-E dVAE (trained with extra web-scale image data)2 in Table 7; these results are all worse than ViT-VQGAN quantizer, suggesting the importance of the multiple changes defined in Section 3. ",
802
+ "bbox": [
803
+ 174,
804
+ 488,
805
+ 825,
806
+ 641
807
+ ],
808
+ "page_idx": 8
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "6 ETHICS ",
813
+ "text_level": 1,
814
+ "bbox": [
815
+ 174,
816
+ 662,
817
+ 267,
818
+ 679
819
+ ],
820
+ "page_idx": 8
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "Tasks involving generation raise a number of issues that should be considered, such as possible biases in underlying models and data—especially with respect to capabilities for people with different demographic backgrounds. The three datasets used in this paper–ImageNet, CelebA-HQ, and FFHQ–are all widely used in the literature, but it is worthwhile highlighting their unique natures and recent scholarship around them. ",
825
+ "bbox": [
826
+ 174,
827
+ 695,
828
+ 825,
829
+ 765
830
+ ],
831
+ "page_idx": 8
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "The FFHQ dataset3 contains 70,000 images collected from Flickr, all of which have licenses appropriate for sharing, and the data maintainers provide means for individuals to opt-out of inclusion in the dataset. FFHQ was specifically collected to cover a broad range of demographics with respect to faces of people. This is confirmed in our models’ generated examples, which cover a broad range of perceived ages, genders and ethnicities. Nevertheless, Balakrishnan et al. (2020) provide an extensive analysis of multiple forms of bias in datasets (including CelebA-HQ and FFHQ) and algorithms for face generation; not only do they find imbalances in skin tone in FFHQ, but also correlations between multiple attributes such as skin tone and hair length. Based on this and other factors such as privacy and copyright, they argue that synthetically-created face datasets, for which multiple attributes can be controlled, is an important direction of investment and general inquiry. ",
836
+ "bbox": [
837
+ 174,
838
+ 772,
839
+ 825,
840
+ 883
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "",
847
+ "bbox": [
848
+ 173,
849
+ 103,
850
+ 823,
851
+ 132
852
+ ],
853
+ "page_idx": 9
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "The CelebA-HQ dataset covers celebrities, which brings a consequent bias toward images of attractive people who are mostly in age range of twenty to forty years old. Esser et al. (2020) discusses these biases in details, and they furthermore project images from the FFHQ dataset onto CelebAHQ: the main effect of which is to produce images of younger people with features conforming more to norms of celebrities popular in the United States of America. Our model’s generations appear to have a similar bias as derived from training on CelebA-HQ. Neverethless, they do show broad coverage of different perceived genders and ethnicities, but with age skewed to the 20-40 year old range. ",
858
+ "bbox": [
859
+ 174,
860
+ 138,
861
+ 825,
862
+ 251
863
+ ],
864
+ "page_idx": 9
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "ImageNet is, of course, quite pervasive in computer vision. In this paper, we learn to generate images given ImageNet class labels; these labels mostly concern animals, plants and things. People are sometimes generated when conditioning on classes such as sunglasses since the training data images contain people wearing sunglasses, but the generated images contain few depictions of people overall. Nevertheless, it is important to recognize that ImageNet itself was created with biases in terms of image selection and label annotation as a result of its process of creation (Denton et al., 2021). Given this, results present on ImageNet cover a significant, but nonetheless biased, sample of the kinds of scenes and objects one might encounter across the entire world. ",
869
+ "bbox": [
870
+ 174,
871
+ 257,
872
+ 823,
873
+ 368
874
+ ],
875
+ "page_idx": 9
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "There are also potential problematic aspects of image generation models, as demonstrated with biases found in the PULSE model (Menon et al., 2020) (see Section 6) and in model correlations with human biases found in social psychology (Steed & Caliskan, 2021), as well as with possible uses of such models to create fake media (Westerlund, 2019). ",
880
+ "bbox": [
881
+ 174,
882
+ 376,
883
+ 823,
884
+ 431
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "REFERENCES ",
891
+ "text_level": 1,
892
+ "bbox": [
893
+ 174,
894
+ 453,
895
+ 285,
896
+ 467
897
+ ],
898
+ "page_idx": 9
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "Jyoti Aneja, Alexander G. Schwing, Jan Kautz, and Arash Vahdat. NCP-VAE: variational autoencoders with noise contrastive priors. CoRR, abs/2010.02917, 2020. URL https://arxiv. org/abs/2010.02917. \nPhilip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019. \nGuha Balakrishnan, Yuanjun Xiong, Wei Xia, and Pietro Perona. Towards causal benchmarking of bias in face analysis algorithms, 2020. \nHangbo Bao, Li Dong, and Furu Wei. Beit: BERT pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021. \nAndrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In ICLR, 2019. \nTom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \nMathilde 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. \nMathilde Caron, Hugo Touvron, Ishan Misra, Herve J ´ egou, Julien Mairal, Piotr Bojanowski, and ´ Armand Joulin. Emerging properties in self-supervised vision transformers. arXiv preprint arXiv:2104.14294, 2021. \nMark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pp. 1691– 1703. PMLR, 2020a. \nTing Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020b. ",
903
+ "bbox": [
904
+ 171,
905
+ 469,
906
+ 828,
907
+ 928
908
+ ],
909
+ "page_idx": 9
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big selfsupervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020c. ",
914
+ "bbox": [
915
+ 173,
916
+ 103,
917
+ 823,
918
+ 133
919
+ ],
920
+ "page_idx": 10
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. Pixelsnail: An improved autoregressive generative model. In Jennifer G. Dy and Andreas Krause (eds.), ICML, 2018. ",
925
+ "bbox": [
926
+ 173,
927
+ 141,
928
+ 821,
929
+ 171
930
+ ],
931
+ "page_idx": 10
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020d. ",
936
+ "bbox": [
937
+ 171,
938
+ 179,
939
+ 823,
940
+ 208
941
+ ],
942
+ "page_idx": 10
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "Rewon Child. Very deep {vae}s generalize autoregressive models and can outperform them on images. In International Conference on Learning Representations, 2021. URL https: //openreview.net/forum?id ${ . } = { }$ RLRXCV6DbEJ. ",
947
+ "bbox": [
948
+ 174,
949
+ 217,
950
+ 823,
951
+ 260
952
+ ],
953
+ "page_idx": 10
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "Andrew M Dai and Quoc V Le. Semi-supervised sequence learning. Advances in neural information processing systems, 28:3079–3087, 2015. ",
958
+ "bbox": [
959
+ 169,
960
+ 267,
961
+ 823,
962
+ 297
963
+ ],
964
+ "page_idx": 10
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Emily Denton, Alex Hanna, Razvan Amironesei, Andrew Smart, and Hilary Nicole. On the genealogy of machine learning datasets: A critical history of imagenet. Big Data & Society, 8(2): 20539517211035955, 2021. doi: 10.1177/20539517211035955. URL https://doi.org/ 10.1177/20539517211035955. ",
969
+ "bbox": [
970
+ 173,
971
+ 306,
972
+ 826,
973
+ 363
974
+ ],
975
+ "page_idx": 10
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In Jill Burstein, Christy Doran, and Thamar Solorio (eds.), NAACL-HLT, 2019. ",
980
+ "bbox": [
981
+ 173,
982
+ 372,
983
+ 826,
984
+ 415
985
+ ],
986
+ "page_idx": 10
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis. arXiv preprint arXiv:2105.05233, 2021. ",
991
+ "bbox": [
992
+ 171,
993
+ 422,
994
+ 823,
995
+ 453
996
+ ],
997
+ "page_idx": 10
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE international conference on computer vision, pp. 1422–1430, 2015. ",
1002
+ "bbox": [
1003
+ 173,
1004
+ 460,
1005
+ 825,
1006
+ 505
1007
+ ],
1008
+ "page_idx": 10
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, Emily B. Fox, and Roman ´ Garnett (eds.), NeurIPS, 2019a. ",
1013
+ "bbox": [
1014
+ 174,
1015
+ 512,
1016
+ 823,
1017
+ 555
1018
+ ],
1019
+ "page_idx": 10
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. arXiv preprint arXiv:1907.02544, 2019b. ",
1024
+ "bbox": [
1025
+ 169,
1026
+ 564,
1027
+ 823,
1028
+ 594
1029
+ ],
1030
+ "page_idx": 10
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. ¨ arXiv preprint arXiv:1605.09782, 2016. ",
1035
+ "bbox": [
1036
+ 171,
1037
+ 602,
1038
+ 823,
1039
+ 632
1040
+ ],
1041
+ "page_idx": 10
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. In ¨ ICLR, 2017. ",
1046
+ "bbox": [
1047
+ 171,
1048
+ 640,
1049
+ 823,
1050
+ 656
1051
+ ],
1052
+ "page_idx": 10
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. ",
1057
+ "bbox": [
1058
+ 173,
1059
+ 664,
1060
+ 825,
1061
+ 720
1062
+ ],
1063
+ "page_idx": 10
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "Patrick Esser, Robin Rombach, and Bjorn Ommer. A note on data biases in generative models. In ¨ NeurIPS 2020 Workshop on Machine Learning for Creativity and Design, 2020. URL https: //arxiv.org/abs/2012.02516. ",
1068
+ "bbox": [
1069
+ 173,
1070
+ 729,
1071
+ 823,
1072
+ 772
1073
+ ],
1074
+ "page_idx": 10
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image ¨ synthesis. In CVPR, 2021. ",
1079
+ "bbox": [
1080
+ 173,
1081
+ 781,
1082
+ 823,
1083
+ 811
1084
+ ],
1085
+ "page_idx": 10
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018a. ",
1090
+ "bbox": [
1091
+ 173,
1092
+ 819,
1093
+ 823,
1094
+ 849
1095
+ ],
1096
+ "page_idx": 10
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018b. ",
1101
+ "bbox": [
1102
+ 173,
1103
+ 857,
1104
+ 823,
1105
+ 887
1106
+ ],
1107
+ "page_idx": 10
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014. ",
1112
+ "bbox": [
1113
+ 176,
1114
+ 895,
1115
+ 823,
1116
+ 924
1117
+ ],
1118
+ "page_idx": 10
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. ",
1123
+ "bbox": [
1124
+ 173,
1125
+ 103,
1126
+ 825,
1127
+ 160
1128
+ ],
1129
+ "page_idx": 11
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "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, pp. 9729–9738, 2020. ",
1134
+ "bbox": [
1135
+ 173,
1136
+ 169,
1137
+ 823,
1138
+ 213
1139
+ ],
1140
+ "page_idx": 11
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "Ari Heljakka, Arno Solin, and Juho Kannala. Pioneer networks: Progressively growing generative autoencoder. In Asia conference on computer vision, 2018. ",
1145
+ "bbox": [
1146
+ 171,
1147
+ 220,
1148
+ 823,
1149
+ 251
1150
+ ],
1151
+ "page_idx": 11
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Olivier Henaff. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning, pp. 4182–4192. PMLR, 2020. ",
1156
+ "bbox": [
1157
+ 173,
1158
+ 258,
1159
+ 823,
1160
+ 289
1161
+ ],
1162
+ "page_idx": 11
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Irina Higgins, Lo¨ıc Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In ICLR, 2017. ",
1167
+ "bbox": [
1168
+ 173,
1169
+ 297,
1170
+ 826,
1171
+ 340
1172
+ ],
1173
+ "page_idx": 11
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id $=$ rygGQyrFvH. ",
1178
+ "bbox": [
1179
+ 174,
1180
+ 349,
1181
+ 825,
1182
+ 392
1183
+ ],
1184
+ "page_idx": 11
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5967–5976, 2017. doi: 10.1109/CVPR.2017.632. ",
1189
+ "bbox": [
1190
+ 174,
1191
+ 401,
1192
+ 823,
1193
+ 445
1194
+ ],
1195
+ "page_idx": 11
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European conference on computer vision, pp. 694–711. Springer, 2016. ",
1200
+ "bbox": [
1201
+ 171,
1202
+ 454,
1203
+ 823,
1204
+ 483
1205
+ ],
1206
+ "page_idx": 11
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ Hk99zCeAb. ",
1211
+ "bbox": [
1212
+ 176,
1213
+ 492,
1214
+ 823,
1215
+ 535
1216
+ ],
1217
+ "page_idx": 11
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "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 (CVPR), June 2019. ",
1222
+ "bbox": [
1223
+ 174,
1224
+ 544,
1225
+ 825,
1226
+ 587
1227
+ ],
1228
+ "page_idx": 11
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "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, pp. 8110–8119, 2020. ",
1233
+ "bbox": [
1234
+ 174,
1235
+ 597,
1236
+ 826,
1237
+ 640
1238
+ ],
1239
+ "page_idx": 11
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1244
+ "bbox": [
1245
+ 173,
1246
+ 648,
1247
+ 823,
1248
+ 678
1249
+ ],
1250
+ "page_idx": 11
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014. ",
1255
+ "bbox": [
1256
+ 171,
1257
+ 686,
1258
+ 753,
1259
+ 702
1260
+ ],
1261
+ "page_idx": 11
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper/2018/file/ d139db6a236200b21cc7f752979132d0-Paper.pdf. ",
1266
+ "bbox": [
1267
+ 173,
1268
+ 710,
1269
+ 825,
1270
+ 781
1271
+ ],
1272
+ "page_idx": 11
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012. ",
1277
+ "bbox": [
1278
+ 173,
1279
+ 790,
1280
+ 823,
1281
+ 833
1282
+ ],
1283
+ "page_idx": 11
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Julia A Lasserre, Christopher M Bishop, and Thomas P Minka. Principled hybrids of generative and discriminative models. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 1, pp. 87–94. IEEE, 2006. ",
1288
+ "bbox": [
1289
+ 173,
1290
+ 843,
1291
+ 821,
1292
+ 886
1293
+ ],
1294
+ "page_idx": 11
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. ",
1299
+ "bbox": [
1300
+ 171,
1301
+ 895,
1302
+ 821,
1303
+ 924
1304
+ ],
1305
+ "page_idx": 11
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Sachit Menon, Alex Damian, McCourt Hu, Nikhil Ravi, and Cynthia Rudin. Pulse: Self-supervised photo upsampling via latent space exploration of generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. ",
1310
+ "bbox": [
1311
+ 176,
1312
+ 103,
1313
+ 823,
1314
+ 146
1315
+ ],
1316
+ "page_idx": 12
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "Charlie Nash, Jacob Menick, S. Dieleman, and P. Battaglia. Generating images with sparse representations. ICML, abs/2103.03841, 2021. ",
1321
+ "bbox": [
1322
+ 174,
1323
+ 155,
1324
+ 821,
1325
+ 184
1326
+ ],
1327
+ "page_idx": 12
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8162–8171. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/ nichol21a.html. ",
1332
+ "bbox": [
1333
+ 174,
1334
+ 193,
1335
+ 825,
1336
+ 262
1337
+ ],
1338
+ "page_idx": 12
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (eds.), ECCV, 2016a. ",
1343
+ "bbox": [
1344
+ 174,
1345
+ 271,
1346
+ 823,
1347
+ 300
1348
+ ],
1349
+ "page_idx": 12
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision, pp. 69–84. Springer, 2016b. ",
1354
+ "bbox": [
1355
+ 173,
1356
+ 309,
1357
+ 820,
1358
+ 338
1359
+ ],
1360
+ "page_idx": 12
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. arXiv preprint arXiv:1711.00937, 2017. ",
1365
+ "bbox": [
1366
+ 173,
1367
+ 347,
1368
+ 820,
1369
+ 376
1370
+ ],
1371
+ "page_idx": 12
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "Gaurav Parmar, Dacheng Li, Kwonjoon Lee, and Zhuowen Tu. Dual contradistinctive generative autoencoder. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 823–832, June 2021. ",
1376
+ "bbox": [
1377
+ 174,
1378
+ 383,
1379
+ 825,
1380
+ 428
1381
+ ],
1382
+ "page_idx": 12
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In Jennifer G. Dy and Andreas Krause (eds.), ICML, 2018. ",
1387
+ "bbox": [
1388
+ 174,
1389
+ 435,
1390
+ 823,
1391
+ 465
1392
+ ],
1393
+ "page_idx": 12
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "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. [to appear]. ",
1398
+ "bbox": [
1399
+ 174,
1400
+ 473,
1401
+ 825,
1402
+ 516
1403
+ ],
1404
+ "page_idx": 12
1405
+ },
1406
+ {
1407
+ "type": "text",
1408
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In Yoshua Bengio and Yann LeCun (eds.), ICLR, 2016. ",
1409
+ "bbox": [
1410
+ 174,
1411
+ 525,
1412
+ 825,
1413
+ 566
1414
+ ],
1415
+ "page_idx": 12
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018. ",
1420
+ "bbox": [
1421
+ 171,
1422
+ 575,
1423
+ 823,
1424
+ 606
1425
+ ],
1426
+ "page_idx": 12
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "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. ",
1431
+ "bbox": [
1432
+ 171,
1433
+ 613,
1434
+ 823,
1435
+ 643
1436
+ ],
1437
+ "page_idx": 12
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In Marina Meila and Tong Zhang (eds.), ICML, 2021. ",
1442
+ "bbox": [
1443
+ 174,
1444
+ 651,
1445
+ 823,
1446
+ 694
1447
+ ],
1448
+ "page_idx": 12
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with ¨ VQ-VAE-2. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, ´ Emily B. Fox, and Roman Garnett (eds.), NeurIPS, 2019. ",
1453
+ "bbox": [
1454
+ 176,
1455
+ 703,
1456
+ 823,
1457
+ 746
1458
+ ],
1459
+ "page_idx": 12
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "Edgar Schonfeld, Bernt Schiele, and Anna Khoreva. A u-net based discriminator for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8207–8216, 2020. ",
1464
+ "bbox": [
1465
+ 178,
1466
+ 755,
1467
+ 823,
1468
+ 797
1469
+ ],
1470
+ "page_idx": 12
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. In International Conference on Machine Learning, pp. 4596–4604. PMLR, 2018. ",
1475
+ "bbox": [
1476
+ 171,
1477
+ 806,
1478
+ 820,
1479
+ 835
1480
+ ],
1481
+ "page_idx": 12
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1486
+ "bbox": [
1487
+ 173,
1488
+ 843,
1489
+ 823,
1490
+ 872
1491
+ ],
1492
+ "page_idx": 12
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alche-Buc, Emily B. ´ Fox, and Roman Garnett (eds.), NeurIPS, 2019. ",
1497
+ "bbox": [
1498
+ 176,
1499
+ 882,
1500
+ 823,
1501
+ 924
1502
+ ],
1503
+ "page_idx": 12
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "Ryan Steed and Aylin Caliskan. Image representations learned with unsupervised pre-training contain human-like biases. In The 2021 ACM Conference on Fairness, Accountability, and Transparency (ACM FAccT 2021), 2021. URL https://arxiv.org/abs/2010.15052. ",
1508
+ "bbox": [
1509
+ 176,
1510
+ 103,
1511
+ 821,
1512
+ 146
1513
+ ],
1514
+ "page_idx": 13
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "Arash Vahdat and Jan Kautz. NVAE: A deep hierarchical variational autoencoder. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), NeurIPS, 2020. ",
1519
+ "bbox": [
1520
+ 176,
1521
+ 154,
1522
+ 821,
1523
+ 195
1524
+ ],
1525
+ "page_idx": 13
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and ¨ Alex Graves. Conditional image generation with pixelcnn decoders. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett (eds.), NeurIPS, 2016. ",
1530
+ "bbox": [
1531
+ 176,
1532
+ 203,
1533
+ 821,
1534
+ 246
1535
+ ],
1536
+ "page_idx": 13
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learn- ¨ ing. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett (eds.), NeurIPS, 2017. ",
1541
+ "bbox": [
1542
+ 176,
1543
+ 253,
1544
+ 821,
1545
+ 296
1546
+ ],
1547
+ "page_idx": 13
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predic- ¨ tive coding. arXiv preprint arXiv:1807.03748, abs/1807.03748, 2018. ",
1552
+ "bbox": [
1553
+ 173,
1554
+ 304,
1555
+ 823,
1556
+ 333
1557
+ ],
1558
+ "page_idx": 13
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. ",
1563
+ "bbox": [
1564
+ 173,
1565
+ 340,
1566
+ 823,
1567
+ 369
1568
+ ],
1569
+ "page_idx": 13
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "Mika Westerlund. The emergence of deepfake technology: A review. Technology Innovation Management Review, 9:40–53, 11/2019 2019. ISSN 1927-0321. doi: http://doi.org/10.22215/ timreview/1282. URL timreview.ca/article/1282. ",
1574
+ "bbox": [
1575
+ 176,
1576
+ 376,
1577
+ 823,
1578
+ 419
1579
+ ],
1580
+ "page_idx": 13
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "Zhisheng Xiao, Karsten Kreis, Jan Kautz, and Arash Vahdat. $\\{ { \\mathrm { V A E B M } } \\}$ : A symbiosis between variational autoencoders and energy-based models. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id ${ . } =$ 5m3SEczOV8L. ",
1585
+ "bbox": [
1586
+ 174,
1587
+ 426,
1588
+ 823,
1589
+ 469
1590
+ ],
1591
+ "page_idx": 13
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In International conference on machine learning, pp. 7354–7363. PMLR, 2019a. ",
1596
+ "bbox": [
1597
+ 174,
1598
+ 477,
1599
+ 823,
1600
+ 518
1601
+ ],
1602
+ "page_idx": 13
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "text": "Han Zhang, Ian J. Goodfellow, Dimitris N. Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In ICML, 2019b. ",
1607
+ "bbox": [
1608
+ 171,
1609
+ 526,
1610
+ 823,
1611
+ 555
1612
+ ],
1613
+ "page_idx": 13
1614
+ },
1615
+ {
1616
+ "type": "text",
1617
+ "text": "Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018. ",
1618
+ "bbox": [
1619
+ 173,
1620
+ 563,
1621
+ 823,
1622
+ 606
1623
+ ],
1624
+ "page_idx": 13
1625
+ },
1626
+ {
1627
+ "type": "text",
1628
+ "text": "A LINEAR-PROBE ON IMAGENET ",
1629
+ "text_level": 1,
1630
+ "bbox": [
1631
+ 176,
1632
+ 630,
1633
+ 464,
1634
+ 645
1635
+ ],
1636
+ "page_idx": 13
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "We show linear-probe accuracy from different layers in a pretrained VIM-Base Transformer model in Figure 3. Similar to iGPT (Chen et al., 2020a), we also find the last few layers may not be the best layers for discriminative features, as the generative pretraining objective is to recover the original image tokens. The linearprobe accuracy increases quickly from the first transformer output, reaches its peak at middle layers, and finally decreases for the last few blocks. Interestingly, we find for both VIMBase and VIM-Large, the middle transformer block has the near-best result. This observation connects the transformer model to an encoderdecoder model where the encoder encodes image tokens into high-level semantic features and the decoder takes feature information to gener",
1641
+ "bbox": [
1642
+ 174,
1643
+ 660,
1644
+ 483,
1645
+ 896
1646
+ ],
1647
+ "page_idx": 13
1648
+ },
1649
+ {
1650
+ "type": "image",
1651
+ "img_path": "images/1d84e809d5636b23d7ceb5e8d59293c393c6e1ce9679abdcb3fefcdce313b433.jpg",
1652
+ "image_caption": [
1653
+ "Figure 3: Linear-probe accuracy from different layers in a pretrained VIM-Base Transformer model. "
1654
+ ],
1655
+ "image_footnote": [],
1656
+ "bbox": [
1657
+ 500,
1658
+ 655,
1659
+ 818,
1660
+ 824
1661
+ ],
1662
+ "page_idx": 13
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "ate output image tokens. We leave for future study regrading the interpretability of pretrained VIM models. ",
1667
+ "bbox": [
1668
+ 174,
1669
+ 896,
1670
+ 825,
1671
+ 922
1672
+ ],
1673
+ "page_idx": 13
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "B MODEL SIZES OF CLASS-CONDITIONED IMAGENET SYNTHESIS",
1678
+ "text_level": 1,
1679
+ "bbox": [
1680
+ 174,
1681
+ 102,
1682
+ 738,
1683
+ 118
1684
+ ],
1685
+ "page_idx": 14
1686
+ },
1687
+ {
1688
+ "type": "table",
1689
+ "img_path": "images/d24a65630b9f09a345b16a42be65ed57e5d1898fca149858925b11243c15790f.jpg",
1690
+ "table_caption": [
1691
+ "We also present results of different sizes of Stage 2 Transformers for class-conditioned image synthesis and compare with VQGAN (Esser et al., 2021)4 summarized in Table 8. "
1692
+ ],
1693
+ "table_footnote": [],
1694
+ "table_body": "<table><tr><td>Model</td><td>Stage-2 Transformer Size</td><td>#Tokens</td><td>FID</td><td>IS</td></tr><tr><td>Validation data</td><td>/</td><td>=</td><td>1.62</td><td>235.0</td></tr><tr><td>VQGAN (Esser et al.,2021)</td><td>1.4B</td><td>16 ×16</td><td>17.04</td><td>70.6</td></tr><tr><td>ViT-VQGAN+VIM-Base</td><td>650M</td><td>16 ×16</td><td>11.20</td><td>97.2</td></tr><tr><td>ViT-VQGAN + VIM-Large</td><td>1.7B</td><td>16 ×16</td><td>5.3</td><td>149.9</td></tr><tr><td>ViT-VQGAN + VIM-Base</td><td>650M</td><td>32 × 32</td><td>8.81</td><td>110.8</td></tr><tr><td>ViT-VQGAN + VIM-Large</td><td>1.7B</td><td>32 ×32</td><td>4.17</td><td>175.1</td></tr></table>",
1695
+ "bbox": [
1696
+ 236,
1697
+ 174,
1698
+ 758,
1699
+ 286
1700
+ ],
1701
+ "page_idx": 14
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "Table 8: FID comparison for class-conditional image synthesis on ImageNet with different Transformer sizes in Stage 2. Results are reported without rejection sampling. ",
1706
+ "bbox": [
1707
+ 173,
1708
+ 296,
1709
+ 821,
1710
+ 325
1711
+ ],
1712
+ "page_idx": 14
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "text": "C IMPLEMENTATION DETAILS OF FACTORIZED CODEBOOK ",
1717
+ "text_level": 1,
1718
+ "bbox": [
1719
+ 174,
1720
+ 359,
1721
+ 678,
1722
+ 376
1723
+ ],
1724
+ "page_idx": 14
1725
+ },
1726
+ {
1727
+ "type": "text",
1728
+ "text": "As we introduced in Section 3.2, we use a linear projection to reduce the encoded embedding to a low-dimensional variable space for code lookup. A detailed illustration is shown in Figure 4. ",
1729
+ "bbox": [
1730
+ 174,
1731
+ 391,
1732
+ 825,
1733
+ 420
1734
+ ],
1735
+ "page_idx": 14
1736
+ },
1737
+ {
1738
+ "type": "image",
1739
+ "img_path": "images/808468d18686ea4c5749fcf0e24a77e6508b7620f5bbe5bc1144fb5f4eb09778.jpg",
1740
+ "image_caption": [
1741
+ "Figure 4: Illustration of factorized codes and codebook details. "
1742
+ ],
1743
+ "image_footnote": [],
1744
+ "bbox": [
1745
+ 179,
1746
+ 433,
1747
+ 813,
1748
+ 638
1749
+ ],
1750
+ "page_idx": 14
1751
+ },
1752
+ {
1753
+ "type": "image",
1754
+ "img_path": "images/0cf2583848d23fed0a25567a05ff4f7a7593c2be749af32a27ee19d63132e4bd.jpg",
1755
+ "image_caption": [
1756
+ "Figure 5: Uncurated set of samples from class-conditioned generation trained on ImageNet. "
1757
+ ],
1758
+ "image_footnote": [],
1759
+ "bbox": [
1760
+ 238,
1761
+ 99,
1762
+ 841,
1763
+ 901
1764
+ ],
1765
+ "page_idx": 15
1766
+ },
1767
+ {
1768
+ "type": "text",
1769
+ "text": "Scale ",
1770
+ "bbox": [
1771
+ 184,
1772
+ 372,
1773
+ 222,
1774
+ 386
1775
+ ],
1776
+ "page_idx": 16
1777
+ },
1778
+ {
1779
+ "type": "image",
1780
+ "img_path": "images/2260824a7c774887327e7ed39a63230563e7ec24f408abf7f020883a92447b17.jpg",
1781
+ "image_caption": [
1782
+ "Figure 6: Uncurated set of samples from class-conditioned generation trained on ImageNet. "
1783
+ ],
1784
+ "image_footnote": [],
1785
+ "bbox": [
1786
+ 269,
1787
+ 98,
1788
+ 838,
1789
+ 900
1790
+ ],
1791
+ "page_idx": 16
1792
+ }
1793
+ ]
parse/dev/pfNyExj7z2/pfNyExj7z2_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/pfNyExj7z2/pfNyExj7z2_model.json ADDED
The diff for this file is too large to render. See raw diff