Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/HyGySsAct7/HyGySsAct7.md +175 -0
- parse/train/HyGySsAct7/HyGySsAct7_content_list.json +993 -0
- parse/train/HyGySsAct7/HyGySsAct7_middle.json +0 -0
- parse/train/HyGySsAct7/HyGySsAct7_model.json +0 -0
- parse/train/LT0KSFnQDWF/LT0KSFnQDWF.md +0 -0
- parse/train/LT0KSFnQDWF/LT0KSFnQDWF_content_list.json +0 -0
- parse/train/LT0KSFnQDWF/LT0KSFnQDWF_middle.json +0 -0
- parse/train/LT0KSFnQDWF/LT0KSFnQDWF_model.json +0 -0
- parse/train/SyxAb30cY7/SyxAb30cY7.md +529 -0
- parse/train/SyxAb30cY7/SyxAb30cY7_content_list.json +0 -0
- parse/train/SyxAb30cY7/SyxAb30cY7_middle.json +0 -0
- parse/train/SyxAb30cY7/SyxAb30cY7_model.json +0 -0
- parse/train/_X_4Akcd8Re/_X_4Akcd8Re.md +398 -0
- parse/train/_X_4Akcd8Re/_X_4Akcd8Re_content_list.json +2026 -0
- parse/train/_X_4Akcd8Re/_X_4Akcd8Re_middle.json +0 -0
- parse/train/_X_4Akcd8Re/_X_4Akcd8Re_model.json +0 -0
- parse/train/nzpLWnVAyah/nzpLWnVAyah.md +344 -0
- parse/train/nzpLWnVAyah/nzpLWnVAyah_content_list.json +1882 -0
- parse/train/nzpLWnVAyah/nzpLWnVAyah_middle.json +0 -0
- parse/train/nzpLWnVAyah/nzpLWnVAyah_model.json +0 -0
parse/train/HyGySsAct7/HyGySsAct7.md
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TARGETED ADVERSARIAL EXAMPLES FOR BLACK BOX AUDIO SYSTEMS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The application of deep recurrent networks to audio transcription has led to impressive gains in automatic speech recognition (ASR) systems. Many have demonstrated that small adversarial perturbations can fool deep neural networks into incorrectly predicting a specified target with high confidence. Current work on fooling ASR systems have focused on white-box attacks, in which the model architecture and parameters are known. In this paper, we adopt a black-box approach to adversarial generation, combining the approaches of both genetic algorithms and gradient estimation to solve the task. We achieve a $8 9 . 2 5 \%$ targeted attack similarity after 3000 generations while maintaining $9 4 . 6 \%$ audio file similarity.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Although neural networks have incredible expressive capacity, which allow them to be well suited for a variety of machine learning tasks, they have been shown to be vulnerable to adversarial attacks over multiple network architectures and datasets Goodfellow et al. (2014). These attacks can be done by adding small perturbations to the original input so that the network misclassifies the input but a human does not notice the difference.
|
| 12 |
+
|
| 13 |
+
So far, there has been much more work done in generating adversarial examples for image inputs than for other domains, such as audio. Voice control systems are widely used in many products from personal assistants, like Amazon Alexa and Apple Siri, to voice command technologies in cars. One main challenge for such systems is determining exactly what the user is saying and correctly interpreting the statement. As deep learning helps these systems better understand the user, one potential issue is targeted adversarial attacks on the system, which perturb the waveform of what the user says to the system to cause the system to behave in a predetermined inappropriate way. For example, a seemingly benign TV advertisement could be adversely perturbed to cause Alexa to interpret the audio as “Alexa, buy 100 headphones.” If the original user went back to listen to the audio clip that prompted the order, the noise would be almost undetectable to the human ear.
|
| 14 |
+
|
| 15 |
+
There are multiple different methods of performing adversarial attacks depending on what information the attacker has about the network. If given access to the parameters of a network, white box attacks are most successful, such as the Fast Gradient Sign Method Goodfellow et al. (2014) or DeepFool Moosavi-Dezfooli et al. (2015). However, assuming an attacker has access to all the parameters of a network is unrealistic in practice. In a black box setting, when an attacker only has access to the logits or outputs of a network, it is much harder to consistently create successful adversarial attacks.
|
| 16 |
+
|
| 17 |
+
In certain special black box settings, white box attack methods can be reused if an attacker creates a model that approximates the original targeted model. However, even though attacks can transfer across networks for some domains, this requires more knowledge of how to solve the task that the original model is solving than an attacker may have Liu et al. (2016); Papernot et al. (2016). Instead, we propose a novel combination of genetic algorithms and gradient estimation to solve this task. The first phase of the attack is carried out by genetic algorithms, which are a gradient-free method of optimization that iterate over populations of candidates until a suitable sample is produced. In order to limit excess mutations and thus excess noise, we improve the standard genetic algorithm with a new momentum mutation update. The second phase of the attack utilizes gradient estimation, where the gradients of individual audio points are estimated, thus allowing for more careful noise placement when the adversarial example is nearing its target. The combination of these two approaches provides a $8 9 . 2 5 \%$ average targeted attack similarity with a $9 4 . 6 \%$ audio file similarity after 3000 generations.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Example of targeted adversarial attack on speech to text systems in practice
|
| 21 |
+
|
| 22 |
+
# 1.1 PROBLEM STATEMENT
|
| 23 |
+
|
| 24 |
+
Adversarial attacks can be created given a variety of information about the neural network, such as the loss function or the output probabilities. However in a natural setting, usually the neural network behind such a voice control system will not be publicly released so an adversary will only have access to an API which provides the text the system interprets given a continuous waveform. Given this constraint, we use the open sourced Mozilla DeepSpeech implementation as a black box system, without using any information on how the transcription is done.
|
| 25 |
+
|
| 26 |
+
We perform our black box targeted attack on a model $M$ given a benign input $x$ and a target $t$ by perturbing $x$ to form the adversarial input $x ^ { \prime } = x + \delta$ , such that $M ( x ^ { \prime } ) = t$ . To minimize the audible noise added to the input, so a human cannot notice the target, we maximize the cross correlation between $x$ and $x ^ { \prime }$ . A sufficient value of $\delta$ is determined using our novel black box approach, so we do not need access to the gradients of $M$ to perform the attack.
|
| 27 |
+
|
| 28 |
+
# 1.2 PRIOR WORK
|
| 29 |
+
|
| 30 |
+
Compared to images, audio presents a much more significant challenge for models to deal with. While convolutional networks can operate directly on the pixel values of images, ASR systems typically require heavy pre-processing of the input audio. Most commonly, the Mel-Frequency Cepstrum (MFC) transform, essentially a fourier transform of the sampled audio file, is used to convert the input audio into a spectogram which shows frequencies over time. Models such as DeepSpeech (Fig. 2) use this spectogram as the initial input.
|
| 31 |
+
|
| 32 |
+
In a foundational study for adversarial attacks, Cisse et al. (2017) developed a general attack framework to work across a wide variety of models including images and audio. When applying their method to audio samples, they ran into the roadblock of backpropagating through the MFC conversion layer. Thus, they were able to produce adversarial spectograms but not adversarial .wav files.
|
| 33 |
+
|
| 34 |
+
Carlini & Wagner (2018) overcame this challenge by developing a method of passing gradients through the MFC layer, a task which was previously proved to be difficult Cisse et al. (2017). They applied their method to the Mozilla DeepSpeech model, which is a complex, recurrent, character-level network that can decode translations at up to 50 characters per second. With a gradient connection all the way to the raw input, they were able to achieve impressive results, including generating samples over $9 9 . 9 \%$ similar with a targeted attack accuracy of $100 \%$ . While the success of this attack opens new doors for white box attacks, adversaries in a real-life setting commonly do not have knowledge of model architectures or parameters.
|
| 35 |
+
|
| 36 |
+
Alzantot et al. (2018) have demonstrated that black-box approaches for targeted attacks on ASR systems are possible. Using a genetic algorithm approach, they were able to iteratively apply noise to audio samples, pruning away poor performers at each generation, and ultimately end up with a perturbed version of the input that successfully fooled a classification system. This attack was conducted on the Speech Commands classification model Alzantot et al. (2018), which is a lightweight convolutional model for classifying up to 50 different single-word phrases.
|
| 37 |
+
|
| 38 |
+
Extending the research done by Alzantot et al. (2018), we propose a genetic algorithm and gradient estimation approach to create targeted adversarial audio, but on the more complex DeepSpeech system. The difficulty of this task comes in attempting to apply black-box optimization to a deeplylayered, highly nonlinear decoder model that has the ability to decode phrases of arbitrary length. Nevertheless, the combination of two differing approaches as well as the momentum mutation update bring new success to this task.
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2: Diagram of Baidu’s DeepSpeech model Hannun et al. (2014)
|
| 42 |
+
|
| 43 |
+
# 1.3 BACKGROUND
|
| 44 |
+
|
| 45 |
+
Dataset For the attack, we follow Carlini & Wagner (2018) and take the first 100 audio samples from the CommonVoice test set. For each, we randomly generate a 2-word target phrase and apply our black-box approach to construct an adversarial example. More details on evaluation can be found in section 3. Each sample in the dataset is a .wav file, which can easily be deserialized into a numpy array. Our algorithm operates directly on the numpy arrays, thus bypassing the difficulty of dealing with the MFC conversion.
|
| 46 |
+
|
| 47 |
+
Victim model The model we attack is Baidu’s DeepSpeech model Hannun et al. (2014), implemented in Tensorflow and open-sourced by Mozilla.1 Though we have access to the full model, we treat it as if in a black box setting and only access the output logits of the model. In line with other speech to text systems Chiu et al. (2017); Cisse et al. (2017), DeepSpeech accepts a spectrogram of the audio file. After performing the MFC conversion, the model consists 3 layers of convolutions, followed by a bi-directional LSTM, followed by a fully connected layer. This layer is then fed into the decoder RNN, which outputs logits over the distribution of output characters, up to 50 characters per second of audio. The model is illustrated in figure 2.
|
| 48 |
+
|
| 49 |
+
Connectionist temporal classication While the DeepSpeech model is designed to allow arbitrary length translations, there is no given labeled alignment of the output and input sequences during training time. Thus the connectionist temporal classication loss (CTC Loss) is introduced, as it allows computing a loss even when the position of a decoded word in the original audio is unknown Carlini & Wagner (2018).
|
| 50 |
+
|
| 51 |
+
DeepSpeech outputs a probability distribution over all characters at every frame, for 50 frames per second of audio. In addition to outputting the normal alphabet a-z and space, it can output special character $\epsilon$ . Then CTC decoder $C ( \cdot )$ decodes the logits as such: for every frame, take the character with the max logit. Then first, remove all adjacent duplicate characters, and then second, remove any special $\epsilon$ characters. Thus aabb will decode to abb Carlini & Wagner (2018).
|
| 52 |
+
|
| 53 |
+
As we can see, multiple outputs can decode to the same phrase. Following the notation in Carlini & Wagner (2018), for any target phrase $p$ , we call $\pi$ an alignment of $p$ if $C ( \pi ) = p$ . Let us also call the output distribution of our model $y$ . Now, in order to find the likelihood of alignment $\pi$ under $y$ :
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
P r ( p | y ) = \sum _ { \pi | C ( \pi ) = p } P r ( \pi | y ) = \sum _ { \pi | C ( \pi ) = p } \prod _ { i } y _ { \pi } ^ { i }
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
as noted by Carlini & Wagner (2018). This is the objective we use when scoring samples from the populations in each generation of our genetic algorithm as well as the score used in estimating gradients.
|
| 60 |
+
|
| 61 |
+
Greedy decoding As in traditional recurrent decoder systems, DeepSpeech typically uses a beam search of beam width 500. At each frame of decoding, 500 of the most likely $\pi$ will be evaluated, each producing another 500 candidates for a total of 2500, which are pruned back down to 500 for the next timestep. Evaluating multiple assignments this way increases the robustness of the model decoding. However, following work in Carlini & Wagner (2018), we set the model to use greedy decoding. At each timestep only $1 \pi$ is evaluated, leading to a greedy assignment:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
d e c o d e ( x ) = C ( \arg \operatorname* { m a x } _ { \pi } P r ( { y } ( { x } ) | \pi ) )
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Thus, our genetic algorithm will focus on creating perturbations to the most likely sequence (if greedily approximated).
|
| 68 |
+
|
| 69 |
+
# 2 BLACK BOX ATTACK ALGORITHM
|
| 70 |
+
|
| 71 |
+
<table><tr><td>Algorithm1 Black box algorithm for generating adversarial audio sample</td></tr><tr><td>Input: Original benign input x Target phrase t Output: Adversarial Audio Sample x' population ← [x] * populationSize while iter<maxIters and Decode(best)!= t do scores ← -CTCLoss(population,t) best ← population[Argmax(scores)]</td></tr><tr><td>if EditDistance(t,Decode(best)) >2 then / phase 1 - do genetic algorithm while populationSize children have not been made do</td></tr><tr><td>Select parent1 from topk(population) according to softmax(their score) Select parent2 from topk(population) according to softmax(their score) child ← Mutate(Crossover(parent1,parent2), p)</td></tr><tr><td>end while newScores ← -CTCLoss(newPopulation,t)</td></tr><tr><td>p ← MomentumUpdate(p,newScores, scores) else</td></tr><tr><td>/ phase 2 - do gradient estimation top-element ← top(population) grad-pop ← n copies of top-element, each mutated slightly at one index grad ←(-CTCLoss(grad-pop)- scores)/mutation-delta pop ← top-element + grad</td></tr></table>
|
| 72 |
+
|
| 73 |
+
# 2.1 GENETIC ALGORITHM
|
| 74 |
+
|
| 75 |
+
As mentioned previously, Alzantot et al. (2018) demonstrated the success of a black-box adversarial attack on speech-to-text systems using a standard genetic algorithm. The basic premise of our algorithm is that it takes in the benign audio sample and, through trial and error, adds noise to the sample such that the perturbed adversarial audio is similar to the benign input yet is decoded as the target, as shown in Figure 3. A genetic algorithm works well for a problem of this nature because it is completely independent of the gradients of the model. Alzantot et al. (2018) used a limited dataset consisting of audio samples with just one word and a classification with a predefined number of classes. In order to extend this algorithm to work with phrases and sentences, as well as with CTC Loss, we make modifications to the genetic algorithm and introduce our novel momentum mutation.
|
| 76 |
+
|
| 77 |
+
The genetic algorithm works by improving on each iteration, or generation, through evolutionary methods such as Crossover and Mutation Holland (1992). For each iteration, we compute the score for each sample in the population to determine which samples are the best. Our scoring function was the CTC-Loss, which as mentioned previously, is used to determine the similarity between an input audio sequence and a given phrase. We then form our elite population by selecting the best scoring samples from our population. The elite population contains samples with desirable traits that we want to carry over into future generations. We then select parents from the elite population and perform Crossover, which creates a child by taking around half of the elements from parent1 and the other half from parent2. The probability that we select a sample as a parent is a function of the sample’s score. With some probability, we then add a mutation to our new child. Finally, we update our mutation probabilities according to our momentum update, and move to the next iteration. The population will continue to improve over time as only the best traits of the previous generations as well as the best mutations will remain. Eventually, either the algorithm will reach the max number of iterations, or one of the samples is exactly decoded as the target, and the best sample is returned.
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 3: Diagram of our genetic algorithm
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 4: Overlapping of adversarial (blue) and original (orange) audio sample waveforms. The perturbation is barely noticeable
|
| 84 |
+
|
| 85 |
+
# 2.2 MOMENTUM MUTATION
|
| 86 |
+
|
| 87 |
+
<table><tr><td>Algorithm 2 Mutation</td></tr><tr><td>Input: Audio Sample x</td></tr><tr><td>Mutation Probability p</td></tr><tr><td>Output: Mutated Audio Sample x'</td></tr><tr><td></td></tr><tr><td>for all e in x do</td></tr><tr><td>noise ← Sample(N(μ,σ²)) if Sample(Unif(O,1))<p then</td></tr><tr><td>e' ←e+ filterhighpass(noise)</td></tr><tr><td>end if</td></tr><tr><td>end for</td></tr><tr><td>return x</td></tr></table>
|
| 88 |
+
|
| 89 |
+
The mutation step is arguably the most crucial component of the genetic algorithm and is our only source of noise in the algorithm. In the mutation step, with some probability, we randomly add noise to our sample. Random mutations are critical because it may cause a trait to appear that is beneficial for the population, which can then be proliferated through crossover. Without mutation, very similar samples will start to appear across generations; thus, the way out of this local maximum is to nudge it in a different direction in order to reach higher scores.
|
| 90 |
+
|
| 91 |
+
Furthermore, since this noise is perceived as background noise, we apply a filter to the noise before adding it onto the audio sample. The audio is sampled at a rate of $f _ { s } = 1 6 k H z$ , which means that the maximum frequency response $f _ { m a x } = 8 k H z$ . As seen by Reichenbach & Hudspeth (2012), given that the human ear is more sensitive to lower frequencies than higher ones, we apply a highpass filter at a cutoff frequency of $f _ { c u t o f f } = 7 k H z$ . This limits the noise to only being in the high-frequency range, which is less audible and thus less detectable by the human ear.
|
| 92 |
+
|
| 93 |
+
While mutation helps the algorithm overcome local maxima, the effect of mutation is limited by the mutation probability. Much like the step size in SGD, a low mutation probability may not provide enough randomness to get past a local maximum. If mutations are rare, they are very unlikely to occur in sequence and add on to each other. Therefore, while a mutation might be beneficial when accumulated with other mutations, due to the low mutation probability, it is deemed as not beneficial by the algorithm in the short term, and will disappear within a few iterations. This parallels the step size in SGD, because a small step size will eventually converge back at the local minimum/maximum. However, too large of a mutation probability, or step size, will add an excess of variability and prevent the algorithm from finding the global maximum/minimum. To combat these issues, we propose Momentum Mutation, which is inspired by the Momentum Update for Gradient Descent. With this update, our mutation probability changes in each iteration according to the following exponentially weighted moving average update:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
p _ { n e w } = \alpha \times p _ { o l d } + \frac { \beta } { | c u r r S c o r e - p r e v S c o r e | }
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
With this update equation, the probability of a mutation increases as our population fails to adapt meaning the current score is close to the previous score. The momentum update adds acceleration to the mutation probability, allowing mutations to accumulate and add onto each other by keeping the mutation probability high when the algorithm is stuck at a local maximum. By using a moving average, the mutation probability becomes a smooth function and is less susceptible to outliers in the population. While the momentum update may overshoot the target phrase by adding random noise, overall it converges faster than a constant mutation probability by allowing for more acceleration in the right directions.
|
| 100 |
+
|
| 101 |
+
# Algorithm 3 Momentum Mutation Update
|
| 102 |
+
|
| 103 |
+
<table><tr><td>Input: Mutation Probability p Scores for the new population new Scores Scores for the previous population scores Output: Updated mutation probability pnew currScore = max(newScores)</td></tr><tr><td>prevScore = max(scores) β</td></tr><tr><td>Pnew =αX Pold + lcurrScore-prevScorel return pnew</td></tr></table>
|
| 104 |
+
|
| 105 |
+
# 2.3 GRADIENT ESTIMATION
|
| 106 |
+
|
| 107 |
+
Genetic algorithms work well when the target space is large and a relatively large number of mutation directions are potentially beneficial; the strength of these algorithms lies in being able to search large amounts of space efficiently Godefroi & Khurshid (unkown). When an adversarial sample nears its target perturbation, this strength of genetic algorithms turn into a weakness, however. Close to the end, adversarial audio samples only need a few perturbations in a few key areas to get the correct decoding. In this case, gradient estimation techniques tend to be more effective. Specifically, when edit distance of the current decoding and the target decoding drops below some threshold, we switch to phase 2. When approximating the gradient of a black box system, we can use the technique proposed by Nitin Bhagoji et al. (2017):
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
F D _ { x } ( x , \delta ) = \binom { \lceil { ( g ( x + \delta _ { 1 } ) - g ( x ) ) } / \delta } { \vdots }
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
Here, $x$ refers to the vector of inputs representing the audio file. $\delta _ { i }$ refers to a vector of all zeros, except at the $i ^ { t h }$ position in which the value is a small $\delta$ . $g ( \cdot )$ represents the evaluation function, which in our case is CTCLoss. Essentially, we are performing a small perturbation at each index and individually seeing what the difference in CTCLoss would be, allowing us to compute a gradient estimate with respect to the input $x$ .
|
| 114 |
+
|
| 115 |
+
However, performing this calculation in full would be prohibitively expensive, as the audio is sampled at $1 6 k H z$ and so a simple 5-second clip would require 80,000 queries to the model for just one gradient evaluation! Thus, we only randomly sample 100 indices to perturb each generation when using this method. When the adversarial example is already near the goal, gradient estimation makes the tradeoff for more informed perturbations in exchange for higher compute.
|
| 116 |
+
|
| 117 |
+
# 3 EVALUATION
|
| 118 |
+
|
| 119 |
+
# 3.1 METRICS
|
| 120 |
+
|
| 121 |
+
We tested our algorithm by running it on a 100 sample subset of the Common Voice dataset. For each audio sample, we generated a single random target phrase by selecting two words uniformly without replacement from the set of 1000 most common words in the English language. The algorithm was then run for each audio sample and target phrase pair for 3000 generations to produce a single adversarial audio sample.
|
| 122 |
+
|
| 123 |
+
We evaluated the performance of our algorithm in two primary ways. The first method is determining the accuracy with which the adversarial audio sample gets decoded to the desired target phrase. For this, we use the Levenshtein distance, or the minimum character edit distance, between the desired target phrase and the decoded phrase as the metric of choice. We then calculated the percent similarity between the desired target and the decoded phrase by calculating the ratio of the Levenshtein distance and the character length of the original input, ie. $\begin{array} { r } { \dot { 1 } - \frac { L e v e n s { \bar { h } } t e i n ( M ( x ^ { \prime } ) , t ) } { l e n ( M ( x ) ) } } \end{array}$ . The second method is determining the similarity between the original audio sample and the adversarial audio sample. For this, we use the accepted metric of the cross correlation coefficient between the two audio samples.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 5: Histogram of levenshtein distances of attacks.
|
| 127 |
+
|
| 128 |
+
# 3.2 RESULTS
|
| 129 |
+
|
| 130 |
+
Of the audio samples for which we ran our algorithm on, we achieved a $8 9 . 2 5 \%$ similarity between the final decoded phrase and the target using Levenshtein distance, with an average of $9 4 . 6 \%$ correlation similarity between the final adversarial sample and the original sample. The average final Levenshtein distance after 3000 iterations is 2.3, with $3 5 \%$ of the adversarial samples achieving an exact decoding in less than 3000 generations, and $22 \%$ of the adversarial samples achieving an exact decoding in less than 1000 generations.
|
| 131 |
+
|
| 132 |
+
One thing to note is that our algorithm was $3 5 \%$ successful in getting the decoded phrase to match the target exactly; however, noting from figure 5, the vast majority of failure cases are only a few edit distances away from the target. This suggests that running the algorithm for a few more iterations could produce a higher success rate, although at the cost of correlation similarity. Indeed, it becomes apparent that there is a tradeoff between success rate and audio similarity such that this threshold could be altered for the attacker’s needs.
|
| 133 |
+
|
| 134 |
+
A comparison of white box targeted attacks, black box targeted attacks on single words (classification), and our method:
|
| 135 |
+
|
| 136 |
+
<table><tr><td>Metric</td><td>WhiteBoxAttacks</td><td>Our Method</td><td>Single Word Black Box</td></tr><tr><td>Targeted attack success rate Average similarity score Similarity score method Loss used for attack Dataset tested on</td><td>100% 99.9% cross-correlation CTC</td><td>35% 94.6% cross-correlation CTC</td><td>87% 89% human study Softmax</td></tr></table>
|
| 137 |
+
|
| 138 |
+
One helpful visualization of the similarity between the original audio sample and the adversarial audio sample through the overlapping of both waveforms, as shown in figure 4. As the visualization shows, the audio is largely unchanged, and the majority of the changes to the audio is in the relatively low volume noise applied uniformly around the audio sample. This results in an audio sample that still appears to transcribe to the original intended phrase when heard by humans, but is decoded as the target adversarial phrase by the DeepSpeech model.
|
| 139 |
+
|
| 140 |
+
That $3 5 \%$ of random attacks were successful in this respect highlights the fact that black box adversarial attacks are definitely possible and highly effective at the same time.
|
| 141 |
+
|
| 142 |
+
# 4 CONCLUSION
|
| 143 |
+
|
| 144 |
+
In combining genetic algorithms and gradient estimation we are able to achieve a black box adversarial example for audio that produces better samples than each algorithm would produce individually. By initially using a genetic algorithm as a means of exploring more space through encouragement of random mutations and ending with a more guided search with gradient estimation, we are not only able to achieve perfect or near-perfect target transcriptions on most of the audio samples, we were able to do so while retaining a high degree of similarity. While this remains largely as a proof-of-concept demonstration, this paper shows that targeted adversarial attacks are achievable on black box models using straightforward methods.
|
| 145 |
+
|
| 146 |
+
Furthermore, the inclusion of momentum mutation and adding noise exclusively to high frequencies improved the effectiveness of our approach. Momentum mutation exaggerated the exploration at the beginning of the algorithm and annealed it at the end, emphasizing the benefits intended by combining genetic algorithms and gradient estimation. Restricting noise to the high frequency domain improved upon our similarity both subjectively by keeping it from interfering with human voice as well as objectively in our audio sample correlations. By combining all of these methods, we are able to achieve our top results.
|
| 147 |
+
|
| 148 |
+
In conclusion, we introduce a new domain for black box attacks, specifically on deep, nonlinear ASR systems that can output arbitrary length translations. Using a combination of existing and novel methods, we are able to exhibit the feasibility of our approach and open new doors for future research.
|
| 149 |
+
|
| 150 |
+
# REFERENCES
|
| 151 |
+
|
| 152 |
+
M. Alzantot, B. Balaji, and M. Srivastava. Did you hear that? Adversarial Examples Against Automatic Speech Recognition. ArXiv e-prints, January 2018.
|
| 153 |
+
N. Carlini and D. Wagner. Towards Evaluating the Robustness of Neural Networks. ArXiv e-prints, August 2016.
|
| 154 |
+
N. Carlini and D. Wagner. Audio Adversarial Examples: Targeted Attacks on Speech-to-Text. ArXiv e-prints, January 2018.
|
| 155 |
+
C.-C. Chiu, T. N. Sainath, Y. Wu, R. Prabhavalkar, P. Nguyen, Z. Chen, A. Kannan, R. J. Weiss, K. Rao, E. Gonina, N. Jaitly, B. Li, J. Chorowski, and M. Bacchiani. State-of-the-art Speech Recognition With Sequence-to-Sequence Models. ArXiv e-prints, December 2017.
|
| 156 |
+
|
| 157 |
+
M. Cisse, Y. Adi, N. Neverova, and J. Keshet. Houdini: Fooling Deep Structured Prediction Models. ArXiv e-prints, July 2017.
|
| 158 |
+
|
| 159 |
+
Patrice Godefroi and Sarfraz Khurshid. Exploring Very Large State Spaces Using Genetic Algorithm. MIT, unkown.
|
| 160 |
+
|
| 161 |
+
I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and Harnessing Adversarial Examples. ArXiv e-prints, December 2014.
|
| 162 |
+
|
| 163 |
+
A. Hannun, C. Case, J. Casper, B. Catanzaro, G. Diamos, E. Elsen, R. Prenger, S. Satheesh, S. Sengupta, A. Coates, and A. Y. Ng. Deep Speech: Scaling up end-to-end speech recognition. ArXiv e-prints, December 2014.
|
| 164 |
+
|
| 165 |
+
J. H. Holland. Genetic algorithms. Scientific american, 1992.
|
| 166 |
+
|
| 167 |
+
Y. Liu, X. Chen, C. Liu, and D. Song. Delving into Transferable Adversarial Examples and Black-box Attacks. ArXiv e-prints, November 2016.
|
| 168 |
+
|
| 169 |
+
S.-M. Moosavi-Dezfooli, A. Fawzi, and P. Frossard. DeepFool: a simple and accurate method to fool deep neural networks. ArXiv e-prints, November 2015.
|
| 170 |
+
|
| 171 |
+
A. Nitin Bhagoji, W. He, B. Li, and D. Song. Exploring the Space of Black-box Attacks on Deep Neural Networks. ArXiv e-prints, December 2017.
|
| 172 |
+
|
| 173 |
+
Nicolas Papernot, Patrick D. McDaniel, Ian J. Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. CoRR, abs/1602.02697, 2016. URL http://arxiv.org/abs/1602.02697.
|
| 174 |
+
|
| 175 |
+
T. Reichenbach and A. J. Hudspeth. Discrimination of Low-Frequency Tones Employs Temporal Fine Structure. PLoS ONE, 7:e45579, September 2012. doi: 10.1371/journal.pone.0045579.
|
parse/train/HyGySsAct7/HyGySsAct7_content_list.json
ADDED
|
@@ -0,0 +1,993 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TARGETED ADVERSARIAL EXAMPLES FOR BLACK BOX AUDIO SYSTEMS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
383,
|
| 19 |
+
176,
|
| 20 |
+
616,
|
| 21 |
+
204
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
246,
|
| 32 |
+
544,
|
| 33 |
+
261
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The application of deep recurrent networks to audio transcription has led to impressive gains in automatic speech recognition (ASR) systems. Many have demonstrated that small adversarial perturbations can fool deep neural networks into incorrectly predicting a specified target with high confidence. Current work on fooling ASR systems have focused on white-box attacks, in which the model architecture and parameters are known. In this paper, we adopt a black-box approach to adversarial generation, combining the approaches of both genetic algorithms and gradient estimation to solve the task. We achieve a $8 9 . 2 5 \\%$ targeted attack similarity after 3000 generations while maintaining $9 4 . 6 \\%$ audio file similarity. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
280,
|
| 43 |
+
766,
|
| 44 |
+
405
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
438,
|
| 55 |
+
336,
|
| 56 |
+
454
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Although neural networks have incredible expressive capacity, which allow them to be well suited for a variety of machine learning tasks, they have been shown to be vulnerable to adversarial attacks over multiple network architectures and datasets Goodfellow et al. (2014). These attacks can be done by adding small perturbations to the original input so that the network misclassifies the input but a human does not notice the difference. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
470,
|
| 66 |
+
825,
|
| 67 |
+
540
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "So far, there has been much more work done in generating adversarial examples for image inputs than for other domains, such as audio. Voice control systems are widely used in many products from personal assistants, like Amazon Alexa and Apple Siri, to voice command technologies in cars. One main challenge for such systems is determining exactly what the user is saying and correctly interpreting the statement. As deep learning helps these systems better understand the user, one potential issue is targeted adversarial attacks on the system, which perturb the waveform of what the user says to the system to cause the system to behave in a predetermined inappropriate way. For example, a seemingly benign TV advertisement could be adversely perturbed to cause Alexa to interpret the audio as “Alexa, buy 100 headphones.” If the original user went back to listen to the audio clip that prompted the order, the noise would be almost undetectable to the human ear. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
547,
|
| 77 |
+
825,
|
| 78 |
+
686
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "There are multiple different methods of performing adversarial attacks depending on what information the attacker has about the network. If given access to the parameters of a network, white box attacks are most successful, such as the Fast Gradient Sign Method Goodfellow et al. (2014) or DeepFool Moosavi-Dezfooli et al. (2015). However, assuming an attacker has access to all the parameters of a network is unrealistic in practice. In a black box setting, when an attacker only has access to the logits or outputs of a network, it is much harder to consistently create successful adversarial attacks. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
694,
|
| 88 |
+
825,
|
| 89 |
+
777
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In certain special black box settings, white box attack methods can be reused if an attacker creates a model that approximates the original targeted model. However, even though attacks can transfer across networks for some domains, this requires more knowledge of how to solve the task that the original model is solving than an attacker may have Liu et al. (2016); Papernot et al. (2016). Instead, we propose a novel combination of genetic algorithms and gradient estimation to solve this task. The first phase of the attack is carried out by genetic algorithms, which are a gradient-free method of optimization that iterate over populations of candidates until a suitable sample is produced. In order to limit excess mutations and thus excess noise, we improve the standard genetic algorithm with a new momentum mutation update. The second phase of the attack utilizes gradient estimation, where the gradients of individual audio points are estimated, thus allowing for more careful noise placement when the adversarial example is nearing its target. The combination of these two approaches provides a $8 9 . 2 5 \\%$ average targeted attack similarity with a $9 4 . 6 \\%$ audio file similarity after 3000 generations. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
785,
|
| 99 |
+
825,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/702a79e13def8c6dba6e31287f0a41fee5a20c11dbb53617509b9193ada57cd8.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Example of targeted adversarial attack on speech to text systems in practice "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
387,
|
| 113 |
+
99,
|
| 114 |
+
609,
|
| 115 |
+
188
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
244,
|
| 125 |
+
826,
|
| 126 |
+
272
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "1.1 PROBLEM STATEMENT ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
290,
|
| 137 |
+
369,
|
| 138 |
+
304
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Adversarial attacks can be created given a variety of information about the neural network, such as the loss function or the output probabilities. However in a natural setting, usually the neural network behind such a voice control system will not be publicly released so an adversary will only have access to an API which provides the text the system interprets given a continuous waveform. Given this constraint, we use the open sourced Mozilla DeepSpeech implementation as a black box system, without using any information on how the transcription is done. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
315,
|
| 148 |
+
825,
|
| 149 |
+
400
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "We perform our black box targeted attack on a model $M$ given a benign input $x$ and a target $t$ by perturbing $x$ to form the adversarial input $x ^ { \\prime } = x + \\delta$ , such that $M ( x ^ { \\prime } ) = t$ . To minimize the audible noise added to the input, so a human cannot notice the target, we maximize the cross correlation between $x$ and $x ^ { \\prime }$ . A sufficient value of $\\delta$ is determined using our novel black box approach, so we do not need access to the gradients of $M$ to perform the attack. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
406,
|
| 159 |
+
825,
|
| 160 |
+
477
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "1.2 PRIOR WORK ",
|
| 167 |
+
"text_level": 1,
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
493,
|
| 171 |
+
305,
|
| 172 |
+
507
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Compared to images, audio presents a much more significant challenge for models to deal with. While convolutional networks can operate directly on the pixel values of images, ASR systems typically require heavy pre-processing of the input audio. Most commonly, the Mel-Frequency Cepstrum (MFC) transform, essentially a fourier transform of the sampled audio file, is used to convert the input audio into a spectogram which shows frequencies over time. Models such as DeepSpeech (Fig. 2) use this spectogram as the initial input. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
520,
|
| 182 |
+
825,
|
| 183 |
+
603
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "In a foundational study for adversarial attacks, Cisse et al. (2017) developed a general attack framework to work across a wide variety of models including images and audio. When applying their method to audio samples, they ran into the roadblock of backpropagating through the MFC conversion layer. Thus, they were able to produce adversarial spectograms but not adversarial .wav files. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
609,
|
| 193 |
+
825,
|
| 194 |
+
665
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Carlini & Wagner (2018) overcame this challenge by developing a method of passing gradients through the MFC layer, a task which was previously proved to be difficult Cisse et al. (2017). They applied their method to the Mozilla DeepSpeech model, which is a complex, recurrent, character-level network that can decode translations at up to 50 characters per second. With a gradient connection all the way to the raw input, they were able to achieve impressive results, including generating samples over $9 9 . 9 \\%$ similar with a targeted attack accuracy of $100 \\%$ . While the success of this attack opens new doors for white box attacks, adversaries in a real-life setting commonly do not have knowledge of model architectures or parameters. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
672,
|
| 204 |
+
825,
|
| 205 |
+
784
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "Alzantot et al. (2018) have demonstrated that black-box approaches for targeted attacks on ASR systems are possible. Using a genetic algorithm approach, they were able to iteratively apply noise to audio samples, pruning away poor performers at each generation, and ultimately end up with a perturbed version of the input that successfully fooled a classification system. This attack was conducted on the Speech Commands classification model Alzantot et al. (2018), which is a lightweight convolutional model for classifying up to 50 different single-word phrases. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
791,
|
| 215 |
+
825,
|
| 216 |
+
875
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Extending the research done by Alzantot et al. (2018), we propose a genetic algorithm and gradient estimation approach to create targeted adversarial audio, but on the more complex DeepSpeech system. The difficulty of this task comes in attempting to apply black-box optimization to a deeplylayered, highly nonlinear decoder model that has the ability to decode phrases of arbitrary length. Nevertheless, the combination of two differing approaches as well as the momentum mutation update bring new success to this task. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
176,
|
| 225 |
+
882,
|
| 226 |
+
825,
|
| 227 |
+
924
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "image",
|
| 233 |
+
"img_path": "images/73371a04dc01d589dedd50963db02395c3c1c2164f92a9725fef55d67d3744ff.jpg",
|
| 234 |
+
"image_caption": [
|
| 235 |
+
"Figure 2: Diagram of Baidu’s DeepSpeech model Hannun et al. (2014) "
|
| 236 |
+
],
|
| 237 |
+
"image_footnote": [],
|
| 238 |
+
"bbox": [
|
| 239 |
+
408,
|
| 240 |
+
102,
|
| 241 |
+
584,
|
| 242 |
+
218
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "",
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
277,
|
| 252 |
+
825,
|
| 253 |
+
319
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "1.3 BACKGROUND ",
|
| 260 |
+
"text_level": 1,
|
| 261 |
+
"bbox": [
|
| 262 |
+
176,
|
| 263 |
+
338,
|
| 264 |
+
315,
|
| 265 |
+
352
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "Dataset For the attack, we follow Carlini & Wagner (2018) and take the first 100 audio samples from the CommonVoice test set. For each, we randomly generate a 2-word target phrase and apply our black-box approach to construct an adversarial example. More details on evaluation can be found in section 3. Each sample in the dataset is a .wav file, which can easily be deserialized into a numpy array. Our algorithm operates directly on the numpy arrays, thus bypassing the difficulty of dealing with the MFC conversion. ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
364,
|
| 275 |
+
825,
|
| 276 |
+
448
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "Victim model The model we attack is Baidu’s DeepSpeech model Hannun et al. (2014), implemented in Tensorflow and open-sourced by Mozilla.1 Though we have access to the full model, we treat it as if in a black box setting and only access the output logits of the model. In line with other speech to text systems Chiu et al. (2017); Cisse et al. (2017), DeepSpeech accepts a spectrogram of the audio file. After performing the MFC conversion, the model consists 3 layers of convolutions, followed by a bi-directional LSTM, followed by a fully connected layer. This layer is then fed into the decoder RNN, which outputs logits over the distribution of output characters, up to 50 characters per second of audio. The model is illustrated in figure 2. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
173,
|
| 285 |
+
464,
|
| 286 |
+
826,
|
| 287 |
+
577
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Connectionist temporal classication While the DeepSpeech model is designed to allow arbitrary length translations, there is no given labeled alignment of the output and input sequences during training time. Thus the connectionist temporal classication loss (CTC Loss) is introduced, as it allows computing a loss even when the position of a decoded word in the original audio is unknown Carlini & Wagner (2018). ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
174,
|
| 296 |
+
593,
|
| 297 |
+
825,
|
| 298 |
+
662
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "DeepSpeech outputs a probability distribution over all characters at every frame, for 50 frames per second of audio. In addition to outputting the normal alphabet a-z and space, it can output special character $\\epsilon$ . Then CTC decoder $C ( \\cdot )$ decodes the logits as such: for every frame, take the character with the max logit. Then first, remove all adjacent duplicate characters, and then second, remove any special $\\epsilon$ characters. Thus aab\u000f\u000fb will decode to abb Carlini & Wagner (2018). ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
174,
|
| 307 |
+
670,
|
| 308 |
+
825,
|
| 309 |
+
739
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "As we can see, multiple outputs can decode to the same phrase. Following the notation in Carlini & Wagner (2018), for any target phrase $p$ , we call $\\pi$ an alignment of $p$ if $C ( \\pi ) = p$ . Let us also call the output distribution of our model $y$ . Now, in order to find the likelihood of alignment $\\pi$ under $y$ : ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
174,
|
| 318 |
+
747,
|
| 319 |
+
825,
|
| 320 |
+
789
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "equation",
|
| 326 |
+
"img_path": "images/0c186411e689d3f9078d269f5673bb099d4a54d7f7766152c3f7edb521c5496f.jpg",
|
| 327 |
+
"text": "$$\nP r ( p | y ) = \\sum _ { \\pi | C ( \\pi ) = p } P r ( \\pi | y ) = \\sum _ { \\pi | C ( \\pi ) = p } \\prod _ { i } y _ { \\pi } ^ { i }\n$$",
|
| 328 |
+
"text_format": "latex",
|
| 329 |
+
"bbox": [
|
| 330 |
+
339,
|
| 331 |
+
806,
|
| 332 |
+
658,
|
| 333 |
+
843
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "as noted by Carlini & Wagner (2018). This is the objective we use when scoring samples from the populations in each generation of our genetic algorithm as well as the score used in estimating gradients. ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
176,
|
| 342 |
+
854,
|
| 343 |
+
823,
|
| 344 |
+
897
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "Greedy decoding As in traditional recurrent decoder systems, DeepSpeech typically uses a beam search of beam width 500. At each frame of decoding, 500 of the most likely $\\pi$ will be evaluated, each producing another 500 candidates for a total of 2500, which are pruned back down to 500 for the next timestep. Evaluating multiple assignments this way increases the robustness of the model decoding. However, following work in Carlini & Wagner (2018), we set the model to use greedy decoding. At each timestep only $1 \\pi$ is evaluated, leading to a greedy assignment: ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
103,
|
| 354 |
+
825,
|
| 355 |
+
188
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/6fb46dae308f8b2a2cc5d3ba1937ddca82b4ce42badf393284f45b8a330d3b62.jpg",
|
| 362 |
+
"text": "$$\nd e c o d e ( x ) = C ( \\arg \\operatorname* { m a x } _ { \\pi } P r ( { y } ( { x } ) | \\pi ) )\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
369,
|
| 366 |
+
207,
|
| 367 |
+
627,
|
| 368 |
+
232
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "Thus, our genetic algorithm will focus on creating perturbations to the most likely sequence (if greedily approximated). ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
173,
|
| 377 |
+
242,
|
| 378 |
+
825,
|
| 379 |
+
271
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "2 BLACK BOX ATTACK ALGORITHM ",
|
| 386 |
+
"text_level": 1,
|
| 387 |
+
"bbox": [
|
| 388 |
+
176,
|
| 389 |
+
291,
|
| 390 |
+
483,
|
| 391 |
+
308
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "table",
|
| 397 |
+
"img_path": "images/4a9f86fa45f8d6ae01b9e4d9fa9c535d790f43224090e2ead706a3c784d56609.jpg",
|
| 398 |
+
"table_caption": [],
|
| 399 |
+
"table_footnote": [],
|
| 400 |
+
"table_body": "<table><tr><td>Algorithm1 Black box algorithm for generating adversarial audio sample</td></tr><tr><td>Input: Original benign input x Target phrase t Output: Adversarial Audio Sample x' population ← [x] * populationSize while iter<maxIters and Decode(best)!= t do scores ← -CTCLoss(population,t) best ← population[Argmax(scores)]</td></tr><tr><td>if EditDistance(t,Decode(best)) >2 then / phase 1 - do genetic algorithm while populationSize children have not been made do</td></tr><tr><td>Select parent1 from topk(population) according to softmax(their score) Select parent2 from topk(population) according to softmax(their score) child ← Mutate(Crossover(parent1,parent2), p)</td></tr><tr><td>end while newScores ← -CTCLoss(newPopulation,t)</td></tr><tr><td>p ← MomentumUpdate(p,newScores, scores) else</td></tr><tr><td>/ phase 2 - do gradient estimation top-element ← top(population) grad-pop ← n copies of top-element, each mutated slightly at one index grad ←(-CTCLoss(grad-pop)- scores)/mutation-delta pop ← top-element + grad</td></tr></table>",
|
| 401 |
+
"bbox": [
|
| 402 |
+
171,
|
| 403 |
+
328,
|
| 404 |
+
740,
|
| 405 |
+
710
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "2.1 GENETIC ALGORITHM ",
|
| 412 |
+
"text_level": 1,
|
| 413 |
+
"bbox": [
|
| 414 |
+
176,
|
| 415 |
+
737,
|
| 416 |
+
369,
|
| 417 |
+
752
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "As mentioned previously, Alzantot et al. (2018) demonstrated the success of a black-box adversarial attack on speech-to-text systems using a standard genetic algorithm. The basic premise of our algorithm is that it takes in the benign audio sample and, through trial and error, adds noise to the sample such that the perturbed adversarial audio is similar to the benign input yet is decoded as the target, as shown in Figure 3. A genetic algorithm works well for a problem of this nature because it is completely independent of the gradients of the model. Alzantot et al. (2018) used a limited dataset consisting of audio samples with just one word and a classification with a predefined number of classes. In order to extend this algorithm to work with phrases and sentences, as well as with CTC Loss, we make modifications to the genetic algorithm and introduce our novel momentum mutation. ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
173,
|
| 426 |
+
762,
|
| 427 |
+
825,
|
| 428 |
+
888
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "The genetic algorithm works by improving on each iteration, or generation, through evolutionary methods such as Crossover and Mutation Holland (1992). For each iteration, we compute the score for each sample in the population to determine which samples are the best. Our scoring function was the CTC-Loss, which as mentioned previously, is used to determine the similarity between an input audio sequence and a given phrase. We then form our elite population by selecting the best scoring samples from our population. The elite population contains samples with desirable traits that we want to carry over into future generations. We then select parents from the elite population and perform Crossover, which creates a child by taking around half of the elements from parent1 and the other half from parent2. The probability that we select a sample as a parent is a function of the sample’s score. With some probability, we then add a mutation to our new child. Finally, we update our mutation probabilities according to our momentum update, and move to the next iteration. The population will continue to improve over time as only the best traits of the previous generations as well as the best mutations will remain. Eventually, either the algorithm will reach the max number of iterations, or one of the samples is exactly decoded as the target, and the best sample is returned. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
173,
|
| 437 |
+
895,
|
| 438 |
+
823,
|
| 439 |
+
924
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "image",
|
| 445 |
+
"img_path": "images/2059e59de774fa523712cc2081fa1bf0391f4f59372c42dbbd7ed4e23abdcb3b.jpg",
|
| 446 |
+
"image_caption": [
|
| 447 |
+
"Figure 3: Diagram of our genetic algorithm "
|
| 448 |
+
],
|
| 449 |
+
"image_footnote": [],
|
| 450 |
+
"bbox": [
|
| 451 |
+
191,
|
| 452 |
+
145,
|
| 453 |
+
485,
|
| 454 |
+
281
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "image",
|
| 460 |
+
"img_path": "images/d14bf5a129c3fd17d74d1e72d9ac3af24b1909a1d0705d938ec3ea5122f0bcd8.jpg",
|
| 461 |
+
"image_caption": [
|
| 462 |
+
"Figure 4: Overlapping of adversarial (blue) and original (orange) audio sample waveforms. The perturbation is barely noticeable "
|
| 463 |
+
],
|
| 464 |
+
"image_footnote": [],
|
| 465 |
+
"bbox": [
|
| 466 |
+
565,
|
| 467 |
+
106,
|
| 468 |
+
813,
|
| 469 |
+
243
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 4
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "",
|
| 476 |
+
"bbox": [
|
| 477 |
+
174,
|
| 478 |
+
359,
|
| 479 |
+
825,
|
| 480 |
+
526
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "2.2 MOMENTUM MUTATION ",
|
| 487 |
+
"text_level": 1,
|
| 488 |
+
"bbox": [
|
| 489 |
+
174,
|
| 490 |
+
547,
|
| 491 |
+
380,
|
| 492 |
+
561
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "table",
|
| 498 |
+
"img_path": "images/9d7976e786dc0d63013b39a37ae469f4b92ff09f0c7a7bbf063e382fcb5cc71d.jpg",
|
| 499 |
+
"table_caption": [],
|
| 500 |
+
"table_footnote": [],
|
| 501 |
+
"table_body": "<table><tr><td>Algorithm 2 Mutation</td></tr><tr><td>Input: Audio Sample x</td></tr><tr><td>Mutation Probability p</td></tr><tr><td>Output: Mutated Audio Sample x'</td></tr><tr><td></td></tr><tr><td>for all e in x do</td></tr><tr><td>noise ← Sample(N(μ,σ²)) if Sample(Unif(O,1))<p then</td></tr><tr><td>e' ←e+ filterhighpass(noise)</td></tr><tr><td>end if</td></tr><tr><td>end for</td></tr><tr><td>return x</td></tr></table>",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
582,
|
| 505 |
+
825,
|
| 506 |
+
757
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "The mutation step is arguably the most crucial component of the genetic algorithm and is our only source of noise in the algorithm. In the mutation step, with some probability, we randomly add noise to our sample. Random mutations are critical because it may cause a trait to appear that is beneficial for the population, which can then be proliferated through crossover. Without mutation, very similar samples will start to appear across generations; thus, the way out of this local maximum is to nudge it in a different direction in order to reach higher scores. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
776,
|
| 516 |
+
825,
|
| 517 |
+
861
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Furthermore, since this noise is perceived as background noise, we apply a filter to the noise before adding it onto the audio sample. The audio is sampled at a rate of $f _ { s } = 1 6 k H z$ , which means that the maximum frequency response $f _ { m a x } = 8 k H z$ . As seen by Reichenbach & Hudspeth (2012), given that the human ear is more sensitive to lower frequencies than higher ones, we apply a highpass filter at a cutoff frequency of $f _ { c u t o f f } = 7 k H z$ . This limits the noise to only being in the high-frequency range, which is less audible and thus less detectable by the human ear. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
867,
|
| 527 |
+
823,
|
| 528 |
+
924
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "",
|
| 535 |
+
"bbox": [
|
| 536 |
+
173,
|
| 537 |
+
103,
|
| 538 |
+
823,
|
| 539 |
+
132
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 5
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "While mutation helps the algorithm overcome local maxima, the effect of mutation is limited by the mutation probability. Much like the step size in SGD, a low mutation probability may not provide enough randomness to get past a local maximum. If mutations are rare, they are very unlikely to occur in sequence and add on to each other. Therefore, while a mutation might be beneficial when accumulated with other mutations, due to the low mutation probability, it is deemed as not beneficial by the algorithm in the short term, and will disappear within a few iterations. This parallels the step size in SGD, because a small step size will eventually converge back at the local minimum/maximum. However, too large of a mutation probability, or step size, will add an excess of variability and prevent the algorithm from finding the global maximum/minimum. To combat these issues, we propose Momentum Mutation, which is inspired by the Momentum Update for Gradient Descent. With this update, our mutation probability changes in each iteration according to the following exponentially weighted moving average update: ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
173,
|
| 548 |
+
138,
|
| 549 |
+
826,
|
| 550 |
+
306
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "equation",
|
| 556 |
+
"img_path": "images/ee6ffc52bace3a4c44f95198b3c050ae97a740e1b816076a94e00330c6a8be92.jpg",
|
| 557 |
+
"text": "$$\np _ { n e w } = \\alpha \\times p _ { o l d } + \\frac { \\beta } { | c u r r S c o r e - p r e v S c o r e | }\n$$",
|
| 558 |
+
"text_format": "latex",
|
| 559 |
+
"bbox": [
|
| 560 |
+
341,
|
| 561 |
+
321,
|
| 562 |
+
656,
|
| 563 |
+
356
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "With this update equation, the probability of a mutation increases as our population fails to adapt meaning the current score is close to the previous score. The momentum update adds acceleration to the mutation probability, allowing mutations to accumulate and add onto each other by keeping the mutation probability high when the algorithm is stuck at a local maximum. By using a moving average, the mutation probability becomes a smooth function and is less susceptible to outliers in the population. While the momentum update may overshoot the target phrase by adding random noise, overall it converges faster than a constant mutation probability by allowing for more acceleration in the right directions. ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
173,
|
| 572 |
+
362,
|
| 573 |
+
825,
|
| 574 |
+
474
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "Algorithm 3 Momentum Mutation Update ",
|
| 581 |
+
"text_level": 1,
|
| 582 |
+
"bbox": [
|
| 583 |
+
176,
|
| 584 |
+
489,
|
| 585 |
+
454,
|
| 586 |
+
503
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 5
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "table",
|
| 592 |
+
"img_path": "images/8c6122a88db2dcefe101a33d3619580a3eac07f621d6ba72f356cdd967b32445.jpg",
|
| 593 |
+
"table_caption": [],
|
| 594 |
+
"table_footnote": [],
|
| 595 |
+
"table_body": "<table><tr><td>Input: Mutation Probability p Scores for the new population new Scores Scores for the previous population scores Output: Updated mutation probability pnew currScore = max(newScores)</td></tr><tr><td>prevScore = max(scores) β</td></tr><tr><td>Pnew =αX Pold + lcurrScore-prevScorel return pnew</td></tr></table>",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
506,
|
| 599 |
+
470,
|
| 600 |
+
638
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "2.3 GRADIENT ESTIMATION ",
|
| 607 |
+
"text_level": 1,
|
| 608 |
+
"bbox": [
|
| 609 |
+
174,
|
| 610 |
+
662,
|
| 611 |
+
380,
|
| 612 |
+
676
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "Genetic algorithms work well when the target space is large and a relatively large number of mutation directions are potentially beneficial; the strength of these algorithms lies in being able to search large amounts of space efficiently Godefroi & Khurshid (unkown). When an adversarial sample nears its target perturbation, this strength of genetic algorithms turn into a weakness, however. Close to the end, adversarial audio samples only need a few perturbations in a few key areas to get the correct decoding. In this case, gradient estimation techniques tend to be more effective. Specifically, when edit distance of the current decoding and the target decoding drops below some threshold, we switch to phase 2. When approximating the gradient of a black box system, we can use the technique proposed by Nitin Bhagoji et al. (2017): ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
173,
|
| 621 |
+
688,
|
| 622 |
+
825,
|
| 623 |
+
814
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "equation",
|
| 629 |
+
"img_path": "images/80048329b24ecc6daea8dd9975d7ef756926647b32dcd1da0388d76937134845.jpg",
|
| 630 |
+
"text": "$$\nF D _ { x } ( x , \\delta ) = \\binom { \\lceil { ( g ( x + \\delta _ { 1 } ) - g ( x ) ) } / \\delta } { \\vdots }\n$$",
|
| 631 |
+
"text_format": "latex",
|
| 632 |
+
"bbox": [
|
| 633 |
+
366,
|
| 634 |
+
829,
|
| 635 |
+
629,
|
| 636 |
+
888
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Here, $x$ refers to the vector of inputs representing the audio file. $\\delta _ { i }$ refers to a vector of all zeros, except at the $i ^ { t h }$ position in which the value is a small $\\delta$ . $g ( \\cdot )$ represents the evaluation function, which in our case is CTCLoss. Essentially, we are performing a small perturbation at each index and individually seeing what the difference in CTCLoss would be, allowing us to compute a gradient estimate with respect to the input $x$ . ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
895,
|
| 646 |
+
826,
|
| 647 |
+
924
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
103,
|
| 657 |
+
823,
|
| 658 |
+
146
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 6
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "However, performing this calculation in full would be prohibitively expensive, as the audio is sampled at $1 6 k H z$ and so a simple 5-second clip would require 80,000 queries to the model for just one gradient evaluation! Thus, we only randomly sample 100 indices to perturb each generation when using this method. When the adversarial example is already near the goal, gradient estimation makes the tradeoff for more informed perturbations in exchange for higher compute. ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
152,
|
| 668 |
+
825,
|
| 669 |
+
223
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 6
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "3 EVALUATION ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
243,
|
| 680 |
+
315,
|
| 681 |
+
260
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "3.1 METRICS ",
|
| 688 |
+
"text_level": 1,
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
275,
|
| 692 |
+
281,
|
| 693 |
+
290
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 6
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "We tested our algorithm by running it on a 100 sample subset of the Common Voice dataset. For each audio sample, we generated a single random target phrase by selecting two words uniformly without replacement from the set of 1000 most common words in the English language. The algorithm was then run for each audio sample and target phrase pair for 3000 generations to produce a single adversarial audio sample. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
174,
|
| 702 |
+
301,
|
| 703 |
+
825,
|
| 704 |
+
371
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 6
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "We evaluated the performance of our algorithm in two primary ways. The first method is determining the accuracy with which the adversarial audio sample gets decoded to the desired target phrase. For this, we use the Levenshtein distance, or the minimum character edit distance, between the desired target phrase and the decoded phrase as the metric of choice. We then calculated the percent similarity between the desired target and the decoded phrase by calculating the ratio of the Levenshtein distance and the character length of the original input, ie. $\\begin{array} { r } { \\dot { 1 } - \\frac { L e v e n s { \\bar { h } } t e i n ( M ( x ^ { \\prime } ) , t ) } { l e n ( M ( x ) ) } } \\end{array}$ . The second method is determining the similarity between the original audio sample and the adversarial audio sample. For this, we use the accepted metric of the cross correlation coefficient between the two audio samples. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
173,
|
| 713 |
+
378,
|
| 714 |
+
825,
|
| 715 |
+
496
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 6
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "image",
|
| 721 |
+
"img_path": "images/656910746ad0201bc30ede92cf518b0aad14fb183b75004c9a113d0dac6a7194.jpg",
|
| 722 |
+
"image_caption": [
|
| 723 |
+
"Figure 5: Histogram of levenshtein distances of attacks. "
|
| 724 |
+
],
|
| 725 |
+
"image_footnote": [],
|
| 726 |
+
"bbox": [
|
| 727 |
+
369,
|
| 728 |
+
515,
|
| 729 |
+
620,
|
| 730 |
+
667
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "3.2 RESULTS ",
|
| 737 |
+
"text_level": 1,
|
| 738 |
+
"bbox": [
|
| 739 |
+
174,
|
| 740 |
+
723,
|
| 741 |
+
277,
|
| 742 |
+
737
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Of the audio samples for which we ran our algorithm on, we achieved a $8 9 . 2 5 \\%$ similarity between the final decoded phrase and the target using Levenshtein distance, with an average of $9 4 . 6 \\%$ correlation similarity between the final adversarial sample and the original sample. The average final Levenshtein distance after 3000 iterations is 2.3, with $3 5 \\%$ of the adversarial samples achieving an exact decoding in less than 3000 generations, and $22 \\%$ of the adversarial samples achieving an exact decoding in less than 1000 generations. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
750,
|
| 752 |
+
825,
|
| 753 |
+
833
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "One thing to note is that our algorithm was $3 5 \\%$ successful in getting the decoded phrase to match the target exactly; however, noting from figure 5, the vast majority of failure cases are only a few edit distances away from the target. This suggests that running the algorithm for a few more iterations could produce a higher success rate, although at the cost of correlation similarity. Indeed, it becomes apparent that there is a tradeoff between success rate and audio similarity such that this threshold could be altered for the attacker’s needs. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
840,
|
| 763 |
+
825,
|
| 764 |
+
922
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "A comparison of white box targeted attacks, black box targeted attacks on single words (classification), and our method: ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
173,
|
| 773 |
+
103,
|
| 774 |
+
825,
|
| 775 |
+
132
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "table",
|
| 781 |
+
"img_path": "images/e8d0b09def98fd41837b2eed3da420825b7ea1dd39e0f5de32688811363e6393.jpg",
|
| 782 |
+
"table_caption": [],
|
| 783 |
+
"table_footnote": [],
|
| 784 |
+
"table_body": "<table><tr><td>Metric</td><td>WhiteBoxAttacks</td><td>Our Method</td><td>Single Word Black Box</td></tr><tr><td>Targeted attack success rate Average similarity score Similarity score method Loss used for attack Dataset tested on</td><td>100% 99.9% cross-correlation CTC</td><td>35% 94.6% cross-correlation CTC</td><td>87% 89% human study Softmax</td></tr></table>",
|
| 785 |
+
"bbox": [
|
| 786 |
+
173,
|
| 787 |
+
155,
|
| 788 |
+
833,
|
| 789 |
+
260
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 7
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "One helpful visualization of the similarity between the original audio sample and the adversarial audio sample through the overlapping of both waveforms, as shown in figure 4. As the visualization shows, the audio is largely unchanged, and the majority of the changes to the audio is in the relatively low volume noise applied uniformly around the audio sample. This results in an audio sample that still appears to transcribe to the original intended phrase when heard by humans, but is decoded as the target adversarial phrase by the DeepSpeech model. ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
173,
|
| 798 |
+
270,
|
| 799 |
+
826,
|
| 800 |
+
354
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 7
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "That $3 5 \\%$ of random attacks were successful in this respect highlights the fact that black box adversarial attacks are definitely possible and highly effective at the same time. ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
173,
|
| 809 |
+
361,
|
| 810 |
+
823,
|
| 811 |
+
390
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 7
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "4 CONCLUSION ",
|
| 818 |
+
"text_level": 1,
|
| 819 |
+
"bbox": [
|
| 820 |
+
176,
|
| 821 |
+
411,
|
| 822 |
+
318,
|
| 823 |
+
428
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 7
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "In combining genetic algorithms and gradient estimation we are able to achieve a black box adversarial example for audio that produces better samples than each algorithm would produce individually. By initially using a genetic algorithm as a means of exploring more space through encouragement of random mutations and ending with a more guided search with gradient estimation, we are not only able to achieve perfect or near-perfect target transcriptions on most of the audio samples, we were able to do so while retaining a high degree of similarity. While this remains largely as a proof-of-concept demonstration, this paper shows that targeted adversarial attacks are achievable on black box models using straightforward methods. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
444,
|
| 833 |
+
825,
|
| 834 |
+
556
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Furthermore, the inclusion of momentum mutation and adding noise exclusively to high frequencies improved the effectiveness of our approach. Momentum mutation exaggerated the exploration at the beginning of the algorithm and annealed it at the end, emphasizing the benefits intended by combining genetic algorithms and gradient estimation. Restricting noise to the high frequency domain improved upon our similarity both subjectively by keeping it from interfering with human voice as well as objectively in our audio sample correlations. By combining all of these methods, we are able to achieve our top results. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
174,
|
| 843 |
+
563,
|
| 844 |
+
825,
|
| 845 |
+
660
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "In conclusion, we introduce a new domain for black box attacks, specifically on deep, nonlinear ASR systems that can output arbitrary length translations. Using a combination of existing and novel methods, we are able to exhibit the feasibility of our approach and open new doors for future research. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
174,
|
| 854 |
+
667,
|
| 855 |
+
825,
|
| 856 |
+
710
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 7
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "REFERENCES ",
|
| 863 |
+
"text_level": 1,
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
733,
|
| 867 |
+
287,
|
| 868 |
+
747
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "M. Alzantot, B. Balaji, and M. Srivastava. Did you hear that? Adversarial Examples Against Automatic Speech Recognition. ArXiv e-prints, January 2018. \nN. Carlini and D. Wagner. Towards Evaluating the Robustness of Neural Networks. ArXiv e-prints, August 2016. \nN. Carlini and D. Wagner. Audio Adversarial Examples: Targeted Attacks on Speech-to-Text. ArXiv e-prints, January 2018. \nC.-C. Chiu, T. N. Sainath, Y. Wu, R. Prabhavalkar, P. Nguyen, Z. Chen, A. Kannan, R. J. Weiss, K. Rao, E. Gonina, N. Jaitly, B. Li, J. Chorowski, and M. Bacchiani. State-of-the-art Speech Recognition With Sequence-to-Sequence Models. ArXiv e-prints, December 2017. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
171,
|
| 877 |
+
757,
|
| 878 |
+
826,
|
| 879 |
+
924
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "M. Cisse, Y. Adi, N. Neverova, and J. Keshet. Houdini: Fooling Deep Structured Prediction Models. ArXiv e-prints, July 2017. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
169,
|
| 888 |
+
103,
|
| 889 |
+
825,
|
| 890 |
+
132
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Patrice Godefroi and Sarfraz Khurshid. Exploring Very Large State Spaces Using Genetic Algorithm. MIT, unkown. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
171,
|
| 899 |
+
140,
|
| 900 |
+
825,
|
| 901 |
+
170
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 8
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and Harnessing Adversarial Examples. ArXiv e-prints, December 2014. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
169,
|
| 910 |
+
178,
|
| 911 |
+
823,
|
| 912 |
+
208
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 8
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "A. Hannun, C. Case, J. Casper, B. Catanzaro, G. Diamos, E. Elsen, R. Prenger, S. Satheesh, S. Sengupta, A. Coates, and A. Y. Ng. Deep Speech: Scaling up end-to-end speech recognition. ArXiv e-prints, December 2014. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
215,
|
| 922 |
+
825,
|
| 923 |
+
260
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "J. H. Holland. Genetic algorithms. Scientific american, 1992. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
268,
|
| 933 |
+
576,
|
| 934 |
+
284
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Y. Liu, X. Chen, C. Liu, and D. Song. Delving into Transferable Adversarial Examples and Black-box Attacks. ArXiv e-prints, November 2016. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
171,
|
| 943 |
+
291,
|
| 944 |
+
825,
|
| 945 |
+
320
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 8
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "S.-M. Moosavi-Dezfooli, A. Fawzi, and P. Frossard. DeepFool: a simple and accurate method to fool deep neural networks. ArXiv e-prints, November 2015. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
169,
|
| 954 |
+
329,
|
| 955 |
+
825,
|
| 956 |
+
359
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "A. Nitin Bhagoji, W. He, B. Li, and D. Song. Exploring the Space of Black-box Attacks on Deep Neural Networks. ArXiv e-prints, December 2017. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
169,
|
| 965 |
+
367,
|
| 966 |
+
823,
|
| 967 |
+
397
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 8
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Nicolas Papernot, Patrick D. McDaniel, Ian J. Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. CoRR, abs/1602.02697, 2016. URL http://arxiv.org/abs/1602.02697. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
176,
|
| 976 |
+
405,
|
| 977 |
+
823,
|
| 978 |
+
449
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 8
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "T. Reichenbach and A. J. Hudspeth. Discrimination of Low-Frequency Tones Employs Temporal Fine Structure. PLoS ONE, 7:e45579, September 2012. doi: 10.1371/journal.pone.0045579. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
178,
|
| 987 |
+
457,
|
| 988 |
+
818,
|
| 989 |
+
486
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 8
|
| 992 |
+
}
|
| 993 |
+
]
|
parse/train/HyGySsAct7/HyGySsAct7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyGySsAct7/HyGySsAct7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LT0KSFnQDWF/LT0KSFnQDWF.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LT0KSFnQDWF/LT0KSFnQDWF_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LT0KSFnQDWF/LT0KSFnQDWF_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LT0KSFnQDWF/LT0KSFnQDWF_model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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ROBUSTNESS MAY BE AT ODDS WITH ACCURACY
|
| 2 |
+
|
| 3 |
+
Dimitris Tsipras∗, Shibani Santurkar∗, Logan Engstrom∗, Alexander Turner, Aleksander M ˛adry
|
| 4 |
+
Massachusetts Institute of Technology
|
| 5 |
+
{tsipras,shibani,engstrom,turneram,madry}@mit.edu
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
We show that there exists an inherent tension between the goal of adversarial robustness and that of standard generalization. Specifically, training robust models may not only be more resource-consuming, but also lead to a reduction of standard accuracy. We demonstrate that this trade-off between the standard accuracy of a model and its robustness to adversarial perturbations provably exists even in a fairly simple and natural setting. These findings also corroborate a similar phenomenon observed in practice. Further, we argue that this phenomenon is a consequence of robust classifiers learning fundamentally different feature representations than standard classifiers. These differences, in particular, seem to result in unexpected benefits: the features learned by robust models tend to align better with salient data characteristics and human perception.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Deep learning models have achieved impressive performance on a number of challenging benchmarks in computer vision, speech recognition and competitive game playing (Krizhevsky et al., 2012; Graves et al., 2013; Mnih et al., 2015; Silver et al., 2016; He et al., 2015a). However, it turns out that these models are actually quite brittle. In particular, one can often synthesize small, imperceptible perturbations of the input data and cause the model to make highly-confident but erroneous predictions (Dalvi et al., 2004; Biggio & Roli, 2017; Szegedy et al., 2013).
|
| 14 |
+
|
| 15 |
+
This problem of so-called adversarial examples has garnered significant attention recently and resulted in a number of approaches both to finding these perturbations, and to training models that are robust to them (Goodfellow et al., 2014b; Nguyen et al., 2015; Moosavi-Dezfooli et al., 2016; Carlini & Wagner, 2016; Sharif et al., 2016; Kurakin et al., 2016a; Evtimov et al., 2017; Athalye et al., 2017). However, building such adversarially robust models has proved to be quite challenging. In particular, many of the proposed robust training methods were subsequently shown to be ineffective (Carlini & Wagner, 2017; Athalye et al., 2018; Uesato et al., 2018). Only recently, has there been progress towards models that achieve robustness that can be demonstrated empirically and, in some cases, even formally verified (Madry et al., 2017; Kolter & Wong, 2017; Sinha et al., 2017; Tjeng & Tedrake, 2017; Raghunathan et al., 2018; Dvijotham et al., 2018a; Xiao et al., 2018b).
|
| 16 |
+
|
| 17 |
+
The vulnerability of models trained using standard methods to adversarial perturbations makes it clear that the paradigm of adversarially robust learning is different from the classic learning setting. In particular, we already know that robustness comes at a cost. This cost takes the form of computationally expensive training methods (more training time), but also, as shown recently in Schmidt et al. (2018), the potential need for more training data. It is natural then to wonder: Are these the only costs of adversarial robustness? And, if so, once we choose to pay these costs, would it always be preferable to have a robust model instead of a standard one? The goal of this work is to explore these questions and thus, in turn, to bring us closer to understanding the phenomenon of adversarial robustness.
|
| 18 |
+
|
| 19 |
+
Our contributions It might be natural to expect that training models to be adversarially robust, albeit more resource-consuming, can only improve performance in the standard classification setting. In this work, we show, however, that the picture here is much more nuanced: these two goals might be fundamentally at odds. Specifically, even though applying adversarial training, the leading method for training robust models, can be beneficial in some regimes of training data size, in general, there is a trade-off between the standard accuracy and adversarially robust accuracy of a model. In fact, we show that this trade-off provably exists even in a fairly simple and natural setting.
|
| 20 |
+
|
| 21 |
+
At the root of this trade-off is the fact that features learned by the optimal standard and optimal robust classifiers are fundamentally different and, interestingly, this phenomenon persists even in the limit of infinite data. This thus also goes against the natural expectation that given sufficient data, classic machine learning tools would be sufficient to learn robust models and emphasizes the need for techniques specifically tailored to training robust models.
|
| 22 |
+
|
| 23 |
+
Our exploration also uncovers certain unexpected benefit of adversarially robust models. In particular, adversarially robust learning tends to equip the resulting models with invariances that we would expect to be also present in human vision. This, in turn, leads to features that align better with human perception, and could also pave the way towards building models that are easier to understand. Consequently, the feature embeddings learnt by robust models yield also clean inter-class interpolations, similar to those found by generative adversarial networks (GANs) (Goodfellow et al., 2014b) and other generative models. This hints at the existence of a stronger connection between GANs and adversarial robustness.
|
| 24 |
+
|
| 25 |
+
# 2 ON THE PRICE OF ADVERSARIAL ROBUSTNESS
|
| 26 |
+
|
| 27 |
+
Recall that in the canonical classification setting, the primary focus is on maximizing standard accuracy, i.e. the performance on (yet) unseen samples from the underlying distribution. Specifically, the goal is to train models that have low expected loss (also known as population risk):
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
\underset { ( x , y ) \sim \mathcal { D } } { \mathbb { E } } [ \mathcal { L } ( x , y ; \theta ) ] .
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
Adversarial robustness The existence of adversarial examples largely changed this picture. In particular, there has been a lot of interest in developing models that are resistant to them, or, in other words, models that are adversarially robust. In this context, the goal is to train models that have low expected adversarial loss:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\underset { ( x , y ) \sim \mathcal { D } } { \mathbb { E } } \left[ \underset { \delta \in \Delta } { \operatorname* { m a x } } \mathcal { L } ( x + \delta , y ; \theta ) \right] .
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
Here, $\Delta$ represents the set of perturbations that the adversary can apply to induce misclassification. In this work, we focus on the case when $\Delta$ is the set of $\ell _ { p }$ -bounded perturbations, i.e. $\Delta = \{ \delta \in$ $\mathbb { R } ^ { d } \mid \| \delta \| _ { p } \leq \varepsilon \}$ . This choice is the most common one in the context of adversarial examples and serves as a standard benchmark. It is worth noting though that several other notions of adversarial perturbations have been studied. These include rotations and translations (Fawzi & Frossard, 2015; Engstrom et al., 2017), and smooth spatial deformations (Xiao et al., 2018a). In general, determining the “right” $\Delta$ to use is a domain specific question.
|
| 40 |
+
|
| 41 |
+
Adversarial training The most successful approach to building adversarially robust models so far (Madry et al., 2017; Kolter & Wong, 2017; Sinha et al., 2017; Raghunathan et al., 2018) was socalled adversarial training (Goodfellow et al., 2014b). Adversarial training is motivated by viewing (2) as a statistical learning question, for which we need to solve the corresponding (adversarial) empirical risk minimization problem:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\operatorname* { m i n } _ { \theta } \operatorname* { \mathbb { E } } _ { ( x , y ) \sim \widehat { \mathcal { D } } } \left[ \operatorname* { m a x } _ { \delta \in S } \mathcal { L } ( x + \delta , y ; \theta ) \right] .
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
The resulting saddle point problem can be hard to solve in general. However, it turns out to be often tractable in practice, at least in the context of $\ell _ { p }$ -bounded perturbations (Madry et al., 2017). Specifically, adversarial training corresponds to a natural robust optimization approach to solving this problem (Ben-Tal et al., 2009). In this approach, we repeatedly find the worst-case input perturbations $\delta$ (solving the inner maximization problem), and then update the model parameters to reduce the loss on these perturbed inputs.
|
| 48 |
+
|
| 49 |
+
Though adversarial training is effective, this success comes with certain drawbacks. The most obvious one is an increase in the training time (we need to compute new perturbations each parameter update step). Another one is the potential need for more training data as shown recently in (Schmidt et al., 2018). These costs make training more demanding, but is that the whole price of being adversarially robust? In particular, if we are willing to pay these costs: Are robust classifiers better than standard ones in every other aspect? This is the key question that motivates our work.
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
Figure 1: Comparison of the standard accuracy of models trained against an $\ell _ { 2 }$ -bounded adversary as a function of size of the training dataset. We observe that when training with few samples, adversarial training has a positive effect on model generalization (especially on MNIST). However, as training data increase, the standard accuracy of robust models drops below that of the standard model $( \varepsilon _ { t r a i n } = 0 )$ ). Similar results for $\ell _ { \infty }$ trained networks are shown in Figure 6 of Appendix G.
|
| 53 |
+
|
| 54 |
+
Adversarial Training as a Form of Data Augmentation Our point of start is a popular view of adversarial training as the “ultimate” form of data augmentation. According to this view, the adversarial perturbation set $\Delta$ is seen as the set of invariants that a good model should satisfy (regardless of the adversarial robustness considerations). Thus, finding the worst-case $\delta$ corresponds to augmenting the training data in the “most confusing” and thus also “most helpful” manner. A key implication of this view is that adversarial training should be beneficial for the standard accuracy of a model (Torkamani & Lowd, 2013; 2014; Goodfellow et al., 2014b; Miyato et al., 2018).
|
| 55 |
+
|
| 56 |
+
Indeed, in Figure 1, we see this effect, when classifiers are trained with relatively few samples (particularly on MNIST). In this setting, the amount of training data available is insufficient to learn a good standard classifier and the set of adversarial perturbations used is “compatible” with the learning task. (That is, good standard models for this task need to be also somewhat invariant to these perturbations.) In such regime, robust training does indeed act as data augmentation, regularizing the model and leading to a better solution (from standard accuracy point of view). (Note that this effect seems less pronounced for CIFAR-10, possibly because $\ell _ { p }$ -invariance is not as important for a good standard CIFAR-10 classifier.)
|
| 57 |
+
|
| 58 |
+
Surprisingly however, in Figure 6 we see that as we include more samples in the training set, this positive effect becomes less significant. In fact, after some point adversarial training actually decreases the standard accuracy. In Figure 7 in Appendix G we study the behaviour of models trained using adversarial training with different $\ell _ { p }$ -bounded adversaries. We observe a steady decline in standard accuracy as the strength of the adversary increases. (Note that this still holds if we train on batches that also contain natural examples, as in Kurakin et al. (2016a). See Appendix B.) Similar effects were also observed in prior work (Kurakin et al., 2016b; Madry et al., 2017; Dvijotham et al., 2018b; Wong et al., 2018; Xiao et al., 2018b; Su et al., 2018; Babbar & Schölkopf, 2018).
|
| 59 |
+
|
| 60 |
+
The goal of this work is to illustrate and explain the roots of this phenomenon. In particular, we would like to understand:
|
| 61 |
+
|
| 62 |
+
# Why does there seem to be a trade-off between standard and adversarially robust accuracy?
|
| 63 |
+
|
| 64 |
+
As we will show, this effect is not an artifact of our adversarial training methods but in fact is inevitable consequence of different goals of adversarial robustness and standard generalization.
|
| 65 |
+
|
| 66 |
+
As we discussed above, we often observe that employing adversarial training leads to a decrease in a model’s standard accuracy. In what follows, we show that this phenomenon is a manifestation of an inherent tension between standard accuracy and adversarially robust accuracy. In particular, we present a theoretical model that demonstrates it. In fact, this phenomenon can be illustrated in a fairly simple setting which suggests that it is quite prevalent.
|
| 67 |
+
|
| 68 |
+
Our binary classification task Our data model consists of input-label pairs $( x , y )$ sampled from a distribution $\mathcal { D }$ as follows:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
y \overset { u . a . r } { \sim } \{ - 1 , + 1 \} , \qquad x _ { 1 } = \left\{ \begin{array} { l l } { { + y , } } & { { \mathrm { w . p . ~ } p } } \\ { { - y , } } & { { \mathrm { w . p . ~ } 1 - p } } \end{array} , \right. \qquad x _ { 2 } , \ldots , x _ { d + 1 } \overset { i . i . d } { \sim } \mathcal { N } ( \eta y , 1 ) ,
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where ${ \mathcal { N } } ( \mu , \sigma ^ { 2 } )$ is a normal distribution with mean $\mu$ and variance $\sigma ^ { 2 }$ , and $p \geq 0 . 5$ . We chose $\eta$ to be large enough so that a simple classifier attains high standard accuracy $( > 9 9 \% )$ ) – e.g. $\eta = \Theta ( 1 / \sqrt { d } )$ will suffice. The parameter $p$ quantifies how correlated the feature $x _ { 1 }$ is with the label. For the sake of example, we can think of $p$ as being 0.95. This choice is fairly arbitrary; the trade-off between standard and robust accuracy will be qualitatively similar for any $p < 1$ .
|
| 75 |
+
|
| 76 |
+
Standard classification is easy Note that samples from $\mathcal { D }$ consist of a single feature that is moderately correlated with the label and $d$ other features that are only very weakly correlated with it. Despite the fact that each one of the latter type of features individually is hardly predictive of the correct label, this distribution turns out to be fairly simple to classify from a standard accuracy perspective. Specifically, a natural (linear) classifier
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
f _ { \mathrm { a v g } } ( x ) : = \mathrm { s i g n } ( w _ { \mathrm { u n i f } } ^ { \top } x ) , \quad \mathrm { ~ w h e r e ~ } w _ { \mathrm { u n i f } } : = \left[ 0 , \frac { 1 } { d } , \ldots , \frac { 1 } { d } \right] ,
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
achieves standard accuracy arbitrarily close to $1 0 0 \%$ , for $d$ large enough. Indeed, observe that
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\operatorname* { P r } [ f _ { \mathrm { a v g } } ( x ) = y ] = \operatorname* { P r } [ \mathrm { s i g n } ( w _ { \mathrm { u n i f } } x ) = y ] = \operatorname* { P r } \left[ { \frac { y } { d } } \sum _ { i = 1 } ^ { d } { \mathcal { N } } ( \eta y , 1 ) > 0 \right] = \operatorname* { P r } \left[ { \mathcal { N } } \left( \eta , { \frac { 1 } { d } } \right) > 0 \right] ,
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
which is $> 9 9 \%$ when $\eta \geq 3 / \sqrt { d }$ .
|
| 89 |
+
|
| 90 |
+
Adversarially robust classification Note that in our discussion so far, we effectively viewed the average of $x _ { 2 } , \ldots , x _ { d + 1 }$ as a single “meta-feature” that is highly correlated with the correct label. For a standard classifier, any feature that is even slightly correlated with the label is useful. As a result, a standard classifier will take advantage (and thus rely on) the weakly correlated features $x _ { 2 } , \ldots , x _ { d + 1 }$ (by implicitly pooling information) to achieve almost perfect standard accuracy.
|
| 91 |
+
|
| 92 |
+
However, this analogy breaks completely in the adversarial setting. In particular, an $\ell _ { \infty }$ -bounded adversary that is only allowed to perturb each feature by a moderate $\varepsilon$ can effectively override the effect of the aforementioned meta-feature. For instance, if $\varepsilon = 2 \eta$ , an adversary can shift each weaklycorrelated feature towards $- y$ . The classifier would now see a perturbed input $x ^ { \prime }$ such that each of the features $x _ { 2 } ^ { \prime } , \ldots , x _ { d + 1 } ^ { \prime }$ are sampled i.i.d. from $\mathcal { N } ( - \eta y , 1 )$ (i.e., now becoming anti-correlated with the correct label). Thus, when $\varepsilon \geq 2 \eta$ , the adversary can essentially simulate the distribution of the weakly-correlated features as if belonging to the wrong class.
|
| 93 |
+
|
| 94 |
+
Formally, the probability of the meta-feature correctly predicting $y$ in this setting (4) is
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\operatorname* { m i n } _ { \lVert \delta \rVert _ { \infty } \leq \varepsilon } \operatorname* { P r } [ \mathrm { s i g n } ( x + \delta ) = y ] = \operatorname* { P r } \left[ \mathcal { N } ( \eta , 1 ) - \varepsilon > 0 \right] = \operatorname* { P r } \left[ \mathcal { N } \left( - \eta , 1 \right) > 0 \right] .
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
As a result, the simple classifier in (4) that relies solely on these features cannot get adversarial accuracy better than $\mathrm { \bar { 1 \% } }$ .
|
| 101 |
+
|
| 102 |
+
Intriguingly, this discussion draws a distinction between robust features $( x _ { 1 } )$ and non-robust features $( x _ { 2 } , \ldots , x _ { d + 1 } )$ that arises in the adversarial setting. While the meta-feature is far more predictive of the true label, it is extremely unreliable in the presence of an adversary. Hence, a tension between standard and adversarial accuracy arises. Any classifier that aims for high accuracy (say $> 9 9 \%$ ) will have to heavily rely on non-robust features (the robust feature provides only, say, $9 5 \%$ accuracy). However, since the non-robust features can be arbitrarily manipulated, this classifier will inevitably have low adversarial accuracy. We make this formal in the following theorem proved in Appendix C.
|
| 103 |
+
|
| 104 |
+
Theorem 2.1 (Robustness-accuracy trade-off). Any classifier that attains at least $1 - \delta$ standard accuracy on $\mathcal { D }$ has robust accuracy at most $\textstyle { \frac { p } { 1 - p } } \delta$ against an $\ell _ { \infty }$ -bounded adversary with $\varepsilon \geq 2 \eta$ .
|
| 105 |
+
|
| 106 |
+
This bound implies that if $p < 1$ , as standard accuracy approaches $1 0 0 \%$ $\delta 0 ,$ ), adversarial accuracy falls to $0 \%$ . As a concrete example, consider $p = 0 . 9 5$ , then any classifier with standard accuracy more than $1 - \delta$ will have robust accuracy at most $1 9 \delta ^ { 1 }$ . Also it is worth noting that the theorem is tight. If $\delta = 1 - p$ , both the standard and adversarial accuracies are bounded by $p$ which is attained by the classifier that relies solely on the first feature. Additionally, note that compared to the scale of the features $\pm 1$ , the value of √ $\varepsilon$ required to manipulate the standard classifier is very small $( \varepsilon = O ( \eta )$ , where $\eta = O ( 1 / { \sqrt { d } } ) ;$ .
|
| 107 |
+
|
| 108 |
+
On the (non-)existence of an accurate and robust classifier It might be natural to expect that in the regime of infinite data, the standard classifier itself acts as a robust classifier. Note however, that this is not true for the setting we analyze above. Here, the trade-off between standard and adversarial accuracy is an inherent trait of the data distribution itself and not due to having insufficient samples. In this particular classification task, we (implicitly) assumed that there does not exist a classifier that is both robust and very accurate (i.e. $> 9 9 \%$ standard and robust accuracy). Thus, for this task, any classifier that is very accurate (including the Bayes classifier – the classifier minimizing classification error having full-information about the distribution) will necessarily be non-robust.
|
| 109 |
+
|
| 110 |
+
This seemingly goes against the common assumption in adversarial ML that humans are such perfect robust and accurate classifiers for standard datasets. However, note that there is no concrete evidence supporting this assumption. In fact, humans often have far from perfect performance in vision benchmarks (Karpathy, 2011; 2014; Russakovsky et al., 2015) and are outperformed by ML models in certain tasks (He et al., 2015b; Gastaldi, 2017). It is plausible that standard ML models are able to outperform humans in these tasks by relying on brittle features that humans are naturally invariant to and the observed decrease in performance might be the manifestation of that.
|
| 111 |
+
|
| 112 |
+
# 2.2 THE IMPORTANCE OF ADVERSARIAL TRAINING
|
| 113 |
+
|
| 114 |
+
As we have seen in the distributional model $\mathcal { D }$ (3), a classifier that achieves very high standard accuracy (1) will inevitably have near-zero adversarial accuracy. This is true even when a classifier with reasonable standard and robust accuracy exists. Hence, in an adversarial setting (2), where the goal is to achieve high adversarial accuracy, the training procedure needs to be modified. We now make this phenomenon concrete for linear classifiers trained using the soft-margin SVM loss. Specifically, in Appendix D we prove the following theorem.
|
| 115 |
+
|
| 116 |
+
Theorem 2.2 (Adversarial training matters). For $\eta \geq 4 / \sqrt { d }$ and $p \leq 0 . 9 7 5$ (the first feature is not perfect), a soft-margin SVM classifier of unit weight norm minimizing the distributional loss achieves a standard accuracy of $> 9 9 \%$ and adversarial accuracy of $\textless 1 \%$ against an $\ell _ { \infty }$ -bounded adversary of $\varepsilon \geq 2 \eta$ . Minimizing the distributional adversarial loss instead leads to a robust classifier that has standard and adversarial accuracy of p against any $\varepsilon < 1$ .
|
| 117 |
+
|
| 118 |
+
This theorem shows that if our focus is on robust models, adversarial training is crucial to achieve non-trivial adversarial accuracy in this setting. Simply optimizing the standard accuracy of the model (i.e. standard training) leads to poor robust accuracy. Soft-margin SVM classifiers and the constant 0.975 are chosen for mathematical convenience. Our proofs do not depend on them in a crucial way and can be adapted, in a straightforward manner, to other natural settings, e.g. logistic regression.
|
| 119 |
+
|
| 120 |
+
Transferability An interesting implication of our analysis is that standard training produces classifiers that rely on features that are weakly correlated with the correct label. This will be true for any classifier trained on the same distribution. Hence, the adversarial examples that are created by perturbing each feature in the direction of $- y$ will transfer across classifiers trained on independent samples from the distribution. This constitutes an interesting manifestation of the generally observed phenomenon of transferability (Szegedy et al., 2013) and might hint at its origin.
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
Figure 2: Visualization of the loss gradient with respect to input pixels. Recall that these gradients highlight the input features which affect the loss most strongly, and thus are important for the classifier’s prediction. We observe that the gradients are significantly more interpretable for adversarially trained networks – they align well with perceptually relevant features. In contrast, for standard networks they appear very noisy. We observe that gradients of $\ell _ { \infty }$ -trained models tend to be sparser than those of $\ell _ { 2 }$ -trained models. (For MNIST, blue and red pixels denote positive and negative gradient regions respectively. For CIFAR-10 and ImageNet, we clip gradients to within $\pm 3 \sigma$ and rescale them to lie in the [0, 1] range.) Additional visualizations are in Figure 10 of Appendix G.
|
| 124 |
+
|
| 125 |
+
Empirical examination In Section 2.1, we showed that the trade-off between standard accuracy and robustness might be inevitable. To examine how representative our theoretical model is of real-world datasets, we also experimentally investigate this issue on MNIST (LeCun et al., 1998) as it is amenable to linear classifiers. Interestingly, we observe a qualitatively similar behavior. For instance, in Figure 5(b) in Appendix E, we see that the standard classifier assigns weight to even weakly-correlated features. (Note that in settings with finite training data, such brittle features could arise even from noise – see Appendix E.) The robust classifier on the other hand does not assign any weight beyond a certain threshold. Further, we find that it is possible to obtain a robust classifier by directly training a standard model using only features that are relatively well-correlated with the label (without adversarial training). As expected, as more features are incorporated into the training, the standard accuracy is improved at the cost of robustness (see Appendix E Figure 5(c)).
|
| 126 |
+
|
| 127 |
+
# 3 UNEXPECTED BENEFITS OF ADVERSARIAL ROBUSTNESS
|
| 128 |
+
|
| 129 |
+
In Section 2, we established that robust and standard models might depend on very different sets of features. We demonstrated how this can lead to a decrease in standard accuracy for robust models. In this section, we will argue that the features learned by robust models can also be beneficial.
|
| 130 |
+
|
| 131 |
+
At a high level, robustness to adversarial perturbations can be viewed as an invariance property of a model. A model that achieves small loss for all perturbations in the set $\Delta$ , will necessarily have learned features that are invariant to such perturbations. Thus, robust training can be viewed as a method to embed certain invariances in a model. Since we also expect humans to be invariant to these perturbations (e.g. small $\ell _ { p }$ -bounded changes of the pixels), robust models will be more aligned with human vision than standard models. In this section, we present evidence supporting the view.
|
| 132 |
+
|
| 133 |
+
Loss gradients in the input space align well with human perception As a starting point, we want to investigate which features of the input most strongly affect the prediction of the classifier both for standard and robust models. To this end, we visualize the gradients of the loss with respect to individual features (pixels) of the input in Figure 2. We observe that gradients for adversarially trained networks align well with perceptually relevant features (such as edges) of the input image. In contrast, for standard networks, these gradients have no coherent patterns and appear very noisy to humans. We want to emphasize that no preprocessing was applied to the gradients (other than scaling and clipping for visualization). On the other hand, extraction of interpretable information from the gradients of standard networks has so far only been possible using additional sophisticated techniques (Simonyan et al., 2013; Yosinski et al., 2015; Olah et al., 2017).
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 3: Visualizing large- $\varepsilon$ adversarial examples for standard and robust $( \ell _ { 2 } / \ell _ { \infty }$ -adversarial training) models. We construct these examples by iteratively following the (negative) loss gradient while staying with $\ell _ { 2 }$ -distance of $\varepsilon$ from the original image. We observe that the images produced for robust models effectively capture salient data characteristics and appear similar to examples of a different class. (The value of $\varepsilon$ is equal for all models and much larger than the one used for training.) Additional examples are visualized in Figure 8 and 9 of Appendix G.
|
| 137 |
+
|
| 138 |
+
This observation effectively outlines an approach to train models that align better with human perception by design. By encoding the correct prior into the set of perturbations $\Delta$ , adversarial training alone might be sufficient to yield interpretable gradients. We believe that this phenomenon warrants an in-depth investigation and we view our experiments as only exploratory.
|
| 139 |
+
|
| 140 |
+
Adversarial examples exhibit salient data characteristics Given how the gradients of standard and robust models are concentrated on qualitatively different input features, we want to investigate how the adversarial examples of these models appear visually. To find adversarial examples, we start from a given test image and apply Projected Gradient Descent (PGD; a standard first-order optimization method) to find the image of highest loss within an $\ell _ { p }$ -ball of radius $\varepsilon$ around the original image 2. This procedure will change the pixels that are most influential for a particular model’s predictions and thus hint towards how the model is making its predictions.
|
| 141 |
+
|
| 142 |
+
The resulting visualizations are presented in Figure 3 (details in Appendix A). Surprisingly, we can observe that adversarial perturbations for robust models tend to produce salient characteristics of another class. In fact, the corresponding adversarial examples for robust models can often be perceived as samples from that class. This behavior is in stark contrast to standard models, for which adversarial examples appear as noisy variants of the input image.
|
| 143 |
+
|
| 144 |
+
These findings provide additional evidence that adversarial training does not necessarily lead to gradient obfuscation (Athalye et al., 2018). Following the gradient changes the image in a meaningful way and (eventually) leads to images of different classes. Hence, the robustness of these models does not stem from having gradients that are ill-suited for first-order methods.
|
| 145 |
+
|
| 146 |
+
Smooth cross-class interpolations via gradient descent By linearly interpolating between the original image and the image produced by PGD we can produce a smooth, “perceptually plausible” interpolation between classes (Figure 4). Such interpolation have thus far been restricted to generative models such as GANs (Goodfellow et al., 2014a) and VAEs (Kingma & Welling, 2013), involved manipulation of learned representations (Upchurch et al., 2016), and hand-designed methods (Suwajanakorn et al., 2015; Kemelmacher-Shlizerman, 2016). In fact, we conjecture that the similarity of these inter-class trajectories to GAN interpolations is not a coincidence. We postulate that the saddle point problem that is key in both these approaches may be at the root of this effect. We hope that future research will investigate this connection further and explore how to utilize the loss landscape of robust models as an alternative method to smoothly interpolate between classes.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 4: Interpolation between original image and large- $\varepsilon$ adversarial example as in Figure 3.
|
| 150 |
+
|
| 151 |
+
# 4 RELATED WORK
|
| 152 |
+
|
| 153 |
+
Due to the large body of related work, we will only focus on the most relevant studies here and defer the full discussion to Appendix F. Fawzi et al. (2018b) prove upper bounds on the robust of classifiers and exhibit a standard vs. robust accuracy trade-off for a specific classifier families on a synthetic task. Their setting also (implicitly) utilizes the notion of robust and non-robust features, however these features have small magnitude rather than weak correlation. Ross & Doshi-Velez (2017) propose regularizing the gradient of the classifier with respect to its input. They find that the resulting classifiers have more interpretable gradients and targeted adversarial examples resemble the target class for digit and character recognition tasks. There has been recent of work proving upper bounds on classifier robustness (Gilmer et al., 2018; Schmidt et al., 2018; Fawzi et al., 2018a). However, this work is orthogonal to ours as in these settings there exist classifiers that are both robust and accurate.
|
| 154 |
+
|
| 155 |
+
# 5 CONCLUSIONS AND FUTURE DIRECTIONS
|
| 156 |
+
|
| 157 |
+
In this work, we show that the goal of adversarially robust generalization might fundamentally be at odds with that of standard generalization. Specifically, we identify an inherent trade-off between the standard accuracy and adversarial robustness of a model, that provably manifests in a concrete, simple setting. This trade-off stems from intrinsic differences between the feature learned by standard and robust models. Our analysis also explains the drop in standard accuracy observed when employing adversarial training in practice. Moreover, it emphasizes the need to develop robust training methods, since robustness is unlikely to arise as a consequence of standard training.
|
| 158 |
+
|
| 159 |
+
We discover that even though adversarial robustness comes at a price, it has some unexpected benefits. Robust models learn features that align well with salient data characteristics. The root of this phenomenon is that the set of adversarial perturbations encodes some prior for human perception. Thus, classifiers that are robust to these perturbations are also necessarily invariant to input modifications that we expect humans to be invariant to. We demonstrate a striking consequence of this phenomenon: robust models yield clean feature interpolations similar to those obtained from generative models such as GANs (Goodfellow et al., 2014b). This emphasizes the possibility of a stronger connection between GANs and adversarial robustness.
|
| 160 |
+
|
| 161 |
+
Finally, our findings show that the interplay between adversarial robustness and standard classification might be more nuanced that one might expect. This motivates further work to fully undertand the relative costs and benefits of each of these notions.
|
| 162 |
+
|
| 163 |
+
# ACKNOWLEDGEMENTS
|
| 164 |
+
|
| 165 |
+
Shibani Santurkar was supported by the National Science Foundation (NSF) under grants IIS-1447786, IIS-1607189, and CCF-1563880, and the Intel Corporation. Dimitris Tsipras was supported in part by the NSF grant CCF-1553428. Aleksander M ˛adry was supported in part by an Alfred P. Sloan Research Fellowship, a Google Research Award, and the NSF grant CCF-1553428.
|
| 166 |
+
|
| 167 |
+
# REFERENCES
|
| 168 |
+
|
| 169 |
+
Tensor flow models repository. https://github.com/tensorflow/models/tree/master/ resnet, 2017.
|
| 170 |
+
Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017.
|
| 171 |
+
Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018.
|
| 172 |
+
Rohit Babbar and Bernhard Schölkopf. Adversarial extreme multi-label classification. arXiv preprint arXiv:1803.01570, 2018.
|
| 173 |
+
Aharon Ben-Tal, Laurent El Ghaoui, and Arkadi Nemirovski. Robust optimization. Princeton University Press, 2009.
|
| 174 |
+
Battista Biggio and Fabio Roli. Wild patterns: Ten years after the rise of adversarial machine learning. arXiv preprint arXiv:1712.03141, 2017.
|
| 175 |
+
Sébastien Bubeck, Eric Price, and Ilya Razenshteyn. Adversarial examples from computational constraints. arXiv preprint arXiv:1805.10204, 2018.
|
| 176 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. arXiv preprint arXiv:1608.04644, 2016.
|
| 177 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. arXiv preprint arXiv:1705.07263, 2017.
|
| 178 |
+
Nilesh Dalvi, Pedro Domingos, Mausam, Sumit Sanghai, and Deepak Verma. Adversarial classification. In International Conference on Knowledge Discovery and Data Mining (KDD), 2004.
|
| 179 |
+
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
|
| 180 |
+
Krishnamurthy Dvijotham, Sven Gowal, Robert Stanforth, Relja Arandjelovic, Brendan O’Donoghue, Jonathan Uesato, and Pushmeet Kohli. Training verified learners with learned verifiers. arXiv preprint arXiv:1805.10265, 2018a.
|
| 181 |
+
Krishnamurthy Dvijotham, Robert Stanforth, Sven Gowal, Timothy Mann, and Pushmeet Kohli. A dual approach to scalable verification of deep networks. arXiv preprint arXiv:1803.06567, 2018b.
|
| 182 |
+
Logan Engstrom, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. A rotation and a translation suffice: Fooling cnns with simple transformations. arXiv preprint arXiv:1712.02779, 2017.
|
| 183 |
+
Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on machine learning models. arXiv preprint arXiv:1707.08945, 2017.
|
| 184 |
+
|
| 185 |
+
Alhussein Fawzi and Pascal Frossard. Manitest: Are classifiers really invariant? In British Machine Vision Conference (BMVC), number EPFL-CONF-210209, 2015.
|
| 186 |
+
|
| 187 |
+
Alhussein Fawzi, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Robustness of classifiers: from adversarial to random noise. In Advances in Neural Information Processing Systems, pp. 1632–1640, 2016.
|
| 188 |
+
|
| 189 |
+
Alhussein Fawzi, Hamza Fawzi, and Omar Fawzi. Adversarial vulnerability for any classifier. arXiv preprint arXiv:1802.08686, 2018a.
|
| 190 |
+
|
| 191 |
+
Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. Machine Learning, 107(3):481–508, 2018b.
|
| 192 |
+
|
| 193 |
+
Xavier Gastaldi. Shake-shake regularization. arXiv preprint arXiv:1705.07485, 2017.
|
| 194 |
+
|
| 195 |
+
Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. arXiv preprint arXiv:1801.02774, 2018.
|
| 196 |
+
|
| 197 |
+
Ian Goodfellow. Adversarial examples. Presentation at Deep Learning Summer School, 2015. http:// videolectures.net/deeplearning2015_goodfellow_adversarial_examples/.
|
| 198 |
+
|
| 199 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014a.
|
| 200 |
+
|
| 201 |
+
Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b.
|
| 202 |
+
|
| 203 |
+
Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In Acoustics, speech and signal processing (icassp), 2013 ieee international conference on, pp. 6645–6649. IEEE, 2013.
|
| 204 |
+
|
| 205 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. corr abs/1512.03385 (2015), 2015a.
|
| 206 |
+
|
| 207 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015b.
|
| 208 |
+
|
| 209 |
+
Andrej Karpathy. Lessons learned from manually classifying cifar-10. http://karpathy.github.io/ 2011/04/27/manually-classifying-cifar10/, 2011. Accessed: 2018-09-23.
|
| 210 |
+
|
| 211 |
+
Andrej Karpathy. What I learned from competing against a ConvNet on ImageNet. http://karpathy.github.io/2014/09/02/ what-i-learned-from-competing-against-a-convnet-on-imagenet/, 2014. Accessed: 2018-09-23.
|
| 212 |
+
|
| 213 |
+
Ira Kemelmacher-Shlizerman. Transfiguring portraits. ACM Transactions on Graphics (TOG), 35(4):94, 2016.
|
| 214 |
+
|
| 215 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 216 |
+
|
| 217 |
+
J Zico Kolter and Eric Wong. Provable defenses against adversarial examples via the convex outer adversarial polytope. arXiv preprint arXiv:1711.00851, 2017.
|
| 218 |
+
|
| 219 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
|
| 220 |
+
|
| 221 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 222 |
+
|
| 223 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016a.
|
| 224 |
+
|
| 225 |
+
Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016b.
|
| 226 |
+
|
| 227 |
+
Yann LeCun, Corinna Cortes, and Christopher J.C. Burges. The mnist database of handwritten digits. Website, 1998. URL http://yann.lecun.com/exdb/mnist/.
|
| 228 |
+
|
| 229 |
+
Yann LeCun, Corinna Cortes, and CJ Burges. Mnist handwritten digit database. AT&T Labs [Online]. Available: http://yann. lecun. com/exdb/mnist, 2, 2010.
|
| 230 |
+
|
| 231 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 232 |
+
|
| 233 |
+
Takeru Miyato, Shin-ichi Maeda, Shin Ishii, and Masanori Koyama. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 2018.
|
| 234 |
+
|
| 235 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
|
| 236 |
+
|
| 237 |
+
Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: A simple and accurate method to fool deep neural networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pp. 2574–2582, 2016.
|
| 238 |
+
|
| 239 |
+
Anh Mai Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pp. 427–436, 2015.
|
| 240 |
+
|
| 241 |
+
Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017. doi: 10.23915/ distill.00007. https://distill.pub/2017/feature-visualization.
|
| 242 |
+
|
| 243 |
+
Aditi Raghunathan, Jacob Steinhardt, and Percy Liang. Certified defenses against adversarial examples. arXiv preprint arXiv:1801.09344, 2018.
|
| 244 |
+
|
| 245 |
+
Andrew Slavin Ross and Finale Doshi-Velez. Improving the adversarial robustness and interpretability of deep neural networks by regularizing their input gradients. arXiv preprint arXiv:1711.09404, 2017.
|
| 246 |
+
|
| 247 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
|
| 248 |
+
|
| 249 |
+
Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander M ˛adry. Adversarially robust generalization requires more data. arXiv preprint arXiv:1804.11285, 2018.
|
| 250 |
+
|
| 251 |
+
Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K. Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, October 24-28, 2016, pp. 1528–1540, 2016.
|
| 252 |
+
|
| 253 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
|
| 254 |
+
|
| 255 |
+
Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013.
|
| 256 |
+
|
| 257 |
+
Aman Sinha, Hongseok Namkoong, and John Duchi. Certifiable distributional robustness with principled adversarial training. arXiv preprint arXiv:1710.10571, 2017.
|
| 258 |
+
|
| 259 |
+
Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. arXiv preprint arXiv:1808.01688, 2018.
|
| 260 |
+
|
| 261 |
+
Supasorn Suwajanakorn, Steven M Seitz, and Ira Kemelmacher-Shlizerman. What makes tom hanks look like tom hanks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3952–3960, 2015.
|
| 262 |
+
|
| 263 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 264 |
+
|
| 265 |
+
Vincent Tjeng and Russ Tedrake. Verifying neural networks with mixed integer programming. arXiv preprint arXiv:1711.07356, 2017.
|
| 266 |
+
|
| 267 |
+
Mohamad Ali Torkamani and Daniel Lowd. On robustness and regularization of structural support vector machines. In International Conference on Machine Learning, pp. 577–585, 2014.
|
| 268 |
+
|
| 269 |
+
MohamadAli Torkamani and Daniel Lowd. Convex adversarial collective classification. In International Conference on Machine Learning, pp. 642–650, 2013.
|
| 270 |
+
|
| 271 |
+
Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. arXiv preprint arXiv:1802.05666, 2018.
|
| 272 |
+
Paul Upchurch, Jacob Gardner, Geoff Pleiss, Robert Pless, Noah Snavely, Kavita Bala, and Kilian Weinberger. Deep feature interpolation for image content changes. arXiv preprint arXiv:1611.05507, 2016.
|
| 273 |
+
Yizhen Wang, Somesh Jha, and Kamalika Chaudhuri. Analyzing the robustness of nearest neighbors to adversarial examples. arXiv preprint arXiv:1706.03922, 2017.
|
| 274 |
+
Eric Wong, Frank Schmidt, Jan Hendrik Metzen, and J Zico Kolter. Scaling provable adversarial defenses. arXiv preprint arXiv:1805.12514, 2018.
|
| 275 |
+
Yuxin Wu et al. Tensorpack. https://github.com/tensorpack/, 2016.
|
| 276 |
+
Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. arXiv preprint arXiv:1801.02612, 2018a.
|
| 277 |
+
Kai Y Xiao, Vincent Tjeng, Nur Muhammad Shafiullah, and Aleksander Madry. Training for faster adversarial robustness verification via inducing relu stability. arXiv preprint arXiv:1809.03008, 2018b.
|
| 278 |
+
Huan Xu and Shie Mannor. Robustness and generalization. Machine learning, 86(3):391–423, 2012.
|
| 279 |
+
Jason Yosinski, Jeff Clune, Anh Nguyen, Thomas Fuchs, and Hod Lipson. Understanding neural networks through deep visualization. arXiv preprint arXiv:1506.06579, 2015.
|
| 280 |
+
|
| 281 |
+
# A EXPERIMENTAL SETUP
|
| 282 |
+
|
| 283 |
+
# A.1 DATASETS
|
| 284 |
+
|
| 285 |
+
We perform our experimental analysis on the MNIST (LeCun et al., 2010), CIFAR-10 (Krizhevsky & Hinton, 2009) and (restricted) ImageNet (Deng et al., 2009) datasets. For binary classification, we filter out all the images from the MNIST dataset other than the “5” and “7” labelled examples. For the ImageNet dataset, adversarial training is significantly harder since the classification problem is challenging by itself and standard classifiers are already computationally expensive to train. We thus restrict our focus to a smaller subset of the dataset. We group together a subset of existing, semantically similar ImageNet classes into 8 different super-classes, as shown in Table 1. We train and evaluate only on examples corresponding to these classes.
|
| 286 |
+
|
| 287 |
+
Table 1: Classes used in the Restricted ImageNet model. The class ranges are inclusive.
|
| 288 |
+
|
| 289 |
+
<table><tr><td>Class</td><td>Corresponding ImageNet Classes</td></tr><tr><td>“Dog”</td><td>151 to 268</td></tr><tr><td>“Cat”</td><td>281 to 285</td></tr><tr><td>“Frog”</td><td>30 to 32</td></tr><tr><td>“Turtle”</td><td>33 to 37</td></tr><tr><td>“Bird”</td><td>80 to 100</td></tr><tr><td>"Primate”</td><td>365 to 382</td></tr><tr><td>“Fish”</td><td>389 to 397</td></tr><tr><td>“Crab”</td><td>118 to 121</td></tr><tr><td>"Insect”</td><td>300 to 319</td></tr></table>
|
| 290 |
+
|
| 291 |
+
# A.2 MODELS
|
| 292 |
+
|
| 293 |
+
• Binary MNIST (Section 2.2): We train a linear classifier with parameters $w \in \mathbb { R } ^ { 7 8 4 } , b \in \mathbb { R }$ on the dataset described in Section A.1 (labels $- 1$ and $+ 1$ correspond to images labelled as “5” and “7” respectively). We use the cross-entropy loss and perform 100 epochs of gradient descent in training.
|
| 294 |
+
|
| 295 |
+
• MNIST: We use the simple convolution architecture from the TensorFlow tutorial (TFM, 2017) 3.
|
| 296 |
+
• CIFAR-10: We consider a standard ResNet model (He et al., 2015a). It has 4 groups of residual layers with filter sizes (16, 16, 32, 64) and 5 residual units each 4.
|
| 297 |
+
• Restricted ImageNet: We use a ResNet-50 (He et al., 2015a) architecture using the code from the tensorpack repository (Wu et al., 2016). We do not modify the model architecture, and change the training procedure only by changing the number of examples per “epoch” from 1,280,000 images to 76,800 images.
|
| 298 |
+
|
| 299 |
+
# A.3 ADVERSARIAL TRAINING
|
| 300 |
+
|
| 301 |
+
We perform adversarial training to train robust classifiers following Madry et al. (2017). Specifically, we train against a projected gradient descent (PGD) adversary, starting from a random initial perturbation of the training data. We consider adversarial perturbations in $\ell _ { p }$ norm where $p = \{ 2 , \infty \}$ . Unless otherwise specified, we use the values of $\varepsilon$ provided in Table 2 to train/evaluate our models.
|
| 302 |
+
|
| 303 |
+
Table 2: Value of $\varepsilon$ used for adversarial training/evaluation of each dataset and $\ell _ { p }$ -norm.
|
| 304 |
+
|
| 305 |
+
<table><tr><td>Adversary</td><td>Binary MNIST</td><td>MNIST</td><td>CIFAR-10</td><td>Restricted Imagenet</td></tr><tr><td>l8</td><td>0.2</td><td>0.3</td><td>4/255</td><td>0.005</td></tr><tr><td>l</td><td>1</td><td>1.5</td><td>0.314</td><td>1</td></tr></table>
|
| 306 |
+
|
| 307 |
+
# A.4 ADVERSARIAL EXAMPLES FOR LARGE ε
|
| 308 |
+
|
| 309 |
+
The images we generated for Figure 3 were allowed a much larger perturbation from the original sample in order to produce visible changes to the images. These values are listed in Table 3. Since
|
| 310 |
+
|
| 311 |
+
Table 3: Value of $\varepsilon$ used for large- $\varepsilon$ adversarial examples of Figure 3.
|
| 312 |
+
|
| 313 |
+
<table><tr><td>Adversary</td><td>MNIST</td><td>CIFAR-10</td><td>Restricted Imagenet</td></tr><tr><td>l8</td><td>0.3</td><td>0.125</td><td>0.25</td></tr><tr><td>l</td><td>4</td><td>4.7</td><td>40</td></tr></table>
|
| 314 |
+
|
| 315 |
+
these levels of perturbations would allow to truly change the class of the image, training against such strong adversaries would be impossible. Still, we observe that smaller values of $\varepsilon$ suffices to ensure that the models rely on the most robust (and hence interpretable) features.
|
| 316 |
+
|
| 317 |
+
# B MIXING NATURAL AND ADVERSARIAL EXAMPLES IN EACH BATCH
|
| 318 |
+
|
| 319 |
+
In order to make sure that the standard accuracy drop in Figure 7 is not an artifact of only training on adversarial examples, we experimented with including unperturbed examples in each training batch, following the recommendation of (Kurakin et al., 2016a). We found that while this slightly improves the standard accuracy of the classifier, it decreases it’s robust accuracy by a roughly proportional amount, see Table 4.
|
| 320 |
+
|
| 321 |
+
# C PROOF OF THEOREM 2.1
|
| 322 |
+
|
| 323 |
+
The main idea of the proof is that an adversary with $\varepsilon = 2 \eta$ is able to change the distribution of features $x _ { 2 } , \ldots , x _ { d + 1 }$ to reflect a label of $- y$ instead of $y$ by subtracting $\varepsilon y$ from each variable. Hence any information that is used from these features to achieve better standard accuracy can be used by the adversary to reduce adversarial accuracy. We define $G _ { + }$ to be the distribution of $x _ { 2 } , \ldots , x _ { d + 1 }$ when $y = + 1$ and $G _ { - }$ to be that distribution when $y = - 1$ . We will consider the setting where $\varepsilon = 2 \eta$ and fix the adversary that replaces $x _ { i }$ by $x _ { i } - y \varepsilon$ for each $i \geq 2$ . This adversary is able to change $G _ { + }$ to $G _ { - }$ in the adversarial setting and vice-versa.
|
| 324 |
+
|
| 325 |
+
Table 4: Standard and robust accuracy corresponding to robust training with half natural and half adversarial samples. The accuracies correspond to standard, robust and half-half training.
|
| 326 |
+
|
| 327 |
+
<table><tr><td></td><td></td><td colspan="3">Standard Accuracy</td><td colspan="3">Robust Accuracy</td></tr><tr><td>Norm</td><td>m</td><td>Standard</td><td>Half-half</td><td>Robust</td><td>Standard</td><td>Half-half</td><td>Robust</td></tr><tr><td rowspan="7">lo LSINN</td><td></td><td>99.31%</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>0.1</td><td>99.31%</td><td>99.43%</td><td>99.36%</td><td>29.45%</td><td>95.29%</td><td>95.05%</td></tr><tr><td>0.2</td><td>99.31%</td><td>99.22%</td><td>98.99%</td><td>0.05%</td><td>90.79%</td><td>92.86%</td></tr><tr><td>0.3</td><td>99.31%</td><td>99.17%</td><td>97.37%</td><td>0.00%</td><td>89.51%</td><td>89.92%</td></tr><tr><td></td><td>99.31%</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>0.5</td><td>99.31%</td><td>99.35%</td><td>99.41%</td><td>94.67%</td><td>97.60%</td><td>97.70%</td></tr><tr><td>1.5</td><td>99.31%</td><td>99.29%</td><td>99.24%</td><td>56.42%</td><td>87.71%</td><td>88.59%</td></tr><tr><td rowspan="5"></td><td>2.5</td><td>99.31%</td><td>99.12%</td><td>97.79%</td><td>46.36%</td><td>60.27%</td><td>63.73%</td></tr><tr><td>0</td><td>92.20%</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>2/255</td><td>92.20%</td><td>90.13%</td><td>89.64%</td><td>0.99%</td><td>69.10%</td><td>69.92%</td></tr><tr><td>4/255</td><td>92.20%</td><td>88.27%</td><td>86.54%</td><td>0.08%</td><td>55.60%</td><td>57.79%</td></tr><tr><td>8/255 0</td><td>92.20%</td><td>84.72%</td><td>79.57%</td><td>0.00%</td><td>37.56%</td><td>41.93%</td></tr><tr><td rowspan="4">l2</td><td></td><td>92.20%</td><td>=</td><td>-</td><td>1</td><td>1</td><td>=</td></tr><tr><td>20/255</td><td>92.20%</td><td>92.04%</td><td>91.77%</td><td>45.60%</td><td>83.94%</td><td>84.70%</td></tr><tr><td>255</td><td>92.20%</td><td>88.95%</td><td>88.38%</td><td>8.80%</td><td>67.29%</td><td>68.69%</td></tr><tr><td>320 /255</td><td>92.20%</td><td>81.74%</td><td>75.75%</td><td>3.30%</td><td>34.45%</td><td>39.76%</td></tr></table>
|
| 328 |
+
|
| 329 |
+
Consider any classifier $f ( x )$ that maps an input $x$ to a class in $\{ - 1 , + 1 \}$ . Let us fix the probability that this classifier predicts class $+ 1$ for some fixed value of $x _ { 1 }$ and distribution of $x _ { 2 } , \ldots , x _ { d + 1 }$ Concretely, we define $p _ { i j }$ to be the probability of predicting $+ 1$ given that the first feature has sign $i$ and the rest of the features are distributed according to $G _ { j }$ . Formally,
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
\begin{array} { l } { { p _ { + + } = \displaystyle \operatorname* { P r } _ { x _ { 2 } , \ldots , d + 1 } \sim G _ { + } ( f ( x ) = + 1 \mid x _ { 1 } = + 1 ) , } } \\ { { p _ { + - } = \displaystyle \operatorname* { P r } _ { x _ { 2 } , \ldots , d + 1 } \sim G _ { - } ( f ( x ) = + 1 \mid x _ { 1 } = + 1 ) , } } \\ { { p _ { - + } = \displaystyle \operatorname* { P r } _ { x _ { 2 } , \ldots , d + 1 } \sim G _ { + } ( f ( x ) = + 1 \mid x _ { 1 } = - 1 ) , } } \\ { { p _ { -- } = \displaystyle \operatorname* { P r } _ { x _ { 2 } , \ldots , d + 1 } \sim G _ { - } ( f ( x ) = + 1 \mid x _ { 1 } = - 1 ) . } } \end{array}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
Using these definitions, we can express the standard accuracy of the classifier as
|
| 336 |
+
|
| 337 |
+
$$
|
| 338 |
+
\begin{array} { l } { \operatorname* { P r } ( f ( x ) = y ) = \operatorname* { P r } ( y = + 1 ) \left( p \cdot p _ { + + } + ( 1 - p ) \cdot p _ { - + } \right) } \\ { \qquad + \operatorname* { P r } ( y = - 1 ) \left( p \cdot ( 1 - p _ { -- } ) + ( 1 - p ) \cdot ( 1 - p _ { + - } ) \right) } \\ { \qquad = \displaystyle \frac { 1 } { 2 } \left( p \cdot p _ { + + } + ( 1 - p ) \cdot p _ { - + } + p \cdot ( 1 - p _ { -- } ) + ( 1 - p ) \cdot ( 1 - p _ { + - } ) \right) } \\ { \qquad = \displaystyle \frac { 1 } { 2 } \left( p \cdot ( 1 + p _ { + + } - p _ { -- } ) + ( 1 - p ) \cdot ( 1 + p _ { - + } - p _ { + - } ) ) \right) . } \end{array}
|
| 339 |
+
$$
|
| 340 |
+
|
| 341 |
+
Similarly, we can express the accuracy of this classifier against the adversary that replaces $G _ { + }$ with $G _ { - }$ (and vice-versa) as
|
| 342 |
+
|
| 343 |
+
$$
|
| 344 |
+
\begin{array} { r l } & { \operatorname* { P r } ( f ( x _ { \mathrm { a d v } } ) = y ) = \operatorname* { P r } ( y = + 1 ) ( p \cdot p _ { + - } + ( 1 - p ) \cdot p _ { -- } ) } \\ & { \qquad + \operatorname* { P r } ( y = - 1 ) ( p \cdot ( 1 - p _ { - + } ) + ( 1 - p ) \cdot ( 1 - p _ { + + } ) ) } \\ & { = \cfrac { 1 } { 2 } ( p \cdot p _ { + - } + ( 1 - p ) \cdot p _ { -- } + p \cdot ( 1 - p _ { - + } ) + ( 1 - p ) \cdot ( 1 - p _ { + + } ) ) } \\ & { = \cfrac { 1 } { 2 } ( p \cdot ( 1 + p _ { + - } - p _ { - + } ) + ( 1 - p ) \cdot ( 1 + p _ { -- } - p _ { + + } ) ) ) . } \end{array}
|
| 345 |
+
$$
|
| 346 |
+
|
| 347 |
+
For convenience we will define $a = 1 - p _ { + + } + p _ { -- }$ and $b = 1 - p _ { - + } + p _ { + - }$ . Then we can rewrite
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
\begin{array} { r l } { { \mathrm { s t a n d a r d ~ a c c u r a c y : ~ } } } & { { \displaystyle \frac { 1 } { 2 } ( p ( 2 - a ) + ( 1 - p ) ( 2 - b ) ) } } \\ { { } } & { { = 1 - \displaystyle \frac { 1 } { 2 } ( p a + ( 1 - p ) b ) , } } \\ { { \mathrm { } } } & { { } } \\ { { \mathrm { ~ d v e r s a r i a l ~ a c c u r a c y : ~ } } } & { { \displaystyle \frac { 1 } { 2 } ( ( 1 - p ) a + p b ) . } } \end{array}
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
We are assuming that the standard accuracy of the classifier is at least $1 - \delta$ for some small $\delta$ . This implies that
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
1 - \frac 1 2 ( p a + ( 1 - p ) b ) \geq 1 - \delta \implies p a + ( 1 - p ) b \leq 2 \delta .
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
Since $p _ { i j }$ are probabilities, we can guarantee that $a \ge 0$ . Moreover, since $p \geq 0 . 5$ , we have $p / ( 1 - \bar { p } ) \geq 1$ . We use these to upper bound the adversarial accuracy by
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\begin{array} { c } { \displaystyle \frac 1 2 ( ( 1 - p ) a + p b ) \leq \frac 1 2 \left( ( 1 - p ) \frac { p ^ { 2 } } { ( 1 - p ) ^ { 2 } } a + p b \right) } \\ { = \displaystyle \frac { p } { 2 ( 1 - p ) } ( p a + ( 1 - p ) b ) } \\ { \leq \displaystyle \frac { p } { 1 - p } \delta . } \end{array}
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
# D PROOF OF THEOREM 2.2
|
| 366 |
+
|
| 367 |
+
We consider the problem of fitting the distribution $\mathcal { D }$ of (3) by using a standard soft-margin SVM classifier. Specifically, this can be formulated as:
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\operatorname* { m i n } _ { w } \mathbb { E } \big [ \operatorname* { m a x } ( 0 , 1 - y w ^ { \top } x ) \big ] + \frac { 1 } { 2 } \lambda \| w \| _ { 2 } ^ { 2 }
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
for some value of $\lambda$ . We will assume that we tune $\lambda$ such that the optimal solution $w ^ { * }$ has $\ell _ { 2 }$ -norm of 1. This is without much loss of generality since our proofs can be adapted to the general case. We will refer to the first term of (5) as the margin term and the second term as the regularization term.
|
| 374 |
+
|
| 375 |
+
First we will argue that, due to symmetry, the optimal solution will assign equal weight to all the features $x _ { i }$ for $i = 2 , \ldots , d + 1$ .
|
| 376 |
+
|
| 377 |
+
Lemma D.1. Consider an optimal solution $w ^ { * }$ to the optimization problem (5). Then,
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
w _ { i } ^ { * } = w _ { j } ^ { * } \forall i , j \in \{ 2 , . . . , d + 1 \} .
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
Proof. Assume that $\exists i , j \in \{ 2 , . . . , d + 1 \}$ such that $w _ { i } ^ { * } \neq w _ { j } ^ { * }$ . Since the distribution of $x _ { i }$ and $x _ { j }$ are identical, we can swap the value of $w _ { i }$ and $w _ { j }$ , to get an alternative set of parameters $\hat { w }$ that has the same loss function value ( $\hat { w } _ { j } = w _ { i }$ , $\hat { w } _ { i } = w _ { j }$ , $\hat { w } _ { k } = w _ { k }$ for $k \neq i , j )$ .
|
| 384 |
+
|
| 385 |
+
Moreover, since the margin term of the loss is convex in $w$ , using Jensen’s inequality, we get that averaging $w ^ { * }$ and $\hat { w }$ will not increase the value of that margin term. Note, however, that $\lVert \frac { w ^ { * } + \hat { w } } { 2 } \rVert _ { 2 } < \lVert w ^ { * } \rVert _ { 2 }$ , hence the regularization loss is strictly smaller for the average point. This contradicts the optimality of $w ^ { * }$ . □
|
| 386 |
+
|
| 387 |
+
Since every optimal solution will assign equal weight to all √ $x _ { i }$ for $k \geq 2$ , we can replace these features by their sum (and divide by $\sqrt { d }$ for convenience). We will define
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
z = \frac { 1 } { \sqrt { d } } \sum _ { i = 2 } ^ { d + 1 } x _ { i } ,
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
which, by the properties of the normal distribution, is distributed as
|
| 394 |
+
|
| 395 |
+
$$
|
| 396 |
+
z \sim \mathcal { N } ( y \eta \sqrt { d } , 1 ) .
|
| 397 |
+
$$
|
| 398 |
+
|
| 399 |
+
By assigning a weight of $v$ to that combined feature the optimal solutions can be parametrized as
|
| 400 |
+
|
| 401 |
+
$$
|
| 402 |
+
w ^ { \top } x = w _ { 1 } x _ { 1 } + v z ,
|
| 403 |
+
$$
|
| 404 |
+
|
| 405 |
+
where the regularization term of the loss is $\lambda ( w _ { 1 } ^ { 2 } + v ^ { 2 } ) / 2$ .
|
| 406 |
+
|
| 407 |
+
Recall that our chosen value of $\eta$ is $4 / \sqrt { d }$ , which implies that the contribution of $v z$ is distributed normally with mean 4yv and variance $v ^ { 2 }$ . By the concentration of the normal distribution, the probability of $v z$ being larger than $v$ is large. We will use this fact to show that the optimal classifier will assign on $v$ at least as much weight as it assigns on $w _ { 1 }$ .
|
| 408 |
+
|
| 409 |
+
Lemma D.2. Consider the optimal solution $( w _ { 1 } ^ { * } , v ^ { * } )$ of the problem (5). Then
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
v ^ { * } \geq \frac { 1 } { \sqrt { 2 } } .
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
Proof. Assume for the sake of contradiction that $v ^ { * } < 1 / \sqrt { 2 }$ . Then, with probability at least $1 - p$ the first feature predicts the wrong label and without enough weight, the remaining features cannot compensate for it. Concretely,
|
| 416 |
+
|
| 417 |
+
$$
|
| 418 |
+
\begin{array} { r l } & { \mathbb E [ \operatorname* { m a x } ( 0 , 1 - y w ^ { \top } x ) ] \geq ( 1 - p ) \mathbb E \left[ \operatorname* { m a x } \left( 0 , 1 + w _ { 1 } - \mathcal N \left( 4 v , v ^ { 2 } \right) \right) \right] } \\ & { \qquad \geq ( 1 - p ) \mathbb E \left[ \operatorname* { m a x } \left( 0 , 1 + \frac 1 { \sqrt 2 } - \mathcal N \left( \frac 4 { \sqrt 2 } , \frac 1 2 \right) \right) \right] } \\ & { \qquad > ( 1 - p ) \cdot 0 . 0 1 6 . } \end{array}
|
| 419 |
+
$$
|
| 420 |
+
|
| 421 |
+
We will now show that a solution that assigns zero weight on the first feature $\mathbf { \nabla } _ { v } = 1$ and $w _ { 1 } = 0$ ), achieves a better margin loss.
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
\begin{array} { r l } & { \mathbb { E } { [ \operatorname* { m a x } ( 0 , 1 - y w ^ { \top } x ) ] } = \mathbb { E } \left[ \operatorname* { m a x } \left( 0 , 1 - \mathcal { N } \left( 4 , 1 \right) \right) \right] } \\ & { \qquad < 0 . 0 0 0 4 . } \end{array}
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
Hence, as long as $p \leq 0 . 9 7 5$ , this solution has a smaller margin loss than the original solution. Since both solutions have the same norm, the solution that assigns weight only on $v$ is better than the original solution $( w _ { 1 } ^ { * } , v ^ { * } )$ , contradicting its optimality. □
|
| 428 |
+
|
| 429 |
+
We have established that the learned classifier will assign more weight to $v$ than $w _ { 1 }$ . Since $z$ will be at least $y$ with large probability, we will show that the behavior of the classifier depends entirely on $z$
|
| 430 |
+
|
| 431 |
+
Lemma D.3. The standard accuracy of the soft-margin SVM learned for problem (5) is at least $9 9 \%$
|
| 432 |
+
|
| 433 |
+
Proof. By Lemma D.2, the classifier predicts the sign of √ $w _ { 1 } x _ { 1 } + v z$ where $v z \sim \mathcal { N } ( 4 y v , v ^ { 2 } )$ and $v \geq 1 / \sqrt { 2 }$ . Hence with probability at least $9 9 \%$ , $v z y > 1 / \sqrt 2 \geq w _ { 1 }$ and thus the predicted class is $y$ (the correct class) independent of $x _ { 1 }$ . □
|
| 434 |
+
|
| 435 |
+
We can utilize the same argument to show that an adversary that changes the distribution of $z$ has essentially full control over the classifier prediction.
|
| 436 |
+
|
| 437 |
+
Lemma D.4. The adversarial accuracy of the soft-margin SVM learned for (5) is at most $1 \%$ against an $\ell _ { \infty }$ -bounded adversary of $\varepsilon = 2 \eta$ .
|
| 438 |
+
|
| 439 |
+
Proof. Observe that the adversary can shift each feature $x _ { i }$ towards $y$ by $2 \eta$ . This will cause $z$ to be distributed as
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
z _ { \mathrm { a d v } } \sim \mathcal { N } ( - y \eta \sqrt { d } , 1 ) .
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
Therefore with probability at least $9 9 \%$ , $v y z < - y \le - w _ { 1 }$ and the predicted class will be $- y$ (wrong class) independent of $x _ { 1 }$ .
|
| 446 |
+
|
| 447 |
+
It remains to show that adversarial training for this classification task with $\varepsilon > 2 \eta$ will results in a classifier that has relies solely on the first feature.
|
| 448 |
+
|
| 449 |
+
Lemma D.5. Minimizing the adversarial variant of the loss (5) results in a classifier that assigns 0 weight to features $x _ { i }$ for $i \geq 2$ .
|
| 450 |
+
|
| 451 |
+
Proof. The optimization problem that adversarial training solves is
|
| 452 |
+
|
| 453 |
+
$$
|
| 454 |
+
\operatorname* { m i n } _ { w } \operatorname* { m a x } _ { \| \delta \| _ { \infty } \leq \varepsilon } \mathbb { E } \big [ \operatorname* { m a x } ( 0 , 1 - y w ^ { \top } ( x + \delta ) ) \big ] + \frac { 1 } { 2 } \lambda \| w \| _ { 2 } ^ { 2 } ,
|
| 455 |
+
$$
|
| 456 |
+
|
| 457 |
+
which is equivalent to
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
\operatorname* { m i n } _ { \boldsymbol { w } } \mathbb { E } \big [ \operatorname* { m a x } ( 0 , 1 - { y \boldsymbol { w } } ^ { \top } { \boldsymbol { x } } + \varepsilon \| { \boldsymbol { w } } \| _ { 1 } ) \big ] + \frac { 1 } { 2 } \lambda \| { \boldsymbol { w } } \| _ { 2 } ^ { 2 } .
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
Consider any optimal solution $w$ for which $w _ { i } > 0$ for some $i > 2$ . The contribution of terms depending on $w _ { i }$ to $1 - y w ^ { \top } x + \varepsilon \| w \| _ { 1 }$ is a normally-distributed random variable with mean $2 \eta - \varepsilon \leq 0$ . Since the mean is non-positive, setting $w _ { i }$ to zero can only decrease the margin term of the loss. At the same time, setting $w _ { i }$ to zero strictly decreases the regularization term, contradicting the optimality of $w$ . □
|
| 464 |
+
|
| 465 |
+
Clearly, such a classifier will have standard and adversarial accuracy of $p$ against any $\varepsilon < 1$ since such a value of $\varepsilon$ is not sufficient to change the sign of the first feature. This concludes the proof of the theorem.
|
| 466 |
+
|
| 467 |
+
# E ROBUSTNESS-ACCURACY TRADE-OFF: AN EMPIRICAL EXAMINATION
|
| 468 |
+
|
| 469 |
+
Our theoretical analysis shows that there is an inherent tension between standard accuracy and adversarial robustness. At the core of this trade-off is the concept of robust and non-robust features. The robustness of a feature is characterized by the strength of its correlation with the correct label. It is natural to wonder whether this concept of robust features is an artifact of our theoretical analysis or if it manifests more broadly. We thus investigate this issue experimentally on a dataset that is amenable to linear classifiers, MNIST (LeCun et al., 1998) (details in Appendix A).
|
| 470 |
+
|
| 471 |
+
Recall the goal of standard classification for linear classifiers is to predict accurately, i.e. $y =$ $\mathrm { s i g n } ( w ^ { \top } x )$ . Hence the correlation of a feature $i$ with the true label, computed as $| \mathbb { E } [ y x _ { i } ] |$ , quantifies how useful this feature is for classification. In the adversarial setting, against an $\varepsilon \ell _ { \infty }$ -bounded adversary we need to ensure that $y = \mathrm { s i g n } ( w ^ { \top } x - \varepsilon y \| w \| _ { 1 } )$ . In that case we expect a feature $i$ to be helpful if $| \mathbb { E } [ y x _ { i } ] | \ge \varepsilon$ .
|
| 472 |
+
|
| 473 |
+
This calculation suggests that in the adversarial setting, there is an implicit threshold on feature correlations imposed by the threat model (the perturbation allowed to the adversary). While standard models may utilize all features with non-zero correlations, a robust model cannot rely on features with correlation below this threshold. In Figure 5(b), we visualize the correlation of each pixel (feature) in the MNIST dataset along with the learned weights of the standard and robust classifiers. As expected, we see that the standard classifier assigns weights even to weakly-correlated pixels so as to maximize prediction confidence. On the other hand, the robust classifier does not assign any weight below a certain correlation threshold which is dictated by the adversary’s strength $\left( \varepsilon \right)$ (Figures 5(a, b))
|
| 474 |
+
|
| 475 |
+
Interestingly, the standard model assigns non-zero weight even to very weakly correlated pixels (Figure 5(a)). In settings with finite training data, such non-robust features could arise from noise. (For instance, in $N$ tosses of an unbiased coin, the expected imbalance between heads and tails is $O ( { \sqrt { N } } )$ with high probability.) A standard classifier would try to take advantage of even this “hallucinated” information by assigning non-zero weights to these features.
|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
Figure 5: Analysis of linear classifier trained on a binary MNIST task (5 vs. 7). (Details in Appendix Table 5.) (a) Visualization of network weights per input feature. (b) Comparison of feature-label correlation to the weight assigned to the feature by each network. Adversarially trained networks put weights only on a small number of strongly-correlated or “robust” features. (c) Performance of a model trained using standard training only on the most robust features. Specifically, we sort features based on decreasing correlation with the label and train using only the most correlated ones. Beyond a certain threshold, we observe that as more non-robust or (weakly correlated) features are available to the model, the standard accuracy increases at the cost of robustness.
|
| 479 |
+
|
| 480 |
+
# E.1 AN ALTERNATIVE PATH TO ROBUSTNESS?
|
| 481 |
+
|
| 482 |
+
The analysis above highlights an interesting trade-off between the predictive power of a feature and its vulnerability to adversarial perturbations. This brings forth the question – Could we use these insights to train robust classifiers with standard methods (i.e. without performing adversarial training)? As a first step, we train a (standard) linear classifier on MNIST utilizing input features (pixels) that lie above a given correlation threshold (see Figure 5(c)). As expected, as more non robust features are incorporated in training, the standard accuracy increases at the cost of robustness. Further, we observe that a standard classifier trained in this manner using few robust features attains better robustness than even adversarial training. This results suggest a more direct (and potentially better) method of training robust networks in certain settings.
|
| 483 |
+
|
| 484 |
+
# F ADDITIONAL RELATED WORK
|
| 485 |
+
|
| 486 |
+
Fawzi et al. (2016) derive parameter-dependent bounds on the robustness of any fixed classifier. Our results focus on the statistical setting itself and provide lower bounds for all classifiers learned in this setting.
|
| 487 |
+
|
| 488 |
+
Wang et al. (2017) analyze the adversarial robustness of nearest neighbor classifiers. Instead we focus on lower bounds that are inherent to the statistical setting itself and apply to all classifiers.
|
| 489 |
+
|
| 490 |
+
Schmidt et al. (2018) study the generalization aspect of adversarially robustness. They show that the number of samples needed to achieve adversarially robust generalization is polynomially larger in the dimension than the number of samples needed to ensure standard generalization. However, in the limit of infinite data, one can learn classifiers that are both robust and accurate.
|
| 491 |
+
|
| 492 |
+
Gilmer et al. (2018) demonstrate a setting where even a small amount of standard error implies that most points provably have a misclassified point close to them. In this setting, achieving perfect standard accuracy (easily achieved by a simple classifier) is sufficient to achieve perfect adversarial robustness. In contrast, our work focuses on a setting where adversarial training (provably) matters and there exists a trade-off between standard and adversarial accuracy.
|
| 493 |
+
|
| 494 |
+
Xu & Mannor (2012) explore the connection between robustness and generalization, showing that, in a certain sense, robustness can imply generalization. This direction is orthogonal to our, since we work in the limit of infinite data, optimizing the distributional loss directly.
|
| 495 |
+
|
| 496 |
+
Fawzi et al. (2018a) prove lower bounds on the robustness of any classifier based on certain generative assumptions. Since these bounds apply to all classifiers, independent of architecture and training procedure, they fail to capture the situation we face in practice where robust optimization can significantly improve the adversarial robustness of standard classifiers (Madry et al., 2017; Kolter & Wong, 2017; Raghunathan et al., 2018; Sinha et al., 2017).
|
| 497 |
+
|
| 498 |
+
A recent work (Bubeck et al., 2018) turns out to (implicitly) rely on the distinction between robust and non-robust features in constructing a distribution for which adversarial robustness is hard from a different, computational point of view.
|
| 499 |
+
|
| 500 |
+
Goodfellow et al. (2014b) observed that adversarial training results in feature weights that depend on fewer input features (similar to Figure 5(a)). Additionally, it has been observed that for naturally trained RBF classifiers on MNIST, targeted adversarial attacks resemble images of the target class (Goodfellow, 2015).
|
| 501 |
+
|
| 502 |
+
Su et al. (2018) empirically observe a similar trade-off between the accuracy and robustness of standard models across different deep architectures on ImageNet.
|
| 503 |
+
|
| 504 |
+
Babbar & Schölkopf (2018) study an extreme multi-label problem and observe that for classes with relatively few examples, $\ell _ { 1 }$ -regularization (which corresponds to adversarial training for linear models) is helpful, while for classes with more samples, it is harmful to the model accuracy.
|
| 505 |
+
|
| 506 |
+
# G OMITTED FIGURES
|
| 507 |
+
|
| 508 |
+
Table 5: Comparison of performance of linear classifiers trained on a binary MNIST dataset with standard and adversarial training. The performance of both models is evaluated in terms of standard and adversarial accuracy. Adversarial accuracy refers to the percentage of examples that are correctly classified after being perturbed by the adversary. Here, we use an $\ell _ { \infty }$ threat model with $\varepsilon = 0 . 2 0$ (with images scaled to have coordinates in the range $[ 0 , 1 ] \rangle$ ).
|
| 509 |
+
|
| 510 |
+
<table><tr><td></td><td colspan="2">Standard Accuracy (%)</td><td colspan="2">Adversarial Accuracy (%)</td><td>|u|1</td></tr><tr><td></td><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td></td></tr><tr><td>Standard Training</td><td>98.38</td><td>92.10</td><td>13.69</td><td>14.95</td><td>41.08</td></tr><tr><td>Adversarial Training</td><td>94.05</td><td>70.05</td><td>76.05</td><td>74.65</td><td>13.69</td></tr></table>
|
| 511 |
+
|
| 512 |
+

|
| 513 |
+
Figure 6: Comparison of standard accuracies of models trained against an $\ell _ { \infty }$ -bounded adversary as a function of the size of the training dataset. We observe that in the low-data regime, adversarial training has an effect similar to data augmentation and helps with generalization in certain cases (particularly on MNIST). However, in the limit of sufficient training data, we see that the standard accuracy of robust models is less than that of the standard model $\mathbf { \bar { \varepsilon } } _ { t r a i n } = 0 ,$ ), which supports the theoretical analysis in Section 2.1.
|
| 514 |
+
|
| 515 |
+

|
| 516 |
+
Figure 7: Standard test accuracy of adversarially trained classifiers. The adversary used during training is constrained within some $\ell _ { p }$ -ball of radius $\varepsilon _ { \mathrm { t r a i n } }$ (details in Appendix A). We observe a consistent decrease in accuracy as the strength of the adversary increases.
|
| 517 |
+
|
| 518 |
+

|
| 519 |
+
Figure 8: Large- $\varepsilon$ adversarial examples, bounded in $\ell _ { \infty }$ -norm, similar to those in Figure 3.
|
| 520 |
+
|
| 521 |
+

|
| 522 |
+
Figure 9: Large- $\varepsilon$ adversarial examples, bounded in $\ell _ { 2 }$ -norm, similar to those in Figure 3.
|
| 523 |
+
|
| 524 |
+

|
| 525 |
+
|
| 526 |
+
# (c) Restricted ImageNet
|
| 527 |
+
|
| 528 |
+

|
| 529 |
+
Figure 10: Visualization of the gradient of the loss with respect to input features (pixels) for standard and adversarially trained networks for 10 randomly chosen samples, similar to those in Figure 2. Gradients are significantly more interpretable for adversarially trained networks – they align almost perfectly with perceptually relevant features. For MNIST, blue and red pixels denote positive and negative gradient regions respectively. For CIFAR10 and Restricted ImageNet we clip pixel to 3 standard deviations and scale to [0, 1].
|
parse/train/SyxAb30cY7/SyxAb30cY7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyxAb30cY7/SyxAb30cY7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyxAb30cY7/SyxAb30cY7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_X_4Akcd8Re/_X_4Akcd8Re.md
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING LONG-TERM VISUAL DYNAMICS WITH REGION PROPOSAL INTERACTION NETWORKS
|
| 2 |
+
|
| 3 |
+
Haozhi Qi UC Berkeley
|
| 4 |
+
|
| 5 |
+
Xiaolong Wang UC San Diego
|
| 6 |
+
|
| 7 |
+
Deepak Pathak CMU
|
| 8 |
+
|
| 9 |
+
Yi Ma UC Berkeley
|
| 10 |
+
|
| 11 |
+
Jitendra Malik UC Berkeley
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Learning long-term dynamics models is the key to understanding physical common sense. Most existing approaches on learning dynamics from visual input sidestep long-term predictions by resorting to rapid re-planning with short-term models. This not only requires such models to be super accurate but also limits them only to tasks where an agent can continuously obtain feedback and take action at each step until completion. In this paper, we aim to leverage the ideas from success stories in visual recognition tasks to build object representations that can capture inter-object and object-environment interactions over a long-range. To this end, we propose Region Proposal Interaction Networks (RPIN), which reason about each object’s trajectory in a latent region-proposal feature space. Thanks to the simple yet effective object representation, our approach outperforms prior methods by a significant margin both in terms of prediction quality and their ability to plan for downstream tasks, and also generalize well to novel environments. Code, pre-trained models, and more visualization results are available at our Website.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
As argued by Kenneth Craik, if an organism carries a model of external reality and its own possible actions within its head, it is able to react in a much fuller, safer and more competent manner to emergencies which face it (Craik, 1952). Indeed, building prediction models has been long studied in computer vision and intuitive physics. In computer vision, most approaches make predictions in pixel-space (Denton & Fergus, 2018; Lee et al., 2018; Ebert et al., 2018b; Jayaraman et al., 2019; Walker et al., 2016), which ends up capturing the optical flow (Walker et al., 2016) and is difficult to generalize to long-horizon. In intuitive physics, a common approach is to learn the dynamics directly in an abstracted state space of objects to capture Newtonian physics (Battaglia et al., 2016; Chang et al., 2016; Sanchez-Gonzalez et al., 2020). However, the states end up being detached from raw sensory perception. Unfortunately, these two extremes have barely been connected. In this paper, we argue for a middle-ground to treat images as a window into the world, i.e., objects exist but can only be accessed via images. Images are neither to be used for predicting pixels nor to be isolated from dynamics. We operationalize it by learning to extract a rich state representation directly from images and build dynamics models using the extracted state representations.
|
| 20 |
+
|
| 21 |
+
# It is difficult to make predictions, especially about the future — Niels Bohr
|
| 22 |
+
|
| 23 |
+
Contrary to Niels Bohr, predictions are, in fact, easy if made only for the short-term. Predictions that are indeed difficult to make and actually matter are the ones made over the long-term. Consider the example of “Three-cushion Billiards” in Figure 1. The goal is to hit the cue ball in such a way that it touches the other two balls and contacts the wall thrice before hitting the last ball. This task is extremely challenging even for human experts because the number of successful trajectories is very sparse. Do players perform classical Newtonian physics calculations to obtain the best action before each shot, or do they just memorize the solution by practicing through exponentially many configurations? Both extremes are not impossible, but often impractical. Players rather build a physical understanding by experience (McCloskey, 1983; Kubricht et al., 2017) and plan by making intuitive, yet accurate predictions in the long-term.
|
| 24 |
+
|
| 25 |
+
Learning such a long-term prediction model is arguably the “Achilles’ heel” of modern machine learning methods. Current approaches on learning physical dynamics of the world cleverly side-step the long-term dependency by re-planning at each step via model-predictive control (MPC) (Allgöwer & Zheng, 2012; Camacho & Alba, 2013). The common practice is to train short-term dynamical models (usually 1-step) in a simulator. However, small errors in short-term predictions can accumulate over time in MPC. Hence, in this work, we focus primarily on the long-term aspect of prediction by just considering environments, such as the three-cushion billiards example or the PHYRE (Bakhtin et al., 2019) in Figure 1, where an agent is allowed to take only one action in the beginning so as to preclude any scope of re-planning.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Two example of long-term dynamics prediction tasks. Left: three-cushion billiards. Right: PHYRE intuitive-physics dataset (Bakhtin et al., 2019). Our proposed approach makes accurate long-term predictions that do not necessarily align with the ground truth but provide strong signal for planning.
|
| 29 |
+
|
| 30 |
+
How to learn an accurate dynamics model has been a popular research topic for years. Recently, there are a series of work trying to represent video frames using object-centric representations (Battaglia et al., 2016; Watters et al., 2017; Chang et al., 2016; Janner et al., 2019; Ye et al., 2019; Kipf et al., 2020). However, those methods either operate in the state space, or ignore the environment information, both of which are not practical in real-world scenarios. In contrast, our objective is to build a data-driven prediction model that can both: (a) model long-term interactions over time to plan successfully for new instances, and (b) work from raw visual input in complex real-world environments. Therefore, the question we ask is: how to extract such an effective and flexible object representation and perform long-term predictions?
|
| 31 |
+
|
| 32 |
+
We propose Region Proposal Interaction Network (RPIN) which contains two key components. Firstly, we leverage the region of interests pooling (RoIPooling) operator (Girshick, 2015) to extract object features maps from the frame-level feature. Object feature extraction based on region proposals has achieved huge success in computer vision (Girshick, 2015; He et al., 2017; Dai et al., 2017; Gkioxari et al., 2019), and yet, surprisingly under-explored in the field of intuitive physics. By using RoIPooling, each object feature contains not only its own information but also the context of the environment. Secondly, we extend the Interaction Network and propose Convolutional Interaction Networks that perform interaction reasoning on the extracted RoI features. Interaction Networks is originally proposed in (Battaglia et al., 2016), where the interaction reasoning is conducted via MLPs. By changing MLPs to convolutions, we can effectively utilize the spatial information of an object and make accurate future prediction of object location and shapes changes.
|
| 33 |
+
|
| 34 |
+
Notably, our approach is simple, yet outperforms the state-of-the-art methods in both simulation and real datasets. In Section 5, we thoroughly evaluate our approach across four datasets to study scientific questions related to a) prediction quality, b) generalization to time horizons longer than training, c) generalization to unseen configurations, d) planning ability for downstream tasks. Our method reduces the prediction error by $7 5 \%$ in the complex PHYRE environment and achieves state-of-the-art performance on the PHYRE reasoning benchmark.
|
| 35 |
+
|
| 36 |
+
# 2 RELATED WORK
|
| 37 |
+
|
| 38 |
+
Physical Reasoning and Intuitive Physics. Learning models that can predict the changing dynamics of the scene is the key to building physical common-sense. Such models date back to “NeuroAnimator” (Grzeszczuk et al., 1998) for simulating articulated objects. Several methods in recent years have leveraged deep networks to build data-driven models of intuitive physics (Bhattacharyya et al., 2016; Ehrhardt et al., 2017; Fragkiadaki et al., 2015; Chang et al., 2016; Stewart & Ermon, 2017). However, these methods either require access to the underlying ground-truth state-space or do not scale to long-range due to absence of interaction reasoning. A more generic yet explicit approach has been to leverage graph neural networks (Scarselli et al., 2009) to capture interactions between entities in a scene (Battaglia et al., 2018; Chang et al., 2016). Closest to our approach are interaction models that scale to pixels and reason about object interaction (Watters et al., 2017; Ye et al., 2019). However, these approaches either reason about object crops with no context around or can only deal with a predetermined number and order of objects. A concurrent work (Girdhar et al., 2020) studies using prediction for physical reasoning, but their prediction model is either in the state space or in the pixel space.
|
| 39 |
+
|
| 40 |
+
Other common ways to measure physical understanding are to predict future judgments given a scene image, e.g., predicting the stability of a configuration (Groth et al., 2018; Jia et al., 2015; Lerer et al., 2016; Li et al., 2016a;b). Several hybrid methods take a data-driven approach to estimate Newtonian parameters from raw images (Brubaker et al., 2009; Wu et al., 2016; Bhat et al., 2002; Wu et al., 2015), or model Newtonian physics via latent variable to predict motion trajectory in images (Mottaghi et al., 2016a;b; Ye et al., 2018). An extreme example is to use an actual simulator to do inference over objects (Hamrick et al., 2011). The reliance on explicit Newtonian physics makes them infeasible on real-world data and un-instrumented settings. In contrast, we take into account the context around each object via RoIPooling and explicitly model their interaction with each other or with the environment without relying on Newtonian physics, and hence, easily scalable to real videos for long-range predictions.
|
| 41 |
+
|
| 42 |
+
Video Prediction. Instead of modeling physics from raw images, an alternative is to treat visual reasoning as an image translation problem. This approach has been adopted in the line of work that falls under video prediction. The most common theme is to leverage latent-variable models for predicting future (Lee et al., 2018; Denton & Fergus, 2018; Babaeizadeh et al., 2017). Predicting pixels is difficult so several methods leverage auxiliary information like back/fore-ground (Villegas et al., 2017a; Tulyakov et al., 2017; Vondrick et al., 2016), optical flow (Walker et al., 2016; Liu et al., 2017), appearance transformation (Jia et al., 2016; Finn et al., 2016; Chen et al., 2017; Xue et al., 2016), etc. These inductive biases help in a short interval but do not capture long-range behavior as needed in several scenarios, like playing billiards, due to lack of explicit reasoning. Some approaches can scale to relative longer term but are domain-specific, e.g., pre-defined human-pose space (Villegas et al., 2017b; Walker et al., 2017). However, our goal is to model long-term interactions not only for prediction but also to facilitate planning for downstream tasks.
|
| 43 |
+
|
| 44 |
+
Learning Dynamics Models. Unlike video prediction, dynamics models take actions into account for predicting the future, also known as forward models (Jordan & Rumelhart, 1992). Learning these forward dynamics models from images has recently become popular in robotics for both specific tasks (Wahlström et al., 2015; Agrawal et al., 2016; Oh et al., 2015; Finn et al., 2016) and exploration (Pathak et al., 2017; Burda et al., 2019). In contrast to these methods where a deep network directly predicts the whole outcome, we leverage our proposed region-proposal interaction module to capture each object trajectories explicitly to learn long-range forward dynamics as well as video prediction models.
|
| 45 |
+
|
| 46 |
+
Planning via Learned Models. Leveraging models to plan is the standard approach in control for obtaining task-specific behavior. Common approach is to re-plan after each action via Model Predictive Control (Allgöwer & Zheng, 2012; Camacho & Alba, 2013; Deisenroth & Rasmussen, 2011). Scaling the models and planning in a high dimensional space is a challenging problem. With deep learning, several approaches shown promising results on real-world robotic tasks (Finn et al., 2016; Finn & Levine, 2017; Agrawal et al., 2016; Pathak et al., 2018). However, the horizon of these approaches is still very short, and replanning in long-term drifts away in practice. Some methods try to alleviate this issue via object modeling (Janner et al., 2019; Li et al., 2019) or skip connections (Ebert et al., 2018a) but assume the models are trained with state-action pairs. In contrast to prior works where a short-range dynamic model is unrolled in time, we learn our long-range models from passive data and then couple them with short-range forward models to infer actions during planning.
|
| 47 |
+
|
| 48 |
+
# 3 REGION PROPOSAL INTERACTION NETWORKS
|
| 49 |
+
|
| 50 |
+
Our model takes $N$ video frames and the corresponding object bounding boxes as inputs, and outputs the objects’ bounding boxes and masks for the future $T$ timesteps. The overall model structure is illustrated in Figure 2.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Our Region Proposal Interaction Network. Given $N$ frames as inputs, we forward them to an encoder network, and then extract the foreground object features with RoIPooling (different colors represent different instances). We then perform interaction reasoning on top of the region proposal features (gray box on the bottom right). We predict each future object feature based on the previous $k$ time steps. We then estimate the object location from each object feature.
|
| 54 |
+
|
| 55 |
+
For each frame, we first extract the image features using a ConvNet. Then we apply RoIPooling (Girshick, 2015; He et al., 2017) to obtain the object-centric visual features. These features are then forwarded to our Convolutional Interaction Networks (CIN) to perform objects’ interaction reasoning and used to predict future object bounding boxes and masks. The whole pipeline is trained end-to-end by minimizing the loss between the predicted outputs and the ground-truth.
|
| 56 |
+
|
| 57 |
+
# 3.1 OBJECT-CENTRIC REPRESENTATION
|
| 58 |
+
|
| 59 |
+
We apply the houglass network (Newell et al., 2016) to extract the image features. Given an input RGB image $I \in \breve { \mathbb { R } } ^ { 3 \times H \times W }$ , the hourglass network firstly downsample the input via one 2-strided convolution and 2-strided max pooling layers, and then refine the representation by a U-Net-like encoder-decoder modules (Ronneberger et al., 2015). The hourglass network provides features with a large receptive field and a fine spatial resolution (4 times smaller than the input image), both of which are crucial to accurately model object-object and object-environment interactions. We denote the number of output channels of the feature map as $d$ .
|
| 60 |
+
|
| 61 |
+
On top of this feature map, we use RoIPooling (Girshick, 2015) to extract a $d \times h \times w$ objectcentric features. RoIPooling takes the feature map and a object bounding box as input. The region corresponding to the bounding box on the feature map is cropped and resize to a fixed spatial size (denoted as $h \times w$ ). We use $\boldsymbol { x } _ { i } ^ { t }$ to represent the feature at $t$ -th timestep for the $i$ -th object. Such feature representation differs from previous method in two perspectives: 1) It is extracted from image features with a large receptive field, which gives plenty of context information around the object. 2) The feature representation is a 3-dimensional feature map rather than a single vector representation. It can represent the objects’ shapes while the vector representation cannot because the spatial dimension is flattened.
|
| 62 |
+
|
| 63 |
+
# 3.2 CONVOLUTIONAL INTERACTION NETWORKS
|
| 64 |
+
|
| 65 |
+
To better utilize the spatial information of our object feature map, we propose Convolutional Interaction Networks, an extension of Interaction Network operators on 3-dimensional tensors. In this section, we first briefly review the original Interaction Network (IN) (Battaglia et al., 2016; Watters et al., 2017) and introduce the proposed Convolutional Interaction Networks (CIN).
|
| 66 |
+
|
| 67 |
+
The original interaction network is a general-purpose data-driven method to model and predict physical dynamics. It takes the feature vectors of $m$ objects at timestep $t$ : $X = \{ x _ { 1 } ^ { t } , x _ { 2 } ^ { t } , . . . , x _ { m } ^ { \hat { t } } \mid x _ { i } ^ { t } \in \bar { \mathbb { R } } ^ { d } \}$ and performs object reasoning $f _ { O }$ as well as relational reasoning $f _ { R }$ on these features. Specifically, the updated rule of object features can be described as:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\begin{array} { r l } & { e _ { i } ^ { t } = f _ { A } \big ( f _ { O } ( x _ { i } ^ { t } ) + \sum _ { j \neq i } f _ { R } ( x _ { i } ^ { t } , x _ { j } ^ { t } ) \big ) , } \\ & { z _ { i } ^ { t } = f _ { Z } ( x _ { i } ^ { t } , e _ { i } ^ { t } ) , } \\ & { x _ { i } ^ { t + 1 } = f _ { P } \big ( z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , \dots , z _ { i } ^ { t - k } \big ) . } \end{array}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
In the above equation, $f _ { A }$ is the function to calculate the effect of both of object reasoning and relational reasoning results. And $f _ { Z }$ is used to combine the original object state and the reasoning effect. Finally, $f _ { P }$ is used to do future state predictions based on one or more previous object states. In IN, $f _ { O , R , A , Z , P }$ are instantiated by a fully-connected layer with learnable weights.
|
| 74 |
+
|
| 75 |
+
Convolutional Interaction Networks. The input of CIN is $m$ object feature maps at timestep $t$ : $X = \{ x _ { 1 } ^ { t } , x _ { 2 } ^ { t } , . . . , x _ { m } ^ { t } | x _ { i } ^ { t } \in \mathbb { R } ^ { d \times h \times w } \}$ . The high-level update rule is the same as IN, but the key difference is that we use convolution to instantiate $f _ { O , R , A , Z , P }$ . Such instantiation is crucial to utilize the spatial information encoded in our object feature map and to effectively reason future object states. Specifically, we have
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { c c } { f _ { R } ( x _ { i } ^ { t } , x _ { j } ^ { t } ) = W _ { R } * [ x _ { i } ^ { t } , x _ { j } ^ { t } ] } & { f _ { O } ( x _ { i } ^ { t } ) = W _ { O } * x _ { i } ^ { t } } \\ { f _ { A } ( x _ { i } ^ { t } ) = W _ { A } ^ { T } * x _ { i } ^ { t } } & { f _ { Z } ( x _ { i } ^ { t } , e _ { i } ^ { t } ) = W _ { Z } * [ x _ { i } ^ { t } , e _ { i } ^ { t } ] } \\ { f _ { P } ( z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , . . . , z _ { i } ^ { t - k } ) = W _ { P } * [ z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , . . . , z _ { i } ^ { t - k } ] } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
One can plug the functions in Equation 1 for better understanding the operations. In the above equations, $^ *$ denotes the convolution operator, and $[ \cdot , \cdot ]$ denotes concatenation along the channel dimension. $W _ { R } , W _ { Z } \in \mathbb { R } ^ { d \times 2 d \times 3 \times 3 }$ , $W _ { O } , W _ { A } \in \mathbb { R } ^ { d \times d \times 3 \times 3 }$ , $W _ { P } \in \mathbb { R } ^ { d \times ( k d ) \times 3 \times 3 }$ are learnable weights of the convolution kernels with kernel size $3 \times 3$ . We also add ReLU activation after each of the convolutional operators.
|
| 82 |
+
|
| 83 |
+
# 3.3 LEARNING REGION PROPOSAL INTERACTION NETWORKS (RPIN)
|
| 84 |
+
|
| 85 |
+
Our model predicts the future bounding box and (optionally) masks of each object. Given the predicted feature $\boldsymbol { x } _ { i } ^ { t + 1 }$ , we use a simple two layer MLP decoder to estimate its bounding boxes coordinates and masks. The bounding box decoder takes a flattened object feature map as input. It firstly projects it to $d$ dimensional vector, and outputs 4-d vector, representing the center location and size of the box. The mask decoder is of the same architecture but has $2 1 \times 2 1$ output channels, representing a $2 1 \times 2 1$ binary masks inside the corresponding bounding boxes. We use the $\ell ^ { 2 }$ loss for bounding box predictions. For mask prediction, we use spatial cross-entropy loss which sums the cross-entropy values of a $2 1 \times 2 1$ predicted positions. The objective can be written as:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
L _ { p } = \sum _ { t = 1 } ^ { T } \lambda _ { t } \sum _ { i = 1 } ^ { n } \Big ( \| \hat { B } _ { i } ^ { t + 1 } - B _ { i } ^ { t + 1 } \| _ { 2 } ^ { 2 } + C E ( \hat { M } _ { i } ^ { t + 1 } , M _ { i } ^ { t + 1 } ) \Big ) .
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
We use discounted loss during training (Watters et al., 2017) to mitigate the effect of inaccurate prediction at early training stage and $\lambda _ { t }$ is the discounted factor.
|
| 92 |
+
|
| 93 |
+
# 4 EXPERIMENTAL SETUP
|
| 94 |
+
|
| 95 |
+
Datasets. We evaluate our method’s prediction performance on four different datasets, and demonstrate the ability to perform downstream physical reasoning and planning tasks on two of them. We briefly introduce the four datasets below. The full dataset details are in the appendix.
|
| 96 |
+
|
| 97 |
+
PHYRE: We use the BALL-tier of the PHYRE benchmark (Bakhtin et al., 2019). In this dataset, we set $T = 5$ . We treat all of the moving balls or jars as objects and other static bodies as background. The benchmark provides two evaluation settings: 1) within task generalization (PHYRE-W), where the testing environments contain the same object category but different sizes and positions; 2) cross task generalization (PHYRE-C), where environments containing objects and context never present during training. We report prediction using the official fold 0 and the physical reasoning performance averaged on 10 folds.
|
| 98 |
+
|
| 99 |
+
ShapeStacks (SS): This dataset contains multiple stacked objects (cubes, cylinders, or balls) (Ye et al., 2019). In this dataset, we set $T = 1 5$ . We evaluate all baselines and our methods follow the protocol of (Ye et al., 2019) with uncertainty estimation incorporated (see Appendix for detail).
|
| 100 |
+
|
| 101 |
+
Real World Billiards (RealB): We collect “Three-cushion Billiards” videos from professional games with different viewpoints downloaded from YouTube. There are 62 training videos with 18, 306 frames, and 5 testing videos with 1, 995 frames. The bounding box annotations are from an offthe-shelf ResNet-101 FPN detector (Lin et al., 2017) pretrained on COCO (Lin et al., 2014) and fine-tuned on a subset of 30 images from our dataset. We manually filtered out wrong detections. In this dataset, we set $T = 2 0$ .
|
| 102 |
+
|
| 103 |
+
Simulation Billiards (SimB): We create a simulated billiard environment with three different colored balls with a radius 2 are randomly placed in a $6 4 \times 6 4$ image. At starting point, one ball is moving with a randomly sampled velocity. We generate 1,000 video sequences for training and 1,000 video sequences for testing, with 100 frames per sequence. We will also evaluate the ability to generalize to more balls and different sized balls in the experiment section. In this dataset, we set $T = 2 0$ .
|
| 104 |
+
|
| 105 |
+
For PHYRE and SS, it is possible to infer the future from just the initial configuration. So we set $N = 1$ in these two datasets. For SimB and RealB, the objects are moving in a flat table so we cannot infer the future trajectories based on a single image. Therefore in this setting, we set $N = 4$ to infer the velocity/acceleration of objects. We set $k = N$ in all the dataset because we only have access to $N$ features when we make prediction at $t = N + 1$ . We predict object masks for PHYRE and ShapeStacks, and only predict bounding boxes for Billiard datasets.
|
| 106 |
+
|
| 107 |
+
Baselines. There are a large amount of work studying how to estimate objects’ states and predict their dynamics from raw image inputs. They fall into the following categories:
|
| 108 |
+
|
| 109 |
+
VIN: Instead of using object-centric spatial pooling to extract object features, it use a ConvNet to globally encode an image to a fixed $d \times m$ dimensional vector. Different channels of the vector is assigned to different objects (Kipf et al., 2020; Watters et al., 2017). This approach requires specifying a fixed number of objects and a fixed mapping between feature channels and object identity, which make it impossible to generalize to different number of objects and different appearances.
|
| 110 |
+
|
| 111 |
+
Object Masking (OM): This approach takes one image and $m$ object bounding boxes or masks as input (Wu et al., 2017; Veerapaneni et al., 2019; Janner et al., 2019). For each proposal, only the pixels inside object proposals are kept while others are set to 0, leading to $m$ masked images. This approach assumes no background information is needed thus fails to predict accurate trajectories in complex environments such as PHYRE. And it also cost $m$ times computational resources.
|
| 112 |
+
|
| 113 |
+
CVP: The object feature is extracted by cropping the object image patch and forwarding it to an encoder (Ye et al., 2019; Yi et al., 2020). Since the object features are directly extracted from the raw image patches, the context information is also ignored. We re-implement CVP’s feature extraction method within our framework. We show we can reproduce their results in Section A.2.
|
| 114 |
+
|
| 115 |
+
5 EVALUATION RESULTS: PREDICTION, GENERALIZATION, AND PLANNING
|
| 116 |
+
|
| 117 |
+
We organize this section and analyze our results by discussing four scientific questions related to the prediction quality, generalization ability across time & environment configurations, and the ability to plan actions for downstream tasks.
|
| 118 |
+
|
| 119 |
+
# 5.1 HOW ACCURATE IS THE PREDICTED DYNAMICS?
|
| 120 |
+
|
| 121 |
+
To evaluate how well the world dynamics is modeled, we first report the average prediction errors on the test split, over the same time-horizon as which model is trained on, i.e., $t \in [ 0 , T _ { \mathrm { t r a i n } } ]$ . The prediction error is calculated by the squared $\ell _ { 2 }$ distance between predicted object center location and the ground-truth object centers. The results are shown in Table 1 (left half).
|
| 122 |
+
|
| 123 |
+
Firstly, we show the effectiveness of our proposed RoI Feature by comparing Table 1 VIN, OM, CVP, and Ours (IN). These four entries use the same backbone network and interaction network modules and only visual encoder is changed. Among them, VIN cannot even be trained on PHYRE-W since it cannot handle varying number of objects. The OM method performs slightly better than other baselines since it also explicitly models objects by instance masking. For CVP, it cannot produce reasonable results on all of the datasets except on the SS dataset. The reason is that in PHYRE and billiard environments, cropped images are unaware of environment information and the relative position and pose of different objects, making it impossible to make accurate predictions. In SS, since the object size is large and objects are very close to each other, the cropped image regions already provide enough context. In contrast, our RoI Feature can implicitly encode the context and environment information and it performs much better than all baselines. In the very challenging PHYRE dataset, the prediction error is only $1 / 4$ of the best baseline. In the other three easier datasets, the gap is not as large since the environment is less complicated, but our method still achieves
|
| 124 |
+
|
| 125 |
+
Table 1: We compare our method with different baselines on all four datasets. The left part shows the prediction error when rollout timesteps is the same as training time. The right part shows the generalization ability to longer horizon unseen during training. The error is scaled by 1,000. Our method has significantly improvements on all of the datasets
|
| 126 |
+
|
| 127 |
+
<table><tr><td rowspan="2">method</td><td rowspan="2">visual encoder</td><td colspan="3">t ∈ [0,Ttrain]</td><td rowspan="2"></td><td colspan="3">t ∈[Ttrain,2 × Ttrain]</td></tr><tr><td>PHYRE-W</td><td>sS RealB</td><td>SimB</td><td>PHYRE-W ss</td><td>RealB</td><td>SimB</td></tr><tr><td>VIN</td><td>Global Encoding</td><td>N.A.</td><td>2.47</td><td>1.02</td><td>3.89</td><td>N.A.</td><td>7.77 5.11</td><td>29.51</td></tr><tr><td>OM</td><td>Masked Image</td><td>6.45</td><td>3.01</td><td>0.59 3.48</td><td>25.72</td><td>9.51</td><td>3.23</td><td>28.87</td></tr><tr><td>CVP</td><td>Cropped Image</td><td>60.12</td><td>2.84</td><td>3.57</td><td>80.01</td><td>79.11 7.72</td><td>6.63</td><td>108.56</td></tr><tr><td>Ours (IN)</td><td>RoI Feature</td><td>1.50</td><td>1.85</td><td>0.37</td><td>3.01</td><td>12.45 4.89</td><td>2.72</td><td>27.88</td></tr><tr><td>Ours (CIN)</td><td>RoI Feature</td><td>1.31</td><td>1.03</td><td>0.30</td><td>2.55</td><td>11.10 4.73</td><td>2.34</td><td>25.77</td></tr></table>
|
| 128 |
+
|
| 129 |
+
<table><tr><td>method</td><td>visual encoder</td><td>PHYRE-C SS-4 SimB-5</td></tr><tr><td>VIN</td><td>Global Encoding</td><td>N.A. N.A. N.A.</td></tr><tr><td>OM</td><td>Masked Image</td><td>50.28 17.02 59.70</td></tr><tr><td>CVP</td><td>Cropped Image</td><td>99.26 16.88 113.39</td></tr><tr><td>Ours (IN)</td><td>RoI Feature</td><td>10.98 15.02 24.42</td></tr><tr><td>Ours (CIN)</td><td>RoI Feature</td><td>9.22 14.61 22.38</td></tr></table>
|
| 130 |
+
|
| 131 |
+
Table 2: The ability to generalize to novel environments. We show the average prediction error for $t \in [ 0 , 2 \times T _ { \mathrm { t r a i n } } ]$ . Our method achieves significantly better results compared to previous methods. The error is scaled by 1,000. Our method generalizes much better than other baselines.
|
| 132 |
+
|
| 133 |
+
more than $10 \%$ improvements. These results clearly demonstrates the advantage of using rich state representations.
|
| 134 |
+
|
| 135 |
+
Secondly, we show that the effectiveness of our proposed Convolutional Interaction Network by comparing Table 1 Ours (IN) and Ours (CIN). With every other components the same, changing the vector-form representation to spatial feature maps and use convolution to model the interactions can further improve the performance by $10 \% { \sim } 4 0 \%$ . This result shows our convolutional interaction network could better utilize the spatial information encoded in the object feature map.
|
| 136 |
+
|
| 137 |
+
# 5.2 DOES LEARNED MODEL GENERALIZE TO LONGER HORIZON THAN TRAINING?
|
| 138 |
+
|
| 139 |
+
Generalize to longer horizons is a challenging task. In this section we compare the performance of predicting trajectories longer than training time. In Table 1 (right half), we report the prediction error for $t \in [ \bar { T } _ { \mathrm { t r a i n } } , 2 \times T _ { \mathrm { t r a i n } } ]$ . The results in this setting are consistent with what we found in Section 5.1. Our method still achieves the best performance against all baselines. Specifically, for all datasets except SimB, we reduce the error by more than $30 \%$ percent. In SimB, the improvement is not as significant because the interaction with environment only includes bouncing off the boundaries (see Figure 4 (c) and (d)). Meanwhile, changing IN to CIN further improve the performance. This again validates our hypothesis that the key to making accurate long-term feature prediction is the rich state representation extracted from an image.
|
| 140 |
+
|
| 141 |
+
# 5.3 DOES LEARNED MODEL GENERALIZE TO UNSEEN CONFIGURATIONS?
|
| 142 |
+
|
| 143 |
+
The general applicability of RoI Feature has been extensively verified in the computer vision community. As one of the benefits, our method can generalize to novel environments configurations without any modifications or online training. We test such a claim by testing on several novel environments unseen during training. Specifically, we construct 1) simulation billiard dataset contains 5 balls with radius 2 (SimB-5); 2) PHYRE-C where the test tasks are not seen during training; 3) ShapeStacks with 4 stacked blocks (SS-4). The results are shown in Table 2.
|
| 144 |
+
|
| 145 |
+
Since VIN needs a fixed number of objects as input, it cannot generalize to a different number of objects, thus we don’t report its performance on SimB-5, PHYRE-C, and SS-4. In the SimB-5 and PHYRE-C setting, where generalization ability to different numbers and different appearances is required, our method reduce the prediction error by $7 5 \%$ . In SS-4, the improvement is not as significant as the previous two because cropped image may be enough on this simpler dataset as mentioned above.
|
| 146 |
+
|
| 147 |
+
Table 3: PHYRE Planning results. RAND stands for a score function with random policy. We show that our method achieves state-ofthe-art on both within-task generalization as well as cross-task generalization.
|
| 148 |
+
|
| 149 |
+
<table><tr><td></td><td>Within</td><td>Cross</td></tr><tr><td>RAND</td><td>13.7±0.5</td><td>13.0±5.0</td></tr><tr><td>DQN</td><td>77.6±1.1</td><td>36.8±9.7</td></tr><tr><td>Ours</td><td>85.2±0.7</td><td>42.2±7.1</td></tr></table>
|
| 150 |
+
|
| 151 |
+
Table 4: Simulation Billiards planning results. To make a fair comparison, all of baselines and our methods are using the original interaction network and only the visual encoding method is changing. RAND stands for a policy taking random actions.
|
| 152 |
+
|
| 153 |
+
<table><tr><td></td><td>Target State Error</td><td>Hitting Accuracy</td></tr><tr><td>RAND</td><td>36.91</td><td>9.50%</td></tr><tr><td>CVP</td><td>29.84</td><td>20.3%</td></tr><tr><td>VIN</td><td>9.11</td><td>51.2%</td></tr><tr><td>OM</td><td>8.75</td><td>54.5%</td></tr><tr><td>Ours</td><td>7.62</td><td>57.2%</td></tr></table>
|
| 154 |
+
|
| 155 |
+
# 5.4 HOW WELL CAN THE LEARNED MODEL BE USED FOR PLANNING ACTIONS?
|
| 156 |
+
|
| 157 |
+
The advantage of using a general purpose task-agnostic prediction model is that it can help us do downstream planning and reasoning tasks. In this section, we evaluate our prediction model in the recently proposed challenging PHYRE benchmark (Bakhtin et al., 2019) and simulation billiards planning tasks.
|
| 158 |
+
|
| 159 |
+
PHYRE. We use the B-tier of the environment. In this task, we need to place one red ball at a certain location such that the green ball touches another blue/purple object (see figure 1 right for an example). Bakhtin et al. (2019) trains a classification network whose inputs are the first image and a candidate action, and outputs whether the action leads to success. Such a method does not utilize the dynamics information. In contrast, we can train a classifier on top of the predicted objects’ features so that it can utilize dynamics information and makes more accurate classification.
|
| 160 |
+
|
| 161 |
+
During training, we use the same prediction model as described in previous sections except for $T _ { \mathrm { t r a i n } } = 1 0$ , and then attach an extra classifier on the objects’ features. Specifically, we concatenate each object’s features at the 0th, 3rd, 6th, and 9th timestep and then pass it through two fullyconnected layers to get a feature trajectory for each object. Then we take the average of all the objects’ features and pass it through one fully-connected layer to get a score indicating whether this placement solve the task. We minimize the cross-entropy loss between the score and the ground-truth label indicating whether the action is a success. Note that different from previous work (Bakhtin et al., 2019; Girdhar et al., 2020), our model does not need to convert the input image to the 7-channel segmentation map since object information is already utilized by our object-centric representation. During testing, We enumerate the first 10,000 actions from the pre-computed action set in Bakhtin et al. (2019) and render the red ball on the initial image as our prediction model’s input. Our final output is an sorted action list according to the model’s output score.
|
| 162 |
+
|
| 163 |
+
We report the AUCCESS metric on the official 10 folds of train/test splits for both within-task generalization and cross-task generalization setting. The results are in Table 3. Our method achieves about 8 points improvement over the strong DQN baseline (Bakhtin et al., 2019) in the withintask generalization setting. On the more challenging setting of cross-task generalization where the environments may not be seen during training, our method is 6 points higher than DQN.
|
| 164 |
+
|
| 165 |
+
SimB Planning. We consider two tasks in the SimB environment: 1) Billiard Target State. Given an initial and final configuration after 40 timesteps, the goal is to find one action that will lead to the target configuration. We report the smallest distances between the trajectory between timestep 35-45 and the final position. 2) Billiard Hitting. Given the initial configurations, the goal is to find an action that can hit the other two balls within 50 timesteps.
|
| 166 |
+
|
| 167 |
+
We firstly train a forward model taken image and action as input, to predict the first 4 object positions and render it to image. After that the rendered images are passed in our prediction model. We score each action according to the similarity between the generated trajectory and the goal state. Then the action with the highest score is selected. The results are shown in Table 4. Our results achieves best performance on all tasks. The full planning algorithm and implementation details are included in the appendix.
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 3: We show the qualitative comparisons between our method and other baselines in the PHYRE benchmark. Our model can accurately infer objects’ interactions and collisions with the environment over a long-range (10s), while the baseline methods cannot (the balls sometimes penetrates other objects). In this visualization, only the moving objects’ location and masks are predicted (the color is taken from the simulator). Static environment parts (with black color) are rendered from the initial image.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 4: We show the qualitative results of our predicted trajectories in the other three (RealB, SimB, and SS) datasets. Our model could produce accurate and plausible predictions on different scenarios.
|
| 174 |
+
|
| 175 |
+
# 5.5 QUALITATIVE RESULTS
|
| 176 |
+
|
| 177 |
+
In figure 3, we show the qualitative prediction results both for our method as well as the OM and CVP baselines. In figure 4, we compare our prediction and ground-truth on the other three datasets. More results and videos are available at our Website.
|
| 178 |
+
|
| 179 |
+
# 6 CONCLUSIONS
|
| 180 |
+
|
| 181 |
+
In this paper, we leverage the modern computer vision techniques to propose Region Proposal Interaction Networks for physical interaction reasoning with visual inputs. We show that our general, yet simple method achieves a significant improvement and can generalize across both simulation and real-world environments for long-range prediction and planning. We believe this method may serve as a good benchmark for developing future methods in the field of learning intuitive physics, as well as their application to real-world robotics.
|
| 182 |
+
|
| 183 |
+
# ACKNOWLEDGEMENT
|
| 184 |
+
|
| 185 |
+
This work is supported in part by DARPA MCS and DARPA LwLL. We would like to thank the members of BAIR for fruitful discussions and comments.
|
| 186 |
+
|
| 187 |
+
REFERENCES
|
| 188 |
+
Pulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In NeurIPS, 2016. 3
|
| 189 |
+
Frank Allgöwer and Alex Zheng. Nonlinear model predictive control. Birkhäuser, 2012. 1, 3
|
| 190 |
+
Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. ICLR, 2017. 3
|
| 191 |
+
Anton Bakhtin, Laurens van der Maaten, Justin Johnson, Laura Gustafson, and Ross Girshick. Phyre: A new benchmark for physical reasoning. In NeurIPS, 2019. 2, 5, 8, 15, 16
|
| 192 |
+
Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In NeurIPS, 2016. 1, 2, 4
|
| 193 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv, 2018. 3
|
| 194 |
+
Kiran S Bhat, Steven M Seitz, Jovan Popovic, and Pradeep K Khosla. Computing the physical ´ parameters of rigid-body motion from video. In ECCV, 2002. 3
|
| 195 |
+
Apratim Bhattacharyya, Mateusz Malinowski, Bernt Schiele, and Mario Fritz. Long-term image boundary extrapolation. arXiv, 2016. 2
|
| 196 |
+
Marcus A Brubaker, Leonid Sigal, and David J Fleet. Estimating contact dynamics. In ICCV. IEEE, 2009. 3
|
| 197 |
+
Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A. Efros. Large-scale study of curiosity-driven learning. In ICLR, 2019. 3
|
| 198 |
+
Eduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer Science & Business Media, 2013. 1, 3
|
| 199 |
+
Michael B Chang, Tomer Ullman, Antonio Torralba, and Joshua B Tenenbaum. A compositional object-based approach to learning physical dynamics. ICLR, 2016. 1, 2, 3
|
| 200 |
+
Baoyang Chen, Wenmin Wang, and Jinzhuo Wang. Video imagination from a single image with transformation generation. In ACMMM Workshop, 2017. 3
|
| 201 |
+
Kenneth James Williams Craik. The nature of explanation. CUP Archive, 1952. 1
|
| 202 |
+
Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 2
|
| 203 |
+
Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In ICML, 2011. 3
|
| 204 |
+
Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In ICML, 2018. 1, 3
|
| 205 |
+
Frederik Ebert, Sudeep Dasari, Alex X Lee, Sergey Levine, and Chelsea Finn. Robustness via retrying: Closed-loop robotic manipulation with self-supervised learning. arXiv, 2018a. 3
|
| 206 |
+
Frederik Ebert, Chelsea Finn, Sudeep Dasari, Annie Xie, Alex Lee, and Sergey Levine. Visual foresight: Model-based deep reinforcement learning for vision-based robotic control. arXiv, 2018b. 1
|
| 207 |
+
|
| 208 |
+
Sebastien Ehrhardt, Aron Monszpart, Niloy J Mitra, and Andrea Vedaldi. Learning a physical long-term predictor. arXiv, 2017. 2
|
| 209 |
+
|
| 210 |
+
Chelsea Finn and Sergey Levine. Deep visual foresight for planning robot motion. In ICRA, 2017. 3
|
| 211 |
+
|
| 212 |
+
Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In NeurIPS, 2016. 3
|
| 213 |
+
|
| 214 |
+
Katerina Fragkiadaki, Pulkit Agrawal, Sergey Levine, and Jitendra Malik. Learning visual predictive models of physics for playing billiards. ICLR, 2015. 2, 15
|
| 215 |
+
|
| 216 |
+
Rohit Girdhar, Laura Gustafson, Aaron Adcock, and Laurens van der Maaten. Forward prediction for physical reasoning. arXiv, 2020. 3, 8
|
| 217 |
+
|
| 218 |
+
Ross Girshick. Fast R-CNN. In ICCV, 2015. 2, 4
|
| 219 |
+
|
| 220 |
+
Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh R-CNN. In ICCV, 2019. 2
|
| 221 |
+
|
| 222 |
+
Oliver Groth, Fabian Fuchs, Ingmar Posner, and Andrea Vedaldi. Shapestacks: Learning vision-based physical intuition for generalised object stacking. In ECCV, 2018. 3
|
| 223 |
+
|
| 224 |
+
Radek Grzeszczuk, Demetri Terzopoulos, and Geoffrey Hinton. Neuroanimator: Fast neural network emulation and control of physics-based models. In SIGGRAPH, 1998. 2
|
| 225 |
+
|
| 226 |
+
Jessica Hamrick, Peter Battaglia, and Joshua B Tenenbaum. Internal physics models guide probabilistic judgments about object dynamics. In COGSCI, 2011. 3
|
| 227 |
+
|
| 228 |
+
Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask R-CNN. In ICCV, 2017. 2, 4
|
| 229 |
+
|
| 230 |
+
Michael Janner, Sergey Levine, William T Freeman, Joshua B Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-oriented prediction and planning. ICLR, 2019. 2, 3, 6
|
| 231 |
+
|
| 232 |
+
Dinesh Jayaraman, Frederik Ebert, Alexei A Efros, and Sergey Levine. Time-agnostic prediction: Predicting predictable video frames. In ICLR, 2019. 1
|
| 233 |
+
|
| 234 |
+
Xu Jia, Bert De Brabandere, Tinne Tuytelaars, and Luc V Gool. Dynamic filter networks. In NeurIPS, 2016. 3
|
| 235 |
+
|
| 236 |
+
Zhaoyin Jia, Andrew C Gallagher, Ashutosh Saxena, and Tsuhan Chen. 3d reasoning from blocks to stability. PAMI, 2015. 3
|
| 237 |
+
|
| 238 |
+
Michael I Jordan and David E Rumelhart. Forward models: Supervised learning with a distal teacher. Cognitive science, 1992. 3
|
| 239 |
+
|
| 240 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv, 2014. 15
|
| 241 |
+
|
| 242 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. ICLR, 2014. 14
|
| 243 |
+
|
| 244 |
+
Thomas Kipf, Elise van der Pol, and Max Welling. Contrastive learning of structured world models. ICLR, 2020. 2, 6
|
| 245 |
+
|
| 246 |
+
James R Kubricht, Keith J Holyoak, and Hongjing Lu. Intuitive physics: Current research and controversies. Trends in cognitive sciences, 2017. 1
|
| 247 |
+
|
| 248 |
+
Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv, 2018. 1, 3
|
| 249 |
+
|
| 250 |
+
Adam Lerer, Sam Gross, and Rob Fergus. Learning physical intuition of block towers by example. In ICML, 2016. 3
|
| 251 |
+
|
| 252 |
+
Wenbin Li, Seyedmajid Azimi, Aleš Leonardis, and Mario Fritz. To fall or not to fall: A visual approach to physical stability prediction. arXiv, 2016a. 3
|
| 253 |
+
|
| 254 |
+
Wenbin Li, Aleš Leonardis, and Mario Fritz. Visual stability prediction and its application to manipulation. AAAI, 2016b. 3
|
| 255 |
+
|
| 256 |
+
Yunzhu Li, Jiajun Wu, Jun-Yan Zhu, Joshua B Tenenbaum, Antonio Torralba, and Russ Tedrake. Propagation networks for model-based control under partial observation. In ICRA, 2019. 3
|
| 257 |
+
|
| 258 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 5
|
| 259 |
+
|
| 260 |
+
Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 5
|
| 261 |
+
|
| 262 |
+
Ziwei Liu, Raymond A Yeh, Xiaoou Tang, Yiming Liu, and Aseem Agarwala. Video frame synthesis using deep voxel flow. In ICCV, 2017. 3
|
| 263 |
+
|
| 264 |
+
Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv, 2016. 15
|
| 265 |
+
|
| 266 |
+
Michael McCloskey. Intuitive physics. Scientific american, 1983. 1
|
| 267 |
+
|
| 268 |
+
Roozbeh Mottaghi, Hessam Bagherinezhad, Mohammad Rastegari, and Ali Farhadi. Newtonian scene understanding: Unfolding the dynamics of objects in static images. In CVPR, 2016a. 3
|
| 269 |
+
|
| 270 |
+
Roozbeh Mottaghi, Mohammad Rastegari, Abhinav Gupta, and Ali Farhadi. “what happens if...” learning to predict the effect of forces in images. In ECCV, 2016b. 3
|
| 271 |
+
|
| 272 |
+
Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 4, 14
|
| 273 |
+
|
| 274 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NeurIPS, 2015. 3
|
| 275 |
+
|
| 276 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. ICML, 2017. 3
|
| 277 |
+
|
| 278 |
+
Deepak Pathak, Parsa Mahmoudieh, Guanghao Luo, Pulkit Agrawal, Dian Chen, Yide Shentu, Evan Shelhamer, Jitendra Malik, Alexei A Efros, and Trevor Darrell. Zero-shot visual imitation. In ICLR, 2018. 3
|
| 279 |
+
|
| 280 |
+
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 4
|
| 281 |
+
|
| 282 |
+
Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter W Battaglia. Learning to simulate complex physics with graph networks. arXiv, 2020. 1
|
| 283 |
+
|
| 284 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Network, 2009. 3
|
| 285 |
+
|
| 286 |
+
Russell Stewart and Stefano Ermon. Label-free supervision of neural networks with physics and domain knowledge. In AAAI, 2017. 2
|
| 287 |
+
|
| 288 |
+
Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. CVPR, 2017. 3
|
| 289 |
+
|
| 290 |
+
Rishi Veerapaneni, John D Co-Reyes, Michael Chang, Michael Janner, Chelsea Finn, Jiajun Wu, Joshua B Tenenbaum, and Sergey Levine. Entity abstraction in visual model-based reinforcement learning. In CoRL, 2019. 6
|
| 291 |
+
|
| 292 |
+
Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. ICLR, 2017a. 3
|
| 293 |
+
|
| 294 |
+
Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. ICML, 2017b. 3
|
| 295 |
+
|
| 296 |
+
Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, 2016. 3
|
| 297 |
+
|
| 298 |
+
Niklas Wahlström, Thomas B Schön, and Marc Peter Deisenroth. From pixels to torques: Policy learning with deep dynamical models. ICML, 2015. 3
|
| 299 |
+
Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In ECCV, 2016. 1, 3
|
| 300 |
+
Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In ICCV, 2017. 3
|
| 301 |
+
Nicholas Watters, Daniel Zoran, Theophane Weber, Peter Battaglia, Razvan Pascanu, and Andrea Tacchetti. Visual interaction networks: Learning a physics simulator from video. In NeurIPS, 2017. 2, 3, 4, 5, 6
|
| 302 |
+
Jiajun Wu, Ilker Yildirim, Joseph J Lim, Bill Freeman, and Josh Tenenbaum. Galileo: Perceiving physical object properties by integrating a physics engine with deep learning. In NeurIPS, 2015. 3
|
| 303 |
+
Jiajun Wu, Joseph J Lim, Hongyi Zhang, Joshua B Tenenbaum, and William T Freeman. Physics 101: Learning physical object properties from unlabeled videos. In BMVC, 2016. 3
|
| 304 |
+
Jiajun Wu, Erika Lu, Pushmeet Kohli, Bill Freeman, and Josh Tenenbaum. Learning to see physics via visual de-animation. In NeurIPS, 2017. 6
|
| 305 |
+
Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In NeurIPS, 2016. 3
|
| 306 |
+
Tian Ye, Xiaolong Wang, James Davidson, and Abhinav Gupta. Interpretable intuitive physics model. ECCV, 2018. 3
|
| 307 |
+
Yufei Ye, Maneesh Singh, Abhinav Gupta, and Shubham Tulsiani. Compositional video prediction. ICCV, 2019. 2, 3, 5, 6, 14, 15
|
| 308 |
+
Kexin Yi, Chuang Gan, Yunzhu Li, Pushmeet Kohli, Jiajun Wu, Antonio Torralba, and Joshua B Tenenbaum. Clevrer: Collision events for video representation and reasoning. In ICLR, 2020. 6
|
| 309 |
+
|
| 310 |
+
# A IMPLEMENTATION DETAILS
|
| 311 |
+
|
| 312 |
+
# A.1 NETWORK ARCHITECTURE DETAILS
|
| 313 |
+
|
| 314 |
+
Backbone Networks: We use the same backbone network for our method and all the baselines (VIN, OM, CVP). We choose the hourglass network (Newell et al., 2016) as the image feature extractor. Given an input image, the hourglass network firstly applies a $7 \times 7$ stride-2 convolution, three residual blocks with channel dimension $d / 4$ , and a stride-2 max pooling on it. Then this intermediate feature representation is fed into one hourglass modules. In the hourglass module, the feature maps are downsampled with 3 stride-2 residual blocks and then up-sampled with nearest neighbor interpolation. The dimensions of both the input channel and the output channel of each residual block are $d$ . For SimB, we use $d = 6 4$ since the visual information in this environment is relatively simple. For RealB, PHYRE, and ShapeStacks, $d = 2 5 6$ . We use batch normalization before each convolutional layer in the backbone network. The resulting feature map size is $d \times \frac { H } { 4 } \times \frac { W } { 4 }$ , where $H$ , $W$ is the input image size and 4 is the spatial feature stride of the hourglass network.
|
| 315 |
+
|
| 316 |
+
The output features are transformed to object-centric representations differently for our method and each of the baseline methods:
|
| 317 |
+
|
| 318 |
+
VIN: The resulting feature map is forwarded to 4 convolutional layers with stride 2 and a spatial global average pooling layer to get a $d$ dimensional feature vector. This feature vector is transformed to $d \times m$ by one fully-connected layer. This feature will be reshaped to $m$ vectors with $d$ channel dimensional to represent each object. This representation is refined by two $d \times d$ fully-connected layers and passed to the (convolutional) interaction network.
|
| 319 |
+
|
| 320 |
+
M and CVP: The output feature map is of shape $m \times d \times \textstyle { \frac { H } { 4 } } \times \frac { W } { 4 }$ because this method produce $m$ masked (or cropped) images as input. The resulting feature map is forwarded to 4 convolutional layers with stride 2 and a spatial global average pooling layer to get a $d$ dimensional feature vector and the output feature is of size $m \times d$ , representing the features of $m$ objects. This representation is refined by two $d \times d$ fully-connected layers and passed to the (convolutional) interaction network.
|
| 321 |
+
|
| 322 |
+
# A.2 UNCERTAINTY MODELING.
|
| 323 |
+
|
| 324 |
+
Only in the shapestack datasets, we also incorporate uncertainty estimation follows (Ye et al., 2019), by modeling the latent distribution using a variational auto-encoder (Kingma & Welling, 2014). For the complete details, we refer the reader to (Ye et al., 2019). Here we only give a summary: we build an encoder $h$ which takes the image feature from first $\mathcal { F } ^ { 0 }$ and last frame $\check { \mathcal { F } } ^ { T }$ of a video sequence as the input. The output of $h$ is a distribution parameter, denoted by $h ( \mathbf { u } | \mathcal { F } ^ { 0 } , \mathcal { F } ^ { T } )$ . Given a particular sample from such distribution, we recover the latent variable by feeding them into a one-layer LSTM and merge into the object feature $\ v x _ { i } ^ { t }$ . In this case, our pipeline is trained with an additional loss that minimize the KL divergence between the predicted distribution and normal distribution (Kingma & Welling, 2014).
|
| 325 |
+
|
| 326 |
+
During inference, we sample 100 trajectories for each test image and report the minimum of them. This setting is the same as the original CVP paper $\mathrm { Y e }$ et al. (2019). Our implementation gets $5 . 2 8 \times 1 0 ^ { - 3 }$ squared $\ell _ { 2 }$ distance for $T \in [ 0 , T _ { \mathrm { t r a i n } } ]$ while the original paper report $6 . 6 9 \times 1 0 ^ { - 3 }$ .
|
| 327 |
+
|
| 328 |
+
# A.3 DATASET DETAILS
|
| 329 |
+
|
| 330 |
+
SimB: To get the initial velocity, the magnitude (number of pixels moved per timestep) is sampled from [2, 3, 4, 5, 6] and the direction is sampled from $\{ 6 i \pi , i = 0 , 1 , \ldots , 1 1 \}$ .
|
| 331 |
+
|
| 332 |
+
RealB: We found that the bounding box prediction results are accurate enough to serve as the groundtruth. After running the detector, we also manually go through the dataset and filter out images with incorrect detections.
|
| 333 |
+
|
| 334 |
+
ShapeStacks: There are 1,320 training videos and 296 testing videos, with 32 frames per video. Only objects’ center positions provided. Following (Ye et al., 2019), we assume the object bounding box is square and of size $7 0 \times 7 0$ .
|
| 335 |
+
|
| 336 |
+
PHYRE: For within task generalization (PHYRE-W), the training set contains 80 templates for each of the 25 task. The testing set contains the remaining 20 templates from each task. For cross task generalization (PHYRE-C), the training set contains 100 templates from 20 tasks while the test set contains 100 templates from the remaining 5 tasks. For each template, we randomly sample a maximum 100 success and 400 failure actions to collect the trajectories to train our model. The image sequence is temporally downsampled by 60.
|
| 337 |
+
|
| 338 |
+
For our physical reasoning experiments in section 5.4, we train the model using 400 successful actions and 1600 failure actions per template. We use the validation set to select hyper-parameters first, and then do training on the union of train and validation sets and report the final results in the test set.
|
| 339 |
+
|
| 340 |
+
# A.4 HYPERPARAMETERS
|
| 341 |
+
|
| 342 |
+
We use Adam optimizer Kingma & Ba (2014) with cosine decay Loshchilov & Hutter (2016) to train our networks. The default input frames is $N = 4$ except $N = 1$ for ShapeStacks and PHYRE. We set $d$ to be 256 except for simulation billiard $d$ is 64. During training, $T$ (denoted as $T _ { \mathrm { t r a i n . } }$ ) is set to be 20 for SimB and RealB, 5 for PHYRE, and 15 for fair comparison with Ye et al. (2019). The discounted factor $\lambda _ { t }$ is set to be $\begin{array} { r } { \big ( \frac { \mathrm { c u r r e n t \_ i t e r } } { \mathrm { m a x \_ i t e r } } \big ) ^ { t } } \end{array}$ .
|
| 343 |
+
|
| 344 |
+
Simulation Billiards. The image size is $6 4 \times 6 4$ . We train the model for 100K iterations with a learning rate $2 \times 1 0 ^ { - 3 }$ , weight decay $\mathrm { 1 \check { \times } 1 0 ^ { - 6 } }$ , and batch size 200.
|
| 345 |
+
|
| 346 |
+
Real World Billiards. The image is resized to $1 9 2 \times 6 4$ . We train the model for 240K iterations with a learning rate $1 \times 1 0 ^ { - 4 }$ , weight decay $1 \times 1 0 ^ { - 6 }$ , and batch size 20.
|
| 347 |
+
|
| 348 |
+
PHYRE. The image is resized to $1 2 8 \times 1 2 8$ . We train the model for 150K iterations with a learning rate $2 \times 1 0 ^ { - 4 }$ , weight decay $3 \times 1 0 ^ { - 7 }$ , and batch size 20.
|
| 349 |
+
|
| 350 |
+
ShapeStacks. The image is resized to $2 2 4 \times 2 2 4$ . We train the model for 25K iterations with a learning rate $2 \times 1 0 ^ { - 4 }$ , no weight decay (the same as Ye et al. (2019)), and batch size 40. In this dataset, we apply uncertainty modeling. The loss weight of KL-divergence is $3 \times 1 0 ^ { - 5 }$ . During inference, following Ye et al. (2019), we randomly sample 100 outputs from our model, and select the best (in terms of the distance to ground-truth) of them as our model’s output.
|
| 351 |
+
|
| 352 |
+
# B PLANNING DETAILS
|
| 353 |
+
|
| 354 |
+
Given an initial state (represented by an image) and a goal, we aim to produce an action that can lead to the goal from the initial state. Our planning algorithm works in a similar way as visual imagination Fragkiadaki et al. (2015): Firstly, we select a candidate action a from a candidate action set $\mathcal { A }$ . Then we generate the input images $\mathcal { T }$ . For SimB, we train a forward model take the initial image and the action embedding to generate object positions for the next 3 steps. Then we use the simulator to generate the 3 images. For PHYRE, we convert the action to the red ball using the simulator and get the initial image. After that, we run our model described in section 5.4 and the score of each action is simply the classifier’s output. We then select the action with the max score.
|
| 355 |
+
|
| 356 |
+
We introduce the action set for each task in section B.1, and how to design distance function in B.2.
|
| 357 |
+
A summary of our algorithm is in Algorithm 1.
|
| 358 |
+
|
| 359 |
+
# B.1 CANDIDATE ACTION SETS
|
| 360 |
+
|
| 361 |
+
For simulation billiard, the action is 3 dimensional. The first two dimensions stand for the direction of the force. The last dimension stands for the magnitude of the force. During doing planning, we enumerate over 5 different magnitudes and 12 different angles, leading to 60 possible actions. All of the initial condition is guaranteed to have a solution.
|
| 362 |
+
|
| 363 |
+
For PHYRE, the action is also 3 dimensional. The first two dimensions stand for the location placing the red ball. The last dimension stands for the radius of the ball. Following (Bakhtin et al., 2019), we use the first 10k actions provided by the benchmark.
|
| 364 |
+
|
| 365 |
+
# B.2 DISTANCE FUNCTION
|
| 366 |
+
|
| 367 |
+
Init-End State Error. Denote the given target location of $m$ objects as $y \in R ^ { m \times 2 }$ . We use the following distance function, which measures the distance between the final rollout location and the
|
| 368 |
+
|
| 369 |
+
target location:
|
| 370 |
+
|
| 371 |
+
$$
|
| 372 |
+
D = \sum _ { i = 1 } ^ { m } \sum _ { j = 1 } ^ { 2 } ( \hat { p } _ { T , i , j } - y _ { i , j } ) ^ { 2 }
|
| 373 |
+
$$
|
| 374 |
+
|
| 375 |
+
Hitting Accuracy. Denote the given initial location of $m$ objects as $x \in R ^ { m \times 2 }$ . We apply force at the object $i ^ { \prime }$ . We use the following distance function, which prefer the larger moving distance for objects other than $i ^ { \prime }$ :
|
| 376 |
+
|
| 377 |
+
$$
|
| 378 |
+
D = - \operatorname* { m i n } _ { i } \sum _ { \substack { i = 1 , i \neq i ^ { \prime } } } ^ { m } \sum _ { j = 1 } ^ { 2 } ( \hat { p } _ { T , i , j } - x _ { i , j } ) ^ { 2 }
|
| 379 |
+
$$
|
| 380 |
+
|
| 381 |
+
PHYRE task. Since we already train a classifier to classify whether the predicted trajectory will lead to a successful solution of the current task, during test time we can directly use it to classify whether the current action will lead to a successful solution. The distance function is just the negative output score.
|
| 382 |
+
|
| 383 |
+
# B.3 PLANNING ALGORITHM
|
| 384 |
+
|
| 385 |
+
# Algorithm 1: Planning Algorithm for Simulated Billiard and PHYRE
|
| 386 |
+
|
| 387 |
+
Input: candidate actions $\begin{array} { r } { \boldsymbol { \mathcal { A } } = \{ \mathbf { a } _ { i } \} } \end{array}$ , initial state $x$ , end state $y$ (optional)
|
| 388 |
+
Output: action $\mathbf { a } ^ { * }$
|
| 389 |
+
for a in $\mathcal { A }$ do $\mathcal { T } = \mathrm { S i m u l a t i o n } ( x , \mathbf { a } )$ ; $\hat { p } =$ PredictionModel $( \mathcal { T } )$ ; calculate $D$ according to task as in B.2; if $D < D ^ { * }$ then $D ^ { * } = D$ ; $a ^ { * } = a$ ; end
|
| 390 |
+
end
|
| 391 |
+
|
| 392 |
+
# C PHYRE 10 FOLD RESULTS
|
| 393 |
+
|
| 394 |
+
To enable future work to compare with our method, we provide AUCCESS scores for all folds in Table 5. The number of RAND and DQN is taken from Bakhtin et al. (2019).
|
| 395 |
+
|
| 396 |
+
Table 5: The AUCCESS scores for each of evaluated fold.
|
| 397 |
+
|
| 398 |
+
<table><tr><td rowspan="2">setting</td><td rowspan="2">method</td><td colspan="10">fold id</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td rowspan="3">B (within)</td><td>RAND</td><td>13.44</td><td>14.01</td><td>13.79</td><td>13.80</td><td>12.75</td><td>13.34</td><td>13.95</td><td>14.30</td><td>13.36</td><td>14.33</td></tr><tr><td>DQN</td><td>76.82 79.72</td><td></td><td>78.22</td><td>75.86</td><td>77.03</td><td>78.42</td><td>78.01</td><td>77.34</td><td>78.04</td><td>76.87</td></tr><tr><td>Ours</td><td>85.49</td><td>86.57</td><td>85.58</td><td>84.11</td><td>85.30</td><td>85.18</td><td>84.78</td><td>84.32</td><td>85.71</td><td>85.17</td></tr><tr><td rowspan="3">B (cross)</td><td>RAND</td><td>11.78</td><td>12.42</td><td>18.18</td><td>12.42</td><td>3.81</td><td>22.50</td><td>11.73</td><td>13.29</td><td>8.94</td><td>14.60</td></tr><tr><td>DQN</td><td>43.69 30.96 43.05 43.91 22.77</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>44.40 34.53 39.20 18.98 46.46</td></tr><tr><td>Ours</td><td>50.86 36.58 55.44 38.34 37.11 47.23 3.23 47.19 32.23 38.76</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
parse/train/_X_4Akcd8Re/_X_4Akcd8Re_content_list.json
ADDED
|
@@ -0,0 +1,2026 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LEARNING LONG-TERM VISUAL DYNAMICS WITH REGION PROPOSAL INTERACTION NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
776,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Haozhi Qi UC Berkeley ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
178,
|
| 19 |
+
170,
|
| 20 |
+
264,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Xiaolong Wang UC San Diego ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
297,
|
| 30 |
+
170,
|
| 31 |
+
405,
|
| 32 |
+
199
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Deepak Pathak CMU ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
436,
|
| 41 |
+
170,
|
| 42 |
+
544,
|
| 43 |
+
198
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Yi Ma UC Berkeley ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
575,
|
| 52 |
+
170,
|
| 53 |
+
661,
|
| 54 |
+
199
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Jitendra Malik UC Berkeley ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
692,
|
| 63 |
+
170,
|
| 64 |
+
799,
|
| 65 |
+
199
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "ABSTRACT ",
|
| 72 |
+
"text_level": 1,
|
| 73 |
+
"bbox": [
|
| 74 |
+
454,
|
| 75 |
+
222,
|
| 76 |
+
544,
|
| 77 |
+
237
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Learning long-term dynamics models is the key to understanding physical common sense. Most existing approaches on learning dynamics from visual input sidestep long-term predictions by resorting to rapid re-planning with short-term models. This not only requires such models to be super accurate but also limits them only to tasks where an agent can continuously obtain feedback and take action at each step until completion. In this paper, we aim to leverage the ideas from success stories in visual recognition tasks to build object representations that can capture inter-object and object-environment interactions over a long-range. To this end, we propose Region Proposal Interaction Networks (RPIN), which reason about each object’s trajectory in a latent region-proposal feature space. Thanks to the simple yet effective object representation, our approach outperforms prior methods by a significant margin both in terms of prediction quality and their ability to plan for downstream tasks, and also generalize well to novel environments. Code, pre-trained models, and more visualization results are available at our Website. ",
|
| 84 |
+
"bbox": [
|
| 85 |
+
233,
|
| 86 |
+
247,
|
| 87 |
+
766,
|
| 88 |
+
440
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 INTRODUCTION ",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
460,
|
| 99 |
+
336,
|
| 100 |
+
476
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "As argued by Kenneth Craik, if an organism carries a model of external reality and its own possible actions within its head, it is able to react in a much fuller, safer and more competent manner to emergencies which face it (Craik, 1952). Indeed, building prediction models has been long studied in computer vision and intuitive physics. In computer vision, most approaches make predictions in pixel-space (Denton & Fergus, 2018; Lee et al., 2018; Ebert et al., 2018b; Jayaraman et al., 2019; Walker et al., 2016), which ends up capturing the optical flow (Walker et al., 2016) and is difficult to generalize to long-horizon. In intuitive physics, a common approach is to learn the dynamics directly in an abstracted state space of objects to capture Newtonian physics (Battaglia et al., 2016; Chang et al., 2016; Sanchez-Gonzalez et al., 2020). However, the states end up being detached from raw sensory perception. Unfortunately, these two extremes have barely been connected. In this paper, we argue for a middle-ground to treat images as a window into the world, i.e., objects exist but can only be accessed via images. Images are neither to be used for predicting pixels nor to be isolated from dynamics. We operationalize it by learning to extract a rich state representation directly from images and build dynamics models using the extracted state representations. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
486,
|
| 110 |
+
825,
|
| 111 |
+
679
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "It is difficult to make predictions, especially about the future — Niels Bohr ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
336,
|
| 121 |
+
686,
|
| 122 |
+
821,
|
| 123 |
+
702
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Contrary to Niels Bohr, predictions are, in fact, easy if made only for the short-term. Predictions that are indeed difficult to make and actually matter are the ones made over the long-term. Consider the example of “Three-cushion Billiards” in Figure 1. The goal is to hit the cue ball in such a way that it touches the other two balls and contacts the wall thrice before hitting the last ball. This task is extremely challenging even for human experts because the number of successful trajectories is very sparse. Do players perform classical Newtonian physics calculations to obtain the best action before each shot, or do they just memorize the solution by practicing through exponentially many configurations? Both extremes are not impossible, but often impractical. Players rather build a physical understanding by experience (McCloskey, 1983; Kubricht et al., 2017) and plan by making intuitive, yet accurate predictions in the long-term. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
708,
|
| 133 |
+
825,
|
| 134 |
+
847
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 0
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Learning such a long-term prediction model is arguably the “Achilles’ heel” of modern machine learning methods. Current approaches on learning physical dynamics of the world cleverly side-step the long-term dependency by re-planning at each step via model-predictive control (MPC) (Allgöwer & Zheng, 2012; Camacho & Alba, 2013). The common practice is to train short-term dynamical models (usually 1-step) in a simulator. However, small errors in short-term predictions can accumulate over time in MPC. Hence, in this work, we focus primarily on the long-term aspect of prediction by just considering environments, such as the three-cushion billiards example or the PHYRE (Bakhtin et al., 2019) in Figure 1, where an agent is allowed to take only one action in the beginning so as to preclude any scope of re-planning. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
854,
|
| 144 |
+
823,
|
| 145 |
+
924
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 0
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "image",
|
| 151 |
+
"img_path": "images/5625a4aae9c47f60c1232de28cfa80e4a0cfdaaf5b122056b2355f22deb483f0.jpg",
|
| 152 |
+
"image_caption": [
|
| 153 |
+
"Figure 1: Two example of long-term dynamics prediction tasks. Left: three-cushion billiards. Right: PHYRE intuitive-physics dataset (Bakhtin et al., 2019). Our proposed approach makes accurate long-term predictions that do not necessarily align with the ground truth but provide strong signal for planning. "
|
| 154 |
+
],
|
| 155 |
+
"image_footnote": [],
|
| 156 |
+
"bbox": [
|
| 157 |
+
205,
|
| 158 |
+
101,
|
| 159 |
+
790,
|
| 160 |
+
256
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
340,
|
| 170 |
+
825,
|
| 171 |
+
397
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "How to learn an accurate dynamics model has been a popular research topic for years. Recently, there are a series of work trying to represent video frames using object-centric representations (Battaglia et al., 2016; Watters et al., 2017; Chang et al., 2016; Janner et al., 2019; Ye et al., 2019; Kipf et al., 2020). However, those methods either operate in the state space, or ignore the environment information, both of which are not practical in real-world scenarios. In contrast, our objective is to build a data-driven prediction model that can both: (a) model long-term interactions over time to plan successfully for new instances, and (b) work from raw visual input in complex real-world environments. Therefore, the question we ask is: how to extract such an effective and flexible object representation and perform long-term predictions? ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
404,
|
| 181 |
+
825,
|
| 182 |
+
529
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "We propose Region Proposal Interaction Network (RPIN) which contains two key components. Firstly, we leverage the region of interests pooling (RoIPooling) operator (Girshick, 2015) to extract object features maps from the frame-level feature. Object feature extraction based on region proposals has achieved huge success in computer vision (Girshick, 2015; He et al., 2017; Dai et al., 2017; Gkioxari et al., 2019), and yet, surprisingly under-explored in the field of intuitive physics. By using RoIPooling, each object feature contains not only its own information but also the context of the environment. Secondly, we extend the Interaction Network and propose Convolutional Interaction Networks that perform interaction reasoning on the extracted RoI features. Interaction Networks is originally proposed in (Battaglia et al., 2016), where the interaction reasoning is conducted via MLPs. By changing MLPs to convolutions, we can effectively utilize the spatial information of an object and make accurate future prediction of object location and shapes changes. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
173,
|
| 191 |
+
535,
|
| 192 |
+
825,
|
| 193 |
+
689
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Notably, our approach is simple, yet outperforms the state-of-the-art methods in both simulation and real datasets. In Section 5, we thoroughly evaluate our approach across four datasets to study scientific questions related to a) prediction quality, b) generalization to time horizons longer than training, c) generalization to unseen configurations, d) planning ability for downstream tasks. Our method reduces the prediction error by $7 5 \\%$ in the complex PHYRE environment and achieves state-of-the-art performance on the PHYRE reasoning benchmark. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
695,
|
| 203 |
+
825,
|
| 204 |
+
780
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "2 RELATED WORK ",
|
| 211 |
+
"text_level": 1,
|
| 212 |
+
"bbox": [
|
| 213 |
+
176,
|
| 214 |
+
791,
|
| 215 |
+
344,
|
| 216 |
+
808
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Physical Reasoning and Intuitive Physics. Learning models that can predict the changing dynamics of the scene is the key to building physical common-sense. Such models date back to “NeuroAnimator” (Grzeszczuk et al., 1998) for simulating articulated objects. Several methods in recent years have leveraged deep networks to build data-driven models of intuitive physics (Bhattacharyya et al., 2016; Ehrhardt et al., 2017; Fragkiadaki et al., 2015; Chang et al., 2016; Stewart & Ermon, 2017). However, these methods either require access to the underlying ground-truth state-space or do not scale to long-range due to absence of interaction reasoning. A more generic yet explicit approach has been to leverage graph neural networks (Scarselli et al., 2009) to capture interactions between entities in a scene (Battaglia et al., 2018; Chang et al., 2016). Closest to our approach are interaction models that scale to pixels and reason about object interaction (Watters et al., 2017; Ye et al., 2019). However, these approaches either reason about object crops with no context around or can only deal with a predetermined number and order of objects. A concurrent work (Girdhar et al., 2020) studies using prediction for physical reasoning, but their prediction model is either in the state space or in the pixel space. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
173,
|
| 225 |
+
825,
|
| 226 |
+
825,
|
| 227 |
+
924
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
103,
|
| 237 |
+
825,
|
| 238 |
+
202
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Other common ways to measure physical understanding are to predict future judgments given a scene image, e.g., predicting the stability of a configuration (Groth et al., 2018; Jia et al., 2015; Lerer et al., 2016; Li et al., 2016a;b). Several hybrid methods take a data-driven approach to estimate Newtonian parameters from raw images (Brubaker et al., 2009; Wu et al., 2016; Bhat et al., 2002; Wu et al., 2015), or model Newtonian physics via latent variable to predict motion trajectory in images (Mottaghi et al., 2016a;b; Ye et al., 2018). An extreme example is to use an actual simulator to do inference over objects (Hamrick et al., 2011). The reliance on explicit Newtonian physics makes them infeasible on real-world data and un-instrumented settings. In contrast, we take into account the context around each object via RoIPooling and explicitly model their interaction with each other or with the environment without relying on Newtonian physics, and hence, easily scalable to real videos for long-range predictions. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
208,
|
| 248 |
+
825,
|
| 249 |
+
361
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Video Prediction. Instead of modeling physics from raw images, an alternative is to treat visual reasoning as an image translation problem. This approach has been adopted in the line of work that falls under video prediction. The most common theme is to leverage latent-variable models for predicting future (Lee et al., 2018; Denton & Fergus, 2018; Babaeizadeh et al., 2017). Predicting pixels is difficult so several methods leverage auxiliary information like back/fore-ground (Villegas et al., 2017a; Tulyakov et al., 2017; Vondrick et al., 2016), optical flow (Walker et al., 2016; Liu et al., 2017), appearance transformation (Jia et al., 2016; Finn et al., 2016; Chen et al., 2017; Xue et al., 2016), etc. These inductive biases help in a short interval but do not capture long-range behavior as needed in several scenarios, like playing billiards, due to lack of explicit reasoning. Some approaches can scale to relative longer term but are domain-specific, e.g., pre-defined human-pose space (Villegas et al., 2017b; Walker et al., 2017). However, our goal is to model long-term interactions not only for prediction but also to facilitate planning for downstream tasks. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
376,
|
| 259 |
+
825,
|
| 260 |
+
542
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Learning Dynamics Models. Unlike video prediction, dynamics models take actions into account for predicting the future, also known as forward models (Jordan & Rumelhart, 1992). Learning these forward dynamics models from images has recently become popular in robotics for both specific tasks (Wahlström et al., 2015; Agrawal et al., 2016; Oh et al., 2015; Finn et al., 2016) and exploration (Pathak et al., 2017; Burda et al., 2019). In contrast to these methods where a deep network directly predicts the whole outcome, we leverage our proposed region-proposal interaction module to capture each object trajectories explicitly to learn long-range forward dynamics as well as video prediction models. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
558,
|
| 270 |
+
825,
|
| 271 |
+
669
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "Planning via Learned Models. Leveraging models to plan is the standard approach in control for obtaining task-specific behavior. Common approach is to re-plan after each action via Model Predictive Control (Allgöwer & Zheng, 2012; Camacho & Alba, 2013; Deisenroth & Rasmussen, 2011). Scaling the models and planning in a high dimensional space is a challenging problem. With deep learning, several approaches shown promising results on real-world robotic tasks (Finn et al., 2016; Finn & Levine, 2017; Agrawal et al., 2016; Pathak et al., 2018). However, the horizon of these approaches is still very short, and replanning in long-term drifts away in practice. Some methods try to alleviate this issue via object modeling (Janner et al., 2019; Li et al., 2019) or skip connections (Ebert et al., 2018a) but assume the models are trained with state-action pairs. In contrast to prior works where a short-range dynamic model is unrolled in time, we learn our long-range models from passive data and then couple them with short-range forward models to infer actions during planning. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
684,
|
| 281 |
+
825,
|
| 282 |
+
838
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "3 REGION PROPOSAL INTERACTION NETWORKS ",
|
| 289 |
+
"text_level": 1,
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
854,
|
| 293 |
+
591,
|
| 294 |
+
871
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Our model takes $N$ video frames and the corresponding object bounding boxes as inputs, and outputs the objects’ bounding boxes and masks for the future $T$ timesteps. The overall model structure is illustrated in Figure 2. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
176,
|
| 303 |
+
882,
|
| 304 |
+
823,
|
| 305 |
+
924
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "image",
|
| 311 |
+
"img_path": "images/19d566559141436db945d2174916ecbf1ddaefb8284bcb860135b0361e2e770c.jpg",
|
| 312 |
+
"image_caption": [
|
| 313 |
+
"Figure 2: Our Region Proposal Interaction Network. Given $N$ frames as inputs, we forward them to an encoder network, and then extract the foreground object features with RoIPooling (different colors represent different instances). We then perform interaction reasoning on top of the region proposal features (gray box on the bottom right). We predict each future object feature based on the previous $k$ time steps. We then estimate the object location from each object feature. "
|
| 314 |
+
],
|
| 315 |
+
"image_footnote": [],
|
| 316 |
+
"bbox": [
|
| 317 |
+
183,
|
| 318 |
+
101,
|
| 319 |
+
810,
|
| 320 |
+
284
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "For each frame, we first extract the image features using a ConvNet. Then we apply RoIPooling (Girshick, 2015; He et al., 2017) to obtain the object-centric visual features. These features are then forwarded to our Convolutional Interaction Networks (CIN) to perform objects’ interaction reasoning and used to predict future object bounding boxes and masks. The whole pipeline is trained end-to-end by minimizing the loss between the predicted outputs and the ground-truth. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
375,
|
| 330 |
+
825,
|
| 331 |
+
445
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "3.1 OBJECT-CENTRIC REPRESENTATION ",
|
| 338 |
+
"text_level": 1,
|
| 339 |
+
"bbox": [
|
| 340 |
+
176,
|
| 341 |
+
457,
|
| 342 |
+
465,
|
| 343 |
+
470
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "We apply the houglass network (Newell et al., 2016) to extract the image features. Given an input RGB image $I \\in \\breve { \\mathbb { R } } ^ { 3 \\times H \\times W }$ , the hourglass network firstly downsample the input via one 2-strided convolution and 2-strided max pooling layers, and then refine the representation by a U-Net-like encoder-decoder modules (Ronneberger et al., 2015). The hourglass network provides features with a large receptive field and a fine spatial resolution (4 times smaller than the input image), both of which are crucial to accurately model object-object and object-environment interactions. We denote the number of output channels of the feature map as $d$ . ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
173,
|
| 352 |
+
476,
|
| 353 |
+
825,
|
| 354 |
+
573
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "On top of this feature map, we use RoIPooling (Girshick, 2015) to extract a $d \\times h \\times w$ objectcentric features. RoIPooling takes the feature map and a object bounding box as input. The region corresponding to the bounding box on the feature map is cropped and resize to a fixed spatial size (denoted as $h \\times w$ ). We use $\\boldsymbol { x } _ { i } ^ { t }$ to represent the feature at $t$ -th timestep for the $i$ -th object. Such feature representation differs from previous method in two perspectives: 1) It is extracted from image features with a large receptive field, which gives plenty of context information around the object. 2) The feature representation is a 3-dimensional feature map rather than a single vector representation. It can represent the objects’ shapes while the vector representation cannot because the spatial dimension is flattened. ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
580,
|
| 364 |
+
825,
|
| 365 |
+
705
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "3.2 CONVOLUTIONAL INTERACTION NETWORKS ",
|
| 372 |
+
"text_level": 1,
|
| 373 |
+
"bbox": [
|
| 374 |
+
178,
|
| 375 |
+
715,
|
| 376 |
+
524,
|
| 377 |
+
729
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "To better utilize the spatial information of our object feature map, we propose Convolutional Interaction Networks, an extension of Interaction Network operators on 3-dimensional tensors. In this section, we first briefly review the original Interaction Network (IN) (Battaglia et al., 2016; Watters et al., 2017) and introduce the proposed Convolutional Interaction Networks (CIN). ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
736,
|
| 387 |
+
825,
|
| 388 |
+
791
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "The original interaction network is a general-purpose data-driven method to model and predict physical dynamics. It takes the feature vectors of $m$ objects at timestep $t$ : $X = \\{ x _ { 1 } ^ { t } , x _ { 2 } ^ { t } , . . . , x _ { m } ^ { \\hat { t } } \\mid x _ { i } ^ { t } \\in \\bar { \\mathbb { R } } ^ { d } \\}$ and performs object reasoning $f _ { O }$ as well as relational reasoning $f _ { R }$ on these features. Specifically, the updated rule of object features can be described as: ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
799,
|
| 398 |
+
826,
|
| 399 |
+
854
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"img_path": "images/acb2f9c6263005e18846f3081fe5543ab0b5272ebc1e0dc0e6beae6d4ca494a6.jpg",
|
| 406 |
+
"text": "$$\n\\begin{array} { r l } & { e _ { i } ^ { t } = f _ { A } \\big ( f _ { O } ( x _ { i } ^ { t } ) + \\sum _ { j \\neq i } f _ { R } ( x _ { i } ^ { t } , x _ { j } ^ { t } ) \\big ) , } \\\\ & { z _ { i } ^ { t } = f _ { Z } ( x _ { i } ^ { t } , e _ { i } ^ { t } ) , } \\\\ & { x _ { i } ^ { t + 1 } = f _ { P } \\big ( z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , \\dots , z _ { i } ^ { t - k } \\big ) . } \\end{array}\n$$",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
361,
|
| 410 |
+
859,
|
| 411 |
+
635,
|
| 412 |
+
924
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "In the above equation, $f _ { A }$ is the function to calculate the effect of both of object reasoning and relational reasoning results. And $f _ { Z }$ is used to combine the original object state and the reasoning effect. Finally, $f _ { P }$ is used to do future state predictions based on one or more previous object states. In IN, $f _ { O , R , A , Z , P }$ are instantiated by a fully-connected layer with learnable weights. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
174,
|
| 421 |
+
103,
|
| 422 |
+
825,
|
| 423 |
+
160
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 4
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Convolutional Interaction Networks. The input of CIN is $m$ object feature maps at timestep $t$ : $X = \\{ x _ { 1 } ^ { t } , x _ { 2 } ^ { t } , . . . , x _ { m } ^ { t } | x _ { i } ^ { t } \\in \\mathbb { R } ^ { d \\times h \\times w } \\}$ . The high-level update rule is the same as IN, but the key difference is that we use convolution to instantiate $f _ { O , R , A , Z , P }$ . Such instantiation is crucial to utilize the spatial information encoded in our object feature map and to effectively reason future object states. Specifically, we have ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
176,
|
| 432 |
+
166,
|
| 433 |
+
825,
|
| 434 |
+
236
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 4
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"img_path": "images/20621f3512e9e9f0213f9a8b079f53dbfbc18c9b7fa48b914ba280017c3cbf6e.jpg",
|
| 441 |
+
"text": "$$\n\\begin{array} { c c } { f _ { R } ( x _ { i } ^ { t } , x _ { j } ^ { t } ) = W _ { R } * [ x _ { i } ^ { t } , x _ { j } ^ { t } ] } & { f _ { O } ( x _ { i } ^ { t } ) = W _ { O } * x _ { i } ^ { t } } \\\\ { f _ { A } ( x _ { i } ^ { t } ) = W _ { A } ^ { T } * x _ { i } ^ { t } } & { f _ { Z } ( x _ { i } ^ { t } , e _ { i } ^ { t } ) = W _ { Z } * [ x _ { i } ^ { t } , e _ { i } ^ { t } ] } \\\\ { f _ { P } ( z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , . . . , z _ { i } ^ { t - k } ) = W _ { P } * [ z _ { i } ^ { t } , z _ { i } ^ { t - 1 } , . . . , z _ { i } ^ { t - k } ] } \\end{array}\n$$",
|
| 442 |
+
"text_format": "latex",
|
| 443 |
+
"bbox": [
|
| 444 |
+
300,
|
| 445 |
+
242,
|
| 446 |
+
699,
|
| 447 |
+
310
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 4
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "One can plug the functions in Equation 1 for better understanding the operations. In the above equations, $^ *$ denotes the convolution operator, and $[ \\cdot , \\cdot ]$ denotes concatenation along the channel dimension. $W _ { R } , W _ { Z } \\in \\mathbb { R } ^ { d \\times 2 d \\times 3 \\times 3 }$ , $W _ { O } , W _ { A } \\in \\mathbb { R } ^ { d \\times d \\times 3 \\times 3 }$ , $W _ { P } \\in \\mathbb { R } ^ { d \\times ( k d ) \\times 3 \\times 3 }$ are learnable weights of the convolution kernels with kernel size $3 \\times 3$ . We also add ReLU activation after each of the convolutional operators. ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
173,
|
| 456 |
+
319,
|
| 457 |
+
826,
|
| 458 |
+
392
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 4
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "3.3 LEARNING REGION PROPOSAL INTERACTION NETWORKS (RPIN) ",
|
| 465 |
+
"text_level": 1,
|
| 466 |
+
"bbox": [
|
| 467 |
+
176,
|
| 468 |
+
402,
|
| 469 |
+
673,
|
| 470 |
+
417
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Our model predicts the future bounding box and (optionally) masks of each object. Given the predicted feature $\\boldsymbol { x } _ { i } ^ { t + 1 }$ , we use a simple two layer MLP decoder to estimate its bounding boxes coordinates and masks. The bounding box decoder takes a flattened object feature map as input. It firstly projects it to $d$ dimensional vector, and outputs 4-d vector, representing the center location and size of the box. The mask decoder is of the same architecture but has $2 1 \\times 2 1$ output channels, representing a $2 1 \\times 2 1$ binary masks inside the corresponding bounding boxes. We use the $\\ell ^ { 2 }$ loss for bounding box predictions. For mask prediction, we use spatial cross-entropy loss which sums the cross-entropy values of a $2 1 \\times 2 1$ predicted positions. The objective can be written as: ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
173,
|
| 479 |
+
422,
|
| 480 |
+
826,
|
| 481 |
+
535
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "equation",
|
| 487 |
+
"img_path": "images/06bb11307f2db06390766e78d948efd63e255df6301abb6d361df3262f392f60.jpg",
|
| 488 |
+
"text": "$$\nL _ { p } = \\sum _ { t = 1 } ^ { T } \\lambda _ { t } \\sum _ { i = 1 } ^ { n } \\Big ( \\| \\hat { B } _ { i } ^ { t + 1 } - B _ { i } ^ { t + 1 } \\| _ { 2 } ^ { 2 } + C E ( \\hat { M } _ { i } ^ { t + 1 } , M _ { i } ^ { t + 1 } ) \\Big ) .\n$$",
|
| 489 |
+
"text_format": "latex",
|
| 490 |
+
"bbox": [
|
| 491 |
+
299,
|
| 492 |
+
539,
|
| 493 |
+
699,
|
| 494 |
+
583
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 4
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "We use discounted loss during training (Watters et al., 2017) to mitigate the effect of inaccurate prediction at early training stage and $\\lambda _ { t }$ is the discounted factor. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
597,
|
| 504 |
+
823,
|
| 505 |
+
626
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 4
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "4 EXPERIMENTAL SETUP ",
|
| 512 |
+
"text_level": 1,
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
638,
|
| 516 |
+
398,
|
| 517 |
+
655
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Datasets. We evaluate our method’s prediction performance on four different datasets, and demonstrate the ability to perform downstream physical reasoning and planning tasks on two of them. We briefly introduce the four datasets below. The full dataset details are in the appendix. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
665,
|
| 527 |
+
823,
|
| 528 |
+
707
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "PHYRE: We use the BALL-tier of the PHYRE benchmark (Bakhtin et al., 2019). In this dataset, we set $T = 5$ . We treat all of the moving balls or jars as objects and other static bodies as background. The benchmark provides two evaluation settings: 1) within task generalization (PHYRE-W), where the testing environments contain the same object category but different sizes and positions; 2) cross task generalization (PHYRE-C), where environments containing objects and context never present during training. We report prediction using the official fold 0 and the physical reasoning performance averaged on 10 folds. ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
173,
|
| 537 |
+
713,
|
| 538 |
+
825,
|
| 539 |
+
811
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "ShapeStacks (SS): This dataset contains multiple stacked objects (cubes, cylinders, or balls) (Ye et al., 2019). In this dataset, we set $T = 1 5$ . We evaluate all baselines and our methods follow the protocol of (Ye et al., 2019) with uncertainty estimation incorporated (see Appendix for detail). ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
174,
|
| 548 |
+
819,
|
| 549 |
+
825,
|
| 550 |
+
861
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Real World Billiards (RealB): We collect “Three-cushion Billiards” videos from professional games with different viewpoints downloaded from YouTube. There are 62 training videos with 18, 306 frames, and 5 testing videos with 1, 995 frames. The bounding box annotations are from an offthe-shelf ResNet-101 FPN detector (Lin et al., 2017) pretrained on COCO (Lin et al., 2014) and fine-tuned on a subset of 30 images from our dataset. We manually filtered out wrong detections. In this dataset, we set $T = 2 0$ . ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
867,
|
| 560 |
+
825,
|
| 561 |
+
924
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "",
|
| 568 |
+
"bbox": [
|
| 569 |
+
173,
|
| 570 |
+
103,
|
| 571 |
+
823,
|
| 572 |
+
131
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 5
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "Simulation Billiards (SimB): We create a simulated billiard environment with three different colored balls with a radius 2 are randomly placed in a $6 4 \\times 6 4$ image. At starting point, one ball is moving with a randomly sampled velocity. We generate 1,000 video sequences for training and 1,000 video sequences for testing, with 100 frames per sequence. We will also evaluate the ability to generalize to more balls and different sized balls in the experiment section. In this dataset, we set $T = 2 0$ . ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
138,
|
| 582 |
+
823,
|
| 583 |
+
208
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 5
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "For PHYRE and SS, it is possible to infer the future from just the initial configuration. So we set $N = 1$ in these two datasets. For SimB and RealB, the objects are moving in a flat table so we cannot infer the future trajectories based on a single image. Therefore in this setting, we set $N = 4$ to infer the velocity/acceleration of objects. We set $k = N$ in all the dataset because we only have access to $N$ features when we make prediction at $t = N + 1$ . We predict object masks for PHYRE and ShapeStacks, and only predict bounding boxes for Billiard datasets. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
215,
|
| 593 |
+
825,
|
| 594 |
+
299
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "Baselines. There are a large amount of work studying how to estimate objects’ states and predict their dynamics from raw image inputs. They fall into the following categories: ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
173,
|
| 603 |
+
306,
|
| 604 |
+
821,
|
| 605 |
+
334
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "VIN: Instead of using object-centric spatial pooling to extract object features, it use a ConvNet to globally encode an image to a fixed $d \\times m$ dimensional vector. Different channels of the vector is assigned to different objects (Kipf et al., 2020; Watters et al., 2017). This approach requires specifying a fixed number of objects and a fixed mapping between feature channels and object identity, which make it impossible to generalize to different number of objects and different appearances. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
342,
|
| 615 |
+
825,
|
| 616 |
+
411
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "Object Masking (OM): This approach takes one image and $m$ object bounding boxes or masks as input (Wu et al., 2017; Veerapaneni et al., 2019; Janner et al., 2019). For each proposal, only the pixels inside object proposals are kept while others are set to 0, leading to $m$ masked images. This approach assumes no background information is needed thus fails to predict accurate trajectories in complex environments such as PHYRE. And it also cost $m$ times computational resources. ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
417,
|
| 626 |
+
823,
|
| 627 |
+
488
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "CVP: The object feature is extracted by cropping the object image patch and forwarding it to an encoder (Ye et al., 2019; Yi et al., 2020). Since the object features are directly extracted from the raw image patches, the context information is also ignored. We re-implement CVP’s feature extraction method within our framework. We show we can reproduce their results in Section A.2. ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
494,
|
| 637 |
+
823,
|
| 638 |
+
550
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "5 EVALUATION RESULTS: PREDICTION, GENERALIZATION, AND PLANNING ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
569,
|
| 648 |
+
816,
|
| 649 |
+
585
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "We organize this section and analyze our results by discussing four scientific questions related to the prediction quality, generalization ability across time & environment configurations, and the ability to plan actions for downstream tasks. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
174,
|
| 658 |
+
597,
|
| 659 |
+
823,
|
| 660 |
+
638
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "5.1 HOW ACCURATE IS THE PREDICTED DYNAMICS? ",
|
| 667 |
+
"text_level": 1,
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
659,
|
| 671 |
+
547,
|
| 672 |
+
671
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "To evaluate how well the world dynamics is modeled, we first report the average prediction errors on the test split, over the same time-horizon as which model is trained on, i.e., $t \\in [ 0 , T _ { \\mathrm { t r a i n } } ]$ . The prediction error is calculated by the squared $\\ell _ { 2 }$ distance between predicted object center location and the ground-truth object centers. The results are shown in Table 1 (left half). ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
680,
|
| 682 |
+
825,
|
| 683 |
+
736
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "Firstly, we show the effectiveness of our proposed RoI Feature by comparing Table 1 VIN, OM, CVP, and Ours (IN). These four entries use the same backbone network and interaction network modules and only visual encoder is changed. Among them, VIN cannot even be trained on PHYRE-W since it cannot handle varying number of objects. The OM method performs slightly better than other baselines since it also explicitly models objects by instance masking. For CVP, it cannot produce reasonable results on all of the datasets except on the SS dataset. The reason is that in PHYRE and billiard environments, cropped images are unaware of environment information and the relative position and pose of different objects, making it impossible to make accurate predictions. In SS, since the object size is large and objects are very close to each other, the cropped image regions already provide enough context. In contrast, our RoI Feature can implicitly encode the context and environment information and it performs much better than all baselines. In the very challenging PHYRE dataset, the prediction error is only $1 / 4$ of the best baseline. In the other three easier datasets, the gap is not as large since the environment is less complicated, but our method still achieves ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
174,
|
| 692 |
+
743,
|
| 693 |
+
825,
|
| 694 |
+
924
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 5
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "table",
|
| 700 |
+
"img_path": "images/e8978241f8e12ee992b116aed5b9805c5b794ef308b29af359b9de918009a725.jpg",
|
| 701 |
+
"table_caption": [
|
| 702 |
+
"Table 1: We compare our method with different baselines on all four datasets. The left part shows the prediction error when rollout timesteps is the same as training time. The right part shows the generalization ability to longer horizon unseen during training. The error is scaled by 1,000. Our method has significantly improvements on all of the datasets "
|
| 703 |
+
],
|
| 704 |
+
"table_footnote": [],
|
| 705 |
+
"table_body": "<table><tr><td rowspan=\"2\">method</td><td rowspan=\"2\">visual encoder</td><td colspan=\"3\">t ∈ [0,Ttrain]</td><td rowspan=\"2\"></td><td colspan=\"3\">t ∈[Ttrain,2 × Ttrain]</td></tr><tr><td>PHYRE-W</td><td>sS RealB</td><td>SimB</td><td>PHYRE-W ss</td><td>RealB</td><td>SimB</td></tr><tr><td>VIN</td><td>Global Encoding</td><td>N.A.</td><td>2.47</td><td>1.02</td><td>3.89</td><td>N.A.</td><td>7.77 5.11</td><td>29.51</td></tr><tr><td>OM</td><td>Masked Image</td><td>6.45</td><td>3.01</td><td>0.59 3.48</td><td>25.72</td><td>9.51</td><td>3.23</td><td>28.87</td></tr><tr><td>CVP</td><td>Cropped Image</td><td>60.12</td><td>2.84</td><td>3.57</td><td>80.01</td><td>79.11 7.72</td><td>6.63</td><td>108.56</td></tr><tr><td>Ours (IN)</td><td>RoI Feature</td><td>1.50</td><td>1.85</td><td>0.37</td><td>3.01</td><td>12.45 4.89</td><td>2.72</td><td>27.88</td></tr><tr><td>Ours (CIN)</td><td>RoI Feature</td><td>1.31</td><td>1.03</td><td>0.30</td><td>2.55</td><td>11.10 4.73</td><td>2.34</td><td>25.77</td></tr></table>",
|
| 706 |
+
"bbox": [
|
| 707 |
+
205,
|
| 708 |
+
101,
|
| 709 |
+
789,
|
| 710 |
+
224
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "table",
|
| 716 |
+
"img_path": "images/24a1d1d978ce8402f6243581c8fb72ffc7215b4eee77da1487bce904debebb13.jpg",
|
| 717 |
+
"table_caption": [],
|
| 718 |
+
"table_footnote": [],
|
| 719 |
+
"table_body": "<table><tr><td>method</td><td>visual encoder</td><td>PHYRE-C SS-4 SimB-5</td></tr><tr><td>VIN</td><td>Global Encoding</td><td>N.A. N.A. N.A.</td></tr><tr><td>OM</td><td>Masked Image</td><td>50.28 17.02 59.70</td></tr><tr><td>CVP</td><td>Cropped Image</td><td>99.26 16.88 113.39</td></tr><tr><td>Ours (IN)</td><td>RoI Feature</td><td>10.98 15.02 24.42</td></tr><tr><td>Ours (CIN)</td><td>RoI Feature</td><td>9.22 14.61 22.38</td></tr></table>",
|
| 720 |
+
"bbox": [
|
| 721 |
+
318,
|
| 722 |
+
300,
|
| 723 |
+
674,
|
| 724 |
+
410
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 6
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Table 2: The ability to generalize to novel environments. We show the average prediction error for $t \\in [ 0 , 2 \\times T _ { \\mathrm { t r a i n } } ]$ . Our method achieves significantly better results compared to previous methods. The error is scaled by 1,000. Our method generalizes much better than other baselines. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
176,
|
| 733 |
+
419,
|
| 734 |
+
825,
|
| 735 |
+
462
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "more than $10 \\%$ improvements. These results clearly demonstrates the advantage of using rich state representations. ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
173,
|
| 744 |
+
478,
|
| 745 |
+
823,
|
| 746 |
+
507
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Secondly, we show that the effectiveness of our proposed Convolutional Interaction Network by comparing Table 1 Ours (IN) and Ours (CIN). With every other components the same, changing the vector-form representation to spatial feature maps and use convolution to model the interactions can further improve the performance by $10 \\% { \\sim } 4 0 \\%$ . This result shows our convolutional interaction network could better utilize the spatial information encoded in the object feature map. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
513,
|
| 756 |
+
825,
|
| 757 |
+
583
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "5.2 DOES LEARNED MODEL GENERALIZE TO LONGER HORIZON THAN TRAINING? ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
173,
|
| 767 |
+
598,
|
| 768 |
+
751,
|
| 769 |
+
611
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Generalize to longer horizons is a challenging task. In this section we compare the performance of predicting trajectories longer than training time. In Table 1 (right half), we report the prediction error for $t \\in [ \\bar { T } _ { \\mathrm { t r a i n } } , 2 \\times T _ { \\mathrm { t r a i n } } ]$ . The results in this setting are consistent with what we found in Section 5.1. Our method still achieves the best performance against all baselines. Specifically, for all datasets except SimB, we reduce the error by more than $30 \\%$ percent. In SimB, the improvement is not as significant because the interaction with environment only includes bouncing off the boundaries (see Figure 4 (c) and (d)). Meanwhile, changing IN to CIN further improve the performance. This again validates our hypothesis that the key to making accurate long-term feature prediction is the rich state representation extracted from an image. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
173,
|
| 778 |
+
617,
|
| 779 |
+
825,
|
| 780 |
+
743
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "5.3 DOES LEARNED MODEL GENERALIZE TO UNSEEN CONFIGURATIONS? ",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
176,
|
| 790 |
+
757,
|
| 791 |
+
692,
|
| 792 |
+
770
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "The general applicability of RoI Feature has been extensively verified in the computer vision community. As one of the benefits, our method can generalize to novel environments configurations without any modifications or online training. We test such a claim by testing on several novel environments unseen during training. Specifically, we construct 1) simulation billiard dataset contains 5 balls with radius 2 (SimB-5); 2) PHYRE-C where the test tasks are not seen during training; 3) ShapeStacks with 4 stacked blocks (SS-4). The results are shown in Table 2. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
776,
|
| 802 |
+
825,
|
| 803 |
+
861
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "Since VIN needs a fixed number of objects as input, it cannot generalize to a different number of objects, thus we don’t report its performance on SimB-5, PHYRE-C, and SS-4. In the SimB-5 and PHYRE-C setting, where generalization ability to different numbers and different appearances is required, our method reduce the prediction error by $7 5 \\%$ . In SS-4, the improvement is not as significant as the previous two because cropped image may be enough on this simpler dataset as mentioned above. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
174,
|
| 812 |
+
867,
|
| 813 |
+
823,
|
| 814 |
+
924
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 6
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "table",
|
| 820 |
+
"img_path": "images/7beace613bc020608801052c89f18747fd9be818952f8c7a379d6c9c7420a4fe.jpg",
|
| 821 |
+
"table_caption": [
|
| 822 |
+
"Table 3: PHYRE Planning results. RAND stands for a score function with random policy. We show that our method achieves state-ofthe-art on both within-task generalization as well as cross-task generalization. "
|
| 823 |
+
],
|
| 824 |
+
"table_footnote": [],
|
| 825 |
+
"table_body": "<table><tr><td></td><td>Within</td><td>Cross</td></tr><tr><td>RAND</td><td>13.7±0.5</td><td>13.0±5.0</td></tr><tr><td>DQN</td><td>77.6±1.1</td><td>36.8±9.7</td></tr><tr><td>Ours</td><td>85.2±0.7</td><td>42.2±7.1</td></tr></table>",
|
| 826 |
+
"bbox": [
|
| 827 |
+
215,
|
| 828 |
+
112,
|
| 829 |
+
419,
|
| 830 |
+
185
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/1ae42b21e1b94441e8e221df5f318c0df61a2557097a77564e791cc14f84c7aa.jpg",
|
| 837 |
+
"table_caption": [
|
| 838 |
+
"Table 4: Simulation Billiards planning results. To make a fair comparison, all of baselines and our methods are using the original interaction network and only the visual encoding method is changing. RAND stands for a policy taking random actions. "
|
| 839 |
+
],
|
| 840 |
+
"table_footnote": [],
|
| 841 |
+
"table_body": "<table><tr><td></td><td>Target State Error</td><td>Hitting Accuracy</td></tr><tr><td>RAND</td><td>36.91</td><td>9.50%</td></tr><tr><td>CVP</td><td>29.84</td><td>20.3%</td></tr><tr><td>VIN</td><td>9.11</td><td>51.2%</td></tr><tr><td>OM</td><td>8.75</td><td>54.5%</td></tr><tr><td>Ours</td><td>7.62</td><td>57.2%</td></tr></table>",
|
| 842 |
+
"bbox": [
|
| 843 |
+
514,
|
| 844 |
+
90,
|
| 845 |
+
774,
|
| 846 |
+
200
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
299,
|
| 856 |
+
823,
|
| 857 |
+
327
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "5.4 HOW WELL CAN THE LEARNED MODEL BE USED FOR PLANNING ACTIONS? ",
|
| 864 |
+
"text_level": 1,
|
| 865 |
+
"bbox": [
|
| 866 |
+
176,
|
| 867 |
+
339,
|
| 868 |
+
730,
|
| 869 |
+
353
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "The advantage of using a general purpose task-agnostic prediction model is that it can help us do downstream planning and reasoning tasks. In this section, we evaluate our prediction model in the recently proposed challenging PHYRE benchmark (Bakhtin et al., 2019) and simulation billiards planning tasks. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
359,
|
| 879 |
+
825,
|
| 880 |
+
415
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "PHYRE. We use the B-tier of the environment. In this task, we need to place one red ball at a certain location such that the green ball touches another blue/purple object (see figure 1 right for an example). Bakhtin et al. (2019) trains a classification network whose inputs are the first image and a candidate action, and outputs whether the action leads to success. Such a method does not utilize the dynamics information. In contrast, we can train a classifier on top of the predicted objects’ features so that it can utilize dynamics information and makes more accurate classification. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
174,
|
| 889 |
+
422,
|
| 890 |
+
825,
|
| 891 |
+
506
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 7
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "During training, we use the same prediction model as described in previous sections except for $T _ { \\mathrm { t r a i n } } = 1 0$ , and then attach an extra classifier on the objects’ features. Specifically, we concatenate each object’s features at the 0th, 3rd, 6th, and 9th timestep and then pass it through two fullyconnected layers to get a feature trajectory for each object. Then we take the average of all the objects’ features and pass it through one fully-connected layer to get a score indicating whether this placement solve the task. We minimize the cross-entropy loss between the score and the ground-truth label indicating whether the action is a success. Note that different from previous work (Bakhtin et al., 2019; Girdhar et al., 2020), our model does not need to convert the input image to the 7-channel segmentation map since object information is already utilized by our object-centric representation. During testing, We enumerate the first 10,000 actions from the pre-computed action set in Bakhtin et al. (2019) and render the red ball on the initial image as our prediction model’s input. Our final output is an sorted action list according to the model’s output score. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
513,
|
| 901 |
+
825,
|
| 902 |
+
679
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 7
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "We report the AUCCESS metric on the official 10 folds of train/test splits for both within-task generalization and cross-task generalization setting. The results are in Table 3. Our method achieves about 8 points improvement over the strong DQN baseline (Bakhtin et al., 2019) in the withintask generalization setting. On the more challenging setting of cross-task generalization where the environments may not be seen during training, our method is 6 points higher than DQN. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
686,
|
| 912 |
+
825,
|
| 913 |
+
756
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 7
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "SimB Planning. We consider two tasks in the SimB environment: 1) Billiard Target State. Given an initial and final configuration after 40 timesteps, the goal is to find one action that will lead to the target configuration. We report the smallest distances between the trajectory between timestep 35-45 and the final position. 2) Billiard Hitting. Given the initial configurations, the goal is to find an action that can hit the other two balls within 50 timesteps. ",
|
| 920 |
+
"bbox": [
|
| 921 |
+
174,
|
| 922 |
+
762,
|
| 923 |
+
823,
|
| 924 |
+
833
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 7
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "We firstly train a forward model taken image and action as input, to predict the first 4 object positions and render it to image. After that the rendered images are passed in our prediction model. We score each action according to the similarity between the generated trajectory and the goal state. Then the action with the highest score is selected. The results are shown in Table 4. Our results achieves best performance on all tasks. The full planning algorithm and implementation details are included in the appendix. ",
|
| 931 |
+
"bbox": [
|
| 932 |
+
174,
|
| 933 |
+
840,
|
| 934 |
+
825,
|
| 935 |
+
924
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 7
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "image",
|
| 941 |
+
"img_path": "images/d2f7e576d8d7fe742bce84281066ea6d0abae4d18ceb29d317b44eab945243b3.jpg",
|
| 942 |
+
"image_caption": [
|
| 943 |
+
"Figure 3: We show the qualitative comparisons between our method and other baselines in the PHYRE benchmark. Our model can accurately infer objects’ interactions and collisions with the environment over a long-range (10s), while the baseline methods cannot (the balls sometimes penetrates other objects). In this visualization, only the moving objects’ location and masks are predicted (the color is taken from the simulator). Static environment parts (with black color) are rendered from the initial image. "
|
| 944 |
+
],
|
| 945 |
+
"image_footnote": [],
|
| 946 |
+
"bbox": [
|
| 947 |
+
176,
|
| 948 |
+
99,
|
| 949 |
+
826,
|
| 950 |
+
356
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 8
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "image",
|
| 956 |
+
"img_path": "images/0b41d50c27cc9b6937b35a3119bc78bc8cf402bfc6746959eea4c38dcc388422.jpg",
|
| 957 |
+
"image_caption": [
|
| 958 |
+
"Figure 4: We show the qualitative results of our predicted trajectories in the other three (RealB, SimB, and SS) datasets. Our model could produce accurate and plausible predictions on different scenarios. "
|
| 959 |
+
],
|
| 960 |
+
"image_footnote": [],
|
| 961 |
+
"bbox": [
|
| 962 |
+
178,
|
| 963 |
+
479,
|
| 964 |
+
825,
|
| 965 |
+
641
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 8
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "5.5 QUALITATIVE RESULTS ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
176,
|
| 975 |
+
715,
|
| 976 |
+
377,
|
| 977 |
+
729
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "In figure 3, we show the qualitative prediction results both for our method as well as the OM and CVP baselines. In figure 4, we compare our prediction and ground-truth on the other three datasets. More results and videos are available at our Website. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
739,
|
| 987 |
+
825,
|
| 988 |
+
781
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 8
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "6 CONCLUSIONS ",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
176,
|
| 998 |
+
809,
|
| 999 |
+
328,
|
| 1000 |
+
824
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 8
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "In this paper, we leverage the modern computer vision techniques to propose Region Proposal Interaction Networks for physical interaction reasoning with visual inputs. We show that our general, yet simple method achieves a significant improvement and can generalize across both simulation and real-world environments for long-range prediction and planning. We believe this method may serve as a good benchmark for developing future methods in the field of learning intuitive physics, as well as their application to real-world robotics. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
840,
|
| 1010 |
+
825,
|
| 1011 |
+
922
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 8
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "ACKNOWLEDGEMENT ",
|
| 1018 |
+
"text_level": 1,
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
176,
|
| 1021 |
+
103,
|
| 1022 |
+
357,
|
| 1023 |
+
118
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 9
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "This work is supported in part by DARPA MCS and DARPA LwLL. We would like to thank the members of BAIR for fruitful discussions and comments. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
133,
|
| 1033 |
+
823,
|
| 1034 |
+
162
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 9
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "REFERENCES \nPulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In NeurIPS, 2016. 3 \nFrank Allgöwer and Alex Zheng. Nonlinear model predictive control. Birkhäuser, 2012. 1, 3 \nMohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. ICLR, 2017. 3 \nAnton Bakhtin, Laurens van der Maaten, Justin Johnson, Laura Gustafson, and Ross Girshick. Phyre: A new benchmark for physical reasoning. In NeurIPS, 2019. 2, 5, 8, 15, 16 \nPeter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In NeurIPS, 2016. 1, 2, 4 \nPeter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv, 2018. 3 \nKiran S Bhat, Steven M Seitz, Jovan Popovic, and Pradeep K Khosla. Computing the physical ´ parameters of rigid-body motion from video. In ECCV, 2002. 3 \nApratim Bhattacharyya, Mateusz Malinowski, Bernt Schiele, and Mario Fritz. Long-term image boundary extrapolation. arXiv, 2016. 2 \nMarcus A Brubaker, Leonid Sigal, and David J Fleet. Estimating contact dynamics. In ICCV. IEEE, 2009. 3 \nYuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A. Efros. Large-scale study of curiosity-driven learning. In ICLR, 2019. 3 \nEduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer Science & Business Media, 2013. 1, 3 \nMichael B Chang, Tomer Ullman, Antonio Torralba, and Joshua B Tenenbaum. A compositional object-based approach to learning physical dynamics. ICLR, 2016. 1, 2, 3 \nBaoyang Chen, Wenmin Wang, and Jinzhuo Wang. Video imagination from a single image with transformation generation. In ACMMM Workshop, 2017. 3 \nKenneth James Williams Craik. The nature of explanation. CUP Archive, 1952. 1 \nJifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 2 \nMarc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In ICML, 2011. 3 \nEmily Denton and Rob Fergus. Stochastic video generation with a learned prior. In ICML, 2018. 1, 3 \nFrederik Ebert, Sudeep Dasari, Alex X Lee, Sergey Levine, and Chelsea Finn. Robustness via retrying: Closed-loop robotic manipulation with self-supervised learning. arXiv, 2018a. 3 \nFrederik Ebert, Chelsea Finn, Sudeep Dasari, Annie Xie, Alex Lee, and Sergey Levine. Visual foresight: Model-based deep reinforcement learning for vision-based robotic control. arXiv, 2018b. 1 ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
171,
|
| 1043 |
+
161,
|
| 1044 |
+
828,
|
| 1045 |
+
922
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Sebastien Ehrhardt, Aron Monszpart, Niloy J Mitra, and Andrea Vedaldi. Learning a physical long-term predictor. arXiv, 2017. 2 ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
173,
|
| 1054 |
+
103,
|
| 1055 |
+
823,
|
| 1056 |
+
132
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 10
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Chelsea Finn and Sergey Levine. Deep visual foresight for planning robot motion. In ICRA, 2017. 3 ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
173,
|
| 1065 |
+
140,
|
| 1066 |
+
825,
|
| 1067 |
+
156
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 10
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In NeurIPS, 2016. 3 ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
176,
|
| 1076 |
+
164,
|
| 1077 |
+
823,
|
| 1078 |
+
194
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 10
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Katerina Fragkiadaki, Pulkit Agrawal, Sergey Levine, and Jitendra Malik. Learning visual predictive models of physics for playing billiards. ICLR, 2015. 2, 15 ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
173,
|
| 1087 |
+
202,
|
| 1088 |
+
823,
|
| 1089 |
+
231
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 10
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Rohit Girdhar, Laura Gustafson, Aaron Adcock, and Laurens van der Maaten. Forward prediction for physical reasoning. arXiv, 2020. 3, 8 ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
171,
|
| 1098 |
+
239,
|
| 1099 |
+
825,
|
| 1100 |
+
267
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 10
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Ross Girshick. Fast R-CNN. In ICCV, 2015. 2, 4 ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
275,
|
| 1110 |
+
501,
|
| 1111 |
+
291
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 10
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh R-CNN. In ICCV, 2019. 2 ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
169,
|
| 1120 |
+
299,
|
| 1121 |
+
751,
|
| 1122 |
+
315
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 10
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Oliver Groth, Fabian Fuchs, Ingmar Posner, and Andrea Vedaldi. Shapestacks: Learning vision-based physical intuition for generalised object stacking. In ECCV, 2018. 3 ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
174,
|
| 1131 |
+
323,
|
| 1132 |
+
826,
|
| 1133 |
+
353
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 10
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Radek Grzeszczuk, Demetri Terzopoulos, and Geoffrey Hinton. Neuroanimator: Fast neural network emulation and control of physics-based models. In SIGGRAPH, 1998. 2 ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
174,
|
| 1142 |
+
361,
|
| 1143 |
+
825,
|
| 1144 |
+
390
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 10
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Jessica Hamrick, Peter Battaglia, and Joshua B Tenenbaum. Internal physics models guide probabilistic judgments about object dynamics. In COGSCI, 2011. 3 ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
398,
|
| 1154 |
+
823,
|
| 1155 |
+
428
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 10
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask R-CNN. In ICCV, 2017. 2, 4 ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
174,
|
| 1164 |
+
435,
|
| 1165 |
+
821,
|
| 1166 |
+
452
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 10
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Michael Janner, Sergey Levine, William T Freeman, Joshua B Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-oriented prediction and planning. ICLR, 2019. 2, 3, 6 ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
459,
|
| 1176 |
+
823,
|
| 1177 |
+
502
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 10
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Dinesh Jayaraman, Frederik Ebert, Alexei A Efros, and Sergey Levine. Time-agnostic prediction: Predicting predictable video frames. In ICLR, 2019. 1 ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
174,
|
| 1186 |
+
511,
|
| 1187 |
+
823,
|
| 1188 |
+
540
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 10
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Xu Jia, Bert De Brabandere, Tinne Tuytelaars, and Luc V Gool. Dynamic filter networks. In NeurIPS, 2016. 3 ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
171,
|
| 1197 |
+
547,
|
| 1198 |
+
825,
|
| 1199 |
+
577
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 10
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Zhaoyin Jia, Andrew C Gallagher, Ashutosh Saxena, and Tsuhan Chen. 3d reasoning from blocks to stability. PAMI, 2015. 3 ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
173,
|
| 1208 |
+
585,
|
| 1209 |
+
825,
|
| 1210 |
+
614
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 10
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Michael I Jordan and David E Rumelhart. Forward models: Supervised learning with a distal teacher. Cognitive science, 1992. 3 ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
622,
|
| 1220 |
+
823,
|
| 1221 |
+
651
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 10
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv, 2014. 15 ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
169,
|
| 1230 |
+
660,
|
| 1231 |
+
818,
|
| 1232 |
+
676
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 10
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. ICLR, 2014. 14 ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
684,
|
| 1242 |
+
758,
|
| 1243 |
+
700
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 10
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Thomas Kipf, Elise van der Pol, and Max Welling. Contrastive learning of structured world models. ICLR, 2020. 2, 6 ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
707,
|
| 1253 |
+
821,
|
| 1254 |
+
738
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 10
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "James R Kubricht, Keith J Holyoak, and Hongjing Lu. Intuitive physics: Current research and controversies. Trends in cognitive sciences, 2017. 1 ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
173,
|
| 1263 |
+
746,
|
| 1264 |
+
823,
|
| 1265 |
+
775
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv, 2018. 1, 3 ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
171,
|
| 1274 |
+
782,
|
| 1275 |
+
823,
|
| 1276 |
+
813
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Adam Lerer, Sam Gross, and Rob Fergus. Learning physical intuition of block towers by example. In ICML, 2016. 3 ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
173,
|
| 1285 |
+
820,
|
| 1286 |
+
825,
|
| 1287 |
+
849
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Wenbin Li, Seyedmajid Azimi, Aleš Leonardis, and Mario Fritz. To fall or not to fall: A visual approach to physical stability prediction. arXiv, 2016a. 3 ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
173,
|
| 1296 |
+
858,
|
| 1297 |
+
823,
|
| 1298 |
+
887
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Wenbin Li, Aleš Leonardis, and Mario Fritz. Visual stability prediction and its application to manipulation. AAAI, 2016b. 3 ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
174,
|
| 1307 |
+
895,
|
| 1308 |
+
821,
|
| 1309 |
+
924
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Yunzhu Li, Jiajun Wu, Jun-Yan Zhu, Joshua B Tenenbaum, Antonio Torralba, and Russ Tedrake. Propagation networks for model-based control under partial observation. In ICRA, 2019. 3 ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
173,
|
| 1318 |
+
103,
|
| 1319 |
+
826,
|
| 1320 |
+
132
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 11
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 5 ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
173,
|
| 1329 |
+
142,
|
| 1330 |
+
825,
|
| 1331 |
+
171
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 11
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 5 ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
180,
|
| 1341 |
+
825,
|
| 1342 |
+
210
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 11
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Ziwei Liu, Raymond A Yeh, Xiaoou Tang, Yiming Liu, and Aseem Agarwala. Video frame synthesis using deep voxel flow. In ICCV, 2017. 3 ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
219,
|
| 1352 |
+
823,
|
| 1353 |
+
248
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 11
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv, 2016. 15 ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
176,
|
| 1362 |
+
258,
|
| 1363 |
+
825,
|
| 1364 |
+
287
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 11
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Michael McCloskey. Intuitive physics. Scientific american, 1983. 1 ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
297,
|
| 1374 |
+
619,
|
| 1375 |
+
314
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 11
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Roozbeh Mottaghi, Hessam Bagherinezhad, Mohammad Rastegari, and Ali Farhadi. Newtonian scene understanding: Unfolding the dynamics of objects in static images. In CVPR, 2016a. 3 ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
174,
|
| 1384 |
+
323,
|
| 1385 |
+
826,
|
| 1386 |
+
352
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 11
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Roozbeh Mottaghi, Mohammad Rastegari, Abhinav Gupta, and Ali Farhadi. “what happens if...” learning to predict the effect of forces in images. In ECCV, 2016b. 3 ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
362,
|
| 1396 |
+
826,
|
| 1397 |
+
391
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 11
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 4, 14 ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
400,
|
| 1407 |
+
826,
|
| 1408 |
+
429
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NeurIPS, 2015. 3 ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
171,
|
| 1417 |
+
439,
|
| 1418 |
+
823,
|
| 1419 |
+
469
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 11
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. ICML, 2017. 3 ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
173,
|
| 1428 |
+
478,
|
| 1429 |
+
823,
|
| 1430 |
+
507
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 11
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Deepak Pathak, Parsa Mahmoudieh, Guanghao Luo, Pulkit Agrawal, Dian Chen, Yide Shentu, Evan Shelhamer, Jitendra Malik, Alexei A Efros, and Trevor Darrell. Zero-shot visual imitation. In ICLR, 2018. 3 ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
173,
|
| 1439 |
+
517,
|
| 1440 |
+
823,
|
| 1441 |
+
559
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 11
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 4 ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
174,
|
| 1450 |
+
570,
|
| 1451 |
+
821,
|
| 1452 |
+
599
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 11
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter W Battaglia. Learning to simulate complex physics with graph networks. arXiv, 2020. 1 ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
176,
|
| 1461 |
+
608,
|
| 1462 |
+
823,
|
| 1463 |
+
638
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 11
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Network, 2009. 3 ",
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
174,
|
| 1472 |
+
647,
|
| 1473 |
+
823,
|
| 1474 |
+
678
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 11
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"text": "Russell Stewart and Stefano Ermon. Label-free supervision of neural networks with physics and domain knowledge. In AAAI, 2017. 2 ",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
173,
|
| 1483 |
+
686,
|
| 1484 |
+
823,
|
| 1485 |
+
715
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 11
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. CVPR, 2017. 3 ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
173,
|
| 1494 |
+
726,
|
| 1495 |
+
825,
|
| 1496 |
+
755
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 11
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "Rishi Veerapaneni, John D Co-Reyes, Michael Chang, Michael Janner, Chelsea Finn, Jiajun Wu, Joshua B Tenenbaum, and Sergey Levine. Entity abstraction in visual model-based reinforcement learning. In CoRL, 2019. 6 ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
176,
|
| 1505 |
+
763,
|
| 1506 |
+
825,
|
| 1507 |
+
806
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 11
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. ICLR, 2017a. 3 ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
171,
|
| 1516 |
+
818,
|
| 1517 |
+
823,
|
| 1518 |
+
847
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 11
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. ICML, 2017b. 3 ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
171,
|
| 1527 |
+
856,
|
| 1528 |
+
823,
|
| 1529 |
+
886
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 11
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, 2016. 3 ",
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
176,
|
| 1538 |
+
895,
|
| 1539 |
+
823,
|
| 1540 |
+
924
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 11
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "Niklas Wahlström, Thomas B Schön, and Marc Peter Deisenroth. From pixels to torques: Policy learning with deep dynamical models. ICML, 2015. 3 \nJacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In ECCV, 2016. 1, 3 \nJacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In ICCV, 2017. 3 \nNicholas Watters, Daniel Zoran, Theophane Weber, Peter Battaglia, Razvan Pascanu, and Andrea Tacchetti. Visual interaction networks: Learning a physics simulator from video. In NeurIPS, 2017. 2, 3, 4, 5, 6 \nJiajun Wu, Ilker Yildirim, Joseph J Lim, Bill Freeman, and Josh Tenenbaum. Galileo: Perceiving physical object properties by integrating a physics engine with deep learning. In NeurIPS, 2015. 3 \nJiajun Wu, Joseph J Lim, Hongyi Zhang, Joshua B Tenenbaum, and William T Freeman. Physics 101: Learning physical object properties from unlabeled videos. In BMVC, 2016. 3 \nJiajun Wu, Erika Lu, Pushmeet Kohli, Bill Freeman, and Josh Tenenbaum. Learning to see physics via visual de-animation. In NeurIPS, 2017. 6 \nTianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In NeurIPS, 2016. 3 \nTian Ye, Xiaolong Wang, James Davidson, and Abhinav Gupta. Interpretable intuitive physics model. ECCV, 2018. 3 \nYufei Ye, Maneesh Singh, Abhinav Gupta, and Shubham Tulsiani. Compositional video prediction. ICCV, 2019. 2, 3, 5, 6, 14, 15 \nKexin Yi, Chuang Gan, Yunzhu Li, Pushmeet Kohli, Jiajun Wu, Antonio Torralba, and Joshua B Tenenbaum. Clevrer: Collision events for video representation and reasoning. In ICLR, 2020. 6 ",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
171,
|
| 1549 |
+
99,
|
| 1550 |
+
828,
|
| 1551 |
+
525
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 12
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "A IMPLEMENTATION DETAILS ",
|
| 1558 |
+
"text_level": 1,
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
178,
|
| 1561 |
+
102,
|
| 1562 |
+
439,
|
| 1563 |
+
117
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 13
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "A.1 NETWORK ARCHITECTURE DETAILS ",
|
| 1570 |
+
"text_level": 1,
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
176,
|
| 1573 |
+
135,
|
| 1574 |
+
472,
|
| 1575 |
+
150
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 13
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "Backbone Networks: We use the same backbone network for our method and all the baselines (VIN, OM, CVP). We choose the hourglass network (Newell et al., 2016) as the image feature extractor. Given an input image, the hourglass network firstly applies a $7 \\times 7$ stride-2 convolution, three residual blocks with channel dimension $d / 4$ , and a stride-2 max pooling on it. Then this intermediate feature representation is fed into one hourglass modules. In the hourglass module, the feature maps are downsampled with 3 stride-2 residual blocks and then up-sampled with nearest neighbor interpolation. The dimensions of both the input channel and the output channel of each residual block are $d$ . For SimB, we use $d = 6 4$ since the visual information in this environment is relatively simple. For RealB, PHYRE, and ShapeStacks, $d = 2 5 6$ . We use batch normalization before each convolutional layer in the backbone network. The resulting feature map size is $d \\times \\frac { H } { 4 } \\times \\frac { W } { 4 }$ , where $H$ , $W$ is the input image size and 4 is the spatial feature stride of the hourglass network. ",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
174,
|
| 1584 |
+
161,
|
| 1585 |
+
826,
|
| 1586 |
+
314
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 13
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"text": "The output features are transformed to object-centric representations differently for our method and each of the baseline methods: ",
|
| 1593 |
+
"bbox": [
|
| 1594 |
+
174,
|
| 1595 |
+
320,
|
| 1596 |
+
821,
|
| 1597 |
+
349
|
| 1598 |
+
],
|
| 1599 |
+
"page_idx": 13
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"type": "text",
|
| 1603 |
+
"text": "VIN: The resulting feature map is forwarded to 4 convolutional layers with stride 2 and a spatial global average pooling layer to get a $d$ dimensional feature vector. This feature vector is transformed to $d \\times m$ by one fully-connected layer. This feature will be reshaped to $m$ vectors with $d$ channel dimensional to represent each object. This representation is refined by two $d \\times d$ fully-connected layers and passed to the (convolutional) interaction network. ",
|
| 1604 |
+
"bbox": [
|
| 1605 |
+
174,
|
| 1606 |
+
356,
|
| 1607 |
+
825,
|
| 1608 |
+
426
|
| 1609 |
+
],
|
| 1610 |
+
"page_idx": 13
|
| 1611 |
+
},
|
| 1612 |
+
{
|
| 1613 |
+
"type": "text",
|
| 1614 |
+
"text": "M and CVP: The output feature map is of shape $m \\times d \\times \\textstyle { \\frac { H } { 4 } } \\times \\frac { W } { 4 }$ because this method produce $m$ masked (or cropped) images as input. The resulting feature map is forwarded to 4 convolutional layers with stride 2 and a spatial global average pooling layer to get a $d$ dimensional feature vector and the output feature is of size $m \\times d$ , representing the features of $m$ objects. This representation is refined by two $d \\times d$ fully-connected layers and passed to the (convolutional) interaction network. ",
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
174,
|
| 1617 |
+
431,
|
| 1618 |
+
825,
|
| 1619 |
+
502
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 13
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "text",
|
| 1625 |
+
"text": "A.2 UNCERTAINTY MODELING. ",
|
| 1626 |
+
"text_level": 1,
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
176,
|
| 1629 |
+
520,
|
| 1630 |
+
406,
|
| 1631 |
+
534
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 13
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "Only in the shapestack datasets, we also incorporate uncertainty estimation follows (Ye et al., 2019), by modeling the latent distribution using a variational auto-encoder (Kingma & Welling, 2014). For the complete details, we refer the reader to (Ye et al., 2019). Here we only give a summary: we build an encoder $h$ which takes the image feature from first $\\mathcal { F } ^ { 0 }$ and last frame $\\check { \\mathcal { F } } ^ { T }$ of a video sequence as the input. The output of $h$ is a distribution parameter, denoted by $h ( \\mathbf { u } | \\mathcal { F } ^ { 0 } , \\mathcal { F } ^ { T } )$ . Given a particular sample from such distribution, we recover the latent variable by feeding them into a one-layer LSTM and merge into the object feature $\\ v x _ { i } ^ { t }$ . In this case, our pipeline is trained with an additional loss that minimize the KL divergence between the predicted distribution and normal distribution (Kingma & Welling, 2014). ",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
174,
|
| 1640 |
+
545,
|
| 1641 |
+
825,
|
| 1642 |
+
670
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 13
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "text",
|
| 1648 |
+
"text": "During inference, we sample 100 trajectories for each test image and report the minimum of them. This setting is the same as the original CVP paper $\\mathrm { Y e }$ et al. (2019). Our implementation gets $5 . 2 8 \\times 1 0 ^ { - 3 }$ squared $\\ell _ { 2 }$ distance for $T \\in [ 0 , T _ { \\mathrm { t r a i n } } ]$ while the original paper report $6 . 6 9 \\times 1 0 ^ { - 3 }$ . ",
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
176,
|
| 1651 |
+
678,
|
| 1652 |
+
823,
|
| 1653 |
+
719
|
| 1654 |
+
],
|
| 1655 |
+
"page_idx": 13
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"type": "text",
|
| 1659 |
+
"text": "A.3 DATASET DETAILS ",
|
| 1660 |
+
"text_level": 1,
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
176,
|
| 1663 |
+
736,
|
| 1664 |
+
348,
|
| 1665 |
+
751
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 13
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"text": "SimB: To get the initial velocity, the magnitude (number of pixels moved per timestep) is sampled from [2, 3, 4, 5, 6] and the direction is sampled from $\\{ 6 i \\pi , i = 0 , 1 , \\ldots , 1 1 \\}$ . ",
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
173,
|
| 1674 |
+
762,
|
| 1675 |
+
823,
|
| 1676 |
+
791
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 13
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"text": "RealB: We found that the bounding box prediction results are accurate enough to serve as the groundtruth. After running the detector, we also manually go through the dataset and filter out images with incorrect detections. ",
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
174,
|
| 1685 |
+
796,
|
| 1686 |
+
825,
|
| 1687 |
+
839
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 13
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "ShapeStacks: There are 1,320 training videos and 296 testing videos, with 32 frames per video. Only objects’ center positions provided. Following (Ye et al., 2019), we assume the object bounding box is square and of size $7 0 \\times 7 0$ . ",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
174,
|
| 1696 |
+
845,
|
| 1697 |
+
825,
|
| 1698 |
+
888
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 13
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "text",
|
| 1704 |
+
"text": "PHYRE: For within task generalization (PHYRE-W), the training set contains 80 templates for each of the 25 task. The testing set contains the remaining 20 templates from each task. For cross task generalization (PHYRE-C), the training set contains 100 templates from 20 tasks while the test set contains 100 templates from the remaining 5 tasks. For each template, we randomly sample a maximum 100 success and 400 failure actions to collect the trajectories to train our model. The image sequence is temporally downsampled by 60. ",
|
| 1705 |
+
"bbox": [
|
| 1706 |
+
173,
|
| 1707 |
+
895,
|
| 1708 |
+
821,
|
| 1709 |
+
924
|
| 1710 |
+
],
|
| 1711 |
+
"page_idx": 13
|
| 1712 |
+
},
|
| 1713 |
+
{
|
| 1714 |
+
"type": "text",
|
| 1715 |
+
"text": "",
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
174,
|
| 1718 |
+
103,
|
| 1719 |
+
823,
|
| 1720 |
+
160
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 14
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "text",
|
| 1726 |
+
"text": "For our physical reasoning experiments in section 5.4, we train the model using 400 successful actions and 1600 failure actions per template. We use the validation set to select hyper-parameters first, and then do training on the union of train and validation sets and report the final results in the test set. ",
|
| 1727 |
+
"bbox": [
|
| 1728 |
+
176,
|
| 1729 |
+
166,
|
| 1730 |
+
823,
|
| 1731 |
+
208
|
| 1732 |
+
],
|
| 1733 |
+
"page_idx": 14
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"type": "text",
|
| 1737 |
+
"text": "A.4 HYPERPARAMETERS ",
|
| 1738 |
+
"text_level": 1,
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
176,
|
| 1741 |
+
224,
|
| 1742 |
+
361,
|
| 1743 |
+
239
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 14
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "text",
|
| 1749 |
+
"text": "We use Adam optimizer Kingma & Ba (2014) with cosine decay Loshchilov & Hutter (2016) to train our networks. The default input frames is $N = 4$ except $N = 1$ for ShapeStacks and PHYRE. We set $d$ to be 256 except for simulation billiard $d$ is 64. During training, $T$ (denoted as $T _ { \\mathrm { t r a i n . } }$ ) is set to be 20 for SimB and RealB, 5 for PHYRE, and 15 for fair comparison with Ye et al. (2019). The discounted factor $\\lambda _ { t }$ is set to be $\\begin{array} { r } { \\big ( \\frac { \\mathrm { c u r r e n t \\_ i t e r } } { \\mathrm { m a x \\_ i t e r } } \\big ) ^ { t } } \\end{array}$ . ",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
174,
|
| 1752 |
+
251,
|
| 1753 |
+
825,
|
| 1754 |
+
324
|
| 1755 |
+
],
|
| 1756 |
+
"page_idx": 14
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"type": "text",
|
| 1760 |
+
"text": "Simulation Billiards. The image size is $6 4 \\times 6 4$ . We train the model for 100K iterations with a learning rate $2 \\times 1 0 ^ { - 3 }$ , weight decay $\\mathrm { 1 \\check { \\times } 1 0 ^ { - 6 } }$ , and batch size 200. ",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
173,
|
| 1763 |
+
329,
|
| 1764 |
+
823,
|
| 1765 |
+
357
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 14
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "text",
|
| 1771 |
+
"text": "Real World Billiards. The image is resized to $1 9 2 \\times 6 4$ . We train the model for 240K iterations with a learning rate $1 \\times 1 0 ^ { - 4 }$ , weight decay $1 \\times 1 0 ^ { - 6 }$ , and batch size 20. ",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
174,
|
| 1774 |
+
364,
|
| 1775 |
+
823,
|
| 1776 |
+
392
|
| 1777 |
+
],
|
| 1778 |
+
"page_idx": 14
|
| 1779 |
+
},
|
| 1780 |
+
{
|
| 1781 |
+
"type": "text",
|
| 1782 |
+
"text": "PHYRE. The image is resized to $1 2 8 \\times 1 2 8$ . We train the model for 150K iterations with a learning rate $2 \\times 1 0 ^ { - 4 }$ , weight decay $3 \\times 1 0 ^ { - 7 }$ , and batch size 20. ",
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
174,
|
| 1785 |
+
400,
|
| 1786 |
+
821,
|
| 1787 |
+
428
|
| 1788 |
+
],
|
| 1789 |
+
"page_idx": 14
|
| 1790 |
+
},
|
| 1791 |
+
{
|
| 1792 |
+
"type": "text",
|
| 1793 |
+
"text": "ShapeStacks. The image is resized to $2 2 4 \\times 2 2 4$ . We train the model for 25K iterations with a learning rate $2 \\times 1 0 ^ { - 4 }$ , no weight decay (the same as Ye et al. (2019)), and batch size 40. In this dataset, we apply uncertainty modeling. The loss weight of KL-divergence is $3 \\times 1 0 ^ { - 5 }$ . During inference, following Ye et al. (2019), we randomly sample 100 outputs from our model, and select the best (in terms of the distance to ground-truth) of them as our model’s output. ",
|
| 1794 |
+
"bbox": [
|
| 1795 |
+
174,
|
| 1796 |
+
434,
|
| 1797 |
+
825,
|
| 1798 |
+
505
|
| 1799 |
+
],
|
| 1800 |
+
"page_idx": 14
|
| 1801 |
+
},
|
| 1802 |
+
{
|
| 1803 |
+
"type": "text",
|
| 1804 |
+
"text": "B PLANNING DETAILS ",
|
| 1805 |
+
"text_level": 1,
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
176,
|
| 1808 |
+
525,
|
| 1809 |
+
377,
|
| 1810 |
+
541
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 14
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "text",
|
| 1816 |
+
"text": "Given an initial state (represented by an image) and a goal, we aim to produce an action that can lead to the goal from the initial state. Our planning algorithm works in a similar way as visual imagination Fragkiadaki et al. (2015): Firstly, we select a candidate action a from a candidate action set $\\mathcal { A }$ . Then we generate the input images $\\mathcal { T }$ . For SimB, we train a forward model take the initial image and the action embedding to generate object positions for the next 3 steps. Then we use the simulator to generate the 3 images. For PHYRE, we convert the action to the red ball using the simulator and get the initial image. After that, we run our model described in section 5.4 and the score of each action is simply the classifier’s output. We then select the action with the max score. ",
|
| 1817 |
+
"bbox": [
|
| 1818 |
+
174,
|
| 1819 |
+
556,
|
| 1820 |
+
825,
|
| 1821 |
+
667
|
| 1822 |
+
],
|
| 1823 |
+
"page_idx": 14
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"type": "text",
|
| 1827 |
+
"text": "We introduce the action set for each task in section B.1, and how to design distance function in B.2. \nA summary of our algorithm is in Algorithm 1. ",
|
| 1828 |
+
"bbox": [
|
| 1829 |
+
174,
|
| 1830 |
+
674,
|
| 1831 |
+
823,
|
| 1832 |
+
703
|
| 1833 |
+
],
|
| 1834 |
+
"page_idx": 14
|
| 1835 |
+
},
|
| 1836 |
+
{
|
| 1837 |
+
"type": "text",
|
| 1838 |
+
"text": "B.1 CANDIDATE ACTION SETS ",
|
| 1839 |
+
"text_level": 1,
|
| 1840 |
+
"bbox": [
|
| 1841 |
+
176,
|
| 1842 |
+
719,
|
| 1843 |
+
400,
|
| 1844 |
+
734
|
| 1845 |
+
],
|
| 1846 |
+
"page_idx": 14
|
| 1847 |
+
},
|
| 1848 |
+
{
|
| 1849 |
+
"type": "text",
|
| 1850 |
+
"text": "For simulation billiard, the action is 3 dimensional. The first two dimensions stand for the direction of the force. The last dimension stands for the magnitude of the force. During doing planning, we enumerate over 5 different magnitudes and 12 different angles, leading to 60 possible actions. All of the initial condition is guaranteed to have a solution. ",
|
| 1851 |
+
"bbox": [
|
| 1852 |
+
174,
|
| 1853 |
+
746,
|
| 1854 |
+
825,
|
| 1855 |
+
801
|
| 1856 |
+
],
|
| 1857 |
+
"page_idx": 14
|
| 1858 |
+
},
|
| 1859 |
+
{
|
| 1860 |
+
"type": "text",
|
| 1861 |
+
"text": "For PHYRE, the action is also 3 dimensional. The first two dimensions stand for the location placing the red ball. The last dimension stands for the radius of the ball. Following (Bakhtin et al., 2019), we use the first 10k actions provided by the benchmark. ",
|
| 1862 |
+
"bbox": [
|
| 1863 |
+
174,
|
| 1864 |
+
808,
|
| 1865 |
+
825,
|
| 1866 |
+
851
|
| 1867 |
+
],
|
| 1868 |
+
"page_idx": 14
|
| 1869 |
+
},
|
| 1870 |
+
{
|
| 1871 |
+
"type": "text",
|
| 1872 |
+
"text": "B.2 DISTANCE FUNCTION ",
|
| 1873 |
+
"text_level": 1,
|
| 1874 |
+
"bbox": [
|
| 1875 |
+
176,
|
| 1876 |
+
867,
|
| 1877 |
+
367,
|
| 1878 |
+
882
|
| 1879 |
+
],
|
| 1880 |
+
"page_idx": 14
|
| 1881 |
+
},
|
| 1882 |
+
{
|
| 1883 |
+
"type": "text",
|
| 1884 |
+
"text": "Init-End State Error. Denote the given target location of $m$ objects as $y \\in R ^ { m \\times 2 }$ . We use the following distance function, which measures the distance between the final rollout location and the ",
|
| 1885 |
+
"bbox": [
|
| 1886 |
+
173,
|
| 1887 |
+
895,
|
| 1888 |
+
823,
|
| 1889 |
+
922
|
| 1890 |
+
],
|
| 1891 |
+
"page_idx": 14
|
| 1892 |
+
},
|
| 1893 |
+
{
|
| 1894 |
+
"type": "text",
|
| 1895 |
+
"text": "target location: ",
|
| 1896 |
+
"bbox": [
|
| 1897 |
+
173,
|
| 1898 |
+
103,
|
| 1899 |
+
274,
|
| 1900 |
+
118
|
| 1901 |
+
],
|
| 1902 |
+
"page_idx": 15
|
| 1903 |
+
},
|
| 1904 |
+
{
|
| 1905 |
+
"type": "equation",
|
| 1906 |
+
"img_path": "images/23b9b79138180f34629dc569b6a4984dc827218b3c64a7a4c7b93886a4ed09ba.jpg",
|
| 1907 |
+
"text": "$$\nD = \\sum _ { i = 1 } ^ { m } \\sum _ { j = 1 } ^ { 2 } ( \\hat { p } _ { T , i , j } - y _ { i , j } ) ^ { 2 }\n$$",
|
| 1908 |
+
"text_format": "latex",
|
| 1909 |
+
"bbox": [
|
| 1910 |
+
401,
|
| 1911 |
+
114,
|
| 1912 |
+
594,
|
| 1913 |
+
160
|
| 1914 |
+
],
|
| 1915 |
+
"page_idx": 15
|
| 1916 |
+
},
|
| 1917 |
+
{
|
| 1918 |
+
"type": "text",
|
| 1919 |
+
"text": "Hitting Accuracy. Denote the given initial location of $m$ objects as $x \\in R ^ { m \\times 2 }$ . We apply force at the object $i ^ { \\prime }$ . We use the following distance function, which prefer the larger moving distance for objects other than $i ^ { \\prime }$ : ",
|
| 1920 |
+
"bbox": [
|
| 1921 |
+
174,
|
| 1922 |
+
167,
|
| 1923 |
+
823,
|
| 1924 |
+
209
|
| 1925 |
+
],
|
| 1926 |
+
"page_idx": 15
|
| 1927 |
+
},
|
| 1928 |
+
{
|
| 1929 |
+
"type": "equation",
|
| 1930 |
+
"img_path": "images/5d9e390619b5491c2cb7f6e579355ed31cdbf899381189db3e63cd3983b125e3.jpg",
|
| 1931 |
+
"text": "$$\nD = - \\operatorname* { m i n } _ { i } \\sum _ { \\substack { i = 1 , i \\neq i ^ { \\prime } } } ^ { m } \\sum _ { j = 1 } ^ { 2 } ( \\hat { p } _ { T , i , j } - x _ { i , j } ) ^ { 2 }\n$$",
|
| 1932 |
+
"text_format": "latex",
|
| 1933 |
+
"bbox": [
|
| 1934 |
+
367,
|
| 1935 |
+
207,
|
| 1936 |
+
630,
|
| 1937 |
+
252
|
| 1938 |
+
],
|
| 1939 |
+
"page_idx": 15
|
| 1940 |
+
},
|
| 1941 |
+
{
|
| 1942 |
+
"type": "text",
|
| 1943 |
+
"text": "PHYRE task. Since we already train a classifier to classify whether the predicted trajectory will lead to a successful solution of the current task, during test time we can directly use it to classify whether the current action will lead to a successful solution. The distance function is just the negative output score. ",
|
| 1944 |
+
"bbox": [
|
| 1945 |
+
173,
|
| 1946 |
+
261,
|
| 1947 |
+
825,
|
| 1948 |
+
316
|
| 1949 |
+
],
|
| 1950 |
+
"page_idx": 15
|
| 1951 |
+
},
|
| 1952 |
+
{
|
| 1953 |
+
"type": "text",
|
| 1954 |
+
"text": "B.3 PLANNING ALGORITHM ",
|
| 1955 |
+
"text_level": 1,
|
| 1956 |
+
"bbox": [
|
| 1957 |
+
174,
|
| 1958 |
+
334,
|
| 1959 |
+
385,
|
| 1960 |
+
348
|
| 1961 |
+
],
|
| 1962 |
+
"page_idx": 15
|
| 1963 |
+
},
|
| 1964 |
+
{
|
| 1965 |
+
"type": "text",
|
| 1966 |
+
"text": "Algorithm 1: Planning Algorithm for Simulated Billiard and PHYRE ",
|
| 1967 |
+
"text_level": 1,
|
| 1968 |
+
"bbox": [
|
| 1969 |
+
174,
|
| 1970 |
+
367,
|
| 1971 |
+
632,
|
| 1972 |
+
382
|
| 1973 |
+
],
|
| 1974 |
+
"page_idx": 15
|
| 1975 |
+
},
|
| 1976 |
+
{
|
| 1977 |
+
"type": "text",
|
| 1978 |
+
"text": "Input: candidate actions $\\begin{array} { r } { \\boldsymbol { \\mathcal { A } } = \\{ \\mathbf { a } _ { i } \\} } \\end{array}$ , initial state $x$ , end state $y$ (optional) \nOutput: action $\\mathbf { a } ^ { * }$ \nfor a in $\\mathcal { A }$ do $\\mathcal { T } = \\mathrm { S i m u l a t i o n } ( x , \\mathbf { a } )$ ; $\\hat { p } =$ PredictionModel $( \\mathcal { T } )$ ; calculate $D$ according to task as in B.2; if $D < D ^ { * }$ then $D ^ { * } = D$ ; $a ^ { * } = a$ ; end \nend ",
|
| 1979 |
+
"bbox": [
|
| 1980 |
+
171,
|
| 1981 |
+
386,
|
| 1982 |
+
660,
|
| 1983 |
+
545
|
| 1984 |
+
],
|
| 1985 |
+
"page_idx": 15
|
| 1986 |
+
},
|
| 1987 |
+
{
|
| 1988 |
+
"type": "text",
|
| 1989 |
+
"text": "C PHYRE 10 FOLD RESULTS ",
|
| 1990 |
+
"text_level": 1,
|
| 1991 |
+
"bbox": [
|
| 1992 |
+
176,
|
| 1993 |
+
568,
|
| 1994 |
+
431,
|
| 1995 |
+
585
|
| 1996 |
+
],
|
| 1997 |
+
"page_idx": 15
|
| 1998 |
+
},
|
| 1999 |
+
{
|
| 2000 |
+
"type": "text",
|
| 2001 |
+
"text": "To enable future work to compare with our method, we provide AUCCESS scores for all folds in Table 5. The number of RAND and DQN is taken from Bakhtin et al. (2019). ",
|
| 2002 |
+
"bbox": [
|
| 2003 |
+
173,
|
| 2004 |
+
599,
|
| 2005 |
+
825,
|
| 2006 |
+
630
|
| 2007 |
+
],
|
| 2008 |
+
"page_idx": 15
|
| 2009 |
+
},
|
| 2010 |
+
{
|
| 2011 |
+
"type": "table",
|
| 2012 |
+
"img_path": "images/3b41d5e72e65b3c83e8cbf9dcf6ded21e5ae03eefb7e5fd08412600d6e70ad1a.jpg",
|
| 2013 |
+
"table_caption": [
|
| 2014 |
+
"Table 5: The AUCCESS scores for each of evaluated fold. "
|
| 2015 |
+
],
|
| 2016 |
+
"table_footnote": [],
|
| 2017 |
+
"table_body": "<table><tr><td rowspan=\"2\">setting</td><td rowspan=\"2\">method</td><td colspan=\"10\">fold id</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td rowspan=\"3\">B (within)</td><td>RAND</td><td>13.44</td><td>14.01</td><td>13.79</td><td>13.80</td><td>12.75</td><td>13.34</td><td>13.95</td><td>14.30</td><td>13.36</td><td>14.33</td></tr><tr><td>DQN</td><td>76.82 79.72</td><td></td><td>78.22</td><td>75.86</td><td>77.03</td><td>78.42</td><td>78.01</td><td>77.34</td><td>78.04</td><td>76.87</td></tr><tr><td>Ours</td><td>85.49</td><td>86.57</td><td>85.58</td><td>84.11</td><td>85.30</td><td>85.18</td><td>84.78</td><td>84.32</td><td>85.71</td><td>85.17</td></tr><tr><td rowspan=\"3\">B (cross)</td><td>RAND</td><td>11.78</td><td>12.42</td><td>18.18</td><td>12.42</td><td>3.81</td><td>22.50</td><td>11.73</td><td>13.29</td><td>8.94</td><td>14.60</td></tr><tr><td>DQN</td><td>43.69 30.96 43.05 43.91 22.77</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>44.40 34.53 39.20 18.98 46.46</td></tr><tr><td>Ours</td><td>50.86 36.58 55.44 38.34 37.11 47.23 3.23 47.19 32.23 38.76</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 2018 |
+
"bbox": [
|
| 2019 |
+
196,
|
| 2020 |
+
641,
|
| 2021 |
+
803,
|
| 2022 |
+
800
|
| 2023 |
+
],
|
| 2024 |
+
"page_idx": 15
|
| 2025 |
+
}
|
| 2026 |
+
]
|
parse/train/_X_4Akcd8Re/_X_4Akcd8Re_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_X_4Akcd8Re/_X_4Akcd8Re_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/nzpLWnVAyah/nzpLWnVAyah.md
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON THE STABILITY OF FINE-TUNING BERT: MISCONCEPTIONS, EXPLANATIONS, AND STRONG BASELINES
|
| 2 |
+
|
| 3 |
+
Marius Mosbach Spoken Language Systems (LSV) Saarland Informatics Campus, Saarland University mmosbach@lsv.uni-saarland.de
|
| 4 |
+
|
| 5 |
+
Maksym Andriushchenko Theory of Machine Learning Lab École polytechnique fédérale de Lausanne maksym.andriushchenko@epfl.ch
|
| 6 |
+
|
| 7 |
+
# Dietrich Klakow
|
| 8 |
+
|
| 9 |
+
Spoken Language Systems (LSV) Saarland Informatics Campus, Saarland University dietrich.klakow@lsv.uni-saarland.de
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Fine-tuning pre-trained transformer-based language models such as BERT has become a common practice dominating leaderboards across various NLP benchmarks. Despite the strong empirical performance of fine-tuned models, fine-tuning is an unstable process: training the same model with multiple random seeds can result in a large variance of the task performance. Previous literature (Devlin et al., 2019; Lee et al., 2020; Dodge et al., 2020) identified two potential reasons for the observed instability: catastrophic forgetting and small size of the fine-tuning datasets. In this paper, we show that both hypotheses fail to explain the fine-tuning instability. We analyze BERT, RoBERTa, and ALBERT, fine-tuned on commonly used datasets from the GLUE benchmark, and show that the observed instability is caused by optimization difficulties that lead to vanishing gradients. Additionally, we show that the remaining variance of the downstream task performance can be attributed to differences in generalization where fine-tuned models with the same training loss exhibit noticeably different test performance. Based on our analysis, we present a simple but strong baseline that makes fine-tuning BERT-based models significantly more stable than the previously proposed approaches. Code to reproduce our results is available online: https://github.com/uds-lsv/bert-stable-fine-tuning.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Pre-trained transformer-based masked language models such as BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019), and ALBERT (Lan et al., 2020) have had a dramatic impact on the NLP landscape in the recent year. The standard recipe for using such models typically involves training a pretrained model for a few epochs on a supervised downstream dataset, which is known as fine-tuning. While fine-tuning has led to impressive empirical results, dominating a large variety of English NLP benchmarks such as GLUE (Wang et al., 2019b) and SuperGLUE (Wang et al., 2019a), it is still poorly understood. Not only have fine-tuned models been shown to pick up spurious patterns and biases present in the training data (Niven and Kao, 2019; McCoy et al., 2019), but also to exhibit a large training instability: fine-tuning a model multiple times on the same dataset, varying only the random seed, leads to a large standard deviation of the fine-tuning accuracy (Devlin et al., 2019; Dodge et al., 2020).
|
| 18 |
+
|
| 19 |
+
Few methods have been proposed to solve the observed instability (Phang et al., 2018; Lee et al., 2020), however without providing a sufficient understanding of why fine-tuning is prone to such failure. The goal of this work is to address this shortcoming. More specifically, we investigate the following question:
|
| 20 |
+
|
| 21 |
+
Why is fine-tuning prone to failures and how can we improve its stability?
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Our proposed fine-tuning strategy leads to very stable results with very concentrated development set performance over 25 different random seeds across all three datasets on BERT. In particular, we significantly outperform the recently proposed approach of Lee et al. (2020) in terms of fine-tuning stability.
|
| 25 |
+
|
| 26 |
+
We start by investigating two common hypotheses for fine-tuning instability: catastrophic forgetting and small size of the fine-tuning datasets and demonstrate that both hypotheses fail to explain fine-tuning instability. We then investigate fine-tuning failures on datasets from the popular GLUE benchmark and show that the observed fine-tuning instability can be decomposed into two separate aspects: (1) optimization difficulties early in training, characterized by vanishing gradients, and (2) differences in generalization late in training, characterized by a large variance of development set accuracy for runs with almost equivalent training loss.
|
| 27 |
+
|
| 28 |
+
Based on our analysis, we present a simple but strong baseline for fine-tuning pre-trained language models that significantly improves the fine-tuning stability compared to previous works (Fig. 1). Moreover, we show that our findings apply not only to the widely used BERT model but also to more recent pre-trained models such as RoBERTa and ALBERT.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
The fine-tuning instability of BERT has been pointed out in various studies. Devlin et al. (2019) report instabilities when fine-tuning BERTLARGE on small datasets and resort to performing multiple restarts of fine-tuning and selecting the model that performs best on the development set. Recently, Dodge et al. (2020) performed a large-scale empirical investigation of the fine-tuning instability of BERT. They found dramatic variations in fine-tuning accuracy across multiple restarts and argue how it might be related to the choice of random seed and the dataset size.
|
| 33 |
+
|
| 34 |
+
Few approaches have been proposed to directly address the observed fine-tuning instability. Phang et al. (2018) study intermediate task training (STILTS) before fine-tuning with the goal of improving performance on the GLUE benchmark. They also find that their proposed method leads to improved fine-tuning stability. However, due to the intermediate task training, their work is not directly comparable to ours. Lee et al. (2020) propose a new regularization technique termed Mixout. The authors show that Mixout improves stability during fine-tuning which they attribute to the prevention of catastrophic forgetting.
|
| 35 |
+
|
| 36 |
+
Another line of work investigates optimization difficulties of pre-training transformer-based language models (Xiong et al., 2020; Liu et al., 2020). Similar to our work, they highlight the importance of the learning rate warmup for optimization. Both works focus on pre-training and we hence view them as orthogonal to our work.
|
| 37 |
+
|
| 38 |
+
# 3 BACKGROUND
|
| 39 |
+
|
| 40 |
+
# 3.1 DATASETS
|
| 41 |
+
|
| 42 |
+
We study four datasets from the GLUE benchmark (Wang et al., 2019b) following previous work studying instability during fine-tuning: CoLA, MRPC, RTE, and QNLI. Detailed statistics for each of the datasets can be found in Section 7.2 in the Appendix.
|
| 43 |
+
|
| 44 |
+
CoLA. The Corpus of Linguistic Acceptability (Warstadt et al., 2018) is a sentence-level classification task containing sentences labeled as either grammatical or ungrammatical. Fine-tuning on CoLA was observed to be particularly stable in previous work (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). Performance on CoLA is reported in Matthew’s correlation coefficient (MCC).
|
| 45 |
+
|
| 46 |
+
MRPC. The Microsoft Research Paraphrase Corpus (Dolan and Brockett, 2005) is a sentence-pair classification task. Given two sentences, a model has to judge whether the sentences paraphrases of each other. Performance on MRPC is measured using the $F _ { 1 }$ score.
|
| 47 |
+
|
| 48 |
+
RTE. The Recognizing Textual Entailment dataset is a collection of sentence-pairs collected from a series of textual entailment challenges (Dagan et al., 2005; Bar-Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009). RTE is the second smallest dataset in the GLUE benchmark and fine-tuning on RTE was observed to be particularly unstable (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). Accuracy is used to measure performance on RTE.
|
| 49 |
+
|
| 50 |
+
QNLI. The Question-answering Natural Language Inference dataset contains sentence pairs obtained from SQuAD (Rajpurkar et al., 2016). Wang et al. (2019b) converted SQuAD into a sentence pair classification task by forming a pair between each question and each sentence in the corresponding paragraph. The task is to determine whether the context sentence contains the answer to the question, i.e. entails the answer. Accuracy is used to measure performance on QNLI.
|
| 51 |
+
|
| 52 |
+
# 3.2 FINE-TUNING
|
| 53 |
+
|
| 54 |
+
Unless mentioned otherwise, we follow the default fine-tuning strategy recommended by Devlin et al. (2019): we fine-tune uncased BERTLARGE (henceforth BERT) using a batch size of 16 and a learning rate of $2 \mathrm { e } { - } 5$ . The learning rate is linearly increased from 0 to $2 \mathrm { e } { - } 5$ for the first $1 0 \%$ of iterations—which is known as a warmup—and linearly decreased to 0 afterward. We apply dropout with probability $p = 0 . 1$ and weight decay with $\lambda = 0 . 0 1$ . We train for 3 epochs on all datasets and use global gradient clipping. Following Devlin et al. (2019), we use the AdamW optimizer (Loshchilov and Hutter, 2019) without bias correction.
|
| 55 |
+
|
| 56 |
+
We decided to not show results for BERTBASE since previous works observed no instability when fine-tuning BERTBASE which we also confirmed in our experiments. Instead, we show additional results on RoBERTaLARGE (Liu et al., 2019) and ALBERTLARGE-V2 (Lan et al., 2020) using the same fine-tuning strategy. We note that compared to BERT, both RoBERTa and ALBERT have slightly different hyperparameters. In particular, RoBERTa uses weight decay with $\lambda = 0 . 1$ and no gradient clipping, and ALBERT does not use dropout. A detailed list of all default hyperparameters for all models can be found in Section 7.3 of the Appendix. Our implementation is based on HuggingFace’s transformers library (Wolf et al., 2019) and is available online: https://github. com/uds-lsv/bert-stable-fine-tuning.
|
| 57 |
+
|
| 58 |
+
Fine-tuning stability. By fine-tuning stability we mean the standard deviation of the fine-tuning performance (measured, e.g., in terms of accuracy, MCC or $F _ { 1 }$ score) over the randomness of an algorithm. We follow previous works (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020) and measure fine-tuning stability using the development sets from the GLUE benchmark. We discuss alternative notions of stability in Section 7.1 in the Appendix.
|
| 59 |
+
|
| 60 |
+
Failed runs. Following Dodge et al. (2020), we refer to a fine-tuning run as a failed run if its accuracy at the end of training is less or equal to that of a majority classifier on the respective dataset. The majority baselines for all tasks are found in Section 7.2 in the Appendix.
|
| 61 |
+
|
| 62 |
+
# 4 INVESTIGATING PREVIOUS HYPOTHESES FOR FINE-TUNING INSTABILITY
|
| 63 |
+
|
| 64 |
+
Previous works on fine-tuning predominantly state two hypotheses for what can be related to finetuning instability: catastrophic forgetting and small training data size of the downstream tasks. Despite the ubiquity of these hypotheses (Devlin et al., 2019; Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020), we argue that none of them has a causal relationship with fine-tuning instability.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: Language modeling perplexity for three failed (a) and successful (b) fine-tuning runs of BERT on RTE where we replace the weights of the top- $k$ layers with their pre-trained values. We can observe that it is often sufficient to reset around 10 layers out of 24 to recover back the language modeling abilities of the pre-trained model. (c) shows the average training loss and development accuracy $_ { ( \pm 1 \mathrm { s t d } ) }$ for 10 failed fine-tuning runs on RTE. Failed fine-tuning runs lead to a trivial training loss suggesting an optimization problem.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 3: Development set results on down-sampled MRPC, CoLA, and QNLI using the default fine-tuning scheme of BERT (Devlin et al., 2019). The leftmost boxplot in each sub-figure shows the development accuracy when training on the full training set.
|
| 71 |
+
|
| 72 |
+
# 4.1 DOES CATASTROPHIC FORGETTING CAUSE FINE-TUNING INSTABILITY?
|
| 73 |
+
|
| 74 |
+
Catastrophic forgetting (McCloskey and Cohen, 1989; Kirkpatrick et al., 2017) refers to the phenomenon when a neural network is sequentially trained to perform two different tasks, and it loses its ability to perform the first task after being trained on the second. More specifically, in our setup, it means that after fine-tuning a pre-trained model, it can no longer perform the original masked language modeling task used for pre-training. This can be measured in terms of the perplexity on the original training data. Although the language modeling performance of a pre-trained model correlates with its fine-tuning accuracy (Liu et al., 2019; Lan et al., 2020), there is no clear motivation for why preserving the original masked language modeling performance after fine-tuning is important.1
|
| 75 |
+
|
| 76 |
+
In the context of fine-tuning BERT, Lee et al. (2020) suggest that their regularization method has an effect of alleviating catastrophic forgetting. Thus, it is important to understand how exactly catastrophic forgetting occurs during fine-tuning and how it relates to the observed fine-tuning instability. To better understand this, we perform the following experiment: we fine-tune BERT on RTE, following the default strategy by Devlin et al. (2019). We select three successful and three failed fine-tuning runs and evaluate their masked language modeling perplexity on the test set of the WikiText-2 language modeling benchmark (Merity et al., 2016).2 We sequentially substitute the top- $k$ layers of the network varying $k$ from 0 (i.e. all layers are from the fine-tuned model) to 24 (i.e. all layers are from the pre-trained model). We show the results in Fig. 2 (a) and (b).
|
| 77 |
+
|
| 78 |
+
We can observe that although catastrophic forgetting occurs for the failed models (Fig. 2a) — perplexity on WikiText-2 is indeed degraded for $k = 0$ — the phenomenon is much more nuanced. Namely, catastrophic forgetting affects only the top layers of the network — in our experiments often around
|
| 79 |
+
|
| 80 |
+
10 out of 24 layers, and the same is however also true for the successfully fine-tuned models, except for a much smaller increase in perplexity.
|
| 81 |
+
|
| 82 |
+
Another important aspect of our experiment is that catastrophic forgetting typically requires that the model at least successfully learns how to perform the new task. However, this is not the case for the failed fine-tuning runs. Not only is the development accuracy equal to that of the majority classifier, but also the training loss on the fine-tuning task (here RTE) is trivial, i.e. close to $- \ln ( 1 / 2 )$ (see Fig. 2 (c)). This suggests that the observed fine-tuning failure is rather an optimization problem causing catastrophic forgetting in the top layers of the pre-trained model. We will show later that the optimization aspect is actually sufficient to explain most of the fine-tuning variance.
|
| 83 |
+
|
| 84 |
+
# 4.2 DO SMALL TRAINING DATASETS CAUSE FINE-TUNING INSTABILITY?
|
| 85 |
+
|
| 86 |
+
Having a small training dataset is by far the most commonly stated hypothesis for fine-tuning instability. Multiple recent works (Devlin et al., 2019; Phang et al., 2018; Lee et al., 2020; Zhu et al., 2020; Dodge et al., 2020; Pruksachatkun et al., 2020) that have observed BERT fine-tuning to be unstable relate this finding to the small number of training examples.
|
| 87 |
+
|
| 88 |
+
To test if having a small training dataset inherently leads to fine-tuning instability we perform the following experiment:3 we randomly sample 1,000 training samples from the CoLA, MRPC, and QNLI training datasets and fine-tune BERT using 25 different random seeds on each dataset. We compare two different settings: first, training for 3 epochs on the reduced training dataset, and second, training for the same number of iterations as on the full training dataset. We show the results in Fig. 3 and observe that training on less data does indeed affect the fine-tuning variance, in particular, there are many more failed runs. However, when we simply train for as many iterations as on the full training dataset, we almost completely recover the original variance of the fine-tuning performance. We also observe no failed runs on MRPC and QNLI and only a single failed run on CoLA which is similar to the results obtained by training on the full training set. Further, as expected, we observe that training on fewer samples affects the generalization of the model, leading to a worse development set performance on all three tasks.4
|
| 89 |
+
|
| 90 |
+
We conclude from this experiment, that the role of training dataset size per se is orthogonal to fine-tuning stability. What is crucial is rather the number of training iterations. As our experiment shows, the observed increase in instability when training with smaller datasets can rather be attributed to the reduction of the number of iterations (that changes the effective learning rate schedule) which, as we will show in the next section, has a crucial influence on the fine-tuning stability.
|
| 91 |
+
|
| 92 |
+
# 5 DISENTANGLING OPTIMIZATION AND GENERALIZATION IN FINE-TUNING INSTABILITY
|
| 93 |
+
|
| 94 |
+
Our findings in Section 4 detail that while both catastrophic forgetting and small size of the datasets indeed correlate with fine-tuning instability, none of them are causing it. In this section, we argue that the fine-tuning instability is an optimization problem, and it admits a simple solution. Additionally, we show that even though a large fraction of the fine-tuning instability can be explained by optimization, the remaining instability can be attributed to generalization issues where fine-tuning runs with the same training loss exhibit noticeable differences in the development set performance.
|
| 95 |
+
|
| 96 |
+
# 5.1 THE ROLE OF OPTIMIZATION
|
| 97 |
+
|
| 98 |
+
Failed fine-tuning runs suffer from vanishing gradients. We observed in Fig. 2c that the failed runs have practically constant training loss throughout the training (see Fig. 14 in the Appendix for a comparison with successful fine-tuning). In order to better understand this phenomenon, in Fig. 4 we plot the $\ell _ { 2 }$ gradient norms of the loss function with respect to different layers of BERT, for one failed and successful fine-tuning run. For the failed run we see large enough gradients only for the top layers and vanishing gradients for the bottom layers. This is in large contrast to the successful run. While we also observe small gradients at the beginning of training (until iteration 70), gradients start to grow as training continues. Moreover, at the end of fine-tuning, we observe gradient norms nearly $2 \times$ orders of magnitude larger than that of the failed run. Similar visualizations for additional layers and weights can be found in Fig. 10 in the Appendix. Moreover, we observe the same behavior also for RoBERTa and ALBERT models, and the corresponding figures can be found in the Appendix as well (Fig. 11 and 12).
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 4: Gradient norms (plotted on a logarithmic scale) of different layers on RTE for a failed and successful run of BERT fine-tuning. We observe that the failed run is characterized by vanishing gradients in the bottom layers of the network. Additional plots for other weight matrices can be found in the Appendix.
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
Figure 5: Box plots showing the fine-tuning performance of (a) BERT, (b) RoBERTa, (c) ALBERT for different learning rates $\alpha$ with and without bias correction (BC) on RTE. For BERT and ALBERT, having bias correction leads to more stable results and allows to train using larger learning rates. For RoBERTa, the effect is less pronounced but still visible.
|
| 105 |
+
|
| 106 |
+
Importantly, we note that the vanishing gradients we observe during fine-tuning are harder to resolve than the standard vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994). In particular, common weight initialization schemes (Glorot and Bengio, 2010; He et al., 2015) ensure that the pre-activations of each layer of the network have zero mean and unit variance in expectation. However, we cannot simply modify the weights of a pre-trained model on each layer to ensure this property since this would conflict with the idea of using the pre-trained weights.
|
| 107 |
+
|
| 108 |
+
Importance of bias correction in ADAM. Following Devlin et al. (2019), subsequent works on fine-tuning BERT-based models use the ADAM optimizer (Kingma and Ba, 2015). A subtle detail of the fine-tuning scheme of Devlin et al. (2019) is that it does not include the bias correction in ADAM. Kingma and Ba (2015) already describe the effect of the bias correction as to reduce the learning rate at the beginning of training. By rewriting the update equations of ADAM as follows, we can clearly see this effect of bias correction:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\begin{array} { l } { { \alpha _ { t } \alpha \cdot \sqrt { 1 - \beta _ { 2 } ^ { t } } / ( 1 - \beta _ { 1 } ^ { t } ) , } } \\ { { \theta _ { t } \theta _ { t - 1 } - \alpha _ { t } \cdot m _ { t } / ( \sqrt { v _ { t } } + \epsilon ) , } } \end{array}
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 7: 2D loss surfaces in the subspace spanned by $\delta _ { 1 } = \theta _ { f } - \theta _ { p }$ and $\delta _ { 2 } = \theta _ { s } - \theta _ { p }$ on RTE, MRPC, and CoLA. $\theta _ { p } , \theta _ { f }$ , $\theta _ { s }$ denote the parameters of the pre-trained, failed, and successfully trained model, respectively.
|
| 116 |
+
|
| 117 |
+
Here $m _ { t }$ and $v _ { t }$ are biased first and second moment estimates respectively. Equation (1) shows that bias correction simply boils down to reducing the original step size $\alpha$ by a multiplicative factor $\sqrt { 1 - \beta _ { 2 } ^ { t } } / ( 1 - \beta _ { 1 } ^ { t } )$ which is significantly below 1 for the first iterations of training and approaches 1 as the number of training iterations $t$ increases (see Fig. 6). Along the same lines, You et al. (2020) explicitly remark that bias correction in ADAM has a similar effect to the warmup which is widely used in deep learning to prevent divergence early in training (He et al., 2016; Goyal et al., 2017; Devlin et al., 2019; Wong et al., 2020).
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 6: The bias correction term of ADAM ( $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9 9$ ).
|
| 121 |
+
|
| 122 |
+
The implicit warmup of ADAM is likely to be an important factor that contributed to its success. We argue that fine-tuning BERT-based language models is not an exception. In Fig. 5 we show the results of fine-tuning on RTE with and without bias correction for BERT, RoBERTa, and ALBERT models.5 We observe that there is a significant benefit in combining warmup with bias correction, particularly for BERT and ALBERT. Even though for RoBERTa fine-tuning is already more stable even without bias correction, adding bias correction gives an additional improvement.
|
| 123 |
+
|
| 124 |
+
Our results show that bias correction is useful if we want to get the best performance within 3 epochs, the default recommendation by Devlin et al. (2019). An alternative solution is to simply train longer with a smaller learning rate, which also leads to much more stable fine-tuning. We provide a more detailed ablation study in Appendix (Fig. 9) with analogous box plots for BERT using various learning rates, numbers of training epochs, with and without bias correction. Finally, concurrently to our work, Zhang et al. (2021) also make a similar observation about the importance of bias correction and longer training which gives further evidence to our findings.
|
| 125 |
+
|
| 126 |
+
Loss surfaces. To get further intuition about the fine-tuning failure, we provide loss surface visualizations (Li et al., 2018; Hao et al., 2019) of failed and successful runs when fine-tuning BERT. Denote by $\theta _ { p }$ , $\theta _ { f }$ , $\theta _ { s }$ the parameters of the pre-trained model, failed model, and successfully trained model, respectively. We plot a two-dimensional loss surface $f ( \alpha , \beta ) = \mathcal { L } ( \theta _ { p } + \alpha \delta _ { 1 } + \beta \delta _ { 2 } )$ in the subspace spanned by $\delta _ { 1 } = \theta _ { f } - \theta _ { p }$ and $\delta _ { 2 } = \theta _ { s } - \theta _ { p }$ centered at the weights of the pre-trained model $\theta _ { p }$ . Additional details are specified in Section 7.6 in the Appendix.
|
| 127 |
+
|
| 128 |
+
Contour plots of the loss surfaces for RTE, MRPC, and CoLA are shown in Fig. 7. They provide additional evidence to our findings on vanishing gradients: for failed fine-tuning runs gradient descent converges to a “bad” valley with a sub-optimal training loss. Moreover, this bad valley is separated from the local minimum (to which the successfully trained run converged) by a barrier (see also Fig. 13 in the Appendix). Interestingly, we observe a highly similar geometry for all three datasets providing further support for our interpretation of fine-tuning instability as a primarily optimization issue.
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 8: Development set accuracy for multiple fine-tuning runs on RTE. The models for (a) are trained with 10 different seeds, and models for (b) are taken at the end of the training, and trained with different seeds and hyperparameters.
|
| 132 |
+
|
| 133 |
+
# 5.2 THE ROLE OF GENERALIZATION
|
| 134 |
+
|
| 135 |
+
We now turn to the generalization aspects of fine-tuning instability. In order to show that the remaining fine-tuning variance on the development set can be attributed to generalization, we perform the following experiment: we fine-tune BERT on RTE for 20 epochs and show the development set accuracy for 10 successful runs in Fig. 8a. Further, we show in Fig. 8b the development set accuracy vs. training loss of all BERT models fine-tuned on RTE for the full ablation study (shown in Fig. 9 in the Appendix), in total 450 models.
|
| 136 |
+
|
| 137 |
+
We find that despite achieving close to zero training loss overfitting is not an issue during fine-tuning. This is consistent with previous work (Hao et al., 2019), which arrived at a similar conclusion. Based on our results, we argue that it is even desirable to train for a larger number of iterations since the development accuracy varies considerably during fine-tuning and it does not degrade even when the training loss is as low as 10−5.
|
| 138 |
+
|
| 139 |
+
Combining these findings with results from the previous section, we conclude that the fine-tuning instability can be decomposed into two aspects: optimization and generalization. In the next section, we propose a simple solution addressing both issues.
|
| 140 |
+
|
| 141 |
+
# 6 A SIMPLE BUT HARD-TO-BEAT BASELINE FOR FINE-TUNING BERT
|
| 142 |
+
|
| 143 |
+
As our findings in Section 5 show, the empirically observed instability of fine-tuning BERT can be attributed to vanishing gradients early in training as well as differences in generalization late in training. Given the new understanding of fine-tuning instability, we propose the following guidelines for fine-tuning transformer-based masked language models on small datasets:
|
| 144 |
+
|
| 145 |
+
• Use small learning rates with bias correction to avoid vanishing gradients early in training.
|
| 146 |
+
• Increase the number of iterations considerably and train to (almost) zero training loss.
|
| 147 |
+
|
| 148 |
+
This leads to the following simple baseline scheme: we fine-tune BERT using ADAM with bias correction and a learning rate of 2e−5. The training is performed for 20 epochs, and the learning rate is linearly increased for the first $1 0 \%$ of steps and linearly decayed to zero afterward. All other hyperparameters are kept unchanged. A full ablation study on RTE testing various combinations of the changed hyperparameters is presented in Section 7.4 in the Appendix.
|
| 149 |
+
|
| 150 |
+
Results. Despite the simplicity of our proposed fine-tuning strategy, we obtain strong empirical performance. Table 1 and Fig. 1 show the results of fine-tuning BERT on RTE, MRPC, and CoLA. We compare to the default strategy of Devlin et al. (2019) and the recent Mixout method from Lee et al. (2020). First, we observe that our method leads to a much more stable fine-tuning performance on all three datasets as evidenced by the significantly smaller standard deviation of the final performance. To further validate our claim about the fine-tuning stability, we run Levene’s test (Levene, 1960) to check the equality of variances for the distributions of the final performances on each dataset. For all three datasets, the test results in a p-value less than 0.001 when we compare the variances between our method and the method achieving the second smallest variance. Second, we also observe that our method improves the overall fine-tuning performance: in Table 1 we achieve a higher mean value on all datasets and also comparable or better maximum performance on MRPC and CoLA respectively.
|
| 151 |
+
|
| 152 |
+
Table 1: Standard deviation, mean, and maximum performance on the development set of RTE, MRPC, and CoLA when fine-tuning BERT over 25 random seeds. Standard deviation: lower is better, i.e. fine-tuning is more stable. ? denotes significant difference $\mathit { p } < 0 . 0 0 1 $ ) when compared to the second smallest standard deviation.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Approach</td><td colspan="3">RTE</td><td colspan="3">MRPC</td><td colspan="3">CoLA</td></tr><tr><td></td><td>std</td><td>mean</td><td>max</td><td>std</td><td>mean</td><td>max</td><td>std</td><td>mean</td><td>max</td></tr><tr><td>Devlin et al. (2019)</td><td>4.5</td><td>50.9</td><td>67.5</td><td>3.9</td><td>84.0</td><td>91.2</td><td>25.6</td><td>45.6</td><td>64.6</td></tr><tr><td>Lee et al. (2020)</td><td>7.9</td><td>65.3</td><td>74.4</td><td>3.8</td><td>87.8</td><td>91.8</td><td>20.9</td><td>51.9</td><td>64.0</td></tr><tr><td>Ours</td><td>2.7*</td><td>67.3</td><td>71.1</td><td>0.8*</td><td>90.3</td><td>91.7</td><td>1.8*</td><td>62.1</td><td>65.3</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Finally, we note that we suggest to increase the number of fine-tuning iterations only for small datasets, and thus the increased computational cost of our proposed scheme is not a problem in practice. Moreover, we think that overall our findings lead to more efficient fine-tuning because of the significantly improved stability which effectively reduces the number of necessary fine-tuning runs.
|
| 157 |
+
|
| 158 |
+
# 7 CONCLUSIONS
|
| 159 |
+
|
| 160 |
+
In this work, we have discussed the existing hypotheses regarding the reasons behind fine-tuning instability and proposed a new baseline strategy for fine-tuning that leads to significantly improved fine-tuning stability and overall improved results on commonly used datasets from the GLUE benchmark.
|
| 161 |
+
|
| 162 |
+
By analyzing failed fine-tuning runs, we find that neither catastrophic forgetting nor small dataset sizes sufficiently explain fine-tuning instability. Instead, our analysis reveals that fine-tuning instability can be characterized by two distinct problems: (1) optimization difficulties early in training, characterized by vanishing gradients, and (2) differences in generalization, characterized by a large variance of development set accuracy for runs with almost equivalent training performance.
|
| 163 |
+
|
| 164 |
+
Based on our analysis, we propose a simple but strong baseline strategy for fine-tuning BERT which outperforms the previous works in terms of fine-tuning stability and overall performance.
|
| 165 |
+
|
| 166 |
+
# ACKNOWLEDGMENTS
|
| 167 |
+
|
| 168 |
+
We thank Anna Khokhlova for her help with the language modeling experiments, Cheolhyoung Lee and Jesse Dodge for providing us with details of their works, and Badr Abdullah and Aditya Mogadala for their helpful comments on a draft of this paper.
|
| 169 |
+
|
| 170 |
+
This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 232722074 – SFB 1102.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Roy Bar-Haim, Ido Dagan, Bill Dolan, Lisa Ferro, and Danilo Giampiccolo. 2006. The second pascal recognising textual entailment challenge. Proceedings of the Second PASCAL Challenges Workshop on Recognising Textual Entailment.
|
| 175 |
+
|
| 176 |
+
Yoshua Bengio, Patrice Simard, and Paolo Frasconi. 1994. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166.
|
| 177 |
+
|
| 178 |
+
Luisa Bentivogli, Ido Dagan, Hoa Trang Dang, Danilo Giampiccolo, and Bernardo Magnini. 2009. The fifth pascal recognizing textual entailment challenge. In Proceedings of the Second Text Analysis Conference (TAC 2009).
|
| 179 |
+
|
| 180 |
+
Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The pascal recognising textual entailment challenge. In Proceedings of the First International Conference on Machine Learning Challenges: Evaluating Predictive Uncertainty Visual Object Classification, and Recognizing Textual Entailment, MLCW’05, page 177–190, Berlin, Heidelberg. Springer-Verlag.
|
| 181 |
+
|
| 182 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. 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. Association for Computational Linguistics.
|
| 183 |
+
|
| 184 |
+
Jesse Dodge, Gabriel Ilharco, Roy Schwartz, Ali Farhadi, Hannaneh Hajishirzi, and Noah Smith. 2020. Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. arXiv preprint arXiv:2002.06305.
|
| 185 |
+
|
| 186 |
+
William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005).
|
| 187 |
+
|
| 188 |
+
Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. 2007. The third pascal recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, RTE ’07, page 1–9, USA. Association for Computational Linguistics.
|
| 189 |
+
|
| 190 |
+
Xavier Glorot and Yoshua Bengio. 2010. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 249–256.
|
| 191 |
+
|
| 192 |
+
Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. 2017. Accurate, large minibatch sgd: Training imagenet in 1 hour.
|
| 193 |
+
|
| 194 |
+
Yaru Hao, Li Dong, Furu Wei, and Ke Xu. 2019. Visualizing and understanding the effectiveness of BERT. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), pages 4143–4152, Hong Kong, China. Association for Computational Linguistics.
|
| 195 |
+
|
| 196 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2015. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026–1034.
|
| 197 |
+
|
| 198 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778.
|
| 199 |
+
|
| 200 |
+
Sepp Hochreiter. 1991. Untersuchungen zu dynamischen neuronalen netzen. Diploma, Technische Universität München, 91(1).
|
| 201 |
+
|
| 202 |
+
Tushar Khot, Ashish Sabharwal, and Peter Clark. 2018. Scitail: A textual entailment dataset from science question answering.
|
| 203 |
+
|
| 204 |
+
Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In International Conference on Learning Representations.
|
| 205 |
+
|
| 206 |
+
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, and et al. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526.
|
| 207 |
+
|
| 208 |
+
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations.
|
| 209 |
+
|
| 210 |
+
Cheolhyoung Lee, Kyunghyun Cho, and Wanmo Kang. 2020. Mixout: Effective regularization to finetune large-scale pretrained language models. In International Conference on Learning Representations.
|
| 211 |
+
|
| 212 |
+
Howard Levene. 1960. Robust tests for equality of variances. Contributions to probability and statistics: Essays in honor of Harold Hotelling, pages 278–292.
|
| 213 |
+
|
| 214 |
+
Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. 2018. Visualizing the loss landscape of neural nets. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems 31, pages 6389–6399. Curran Associates, Inc.
|
| 215 |
+
|
| 216 |
+
Liyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Jiawei Han. 2020. On the variance of the adaptive learning rate and beyond. In International Conference on Learning Representations.
|
| 217 |
+
|
| 218 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
|
| 219 |
+
|
| 220 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.
|
| 221 |
+
|
| 222 |
+
Michael McCloskey and Neal J Cohen. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier.
|
| 223 |
+
|
| 224 |
+
R. Thomas McCoy, Junghyun Min, and Tal Linzen. 2020. BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performance. In Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 217–227, Online. Association for Computational Linguistics.
|
| 225 |
+
|
| 226 |
+
Tom McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448, Florence, Italy. Association for Computational Linguistics.
|
| 227 |
+
|
| 228 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843.
|
| 229 |
+
|
| 230 |
+
Timothy Niven and Hung-Yu Kao. 2019. Probing neural network comprehension of natural language arguments. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4658–4664, Florence, Italy. Association for Computational Linguistics.
|
| 231 |
+
|
| 232 |
+
Jason Phang, Thibault Févry, and Samuel R Bowman. 2018. Sentence encoders on stilts: Supplementary training on intermediate labeled-data tasks. arXiv preprint arXiv:1811.01088.
|
| 233 |
+
|
| 234 |
+
Yada Pruksachatkun, Jason Phang, Haokun Liu, Phu Mon Htut, Xiaoyi Zhang, Richard Yuanzhe Pang, Clara Vania, Katharina Kann, and Samuel R. Bowman. 2020. Intermediate-task transfer learning with pretrained language models: When and why does it work? In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5231–5247, Online. Association for Computational Linguistics.
|
| 235 |
+
|
| 236 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, Austin, Texas. Association for Computational Linguistics.
|
| 237 |
+
|
| 238 |
+
Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2019a. Superglue: A stickier benchmark for general-purpose language understanding systems. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 3266–3280. Curran Associates, Inc.
|
| 239 |
+
|
| 240 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019b. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In International Conference on Learning Representations.
|
| 241 |
+
|
| 242 |
+
Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. 2018. Neural network acceptability judgments. arXiv preprint arXiv:1805.12471.
|
| 243 |
+
|
| 244 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. 2019. Transformers: State-of-theart natural language processing. arXiv preprint arXiv:1910.03771.
|
| 245 |
+
|
| 246 |
+
Eric Wong, Leslie Rice, and J. Zico Kolter. 2020. Fast is better than free: Revisiting adversarial training. In International Conference on Learning Representations.
|
| 247 |
+
|
| 248 |
+
Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tie-Yan Liu. 2020. On layer normalization in the transformer architecture. arXiv preprint arXiv:2002.04745.
|
| 249 |
+
|
| 250 |
+
Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. 2020. Large batch optimization for deep learning: Training bert in 76 minutes. In International Conference on Learning Representations.
|
| 251 |
+
|
| 252 |
+
Tianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q Weinberger, and Yoav Artzi. 2021. Revisiting few-sample BERT fine-tuning. In International Conference on Learning Representations.
|
| 253 |
+
|
| 254 |
+
Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Tom Goldstein, and Jingjing Liu. 2020. Freelb: Enhanced adversarial training for natural language understanding. In International Conference on Learning Representations.
|
| 255 |
+
|
| 256 |
+
# APPENDIX
|
| 257 |
+
|
| 258 |
+
# 7.1 ALTERNATIVE NOTIONS OF STABILITY
|
| 259 |
+
|
| 260 |
+
Here, we elaborate on other possible definitions of fine-tuning stability. The definition that we use throughout the paper follows the previous work (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). For example, while Dodge et al. (2020) do not directly define fine-tuning stability, they report and analyze the standard deviation of the validation performance (e.g., see Section 4.1 of their paper). Along the same lines, an earlier work of Phang et al. (2018), which studies the influence of intermediate fine-tuning, discusses the variance of the validation performance (see Section 4: Results, paragraph Fine-Tuning Stability therein) and shows the standard deviation over multiple random seeds in Figure 1.
|
| 261 |
+
|
| 262 |
+
For simplicity, let us assume that the performance metric is accuracy and we have two classes. Let $A$ be a randomized fine-tuning algorithm that produces a classifier $f _ { A }$ , and let us denote data points as $( x , y ) \sim \mathcal { D }$ where $\mathcal { D }$ is the data-generating distribution. Our definition of fine-tuning stability can be formalized as follows:
|
| 263 |
+
|
| 264 |
+
$$
|
| 265 |
+
S _ { \mathrm { o u r s } } ( A ) = \mathrm { V a r } _ { A } \left[ \mathrm { E } _ { x , y } \left[ \mathbb { 1 } _ { f _ { A } ( x ) = y } \right] \right] = \mathrm { V a r } _ { A } \left[ \mathrm { A c c u r a c y } ( f _ { A } ) \right] .
|
| 266 |
+
$$
|
| 267 |
+
|
| 268 |
+
This definition directly measures the variance of the performance metric and aims to answer the question: If we perform fine-tuning multiple times, how large will the difference in performance be?
|
| 269 |
+
|
| 270 |
+
An alternative definition of fine-tuning stability that could be considered is per-point stability where the expectation and variance are interchanged:
|
| 271 |
+
|
| 272 |
+
$$
|
| 273 |
+
S _ { \mathrm { p e r - p o i n t } } ( A ) = \mathrm { E } _ { x , y } \left[ \mathrm { V a r } _ { A } \left[ \mathbb { 1 } _ { f _ { A } ( x ) = y } \right] \right] .
|
| 274 |
+
$$
|
| 275 |
+
|
| 276 |
+
This definition captures a different notion of stability. Namely, it captures stability per data point by measuring how much the classifiers $f _ { A }$ differ on the same point $x$ given label $y$ . Studying the per-point fine-tuning stability can be useful to better understand the properties of fine-tuned models and we refer to McCoy et al. (2020) for a study in this direction.
|
| 277 |
+
|
| 278 |
+
# 7.2 TASK STATISTICS
|
| 279 |
+
|
| 280 |
+
Statistics for each of the datasets studied in this paper are shown in Table 2. All datasets are publicly available. The GLUE datasets can be downloaded here: https://github.com/nyu-mll/ jiant. SciTail is available at https://github.com/allenai/scitail.
|
| 281 |
+
|
| 282 |
+
Table 2: Dataset statistics and majority baselines.
|
| 283 |
+
|
| 284 |
+
<table><tr><td></td><td>RTE</td><td>MRPC</td><td>CoLA</td><td>QNLI</td><td>SciTail</td></tr><tr><td>Training</td><td>2491</td><td>3669</td><td>8551</td><td>104744</td><td>23596</td></tr><tr><td>Development</td><td>278</td><td>409</td><td>1043</td><td>5464</td><td>1304</td></tr><tr><td>Majority baseline</td><td>0.53</td><td>0.75</td><td>0.0</td><td>0.50</td><td>0.63</td></tr><tr><td>Metric</td><td>Acc.</td><td>F1 score</td><td>MCC</td><td>Acc.</td><td>Acc.</td></tr></table>
|
| 285 |
+
|
| 286 |
+
# 7.3 HYPERPARAMETERS
|
| 287 |
+
|
| 288 |
+
Hyperparameters for BERT, RoBERTa, and ALBERT used for all our experiments are shown in Table 3.
|
| 289 |
+
|
| 290 |
+
# 7.4 ABLATION STUDIES
|
| 291 |
+
|
| 292 |
+
Figure 9 shows the results of fine-tuning on RTE with different combinations of learning rate, number of training epochs, and bias correction. We make the following observations:
|
| 293 |
+
|
| 294 |
+
• When training for only 3 epochs, disabling bias correction clearly hurts performance. • With bias correction, training with larger learning rates is possible. • Combining the usage of bias correction with training for more epochs leads to the best performance.
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
Figure 9: Full ablation of fine-tuning BERT on RTE. For each setting, we vary only the number of training steps, learning rate, and usage of bias correction (BC). All other hyperparameters are unchanged. We fine-tune 25 models for each setting. $\star$ shows the setting which we recommend as a new baseline fine-tuning strategy.
|
| 298 |
+
|
| 299 |
+
Table 3: Hyperparameters used for fine-tuning.
|
| 300 |
+
|
| 301 |
+
<table><tr><td>Hyperparam</td><td>BERT</td><td>RoBERTa</td><td>ALBERT</td></tr><tr><td>Epochs</td><td>3,10,20</td><td>3</td><td>3</td></tr><tr><td>Learning rate</td><td>le-5-5e-5</td><td>le-5-3e-5</td><td>le-5-3e-5</td></tr><tr><td>Learning rate schedule</td><td>warmup-linear</td><td>warmup-linear</td><td>warmup-linear</td></tr><tr><td>Warmup ratio</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Batch size</td><td>16</td><td>16</td><td>16</td></tr><tr><td>Adam e</td><td>1e-6</td><td>1e-6</td><td>1e-6</td></tr><tr><td>Adam β1</td><td>0.9</td><td>0.9</td><td>0.9</td></tr><tr><td>Adam β2</td><td>0.999</td><td>0.98</td><td>0.999</td></tr><tr><td>Adam bias correction</td><td>{True,False}</td><td>{True, False}</td><td>{True,False}</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>1</td></tr><tr><td>Weight decay</td><td>0.01</td><td>0.1</td><td>1</td></tr><tr><td>Clipping gradient norm</td><td>1.0</td><td>1</td><td>1.0</td></tr><tr><td>Number of random seeds</td><td>25</td><td>25</td><td>25</td></tr></table>
|
| 302 |
+
|
| 303 |
+
# 7.5 ADDITIONAL GRADIENT NORM VISUALIZATIONS
|
| 304 |
+
|
| 305 |
+
We provide additional visualizations for the vanishing gradients observed when fine-tuning BERT, RoBERTa, and ALBERT in Figures 10, 11, 12. Note that for ALBERT besides the pooler and classification layers, we plot only the gradient norms of a single hidden layer (referred to as layer0) because of weight sharing.
|
| 306 |
+
|
| 307 |
+
Gradient norms and MLM perplexity. We can see from the gradient norm visualizations for BERT in Figures 4 and 10 that the gradient norm of the pooler and classification layer remains large. Hence, even though the gradients on most layers of the model vanish, we still update the weights on the top layers. In fact, this explains the large increase in MLM perplexity for the failed models which is shown in Fig. 2a. While most of the layers do not change as we continue training, the top layers of the network change dramatically.
|
| 308 |
+
|
| 309 |
+
# 7.6 LOSS SURFACES
|
| 310 |
+
|
| 311 |
+
For Fig. 7, we define the range for both $\alpha$ and $\beta$ as $[ - 1 . 5 , 1 . 5 ]$ and sample 40 points for each axis. We evaluate the loss on 128 samples from the training dataset of each task using all model parameters, including the classification layer. We disabled dropout for generating the surface plots.
|
| 312 |
+
|
| 313 |
+
Fig. 13 shows contour plots of the total gradient norm. We can again see that the point to which the failed model converges to $( \theta _ { f } )$ is separated from the point the successful model converges to $( \theta _ { s } )$ by a barrier. Moreover, on all the three datasets we can clearly see the valley around $\theta _ { f }$ with a small gradient norm.
|
| 314 |
+
|
| 315 |
+
# 7.7 TRAINING CURVES
|
| 316 |
+
|
| 317 |
+
Fig. 14 shows training curves for 10 successful and 10 failed fine-tuning runs on RTE. We can clearly observe that all 10 failed runs have a common pattern: throughout the training, their training loss stays close to that at initialization. This implies an optimization problem and suggests to reconsider the optimization scheme.
|
| 318 |
+
|
| 319 |
+
# 7.8 ADDITIONAL FINE-TUNING RESULTS
|
| 320 |
+
|
| 321 |
+
We report additional fine-tuning results on the SciTail dataset (Khot et al., 2018) in Table 4 to demonstrate that our findings generalize to datasets from other domains.
|
| 322 |
+
|
| 323 |
+
Due to its comparatively large size (28k training samples) fine-tuning on SciTail with the Devlin et al. (2019) scheme is already very stable even when trained for 3 epochs. This is comparable to what we find for QNLI in Section 4.1. When applying our fine-tuning scheme to SciTail, the results are very close to that of Devlin et al. (2019). On the other hand, when training on a smaller subset of SciTail (1k training samples) we can clearly see the same results as also observed in Fig. 3 for MRPC, CoLA, and QNLI, i.e. using more training iterations improves the fine-tuning stability.
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
Figure 10: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of BERT fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively.
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
Figure 11: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of RoBERTa fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively.
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 12: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of ALBERT fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively.
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
Figure 13: 2D gradient norm surfaces in the subspace spanned by $\delta _ { 1 } = \theta _ { f } - \theta _ { p }$ and $\delta _ { 2 } = \theta _ { s } - \theta _ { p }$ for BERT fine-tuned on RTE, MRPC and CoLA. $\theta _ { p } , \theta _ { f }$ , $\theta _ { s }$ denote the parameters of the pre-trained, failed, and successfully trained model, respectively.
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
Figure 14: The test accuracy and training loss of (a) 10 successful runs with our fine-tuning scheme and (b) 10 failed runs with fine-tuning scheme Devlin on RTE. Solid line shows the mean, error bars show $\pm 1 \mathrm { s t d }$ .
|
| 339 |
+
|
| 340 |
+
Table 4: Standard deviation, mean, and maximum performance on the development set of SciTail when finetuning BERT over 25 random seeds. Standard deviation: lower is better, i.e. fine-tuning is more stable.
|
| 341 |
+
|
| 342 |
+
<table><tr><td rowspan="2">Approach</td><td colspan="3">SciTail</td></tr><tr><td>std</td><td>mean</td><td>max</td></tr><tr><td>Devlin et al. (2019),full train set, 3 epochs</td><td>0.4</td><td>95.1</td><td>96.0</td></tr><tr><td>Devlin et al. (2019),1k samples,3 epochs</td><td>17.9</td><td>69.8</td><td>89.4</td></tr><tr><td>Devlin et al. (2019),1k samples,71 epochs</td><td>0.9</td><td>87.5</td><td>89.1</td></tr><tr><td>Ours, full train set</td><td>0.6</td><td>95.1</td><td>96.8</td></tr></table>
|
| 343 |
+
|
| 344 |
+
We conclude from this experiment that our findings and guidelines generalize to datasets from other domains as well. This gives further evidence that the observed instability is not a property of any particular dataset but rather a result of too few training iterations based on the common fine-tuning practice of using a fixed number of epochs (and not iterations) independently of the training data size.
|
parse/train/nzpLWnVAyah/nzpLWnVAyah_content_list.json
ADDED
|
@@ -0,0 +1,1882 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ON THE STABILITY OF FINE-TUNING BERT: MISCONCEPTIONS, EXPLANATIONS, AND STRONG BASELINES ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
828,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Marius Mosbach Spoken Language Systems (LSV) Saarland Informatics Campus, Saarland University mmosbach@lsv.uni-saarland.de ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
172,
|
| 20 |
+
516,
|
| 21 |
+
228
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Maksym Andriushchenko Theory of Machine Learning Lab École polytechnique fédérale de Lausanne maksym.andriushchenko@epfl.ch ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
534,
|
| 30 |
+
172,
|
| 31 |
+
818,
|
| 32 |
+
229
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Dietrich Klakow ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
184,
|
| 42 |
+
252,
|
| 43 |
+
299,
|
| 44 |
+
265
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Spoken Language Systems (LSV) Saarland Informatics Campus, Saarland University dietrich.klakow@lsv.uni-saarland.de ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
184,
|
| 53 |
+
266,
|
| 54 |
+
527,
|
| 55 |
+
306
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "ABSTRACT ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
454,
|
| 65 |
+
344,
|
| 66 |
+
544,
|
| 67 |
+
359
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Fine-tuning pre-trained transformer-based language models such as BERT has become a common practice dominating leaderboards across various NLP benchmarks. Despite the strong empirical performance of fine-tuned models, fine-tuning is an unstable process: training the same model with multiple random seeds can result in a large variance of the task performance. Previous literature (Devlin et al., 2019; Lee et al., 2020; Dodge et al., 2020) identified two potential reasons for the observed instability: catastrophic forgetting and small size of the fine-tuning datasets. In this paper, we show that both hypotheses fail to explain the fine-tuning instability. We analyze BERT, RoBERTa, and ALBERT, fine-tuned on commonly used datasets from the GLUE benchmark, and show that the observed instability is caused by optimization difficulties that lead to vanishing gradients. Additionally, we show that the remaining variance of the downstream task performance can be attributed to differences in generalization where fine-tuned models with the same training loss exhibit noticeably different test performance. Based on our analysis, we present a simple but strong baseline that makes fine-tuning BERT-based models significantly more stable than the previously proposed approaches. Code to reproduce our results is available online: https://github.com/uds-lsv/bert-stable-fine-tuning. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
233,
|
| 76 |
+
375,
|
| 77 |
+
766,
|
| 78 |
+
625
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1 INTRODUCTION ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
176,
|
| 88 |
+
650,
|
| 89 |
+
336,
|
| 90 |
+
666
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Pre-trained transformer-based masked language models such as BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019), and ALBERT (Lan et al., 2020) have had a dramatic impact on the NLP landscape in the recent year. The standard recipe for using such models typically involves training a pretrained model for a few epochs on a supervised downstream dataset, which is known as fine-tuning. While fine-tuning has led to impressive empirical results, dominating a large variety of English NLP benchmarks such as GLUE (Wang et al., 2019b) and SuperGLUE (Wang et al., 2019a), it is still poorly understood. Not only have fine-tuned models been shown to pick up spurious patterns and biases present in the training data (Niven and Kao, 2019; McCoy et al., 2019), but also to exhibit a large training instability: fine-tuning a model multiple times on the same dataset, varying only the random seed, leads to a large standard deviation of the fine-tuning accuracy (Devlin et al., 2019; Dodge et al., 2020). ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
681,
|
| 100 |
+
825,
|
| 101 |
+
833
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Few methods have been proposed to solve the observed instability (Phang et al., 2018; Lee et al., 2020), however without providing a sufficient understanding of why fine-tuning is prone to such failure. The goal of this work is to address this shortcoming. More specifically, we investigate the following question: ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
840,
|
| 111 |
+
825,
|
| 112 |
+
896
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Why is fine-tuning prone to failures and how can we improve its stability? ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
258,
|
| 121 |
+
909,
|
| 122 |
+
740,
|
| 123 |
+
924
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "image",
|
| 129 |
+
"img_path": "images/2ca1eb5ee16c11f85ba9ece76c980550e0f43eb5a07b91cc6fbb1fed6786cf92.jpg",
|
| 130 |
+
"image_caption": [
|
| 131 |
+
"Figure 1: Our proposed fine-tuning strategy leads to very stable results with very concentrated development set performance over 25 different random seeds across all three datasets on BERT. In particular, we significantly outperform the recently proposed approach of Lee et al. (2020) in terms of fine-tuning stability. "
|
| 132 |
+
],
|
| 133 |
+
"image_footnote": [],
|
| 134 |
+
"bbox": [
|
| 135 |
+
179,
|
| 136 |
+
103,
|
| 137 |
+
818,
|
| 138 |
+
236
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "We start by investigating two common hypotheses for fine-tuning instability: catastrophic forgetting and small size of the fine-tuning datasets and demonstrate that both hypotheses fail to explain fine-tuning instability. We then investigate fine-tuning failures on datasets from the popular GLUE benchmark and show that the observed fine-tuning instability can be decomposed into two separate aspects: (1) optimization difficulties early in training, characterized by vanishing gradients, and (2) differences in generalization late in training, characterized by a large variance of development set accuracy for runs with almost equivalent training loss. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
318,
|
| 148 |
+
825,
|
| 149 |
+
416
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Based on our analysis, we present a simple but strong baseline for fine-tuning pre-trained language models that significantly improves the fine-tuning stability compared to previous works (Fig. 1). Moreover, we show that our findings apply not only to the widely used BERT model but also to more recent pre-trained models such as RoBERTa and ALBERT. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
422,
|
| 159 |
+
825,
|
| 160 |
+
478
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "2 RELATED WORK ",
|
| 167 |
+
"text_level": 1,
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
505,
|
| 171 |
+
339,
|
| 172 |
+
521
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "The fine-tuning instability of BERT has been pointed out in various studies. Devlin et al. (2019) report instabilities when fine-tuning BERTLARGE on small datasets and resort to performing multiple restarts of fine-tuning and selecting the model that performs best on the development set. Recently, Dodge et al. (2020) performed a large-scale empirical investigation of the fine-tuning instability of BERT. They found dramatic variations in fine-tuning accuracy across multiple restarts and argue how it might be related to the choice of random seed and the dataset size. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
540,
|
| 182 |
+
825,
|
| 183 |
+
623
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Few approaches have been proposed to directly address the observed fine-tuning instability. Phang et al. (2018) study intermediate task training (STILTS) before fine-tuning with the goal of improving performance on the GLUE benchmark. They also find that their proposed method leads to improved fine-tuning stability. However, due to the intermediate task training, their work is not directly comparable to ours. Lee et al. (2020) propose a new regularization technique termed Mixout. The authors show that Mixout improves stability during fine-tuning which they attribute to the prevention of catastrophic forgetting. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
631,
|
| 193 |
+
825,
|
| 194 |
+
729
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Another line of work investigates optimization difficulties of pre-training transformer-based language models (Xiong et al., 2020; Liu et al., 2020). Similar to our work, they highlight the importance of the learning rate warmup for optimization. Both works focus on pre-training and we hence view them as orthogonal to our work. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
176,
|
| 203 |
+
736,
|
| 204 |
+
825,
|
| 205 |
+
791
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "3 BACKGROUND ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
818,
|
| 216 |
+
326,
|
| 217 |
+
834
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "3.1 DATASETS ",
|
| 224 |
+
"text_level": 1,
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
853,
|
| 228 |
+
287,
|
| 229 |
+
867
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "We study four datasets from the GLUE benchmark (Wang et al., 2019b) following previous work studying instability during fine-tuning: CoLA, MRPC, RTE, and QNLI. Detailed statistics for each of the datasets can be found in Section 7.2 in the Appendix. ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
176,
|
| 238 |
+
882,
|
| 239 |
+
823,
|
| 240 |
+
924
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 1
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "CoLA. The Corpus of Linguistic Acceptability (Warstadt et al., 2018) is a sentence-level classification task containing sentences labeled as either grammatical or ungrammatical. Fine-tuning on CoLA was observed to be particularly stable in previous work (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). Performance on CoLA is reported in Matthew’s correlation coefficient (MCC). ",
|
| 247 |
+
"bbox": [
|
| 248 |
+
174,
|
| 249 |
+
103,
|
| 250 |
+
825,
|
| 251 |
+
159
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "MRPC. The Microsoft Research Paraphrase Corpus (Dolan and Brockett, 2005) is a sentence-pair classification task. Given two sentences, a model has to judge whether the sentences paraphrases of each other. Performance on MRPC is measured using the $F _ { 1 }$ score. ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
166,
|
| 261 |
+
823,
|
| 262 |
+
208
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "RTE. The Recognizing Textual Entailment dataset is a collection of sentence-pairs collected from a series of textual entailment challenges (Dagan et al., 2005; Bar-Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009). RTE is the second smallest dataset in the GLUE benchmark and fine-tuning on RTE was observed to be particularly unstable (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). Accuracy is used to measure performance on RTE. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
215,
|
| 272 |
+
825,
|
| 273 |
+
285
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "QNLI. The Question-answering Natural Language Inference dataset contains sentence pairs obtained from SQuAD (Rajpurkar et al., 2016). Wang et al. (2019b) converted SQuAD into a sentence pair classification task by forming a pair between each question and each sentence in the corresponding paragraph. The task is to determine whether the context sentence contains the answer to the question, i.e. entails the answer. Accuracy is used to measure performance on QNLI. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
291,
|
| 283 |
+
825,
|
| 284 |
+
362
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "3.2 FINE-TUNING ",
|
| 291 |
+
"text_level": 1,
|
| 292 |
+
"bbox": [
|
| 293 |
+
174,
|
| 294 |
+
397,
|
| 295 |
+
310,
|
| 296 |
+
411
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "Unless mentioned otherwise, we follow the default fine-tuning strategy recommended by Devlin et al. (2019): we fine-tune uncased BERTLARGE (henceforth BERT) using a batch size of 16 and a learning rate of $2 \\mathrm { e } { - } 5$ . The learning rate is linearly increased from 0 to $2 \\mathrm { e } { - } 5$ for the first $1 0 \\%$ of iterations—which is known as a warmup—and linearly decreased to 0 afterward. We apply dropout with probability $p = 0 . 1$ and weight decay with $\\lambda = 0 . 0 1$ . We train for 3 epochs on all datasets and use global gradient clipping. Following Devlin et al. (2019), we use the AdamW optimizer (Loshchilov and Hutter, 2019) without bias correction. ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
430,
|
| 306 |
+
825,
|
| 307 |
+
529
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "We decided to not show results for BERTBASE since previous works observed no instability when fine-tuning BERTBASE which we also confirmed in our experiments. Instead, we show additional results on RoBERTaLARGE (Liu et al., 2019) and ALBERTLARGE-V2 (Lan et al., 2020) using the same fine-tuning strategy. We note that compared to BERT, both RoBERTa and ALBERT have slightly different hyperparameters. In particular, RoBERTa uses weight decay with $\\lambda = 0 . 1$ and no gradient clipping, and ALBERT does not use dropout. A detailed list of all default hyperparameters for all models can be found in Section 7.3 of the Appendix. Our implementation is based on HuggingFace’s transformers library (Wolf et al., 2019) and is available online: https://github. com/uds-lsv/bert-stable-fine-tuning. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
535,
|
| 317 |
+
825,
|
| 318 |
+
660
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Fine-tuning stability. By fine-tuning stability we mean the standard deviation of the fine-tuning performance (measured, e.g., in terms of accuracy, MCC or $F _ { 1 }$ score) over the randomness of an algorithm. We follow previous works (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020) and measure fine-tuning stability using the development sets from the GLUE benchmark. We discuss alternative notions of stability in Section 7.1 in the Appendix. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
667,
|
| 328 |
+
825,
|
| 329 |
+
737
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "Failed runs. Following Dodge et al. (2020), we refer to a fine-tuning run as a failed run if its accuracy at the end of training is less or equal to that of a majority classifier on the respective dataset. The majority baselines for all tasks are found in Section 7.2 in the Appendix. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
744,
|
| 339 |
+
825,
|
| 340 |
+
786
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "4 INVESTIGATING PREVIOUS HYPOTHESES FOR FINE-TUNING INSTABILITY ",
|
| 347 |
+
"text_level": 1,
|
| 348 |
+
"bbox": [
|
| 349 |
+
171,
|
| 350 |
+
825,
|
| 351 |
+
805,
|
| 352 |
+
842
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "Previous works on fine-tuning predominantly state two hypotheses for what can be related to finetuning instability: catastrophic forgetting and small training data size of the downstream tasks. Despite the ubiquity of these hypotheses (Devlin et al., 2019; Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020), we argue that none of them has a causal relationship with fine-tuning instability. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
867,
|
| 362 |
+
826,
|
| 363 |
+
924
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "image",
|
| 369 |
+
"img_path": "images/17e75685fd0e4826b400d7908b5e71f88d0b2ad10037586d5cf0ebde73a2ccb4.jpg",
|
| 370 |
+
"image_caption": [
|
| 371 |
+
"Figure 2: Language modeling perplexity for three failed (a) and successful (b) fine-tuning runs of BERT on RTE where we replace the weights of the top- $k$ layers with their pre-trained values. We can observe that it is often sufficient to reset around 10 layers out of 24 to recover back the language modeling abilities of the pre-trained model. (c) shows the average training loss and development accuracy $_ { ( \\pm 1 \\mathrm { s t d } ) }$ for 10 failed fine-tuning runs on RTE. Failed fine-tuning runs lead to a trivial training loss suggesting an optimization problem. "
|
| 372 |
+
],
|
| 373 |
+
"image_footnote": [],
|
| 374 |
+
"bbox": [
|
| 375 |
+
183,
|
| 376 |
+
109,
|
| 377 |
+
818,
|
| 378 |
+
244
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "image",
|
| 384 |
+
"img_path": "images/a48e471441bf46291293b3e5d857c3ac31e96d8e550e638819994d2dc05d8be2.jpg",
|
| 385 |
+
"image_caption": [
|
| 386 |
+
"Figure 3: Development set results on down-sampled MRPC, CoLA, and QNLI using the default fine-tuning scheme of BERT (Devlin et al., 2019). The leftmost boxplot in each sub-figure shows the development accuracy when training on the full training set. "
|
| 387 |
+
],
|
| 388 |
+
"image_footnote": [],
|
| 389 |
+
"bbox": [
|
| 390 |
+
179,
|
| 391 |
+
338,
|
| 392 |
+
825,
|
| 393 |
+
473
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "4.1 DOES CATASTROPHIC FORGETTING CAUSE FINE-TUNING INSTABILITY?",
|
| 400 |
+
"text_level": 1,
|
| 401 |
+
"bbox": [
|
| 402 |
+
174,
|
| 403 |
+
551,
|
| 404 |
+
704,
|
| 405 |
+
565
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "Catastrophic forgetting (McCloskey and Cohen, 1989; Kirkpatrick et al., 2017) refers to the phenomenon when a neural network is sequentially trained to perform two different tasks, and it loses its ability to perform the first task after being trained on the second. More specifically, in our setup, it means that after fine-tuning a pre-trained model, it can no longer perform the original masked language modeling task used for pre-training. This can be measured in terms of the perplexity on the original training data. Although the language modeling performance of a pre-trained model correlates with its fine-tuning accuracy (Liu et al., 2019; Lan et al., 2020), there is no clear motivation for why preserving the original masked language modeling performance after fine-tuning is important.1 ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
173,
|
| 414 |
+
577,
|
| 415 |
+
825,
|
| 416 |
+
689
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "In the context of fine-tuning BERT, Lee et al. (2020) suggest that their regularization method has an effect of alleviating catastrophic forgetting. Thus, it is important to understand how exactly catastrophic forgetting occurs during fine-tuning and how it relates to the observed fine-tuning instability. To better understand this, we perform the following experiment: we fine-tune BERT on RTE, following the default strategy by Devlin et al. (2019). We select three successful and three failed fine-tuning runs and evaluate their masked language modeling perplexity on the test set of the WikiText-2 language modeling benchmark (Merity et al., 2016).2 We sequentially substitute the top- $k$ layers of the network varying $k$ from 0 (i.e. all layers are from the fine-tuned model) to 24 (i.e. all layers are from the pre-trained model). We show the results in Fig. 2 (a) and (b). ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
173,
|
| 425 |
+
695,
|
| 426 |
+
825,
|
| 427 |
+
821
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "We can observe that although catastrophic forgetting occurs for the failed models (Fig. 2a) — perplexity on WikiText-2 is indeed degraded for $k = 0$ — the phenomenon is much more nuanced. Namely, catastrophic forgetting affects only the top layers of the network — in our experiments often around ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
828,
|
| 437 |
+
821,
|
| 438 |
+
871
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "10 out of 24 layers, and the same is however also true for the successfully fine-tuned models, except for a much smaller increase in perplexity. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
103,
|
| 448 |
+
823,
|
| 449 |
+
132
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "Another important aspect of our experiment is that catastrophic forgetting typically requires that the model at least successfully learns how to perform the new task. However, this is not the case for the failed fine-tuning runs. Not only is the development accuracy equal to that of the majority classifier, but also the training loss on the fine-tuning task (here RTE) is trivial, i.e. close to $- \\ln ( 1 / 2 )$ (see Fig. 2 (c)). This suggests that the observed fine-tuning failure is rather an optimization problem causing catastrophic forgetting in the top layers of the pre-trained model. We will show later that the optimization aspect is actually sufficient to explain most of the fine-tuning variance. ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
174,
|
| 458 |
+
140,
|
| 459 |
+
825,
|
| 460 |
+
236
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "4.2 DO SMALL TRAINING DATASETS CAUSE FINE-TUNING INSTABILITY?",
|
| 467 |
+
"text_level": 1,
|
| 468 |
+
"bbox": [
|
| 469 |
+
176,
|
| 470 |
+
256,
|
| 471 |
+
684,
|
| 472 |
+
268
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "Having a small training dataset is by far the most commonly stated hypothesis for fine-tuning instability. Multiple recent works (Devlin et al., 2019; Phang et al., 2018; Lee et al., 2020; Zhu et al., 2020; Dodge et al., 2020; Pruksachatkun et al., 2020) that have observed BERT fine-tuning to be unstable relate this finding to the small number of training examples. ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
174,
|
| 481 |
+
281,
|
| 482 |
+
825,
|
| 483 |
+
337
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 4
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "To test if having a small training dataset inherently leads to fine-tuning instability we perform the following experiment:3 we randomly sample 1,000 training samples from the CoLA, MRPC, and QNLI training datasets and fine-tune BERT using 25 different random seeds on each dataset. We compare two different settings: first, training for 3 epochs on the reduced training dataset, and second, training for the same number of iterations as on the full training dataset. We show the results in Fig. 3 and observe that training on less data does indeed affect the fine-tuning variance, in particular, there are many more failed runs. However, when we simply train for as many iterations as on the full training dataset, we almost completely recover the original variance of the fine-tuning performance. We also observe no failed runs on MRPC and QNLI and only a single failed run on CoLA which is similar to the results obtained by training on the full training set. Further, as expected, we observe that training on fewer samples affects the generalization of the model, leading to a worse development set performance on all three tasks.4 ",
|
| 490 |
+
"bbox": [
|
| 491 |
+
174,
|
| 492 |
+
344,
|
| 493 |
+
825,
|
| 494 |
+
510
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 4
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "We conclude from this experiment, that the role of training dataset size per se is orthogonal to fine-tuning stability. What is crucial is rather the number of training iterations. As our experiment shows, the observed increase in instability when training with smaller datasets can rather be attributed to the reduction of the number of iterations (that changes the effective learning rate schedule) which, as we will show in the next section, has a crucial influence on the fine-tuning stability. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
518,
|
| 504 |
+
825,
|
| 505 |
+
587
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 4
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "5 DISENTANGLING OPTIMIZATION AND GENERALIZATION IN FINE-TUNING INSTABILITY ",
|
| 512 |
+
"text_level": 1,
|
| 513 |
+
"bbox": [
|
| 514 |
+
176,
|
| 515 |
+
611,
|
| 516 |
+
805,
|
| 517 |
+
642
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Our findings in Section 4 detail that while both catastrophic forgetting and small size of the datasets indeed correlate with fine-tuning instability, none of them are causing it. In this section, we argue that the fine-tuning instability is an optimization problem, and it admits a simple solution. Additionally, we show that even though a large fraction of the fine-tuning instability can be explained by optimization, the remaining instability can be attributed to generalization issues where fine-tuning runs with the same training loss exhibit noticeable differences in the development set performance. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
660,
|
| 527 |
+
825,
|
| 528 |
+
742
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "5.1 THE ROLE OF OPTIMIZATION ",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
176,
|
| 538 |
+
762,
|
| 539 |
+
413,
|
| 540 |
+
775
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "Failed fine-tuning runs suffer from vanishing gradients. We observed in Fig. 2c that the failed runs have practically constant training loss throughout the training (see Fig. 14 in the Appendix for a comparison with successful fine-tuning). In order to better understand this phenomenon, in Fig. 4 we plot the $\\ell _ { 2 }$ gradient norms of the loss function with respect to different layers of BERT, for one failed and successful fine-tuning run. For the failed run we see large enough gradients only for the top layers and vanishing gradients for the bottom layers. This is in large contrast to the successful run. While we also observe small gradients at the beginning of training (until iteration 70), gradients start to grow as training continues. Moreover, at the end of fine-tuning, we observe gradient norms nearly $2 \\times$ orders of magnitude larger than that of the failed run. Similar visualizations for additional layers and weights can be found in Fig. 10 in the Appendix. Moreover, we observe the same behavior also for RoBERTa and ALBERT models, and the corresponding figures can be found in the Appendix as well (Fig. 11 and 12). ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
789,
|
| 550 |
+
825,
|
| 551 |
+
858
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 4
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "image",
|
| 557 |
+
"img_path": "images/57e7a65c978622e72bb1473321aaeda3de93a912bcd3ee37e09d63cc6b5f65c8.jpg",
|
| 558 |
+
"image_caption": [
|
| 559 |
+
"Figure 4: Gradient norms (plotted on a logarithmic scale) of different layers on RTE for a failed and successful run of BERT fine-tuning. We observe that the failed run is characterized by vanishing gradients in the bottom layers of the network. Additional plots for other weight matrices can be found in the Appendix. "
|
| 560 |
+
],
|
| 561 |
+
"image_footnote": [],
|
| 562 |
+
"bbox": [
|
| 563 |
+
246,
|
| 564 |
+
113,
|
| 565 |
+
751,
|
| 566 |
+
267
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 5
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "image",
|
| 572 |
+
"img_path": "images/3191efa17953497d2e9ffc0c93f807f8b51d41f4b8d3de7bc3e0485cd1eece89.jpg",
|
| 573 |
+
"image_caption": [
|
| 574 |
+
"Figure 5: Box plots showing the fine-tuning performance of (a) BERT, (b) RoBERTa, (c) ALBERT for different learning rates $\\alpha$ with and without bias correction (BC) on RTE. For BERT and ALBERT, having bias correction leads to more stable results and allows to train using larger learning rates. For RoBERTa, the effect is less pronounced but still visible. "
|
| 575 |
+
],
|
| 576 |
+
"image_footnote": [],
|
| 577 |
+
"bbox": [
|
| 578 |
+
178,
|
| 579 |
+
342,
|
| 580 |
+
826,
|
| 581 |
+
472
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "",
|
| 588 |
+
"bbox": [
|
| 589 |
+
173,
|
| 590 |
+
568,
|
| 591 |
+
825,
|
| 592 |
+
666
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Importantly, we note that the vanishing gradients we observe during fine-tuning are harder to resolve than the standard vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994). In particular, common weight initialization schemes (Glorot and Bengio, 2010; He et al., 2015) ensure that the pre-activations of each layer of the network have zero mean and unit variance in expectation. However, we cannot simply modify the weights of a pre-trained model on each layer to ensure this property since this would conflict with the idea of using the pre-trained weights. ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
672,
|
| 602 |
+
825,
|
| 603 |
+
757
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Importance of bias correction in ADAM. Following Devlin et al. (2019), subsequent works on fine-tuning BERT-based models use the ADAM optimizer (Kingma and Ba, 2015). A subtle detail of the fine-tuning scheme of Devlin et al. (2019) is that it does not include the bias correction in ADAM. Kingma and Ba (2015) already describe the effect of the bias correction as to reduce the learning rate at the beginning of training. By rewriting the update equations of ADAM as follows, we can clearly see this effect of bias correction: ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
173,
|
| 612 |
+
763,
|
| 613 |
+
825,
|
| 614 |
+
847
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "equation",
|
| 620 |
+
"img_path": "images/4a893f8dabcba29556295ef549e7aaf7e62b1445705b134780d68aa339017a43.jpg",
|
| 621 |
+
"text": "$$\n\\begin{array} { l } { { \\alpha _ { t } \\alpha \\cdot \\sqrt { 1 - \\beta _ { 2 } ^ { t } } / ( 1 - \\beta _ { 1 } ^ { t } ) , } } \\\\ { { \\theta _ { t } \\theta _ { t - 1 } - \\alpha _ { t } \\cdot m _ { t } / ( \\sqrt { v _ { t } } + \\epsilon ) , } } \\end{array}\n$$",
|
| 622 |
+
"text_format": "latex",
|
| 623 |
+
"bbox": [
|
| 624 |
+
388,
|
| 625 |
+
859,
|
| 626 |
+
609,
|
| 627 |
+
907
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "image",
|
| 633 |
+
"img_path": "images/3c47d595d071fb108f72fd94bef1fccf858d1b6f1f998d6e516fba81f4a80708.jpg",
|
| 634 |
+
"image_caption": [
|
| 635 |
+
"Figure 7: 2D loss surfaces in the subspace spanned by $\\delta _ { 1 } = \\theta _ { f } - \\theta _ { p }$ and $\\delta _ { 2 } = \\theta _ { s } - \\theta _ { p }$ on RTE, MRPC, and CoLA. $\\theta _ { p } , \\theta _ { f }$ , $\\theta _ { s }$ denote the parameters of the pre-trained, failed, and successfully trained model, respectively. "
|
| 636 |
+
],
|
| 637 |
+
"image_footnote": [],
|
| 638 |
+
"bbox": [
|
| 639 |
+
179,
|
| 640 |
+
106,
|
| 641 |
+
823,
|
| 642 |
+
246
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 6
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "Here $m _ { t }$ and $v _ { t }$ are biased first and second moment estimates respectively. Equation (1) shows that bias correction simply boils down to reducing the original step size $\\alpha$ by a multiplicative factor $\\sqrt { 1 - \\beta _ { 2 } ^ { t } } / ( 1 - \\beta _ { 1 } ^ { t } )$ which is significantly below 1 for the first iterations of training and approaches 1 as the number of training iterations $t$ increases (see Fig. 6). Along the same lines, You et al. (2020) explicitly remark that bias correction in ADAM has a similar effect to the warmup which is widely used in deep learning to prevent divergence early in training (He et al., 2016; Goyal et al., 2017; Devlin et al., 2019; Wong et al., 2020). ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
174,
|
| 651 |
+
321,
|
| 652 |
+
581,
|
| 653 |
+
477
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 6
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "image",
|
| 659 |
+
"img_path": "images/9a66213890a3d625ea59c5e23e6ef48bb4a27bf9977d9ae208e9e6e199e42c24.jpg",
|
| 660 |
+
"image_caption": [
|
| 661 |
+
"Figure 6: The bias correction term of ADAM ( $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 9 9$ ). "
|
| 662 |
+
],
|
| 663 |
+
"image_footnote": [],
|
| 664 |
+
"bbox": [
|
| 665 |
+
606,
|
| 666 |
+
324,
|
| 667 |
+
810,
|
| 668 |
+
439
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 6
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "The implicit warmup of ADAM is likely to be an important factor that contributed to its success. We argue that fine-tuning BERT-based language models is not an exception. In Fig. 5 we show the results of fine-tuning on RTE with and without bias correction for BERT, RoBERTa, and ALBERT models.5 We observe that there is a significant benefit in combining warmup with bias correction, particularly for BERT and ALBERT. Even though for RoBERTa fine-tuning is already more stable even without bias correction, adding bias correction gives an additional improvement. ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
174,
|
| 677 |
+
483,
|
| 678 |
+
825,
|
| 679 |
+
568
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Our results show that bias correction is useful if we want to get the best performance within 3 epochs, the default recommendation by Devlin et al. (2019). An alternative solution is to simply train longer with a smaller learning rate, which also leads to much more stable fine-tuning. We provide a more detailed ablation study in Appendix (Fig. 9) with analogous box plots for BERT using various learning rates, numbers of training epochs, with and without bias correction. Finally, concurrently to our work, Zhang et al. (2021) also make a similar observation about the importance of bias correction and longer training which gives further evidence to our findings. ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
173,
|
| 688 |
+
574,
|
| 689 |
+
825,
|
| 690 |
+
671
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 6
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Loss surfaces. To get further intuition about the fine-tuning failure, we provide loss surface visualizations (Li et al., 2018; Hao et al., 2019) of failed and successful runs when fine-tuning BERT. Denote by $\\theta _ { p }$ , $\\theta _ { f }$ , $\\theta _ { s }$ the parameters of the pre-trained model, failed model, and successfully trained model, respectively. We plot a two-dimensional loss surface $f ( \\alpha , \\beta ) = \\mathcal { L } ( \\theta _ { p } + \\alpha \\delta _ { 1 } + \\beta \\delta _ { 2 } )$ in the subspace spanned by $\\delta _ { 1 } = \\theta _ { f } - \\theta _ { p }$ and $\\delta _ { 2 } = \\theta _ { s } - \\theta _ { p }$ centered at the weights of the pre-trained model $\\theta _ { p }$ . Additional details are specified in Section 7.6 in the Appendix. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
678,
|
| 700 |
+
825,
|
| 701 |
+
762
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Contour plots of the loss surfaces for RTE, MRPC, and CoLA are shown in Fig. 7. They provide additional evidence to our findings on vanishing gradients: for failed fine-tuning runs gradient descent converges to a “bad” valley with a sub-optimal training loss. Moreover, this bad valley is separated from the local minimum (to which the successfully trained run converged) by a barrier (see also Fig. 13 in the Appendix). Interestingly, we observe a highly similar geometry for all three datasets providing further support for our interpretation of fine-tuning instability as a primarily optimization issue. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
768,
|
| 711 |
+
825,
|
| 712 |
+
866
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "image",
|
| 718 |
+
"img_path": "images/ca95a024a64a8b0ba9fc93b72ee20f9b1017d95083887ebc0519890dcc0a0e16.jpg",
|
| 719 |
+
"image_caption": [
|
| 720 |
+
"Figure 8: Development set accuracy for multiple fine-tuning runs on RTE. The models for (a) are trained with 10 different seeds, and models for (b) are taken at the end of the training, and trained with different seeds and hyperparameters. "
|
| 721 |
+
],
|
| 722 |
+
"image_footnote": [],
|
| 723 |
+
"bbox": [
|
| 724 |
+
217,
|
| 725 |
+
104,
|
| 726 |
+
782,
|
| 727 |
+
282
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 7
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "5.2 THE ROLE OF GENERALIZATION ",
|
| 734 |
+
"text_level": 1,
|
| 735 |
+
"bbox": [
|
| 736 |
+
176,
|
| 737 |
+
364,
|
| 738 |
+
434,
|
| 739 |
+
378
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 7
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "We now turn to the generalization aspects of fine-tuning instability. In order to show that the remaining fine-tuning variance on the development set can be attributed to generalization, we perform the following experiment: we fine-tune BERT on RTE for 20 epochs and show the development set accuracy for 10 successful runs in Fig. 8a. Further, we show in Fig. 8b the development set accuracy vs. training loss of all BERT models fine-tuned on RTE for the full ablation study (shown in Fig. 9 in the Appendix), in total 450 models. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
173,
|
| 748 |
+
390,
|
| 749 |
+
825,
|
| 750 |
+
473
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 7
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "We find that despite achieving close to zero training loss overfitting is not an issue during fine-tuning. This is consistent with previous work (Hao et al., 2019), which arrived at a similar conclusion. Based on our results, we argue that it is even desirable to train for a larger number of iterations since the development accuracy varies considerably during fine-tuning and it does not degrade even when the training loss is as low as 10−5. ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
481,
|
| 760 |
+
825,
|
| 761 |
+
550
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 7
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Combining these findings with results from the previous section, we conclude that the fine-tuning instability can be decomposed into two aspects: optimization and generalization. In the next section, we propose a simple solution addressing both issues. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
558,
|
| 771 |
+
825,
|
| 772 |
+
599
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 7
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "6 A SIMPLE BUT HARD-TO-BEAT BASELINE FOR FINE-TUNING BERT ",
|
| 779 |
+
"text_level": 1,
|
| 780 |
+
"bbox": [
|
| 781 |
+
171,
|
| 782 |
+
621,
|
| 783 |
+
758,
|
| 784 |
+
636
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 7
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "As our findings in Section 5 show, the empirically observed instability of fine-tuning BERT can be attributed to vanishing gradients early in training as well as differences in generalization late in training. Given the new understanding of fine-tuning instability, we propose the following guidelines for fine-tuning transformer-based masked language models on small datasets: ",
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
651,
|
| 794 |
+
825,
|
| 795 |
+
707
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 7
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "• Use small learning rates with bias correction to avoid vanishing gradients early in training. \n• Increase the number of iterations considerably and train to (almost) zero training loss. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
209,
|
| 804 |
+
714,
|
| 805 |
+
823,
|
| 806 |
+
742
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 7
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "This leads to the following simple baseline scheme: we fine-tune BERT using ADAM with bias correction and a learning rate of 2e−5. The training is performed for 20 epochs, and the learning rate is linearly increased for the first $1 0 \\%$ of steps and linearly decayed to zero afterward. All other hyperparameters are kept unchanged. A full ablation study on RTE testing various combinations of the changed hyperparameters is presented in Section 7.4 in the Appendix. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
174,
|
| 815 |
+
750,
|
| 816 |
+
825,
|
| 817 |
+
819
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "Results. Despite the simplicity of our proposed fine-tuning strategy, we obtain strong empirical performance. Table 1 and Fig. 1 show the results of fine-tuning BERT on RTE, MRPC, and CoLA. We compare to the default strategy of Devlin et al. (2019) and the recent Mixout method from Lee et al. (2020). First, we observe that our method leads to a much more stable fine-tuning performance on all three datasets as evidenced by the significantly smaller standard deviation of the final performance. To further validate our claim about the fine-tuning stability, we run Levene’s test (Levene, 1960) to check the equality of variances for the distributions of the final performances on each dataset. For all three datasets, the test results in a p-value less than 0.001 when we compare the variances between our method and the method achieving the second smallest variance. Second, we also observe that our method improves the overall fine-tuning performance: in Table 1 we achieve a higher mean value on all datasets and also comparable or better maximum performance on MRPC and CoLA respectively. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
173,
|
| 826 |
+
825,
|
| 827 |
+
825,
|
| 828 |
+
924
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "table",
|
| 834 |
+
"img_path": "images/b8e84593c9e859f37803c22973a47e3e0af11e360b1685bcbc1c6724b38ee6e8.jpg",
|
| 835 |
+
"table_caption": [
|
| 836 |
+
"Table 1: Standard deviation, mean, and maximum performance on the development set of RTE, MRPC, and CoLA when fine-tuning BERT over 25 random seeds. Standard deviation: lower is better, i.e. fine-tuning is more stable. ? denotes significant difference $\\mathit { p } < 0 . 0 0 1 $ ) when compared to the second smallest standard deviation. "
|
| 837 |
+
],
|
| 838 |
+
"table_footnote": [],
|
| 839 |
+
"table_body": "<table><tr><td>Approach</td><td colspan=\"3\">RTE</td><td colspan=\"3\">MRPC</td><td colspan=\"3\">CoLA</td></tr><tr><td></td><td>std</td><td>mean</td><td>max</td><td>std</td><td>mean</td><td>max</td><td>std</td><td>mean</td><td>max</td></tr><tr><td>Devlin et al. (2019)</td><td>4.5</td><td>50.9</td><td>67.5</td><td>3.9</td><td>84.0</td><td>91.2</td><td>25.6</td><td>45.6</td><td>64.6</td></tr><tr><td>Lee et al. (2020)</td><td>7.9</td><td>65.3</td><td>74.4</td><td>3.8</td><td>87.8</td><td>91.8</td><td>20.9</td><td>51.9</td><td>64.0</td></tr><tr><td>Ours</td><td>2.7*</td><td>67.3</td><td>71.1</td><td>0.8*</td><td>90.3</td><td>91.7</td><td>1.8*</td><td>62.1</td><td>65.3</td></tr></table>",
|
| 840 |
+
"bbox": [
|
| 841 |
+
191,
|
| 842 |
+
151,
|
| 843 |
+
805,
|
| 844 |
+
243
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
268,
|
| 854 |
+
825,
|
| 855 |
+
325
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 8
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Finally, we note that we suggest to increase the number of fine-tuning iterations only for small datasets, and thus the increased computational cost of our proposed scheme is not a problem in practice. Moreover, we think that overall our findings lead to more efficient fine-tuning because of the significantly improved stability which effectively reduces the number of necessary fine-tuning runs. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
332,
|
| 865 |
+
825,
|
| 866 |
+
387
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "7 CONCLUSIONS ",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
176,
|
| 876 |
+
410,
|
| 877 |
+
328,
|
| 878 |
+
425
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "In this work, we have discussed the existing hypotheses regarding the reasons behind fine-tuning instability and proposed a new baseline strategy for fine-tuning that leads to significantly improved fine-tuning stability and overall improved results on commonly used datasets from the GLUE benchmark. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
443,
|
| 888 |
+
825,
|
| 889 |
+
497
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "By analyzing failed fine-tuning runs, we find that neither catastrophic forgetting nor small dataset sizes sufficiently explain fine-tuning instability. Instead, our analysis reveals that fine-tuning instability can be characterized by two distinct problems: (1) optimization difficulties early in training, characterized by vanishing gradients, and (2) differences in generalization, characterized by a large variance of development set accuracy for runs with almost equivalent training performance. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
505,
|
| 899 |
+
825,
|
| 900 |
+
575
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Based on our analysis, we propose a simple but strong baseline strategy for fine-tuning BERT which outperforms the previous works in terms of fine-tuning stability and overall performance. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
582,
|
| 910 |
+
821,
|
| 911 |
+
609
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 918 |
+
"text_level": 1,
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
632,
|
| 922 |
+
356,
|
| 923 |
+
647
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "We thank Anna Khokhlova for her help with the language modeling experiments, Cheolhyoung Lee and Jesse Dodge for providing us with details of their works, and Badr Abdullah and Aditya Mogadala for their helpful comments on a draft of this paper. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
664,
|
| 933 |
+
825,
|
| 934 |
+
705
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 232722074 – SFB 1102. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
173,
|
| 943 |
+
713,
|
| 944 |
+
823,
|
| 945 |
+
741
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 8
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "REFERENCES ",
|
| 952 |
+
"text_level": 1,
|
| 953 |
+
"bbox": [
|
| 954 |
+
174,
|
| 955 |
+
763,
|
| 956 |
+
287,
|
| 957 |
+
779
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 8
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "Roy Bar-Haim, Ido Dagan, Bill Dolan, Lisa Ferro, and Danilo Giampiccolo. 2006. The second pascal recognising textual entailment challenge. Proceedings of the Second PASCAL Challenges Workshop on Recognising Textual Entailment. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
787,
|
| 967 |
+
825,
|
| 968 |
+
830
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Yoshua Bengio, Patrice Simard, and Paolo Frasconi. 1994. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
173,
|
| 977 |
+
840,
|
| 978 |
+
823,
|
| 979 |
+
869
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Luisa Bentivogli, Ido Dagan, Hoa Trang Dang, Danilo Giampiccolo, and Bernardo Magnini. 2009. The fifth pascal recognizing textual entailment challenge. In Proceedings of the Second Text Analysis Conference (TAC 2009). ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
176,
|
| 988 |
+
881,
|
| 989 |
+
825,
|
| 990 |
+
922
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The pascal recognising textual entailment challenge. In Proceedings of the First International Conference on Machine Learning Challenges: Evaluating Predictive Uncertainty Visual Object Classification, and Recognizing Textual Entailment, MLCW’05, page 177–190, Berlin, Heidelberg. Springer-Verlag. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
103,
|
| 1000 |
+
825,
|
| 1001 |
+
160
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 9
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. 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. Association for Computational Linguistics. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
173,
|
| 1010 |
+
170,
|
| 1011 |
+
826,
|
| 1012 |
+
241
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 9
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "Jesse Dodge, Gabriel Ilharco, Roy Schwartz, Ali Farhadi, Hannaneh Hajishirzi, and Noah Smith. 2020. Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. arXiv preprint arXiv:2002.06305. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
176,
|
| 1021 |
+
252,
|
| 1022 |
+
823,
|
| 1023 |
+
295
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 9
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005). ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
171,
|
| 1032 |
+
305,
|
| 1033 |
+
823,
|
| 1034 |
+
335
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 9
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. 2007. The third pascal recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, RTE ’07, page 1–9, USA. Association for Computational Linguistics. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
173,
|
| 1043 |
+
344,
|
| 1044 |
+
826,
|
| 1045 |
+
401
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Xavier Glorot and Yoshua Bengio. 2010. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 249–256. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
174,
|
| 1054 |
+
412,
|
| 1055 |
+
825,
|
| 1056 |
+
455
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 9
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. 2017. Accurate, large minibatch sgd: Training imagenet in 1 hour. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
174,
|
| 1065 |
+
465,
|
| 1066 |
+
823,
|
| 1067 |
+
508
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Yaru Hao, Li Dong, Furu Wei, and Ke Xu. 2019. Visualizing and understanding the effectiveness of BERT. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), pages 4143–4152, Hong Kong, China. Association for Computational Linguistics. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
520,
|
| 1077 |
+
825,
|
| 1078 |
+
577
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2015. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026–1034. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
174,
|
| 1087 |
+
587,
|
| 1088 |
+
825,
|
| 1089 |
+
631
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
173,
|
| 1098 |
+
640,
|
| 1099 |
+
825,
|
| 1100 |
+
684
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Sepp Hochreiter. 1991. Untersuchungen zu dynamischen neuronalen netzen. Diploma, Technische Universität München, 91(1). ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
694,
|
| 1110 |
+
823,
|
| 1111 |
+
723
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Tushar Khot, Ashish Sabharwal, and Peter Clark. 2018. Scitail: A textual entailment dataset from science question answering. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
733,
|
| 1121 |
+
823,
|
| 1122 |
+
763
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In International Conference on Learning Representations. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
173,
|
| 1131 |
+
773,
|
| 1132 |
+
823,
|
| 1133 |
+
803
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, and et al. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
174,
|
| 1142 |
+
814,
|
| 1143 |
+
826,
|
| 1144 |
+
869
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
881,
|
| 1154 |
+
825,
|
| 1155 |
+
924
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Cheolhyoung Lee, Kyunghyun Cho, and Wanmo Kang. 2020. Mixout: Effective regularization to finetune large-scale pretrained language models. In International Conference on Learning Representations. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
176,
|
| 1164 |
+
103,
|
| 1165 |
+
823,
|
| 1166 |
+
145
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 10
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Howard Levene. 1960. Robust tests for equality of variances. Contributions to probability and statistics: Essays in honor of Harold Hotelling, pages 278–292. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
171,
|
| 1175 |
+
155,
|
| 1176 |
+
825,
|
| 1177 |
+
184
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 10
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. 2018. Visualizing the loss landscape of neural nets. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems 31, pages 6389–6399. Curran Associates, Inc. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
174,
|
| 1186 |
+
193,
|
| 1187 |
+
826,
|
| 1188 |
+
250
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 10
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Liyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Jiawei Han. 2020. On the variance of the adaptive learning rate and beyond. In International Conference on Learning Representations. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
258,
|
| 1198 |
+
825,
|
| 1199 |
+
301
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 10
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
309,
|
| 1209 |
+
825,
|
| 1210 |
+
352
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 10
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
174,
|
| 1219 |
+
361,
|
| 1220 |
+
823,
|
| 1221 |
+
390
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 10
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Michael McCloskey and Neal J Cohen. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
398,
|
| 1231 |
+
825,
|
| 1232 |
+
441
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 10
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "R. Thomas McCoy, Junghyun Min, and Tal Linzen. 2020. BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performance. In Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 217–227, Online. Association for Computational Linguistics. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
173,
|
| 1241 |
+
450,
|
| 1242 |
+
825,
|
| 1243 |
+
507
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 10
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Tom McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448, Florence, Italy. Association for Computational Linguistics. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
515,
|
| 1253 |
+
825,
|
| 1254 |
+
573
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 10
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
171,
|
| 1263 |
+
580,
|
| 1264 |
+
823,
|
| 1265 |
+
611
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Timothy Niven and Hung-Yu Kao. 2019. Probing neural network comprehension of natural language arguments. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4658–4664, Florence, Italy. Association for Computational Linguistics. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
174,
|
| 1274 |
+
619,
|
| 1275 |
+
825,
|
| 1276 |
+
662
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Jason Phang, Thibault Févry, and Samuel R Bowman. 2018. Sentence encoders on stilts: Supplementary training on intermediate labeled-data tasks. arXiv preprint arXiv:1811.01088. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
173,
|
| 1285 |
+
670,
|
| 1286 |
+
821,
|
| 1287 |
+
700
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Yada Pruksachatkun, Jason Phang, Haokun Liu, Phu Mon Htut, Xiaoyi Zhang, Richard Yuanzhe Pang, Clara Vania, Katharina Kann, and Samuel R. Bowman. 2020. Intermediate-task transfer learning with pretrained language models: When and why does it work? In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5231–5247, Online. Association for Computational Linguistics. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
708,
|
| 1297 |
+
825,
|
| 1298 |
+
779
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, Austin, Texas. Association for Computational Linguistics. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
174,
|
| 1307 |
+
787,
|
| 1308 |
+
825,
|
| 1309 |
+
844
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2019a. Superglue: A stickier benchmark for general-purpose language understanding systems. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 3266–3280. Curran Associates, Inc. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
176,
|
| 1318 |
+
853,
|
| 1319 |
+
826,
|
| 1320 |
+
924
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 10
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019b. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In International Conference on Learning Representations. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
176,
|
| 1329 |
+
103,
|
| 1330 |
+
823,
|
| 1331 |
+
146
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 11
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. 2018. Neural network acceptability judgments. arXiv preprint arXiv:1805.12471. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
155,
|
| 1341 |
+
823,
|
| 1342 |
+
184
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 11
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. 2019. Transformers: State-of-theart natural language processing. arXiv preprint arXiv:1910.03771. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
193,
|
| 1352 |
+
821,
|
| 1353 |
+
236
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 11
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Eric Wong, Leslie Rice, and J. Zico Kolter. 2020. Fast is better than free: Revisiting adversarial training. In International Conference on Learning Representations. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
243,
|
| 1363 |
+
821,
|
| 1364 |
+
273
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 11
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tie-Yan Liu. 2020. On layer normalization in the transformer architecture. arXiv preprint arXiv:2002.04745. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
174,
|
| 1373 |
+
281,
|
| 1374 |
+
823,
|
| 1375 |
+
324
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 11
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. 2020. Large batch optimization for deep learning: Training bert in 76 minutes. In International Conference on Learning Representations. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
174,
|
| 1384 |
+
333,
|
| 1385 |
+
825,
|
| 1386 |
+
376
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 11
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Tianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q Weinberger, and Yoav Artzi. 2021. Revisiting few-sample BERT fine-tuning. In International Conference on Learning Representations. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
385,
|
| 1396 |
+
823,
|
| 1397 |
+
414
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 11
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Tom Goldstein, and Jingjing Liu. 2020. Freelb: Enhanced adversarial training for natural language understanding. In International Conference on Learning Representations. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
422,
|
| 1407 |
+
825,
|
| 1408 |
+
465
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "APPENDIX ",
|
| 1415 |
+
"text_level": 1,
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
176,
|
| 1418 |
+
103,
|
| 1419 |
+
263,
|
| 1420 |
+
117
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 12
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "7.1 ALTERNATIVE NOTIONS OF STABILITY ",
|
| 1427 |
+
"text_level": 1,
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
178,
|
| 1430 |
+
133,
|
| 1431 |
+
478,
|
| 1432 |
+
147
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 12
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "Here, we elaborate on other possible definitions of fine-tuning stability. The definition that we use throughout the paper follows the previous work (Phang et al., 2018; Dodge et al., 2020; Lee et al., 2020). For example, while Dodge et al. (2020) do not directly define fine-tuning stability, they report and analyze the standard deviation of the validation performance (e.g., see Section 4.1 of their paper). Along the same lines, an earlier work of Phang et al. (2018), which studies the influence of intermediate fine-tuning, discusses the variance of the validation performance (see Section 4: Results, paragraph Fine-Tuning Stability therein) and shows the standard deviation over multiple random seeds in Figure 1. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
173,
|
| 1441 |
+
157,
|
| 1442 |
+
826,
|
| 1443 |
+
270
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 12
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "For simplicity, let us assume that the performance metric is accuracy and we have two classes. Let $A$ be a randomized fine-tuning algorithm that produces a classifier $f _ { A }$ , and let us denote data points as $( x , y ) \\sim \\mathcal { D }$ where $\\mathcal { D }$ is the data-generating distribution. Our definition of fine-tuning stability can be formalized as follows: ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
173,
|
| 1452 |
+
276,
|
| 1453 |
+
825,
|
| 1454 |
+
332
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 12
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "equation",
|
| 1460 |
+
"img_path": "images/9b2b8cb13be63d20270ba2830c5391dab93cd991e475c515d86a0a0478d13ed1.jpg",
|
| 1461 |
+
"text": "$$\nS _ { \\mathrm { o u r s } } ( A ) = \\mathrm { V a r } _ { A } \\left[ \\mathrm { E } _ { x , y } \\left[ \\mathbb { 1 } _ { f _ { A } ( x ) = y } \\right] \\right] = \\mathrm { V a r } _ { A } \\left[ \\mathrm { A c c u r a c y } ( f _ { A } ) \\right] .\n$$",
|
| 1462 |
+
"text_format": "latex",
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
297,
|
| 1465 |
+
333,
|
| 1466 |
+
699,
|
| 1467 |
+
353
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 12
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "text",
|
| 1473 |
+
"text": "This definition directly measures the variance of the performance metric and aims to answer the question: If we perform fine-tuning multiple times, how large will the difference in performance be? ",
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
174,
|
| 1476 |
+
353,
|
| 1477 |
+
823,
|
| 1478 |
+
382
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 12
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"text": "An alternative definition of fine-tuning stability that could be considered is per-point stability where the expectation and variance are interchanged: ",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
173,
|
| 1487 |
+
387,
|
| 1488 |
+
823,
|
| 1489 |
+
416
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 12
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "equation",
|
| 1495 |
+
"img_path": "images/e8af2a647d12834bd5ffbce865436fae63c57e76348d1aebd96e277cf5707c12.jpg",
|
| 1496 |
+
"text": "$$\nS _ { \\mathrm { p e r - p o i n t } } ( A ) = \\mathrm { E } _ { x , y } \\left[ \\mathrm { V a r } _ { A } \\left[ \\mathbb { 1 } _ { f _ { A } ( x ) = y } \\right] \\right] .\n$$",
|
| 1497 |
+
"text_format": "latex",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
364,
|
| 1500 |
+
417,
|
| 1501 |
+
630,
|
| 1502 |
+
436
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 12
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "This definition captures a different notion of stability. Namely, it captures stability per data point by measuring how much the classifiers $f _ { A }$ differ on the same point $x$ given label $y$ . Studying the per-point fine-tuning stability can be useful to better understand the properties of fine-tuned models and we refer to McCoy et al. (2020) for a study in this direction. ",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
174,
|
| 1511 |
+
438,
|
| 1512 |
+
825,
|
| 1513 |
+
492
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 12
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "7.2 TASK STATISTICS ",
|
| 1520 |
+
"text_level": 1,
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
176,
|
| 1523 |
+
508,
|
| 1524 |
+
334,
|
| 1525 |
+
522
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 12
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Statistics for each of the datasets studied in this paper are shown in Table 2. All datasets are publicly available. The GLUE datasets can be downloaded here: https://github.com/nyu-mll/ jiant. SciTail is available at https://github.com/allenai/scitail. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
176,
|
| 1534 |
+
534,
|
| 1535 |
+
826,
|
| 1536 |
+
577
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 12
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "table",
|
| 1542 |
+
"img_path": "images/36e44997ce4bc84b6bc75f869fe0272ab87f8a8612e07707a008598221a4ff40.jpg",
|
| 1543 |
+
"table_caption": [
|
| 1544 |
+
"Table 2: Dataset statistics and majority baselines. "
|
| 1545 |
+
],
|
| 1546 |
+
"table_footnote": [],
|
| 1547 |
+
"table_body": "<table><tr><td></td><td>RTE</td><td>MRPC</td><td>CoLA</td><td>QNLI</td><td>SciTail</td></tr><tr><td>Training</td><td>2491</td><td>3669</td><td>8551</td><td>104744</td><td>23596</td></tr><tr><td>Development</td><td>278</td><td>409</td><td>1043</td><td>5464</td><td>1304</td></tr><tr><td>Majority baseline</td><td>0.53</td><td>0.75</td><td>0.0</td><td>0.50</td><td>0.63</td></tr><tr><td>Metric</td><td>Acc.</td><td>F1 score</td><td>MCC</td><td>Acc.</td><td>Acc.</td></tr></table>",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
266,
|
| 1550 |
+
611,
|
| 1551 |
+
730,
|
| 1552 |
+
698
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 12
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "7.3 HYPERPARAMETERS ",
|
| 1559 |
+
"text_level": 1,
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
174,
|
| 1562 |
+
719,
|
| 1563 |
+
357,
|
| 1564 |
+
734
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 12
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "text",
|
| 1570 |
+
"text": "Hyperparameters for BERT, RoBERTa, and ALBERT used for all our experiments are shown in Table 3. ",
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
176,
|
| 1573 |
+
744,
|
| 1574 |
+
823,
|
| 1575 |
+
773
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 12
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "7.4 ABLATION STUDIES ",
|
| 1582 |
+
"text_level": 1,
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
176,
|
| 1585 |
+
790,
|
| 1586 |
+
352,
|
| 1587 |
+
804
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 12
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "Figure 9 shows the results of fine-tuning on RTE with different combinations of learning rate, number of training epochs, and bias correction. We make the following observations: ",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
168,
|
| 1596 |
+
815,
|
| 1597 |
+
825,
|
| 1598 |
+
844
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 12
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "• When training for only 3 epochs, disabling bias correction clearly hurts performance. • With bias correction, training with larger learning rates is possible. • Combining the usage of bias correction with training for more epochs leads to the best performance. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
215,
|
| 1607 |
+
853,
|
| 1608 |
+
825,
|
| 1609 |
+
919
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 12
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "image",
|
| 1615 |
+
"img_path": "images/8e6041c913757b68ade8bd2ce9cc243f8155476e8baa77a8c80c2cef0ac9edf6.jpg",
|
| 1616 |
+
"image_caption": [
|
| 1617 |
+
"Figure 9: Full ablation of fine-tuning BERT on RTE. For each setting, we vary only the number of training steps, learning rate, and usage of bias correction (BC). All other hyperparameters are unchanged. We fine-tune 25 models for each setting. $\\star$ shows the setting which we recommend as a new baseline fine-tuning strategy. "
|
| 1618 |
+
],
|
| 1619 |
+
"image_footnote": [],
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
202,
|
| 1622 |
+
207,
|
| 1623 |
+
802,
|
| 1624 |
+
767
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 13
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "table",
|
| 1630 |
+
"img_path": "images/3d348f706c864cb62ba315139c71ac8b5ecb6c4825a4126a3fb1b566bf718030.jpg",
|
| 1631 |
+
"table_caption": [
|
| 1632 |
+
"Table 3: Hyperparameters used for fine-tuning. "
|
| 1633 |
+
],
|
| 1634 |
+
"table_footnote": [],
|
| 1635 |
+
"table_body": "<table><tr><td>Hyperparam</td><td>BERT</td><td>RoBERTa</td><td>ALBERT</td></tr><tr><td>Epochs</td><td>3,10,20</td><td>3</td><td>3</td></tr><tr><td>Learning rate</td><td>le-5-5e-5</td><td>le-5-3e-5</td><td>le-5-3e-5</td></tr><tr><td>Learning rate schedule</td><td>warmup-linear</td><td>warmup-linear</td><td>warmup-linear</td></tr><tr><td>Warmup ratio</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Batch size</td><td>16</td><td>16</td><td>16</td></tr><tr><td>Adam e</td><td>1e-6</td><td>1e-6</td><td>1e-6</td></tr><tr><td>Adam β1</td><td>0.9</td><td>0.9</td><td>0.9</td></tr><tr><td>Adam β2</td><td>0.999</td><td>0.98</td><td>0.999</td></tr><tr><td>Adam bias correction</td><td>{True,False}</td><td>{True, False}</td><td>{True,False}</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>1</td></tr><tr><td>Weight decay</td><td>0.01</td><td>0.1</td><td>1</td></tr><tr><td>Clipping gradient norm</td><td>1.0</td><td>1</td><td>1.0</td></tr><tr><td>Number of random seeds</td><td>25</td><td>25</td><td>25</td></tr></table>",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
232,
|
| 1638 |
+
126,
|
| 1639 |
+
766,
|
| 1640 |
+
337
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 14
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "7.5 ADDITIONAL GRADIENT NORM VISUALIZATIONS ",
|
| 1647 |
+
"text_level": 1,
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
174,
|
| 1650 |
+
364,
|
| 1651 |
+
550,
|
| 1652 |
+
377
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 14
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "We provide additional visualizations for the vanishing gradients observed when fine-tuning BERT, RoBERTa, and ALBERT in Figures 10, 11, 12. Note that for ALBERT besides the pooler and classification layers, we plot only the gradient norms of a single hidden layer (referred to as layer0) because of weight sharing. ",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
174,
|
| 1661 |
+
388,
|
| 1662 |
+
825,
|
| 1663 |
+
445
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 14
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "text",
|
| 1669 |
+
"text": "Gradient norms and MLM perplexity. We can see from the gradient norm visualizations for BERT in Figures 4 and 10 that the gradient norm of the pooler and classification layer remains large. Hence, even though the gradients on most layers of the model vanish, we still update the weights on the top layers. In fact, this explains the large increase in MLM perplexity for the failed models which is shown in Fig. 2a. While most of the layers do not change as we continue training, the top layers of the network change dramatically. ",
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
174,
|
| 1672 |
+
452,
|
| 1673 |
+
825,
|
| 1674 |
+
536
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 14
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "text",
|
| 1680 |
+
"text": "7.6 LOSS SURFACES ",
|
| 1681 |
+
"text_level": 1,
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
176,
|
| 1684 |
+
554,
|
| 1685 |
+
326,
|
| 1686 |
+
569
|
| 1687 |
+
],
|
| 1688 |
+
"page_idx": 14
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"type": "text",
|
| 1692 |
+
"text": "For Fig. 7, we define the range for both $\\alpha$ and $\\beta$ as $[ - 1 . 5 , 1 . 5 ]$ and sample 40 points for each axis. We evaluate the loss on 128 samples from the training dataset of each task using all model parameters, including the classification layer. We disabled dropout for generating the surface plots. ",
|
| 1693 |
+
"bbox": [
|
| 1694 |
+
174,
|
| 1695 |
+
580,
|
| 1696 |
+
825,
|
| 1697 |
+
623
|
| 1698 |
+
],
|
| 1699 |
+
"page_idx": 14
|
| 1700 |
+
},
|
| 1701 |
+
{
|
| 1702 |
+
"type": "text",
|
| 1703 |
+
"text": "Fig. 13 shows contour plots of the total gradient norm. We can again see that the point to which the failed model converges to $( \\theta _ { f } )$ is separated from the point the successful model converges to $( \\theta _ { s } )$ by a barrier. Moreover, on all the three datasets we can clearly see the valley around $\\theta _ { f }$ with a small gradient norm. ",
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
174,
|
| 1706 |
+
630,
|
| 1707 |
+
825,
|
| 1708 |
+
685
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 14
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "text",
|
| 1714 |
+
"text": "7.7 TRAINING CURVES ",
|
| 1715 |
+
"text_level": 1,
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
176,
|
| 1718 |
+
704,
|
| 1719 |
+
346,
|
| 1720 |
+
719
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 14
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "text",
|
| 1726 |
+
"text": "Fig. 14 shows training curves for 10 successful and 10 failed fine-tuning runs on RTE. We can clearly observe that all 10 failed runs have a common pattern: throughout the training, their training loss stays close to that at initialization. This implies an optimization problem and suggests to reconsider the optimization scheme. ",
|
| 1727 |
+
"bbox": [
|
| 1728 |
+
173,
|
| 1729 |
+
731,
|
| 1730 |
+
825,
|
| 1731 |
+
786
|
| 1732 |
+
],
|
| 1733 |
+
"page_idx": 14
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"type": "text",
|
| 1737 |
+
"text": "7.8 ADDITIONAL FINE-TUNING RESULTS ",
|
| 1738 |
+
"text_level": 1,
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
178,
|
| 1741 |
+
806,
|
| 1742 |
+
465,
|
| 1743 |
+
820
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 14
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "text",
|
| 1749 |
+
"text": "We report additional fine-tuning results on the SciTail dataset (Khot et al., 2018) in Table 4 to demonstrate that our findings generalize to datasets from other domains. ",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
173,
|
| 1752 |
+
832,
|
| 1753 |
+
823,
|
| 1754 |
+
861
|
| 1755 |
+
],
|
| 1756 |
+
"page_idx": 14
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"type": "text",
|
| 1760 |
+
"text": "Due to its comparatively large size (28k training samples) fine-tuning on SciTail with the Devlin et al. (2019) scheme is already very stable even when trained for 3 epochs. This is comparable to what we find for QNLI in Section 4.1. When applying our fine-tuning scheme to SciTail, the results are very close to that of Devlin et al. (2019). On the other hand, when training on a smaller subset of SciTail (1k training samples) we can clearly see the same results as also observed in Fig. 3 for MRPC, CoLA, and QNLI, i.e. using more training iterations improves the fine-tuning stability. ",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
174,
|
| 1763 |
+
867,
|
| 1764 |
+
825,
|
| 1765 |
+
924
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 14
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "image",
|
| 1771 |
+
"img_path": "images/aa8a8b9659df6d688662b4bea2049adae33425a7f0f112cf24a5af9c2ebe29c9.jpg",
|
| 1772 |
+
"image_caption": [
|
| 1773 |
+
"Figure 10: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of BERT fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively. "
|
| 1774 |
+
],
|
| 1775 |
+
"image_footnote": [],
|
| 1776 |
+
"bbox": [
|
| 1777 |
+
215,
|
| 1778 |
+
218,
|
| 1779 |
+
782,
|
| 1780 |
+
767
|
| 1781 |
+
],
|
| 1782 |
+
"page_idx": 15
|
| 1783 |
+
},
|
| 1784 |
+
{
|
| 1785 |
+
"type": "image",
|
| 1786 |
+
"img_path": "images/c22373173b2d3e4c52148f931644cc42972a88544fe122a835913b32b836d35e.jpg",
|
| 1787 |
+
"image_caption": [
|
| 1788 |
+
"Figure 11: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of RoBERTa fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively. "
|
| 1789 |
+
],
|
| 1790 |
+
"image_footnote": [],
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
245,
|
| 1793 |
+
140,
|
| 1794 |
+
751,
|
| 1795 |
+
819
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 16
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "image",
|
| 1801 |
+
"img_path": "images/f80e109368e2f0c95feae8d7bd688ef690c92a1c69f2044b53235fdd49e4a206.jpg",
|
| 1802 |
+
"image_caption": [
|
| 1803 |
+
"Figure 12: Gradient norms (plotted on a logarithmic scale) of additional weight matrices of ALBERT fine-tuned on RTE. Corresponding layer names are in the captions. We show gradient norms corresponding to a single failed and single successful, respectively. "
|
| 1804 |
+
],
|
| 1805 |
+
"image_footnote": [],
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
245,
|
| 1808 |
+
140,
|
| 1809 |
+
751,
|
| 1810 |
+
821
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 17
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "image",
|
| 1816 |
+
"img_path": "images/9ab580f48b2fa5f55b9a68c1a50f9ee6baf599d3dcdf80a319ab2c6f3e99dd50.jpg",
|
| 1817 |
+
"image_caption": [
|
| 1818 |
+
"Figure 13: 2D gradient norm surfaces in the subspace spanned by $\\delta _ { 1 } = \\theta _ { f } - \\theta _ { p }$ and $\\delta _ { 2 } = \\theta _ { s } - \\theta _ { p }$ for BERT fine-tuned on RTE, MRPC and CoLA. $\\theta _ { p } , \\theta _ { f }$ , $\\theta _ { s }$ denote the parameters of the pre-trained, failed, and successfully trained model, respectively. "
|
| 1819 |
+
],
|
| 1820 |
+
"image_footnote": [],
|
| 1821 |
+
"bbox": [
|
| 1822 |
+
179,
|
| 1823 |
+
106,
|
| 1824 |
+
823,
|
| 1825 |
+
246
|
| 1826 |
+
],
|
| 1827 |
+
"page_idx": 18
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "image",
|
| 1831 |
+
"img_path": "images/90f258b1a316c75b6c3fd83719d5d45da6c0f0e8634399099a0b6c0069373136.jpg",
|
| 1832 |
+
"image_caption": [
|
| 1833 |
+
"Figure 14: The test accuracy and training loss of (a) 10 successful runs with our fine-tuning scheme and (b) 10 failed runs with fine-tuning scheme Devlin on RTE. Solid line shows the mean, error bars show $\\pm 1 \\mathrm { s t d }$ . "
|
| 1834 |
+
],
|
| 1835 |
+
"image_footnote": [],
|
| 1836 |
+
"bbox": [
|
| 1837 |
+
218,
|
| 1838 |
+
320,
|
| 1839 |
+
781,
|
| 1840 |
+
496
|
| 1841 |
+
],
|
| 1842 |
+
"page_idx": 18
|
| 1843 |
+
},
|
| 1844 |
+
{
|
| 1845 |
+
"type": "table",
|
| 1846 |
+
"img_path": "images/e666631860a1280ac5795253fc6d64c705542da5faa8e31d107fe066b7fd8042.jpg",
|
| 1847 |
+
"table_caption": [
|
| 1848 |
+
"Table 4: Standard deviation, mean, and maximum performance on the development set of SciTail when finetuning BERT over 25 random seeds. Standard deviation: lower is better, i.e. fine-tuning is more stable. "
|
| 1849 |
+
],
|
| 1850 |
+
"table_footnote": [],
|
| 1851 |
+
"table_body": "<table><tr><td rowspan=\"2\">Approach</td><td colspan=\"3\">SciTail</td></tr><tr><td>std</td><td>mean</td><td>max</td></tr><tr><td>Devlin et al. (2019),full train set, 3 epochs</td><td>0.4</td><td>95.1</td><td>96.0</td></tr><tr><td>Devlin et al. (2019),1k samples,3 epochs</td><td>17.9</td><td>69.8</td><td>89.4</td></tr><tr><td>Devlin et al. (2019),1k samples,71 epochs</td><td>0.9</td><td>87.5</td><td>89.1</td></tr><tr><td>Ours, full train set</td><td>0.6</td><td>95.1</td><td>96.8</td></tr></table>",
|
| 1852 |
+
"bbox": [
|
| 1853 |
+
287,
|
| 1854 |
+
585,
|
| 1855 |
+
710,
|
| 1856 |
+
690
|
| 1857 |
+
],
|
| 1858 |
+
"page_idx": 18
|
| 1859 |
+
},
|
| 1860 |
+
{
|
| 1861 |
+
"type": "text",
|
| 1862 |
+
"text": "",
|
| 1863 |
+
"bbox": [
|
| 1864 |
+
171,
|
| 1865 |
+
715,
|
| 1866 |
+
825,
|
| 1867 |
+
744
|
| 1868 |
+
],
|
| 1869 |
+
"page_idx": 18
|
| 1870 |
+
},
|
| 1871 |
+
{
|
| 1872 |
+
"type": "text",
|
| 1873 |
+
"text": "We conclude from this experiment that our findings and guidelines generalize to datasets from other domains as well. This gives further evidence that the observed instability is not a property of any particular dataset but rather a result of too few training iterations based on the common fine-tuning practice of using a fixed number of epochs (and not iterations) independently of the training data size. ",
|
| 1874 |
+
"bbox": [
|
| 1875 |
+
173,
|
| 1876 |
+
751,
|
| 1877 |
+
826,
|
| 1878 |
+
808
|
| 1879 |
+
],
|
| 1880 |
+
"page_idx": 18
|
| 1881 |
+
}
|
| 1882 |
+
]
|
parse/train/nzpLWnVAyah/nzpLWnVAyah_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/nzpLWnVAyah/nzpLWnVAyah_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|