Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/5qsptDcsdEj/5qsptDcsdEj.md +356 -0
- parse/train/5qsptDcsdEj/5qsptDcsdEj_content_list.json +1866 -0
- parse/train/5qsptDcsdEj/5qsptDcsdEj_middle.json +0 -0
- parse/train/5qsptDcsdEj/5qsptDcsdEj_model.json +0 -0
- parse/train/H1g2NhC5KQ/H1g2NhC5KQ.md +322 -0
- parse/train/H1g2NhC5KQ/H1g2NhC5KQ_content_list.json +0 -0
- parse/train/H1g2NhC5KQ/H1g2NhC5KQ_middle.json +0 -0
- parse/train/H1g2NhC5KQ/H1g2NhC5KQ_model.json +0 -0
- parse/train/SyYe6k-CW/SyYe6k-CW.md +0 -0
- parse/train/SyYe6k-CW/SyYe6k-CW_content_list.json +0 -0
- parse/train/SyYe6k-CW/SyYe6k-CW_middle.json +0 -0
- parse/train/SyYe6k-CW/SyYe6k-CW_model.json +0 -0
- parse/train/c5QbJ1zob73/c5QbJ1zob73.md +0 -0
- parse/train/c5QbJ1zob73/c5QbJ1zob73_content_list.json +0 -0
- parse/train/c5QbJ1zob73/c5QbJ1zob73_middle.json +0 -0
- parse/train/c5QbJ1zob73/c5QbJ1zob73_model.json +0 -0
- parse/train/r1e8WTEYPB/r1e8WTEYPB.md +359 -0
- parse/train/r1e8WTEYPB/r1e8WTEYPB_content_list.json +1845 -0
- parse/train/r1e8WTEYPB/r1e8WTEYPB_middle.json +0 -0
- parse/train/r1e8WTEYPB/r1e8WTEYPB_model.json +0 -0
parse/train/5qsptDcsdEj/5qsptDcsdEj.md
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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.edu.pl
|
| 4 |
+
|
| 5 |
+
Michał Zaj ˛ac⇤
|
| 6 |
+
Jagiellonian University
|
| 7 |
+
Kraków, Poland
|
| 8 |
+
emzajac@gmail.com
|
| 9 |
+
Razvan Pascanu
|
| 10 |
+
DeepMind
|
| 11 |
+
London, UK
|
| 12 |
+
razp@google.com
|
| 13 |
+
|
| 14 |
+
Łukasz Kucinski ´ Polish Academy of Sciences Warsaw, Poland lkucinski@impan.pl
|
| 15 |
+
|
| 16 |
+
# Piotr Miłos´
|
| 17 |
+
|
| 18 |
+
Polish Academy of Sciences,
|
| 19 |
+
University of Oxford,
|
| 20 |
+
deepsense.ai
|
| 21 |
+
Warsaw, Poland
|
| 22 |
+
pmilos@impan.pl
|
| 23 |
+
|
| 24 |
+
# Abstract
|
| 25 |
+
|
| 26 |
+
Continual learning (CL) — the ability to continuously learn, building on previously acquired knowledge — is a natural requirement for long-lived autonomous reinforcement learning (RL) agents. While building such agents, one needs to balance opposing desiderata, such as constraints on capacity and compute, the ability to not catastrophically forget, and to exhibit positive transfer on new tasks. Understanding the right trade-off is conceptually and computationally challenging, which we argue has led the community to overly focus on catastrophic forgetting. In response to these issues, we advocate for the need to prioritize forward transfer and propose Continual World, a benchmark consisting of realistic and meaningfully diverse robotic tasks built on top of Meta-World $\bar { \mathbb { B } } \bar { \underline { { 4 } } } \mathbb { I }$ as a testbed. Following an in-depth empirical evaluation of existing CL methods, we pinpoint their limitations and highlight unique algorithmic challenges in the RL setting. Our benchmark aims to provide a meaningful and computationally inexpensive challenge for the community and thus help better understand the performance of existing and future solutions. Information about the benchmark, including the open-source code, is available at https://sites.google.com/view/continualworld.
|
| 27 |
+
|
| 28 |
+
# 1 Introduction
|
| 29 |
+
|
| 30 |
+
Change is ubiquitous. Unsurprisingly, due to evolutionary pressure, humans can quickly adapt and creatively reuse their previous experiences. In contrast, although biologically inspired, deep learning (DL) models excel mostly in static domains that satisfy the i.i.d. assumption, as for example in image processing [28, 49, 10, 40], language modelling $| { \bar { \sqrt { 5 2 } } } , { \overline { { \mathbb { 1 1 } } } } | |$ or biological applications [47]. As the systems are scaled up and deployed in open-ended settings, such assumptions are increasingly questionable; imagine, for example, a robot that needs to adapt to the changing environment and the wear-and-tear of its hardware. Continual learning (CL), an area that explicitly focuses on such problems, has been gaining more attention recently. The progress in this area could offer enormous advantages for deep neural networks $\mathbb { \lVert 1 9 \rVert }$ and move the community closer to the long-term goal of building intelligent machines $\mathbb { \ m }$ .
|
| 31 |
+
|
| 32 |
+
Evaluation of CL methods is challenging. Due to the sequential nature of the problem that disallows parallel computation, evaluation tends to be expensive, which has biased the community to focus on toy tasks. These are mostly in the domain of supervised learning, often relying on MNIST. In this work, we expand on previous discussions on the topic [45, 16, 30, 46] and introduce a new benchmark, Continual World. The benchmark is built on realistic robotic manipulation tasks from Meta-World $\pmb { \Vert 5 4 \Vert }$ , benefiting from its diversity but also being computationally cheap. Moreover, we provide shorter auxiliary sequences, all of which enable a quick research cycle. On the conceptual level, a fundamental difficulty of evaluating CL algorithms comes from the different desiderata for a CL solution. These objectives are often opposing each other, forcing practitioners to explicitly or implicitly make trade-offs in their algorithmic design that are data-dependent. Continual World provides more meaningful relationships between tasks, answering recent calls $\mathbb { \lVert 1 9 \rVert }$ to increase attention on forward transfer.
|
| 33 |
+
|
| 34 |
+
Additionally, we provide an extensive evaluation of a spectrum of commonly used CL methods. It highlights that many approaches can deal relatively well with catastrophic forgetting at the expense of other desiderata, in particular forward transfer. This emphasizes our call for focusing on forward transfer and the need for more benchmarks that allow for common structure among the tasks.
|
| 35 |
+
|
| 36 |
+
The main contribution of this work is a CL benchmark that poses optimizing forward transfer as the central goal and shows that existing methods struggle to outperform simple baselines in terms of the forward transfer capability. We release the code2 both for the benchmark and 7 CL methods, which aims to provide the community helpful tools to better understand the performance of existing and future solutions. We encourage to visit the website3 of the project and participate in the Continual World Challenge.
|
| 37 |
+
|
| 38 |
+
# 2 Related work
|
| 39 |
+
|
| 40 |
+
The field of continual learning has grown considerably in the past years, with numerous works forming new subfields $\mathbb { \left[ \left. 2 3 \right] \right. }$ and finding novel applications $\lVert \overline { { 4 8 } } \rVert$ . For brevity, we focus only on the papers proposing RL-based benchmarks and point to selected surveys of the entire field. $\pmb { \mathbb { D } }$ provide a high-level overview of CL and argue that learning in a non-stationary setting is a fundamental problem for the development of AI, highlighting the frequent connections to neuroscience. On the other hand, $\mathbb { B } 3 \mathbb { B }$ focus on describing, evaluating, and relating CL methods to each other, providing a taxonomy of CL solutions that we use in this work.
|
| 41 |
+
|
| 42 |
+
The possibility of applying CL methods in reinforcement learning scenarios has been explored for a long time, see $[ [ 2 5 ] ]$ for a recent review. However, no benchmark has been widely accepted by the community so far, which is the aim of this work. Below we discuss various benchmarks and environments considered in the literature.
|
| 43 |
+
|
| 44 |
+
Supervised settings MNIST has been widely used to benchmark CL algorithms in two forms $ { \mathbb { \left[ \left[ 2 7 \right] \right] } }$ . In the permuted MNIST, the pixels of images are randomly permuted to form new tasks. In the split MNIST, tasks are defined by classifying non-overlapping subsets of classes, e.g. 0 vs. 1 followed by 2 vs. 3. A similar procedure has been applied to various image classification tasks like CIFAR-10, CIFAR-100, Omniglot or mini-ImageNet [2, 46, 5]. Another benchmark is CORe50 [31], a dataset for continuous object recognition. Recent work $\mathbb { \left. 2 9 \right. }$ proposes a benchmark based on language modeling. We find that many of these benchmarks are challenging and allow to measure forgetting. However, we argue they are not geared towards measuring forward transfer or for highlighting important RL-specific characteristics of the CL problem.
|
| 45 |
+
|
| 46 |
+
Atari The Atari 2600 suite $\textcircled { 8 }$ is a widely accepted RL benchmark. Sequences of different Atari games have been used for evaluating continual learning approaches [43, 27]. Using Atari can be computationally expensive, e.g., training a sequence of ten games typically requires 100M steps or more. More importantly, as $\mathbb { \lVert \boldsymbol { 4 3 } \rVert }$ notes, these games lack a meaningful overlap, limiting their relevance for studying transfers. Continuous control [32, 24] use continuous control tasks such as Humanoid or Walker2D. However, the considered sequences are short, and the range of experiments is limited. [34] use Meta-World tasks, similarly to us, for evaluations of their continual learning method, but the work is not aimed at building a benchmark. As such, it uses the Meta-World’s MT10 preset and does not provide an in-depth analysis of the tasks or other CL methods. Maze navigation A set of 3D maze environments is used in [43]. The map structure and objects that the agent needs to collect change between tasks. It is not clear, though, if the tasks provide enough diversity. [30] propose CRLMaze, 3D navigation scenarios for continual learning, which solely concentrate on changes of the visual aspects. StarCraft $\lVert \rVert \dot { \boldsymbol { \mathrm { ~ ‰ ~ } } }$ present a StarCraft campaign (11 tasks) to evaluate a high-level transfer of skills. The main drawback of this benchmark is excessive computational demand (often more than 1B frames). Minecraft $\mathbb { \left[ \left. 5 0 \right| \right. }$ propose simple scenarios within the Minecraft domain along with a hierarchical learning method. The authors phrase the problem as lifelong learning and do not use typical CL methods. Lifelong Hanabi $\lVert \rVert$ consider a multi-agent reinforcement learning setting based on Hanabi, a cooperative game requiring significant coordination between agents. On the other hand, we focus on the single agent setting with changing environment, which allows us to bypass the computational complexity needed to model interactions between agents and highlight issues connected to learning in a changing world. Causal World $\pmb { \mathbb { B } } \|$ propose an environment for robotic manipulation tasks which share causal structure. Although they investigate issues deeply connected to learning in a changing world, such as generalization to new tasks and curricula, they do not directly consider continual learning. Jelly Bean World $\mathbb { B } 9 \mathbb { I }$ provide interesting procedurally generated grid world environments. The suite is configurable and can host a non-stationary setting. It is unclear, however, if such environments reflect the characteristics of real-world challenges.
|
| 47 |
+
|
| 48 |
+
# 3 Continual learning background
|
| 49 |
+
|
| 50 |
+
Continual learning (CL) is an area of research which focuses on building algorithms capable of handling non-stationarity. They should be able to sequentially acquire new skills and solve novel tasks without forgetting the previous ones. Such systems are desired to accommodate over extended periods swiftly, which is often compared to human capabilities and alternatively dubbed as lifelong learning. CL is intimately related to multi-task learning, curriculum learning, meta-learning, with some key differences. Multi-task assumes constant access to all tasks, thus ignoring non-stationarity. Curriculum learning focuses on controlling the task ordering and often the learning time-span. Metalearning, a large field of its own, sets the objective to develop procedures that allow fast adaptation within a task distribution and usually ignores the issue of non-stationarity.
|
| 51 |
+
|
| 52 |
+
The CL objective is operationalized by the training and evaluation protocols. The former typically consists of a sequence of tasks (their boundaries might be implicit and smooth). The latter usually involves measuring catastrophic forgetting, forward transfer, and backward transfer. The learning system might also have constrained resources: computations, memory, size of neural networks, and the volume of data samples. A fundamental observation is that the above aspects and desiderata are conflicting. For example, given unlimited resources, one might mitigate forgetting simply by storing everything in memory and paying a high computational cost of rehearsing all samples from the past.
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 1: Left graph shows task PEG-UNPLUG-SIDEV1 and the right graph presents forward transfer from SHELF-PLACE-V1 to PEG-UNPLUG-SIDE-V1. In this case $F T = 0 . 1 0$ .
|
| 56 |
+
|
| 57 |
+
Another pair of objectives that are problematic for current methods are forgetting and forward transfer. For neural networks, existing methods propose to limit network plasticity. These alleviate the problem of forgetting, however, at the cost of choking the further learning process. We advocate for more nuanced approaches. Importantly, to make the transfer possible, our benchmark is composed of related tasks. We also put modest bounds on resources. This requirement is in line with realistic scenarios, demanding computationally efficient adaptation and inference. In a broader sense, we hope to address a data efficiency challenge, one of the most signif
|
| 58 |
+
|
| 59 |
+
icant limitations of the current deep (reinforcement) learning methods. We conjecture that forward transfer might greatly improve the situation and possibly one day enable us to create systems with human-level cognition capabilities, in line with similar thoughts expressed in [19].
|
| 60 |
+
|
| 61 |
+
# 4 Continual World benchmark
|
| 62 |
+
|
| 63 |
+
Continual World is a new benchmark designed to be a testbed for evaluating RL agents on the challenges advocated by the CL paradigm, described in Section $^ { 3 , }$ as well as highlighting the RLspecific algorithmic challenges for CL (see Section $\boxed { 6 . 1 }$ . As such it is aimed at being valuable to both the CL and RL communities. Continual World consists of realistic robotic manipulation tasks, aligned in a sequence to enable the study of forward transfer. It is designed to be challenging while computationally accessible.4 The benchmark is based on Meta-World, a suite of robotic tasks already established in the community. This enables easy comparisons with the related fields of multi-task and meta-learning reinforcement learning, potentially highlighting one benefit of CL framing, namely that of dealing with different reward scales as we discuss more in detail in Appendix $\mathrm { H } .$ Continual World comes with open-source code that allows for easy development and testing of new algorithms and provides implementations of 7 existing algorithms. Finally, it allows highlighting RL-specific challenges for the CL setting. We believe that our work is a step in the right direction towards reliable benchmarks of CL. We realize, however, that it will need to evolve as the field progresses. We leave a discussion on future directions and limitations to Section 4.4.
|
| 64 |
+
|
| 65 |
+
# 4.1 Metrics
|
| 66 |
+
|
| 67 |
+
To facilitate further discussion, we start with defining metrics. These are rather standard in the CL setting $\mathbb { H } 2 \mathbb { I }$ . Assume $p _ { i } ( t ) \in [ 0 , 1 ]$ to be the performance (success rate) of task $i$ at time $t$ . As a measure of performance, we take the average success rate of achieving a goal specified by a given task when using randomized initial conditions and stochastic policies (see also Section $4 . { \overset { - } { 3 } } ) . { \overset { 5 } { . } } { \overset { . } { } }$ Each task is trained for $\Delta = 1 M$ steps. The main sequence has $N = 2 0$ tasks and the total sample budget is $T = N \cdot \Delta = 2 0 M$ . The $i$ -th task is trained during the interval $t \in [ ( i - 1 ) \cdot \Delta , i \cdot \Delta ]$ . We report the following metrics:
|
| 68 |
+
|
| 69 |
+
Average performance. The average performance at time $t$ is (see Figure 3)
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\mathsf { P } ( t ) : = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } p _ { i } ( t ) .
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Its final value, $\mathrm { P } ( { \cal T } )$ , is a traditional metric used in the CL research. This is the objective we use for tuning hyperparameters. We have $\mathbf { P } ( t ) \in [ 0 , 1 ]$ for each $t$ .
|
| 76 |
+
|
| 77 |
+
Forward transfer. We measure the forward transfer of a method as the normalized area between its training curve and the training curve of the reference, single-task, experiment, see Figure $1 .$ Let $p _ { i } ^ { b } \in [ 0 , 1 ]$ be the reference performance6 then the forward transfer for the task $i$ , denoted by $\bar { \mathsf { F T } } _ { i }$ , is
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathsf { F T } _ { i } : = \frac { \mathsf { A U C } _ { i } - \mathsf { A U C } _ { i } ^ { b } } { 1 - \mathsf { A U C } _ { i } ^ { b } } , \quad \mathsf { A U C } _ { i } : = \frac { 1 } { \Delta } \int _ { ( i - 1 ) \cdot \Delta } ^ { i \cdot \Delta } p _ { i } ( t ) \mathrm { d } t , \quad \mathsf { A U C } _ { i } ^ { b } : = \frac { 1 } { \Delta } \int _ { 0 } ^ { \Delta } p _ { i } ^ { b } ( t ) \mathrm { d } t ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
The average forward transfer for all tasks, FT, is defined as
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathrm { F T } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \mathrm { F T } _ { i } .
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
We note that $\mathrm { F T } _ { i } \leq 1$ and they might be negative. In our experiments, we also measure backward transfer. As it is negligible, see Appendix E.1.
|
| 90 |
+
|
| 91 |
+
Forgetting. For task $i$ , we measure the decrease of performance after ending its training, i.e.
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
F _ { i } = p _ { i } ( i \cdot \Delta \bar { \Delta } ) - p _ { i } ( T ) .
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
Similarly to FT e report $\begin{array} { r } { F = { \frac { 1 } { N } } \sum _ { i = 1 } ^ { N } F _ { i } } \end{array}$ . We have $F _ { i } \leq 1$ for any $i$ and consequently $\mathrm { F T } \leq 1$ . It $F _ { i }$ are negative, which would indicate backward transfer. We do not observe this in practice, see Appendix E.1.
|
| 98 |
+
|
| 99 |
+
# 4.2 Continual World tasks
|
| 100 |
+
|
| 101 |
+
This section describes the composition of Continual World benchmark and the rationale behind its design. We decided to base on Meta-World [54], a fairly new but already established robotic benchmark for multi-task and meta reinforcement learning. From a practical standpoint, Meta-World utilizes the open-source MuJoCo physics engine [51], prized for speed and accuracy. Meta-World provides 50 distinct manipulation tasks with everyday objects using a simulated robotic Sawyer arm. Although the tasks vary significantly, the structure and semantics of observation and action spaces remain the same, allowing for transfer between tasks. Each observation is a 12-dimensional vector containing $( x , y , z )$ coordinates of the robot’s gripper and objects of interest in the scene. The 4-dimensional action space describes the direction of the arm’s movement in the next step and the gripper actuator delta. Reward functions are shaped to make each task solvable. In evaluations, we use a binary success metric based on the distance of the task-relevant object to its goal position. This metric is interpretable and enables comparisons between tasks. For more details about the rewards and evaluation metrics, see [54, Section 4.2, Section 4.3].
|
| 102 |
+
|
| 103 |
+
CW20, CW10, triplets sequences The core of our benchmark is CW20 sequence. Out of 50 tasks defined in Meta-World, we picked those that are not too easy or too hard in the assumed sample budget $\Delta = 1 M$ . Aiming to strike a balance between the difficulty of the benchmark and computational requirements, we selected 10 tasks. The tasks and their ordering were based on the transfer matrix (see the next paragraph), so that there is a high variation of forward transfers (both in the whole list and locally). We refer to these ordered tasks as CW10, and CW20 is CW10 repeated twice. We recommend using CW20 for final evaluation; however, CW10 is already very informative in most cases. Due to brevity constraints, we present an ablation with an alternative ordering of the tasks and a longer sequence of 30 tasks in Appendix $\mathbf { G } ,$ however, these experiments do not alter our findings. Additionally, to facilitate a fast development cycle, we propose a set of triplets, sequences of three tasks which exhibit interesting learning dynamics.
|
| 104 |
+
|
| 105 |
+
The CW10 sequence is: HAMMER-V1, PUSH-WALL-V1, FAUCET-CLOSE-V1, PUSH-BACK-V1, STICK-PULLV1, HANDLE-PRESS-SIDE-V1, PUSH-V1, SHELF-PLACE-V1, WINDOW-CLOSE-V1, PEG-UNPLUG-SIDE-V1.
|
| 106 |
+
|
| 107 |
+
Transfer matrix Generally, the relationship between tasks and its impact on learning dynamics of neural networks is hard to quantify, where semantic similarity does not typically lead to transfer $\textcircled { 1 1 4 } \textcircled { 1 }$ . To this end, we consider a minimal setting, in which we finetune on task $t _ { 2 }$ a model pretrained on $t _ { 1 }$ , using the same protocol as the benchmark (e.g., different output heads, see Section $\boxed { 4 . 3 }$ . This provides neural network-centric insight into the relationship between tasks summarized in Figure $\bar { \bigtriangledown } ,$ and allows us to measure low-level transfer between tasks, i.e., the ability of the model to reuse previously acquired features. See Appendix D for more results and extended discussion.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 2: Transfer matrix, see Section $4 . 2 \cdot$ Each cell represents the forward transfer from the first task to the second one. We shaded the cells for which 0 belongs to their $9 0 \%$ confidence interval.
|
| 111 |
+
|
| 112 |
+
Notice that there are only a few negative forward transfer cases, and those are of a rather small magnitude (perhaps unsurprisingly, as the tasks are related). There are also visible patterns in the matrix. For instance, some tasks such as PEGUNPLUG-SIDE-V1 or PUSH-BACK-V1 benefit from a relatively large forward transfer, (almost) irrespective of the first task. Furthermore, the average forward transfer given the second task (columns) is more variable than the corresponding quantity for the first task (rows).
|
| 113 |
+
|
| 114 |
+
Note that some transfers on the diagonal (i.e., between the same tasks) are relatively small. We made a detailed analysis of possible reasons, which revealed that the biggest negative impact is due to the replay buffer resets, which seems, however, unavoidable for off-diagonal cases, see Section $6 . 1$ for details.
|
| 115 |
+
|
| 116 |
+
Importantly, we use this matrix to estimate what level of forward transfer a good CL method
|
| 117 |
+
|
| 118 |
+
should be able to achieve. We expect that a model which is able to remember all meaningful aspects of previously seen tasks would transfer at least as well as if one were just fine-tuning after learning the best choice between the previous tasks. For a sequence $t _ { 1 } , \ldots , t _ { N }$ we set the reference forward transfer, RT, to be
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\mathrm { R T } : = \frac { 1 } { N } \sum _ { i = 2 } ^ { N } \operatorname* { m a x } _ { j < i } \mathrm { F T } ( t _ { j } , t _ { i } ) ,
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $\mathrm { F T } ( t _ { j } , t _ { i } )$ is the transfer matrix value for $t _ { j } , t _ { i }$ . For the CW20 sequence, the value is $\mathrm { R T } = 0 . 4 6$ Note that a model can do better that this by composing knowledge from multiple previous tasks.
|
| 125 |
+
|
| 126 |
+
# 4.3 Training and evaluation details
|
| 127 |
+
|
| 128 |
+
We adapt the standard Meta-World setting to CL needs. First, we use separate policy heads for each task, instead of the original one-hot task ID inputs (we provide ablation experiments for this choice in Appendix $\mathbf { G } )$ . Second, in each episode, we randomize the positions of objects in the scene to encourage learning more robust policies. We use an MLP network with 4 layers of 256 neurons.
|
| 129 |
+
|
| 130 |
+
For training, we use soft actor-critic (SAC) [17], a popular and efficient RL method for continuous domains. SAC is an off-policy algorithm using replay buffer, which is an important aspect for CL, particularly for methods relying on rehearsing old trajectories. SAC is based on the so-called maximum entropy principle; this results in policies which explore better and are more robust to changes in the environment dynamics. Both of these qualities might be beneficial in CL.
|
| 131 |
+
|
| 132 |
+
We note that the size of the neural network and optimization details of the SAC algorithm (like batch size) put constraints on "the amount of compute". Intentionally, these are rather modest, which is in line with CL desiderata, see Section $3 .$ Similarly, we limit the number of timesteps to $1 M$ , which is a humble amount for modern-day deep reinforcement learning. We picked tasks to be challenging but not impossible within this budget. We note that training in the RL setting tends to be less stable than in the supervised one. We recommend using multiple seeds, in our experiments, we typically used 20 and calculate confidence intervals; we used the bootstrap method. We choose hyperparameters that maximize average performance $\mathbb { \underline { { \left( 1 \right) } } }$ . In our experiments, we tune common parameters for SAC and the method-specific hyperparameters separately. All details of the training and evaluation setup are presented in Appendix A.
|
| 133 |
+
|
| 134 |
+
# 4.4 Limitations of Continual World
|
| 135 |
+
|
| 136 |
+
As any benchmark, we are fully aware that ours will not cover the entire spectrum of problems that one might be interested in. Here we summarize a few limitations that we hope to overcome in a future instantiation of this benchmark:
|
| 137 |
+
|
| 138 |
+
Input space We use a small 12 dimensional observation space. This is key to achieve modest computational demand. However, richer inputs could allow for potentially more interesting forms of transfer (e.g., based on visual similarity of objects) and would allow inferring the task from the observation, which is currently impossible.
|
| 139 |
+
|
| 140 |
+
Reliance on SAC We use the SAC algorithm $\textcircled { 1 1 7 }$ , which is considered a standard choice for continuous robotic tasks. However, there is a potential risk of overfitting to the particularities of this algorithm and exploring alternative RL algorithms is important.
|
| 141 |
+
|
| 142 |
+
Task boundaries We rely on task boundaries. One can rely on task inference mechanisms (e.g. [35, 41]) to resolve this limitation, though we acknowledge the importance to extend the benchmark towards allowing and testing for task inference capabilities. Also, testing for algorithms dealing with continuous distributional drift is not possible in the current format.
|
| 143 |
+
|
| 144 |
+
Output heads We rely on using a separate head for each new task, similar to many works on continual learning. We opt for this variant based on its simplicity and better performance than using one-hot encoding to indicate a task. We believe that the lack of semantics of the one-hot encoding would further impede transfer, as the relationship between tasks can not be inferred. We carry ablation studies with using one-hot encoding as an input and a single head architecture, a setting that is already compatible with our benchmark. We regard this aspect as an important future work, and in particular, we are exploring alternative encoding of input to make this choice more natural. A coherent domain, like Continual World, provides a unique opportunity to exploit a consistent output layer as its semantics does not change between tasks.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 3: Training curves for selected CL methods and multi-task. The upper left panel shows the performance on the first task for a subset of methods throughout the whole training. Note that due to the use of different output heads, we do not see a second bump when revisiting this task at time $1 0 M$ . The upper right panel shows the performance on the current task being trained for EWC compared to a reference (a model learning only that task from scratch). The bottom plot shows the average performance. Solid lines show the performance of the model training on the first 10 tasks (where 1 means being able to solve all of them). Dashed lines show the performance of learning the same tasks in the second half of the benchmark. Note that dashed lower are below solid ones, indicating lower performance on the second pass, even if the agent has already previously learned the tasks and has access to relevant features.
|
| 148 |
+
|
| 149 |
+
The difficulty and number of tasks The number of tasks is relatively small. CW20, the main sequence we use, consists of only 10 different tasks, which are then repeated. We believe the repetition of tasks is important for a CL benchmark, leading to interesting observations. We check also that results are quantitatively similar on a sequence of 30 tasks, see Appendix G. However, longer sequences, potentially unbounded, are needed to understand the various limitations of existing algorithms. For example, the importance of graceful forgetting or dealing with systems that run out of capacity, a scenario where there is no multi-task solution for the sequence of observed tasks. This is particularly of interest for methods such as PackNet $\pmb { \mathbb { B 3 } }$ . Additionally, we provide the number of tasks in advance. Dealing with an unknown number of tasks might raise further interesting questions. Finally, in future iterations of the benchmark, it is important to consider more complex tasks or more complex relationships between tasks to remain a challenge to existing methods. Our goal was to provide a benchmark that is approachable by existing methods, as not to stifle progress.
|
| 150 |
+
|
| 151 |
+
Low-level transfer We focus on low-level transfers via neural network features and weights. As such, we do not explicitly explore the ability of the learning process to exploit the compositionality of behavior or to rely on a more interesting semantic level. While we believe such research is crucial, we argue that solving low-level transfer is equally important and might be a prerequisite. So, for now, it is beyond the scope of this work, though future iterations of the benchmark could contain such scenarios.
|
| 152 |
+
|
| 153 |
+
# 5 Methods
|
| 154 |
+
|
| 155 |
+
We now sketch 7 CL methods evaluated on our benchmark. Some of them were developed for RL, while others were meant for the supervised learning context and required non-trivial adaptation. We aimed to cover different families of methods; following $\mathbb { \lVert \rVert 3 \rVert }$ , we consider three classes: regularizationbased, parameter isolation and replay methods. An extended description and discussion of these methods are provided in Appendix B.
|
| 156 |
+
|
| 157 |
+
Regularization-based Methods This family builds on the observation that one can reduce forgetting by protecting parameters that are important for the previous tasks. The most basic approach often dubbed L2 $ { \mathbb { \left[ \left[ 2 7 \right] \right] } }$ simply adds a $L _ { 2 }$ penalty, which regularizes the network not to stray away from the previously learned weights. In this approach, each parameter is equally important. Elastic Weight Consolidation (EWC) $\overline { { \mathbb { R } \mathbb { Z } \mathbb { I } } }$ uses the Fisher information matrix to approximate the importance of each weight. Memory-Aware Synapses (MAS) [4] also utilizes a weighted penalty, but the importance is obtained by approximating the impact each parameter has on the output of the network. Variational Continual Learning (VCL), follows a similar path but uses variational inference to minimize the Kullback-Leibler divergence between the current distribution of parameters (posterior) and the distribution for the previous tasks (prior).
|
| 158 |
+
|
| 159 |
+
Parameter Isolation Methods This family (also called modularity-based) forbids any changes to parameters that are important for the previous tasks. It may be considered as a “hard” equivalent of regularization-based methods. PackNet [33] “packs” multiple tasks into a single network by iteratively pruning, freezing, and retraining parts of the network at task change. PackNet is closely related to progressive neural networks [43], developed in the RL context.
|
| 160 |
+
|
| 161 |
+
Replay Methods Methods of this family keep some samples from the previous tasks and use them for training or as constraints to reduce forgetting. We use a Perfect Memory baseline, a modification of our setting which remembers all the samples from the past (i.e., without resetting the buffer at the task change). We also implemented Averaged Gradient Episodic Memory (A-GEM) [12], which projects gradients from new samples as to not interfere with previous tasks. We find that A-GEM does not perform well on our benchmark.
|
| 162 |
+
|
| 163 |
+
Multi-task learning In multi-task learning, a field closely related to CL, tasks are trained simultaneously. By its design, it does not suffer from forgetting, however, it is considered to be hard as multiple tasks “compete for the attention of a single learning system”, see [21, 44]. We find that using reward normalization as in PopArt $\left[ \left[ 2 1 \right] \right]$ is essential to achieve good performance. See Appendix H.
|
| 164 |
+
|
| 165 |
+
# 6 Experiments
|
| 166 |
+
|
| 167 |
+
Now we present empirical results; these are evaluations of a set of 7 representative CL methods (as described in Section $\textcircled{5}$ on our Continual World benchmark. We focus on forgetting and transfers while keeping fixed constraints on computation, memory, number of samples, and neural network architecture. Our main empirical contributions are experiments on the long CW20 sequence and following high-level conclusions. For a summary see Table 1, Figure 3 and for an extensive discussion, we refer to Appendix $\boxed { \mathrm { E } }$ (including results for the shorter sequence, CW10). In Appendix G we provide various ablations and detailed analysis of sensitivity to the CL-specific hyperparameters.
|
| 168 |
+
|
| 169 |
+
Performance The performance (success rate) averaged over tasks (eq. $\mathbb { \underline { { ( 1 ) } } }$ ) is a typical metric for the CL setting. PackNet seems to outperform other methods, approaching 0.8 from the maximum of 1.0, outperforming multi-task solutions which might struggle with different reward scales, a problem elegantly avoided in the CL framing. Other methods perform considerably worse. A-GEM and Perfect Memory struggle. We further discuss possible reasons in Sectio n 6.1.
|
| 170 |
+
|
| 171 |
+
Table 1: Results on CW20, for CL methods and multi-task training. Metrics are defined in Section 4.1, RT is eq. $( 4 )$ . We used 20 seeds and provide $90 \%$ confidence intervals.
|
| 172 |
+
|
| 173 |
+
<table><tr><td>method</td><td>performance</td><td>forgetting</td><td>f. transfer</td></tr><tr><td>Fine-tuning</td><td>0.05 [0.05,0.06]</td><td>0.73 [0.72, 0.75]</td><td>0.20 [0.17, 0.23]</td></tr><tr><td>L2</td><td>0.43 [0.39, 0.47]</td><td>0.02 [0.00, 0.03]</td><td>-0.71 [-0.87, -0.57]</td></tr><tr><td>EWC</td><td>0.60 [0.57, 0.64]</td><td>0.02 [-0.00, 0.05]</td><td>-0.17 [-0.24, -0.11]</td></tr><tr><td>MAS</td><td>0.51 [0.49, 0.53]</td><td>0.00 [-0.01,0.02]</td><td>-0.52 [-0.59,-0.47]</td></tr><tr><td>VCL</td><td>0.48 [0.46,0.50]</td><td>0.01 [-0.01, 0.02]</td><td>-0.49 [-0.57,-0.42]</td></tr><tr><td>PackNet</td><td>0.80 [0.79, 0.82]</td><td>0.00 [-0.01,0.01]</td><td>0.19 [0.15, 0.23]</td></tr><tr><td>Perfect Memory</td><td>0.12 [0.09, 0.15]</td><td>0.07 [0.05,0.10]</td><td>-1.34 [-1.42, -1.27]</td></tr><tr><td>A-GEM</td><td>0.07 [0.06,0.08]</td><td>0.71 [0.70,0.73]</td><td>0.13 [0.10,0.16]</td></tr><tr><td>MT</td><td>0.51 [0.48, 0.53]</td><td></td><td></td></tr><tr><td>MT (PopArt)</td><td>0.65 [0.63, 0.67]</td><td></td><td></td></tr><tr><td>RT</td><td></td><td></td><td>0.46</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Forgetting We observe that
|
| 176 |
+
|
| 177 |
+
most CL methods are usually efficient in mitigating forgetting. However, we did not notice any boost when revisiting a task (see Figure $3 )$ . Even if a different output head was employed, relearning the internal representation should have had an impact unless it changed considerably when revisiting the task. Additionally, we found A-GEM difficult to tune; consequently, with the best hyperparameter settings, it is relatively similar to the baseline fine-tuning method (see details in Appendix $\bigtriangledown$
|
| 178 |
+
|
| 179 |
+
Transfers For all methods, forward transfer for the second ten tasks (and the same tasks are revisited) drops compared to the first ten tasks. This is in stark contrast to forgetting, which seems to be well under control. Among all methods, only fine-tuning and PackNet are able to achieve positive forward transfer (0.20 and 0.19, resp.) as well as on the first (0.32 and 0.21, resp.) and the second (0.08 and 0.17, resp.) half of tasks. However, these are considerably smaller than $\mathrm { R T } = 0 . 4 6$ , which in principle can even be exceeded, and which should be reached by a model that remembers all meaningful aspects of previously seen tasks, see $\textcircled{4}$ . These results paint a fairly grim picture: we would expect improvement, rather than deterioration in performance, when revisiting previously seen tasks. There could be multiple reasons for this state of affairs. It could be attributed to the loss of plasticity, similar to the effect observed in $\textcircled { 6 }$ . Another reason could be related to the interference between CL mechanisms or setting and RL, for instance, hindering exploration. We did not observe any substantial cases of backward transfer, even though the benchmark is well suited to study this question due to the revisiting of tasks. See Appendix E.1.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
Figure 4: How forgetting impacts the forward transfer. Two different triplets of tasks learnt in sequence. An ideal agent learning on a sequence $A B C$ should have at least as good performance on task $C$ as an agent which just learns $A C$ . In reality, an interfering task $B$ reduces this transfer, even when continual learning approaches are used.
|
| 183 |
+
|
| 184 |
+
Triplets experiments We illustrate how forgetting and forward transfer interact with each other in a simpler setting of three task sequences, see Figure $\boxed { \ 4 }$ and Appendix $\boxed { \mathrm { F } }$ We focus on sequences of tasks $A $ $B C$ , where $A \ \ C$ has significant positive forward transfer and $B C$ has a smaller or even negative transfer. An efficient CL agent should be able to use information from $A$ to get good performance on $C$ . However, interference introduced by $B$ reduces the fi
|
| 185 |
+
|
| 186 |
+
nal forward transfer (see Figure $^ { 4 ) }$ . The drive for reducing forgetting in CL agents has been primarily to perform well on previous tasks when we revisit them. With this example, we argue that an equally important reason to improve the memory of CL agents is to efficiently use past experiences to learn faster on new tasks. Currently, the tested CL methods often are not able to outperform the forgetful fine-tuning baseline. Observe that even the modularity-based PackNet approach struggles with this task. This possibly indicates that using the activation mask from task $B$ is enough to deteriorate the performance.
|
| 187 |
+
|
| 188 |
+
PackNet PackNet stands out in our evaluations. We conjecture that developing related methods might be a promising research direction. Besides further increasing performance, one could mitigate the limitations of PackNet. PackNet relies on knowing task identity during evaluation. While this assumption is met in our benchmark, it is an interesting topic for future research to develop methods that cope without task identity. Another nuisance is that PackNet assigns some fixed fraction of parameters to a task. This necessitates knowledge of the length of the sequence in advance. Additionally, when the second ten tasks of CW20 start, PackNet performance degrades, showing its potentially inefficient use of capacity and past knowledge, given that the second ten tasks are identical with the first ten and hence no additional capacity is needed. In a broader context, we speculate that parameter isolation methods might be a promising direction towards better CL methods.
|
| 189 |
+
|
| 190 |
+
Resources usage In practical applications it is important to consider resources usage. All tested methods have relatively small overheads. For example, PackNet needs only $1 5 \%$ more time than the baseline fine-tuning and it requires $5 0 \%$ more neural network parameters (which is negligible when small networks like ours). See Appendix $\underline { { \mathbf { B . 4 } } }$ for details concerning other methods.
|
| 191 |
+
|
| 192 |
+
Other observations In stark contrast with the supervised learning setting, we found that replay based methods (Perfect Memory and A-GEM) suffer from poor performance. This is even though we allow for a generous replay, which could store the whole experience. Explaining and amending this situation is, in our view, an important research question. We conjecture that this happens due to the regularization of the critic network (which was unavoidable for these methods). We found multi-task learning attaining lower scores than PackNet, the best CL method and comparable to the second one, EWC. We think this suggests interesting research directions for multi-task learning.
|
| 193 |
+
|
| 194 |
+
# 6.1 RL-Related Challenges
|
| 195 |
+
|
| 196 |
+
Reinforcement learning brings a set of issues not present in the supervised learning setting, e.g., exploration, varying reward scales, and stochasticity of environments. We argue that it is imperative to have a reliable benchmark to assess the efficiency of CL algorithms with respect to these problems. We find that some current methods are not well adjusted to the RL setting and require non-trivial conceptual considerations and careful tuning of hyperparameters, see details in Appendix C.
|
| 197 |
+
|
| 198 |
+
An important design choice is whether or not to regularize the critic in the actor-critic framework (e.g. in SAC). We find it beneficial to focus on reducing forgetting in the actor while allowing the critic to freely adapt to the current task (note that critic is used only in training of the current task), similar to $\dot { \lVert \ 4 6 \rVert }$ . On the other hand, a forgetful critic is controversial. This can be sharply seen when the same task is repeated and the critic needs to learn from scratch. Additionally, not all methods can be trivially adapted to the ’actor-only regularization’ setting, as for example replay based methods. In Appendix $\mathrm { \Delta C }$ we examine these issues empirically, by showing experiments with critic regularization for EWC.
|
| 199 |
+
|
| 200 |
+
Another aspect is the exploration and its non-trivial impact on transfers. As it was observed, transfers from a given task to the same one are sometimes poor. We show in Appendix $\textstyle \boxed { \mathrm { D . 1 } }$ that this results from the fact that at the task change the replay buffer is emptied and SAC collects new samples from scratch, usually by using the uniform policy. Learning on these random samples reduces performance on the current task and thus the forward transfer. Experimentally, we find that not resetting the buffer or using the current policy for exploration improves the transfer on the diagonal.
|
| 201 |
+
|
| 202 |
+
# 7 Conclusions and Future Work
|
| 203 |
+
|
| 204 |
+
In this work, we present Continual World, a continual reinforcement learning benchmark, and an in-depth analysis of how existing methods perform on it. The benchmark is aimed at facilitating and standardizing the CL system evaluation, and as such, is released with code, including implementation of 7 representative CL algorithms. We argue for more attention to forward transfer and the interaction between forgetting and transfer, as many existing methods seem to sacrifice transfer to alleviate forgetting. In our opinion, this should not be the aim of CL, and we need to strike a different balance between these objectives.
|
| 205 |
+
|
| 206 |
+
We made several observations, both conceptual and empirical, which open future research directions. In particular, we conjecture that parameter isolation methods are a promising direction. Further, we identified a set of critical issues at the intersection of RL and CL. Resolving critic regularization and efficient use of multi-task replays seem to be the most pressing ones. Our benchmark highlights some challenges, which in our view are relevant and tangible now. In the long horizon, achieving high-level transfers, removing task boundaries, and scaling up are among significant goals for future editions of Continual World. Our work is foundational research and does not lead to any direct negative applications.
|
| 207 |
+
|
| 208 |
+
# Acknowledgments and Disclosure of Funding
|
| 209 |
+
|
| 210 |
+
We would like to thank Stanisław Jastrz˛ebski for stimulating talks and help while preparing the manuscript. The work of PM was supported by the Polish National Science Center grant UMO2017/26/E/ST6/00622. The work of MW was funded by Foundation for Polish Science (grant no POIR.04.04.00-00-14DE/18-00 carried out within the Team-Net program co-financed by the European Union under the European Regional Development Fund. This research was supported by the PL-Grid Infrastructure. Our experiments were managed using https://neptune.ai. We would like to thank the Neptune team for providing us access to the team version and technical support.
|
| 211 |
+
|
| 212 |
+
# References
|
| 213 |
+
|
| 214 |
+
[1] Joshua Achiam. Spinning Up in Deep Reinforcement Learning. 2018.
|
| 215 |
+
|
| 216 |
+
[2] Tameem Adel, Han Zhao, and Richard E. Turner. Continual learning with adaptive weights (CLAW). In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
|
| 217 |
+
|
| 218 |
+
[3] Ossama Ahmed, Frederik Träuble, Anirudh Goyal, Alexander Neitz, Manuel Wuthrich, Yoshua Bengio, Bernhard Schölkopf, and Stefan Bauer. Causalworld: A robotic manipulation benchmark for causal structure and transfer learning. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021.
|
| 219 |
+
|
| 220 |
+
[4] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part III, volume 11207 of Lecture Notes in Computer Science, pages 144–161. Springer, 2018.
|
| 221 |
+
|
| 222 |
+
[5] Rahaf Aljundi, Eugene Belilovsky, Tinne Tuytelaars, Laurent Charlin, Massimo Caccia, Min Lin, and Lucas Page-Caccia. Online continual learning with maximal interfered retrieval. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 11849–11860, 2019.
|
| 223 |
+
|
| 224 |
+
[6] Jordan T. Ash and Ryan P. Adams. On warm-starting neural network training. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
|
| 225 |
+
|
| 226 |
+
[7] Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. CoRR, abs/1607.06450, 2016.
|
| 227 |
+
|
| 228 |
+
[8] M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, jun 2013.
|
| 229 |
+
|
| 230 |
+
[9] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In Francis R. Bach and David M. Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pages 1613–1622. JMLR.org, 2015.
|
| 231 |
+
|
| 232 |
+
[10] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
|
| 233 |
+
|
| 234 |
+
[11] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
|
| 235 |
+
|
| 236 |
+
[12] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with A-GEM. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
|
| 237 |
+
|
| 238 |
+
[13] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. arXiv preprint arXiv:1909.08383, 2019.
|
| 239 |
+
|
| 240 |
+
[14] Yunshu Du, Wojciech M. Czarnecki, Siddhant M. Jayakumar, Razvan Pascanu, and Balaji Lakshminarayanan. Adapting auxiliary losses using gradient similarity. CoRR, abs/1812.02224, 2018.
|
| 241 |
+
|
| 242 |
+
[15] Bradley Efron and Robert J Tibshirani. An introduction to the bootstrap. CRC press, 1994.
|
| 243 |
+
|
| 244 |
+
[16] Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. CoRR, abs/1805.09733, 2018.
|
| 245 |
+
|
| 246 |
+
[17] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer G. Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 1856–1865. PMLR, 2018.
|
| 247 |
+
|
| 248 |
+
[18] Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Soft actor-critic algorithms and applications. CoRR, abs/1812.05905, 2018.
|
| 249 |
+
|
| 250 |
+
[19] Raia Hadsell, Dushyant Rao, Andrei A. Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 24(12):1028 – 1040, 2020.
|
| 251 |
+
|
| 252 |
+
[20] Demis Hassabis, Dharshan Kumaran, Christopher Summerfield, and Matthew Botvinick. Neuroscience-inspired artificial intelligence. Neuron, 95(2):245 – 258, 2017.
|
| 253 |
+
|
| 254 |
+
[21] Matteo Hessel, Hubert Soyer, Lasse Espeholt, Wojciech Czarnecki, Simon Schmitt, and Hado van Hasselt. Multi-task deep reinforcement learning with popart. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 3796–3803. AAAI Press, 2019.
|
| 255 |
+
|
| 256 |
+
[22] Ferenc Huszár. Note on the quadratic penalties in elastic weight consolidation. Proceedings of the National Academy of Sciences, page 201717042, 2018.
|
| 257 |
+
|
| 258 |
+
[23] Khurram Javed and Martha White. Meta-learning representations for continual learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 1818–1828, 2019.
|
| 259 |
+
|
| 260 |
+
[24] Christos Kaplanis, Murray Shanahan, and Claudia Clopath. Policy consolidation for continual reinforcement learning. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3242–3251. PMLR, 09–15 Jun 2019.
|
| 261 |
+
|
| 262 |
+
[25] Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives, 2020.
|
| 263 |
+
|
| 264 |
+
[26] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
|
| 265 |
+
|
| 266 |
+
[27] James Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. CoRR, abs/1612.00796, 2016.
|
| 267 |
+
|
| 268 |
+
[28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Peter L. Bartlett, Fernando C. N. Pereira, Christopher J. C. Burges, Léon Bottou, and Kilian Q. Weinberger, editors, Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States, pages 1106–1114, 2012.
|
| 269 |
+
|
| 270 |
+
[29] Germán Kruszewski, Ionut-Teodor Sorodoc, and Tomas Mikolov. Evaluating online continual learning with calm, 2021.
|
| 271 |
+
|
| 272 |
+
[30] Vincenzo Lomonaco, Karan Desai, Eugenio Culurciello, and Davide Maltoni. Continual reinforcement learning in 3d non-stationary environments. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR Workshops 2020, Seattle, WA, USA, June 14-19, 2020, pages 999–1008. IEEE, 2020.
|
| 273 |
+
|
| 274 |
+
[31] Vincenzo Lomonaco and Davide Maltoni. Core50: a new dataset and benchmark for continuous object recognition. In 1st Annual Conference on Robot Learning, CoRL 2017, Mountain View, California, USA, November 13-15, 2017, Proceedings, volume 78 of Proceedings of Machine Learning Research, pages 17–26. PMLR, 2017.
|
| 275 |
+
|
| 276 |
+
[32] Kevin Lu, Igor Mordatch, and Pieter Abbeel. Adaptive online planning for continual lifelong learning. CoRR, abs/1912.01188, 2019.
|
| 277 |
+
|
| 278 |
+
[33] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 7765–7773. IEEE Computer Society, 2018.
|
| 279 |
+
|
| 280 |
+
[34] Jorge A. Mendez, Boyu Wang, and Eric Eaton. Lifelong policy gradient learning of factored policies for faster training without forgetting. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
|
| 281 |
+
|
| 282 |
+
[35] Kieran Milan, Joel Veness, James Kirkpatrick, Michael H. Bowling, Anna Koop, and Demis Hassabis. The forget-me-not process. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett, editors, Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 3702–3710, 2016.
|
| 283 |
+
|
| 284 |
+
[36] Hadi Nekoei, Akilesh Badrinaaraayanan, Aaron C. Courville, and Sarath Chandar. Continuous coordination as a realistic scenario for lifelong learning. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 8016–8024. PMLR, 2021.
|
| 285 |
+
|
| 286 |
+
[37] Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational continual learning. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
|
| 287 |
+
|
| 288 |
+
[38] German Ignacio Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019.
|
| 289 |
+
|
| 290 |
+
[39] Emmanouil Antonios Platanios, Abulhair Saparov, and Tom M. Mitchell. Jelly bean world: A testbed for never-ending learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
|
| 291 |
+
|
| 292 |
+
[40] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. CoRR, abs/2102.12092, 2021.
|
| 293 |
+
|
| 294 |
+
[41] Dushyant Rao, Francesco Visin, Andrei A. Rusu, Razvan Pascanu, Yee Whye Teh, and Raia Hadsell. Continual unsupervised representation learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 7645–7655, 2019.
|
| 295 |
+
|
| 296 |
+
[42] Natalia Díaz Rodríguez, Vincenzo Lomonaco, David Filliat, and Davide Maltoni. Don’t forget, there is more than forgetting: new metrics for continual learning. CoRR, abs/1810.13166, 2018.
|
| 297 |
+
|
| 298 |
+
[43] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. CoRR, abs/1606.04671, 2016.
|
| 299 |
+
|
| 300 |
+
[44] Tom Schaul, Diana Borsa, Joseph Modayil, and Razvan Pascanu. Ray interference: a source of plateaus in deep reinforcement learning. CoRR, abs/1904.11455, 2019.
|
| 301 |
+
|
| 302 |
+
[45] Jonathan Schwarz, Daniel Altman, Andrew Dudzik, Oriol Vinyals, Yee Whye Teh, and Razvan Pascanu. Towards a natural benchmark for continual learning. In Continual learning Workshop, Neurips 2018, 2018.
|
| 303 |
+
|
| 304 |
+
[46] Jonathan Schwarz, Wojciech Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In Jennifer G. Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 4535–4544. PMLR, 2018.
|
| 305 |
+
|
| 306 |
+
[47] Andrew W. Senior, Richard Evans, John Jumper, James Kirkpatrick, Laurent Sifre, Tim Green, Chongli Qin, Augustin Zídek, Alexander W. R. Nelson, Alex Bridgland, Hugo Penedones, Stig Petersen, Karen Simonyan, Steve Crossan, Pushmeet Kohli, David T. Jones, David Silver, Koray Kavukcuoglu, and Demis Hassabis. Improved protein structure prediction using potentials from deep learning. Nat., 577(7792):706–710, 2020.
|
| 307 |
+
|
| 308 |
+
[48] Fan-Keng Sun, Cheng-Hao Ho, and Hung-Yi Lee. LAMOL: language modeling for lifelong language learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
|
| 309 |
+
|
| 310 |
+
[49] Mingxing Tan and Quoc V. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 6105–6114. PMLR, 2019.
|
| 311 |
+
|
| 312 |
+
[50] Chen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in minecraft. In Satinder P. Singh and Shaul Markovitch, editors, Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA, pages 1553–1561. AAAI Press, 2017.
|
| 313 |
+
|
| 314 |
+
[51] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2012, Vilamoura, Algarve, Portugal, October 7-12, 2012, pages 5026–5033. IEEE, 2012.
|
| 315 |
+
|
| 316 |
+
[52] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017.
|
| 317 |
+
|
| 318 |
+
[53] Jeffrey Scott Vitter. Random sampling with a reservoir. ACM Trans. Math. Softw., 11(1):37–57, 1985.
|
| 319 |
+
|
| 320 |
+
[54] Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Leslie Pack Kaelbling, Danica Kragic, and Komei Sugiura, editors, 3rd Annual
|
| 321 |
+
|
| 322 |
+
Conference on Robot Learning, CoRL 2019, Osaka, Japan, October 30 - November 1, 2019, Proceedings, volume 100 of Proceedings of Machine Learning Research, pages 1094–1100. PMLR, 2019.
|
| 323 |
+
|
| 324 |
+
# Checklist
|
| 325 |
+
|
| 326 |
+
1. For all authors...
|
| 327 |
+
|
| 328 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 329 |
+
(b) Did you describe the limitations of your work? [Yes] see Section 4.4.
|
| 330 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 7
|
| 331 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 332 |
+
|
| 333 |
+
2. If you are including theoretical results...
|
| 334 |
+
|
| 335 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 336 |
+
|
| 337 |
+
3. If you ran experiments...
|
| 338 |
+
|
| 339 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] The codes is included in the supplemental material.
|
| 340 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] see details in Appendix A.
|
| 341 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] we used 20 random seeds, see also details in Appendix A.6.
|
| 342 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] see Appendix A.7.
|
| 343 |
+
|
| 344 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 345 |
+
|
| 346 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] We base on the MetaWorld benchmark [54], which we clearly indicate a few times, including the abstract.
|
| 347 |
+
(b) Did you mention the license of the assets? [Yes] We use MIT licence; see Appendix A.1
|
| 348 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
|
| 349 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 350 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 351 |
+
|
| 352 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 353 |
+
|
| 354 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 355 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 356 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/5qsptDcsdEj/5qsptDcsdEj_content_list.json
ADDED
|
@@ -0,0 +1,1866 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Continual World: A Robotic Benchmark For Continual Reinforcement Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
228,
|
| 8 |
+
122,
|
| 9 |
+
771,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Maciej Wołczyk⇤ Jagiellonian University Kraków, Poland maciej.wolczyk@doctoral.uj.edu.pl ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
241,
|
| 19 |
+
226,
|
| 20 |
+
526,
|
| 21 |
+
282
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Michał Zaj ˛ac⇤ \nJagiellonian University \nKraków, Poland \nemzajac@gmail.com \nRazvan Pascanu \nDeepMind \nLondon, UK \nrazp@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
602,
|
| 30 |
+
226,
|
| 31 |
+
754,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "",
|
| 39 |
+
"bbox": [
|
| 40 |
+
205,
|
| 41 |
+
303,
|
| 42 |
+
336,
|
| 43 |
+
359
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Łukasz Kucinski ´ Polish Academy of Sciences Warsaw, Poland lkucinski@impan.pl ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
372,
|
| 52 |
+
303,
|
| 53 |
+
562,
|
| 54 |
+
359
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Piotr Miłos´ ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
655,
|
| 64 |
+
303,
|
| 65 |
+
736,
|
| 66 |
+
315
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Polish Academy of Sciences, \nUniversity of Oxford, \ndeepsense.ai \nWarsaw, Poland \npmilos@impan.pl ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
599,
|
| 75 |
+
318,
|
| 76 |
+
792,
|
| 77 |
+
387
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Abstract ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
462,
|
| 87 |
+
421,
|
| 88 |
+
535,
|
| 89 |
+
438
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Continual learning (CL) — the ability to continuously learn, building on previously acquired knowledge — is a natural requirement for long-lived autonomous reinforcement learning (RL) agents. While building such agents, one needs to balance opposing desiderata, such as constraints on capacity and compute, the ability to not catastrophically forget, and to exhibit positive transfer on new tasks. Understanding the right trade-off is conceptually and computationally challenging, which we argue has led the community to overly focus on catastrophic forgetting. In response to these issues, we advocate for the need to prioritize forward transfer and propose Continual World, a benchmark consisting of realistic and meaningfully diverse robotic tasks built on top of Meta-World $\\bar { \\mathbb { B } } \\bar { \\underline { { 4 } } } \\mathbb { I }$ as a testbed. Following an in-depth empirical evaluation of existing CL methods, we pinpoint their limitations and highlight unique algorithmic challenges in the RL setting. Our benchmark aims to provide a meaningful and computationally inexpensive challenge for the community and thus help better understand the performance of existing and future solutions. Information about the benchmark, including the open-source code, is available at https://sites.google.com/view/continualworld. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
233,
|
| 98 |
+
455,
|
| 99 |
+
766,
|
| 100 |
+
675
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "1 Introduction ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
703,
|
| 111 |
+
310,
|
| 112 |
+
720
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Change is ubiquitous. Unsurprisingly, due to evolutionary pressure, humans can quickly adapt and creatively reuse their previous experiences. In contrast, although biologically inspired, deep learning (DL) models excel mostly in static domains that satisfy the i.i.d. assumption, as for example in image processing [28, 49, 10, 40], language modelling $| { \\bar { \\sqrt { 5 2 } } } , { \\overline { { \\mathbb { 1 1 } } } } | |$ or biological applications [47]. As the systems are scaled up and deployed in open-ended settings, such assumptions are increasingly questionable; imagine, for example, a robot that needs to adapt to the changing environment and the wear-and-tear of its hardware. Continual learning (CL), an area that explicitly focuses on such problems, has been gaining more attention recently. The progress in this area could offer enormous advantages for deep neural networks $\\mathbb { \\lVert 1 9 \\rVert }$ and move the community closer to the long-term goal of building intelligent machines $\\mathbb { \\ m }$ . ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
734,
|
| 122 |
+
825,
|
| 123 |
+
875
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Evaluation of CL methods is challenging. Due to the sequential nature of the problem that disallows parallel computation, evaluation tends to be expensive, which has biased the community to focus on toy tasks. These are mostly in the domain of supervised learning, often relying on MNIST. In this work, we expand on previous discussions on the topic [45, 16, 30, 46] and introduce a new benchmark, Continual World. The benchmark is built on realistic robotic manipulation tasks from Meta-World $\\pmb { \\Vert 5 4 \\Vert }$ , benefiting from its diversity but also being computationally cheap. Moreover, we provide shorter auxiliary sequences, all of which enable a quick research cycle. On the conceptual level, a fundamental difficulty of evaluating CL algorithms comes from the different desiderata for a CL solution. These objectives are often opposing each other, forcing practitioners to explicitly or implicitly make trade-offs in their algorithmic design that are data-dependent. Continual World provides more meaningful relationships between tasks, answering recent calls $\\mathbb { \\lVert 1 9 \\rVert }$ to increase attention on forward transfer. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
90,
|
| 133 |
+
825,
|
| 134 |
+
257
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Additionally, we provide an extensive evaluation of a spectrum of commonly used CL methods. It highlights that many approaches can deal relatively well with catastrophic forgetting at the expense of other desiderata, in particular forward transfer. This emphasizes our call for focusing on forward transfer and the need for more benchmarks that allow for common structure among the tasks. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
263,
|
| 144 |
+
825,
|
| 145 |
+
319
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "The main contribution of this work is a CL benchmark that poses optimizing forward transfer as the central goal and shows that existing methods struggle to outperform simple baselines in terms of the forward transfer capability. We release the code2 both for the benchmark and 7 CL methods, which aims to provide the community helpful tools to better understand the performance of existing and future solutions. We encourage to visit the website3 of the project and participate in the Continual World Challenge. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
325,
|
| 155 |
+
825,
|
| 156 |
+
409
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2 Related work ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
430,
|
| 167 |
+
316,
|
| 168 |
+
446
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "The field of continual learning has grown considerably in the past years, with numerous works forming new subfields $\\mathbb { \\left[ \\left. 2 3 \\right] \\right. }$ and finding novel applications $\\lVert \\overline { { 4 8 } } \\rVert$ . For brevity, we focus only on the papers proposing RL-based benchmarks and point to selected surveys of the entire field. $\\pmb { \\mathbb { D } }$ provide a high-level overview of CL and argue that learning in a non-stationary setting is a fundamental problem for the development of AI, highlighting the frequent connections to neuroscience. On the other hand, $\\mathbb { B } 3 \\mathbb { B }$ focus on describing, evaluating, and relating CL methods to each other, providing a taxonomy of CL solutions that we use in this work. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
463,
|
| 178 |
+
825,
|
| 179 |
+
559
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "The possibility of applying CL methods in reinforcement learning scenarios has been explored for a long time, see $[ [ 2 5 ] ]$ for a recent review. However, no benchmark has been widely accepted by the community so far, which is the aim of this work. Below we discuss various benchmarks and environments considered in the literature. ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
565,
|
| 189 |
+
825,
|
| 190 |
+
621
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Supervised settings MNIST has been widely used to benchmark CL algorithms in two forms $ { \\mathbb { \\left[ \\left[ 2 7 \\right] \\right] } }$ . In the permuted MNIST, the pixels of images are randomly permuted to form new tasks. In the split MNIST, tasks are defined by classifying non-overlapping subsets of classes, e.g. 0 vs. 1 followed by 2 vs. 3. A similar procedure has been applied to various image classification tasks like CIFAR-10, CIFAR-100, Omniglot or mini-ImageNet [2, 46, 5]. Another benchmark is CORe50 [31], a dataset for continuous object recognition. Recent work $\\mathbb { \\left. 2 9 \\right. }$ proposes a benchmark based on language modeling. We find that many of these benchmarks are challenging and allow to measure forgetting. However, we argue they are not geared towards measuring forward transfer or for highlighting important RL-specific characteristics of the CL problem. ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
627,
|
| 200 |
+
825,
|
| 201 |
+
752
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Atari The Atari 2600 suite $\\textcircled { 8 }$ is a widely accepted RL benchmark. Sequences of different Atari games have been used for evaluating continual learning approaches [43, 27]. Using Atari can be computationally expensive, e.g., training a sequence of ten games typically requires 100M steps or more. More importantly, as $\\mathbb { \\lVert \\boldsymbol { 4 3 } \\rVert }$ notes, these games lack a meaningful overlap, limiting their relevance for studying transfers. Continuous control [32, 24] use continuous control tasks such as Humanoid or Walker2D. However, the considered sequences are short, and the range of experiments is limited. [34] use Meta-World tasks, similarly to us, for evaluations of their continual learning method, but the work is not aimed at building a benchmark. As such, it uses the Meta-World’s MT10 preset and does not provide an in-depth analysis of the tasks or other CL methods. Maze navigation A set of 3D maze environments is used in [43]. The map structure and objects that the agent needs to collect change between tasks. It is not clear, though, if the tasks provide enough diversity. [30] propose CRLMaze, 3D navigation scenarios for continual learning, which solely concentrate on changes of the visual aspects. StarCraft $\\lVert \\rVert \\dot { \\boldsymbol { \\mathrm { ~ ‰ ~ } } }$ present a StarCraft campaign (11 tasks) to evaluate a high-level transfer of skills. The main drawback of this benchmark is excessive computational demand (often more than 1B frames). Minecraft $\\mathbb { \\left[ \\left. 5 0 \\right| \\right. }$ propose simple scenarios within the Minecraft domain along with a hierarchical learning method. The authors phrase the problem as lifelong learning and do not use typical CL methods. Lifelong Hanabi $\\lVert \\rVert$ consider a multi-agent reinforcement learning setting based on Hanabi, a cooperative game requiring significant coordination between agents. On the other hand, we focus on the single agent setting with changing environment, which allows us to bypass the computational complexity needed to model interactions between agents and highlight issues connected to learning in a changing world. Causal World $\\pmb { \\mathbb { B } } \\|$ propose an environment for robotic manipulation tasks which share causal structure. Although they investigate issues deeply connected to learning in a changing world, such as generalization to new tasks and curricula, they do not directly consider continual learning. Jelly Bean World $\\mathbb { B } 9 \\mathbb { I }$ provide interesting procedurally generated grid world environments. The suite is configurable and can host a non-stationary setting. It is unclear, however, if such environments reflect the characteristics of real-world challenges. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
758,
|
| 211 |
+
825,
|
| 212 |
+
869
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "",
|
| 219 |
+
"bbox": [
|
| 220 |
+
173,
|
| 221 |
+
90,
|
| 222 |
+
825,
|
| 223 |
+
340
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "3 Continual learning background ",
|
| 230 |
+
"text_level": 1,
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
382,
|
| 234 |
+
468,
|
| 235 |
+
400
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "Continual learning (CL) is an area of research which focuses on building algorithms capable of handling non-stationarity. They should be able to sequentially acquire new skills and solve novel tasks without forgetting the previous ones. Such systems are desired to accommodate over extended periods swiftly, which is often compared to human capabilities and alternatively dubbed as lifelong learning. CL is intimately related to multi-task learning, curriculum learning, meta-learning, with some key differences. Multi-task assumes constant access to all tasks, thus ignoring non-stationarity. Curriculum learning focuses on controlling the task ordering and often the learning time-span. Metalearning, a large field of its own, sets the objective to develop procedures that allow fast adaptation within a task distribution and usually ignores the issue of non-stationarity. ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
173,
|
| 244 |
+
428,
|
| 245 |
+
825,
|
| 246 |
+
553
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "The CL objective is operationalized by the training and evaluation protocols. The former typically consists of a sequence of tasks (their boundaries might be implicit and smooth). The latter usually involves measuring catastrophic forgetting, forward transfer, and backward transfer. The learning system might also have constrained resources: computations, memory, size of neural networks, and the volume of data samples. A fundamental observation is that the above aspects and desiderata are conflicting. For example, given unlimited resources, one might mitigate forgetting simply by storing everything in memory and paying a high computational cost of rehearsing all samples from the past. ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
559,
|
| 256 |
+
825,
|
| 257 |
+
656
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "image",
|
| 263 |
+
"img_path": "images/478f601d070ca51575b0809421a2f533ad8ec0fc787df0823e9c6f366258a7b5.jpg",
|
| 264 |
+
"image_caption": [
|
| 265 |
+
"Figure 1: Left graph shows task PEG-UNPLUG-SIDEV1 and the right graph presents forward transfer from SHELF-PLACE-V1 to PEG-UNPLUG-SIDE-V1. In this case $F T = 0 . 1 0$ . "
|
| 266 |
+
],
|
| 267 |
+
"image_footnote": [],
|
| 268 |
+
"bbox": [
|
| 269 |
+
169,
|
| 270 |
+
683,
|
| 271 |
+
498,
|
| 272 |
+
803
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Another pair of objectives that are problematic for current methods are forgetting and forward transfer. For neural networks, existing methods propose to limit network plasticity. These alleviate the problem of forgetting, however, at the cost of choking the further learning process. We advocate for more nuanced approaches. Importantly, to make the transfer possible, our benchmark is composed of related tasks. We also put modest bounds on resources. This requirement is in line with realistic scenarios, demanding computationally efficient adaptation and inference. In a broader sense, we hope to address a data efficiency challenge, one of the most signif",
|
| 279 |
+
"bbox": [
|
| 280 |
+
514,
|
| 281 |
+
676,
|
| 282 |
+
825,
|
| 283 |
+
869
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "icant limitations of the current deep (reinforcement) learning methods. We conjecture that forward transfer might greatly improve the situation and possibly one day enable us to create systems with human-level cognition capabilities, in line with similar thoughts expressed in [19]. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
869,
|
| 293 |
+
825,
|
| 294 |
+
911
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "4 Continual World benchmark ",
|
| 301 |
+
"text_level": 1,
|
| 302 |
+
"bbox": [
|
| 303 |
+
176,
|
| 304 |
+
88,
|
| 305 |
+
446,
|
| 306 |
+
106
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "Continual World is a new benchmark designed to be a testbed for evaluating RL agents on the challenges advocated by the CL paradigm, described in Section $^ { 3 , }$ as well as highlighting the RLspecific algorithmic challenges for CL (see Section $\\boxed { 6 . 1 }$ . As such it is aimed at being valuable to both the CL and RL communities. Continual World consists of realistic robotic manipulation tasks, aligned in a sequence to enable the study of forward transfer. It is designed to be challenging while computationally accessible.4 The benchmark is based on Meta-World, a suite of robotic tasks already established in the community. This enables easy comparisons with the related fields of multi-task and meta-learning reinforcement learning, potentially highlighting one benefit of CL framing, namely that of dealing with different reward scales as we discuss more in detail in Appendix $\\mathrm { H } .$ Continual World comes with open-source code that allows for easy development and testing of new algorithms and provides implementations of 7 existing algorithms. Finally, it allows highlighting RL-specific challenges for the CL setting. We believe that our work is a step in the right direction towards reliable benchmarks of CL. We realize, however, that it will need to evolve as the field progresses. We leave a discussion on future directions and limitations to Section 4.4. ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
173,
|
| 315 |
+
119,
|
| 316 |
+
826,
|
| 317 |
+
314
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "4.1 Metrics ",
|
| 324 |
+
"text_level": 1,
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
330,
|
| 328 |
+
266,
|
| 329 |
+
344
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "To facilitate further discussion, we start with defining metrics. These are rather standard in the CL setting $\\mathbb { H } 2 \\mathbb { I }$ . Assume $p _ { i } ( t ) \\in [ 0 , 1 ]$ to be the performance (success rate) of task $i$ at time $t$ . As a measure of performance, we take the average success rate of achieving a goal specified by a given task when using randomized initial conditions and stochastic policies (see also Section $4 . { \\overset { - } { 3 } } ) . { \\overset { 5 } { . } } { \\overset { . } { } }$ Each task is trained for $\\Delta = 1 M$ steps. The main sequence has $N = 2 0$ tasks and the total sample budget is $T = N \\cdot \\Delta = 2 0 M$ . The $i$ -th task is trained during the interval $t \\in [ ( i - 1 ) \\cdot \\Delta , i \\cdot \\Delta ]$ . We report the following metrics: ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
356,
|
| 339 |
+
826,
|
| 340 |
+
454
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Average performance. The average performance at time $t$ is (see Figure 3) ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
173,
|
| 349 |
+
459,
|
| 350 |
+
668,
|
| 351 |
+
474
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "equation",
|
| 357 |
+
"img_path": "images/434fa45f7b617ee5a00743670321569d4d56a49ae92a33f2a74a8ffce05ef9e7.jpg",
|
| 358 |
+
"text": "$$\n\\mathsf { P } ( t ) : = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } p _ { i } ( t ) .\n$$",
|
| 359 |
+
"text_format": "latex",
|
| 360 |
+
"bbox": [
|
| 361 |
+
426,
|
| 362 |
+
473,
|
| 363 |
+
570,
|
| 364 |
+
516
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "Its final value, $\\mathrm { P } ( { \\cal T } )$ , is a traditional metric used in the CL research. This is the objective we use for tuning hyperparameters. We have $\\mathbf { P } ( t ) \\in [ 0 , 1 ]$ for each $t$ . ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
522,
|
| 374 |
+
825,
|
| 375 |
+
553
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "Forward transfer. We measure the forward transfer of a method as the normalized area between its training curve and the training curve of the reference, single-task, experiment, see Figure $1 .$ Let $p _ { i } ^ { b } \\in [ 0 , 1 ]$ be the reference performance6 then the forward transfer for the task $i$ , denoted by $\\bar { \\mathsf { F T } } _ { i }$ , is ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
173,
|
| 384 |
+
556,
|
| 385 |
+
826,
|
| 386 |
+
599
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"img_path": "images/882897fb9455e69c375410f022ebf006d1ca872f4797b4629f2c76c34273a5eb.jpg",
|
| 393 |
+
"text": "$$\n\\mathsf { F T } _ { i } : = \\frac { \\mathsf { A U C } _ { i } - \\mathsf { A U C } _ { i } ^ { b } } { 1 - \\mathsf { A U C } _ { i } ^ { b } } , \\quad \\mathsf { A U C } _ { i } : = \\frac { 1 } { \\Delta } \\int _ { ( i - 1 ) \\cdot \\Delta } ^ { i \\cdot \\Delta } p _ { i } ( t ) \\mathrm { d } t , \\quad \\mathsf { A U C } _ { i } ^ { b } : = \\frac { 1 } { \\Delta } \\int _ { 0 } ^ { \\Delta } p _ { i } ^ { b } ( t ) \\mathrm { d } t ,\n$$",
|
| 394 |
+
"text_format": "latex",
|
| 395 |
+
"bbox": [
|
| 396 |
+
215,
|
| 397 |
+
598,
|
| 398 |
+
779,
|
| 399 |
+
637
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "The average forward transfer for all tasks, FT, is defined as ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
642,
|
| 409 |
+
562,
|
| 410 |
+
656
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "equation",
|
| 416 |
+
"img_path": "images/3c04afd0aa286eeac1ed28010df7fa5c8a04c9ace73b9ed9665c139ef9522ff7.jpg",
|
| 417 |
+
"text": "$$\n\\mathrm { F T } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\mathrm { F T } _ { i } .\n$$",
|
| 418 |
+
"text_format": "latex",
|
| 419 |
+
"bbox": [
|
| 420 |
+
437,
|
| 421 |
+
656,
|
| 422 |
+
560,
|
| 423 |
+
699
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "We note that $\\mathrm { F T } _ { i } \\leq 1$ and they might be negative. In our experiments, we also measure backward transfer. As it is negligible, see Appendix E.1. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
705,
|
| 433 |
+
825,
|
| 434 |
+
734
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "Forgetting. For task $i$ , we measure the decrease of performance after ending its training, i.e. ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
178,
|
| 443 |
+
739,
|
| 444 |
+
779,
|
| 445 |
+
753
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"img_path": "images/3cf6a24035b611a6a42a6a227065d54ac92afb6fc3acede1641ea00aacb2b2b2.jpg",
|
| 452 |
+
"text": "$$\nF _ { i } = p _ { i } ( i \\cdot \\Delta \\bar { \\Delta } ) - p _ { i } ( T ) .\n$$",
|
| 453 |
+
"text_format": "latex",
|
| 454 |
+
"bbox": [
|
| 455 |
+
418,
|
| 456 |
+
753,
|
| 457 |
+
575,
|
| 458 |
+
770
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "Similarly to FT e report $\\begin{array} { r } { F = { \\frac { 1 } { N } } \\sum _ { i = 1 } ^ { N } F _ { i } } \\end{array}$ . We have $F _ { i } \\leq 1$ for any $i$ and consequently $\\mathrm { F T } \\leq 1$ . It $F _ { i }$ are negative, which would indicate backward transfer. We do not observe this in practice, see Appendix E.1. ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
174,
|
| 467 |
+
776,
|
| 468 |
+
826,
|
| 469 |
+
823
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 3
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "4.2 Continual World tasks ",
|
| 476 |
+
"text_level": 1,
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
92,
|
| 480 |
+
369,
|
| 481 |
+
106
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "This section describes the composition of Continual World benchmark and the rationale behind its design. We decided to base on Meta-World [54], a fairly new but already established robotic benchmark for multi-task and meta reinforcement learning. From a practical standpoint, Meta-World utilizes the open-source MuJoCo physics engine [51], prized for speed and accuracy. Meta-World provides 50 distinct manipulation tasks with everyday objects using a simulated robotic Sawyer arm. Although the tasks vary significantly, the structure and semantics of observation and action spaces remain the same, allowing for transfer between tasks. Each observation is a 12-dimensional vector containing $( x , y , z )$ coordinates of the robot’s gripper and objects of interest in the scene. The 4-dimensional action space describes the direction of the arm’s movement in the next step and the gripper actuator delta. Reward functions are shaped to make each task solvable. In evaluations, we use a binary success metric based on the distance of the task-relevant object to its goal position. This metric is interpretable and enables comparisons between tasks. For more details about the rewards and evaluation metrics, see [54, Section 4.2, Section 4.3]. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
125,
|
| 491 |
+
825,
|
| 492 |
+
305
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "CW20, CW10, triplets sequences The core of our benchmark is CW20 sequence. Out of 50 tasks defined in Meta-World, we picked those that are not too easy or too hard in the assumed sample budget $\\Delta = 1 M$ . Aiming to strike a balance between the difficulty of the benchmark and computational requirements, we selected 10 tasks. The tasks and their ordering were based on the transfer matrix (see the next paragraph), so that there is a high variation of forward transfers (both in the whole list and locally). We refer to these ordered tasks as CW10, and CW20 is CW10 repeated twice. We recommend using CW20 for final evaluation; however, CW10 is already very informative in most cases. Due to brevity constraints, we present an ablation with an alternative ordering of the tasks and a longer sequence of 30 tasks in Appendix $\\mathbf { G } ,$ however, these experiments do not alter our findings. Additionally, to facilitate a fast development cycle, we propose a set of triplets, sequences of three tasks which exhibit interesting learning dynamics. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
310,
|
| 502 |
+
825,
|
| 503 |
+
463
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "The CW10 sequence is: HAMMER-V1, PUSH-WALL-V1, FAUCET-CLOSE-V1, PUSH-BACK-V1, STICK-PULLV1, HANDLE-PRESS-SIDE-V1, PUSH-V1, SHELF-PLACE-V1, WINDOW-CLOSE-V1, PEG-UNPLUG-SIDE-V1. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
470,
|
| 513 |
+
821,
|
| 514 |
+
498
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "Transfer matrix Generally, the relationship between tasks and its impact on learning dynamics of neural networks is hard to quantify, where semantic similarity does not typically lead to transfer $\\textcircled { 1 1 4 } \\textcircled { 1 }$ . To this end, we consider a minimal setting, in which we finetune on task $t _ { 2 }$ a model pretrained on $t _ { 1 }$ , using the same protocol as the benchmark (e.g., different output heads, see Section $\\boxed { 4 . 3 }$ . This provides neural network-centric insight into the relationship between tasks summarized in Figure $\\bar { \\bigtriangledown } ,$ and allows us to measure low-level transfer between tasks, i.e., the ability of the model to reuse previously acquired features. See Appendix D for more results and extended discussion. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
503,
|
| 524 |
+
825,
|
| 525 |
+
602
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "image",
|
| 531 |
+
"img_path": "images/cc07f24cab893e37423e040ba20d15fa27eb5b392e5c7db00660c67a2a211cd5.jpg",
|
| 532 |
+
"image_caption": [
|
| 533 |
+
"Figure 2: Transfer matrix, see Section $4 . 2 \\cdot$ Each cell represents the forward transfer from the first task to the second one. We shaded the cells for which 0 belongs to their $9 0 \\%$ confidence interval. "
|
| 534 |
+
],
|
| 535 |
+
"image_footnote": [],
|
| 536 |
+
"bbox": [
|
| 537 |
+
178,
|
| 538 |
+
631,
|
| 539 |
+
472,
|
| 540 |
+
825
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "Notice that there are only a few negative forward transfer cases, and those are of a rather small magnitude (perhaps unsurprisingly, as the tasks are related). There are also visible patterns in the matrix. For instance, some tasks such as PEGUNPLUG-SIDE-V1 or PUSH-BACK-V1 benefit from a relatively large forward transfer, (almost) irrespective of the first task. Furthermore, the average forward transfer given the second task (columns) is more variable than the corresponding quantity for the first task (rows). ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
514,
|
| 549 |
+
608,
|
| 550 |
+
825,
|
| 551 |
+
760
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 4
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "Note that some transfers on the diagonal (i.e., between the same tasks) are relatively small. We made a detailed analysis of possible reasons, which revealed that the biggest negative impact is due to the replay buffer resets, which seems, however, unavoidable for off-diagonal cases, see Section $6 . 1$ for details. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
514,
|
| 560 |
+
766,
|
| 561 |
+
825,
|
| 562 |
+
863
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Importantly, we use this matrix to estimate what level of forward transfer a good CL method ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
514,
|
| 571 |
+
869,
|
| 572 |
+
823,
|
| 573 |
+
897
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 4
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "should be able to achieve. We expect that a model which is able to remember all meaningful aspects of previously seen tasks would transfer at least as well as if one were just fine-tuning after learning the best choice between the previous tasks. For a sequence $t _ { 1 } , \\ldots , t _ { N }$ we set the reference forward transfer, RT, to be ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
168,
|
| 582 |
+
897,
|
| 583 |
+
823,
|
| 584 |
+
911
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "",
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
90,
|
| 594 |
+
825,
|
| 595 |
+
132
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 5
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "equation",
|
| 601 |
+
"img_path": "images/c9858340d94c16aa89c4c6ffa28d4bcb4f86bc924d19a40a271306987b15bed1.jpg",
|
| 602 |
+
"text": "$$\n\\mathrm { R T } : = \\frac { 1 } { N } \\sum _ { i = 2 } ^ { N } \\operatorname* { m a x } _ { j < i } \\mathrm { F T } ( t _ { j } , t _ { i } ) ,\n$$",
|
| 603 |
+
"text_format": "latex",
|
| 604 |
+
"bbox": [
|
| 605 |
+
398,
|
| 606 |
+
131,
|
| 607 |
+
598,
|
| 608 |
+
174
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "where $\\mathrm { F T } ( t _ { j } , t _ { i } )$ is the transfer matrix value for $t _ { j } , t _ { i }$ . For the CW20 sequence, the value is $\\mathrm { R T } = 0 . 4 6$ Note that a model can do better that this by composing knowledge from multiple previous tasks. ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
178,
|
| 618 |
+
825,
|
| 619 |
+
207
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "4.3 Training and evaluation details ",
|
| 626 |
+
"text_level": 1,
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
222,
|
| 630 |
+
429,
|
| 631 |
+
237
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "We adapt the standard Meta-World setting to CL needs. First, we use separate policy heads for each task, instead of the original one-hot task ID inputs (we provide ablation experiments for this choice in Appendix $\\mathbf { G } )$ . Second, in each episode, we randomize the positions of objects in the scene to encourage learning more robust policies. We use an MLP network with 4 layers of 256 neurons. ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
173,
|
| 640 |
+
247,
|
| 641 |
+
825,
|
| 642 |
+
304
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "For training, we use soft actor-critic (SAC) [17], a popular and efficient RL method for continuous domains. SAC is an off-policy algorithm using replay buffer, which is an important aspect for CL, particularly for methods relying on rehearsing old trajectories. SAC is based on the so-called maximum entropy principle; this results in policies which explore better and are more robust to changes in the environment dynamics. Both of these qualities might be beneficial in CL. ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
174,
|
| 651 |
+
309,
|
| 652 |
+
825,
|
| 653 |
+
380
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 5
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "We note that the size of the neural network and optimization details of the SAC algorithm (like batch size) put constraints on \"the amount of compute\". Intentionally, these are rather modest, which is in line with CL desiderata, see Section $3 .$ Similarly, we limit the number of timesteps to $1 M$ , which is a humble amount for modern-day deep reinforcement learning. We picked tasks to be challenging but not impossible within this budget. We note that training in the RL setting tends to be less stable than in the supervised one. We recommend using multiple seeds, in our experiments, we typically used 20 and calculate confidence intervals; we used the bootstrap method. We choose hyperparameters that maximize average performance $\\mathbb { \\underline { { \\left( 1 \\right) } } }$ . In our experiments, we tune common parameters for SAC and the method-specific hyperparameters separately. All details of the training and evaluation setup are presented in Appendix A. ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
386,
|
| 663 |
+
825,
|
| 664 |
+
526
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 5
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "4.4 Limitations of Continual World ",
|
| 671 |
+
"text_level": 1,
|
| 672 |
+
"bbox": [
|
| 673 |
+
176,
|
| 674 |
+
540,
|
| 675 |
+
433,
|
| 676 |
+
555
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 5
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "As any benchmark, we are fully aware that ours will not cover the entire spectrum of problems that one might be interested in. Here we summarize a few limitations that we hope to overcome in a future instantiation of this benchmark: ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
178,
|
| 685 |
+
565,
|
| 686 |
+
823,
|
| 687 |
+
608
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 5
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "Input space We use a small 12 dimensional observation space. This is key to achieve modest computational demand. However, richer inputs could allow for potentially more interesting forms of transfer (e.g., based on visual similarity of objects) and would allow inferring the task from the observation, which is currently impossible. ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
614,
|
| 697 |
+
825,
|
| 698 |
+
670
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 5
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "Reliance on SAC We use the SAC algorithm $\\textcircled { 1 1 7 }$ , which is considered a standard choice for continuous robotic tasks. However, there is a potential risk of overfitting to the particularities of this algorithm and exploring alternative RL algorithms is important. ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
675,
|
| 708 |
+
821,
|
| 709 |
+
718
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 5
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "Task boundaries We rely on task boundaries. One can rely on task inference mechanisms (e.g. [35, 41]) to resolve this limitation, though we acknowledge the importance to extend the benchmark towards allowing and testing for task inference capabilities. Also, testing for algorithms dealing with continuous distributional drift is not possible in the current format. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
173,
|
| 718 |
+
724,
|
| 719 |
+
825,
|
| 720 |
+
780
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "Output heads We rely on using a separate head for each new task, similar to many works on continual learning. We opt for this variant based on its simplicity and better performance than using one-hot encoding to indicate a task. We believe that the lack of semantics of the one-hot encoding would further impede transfer, as the relationship between tasks can not be inferred. We carry ablation studies with using one-hot encoding as an input and a single head architecture, a setting that is already compatible with our benchmark. We regard this aspect as an important future work, and in particular, we are exploring alternative encoding of input to make this choice more natural. A coherent domain, like Continual World, provides a unique opportunity to exploit a consistent output layer as its semantics does not change between tasks. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
786,
|
| 730 |
+
825,
|
| 731 |
+
911
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "image",
|
| 737 |
+
"img_path": "images/de69b894f5a716658e9b945947e813289cfbbb6a6be75dce43f4af3a4767f797.jpg",
|
| 738 |
+
"image_caption": [
|
| 739 |
+
"Figure 3: Training curves for selected CL methods and multi-task. The upper left panel shows the performance on the first task for a subset of methods throughout the whole training. Note that due to the use of different output heads, we do not see a second bump when revisiting this task at time $1 0 M$ . The upper right panel shows the performance on the current task being trained for EWC compared to a reference (a model learning only that task from scratch). The bottom plot shows the average performance. Solid lines show the performance of the model training on the first 10 tasks (where 1 means being able to solve all of them). Dashed lines show the performance of learning the same tasks in the second half of the benchmark. Note that dashed lower are below solid ones, indicating lower performance on the second pass, even if the agent has already previously learned the tasks and has access to relevant features. "
|
| 740 |
+
],
|
| 741 |
+
"image_footnote": [],
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
89,
|
| 745 |
+
823,
|
| 746 |
+
314
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "The difficulty and number of tasks The number of tasks is relatively small. CW20, the main sequence we use, consists of only 10 different tasks, which are then repeated. We believe the repetition of tasks is important for a CL benchmark, leading to interesting observations. We check also that results are quantitatively similar on a sequence of 30 tasks, see Appendix G. However, longer sequences, potentially unbounded, are needed to understand the various limitations of existing algorithms. For example, the importance of graceful forgetting or dealing with systems that run out of capacity, a scenario where there is no multi-task solution for the sequence of observed tasks. This is particularly of interest for methods such as PackNet $\\pmb { \\mathbb { B 3 } }$ . Additionally, we provide the number of tasks in advance. Dealing with an unknown number of tasks might raise further interesting questions. Finally, in future iterations of the benchmark, it is important to consider more complex tasks or more complex relationships between tasks to remain a challenge to existing methods. Our goal was to provide a benchmark that is approachable by existing methods, as not to stifle progress. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
173,
|
| 755 |
+
497,
|
| 756 |
+
825,
|
| 757 |
+
664
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Low-level transfer We focus on low-level transfers via neural network features and weights. As such, we do not explicitly explore the ability of the learning process to exploit the compositionality of behavior or to rely on a more interesting semantic level. While we believe such research is crucial, we argue that solving low-level transfer is equally important and might be a prerequisite. So, for now, it is beyond the scope of this work, though future iterations of the benchmark could contain such scenarios. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
670,
|
| 767 |
+
825,
|
| 768 |
+
752
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 6
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "5 Methods ",
|
| 775 |
+
"text_level": 1,
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
775,
|
| 779 |
+
277,
|
| 780 |
+
791
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "We now sketch 7 CL methods evaluated on our benchmark. Some of them were developed for RL, while others were meant for the supervised learning context and required non-trivial adaptation. We aimed to cover different families of methods; following $\\mathbb { \\lVert \\rVert 3 \\rVert }$ , we consider three classes: regularizationbased, parameter isolation and replay methods. An extended description and discussion of these methods are provided in Appendix B. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
808,
|
| 790 |
+
825,
|
| 791 |
+
878
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 6
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Regularization-based Methods This family builds on the observation that one can reduce forgetting by protecting parameters that are important for the previous tasks. The most basic approach often dubbed L2 $ { \\mathbb { \\left[ \\left[ 2 7 \\right] \\right] } }$ simply adds a $L _ { 2 }$ penalty, which regularizes the network not to stray away from the previously learned weights. In this approach, each parameter is equally important. Elastic Weight Consolidation (EWC) $\\overline { { \\mathbb { R } \\mathbb { Z } \\mathbb { I } } }$ uses the Fisher information matrix to approximate the importance of each weight. Memory-Aware Synapses (MAS) [4] also utilizes a weighted penalty, but the importance is obtained by approximating the impact each parameter has on the output of the network. Variational Continual Learning (VCL), follows a similar path but uses variational inference to minimize the Kullback-Leibler divergence between the current distribution of parameters (posterior) and the distribution for the previous tasks (prior). ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
173,
|
| 800 |
+
883,
|
| 801 |
+
821,
|
| 802 |
+
911
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 6
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "",
|
| 809 |
+
"bbox": [
|
| 810 |
+
173,
|
| 811 |
+
90,
|
| 812 |
+
825,
|
| 813 |
+
203
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 7
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Parameter Isolation Methods This family (also called modularity-based) forbids any changes to parameters that are important for the previous tasks. It may be considered as a “hard” equivalent of regularization-based methods. PackNet [33] “packs” multiple tasks into a single network by iteratively pruning, freezing, and retraining parts of the network at task change. PackNet is closely related to progressive neural networks [43], developed in the RL context. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
173,
|
| 822 |
+
208,
|
| 823 |
+
825,
|
| 824 |
+
279
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Replay Methods Methods of this family keep some samples from the previous tasks and use them for training or as constraints to reduce forgetting. We use a Perfect Memory baseline, a modification of our setting which remembers all the samples from the past (i.e., without resetting the buffer at the task change). We also implemented Averaged Gradient Episodic Memory (A-GEM) [12], which projects gradients from new samples as to not interfere with previous tasks. We find that A-GEM does not perform well on our benchmark. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
284,
|
| 834 |
+
825,
|
| 835 |
+
367
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 7
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Multi-task learning In multi-task learning, a field closely related to CL, tasks are trained simultaneously. By its design, it does not suffer from forgetting, however, it is considered to be hard as multiple tasks “compete for the attention of a single learning system”, see [21, 44]. We find that using reward normalization as in PopArt $\\left[ \\left[ 2 1 \\right] \\right]$ is essential to achieve good performance. See Appendix H. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
373,
|
| 845 |
+
825,
|
| 846 |
+
430
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "6 Experiments ",
|
| 853 |
+
"text_level": 1,
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
459,
|
| 857 |
+
312,
|
| 858 |
+
477
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "Now we present empirical results; these are evaluations of a set of 7 representative CL methods (as described in Section $\\textcircled{5}$ on our Continual World benchmark. We focus on forgetting and transfers while keeping fixed constraints on computation, memory, number of samples, and neural network architecture. Our main empirical contributions are experiments on the long CW20 sequence and following high-level conclusions. For a summary see Table 1, Figure 3 and for an extensive discussion, we refer to Appendix $\\boxed { \\mathrm { E } }$ (including results for the shorter sequence, CW10). In Appendix G we provide various ablations and detailed analysis of sensitivity to the CL-specific hyperparameters. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
173,
|
| 867 |
+
497,
|
| 868 |
+
826,
|
| 869 |
+
594
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "Performance The performance (success rate) averaged over tasks (eq. $\\mathbb { \\underline { { ( 1 ) } } }$ ) is a typical metric for the CL setting. PackNet seems to outperform other methods, approaching 0.8 from the maximum of 1.0, outperforming multi-task solutions which might struggle with different reward scales, a problem elegantly avoided in the CL framing. Other methods perform considerably worse. A-GEM and Perfect Memory struggle. We further discuss possible reasons in Sectio n 6.1. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
602,
|
| 879 |
+
387,
|
| 880 |
+
821
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "table",
|
| 886 |
+
"img_path": "images/91db69af272a3c6ef3e51eac2cbc1d3310c094c62bf1be32a49122ea039ce469.jpg",
|
| 887 |
+
"table_caption": [
|
| 888 |
+
"Table 1: Results on CW20, for CL methods and multi-task training. Metrics are defined in Section 4.1, RT is eq. $( 4 )$ . We used 20 seeds and provide $90 \\%$ confidence intervals. "
|
| 889 |
+
],
|
| 890 |
+
"table_footnote": [],
|
| 891 |
+
"table_body": "<table><tr><td>method</td><td>performance</td><td>forgetting</td><td>f. transfer</td></tr><tr><td>Fine-tuning</td><td>0.05 [0.05,0.06]</td><td>0.73 [0.72, 0.75]</td><td>0.20 [0.17, 0.23]</td></tr><tr><td>L2</td><td>0.43 [0.39, 0.47]</td><td>0.02 [0.00, 0.03]</td><td>-0.71 [-0.87, -0.57]</td></tr><tr><td>EWC</td><td>0.60 [0.57, 0.64]</td><td>0.02 [-0.00, 0.05]</td><td>-0.17 [-0.24, -0.11]</td></tr><tr><td>MAS</td><td>0.51 [0.49, 0.53]</td><td>0.00 [-0.01,0.02]</td><td>-0.52 [-0.59,-0.47]</td></tr><tr><td>VCL</td><td>0.48 [0.46,0.50]</td><td>0.01 [-0.01, 0.02]</td><td>-0.49 [-0.57,-0.42]</td></tr><tr><td>PackNet</td><td>0.80 [0.79, 0.82]</td><td>0.00 [-0.01,0.01]</td><td>0.19 [0.15, 0.23]</td></tr><tr><td>Perfect Memory</td><td>0.12 [0.09, 0.15]</td><td>0.07 [0.05,0.10]</td><td>-1.34 [-1.42, -1.27]</td></tr><tr><td>A-GEM</td><td>0.07 [0.06,0.08]</td><td>0.71 [0.70,0.73]</td><td>0.13 [0.10,0.16]</td></tr><tr><td>MT</td><td>0.51 [0.48, 0.53]</td><td></td><td></td></tr><tr><td>MT (PopArt)</td><td>0.65 [0.63, 0.67]</td><td></td><td></td></tr><tr><td>RT</td><td></td><td></td><td>0.46</td></tr></table>",
|
| 892 |
+
"bbox": [
|
| 893 |
+
416,
|
| 894 |
+
623,
|
| 895 |
+
805,
|
| 896 |
+
790
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 7
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "Forgetting We observe that ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
174,
|
| 905 |
+
828,
|
| 906 |
+
387,
|
| 907 |
+
842
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 7
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "most CL methods are usually efficient in mitigating forgetting. However, we did not notice any boost when revisiting a task (see Figure $3 )$ . Even if a different output head was employed, relearning the internal representation should have had an impact unless it changed considerably when revisiting the task. Additionally, we found A-GEM difficult to tune; consequently, with the best hyperparameter settings, it is relatively similar to the baseline fine-tuning method (see details in Appendix $\\bigtriangledown$ ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
842,
|
| 917 |
+
825,
|
| 918 |
+
911
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "Transfers For all methods, forward transfer for the second ten tasks (and the same tasks are revisited) drops compared to the first ten tasks. This is in stark contrast to forgetting, which seems to be well under control. Among all methods, only fine-tuning and PackNet are able to achieve positive forward transfer (0.20 and 0.19, resp.) as well as on the first (0.32 and 0.21, resp.) and the second (0.08 and 0.17, resp.) half of tasks. However, these are considerably smaller than $\\mathrm { R T } = 0 . 4 6$ , which in principle can even be exceeded, and which should be reached by a model that remembers all meaningful aspects of previously seen tasks, see $\\textcircled{4}$ . These results paint a fairly grim picture: we would expect improvement, rather than deterioration in performance, when revisiting previously seen tasks. There could be multiple reasons for this state of affairs. It could be attributed to the loss of plasticity, similar to the effect observed in $\\textcircled { 6 }$ . Another reason could be related to the interference between CL mechanisms or setting and RL, for instance, hindering exploration. We did not observe any substantial cases of backward transfer, even though the benchmark is well suited to study this question due to the revisiting of tasks. See Appendix E.1. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
173,
|
| 927 |
+
90,
|
| 928 |
+
825,
|
| 929 |
+
272
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "image",
|
| 935 |
+
"img_path": "images/845bed2db7dcfa9140e21b319b1d7d55d2824be710c8d12c2d31ab127f6557ec.jpg",
|
| 936 |
+
"image_caption": [
|
| 937 |
+
"Figure 4: How forgetting impacts the forward transfer. Two different triplets of tasks learnt in sequence. An ideal agent learning on a sequence $A B C$ should have at least as good performance on task $C$ as an agent which just learns $A C$ . In reality, an interfering task $B$ reduces this transfer, even when continual learning approaches are used. "
|
| 938 |
+
],
|
| 939 |
+
"image_footnote": [],
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
300,
|
| 943 |
+
627,
|
| 944 |
+
436
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 8
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "Triplets experiments We illustrate how forgetting and forward transfer interact with each other in a simpler setting of three task sequences, see Figure $\\boxed { \\ 4 }$ and Appendix $\\boxed { \\mathrm { F } }$ We focus on sequences of tasks $A $ $B C$ , where $A \\ \\ C$ has significant positive forward transfer and $B C$ has a smaller or even negative transfer. An efficient CL agent should be able to use information from $A$ to get good performance on $C$ . However, interference introduced by $B$ reduces the fi",
|
| 951 |
+
"bbox": [
|
| 952 |
+
643,
|
| 953 |
+
279,
|
| 954 |
+
825,
|
| 955 |
+
525
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 8
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "nal forward transfer (see Figure $^ { 4 ) }$ . The drive for reducing forgetting in CL agents has been primarily to perform well on previous tasks when we revisit them. With this example, we argue that an equally important reason to improve the memory of CL agents is to efficiently use past experiences to learn faster on new tasks. Currently, the tested CL methods often are not able to outperform the forgetful fine-tuning baseline. Observe that even the modularity-based PackNet approach struggles with this task. This possibly indicates that using the activation mask from task $B$ is enough to deteriorate the performance. ",
|
| 962 |
+
"bbox": [
|
| 963 |
+
173,
|
| 964 |
+
525,
|
| 965 |
+
825,
|
| 966 |
+
622
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 8
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "PackNet PackNet stands out in our evaluations. We conjecture that developing related methods might be a promising research direction. Besides further increasing performance, one could mitigate the limitations of PackNet. PackNet relies on knowing task identity during evaluation. While this assumption is met in our benchmark, it is an interesting topic for future research to develop methods that cope without task identity. Another nuisance is that PackNet assigns some fixed fraction of parameters to a task. This necessitates knowledge of the length of the sequence in advance. Additionally, when the second ten tasks of CW20 start, PackNet performance degrades, showing its potentially inefficient use of capacity and past knowledge, given that the second ten tasks are identical with the first ten and hence no additional capacity is needed. In a broader context, we speculate that parameter isolation methods might be a promising direction towards better CL methods. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
173,
|
| 975 |
+
628,
|
| 976 |
+
825,
|
| 977 |
+
767
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Resources usage In practical applications it is important to consider resources usage. All tested methods have relatively small overheads. For example, PackNet needs only $1 5 \\%$ more time than the baseline fine-tuning and it requires $5 0 \\%$ more neural network parameters (which is negligible when small networks like ours). See Appendix $\\underline { { \\mathbf { B . 4 } } }$ for details concerning other methods. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
773,
|
| 987 |
+
823,
|
| 988 |
+
829
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 8
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Other observations In stark contrast with the supervised learning setting, we found that replay based methods (Perfect Memory and A-GEM) suffer from poor performance. This is even though we allow for a generous replay, which could store the whole experience. Explaining and amending this situation is, in our view, an important research question. We conjecture that this happens due to the regularization of the critic network (which was unavoidable for these methods). We found multi-task learning attaining lower scores than PackNet, the best CL method and comparable to the second one, EWC. We think this suggests interesting research directions for multi-task learning. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
174,
|
| 997 |
+
835,
|
| 998 |
+
823,
|
| 999 |
+
905
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 8
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
173,
|
| 1008 |
+
90,
|
| 1009 |
+
825,
|
| 1010 |
+
119
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 9
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "6.1 RL-Related Challenges ",
|
| 1017 |
+
"text_level": 1,
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
136,
|
| 1021 |
+
374,
|
| 1022 |
+
150
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Reinforcement learning brings a set of issues not present in the supervised learning setting, e.g., exploration, varying reward scales, and stochasticity of environments. We argue that it is imperative to have a reliable benchmark to assess the efficiency of CL algorithms with respect to these problems. We find that some current methods are not well adjusted to the RL setting and require non-trivial conceptual considerations and careful tuning of hyperparameters, see details in Appendix C. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
161,
|
| 1032 |
+
825,
|
| 1033 |
+
231
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 9
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "An important design choice is whether or not to regularize the critic in the actor-critic framework (e.g. in SAC). We find it beneficial to focus on reducing forgetting in the actor while allowing the critic to freely adapt to the current task (note that critic is used only in training of the current task), similar to $\\dot { \\lVert \\ 4 6 \\rVert }$ . On the other hand, a forgetful critic is controversial. This can be sharply seen when the same task is repeated and the critic needs to learn from scratch. Additionally, not all methods can be trivially adapted to the ’actor-only regularization’ setting, as for example replay based methods. In Appendix $\\mathrm { \\Delta C }$ we examine these issues empirically, by showing experiments with critic regularization for EWC. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
237,
|
| 1043 |
+
825,
|
| 1044 |
+
347
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 9
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Another aspect is the exploration and its non-trivial impact on transfers. As it was observed, transfers from a given task to the same one are sometimes poor. We show in Appendix $\\textstyle \\boxed { \\mathrm { D . 1 } }$ that this results from the fact that at the task change the replay buffer is emptied and SAC collects new samples from scratch, usually by using the uniform policy. Learning on these random samples reduces performance on the current task and thus the forward transfer. Experimentally, we find that not resetting the buffer or using the current policy for exploration improves the transfer on the diagonal. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
353,
|
| 1054 |
+
825,
|
| 1055 |
+
438
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "7 Conclusions and Future Work ",
|
| 1062 |
+
"text_level": 1,
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
176,
|
| 1065 |
+
455,
|
| 1066 |
+
457,
|
| 1067 |
+
473
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "In this work, we present Continual World, a continual reinforcement learning benchmark, and an in-depth analysis of how existing methods perform on it. The benchmark is aimed at facilitating and standardizing the CL system evaluation, and as such, is released with code, including implementation of 7 representative CL algorithms. We argue for more attention to forward transfer and the interaction between forgetting and transfer, as many existing methods seem to sacrifice transfer to alleviate forgetting. In our opinion, this should not be the aim of CL, and we need to strike a different balance between these objectives. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
488,
|
| 1077 |
+
825,
|
| 1078 |
+
584
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "We made several observations, both conceptual and empirical, which open future research directions. In particular, we conjecture that parameter isolation methods are a promising direction. Further, we identified a set of critical issues at the intersection of RL and CL. Resolving critic regularization and efficient use of multi-task replays seem to be the most pressing ones. Our benchmark highlights some challenges, which in our view are relevant and tangible now. In the long horizon, achieving high-level transfers, removing task boundaries, and scaling up are among significant goals for future editions of Continual World. Our work is foundational research and does not lead to any direct negative applications. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
173,
|
| 1087 |
+
592,
|
| 1088 |
+
825,
|
| 1089 |
+
703
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1096 |
+
"text_level": 1,
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
174,
|
| 1099 |
+
720,
|
| 1100 |
+
553,
|
| 1101 |
+
739
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 9
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "We would like to thank Stanisław Jastrz˛ebski for stimulating talks and help while preparing the manuscript. The work of PM was supported by the Polish National Science Center grant UMO2017/26/E/ST6/00622. The work of MW was funded by Foundation for Polish Science (grant no POIR.04.04.00-00-14DE/18-00 carried out within the Team-Net program co-financed by the European Union under the European Regional Development Fund. This research was supported by the PL-Grid Infrastructure. Our experiments were managed using https://neptune.ai. We would like to thank the Neptune team for providing us access to the team version and technical support. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
173,
|
| 1110 |
+
752,
|
| 1111 |
+
825,
|
| 1112 |
+
849
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 9
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "References ",
|
| 1119 |
+
"text_level": 1,
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
174,
|
| 1122 |
+
90,
|
| 1123 |
+
267,
|
| 1124 |
+
106
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 10
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "[1] Joshua Achiam. Spinning Up in Deep Reinforcement Learning. 2018. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
183,
|
| 1133 |
+
113,
|
| 1134 |
+
668,
|
| 1135 |
+
130
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 10
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "[2] Tameem Adel, Han Zhao, and Richard E. Turner. Continual learning with adaptive weights (CLAW). In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
179,
|
| 1144 |
+
140,
|
| 1145 |
+
825,
|
| 1146 |
+
183
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 10
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "[3] Ossama Ahmed, Frederik Träuble, Anirudh Goyal, Alexander Neitz, Manuel Wuthrich, Yoshua Bengio, Bernhard Schölkopf, and Stefan Bauer. Causalworld: A robotic manipulation benchmark for causal structure and transfer learning. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
181,
|
| 1155 |
+
194,
|
| 1156 |
+
825,
|
| 1157 |
+
250
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 10
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "[4] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part III, volume 11207 of Lecture Notes in Computer Science, pages 144–161. Springer, 2018. ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
183,
|
| 1166 |
+
261,
|
| 1167 |
+
825,
|
| 1168 |
+
332
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 10
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "[5] Rahaf Aljundi, Eugene Belilovsky, Tinne Tuytelaars, Laurent Charlin, Massimo Caccia, Min Lin, and Lucas Page-Caccia. Online continual learning with maximal interfered retrieval. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 11849–11860, 2019. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
181,
|
| 1177 |
+
342,
|
| 1178 |
+
826,
|
| 1179 |
+
426
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 10
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "[6] Jordan T. Ash and Ryan P. Adams. On warm-starting neural network training. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
181,
|
| 1188 |
+
436,
|
| 1189 |
+
826,
|
| 1190 |
+
493
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 10
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "[7] Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
178,
|
| 1199 |
+
503,
|
| 1200 |
+
825,
|
| 1201 |
+
534
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 10
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "[8] M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, jun 2013. ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
179,
|
| 1210 |
+
544,
|
| 1211 |
+
825,
|
| 1212 |
+
587
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 10
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "[9] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In Francis R. Bach and David M. Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pages 1613–1622. JMLR.org, 2015. ",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
179,
|
| 1221 |
+
597,
|
| 1222 |
+
826,
|
| 1223 |
+
667
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 10
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "[10] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
176,
|
| 1232 |
+
679,
|
| 1233 |
+
821,
|
| 1234 |
+
722
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "[11] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
176,
|
| 1243 |
+
732,
|
| 1244 |
+
825,
|
| 1245 |
+
858
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 10
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "[12] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with A-GEM. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
174,
|
| 1254 |
+
868,
|
| 1255 |
+
826,
|
| 1256 |
+
911
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 10
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "[13] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. arXiv preprint arXiv:1909.08383, 2019. ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
171,
|
| 1265 |
+
90,
|
| 1266 |
+
825,
|
| 1267 |
+
133
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 11
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "[14] Yunshu Du, Wojciech M. Czarnecki, Siddhant M. Jayakumar, Razvan Pascanu, and Balaji Lakshminarayanan. Adapting auxiliary losses using gradient similarity. CoRR, abs/1812.02224, 2018. ",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
173,
|
| 1276 |
+
143,
|
| 1277 |
+
823,
|
| 1278 |
+
185
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 11
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "[15] Bradley Efron and Robert J Tibshirani. An introduction to the bootstrap. CRC press, 1994. ",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
171,
|
| 1287 |
+
195,
|
| 1288 |
+
805,
|
| 1289 |
+
212
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 11
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "[16] Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. CoRR, abs/1805.09733, 2018. ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
173,
|
| 1298 |
+
220,
|
| 1299 |
+
823,
|
| 1300 |
+
251
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 11
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "[17] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer G. Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 1856–1865. PMLR, 2018. ",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
173,
|
| 1309 |
+
260,
|
| 1310 |
+
825,
|
| 1311 |
+
330
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 11
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "[18] Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Soft actor-critic algorithms and applications. CoRR, abs/1812.05905, 2018. ",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
171,
|
| 1320 |
+
339,
|
| 1321 |
+
825,
|
| 1322 |
+
383
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 11
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "text",
|
| 1328 |
+
"text": "[19] Raia Hadsell, Dushyant Rao, Andrei A. Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 24(12):1028 – 1040, 2020. ",
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
171,
|
| 1331 |
+
392,
|
| 1332 |
+
825,
|
| 1333 |
+
435
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 11
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "[20] Demis Hassabis, Dharshan Kumaran, Christopher Summerfield, and Matthew Botvinick. Neuroscience-inspired artificial intelligence. Neuron, 95(2):245 – 258, 2017. ",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
171,
|
| 1342 |
+
445,
|
| 1343 |
+
821,
|
| 1344 |
+
474
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 11
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "[21] Matteo Hessel, Hubert Soyer, Lasse Espeholt, Wojciech Czarnecki, Simon Schmitt, and Hado van Hasselt. Multi-task deep reinforcement learning with popart. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 3796–3803. AAAI Press, 2019. ",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
174,
|
| 1353 |
+
483,
|
| 1354 |
+
826,
|
| 1355 |
+
569
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 11
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "[22] Ferenc Huszár. Note on the quadratic penalties in elastic weight consolidation. Proceedings of the National Academy of Sciences, page 201717042, 2018. ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
168,
|
| 1364 |
+
578,
|
| 1365 |
+
826,
|
| 1366 |
+
608
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 11
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "[23] Khurram Javed and Martha White. Meta-learning representations for continual learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 1818–1828, 2019. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
174,
|
| 1375 |
+
617,
|
| 1376 |
+
826,
|
| 1377 |
+
688
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 11
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "[24] Christos Kaplanis, Murray Shanahan, and Claudia Clopath. Policy consolidation for continual reinforcement learning. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3242–3251. PMLR, 09–15 Jun 2019. ",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
173,
|
| 1386 |
+
696,
|
| 1387 |
+
826,
|
| 1388 |
+
753
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 11
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "[25] Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives, 2020. ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
169,
|
| 1397 |
+
763,
|
| 1398 |
+
825,
|
| 1399 |
+
792
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 11
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"text": "[26] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. ",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
174,
|
| 1408 |
+
803,
|
| 1409 |
+
825,
|
| 1410 |
+
845
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 11
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "[27] James Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. CoRR, abs/1612.00796, 2016. ",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
174,
|
| 1419 |
+
856,
|
| 1420 |
+
826,
|
| 1421 |
+
911
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 11
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "[28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Peter L. Bartlett, Fernando C. N. Pereira, Christopher J. C. Burges, Léon Bottou, and Kilian Q. Weinberger, editors, Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States, pages 1106–1114, 2012. ",
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
173,
|
| 1430 |
+
90,
|
| 1431 |
+
826,
|
| 1432 |
+
174
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 12
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "[29] Germán Kruszewski, Ionut-Teodor Sorodoc, and Tomas Mikolov. Evaluating online continual learning with calm, 2021. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
173,
|
| 1441 |
+
184,
|
| 1442 |
+
821,
|
| 1443 |
+
213
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 12
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "[30] Vincenzo Lomonaco, Karan Desai, Eugenio Culurciello, and Davide Maltoni. Continual reinforcement learning in 3d non-stationary environments. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR Workshops 2020, Seattle, WA, USA, June 14-19, 2020, pages 999–1008. IEEE, 2020. ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
174,
|
| 1452 |
+
220,
|
| 1453 |
+
826,
|
| 1454 |
+
277
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 12
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "[31] Vincenzo Lomonaco and Davide Maltoni. Core50: a new dataset and benchmark for continuous object recognition. In 1st Annual Conference on Robot Learning, CoRL 2017, Mountain View, California, USA, November 13-15, 2017, Proceedings, volume 78 of Proceedings of Machine Learning Research, pages 17–26. PMLR, 2017. ",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
174,
|
| 1463 |
+
286,
|
| 1464 |
+
826,
|
| 1465 |
+
343
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 12
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "[32] Kevin Lu, Igor Mordatch, and Pieter Abbeel. Adaptive online planning for continual lifelong learning. CoRR, abs/1912.01188, 2019. ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
168,
|
| 1474 |
+
351,
|
| 1475 |
+
825,
|
| 1476 |
+
381
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 12
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "[33] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 7765–7773. IEEE Computer Society, 2018. ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
174,
|
| 1485 |
+
388,
|
| 1486 |
+
826,
|
| 1487 |
+
445
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 12
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "[34] Jorge A. Mendez, Boyu Wang, and Eric Eaton. Lifelong policy gradient learning of factored policies for faster training without forgetting. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
174,
|
| 1496 |
+
454,
|
| 1497 |
+
826,
|
| 1498 |
+
523
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 12
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "[35] Kieran Milan, Joel Veness, James Kirkpatrick, Michael H. Bowling, Anna Koop, and Demis Hassabis. The forget-me-not process. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett, editors, Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 3702–3710, 2016. ",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
174,
|
| 1507 |
+
534,
|
| 1508 |
+
826,
|
| 1509 |
+
603
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 12
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "[36] Hadi Nekoei, Akilesh Badrinaaraayanan, Aaron C. Courville, and Sarath Chandar. Continuous coordination as a realistic scenario for lifelong learning. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 8016–8024. PMLR, 2021. ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
173,
|
| 1518 |
+
612,
|
| 1519 |
+
826,
|
| 1520 |
+
683
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 12
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "[37] Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational continual learning. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
173,
|
| 1529 |
+
690,
|
| 1530 |
+
825,
|
| 1531 |
+
734
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 12
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "[38] German Ignacio Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
169,
|
| 1540 |
+
742,
|
| 1541 |
+
825,
|
| 1542 |
+
771
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 12
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "[39] Emmanouil Antonios Platanios, Abulhair Saparov, and Tom M. Mitchell. Jelly bean world: A testbed for never-ending learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. ",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
171,
|
| 1551 |
+
780,
|
| 1552 |
+
825,
|
| 1553 |
+
823
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 12
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "[40] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. CoRR, abs/2102.12092, 2021. ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
173,
|
| 1562 |
+
832,
|
| 1563 |
+
823,
|
| 1564 |
+
861
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 12
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "text",
|
| 1570 |
+
"text": "[41] Dushyant Rao, Francesco Visin, Andrei A. Rusu, Razvan Pascanu, Yee Whye Teh, and Raia Hadsell. Continual unsupervised representation learning. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 7645–7655, 2019. ",
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
174,
|
| 1573 |
+
869,
|
| 1574 |
+
826,
|
| 1575 |
+
911
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 12
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
207,
|
| 1584 |
+
92,
|
| 1585 |
+
825,
|
| 1586 |
+
133
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 13
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"text": "[42] Natalia Díaz Rodríguez, Vincenzo Lomonaco, David Filliat, and Davide Maltoni. Don’t forget, there is more than forgetting: new metrics for continual learning. CoRR, abs/1810.13166, 2018. ",
|
| 1593 |
+
"bbox": [
|
| 1594 |
+
171,
|
| 1595 |
+
142,
|
| 1596 |
+
825,
|
| 1597 |
+
171
|
| 1598 |
+
],
|
| 1599 |
+
"page_idx": 13
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"type": "text",
|
| 1603 |
+
"text": "[43] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. CoRR, abs/1606.04671, 2016. ",
|
| 1604 |
+
"bbox": [
|
| 1605 |
+
176,
|
| 1606 |
+
179,
|
| 1607 |
+
825,
|
| 1608 |
+
223
|
| 1609 |
+
],
|
| 1610 |
+
"page_idx": 13
|
| 1611 |
+
},
|
| 1612 |
+
{
|
| 1613 |
+
"type": "text",
|
| 1614 |
+
"text": "[44] Tom Schaul, Diana Borsa, Joseph Modayil, and Razvan Pascanu. Ray interference: a source of plateaus in deep reinforcement learning. CoRR, abs/1904.11455, 2019. ",
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
173,
|
| 1617 |
+
231,
|
| 1618 |
+
825,
|
| 1619 |
+
261
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 13
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "text",
|
| 1625 |
+
"text": "[45] Jonathan Schwarz, Daniel Altman, Andrew Dudzik, Oriol Vinyals, Yee Whye Teh, and Razvan Pascanu. Towards a natural benchmark for continual learning. In Continual learning Workshop, Neurips 2018, 2018. ",
|
| 1626 |
+
"bbox": [
|
| 1627 |
+
173,
|
| 1628 |
+
268,
|
| 1629 |
+
825,
|
| 1630 |
+
311
|
| 1631 |
+
],
|
| 1632 |
+
"page_idx": 13
|
| 1633 |
+
},
|
| 1634 |
+
{
|
| 1635 |
+
"type": "text",
|
| 1636 |
+
"text": "[46] Jonathan Schwarz, Wojciech Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In Jennifer G. Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 4535–4544. PMLR, 2018. ",
|
| 1637 |
+
"bbox": [
|
| 1638 |
+
174,
|
| 1639 |
+
320,
|
| 1640 |
+
826,
|
| 1641 |
+
404
|
| 1642 |
+
],
|
| 1643 |
+
"page_idx": 13
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "text",
|
| 1647 |
+
"text": "[47] Andrew W. Senior, Richard Evans, John Jumper, James Kirkpatrick, Laurent Sifre, Tim Green, Chongli Qin, Augustin Zídek, Alexander W. R. Nelson, Alex Bridgland, Hugo Penedones, Stig Petersen, Karen Simonyan, Steve Crossan, Pushmeet Kohli, David T. Jones, David Silver, Koray Kavukcuoglu, and Demis Hassabis. Improved protein structure prediction using potentials from deep learning. Nat., 577(7792):706–710, 2020. ",
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
174,
|
| 1650 |
+
412,
|
| 1651 |
+
825,
|
| 1652 |
+
483
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 13
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "[48] Fan-Keng Sun, Cheng-Hao Ho, and Hung-Yi Lee. LAMOL: language modeling for lifelong language learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. ",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
171,
|
| 1661 |
+
491,
|
| 1662 |
+
823,
|
| 1663 |
+
535
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 13
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "text",
|
| 1669 |
+
"text": "[49] Mingxing Tan and Quoc V. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 6105–6114. PMLR, 2019. ",
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
174,
|
| 1672 |
+
542,
|
| 1673 |
+
826,
|
| 1674 |
+
613
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 13
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "text",
|
| 1680 |
+
"text": "[50] Chen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in minecraft. In Satinder P. Singh and Shaul Markovitch, editors, Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA, pages 1553–1561. AAAI Press, 2017. ",
|
| 1681 |
+
"bbox": [
|
| 1682 |
+
173,
|
| 1683 |
+
621,
|
| 1684 |
+
826,
|
| 1685 |
+
679
|
| 1686 |
+
],
|
| 1687 |
+
"page_idx": 13
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "text",
|
| 1691 |
+
"text": "[51] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2012, Vilamoura, Algarve, Portugal, October 7-12, 2012, pages 5026–5033. IEEE, 2012. ",
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
173,
|
| 1694 |
+
686,
|
| 1695 |
+
825,
|
| 1696 |
+
729
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 13
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "[52] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017. ",
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
174,
|
| 1705 |
+
738,
|
| 1706 |
+
826,
|
| 1707 |
+
821
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 13
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "text",
|
| 1713 |
+
"text": "[53] Jeffrey Scott Vitter. Random sampling with a reservoir. ACM Trans. Math. Softw., 11(1):37–57, 1985. ",
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
171,
|
| 1716 |
+
832,
|
| 1717 |
+
823,
|
| 1718 |
+
859
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 13
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "text",
|
| 1724 |
+
"text": "[54] Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Leslie Pack Kaelbling, Danica Kragic, and Komei Sugiura, editors, 3rd Annual ",
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
176,
|
| 1727 |
+
868,
|
| 1728 |
+
826,
|
| 1729 |
+
911
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 13
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "Conference on Robot Learning, CoRL 2019, Osaka, Japan, October 30 - November 1, 2019, Proceedings, volume 100 of Proceedings of Machine Learning Research, pages 1094–1100. PMLR, 2019. ",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
209,
|
| 1738 |
+
90,
|
| 1739 |
+
826,
|
| 1740 |
+
133
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 14
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "text",
|
| 1746 |
+
"text": "Checklist ",
|
| 1747 |
+
"text_level": 1,
|
| 1748 |
+
"bbox": [
|
| 1749 |
+
174,
|
| 1750 |
+
159,
|
| 1751 |
+
254,
|
| 1752 |
+
175
|
| 1753 |
+
],
|
| 1754 |
+
"page_idx": 14
|
| 1755 |
+
},
|
| 1756 |
+
{
|
| 1757 |
+
"type": "text",
|
| 1758 |
+
"text": "1. For all authors... ",
|
| 1759 |
+
"bbox": [
|
| 1760 |
+
214,
|
| 1761 |
+
185,
|
| 1762 |
+
339,
|
| 1763 |
+
200
|
| 1764 |
+
],
|
| 1765 |
+
"page_idx": 14
|
| 1766 |
+
},
|
| 1767 |
+
{
|
| 1768 |
+
"type": "text",
|
| 1769 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] see Section 4.4. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 7 \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
238,
|
| 1772 |
+
205,
|
| 1773 |
+
825,
|
| 1774 |
+
309
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 14
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "text",
|
| 1780 |
+
"text": "2. If you are including theoretical results... ",
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
214,
|
| 1783 |
+
314,
|
| 1784 |
+
493,
|
| 1785 |
+
328
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 14
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "text",
|
| 1791 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1792 |
+
"bbox": [
|
| 1793 |
+
236,
|
| 1794 |
+
332,
|
| 1795 |
+
738,
|
| 1796 |
+
363
|
| 1797 |
+
],
|
| 1798 |
+
"page_idx": 14
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"type": "text",
|
| 1802 |
+
"text": "3. If you ran experiments... ",
|
| 1803 |
+
"bbox": [
|
| 1804 |
+
214,
|
| 1805 |
+
368,
|
| 1806 |
+
393,
|
| 1807 |
+
382
|
| 1808 |
+
],
|
| 1809 |
+
"page_idx": 14
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"type": "text",
|
| 1813 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] The codes is included in the supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] see details in Appendix A. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] we used 20 random seeds, see also details in Appendix A.6. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] see Appendix A.7. ",
|
| 1814 |
+
"bbox": [
|
| 1815 |
+
238,
|
| 1816 |
+
386,
|
| 1817 |
+
825,
|
| 1818 |
+
532
|
| 1819 |
+
],
|
| 1820 |
+
"page_idx": 14
|
| 1821 |
+
},
|
| 1822 |
+
{
|
| 1823 |
+
"type": "text",
|
| 1824 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1825 |
+
"bbox": [
|
| 1826 |
+
214,
|
| 1827 |
+
536,
|
| 1828 |
+
823,
|
| 1829 |
+
551
|
| 1830 |
+
],
|
| 1831 |
+
"page_idx": 14
|
| 1832 |
+
},
|
| 1833 |
+
{
|
| 1834 |
+
"type": "text",
|
| 1835 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We base on the MetaWorld benchmark [54], which we clearly indicate a few times, including the abstract. \n(b) Did you mention the license of the assets? [Yes] We use MIT licence; see Appendix A.1 \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1836 |
+
"bbox": [
|
| 1837 |
+
238,
|
| 1838 |
+
556,
|
| 1839 |
+
825,
|
| 1840 |
+
690
|
| 1841 |
+
],
|
| 1842 |
+
"page_idx": 14
|
| 1843 |
+
},
|
| 1844 |
+
{
|
| 1845 |
+
"type": "text",
|
| 1846 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1847 |
+
"bbox": [
|
| 1848 |
+
214,
|
| 1849 |
+
694,
|
| 1850 |
+
705,
|
| 1851 |
+
709
|
| 1852 |
+
],
|
| 1853 |
+
"page_idx": 14
|
| 1854 |
+
},
|
| 1855 |
+
{
|
| 1856 |
+
"type": "text",
|
| 1857 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1858 |
+
"bbox": [
|
| 1859 |
+
238,
|
| 1860 |
+
713,
|
| 1861 |
+
825,
|
| 1862 |
+
803
|
| 1863 |
+
],
|
| 1864 |
+
"page_idx": 14
|
| 1865 |
+
}
|
| 1866 |
+
]
|
parse/train/5qsptDcsdEj/5qsptDcsdEj_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/5qsptDcsdEj/5qsptDcsdEj_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1g2NhC5KQ/H1g2NhC5KQ.md
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MULTIPLE-ATTRIBUTE TEXT REWRITING
|
| 2 |
+
|
| 3 |
+
Guillaume Lample∗1,3, Sandeep Subramanian∗1,2, Eric Michael Smith1, Ludovic Denoyer1,3, Marc’Aurelio Ranzato1, Y-Lan Boureau1
|
| 4 |
+
|
| 5 |
+
1Facebook AI Research, 2MILA, Universite de Montr ´ eal ´ 3Sorbonne Universites, UPMC Univ Paris 06´ sandeep.subramanian.1@umontreal.ca {glample,ems,denoyer,ranzato,ylan}@fb.com
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
The dominant approach to unsupervised “style transfer” in text is based on the idea of learning a latent representation, which is independent of the attributes specifying its “style”. In this paper, we show that this condition is not necessary and is not always met in practice, even with domain adversarial training that explicitly aims at learning such disentangled representations. We thus propose a new model that controls several factors of variation in textual data where this condition on disentanglement is replaced with a simpler mechanism based on back-translation. Our method allows control over multiple attributes, like gender, sentiment, product type, etc., and a more fine-grained control on the trade-off between content preservation and change of style with a pooling operator in the latent space. Our experiments demonstrate that the fully entangled model produces better generations, even when tested on new and more challenging benchmarks comprising reviews with multiple sentences and multiple attributes.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
One of the objectives of unsupervised learning is to learn representations of data that enable fine control over the underlying latent factors of variation, e.g., pose and viewpoint of objects in images, or writer style and sentiment of a product review. In conditional generative modeling, these latent factors are given (Sohn et al., 2015; Mirza & Osindero, 2014; Ficler & Goldberg, 2017), or automatically inferred via observation of samples from the data distribution (Chen et al., 2017; 2016; Higgins et al., 2017).
|
| 14 |
+
|
| 15 |
+
More recently, several studies have focused on learning unsupervised mappings between two data domains such as images (Taigman et al., 2016; Isola et al., 2017; Zhu et al., 2017), words or sentences from different languages (Conneau et al., 2017; Lample et al., 2018).
|
| 16 |
+
|
| 17 |
+
In this problem setting, the generative model is conditioned not only on the desired attribute values, but also on a initial input, which it must transform. Generations should retain as many of the original input characteristics as possible, provided the attribute constraint is not violated. This learning task is typically unsupervised because no example of an input and its corresponding output with the specified attribute is available during training. The model only sees random examples and their attribute values.
|
| 18 |
+
|
| 19 |
+
The dominant approach to learn such a mapping in text is via an explicit constraint on disentanglement (Hu et al., 2017; Fu et al., 2017; Shen et al., 2017): the learned representation should be invariant to the specified attribute, and retain only attribute-agnostic information about the “content”. Changing the style of an input at test time then amounts to generating an output based on the disentangled latent representation computed from the input and the desired attributes. Disentanglement is often achieved through an adversarial term in the training objective that aims at making the attribute value unrecoverable from the latent representation.
|
| 20 |
+
|
| 21 |
+
This paper aims to extend previous studies on “style transfer” along three axes. (i) First, we seek to gain a better understanding of what is necessary to make things work, and in particular, whether disentanglement is key, or even actually achieved by an adversarial loss in practice. In Sec. 3.1 we provide strong empirical evidence that disentanglement is not necessary to enable control over the factors of variation, and that even a method using adversarial loss to disentangle (Fu et al., 2017) does not actually learn representations that are disentangled. (ii) Second, we introduce a model which replaces the adversarial term with a back-translation (Sennrich et al., 2015a) objective which exposes the model to a pseudo-supervised setting, where the model’s outputs act as supervised training data for the ultimate task at hand. The resulting model is similar to recently proposed methods for unsupervised machine translation (Lample et al., 2017a; 2018; Artetxe et al., 2018; Zhang et al., 2018b), but with two major differences: (a) we use a pooling operator which is used to control the trade-off between style transfer and content preservation; and (b) we extend this model to support multiple attribute control. (iii) Finally, in Sec. 4.1 we point out that current style transfer benchmarks based on collections of user reviews have severe limitations, as they only consider a single attribute control (sentiment), and very small sentences in isolation with noisy labels. To address this issue, we propose a new set of benchmarks based on existing review datasets, which comprise full reviews, where multiple attributes are extracted from each review.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+
The contributions of this paper are thus: (1) a deeper understanding of the necessary components of style transfer through extensive experiments, resulting in (2) a generic and simple learning framework based on mixing a denoising auto-encoding loss with an online back-translation technique and a novel neural architecture combining a pooling operator and support for multiple attributes, and (3) a new, more challenging and realistic version of existing benchmarks which uses full reviews and multiple attributes per review, as well as a comparison of our approach w.r.t. baselines using both new metrics and human evaluations. We will open-source our code and release the new benchmark datasets used in this work, as well as our pre-trained classifiers and language models for reproducibility. This will also enable fair empirical comparisons on automatic evaluation metrics in future work on this problem.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORK
|
| 28 |
+
|
| 29 |
+
There is substantial literature on the task of unsupervised image translation. While initial approaches required supervised data of the form (input, transformation, output), e.g., different images of the same object rendered with different viewpoints or/and different lighting conditions (Hinton et al., 2011; Yang et al., 2015; Kulkarni et al., 2015), current techniques are capable of learning completely unsupervised domain mappings. Given images from two different domains $\mathcal { X }$ and $\mathcal { V }$ (where $\mathcal { X }$ could be the domain of paintings and $\mathcal { V }$ the domain of realistic photographs), and the task is to learn two mappings $F : \mathcal { X } \mathcal { Y }$ and $G : \mathcal { y } \mathcal { x }$ , without supervision, i.e., just based on images sampled from the two domains (Liu & Tuzel, 2016; Taigman et al., 2016; Isola et al., 2017). For instance, Zhu et al. (2017) used a cycle consistency loss to enforce $F ( G ( y ) ) \approx y$ and $G ( F ( x ) ) \approx x$ . This loss is minimized along with an adversarial loss on the generated outputs to constrain the model to generate realistic images. In Fader Networks (Lample et al., 2017b), a discriminator is applied on the latent representation of an image autoencoder to remove the information about specific attributes. The attribute values are instead given explicitly to the decoder at training time, and can be tuned at inference to generate different realistic versions of an input image with varying attribute values.
|
| 30 |
+
|
| 31 |
+
Different approaches have been proposed for textual data, mainly aiming at controlling the writing style of sentences. Unfortunately, datasets of parallel sentences written in a different style are hard to come by. Carlson et al. (2017) collected a dataset of 33 English versions of the Bible written in different styles on which they trained a supervised style transfer model. Li et al. (2018) released a small crowdsourced subset of 1,000 Yelp reviews for evaluation purposes, where the sentiment had been swapped (between positive and negative) while preserving the content. Controlled text generation from unsupervised data is thus the focus of more and more research.
|
| 32 |
+
|
| 33 |
+
An theme that is common to most recent studies is that style transfer can be achieved by disentangling sentence representations in a shared latent space. Most solutions use an adversarial approach to learn latent representations agnostic to the style of input sentences (Fu et al., 2017; Hu et al., 2017; Shen et al., 2017; Zhang et al., 2018a; Xu et al., 2018; John et al., 2018; Zhao et al., 2018). A decoder is then fed with the latent representation along with attribute labels to generate a variation of the input sentence with different attributes.
|
| 34 |
+
|
| 35 |
+
Unfortunately, the discrete nature of the sentence generation process makes it difficult to apply to text techniques such as cycle consistency or adversarial training. For instance, the latter (Shen et al., 2017; dos Santos et al., 2018; Zhang et al., 2018c) requires methods such as REINFORCE (He et al., 2016) or approximating the output softmax layer with a tunable temperature (Hu et al., 2017; Prabhumoye et al., 2018; Yang et al., 2018), all of which tend to be slow, unstable and hard to tune in practice. Moreover, all these studies control a single attribute (e.g. swapping positive and negative sentiment).
|
| 36 |
+
|
| 37 |
+
The most relevant work to ours is Zhang et al. (2018b), which also builds on recent advances in unsupervised machine translation. Their approach first consists of learning cross-domain word embeddings in order to build an initial phrase-table. They use this phrase-table to bootstrap an iterative back-translation pipeline containing both phrase-based and neural machine translation systems. Overall, their approach is significantly more complicated than ours, which is end-to-end and does not require any pre-training. Moreover, this iterative back-translation approach has been shown to be less effective than on-the-fly back-translation which is end-to-end trainable (Lample et al., 2018).
|
| 38 |
+
|
| 39 |
+
# 3 CONTROLLABLE TEXT REWRITING
|
| 40 |
+
|
| 41 |
+
This section briefly introduces notation, the task, and our empirical procedure for evaluating disentanglement before presenting our approach.
|
| 42 |
+
|
| 43 |
+
We consider a training set $\mathcal { D } = \left( x ^ { i } , y ^ { i } \right) _ { i \in [ 1 , n ] }$ of $n$ sentences $x ^ { i } \in { \mathcal { X } }$ paired with attribute values $y ^ { i }$ . $y \in \mathcal { V }$ is a set of $m$ attribute values $y = ( y _ { 1 } , . . . , y _ { m } )$ . Each attribute value $y _ { k }$ is a discrete value in the set ${ \mathcal { V } } _ { k }$ of possible values for attribute $k$ , e.g. $\mathcal { V } _ { k } = \{ \mathrm { b a d } , \mathrm { n e u t r a l } , \mathrm { g o o d } \}$ if $y _ { k }$ represents the overall rating of a restaurant review.
|
| 44 |
+
|
| 45 |
+
Our task is to learn a model $F : \mathcal { X } \times \mathcal { Y } \mathcal { X }$ that maps any pair $( x , \tilde { y } )$ of an input sentence $x$ (whose actual set of attributes are $y$ ) and a new set of $m$ attribute values $\tilde { y }$ to a new sentence $\tilde { x }$ that has the specified attribute values $\tilde { y }$ , subject to retaining as much as possible of the original content from $x$ , where content is defined as anything in $x$ which does not depend on the attributes.
|
| 46 |
+
|
| 47 |
+
The architecture we consider performs this mapping through a sequence-to-sequence auto-encoder that first encodes $x$ into a latent representation $z = e ( x )$ , then decodes $( z , \tilde { y } )$ into $\tilde { x } = d ( z , \tilde { y } )$ , where $e$ and $d$ are functions parameterized by the vector of trainable parameters $\theta$ . Before giving more detail on the architecture, let us look at disentanglement.
|
| 48 |
+
|
| 49 |
+
# 3.1 ARE ADVERSARIAL MODELS REALLY DOING DISENTANGLEMENT?
|
| 50 |
+
|
| 51 |
+
Almost all the existing methods are based on the common idea to learn a latent representation $z$ that is disentangled from $y$ . We consider $z$ to be disentangled from $y$ if it is impossible to recover $y$ from $z$ . While failure to recover $y$ from $z$ could mean either that $z$ was disentangled or that the classifier
|
| 52 |
+
|
| 53 |
+
chosen to recover $y$ was either not powerful enough or poorly trained, success of any classifier in recovering $y$ demonstrates that $z$ was in fact not invariant to $y$ .
|
| 54 |
+
Table 2: Recovering the sentiment of the input from the encoder’s representations of a domain adversarially-trained Fader model $\mathrm { F u }$ et al., 2017). During training, the discriminator, which was trained adversarially and jointly with the model, gets worse at predicting the sentiment of the input when the coefficient of the adversarial loss $\lambda _ { a d v }$ increases. However, a classifier that is separately trained on the resulting encoder representations has an easy time recovering the sentiment. We also report the baseline accuracy of a fastText classifier trained on the actual inputs.
|
| 55 |
+
|
| 56 |
+
<table><tr><td>Xadu</td><td>Discriminator Acc (Train)</td><td>Post-fit Classifier Acc (Test)</td></tr><tr><td>0</td><td>89.45%</td><td>93.8%</td></tr><tr><td>0.001</td><td>85.04%</td><td>92.6%</td></tr><tr><td>0.01</td><td>75.47%</td><td>91.3%</td></tr><tr><td>0.03</td><td>61.16%</td><td>93.5%</td></tr><tr><td>0.1</td><td>57.63%</td><td>94.5%</td></tr><tr><td>1.0</td><td>52.75%</td><td>86.1%</td></tr><tr><td>10</td><td>51.89%</td><td>85.2%</td></tr><tr><td>fastText</td><td>1</td><td>97.7%</td></tr></table>
|
| 57 |
+
|
| 58 |
+
As a preliminary study, we gauge the degree of disentanglement of the latent representation. Table 2 shows that the value of the attribute can be well recovered from the latent representation of a Faderlike (Fu et al., 2017) model even when the model is trained adversarially. A classifier fit post-hoc and trained from scratch, parameterized identically to the discriminator(see paragraph on model architecture in Section 3.3 for details), is able to recover attribute information from the ”distengeled” content representation learned via adversarial training. This suggests that disentanglement may not be achieved in practice, even though the discriminator is unable to recover attribute information well during training. We do not assert that disentangled representations are undesirable but simply that it isn’t mandatory in the goal of controllable text rewriting. This is our focus in the following sections.
|
| 59 |
+
|
| 60 |
+
# 3.2 OUR APPROACH
|
| 61 |
+
|
| 62 |
+
Evaluation of controlled text generation can inform the design of a more streamlined approach: generated sentences should (1) be fluent, (2) make use of the specified attribute values, and (3) preserve the rest of the content of the input.
|
| 63 |
+
|
| 64 |
+
Denoising auto-encoding (DAE) $\mathrm { F u }$ et al., 2017) is a natural way to learn a generator that is both fluent and that can reconstruct the input, both the content and the attributes. Moreover, DAE is a weak way to learn about how to change the style, or in other words, it is a way to force the decoder to also leverage the externally provided attribute information. Since the noise applied to the encoder input $x$ may corrupt words conveying the values of the input attribute $y$ , the decoder has to learn to use the additional attribute input values in order to perform a better reconstruction. We use the noise function described in Lample et al. (2017a) that corrupts the input sentence by performing word drops and word order shuffling. We denote by $x _ { c }$ a corrupted version of the sentence $x$ .
|
| 65 |
+
|
| 66 |
+
As discussed in Sec. 3.1, disentanglement is not necessary nor easily achievable, and therefore, we do not seek disentanglement and do not include any adversarial term in the loss. Instead, we consider a more natural constraint which encourages the model to perform well at the task we are ultimately interested in - controlled generation via externally provided attributes. We take an input $( x , y )$ and encode $x$ it into $z$ , but then decode using another set of attribute values, $\tilde { y }$ , yielding the reconstruction $\tilde { x }$ . We now use $\tilde { x }$ as input of the encoder and decode it using the original $y$ to ideally obtain the original $x$ , and we train the model to map $( \tilde { x } , y )$ into $x$ . This technique, called back-translation (BT) (Sennrich et al., 2015a; Lample et al., 2017a; 2018; Artetxe et al., 2018), has a two-fold benefit. Initially when the DAE is not well trained and $\tilde { x }$ has lost most of the content present in $x$ , the only useful information provided to the decoder is the desired attribute $y$ . This encourages the decoder to leverage the provided attributes. Later on during training when DAE is better, BT helps training the sequence-to-sequence for the desired task. Overall, we minimize:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\mathcal { L } = \lambda _ { A E } \sum _ { ( x , y ) \sim \mathcal { D } } - \log p _ { d } \Big ( x | e ( x _ { c } ) , y \Big ) + \lambda _ { B T } \sum _ { ( x , y ) \sim \mathcal { D } , \tilde { y } \sim \mathcal { Y } } - \log p _ { d } \Big ( x | e \Big ( d \big ( e ( x ) , \tilde { y } ) \Big ) , y \Big )
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $p _ { d }$ is the probability distribution over sequences $x$ induced by the decoder, $e ( x _ { c } )$ is the encoder output when fed with a corrupted version $x _ { c }$ of the input $x$ , and $d ( e ( x ) , \tilde { y } )$ is a variation of the input sentence $x$ written with a randomly sampled set of attributes $\tilde { y }$ . In practice, we generate sentences during back-translation by sampling from the multinomial distribution over words defined by the decoder at each time step using a temperature $T$ .
|
| 73 |
+
|
| 74 |
+
# 3.3 IMPLEMENTATION
|
| 75 |
+
|
| 76 |
+
So far, the model is the same as the model used for unsupervised machine translation by Lample et al. (2018), albeit with a different interpretation of its inner workings, no longer based on disentanglement. Instead, the latent representation $z$ can very well be entangled, but we only require the decoder to eventually “overwrite” the original attribute information with the desired attributes. Unfortunately, this system may be limited to swapping a single binary attribute and may not give us enough control on the trade-off between content preservation and change of attributes. To address this limitations, we introduce the following components:
|
| 77 |
+
|
| 78 |
+
Attribute conditioning In order to handle multiple attributes, we separately embed each target attribute value and then average their embeddings. We then feed the averaged embeddings to the decoder as a start-of-sequence symbol.
|
| 79 |
+
|
| 80 |
+
We also tried an approach similar to Michel & Neubig (2018), where the output layer of the decoder uses a different bias for each attribute label. We observed that the learned biases tend to reflect the labels of the attributes they represent. Examples of learned biases can be found in Table 14. However, this approach alone did not work as well as using attribute-specific start symbols, nor did it improve results when combined with them.
|
| 81 |
+
|
| 82 |
+
Latent representation pooling To control the amount of content preservation, we use pooling. The motivating observation is that models that compute one latent vector representation per input word usually perform individual word replacement, while models without attention are much less literal and tend to lose content but have an easier time changing the input sentence with the desired set of attributes. Therefore, we propose to gain finer control by adding a temporal max-pooling layer on top of the encoder, with non-overlapping windows of width $w$ . Setting $w = 1$ results in a standard model with attention, while setting $w$ to the length of the input sequence boils down to a sequence-to-sequence model without attention. Intermediate values of $w$ allow for different tradeoffs between preserving information about the input sentence and making the decoder less prone to copying words one by one.
|
| 83 |
+
|
| 84 |
+
The hyper-parameters of our model are: $\lambda _ { A E }$ and $\lambda _ { B T }$ trading off the denoising auto-encoder term versus the back-translation term (the smaller the $\lambda _ { B T } / \lambda _ { A E }$ ratio the more the content is preserved and the less well the attributes are swapped), the temperature $T$ used to produce unbiased generations (Edunov et al., 2018) and to control the amount of content preservation, and the pooling window size $w$ . We optimize this loss by stochastic gradient descent without back-propagating through the back-translation generation process; back-translated sentences are generated on-the-fly once a new mini-batch arrives.
|
| 85 |
+
|
| 86 |
+
Model Architecture We use an encoder parameterized by a 2-layer bidirectional LSTM and a 2- layer decoder LSTM augmented with an attention mechanism (Bahdanau et al., 2014). Both LSTMs and our word embedding lookup tables, trained from scratch, have 512 hidden units. Another embedding lookup table with 512 hidden units is used to embed each attribute value. The decoder conditions on two different sources of information: 1) attribute embedding information that presented that it as the first token, similar to Lample et al. (2018) and at the softmax output as an attribute conditional bias following Michel & Neubig (2018). When controlling multiple attributes, we average the embeddings and bias vectors that correspond to the different attribute values. 2) The decoder also conditions on a temporally downsampled representation of the encoder via an attention mechanism. The representations are downsampled by temporal max-pooling with a non-overlapping window of size 5. Although our best models do not use adversarial training, in ablations and experiments that study disentanglement, we used a discriminator paramaeterized as 3 layer MLP with 128 hidden units and LeakyReLU acivations.
|
| 87 |
+
|
| 88 |
+
# 4 EXPERIMENTS
|
| 89 |
+
|
| 90 |
+
# 4.1 DATASETS
|
| 91 |
+
|
| 92 |
+
We use data from publicly available Yelp restaurant and Amazon product reviews following previous work in the area (Shen et al., 2017; Li et al., 2018) and build on them in three ways to make the task more challenging and realistic. Firstly, while previous approaches operate at the sentence level by assuming that every sentence of a review carries the same sentiment as the whole of review, we operate at the granularity of entire reviews. The sentiment, gender1 of the author and product/restaurant labels are therefore more reliable. Secondly, we relax constraints enforced in prior works that discard reviews with more than 15 words and only consider the $1 0 \mathrm { k }$ most frequent words. In our case, we consider full reviews with up to 100 words, and we consider byte-pair encodings (BPE) Sennrich et al. (2015b) with $6 0 \mathrm { k }$ BPE codes, eliminating the presence of unknown words. Finally, we leverage available meta-data about restaurant and product categories to collect annotations for two additional controllable factors: the gender of the review author and the category of the product or restaurant being reviewed. A small overview of the corresponding datasets is presented below with some statistics presented in Table 3. Following Li et al. (2018), we also collect human reference edits for sentiment and restaurant/product categories to serve as a reference for automatic metrics as well as an upper bound on human evaluations (examples in Appendix Table 12).
|
| 93 |
+
|
| 94 |
+
Yelp Reviews This dataset consists of restaurant and business reviews provided by the Yelp Dataset Challenge2. We pre-process this data to remove reviews that are either 1) not written in English according to a fastText (Joulin et al., 2016) classifier, 2) not about restaurants, 3) rated 3/5 stars as they tend to be neutral in sentiment (following Shen et al. (2017)), or 4) where the gender is not identifiable by the same method as in Reddy & Knight (2016); Prabhumoye et al. (2018). We then binarize both sentiment and gender labels. Five coarse-grained restaurant category labels, Asian, American, Mexican, Bars & Dessert, are obtained from the associated meta-data. Since a review can be written about a restaurant that has multiple categories (ex: an Asian restaurant that serves desserts), we train a multi-label fastText classifier to the original data that has multiple labels per example. We then re-label the entire dataset with this classifier to pick the most likely category to be able to model the category factor as a categorical random variable. (See Appendix section A.2 for more details.) Since there now exists two variants of the Yelp dataset, we refer to the one used by previous work (Shen et al., 2017; Fu et al., 2017; Li et al., 2018) as SYelp and our created version with full reviews along with gender and category information as FYelp henceforth.
|
| 95 |
+
|
| 96 |
+
Amazon Reviews The amazon product review dataset (He & McAuley, 2016) is comprised of reviews written by consumers of Amazon products. We followed the same pre-processing steps as in the Yelp dataset with the exception of collecting gender labels, since a very large fraction of amazon usernames were not present in a list of gender-annotated names. We labeled reviews with the following product categories based on the meta-data: Books, Clothing, Electronics, Movies, Music. We followed the same protocol as in $F Y e l p$ to re-label product categories. In this work, we do not experiment with the version of the Amazon dataset used by previous work, and so we refer to our created version with full reviews along with product category information as just Amazon henceforth. Statistics about the dataset can be found in Table 3.
|
| 97 |
+
|
| 98 |
+
Public social media content We also used an unreleased dataset of public social media content written by English speakers to illustrate the approach with examples from a more diverse set of categories3. We used 3 independent pieces of available information about that content: 1) gender (male or female) 2) age group (18-24 or $6 5 +$ ), and 3) writer-annotated feeling (relaxed or annoyed).
|
| 99 |
+
|
| 100 |
+
<table><tr><td></td><td colspan="2">Sentiment</td><td colspan="2">Gender</td><td colspan="5">Category</td></tr><tr><td>SYelp</td><td>Positive 266,041</td><td>Negative 177,218</td><td>Male -</td><td>Female -</td><td>American =</td><td>Asian -</td><td>Bar -</td><td>Dessert -</td><td>Mexican =</td></tr><tr><td>FYelp</td><td>Positive 2.056,132</td><td>Negative 639,272</td><td>Male 1,218,068</td><td>Female 1,477,336</td><td>American 904,026</td><td>Asian 518,370</td><td>Bar 595,681</td><td>Dessert 431,225</td><td>Mexican 246,102</td></tr><tr><td>Amazon</td><td>Positive 64,251,073</td><td>Negative 10,944,310</td><td>=</td><td>·</td><td>Book 26,208,872</td><td>Clothing 14,192,554</td><td>Electronics 25,894,877</td><td>Movies 4,324,913</td><td>Music 4,574,167</td></tr><tr><td>Social Media Content</td><td>Relaxed 7,682.688</td><td>Annoyed 17,823,468</td><td>Male</td><td>= Female 18,463,789</td><td>18-24 12,628,250</td><td>65+ 7,629,505</td><td></td><td></td><td></td></tr></table>
|
| 101 |
+
|
| 102 |
+
Table 3: The number of reviews for each attribute for different datasets. The SYelp, FYelp and the Amazon datasets are composed of $4 4 3 \mathrm { k \Omega }$ , 2.7M and $7 5 . 2 \mathbf { M }$ sentences respectively. Public social media content is collected from 3 different data sources with 25.5M, 33.0M and $2 0 . 2 \mathbf { M }$ sentences for the Feeling, Gender and $A g e$ attributes respectively.
|
| 103 |
+
|
| 104 |
+
To make the data less noisy, we trained a fastText classifier (Joulin et al., 2016) for each attribute and only kept the data above a certain confidence threshold.
|
| 105 |
+
|
| 106 |
+
# 4.2 EVALUATION
|
| 107 |
+
|
| 108 |
+
Automatic evaluation of generative models of text is still an open research problem. In this work, we use a combination of multiple automatic evaluation criteria informed by our desiderata. We would like our systems to simultaneously 1) produce sentences that conform to the set of pre-specified attribute(s), 2) preserve the structure and content of the input, and 3) generate fluent language. We therefore evaluate samples from different models along three different dimensions:
|
| 109 |
+
|
| 110 |
+
• Attribute control: We measure the extent to which attributes are controlled using fastText classifiers, trained on our datasets, to predict different attributes.
|
| 111 |
+
• Fluency: Fluency is measured by the perplexity assigned to generated text sequences by a pre-trained Kneser–Ney smooth 5-gram language model using KenLM (Heafield, 2011).
|
| 112 |
+
• Content preservation: We measure the extent to which a model preserves the content present of a given input using n-gram statistics, by measuring the BLEU score between generated text and the input itself, which we refer to as self-BLEU. When a human reference is provided instead, we compute the BLEU score with respect to it, instead of the input, which we will refer to as just BLEU (Papineni et al., 2002). “BLEU” scores in this paper correspond to the BLEU score with respect to human references averaged across generations conditioned on all possible attribute values except for that of the input. However, when reporting self-BLEU scores, we also average across cases where generations are also conditioned on the same attribute value as the input.
|
| 113 |
+
|
| 114 |
+
A combination of these metrics, however, only provides a rough understanding of the quality of a particular model. Ultimately, we rely on human evaluations collected via a public crowd-sourcing platform. We carried out two types of evaluations to compare different models. 1) Following a protocol similar to Li et al. (2018), we ask crowd workers to annotate generated sentences along the three dimensions above. Fluency and content preservation are measured on a likert-scale from 1 to 5 and attribute control is evaluated by asking the worker to predict the attribute present in the generated text. 2) We take a pair of generations from two different models, and ask workers to pick the generation they prefer on the overall task, accounting for all the dimensions simultaneously. They are also presented with a “no preference” option to discard equally good or bad generations from both models.
|
| 115 |
+
|
| 116 |
+
# 4.3 MODEL SELECTION
|
| 117 |
+
|
| 118 |
+
Since our automatic evaluation metrics are only weak proxies for the quality of a model, we set minimum thresholds on the content preservation and attribute control criteria and only consider models above a certain threshold.
|
| 119 |
+
|
| 120 |
+
The few models that met the specified threshold on the validation set were evaluated by humans on the same validation set and the best model was selected to be run on the test set.
|
| 121 |
+
|
| 122 |
+
Table 4: Automatic evaluation of models on the $S Y e l p$ test set from Li et al. (2018). The test set is composed of sentences that have been manually written by humans, which we use to compute the BLEU score. Samples for previous models were made available by Li et al. (2018). For our model, we report different results corresponding to different choices of hyper-parameters (pooling kernel width and back-translation temperature) to demonstrate our model’s ability to control the trade-off between attribute transfer and content preservation.
|
| 123 |
+
|
| 124 |
+
<table><tr><td>Model</td><td>Accuracy</td><td>BLEU</td><td>PPL</td></tr><tr><td>Fader/StyleEmbedding (Fu et al., 2017) MultiDecoder (Fu et al., 2017) ControllableText (Hu et al., 2017)</td><td>18% 52% 85%</td><td>16.7 11.3 20.6</td><td>56.1 90.1 232.0</td></tr><tr><td>CAE (Shen et al., 2017) Retrieval (Li et al., 2018) Rule-based (Li et al., 2018)</td><td>72% 81% 73%</td><td>6.8 1.3</td><td>53.0 7.4</td></tr><tr><td>DeleteOnly (Li et al., 2018) DeleteAndRetrieve (Li et al., 2018)</td><td>77%</td><td>22.3 14.5</td><td>118.7 67.1</td></tr><tr><td></td><td>79%</td><td>16.0</td><td>66.6</td></tr><tr><td>Fader(Ours w/o backtranslation & attention)</td><td>71%</td><td></td><td></td></tr><tr><td>Ours Ours</td><td>87% 85%</td><td>15.7 14.6</td><td>35.1 26.2</td></tr></table>
|
| 125 |
+
|
| 126 |
+
# 4.4 COMPARISONS TO PRIOR WORK
|
| 127 |
+
|
| 128 |
+
Our first set of experiments aims at comparing our approach with different models recently proposed, on the SYelp dataset. Results using automatic metrics are presented in Table 4. We compare the same set of models as in Li et al. (2018) with the addition of our model and our own implementation of the Fader network (Lample et al., 2017b), which corresponds to our model without back-translation and without attention mechanism, but uses domain adversarial training (Ganin et al., 2016) to remove information about sentiment from the encoder’s representation. This is also similar to the StyleEmbedding model presented by Fu et al. (2017). For our approach, we were able to control the trade-off between BLEU and accuracy based on different hyper-parameter choices. We demonstrate that our approach is able to outperform all previous approaches on the three desired criteria simultaneously, while our implementation of the fader is competitive with the previous best work.
|
| 129 |
+
|
| 130 |
+
Table 5: Top: Results from human evaluation to evaluate the fluency / content preservation and successful sentiment control on the Li et al. (2018) SYelp test set. The mean and standard deviation of Fluency and Content are measured on a likert scale from 1-5 while sentiment is measured by fraction of times that the controlled sentiment of model matches the judge’s evaluation of the sentiment (when also presented with a neutral option). Bottom: Results from human A/B testing of different pairs of models. Each cell indicates the fraction of times that a judge preferred one of the models or neither of them on the overall task.)
|
| 131 |
+
|
| 132 |
+
<table><tr><td></td><td>Fluency</td><td>Content</td><td>Sentiment</td></tr><tr><td>DAR (Li et al. (2018))</td><td>3.33 (1.39)</td><td>3.16 (1.43)</td><td>64.05%</td></tr><tr><td>Ours</td><td>4.07 (1.12)</td><td>3.67 (1.41)</td><td>69.66%</td></tr><tr><td>Human (Li et al. (2018))</td><td>4.56 (0.78)</td><td>4.01 (1.25)</td><td>81.35%</td></tr><tr><td></td><td>Our Model</td><td>No Preference</td><td>DAR</td></tr><tr><td>DAR vs Our Fader</td><td>37.6%</td><td>32.7%</td><td>29.7%</td></tr><tr><td>DAR vs Ours</td><td>54.4%</td><td>24.7%</td><td>20.8%</td></tr></table>
|
| 133 |
+
|
| 134 |
+
Since our automatic evaluation metrics are not ideal, we carried out human evaluations using the protocol described in Section 4.2. Table 5 (top) shows the fluency, content preservation and attribute control (sentiment) scores obtained by our model, DeleteAndRetrieve (DAR) and turkers from Li et al. (2018) 4 on the SYelp dataset. While humans clearly outperform both models, our model is better than DeleteAndRetrieve on all 3 dimensions. We further demonstrate our model’s strength over DeleteAndRetrieve in Table 5 (bottom) in an $\mathrm { A } / \mathrm { B }$ test between two the models, where crowd workers prefer our model $5 4 . 4 \%$ compared to theirs $2 0 . 8 \%$ . Interestingly, our baseline Fader model is also able to do better $( 3 7 . 6 \%$ vs $2 9 . 7 \%$ ), suggesting limitations in our automatic metrics, since Fader does not do as well in Table 4.
|
| 135 |
+
|
| 136 |
+
4.5 EVALUATING MULTIPLE ATTRIBUTE CONTROL
|
| 137 |
+
|
| 138 |
+
<table><tr><td rowspan="2">Dataset (Model)</td><td rowspan="2">Attributes</td><td colspan="2">Sentiment</td><td colspan="2">Category</td><td colspan="2">Gender</td></tr><tr><td>Accuracy</td><td>self-BLEU</td><td>Accuracy</td><td>self-BLEU</td><td>Accuracy</td><td>self-BLEU</td></tr><tr><td>Yelp (DAR)</td><td>Sentiment</td><td>78.7%</td><td>42.1</td><td>-</td><td>-</td><td>1</td><td>-</td></tr><tr><td rowspan="3">Yelp (Our Fader)</td><td>Sentiment</td><td>85.5%</td><td>31.3</td><td>=</td><td>=</td><td></td><td></td></tr><tr><td>Sentiment+ Category</td><td>85.1%</td><td>20.6</td><td>46.1%</td><td>22.6</td><td>-</td><td>-</td></tr><tr><td>Sentiment + Category +Gender</td><td>86.6%</td><td>20.4</td><td>47.7%</td><td>22.5</td><td>58.5%</td><td>23.3</td></tr><tr><td rowspan="4">Yelp (Ours)</td><td>Sentiment</td><td>87.4%</td><td>54.5</td><td>-</td><td>1</td><td>1</td><td>-</td></tr><tr><td>Sentiment + Category</td><td>87.1%</td><td>38.8</td><td>64.9%</td><td>44.0</td><td>1</td><td>-</td></tr><tr><td>Sentiment +Category +Gender</td><td>88.5%</td><td>31.6</td><td>64.1%</td><td>36.5</td><td>59.0%</td><td>37.4</td></tr><tr><td>Gender</td><td>-</td><td>1</td><td>-</td><td>1</td><td>59.1%</td><td>47.0</td></tr><tr><td rowspan="2">Amazon (Ours)</td><td>Sentiment</td><td>82.6%</td><td>54.8</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Sentiment + Category</td><td>82.5%</td><td>48.9</td><td>81.4%</td><td>41.8</td><td>-</td><td>-</td></tr><tr><td>Input Copy</td><td>1</td><td>50.0%</td><td>100.0</td><td>20.0%</td><td>100.0</td><td>50.0%</td><td>100.0</td></tr></table>
|
| 139 |
+
|
| 140 |
+
Table 6: Results using automatic evaluation metrics on the FYelp and Amazon test sets. Different rows correspond to the set of attributes being controlled by the model.
|
| 141 |
+
|
| 142 |
+
Table 6 presents the quantitative results obtained by the $F Y e l p$ and Amazon datasets when controlling single and multiple attributes. For this table, unlike for Table 4, the DeleteAndRetrieve (DAR) results were obtained by re-training the model of Li et al. (2018). We use our implementation of the Fader model since we found it to be better than previous work, by human evaluation (Table 5). While we control all attributes simultaneously during training, at test time, for the sake of quantitative evaluations, we change the values only of a single attribute while keeping the others constant. Our model clearly outperforms the baseline Fader model. We also demonstrate that our model does not suffer significant drops in performance when controlling multiple attributes over a single one.
|
| 143 |
+
|
| 144 |
+
Demonstrations of our model’s ability to control single and multiple attributes are presented in Table 8 and Table 9 respectively. What is interesting to observe is that our model does not just alter single words in the input to control an attribute, but often changes larger fragments to maintain grammaticality and fluency. Examples of re-writes by our model on social media content in Table 1 show that our model tends to retain the overall structure of input sentences, including punctuation and emojis. Additional examples of re-writes can be found in Table 10 and Table 11 in Appendix.
|
| 145 |
+
|
| 146 |
+
# 4.6 ABLATION STUDY
|
| 147 |
+
|
| 148 |
+
Table 7: Model ablations on 5 model components on the FYelp dataset (Left) and SYelp (Right).
|
| 149 |
+
|
| 150 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">Test (FYelp)</td><td colspan="2">Test (Li et al., 2018)</td></tr><tr><td>Accuracy</td><td>self-BLEU</td><td>Accuracy</td><td>BLEU</td></tr><tr><td>Our model</td><td>87%</td><td>54.5</td><td>80%</td><td>25.8</td></tr><tr><td>-pooling</td><td>89%</td><td>47.9</td><td>-</td><td>=</td></tr><tr><td>-temperature</td><td>86%</td><td>45.2</td><td>80%</td><td>21.3</td></tr><tr><td>-attention</td><td>93%</td><td>25.4</td><td>80%</td><td>22.1</td></tr><tr><td>-back-translation</td><td>86%</td><td>32.8</td><td>69%</td><td>16.4</td></tr><tr><td>+adversarial</td><td>86%</td><td>45.5</td><td>78%</td><td>25.1</td></tr><tr><td>-attention -back-translation</td><td>90%</td><td>26.0</td><td>71%</td><td>15.7</td></tr></table>
|
| 151 |
+
|
| 152 |
+
In Table 7, we report results from an ablation study on the SYelp and FYelp datasets to understand the impact of the different model components on overall performance. The different components are: 1) pooling, 2) temperature based multinomial sampling when back-translating, 3) attention, 4) back-translation, 5) the use of domain adversarial training and 6) attention and back-translation in conjunction. We find that a model with all of these components, except for domain adversarial training, performs the best, further validating our hypothesis in Section 3.1 that it is possible to control attributes of text without disentangled representations. The absence of pooling or softmax temperature when back-translating also has a small negative impact on performance, while the attention and back-translation have much bigger impacts.
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Figure 1: Accuracy and self-BLEU curves on the FYelp dataset for different pooling operator configurations. Without pooling, the model tends to converge to a copy mode very quickly, with a high self-BLEU score and a poor accuracy. The pooling operator alleviates this behaviour and provides models with a different trade-off accuracy / content preservation.
|
| 156 |
+
|
| 157 |
+
Table 13 shows examples of reviews re-written by different models at different checkpoints, showing the trade-off between properly modifying the attribute and preserving the original content. Figure 1 shows how the trade-off between content preservation (self-BLEU) and attribute control (accuracy) evolves over the course of training and as a function of the pooling kernel width.
|
| 158 |
+
|
| 159 |
+
# 5 CONCLUSION
|
| 160 |
+
|
| 161 |
+
We present a model that is capable of re-writing sentences conditioned on given attributes, that is not based on a disentanglement criterion as often used in the literature. We demonstrate our model’s ability to generalize to a realistic setting of restaurant/product reviews consisting of several sentences per review. We also present model components that allow fine-grained control over the trade-off between attribute control versus preserving the content in the input. Experiments with automatic and human-based metrics show that our model significantly outperforms the current state of the art not only on existing datasets, but also on the large-scale datasets we created. The source code and benchmarks will be made available to the research community after the reviewing process.
|
| 162 |
+
|
| 163 |
+
# REFERENCES
|
| 164 |
+
|
| 165 |
+
Mikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. In International Conference on Learning Representations (ICLR), 2018.
|
| 166 |
+
|
| 167 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
|
| 168 |
+
|
| 169 |
+
Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In Advances in Neural Information Processing Systems, pp. 4349–4357, 2016.
|
| 170 |
+
|
| 171 |
+
Keith Carlson, Allen Riddell, and Daniel Rockmore. Zero-shot style transfer in text using recurrent neural networks. arXiv preprint arXiv:1711.04731, 2017.
|
| 172 |
+
|
| 173 |
+
Mickael Chen, Ludovic Denoyer, and Thierry Arti ¨ eres. Multi-view data generation without view \` supervision. In ICLR 2018, 2017.
|
| 174 |
+
|
| 175 |
+
Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016.
|
| 176 |
+
|
| 177 |
+
Alexis Conneau, Guillaume Lample, Marc’Aurelio Ranzato, Ludovic Denoyer, and Herve J ´ egou.´ Word translation without parallel data. arXiv preprint arXiv:1710.04087, 2017.
|
| 178 |
+
|
| 179 |
+
Cicero Nogueira dos Santos, Igor Melnyk, and Inkit Padhi. Fighting offensive language on social media with unsupervised text style transfer. arXiv preprint arXiv:1805.07685, 2018.
|
| 180 |
+
|
| 181 |
+
Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. arXiv preprint arXiv:1808.09381, 2018.
|
| 182 |
+
|
| 183 |
+
Jessica Ficler and Yoav Goldberg. Controlling linguistic style aspects in neural language generation. arXiv preprint arXiv:1707.02633, 2017.
|
| 184 |
+
|
| 185 |
+
Zhenxin Fu, Xiaoye Tan, Nanyun Peng, Dongyan Zhao, and Rui Yan. Style transfer in text: Exploration and evaluation. arXiv preprint arXiv:1711.06861, 2017.
|
| 186 |
+
|
| 187 |
+
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
|
| 188 |
+
|
| 189 |
+
Di He, Yingce Xia, Tao Qin, Liwei Wang, Nenghai Yu, Tieyan Liu, and Wei-Ying Ma. Dual learning for machine translation. In Advances in Neural Information Processing Systems, pp. 820–828, 2016.
|
| 190 |
+
|
| 191 |
+
Ruining He and Julian McAuley. Ups and downs: Modeling the visual evolution of fashion trends with one-class collaborative filtering. In proceedings of the 25th international conference on world wide web, pp. 507–517. International World Wide Web Conferences Steering Committee, 2016.
|
| 192 |
+
|
| 193 |
+
Kenneth Heafield. Kenlm: Faster and smaller language model queries. In Proceedings of the Sixth Workshop on Statistical Machine Translation, pp. 187–197. Association for Computational Linguistics, 2011.
|
| 194 |
+
|
| 195 |
+
Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations (ICLR), 2017.
|
| 196 |
+
|
| 197 |
+
Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011.
|
| 198 |
+
|
| 199 |
+
Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. arXiv preprint arXiv:1703.00955, 2017.
|
| 200 |
+
|
| 201 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. CVPR, 2017.
|
| 202 |
+
|
| 203 |
+
Vineet John, Lili Mou, Hareesh Bahuleyan, and Olga Vechtomova. Disentangled representation learning for non-parallel text style transfer. arXiv preprint arXiv:1808.04339, 2018.
|
| 204 |
+
|
| 205 |
+
Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016.
|
| 206 |
+
|
| 207 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 208 |
+
|
| 209 |
+
Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Ondrej Bojar Chris Dyer, Alexandra Constantin, and Evan Herbst. Moses: Open source toolkit for statistical machine translation. In Annual Meeting of the Association for Computational Linguistics (ACL), demo session, 2007.
|
| 210 |
+
|
| 211 |
+
Tejas D Kulkarni, William F Whitney, Pushmeet Kohli, and Josh Tenenbaum. Deep convolutional inverse graphics network. In Advances in neural information processing systems, pp. 2539–2547, 2015.
|
| 212 |
+
|
| 213 |
+
Guillaume Lample, Ludovic Denoyer, and Marc’Aurelio Ranzato. Unsupervised machine translation using monolingual corpora only. arXiv preprint arXiv:1711.00043, 2017a.
|
| 214 |
+
|
| 215 |
+
Guillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, et al. Fader networks: Manipulating images by sliding attributes. In Advances in Neural Information Processing Systems, pp. 5967–5976, 2017b.
|
| 216 |
+
|
| 217 |
+
Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Phrase-based & neural unsupervised machine translation. arXiv preprint arXiv:1804.07755, 2018.
|
| 218 |
+
|
| 219 |
+
Juncen Li, Robin Jia, He He, and Percy Liang. Delete, retrieve, generate: A simple approach to sentiment and style transfer. arXiv preprint arXiv:1804.06437, 2018.
|
| 220 |
+
|
| 221 |
+
Ming-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks. In Advances in neural information processing systems, pp. 469–477, 2016.
|
| 222 |
+
|
| 223 |
+
Paul Michel and Graham Neubig. Extreme adaptation for personalized neural machine translation. arXiv preprint arXiv:1805.01817, 2018.
|
| 224 |
+
|
| 225 |
+
Alexander H Miller, Will Feng, Adam Fisch, Jiasen Lu, Dhruv Batra, Antoine Bordes, Devi Parikh, and Jason Weston. Parlai: A dialog research software platform. arXiv preprint arXiv:1705.06476, 2017.
|
| 226 |
+
|
| 227 |
+
Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014.
|
| 228 |
+
|
| 229 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting on association for computational linguistics, pp. 311–318. Association for Computational Linguistics, 2002.
|
| 230 |
+
|
| 231 |
+
Shrimai Prabhumoye, Yulia Tsvetkov, Ruslan Salakhutdinov, and Alan W Black. Style transfer through back-translation. arXiv preprint arXiv:1804.09000, 2018.
|
| 232 |
+
|
| 233 |
+
Sravana Reddy and Kevin Knight. Obfuscating gender in social media writing. In Proceedings of the First Workshop on NLP and Computational Social Science, pp. 17–26, 2016.
|
| 234 |
+
|
| 235 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pp. 86–96, 2015a.
|
| 236 |
+
|
| 237 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pp. 1715–1725, 2015b.
|
| 238 |
+
|
| 239 |
+
Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi Jaakkola. Style transfer from non-parallel text by cross-alignment. In Advances in Neural Information Processing Systems, pp. 6830–6841, 2017.
|
| 240 |
+
|
| 241 |
+
Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In Advances in Neural Information Processing Systems, pp. 3483–3491, 2015.
|
| 242 |
+
|
| 243 |
+
Yaniv Taigman, Adam Polyak, and Lior Wolf. Unsupervised cross-domain image generation. arXiv preprint arXiv:1611.02200, 2016.
|
| 244 |
+
|
| 245 |
+
Jingjing Xu, Xu Sun, Qi Zeng, Xuancheng Ren, Xiaodong Zhang, Houfeng Wang, and Wenjie Li. Unpaired sentiment-to-sentiment translation: A cycled reinforcement learning approach. arXiv preprint arXiv:1805.05181, 2018.
|
| 246 |
+
|
| 247 |
+
Jimei Yang, Scott E Reed, Ming-Hsuan Yang, and Honglak Lee. Weakly-supervised disentangling with recurrent transformations for 3d view synthesis. In Advances in Neural Information Processing Systems, pp. 1099–1107, 2015.
|
| 248 |
+
|
| 249 |
+
Zichao Yang, Zhiting Hu, Chris Dyer, Eric P Xing, and Taylor Berg-Kirkpatrick. Unsupervised text style transfer using language models as discriminators. arXiv preprint arXiv:1805.11749, 2018.
|
| 250 |
+
|
| 251 |
+
Ye Zhang, Nan Ding, and Radu Soricut. Shaped: Shared-private encoder-decoder for text style adaptation. arXiv preprint arXiv:1804.04093, 2018a.
|
| 252 |
+
|
| 253 |
+
Zhirui Zhang, Shuo Ren, Shujie Liu, Jianyong Wang, Peng Chen, Mu Li, Ming Zhou, and Enhong Chen. Style transfer as unsupervised machine translation. arXiv preprint arXiv:1808.07894, 2018b.
|
| 254 |
+
|
| 255 |
+
Zhirui Zhang, Shuo Ren, Shujie Liu, Jianyong Wang, Peng Chen, Mu Li, Ming Zhou, and Enhong Chen. Style transfer as unsupervised machine translation. arXiv preprint arXiv:1808.07894, 2018c.
|
| 256 |
+
|
| 257 |
+
Yanpeng Zhao, Wei Bi, Deng Cai, Xiaojiang Liu, Kewei Tu, and Shuming Shi. Language style transfer from sentences with arbitrary unknown styles. arXiv preprint arXiv:1808.04071, 2018.
|
| 258 |
+
|
| 259 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. arXiv preprint, 2017.
|
| 260 |
+
|
| 261 |
+
# A SUPPLEMENTARY MATERIAL
|
| 262 |
+
|
| 263 |
+
# A.1 TRAINING DETAILS
|
| 264 |
+
|
| 265 |
+
We used the Adam optimizer (Kingma & Ba, 2014) with a learning rate of $1 0 ^ { - 4 }$ , $\beta _ { 1 } = 0 . 5$ , and a batch size of 32. As in Lample et al. (2018), we fix $\lambda _ { B T } = 1$ , and set $\lambda _ { A E }$ to 1 at the beginning of the experiment, and linearly decrease it to 0 over the first 300, 000 iterations. We use greedy decoding at inference. When generating pseudo-parallel data via back-translation, we found that increasing the temperature over the course of training from greedy generation to multinomial sampling with a temperature of 0.5 linearly over 300,000 steps was useful (Edunov et al., 2018). Since the class distribution for different attributes in both the Yelp and Amazon datasets are skewed, we train with balanced minibatches when there is only a single attribute being controlled and with independent and uniformly sampled attribute values otherwise. The synthetic target attributes during back-translation $\tilde { y }$ are also balanced by uniform sampling.
|
| 266 |
+
|
| 267 |
+
# A.2 DATASET CREATION DETAILS
|
| 268 |
+
|
| 269 |
+
In addition to the details presented in Section 4.1, we present additional details on the creation of the $F Y e l p$ and Amazon datasets.
|
| 270 |
+
|
| 271 |
+
FYelp: Reviews, their rating, user information and restaurant/business categories are obtained from the available metadata. We construct sentiment labels by grouping 1/2 star ratings into the negative category and 4/5 into the positive category while discarding 3 star reviews. To determine the gender of the person writing a review, we obtain their name from the available user information and then look it up in a list of gendered names5 following Prabhumoye et al. (2018); Reddy & Knight (2016). We discard reviews for which we were unable to obtain gender information with this technique. Restaurant/business category meta-data is available for each review, from which we discard all reviews that were not written about restaurants. Amongst restaurant reviews, we manually group restaurant categories into “parent” categories to cover a significant fraction of the dataset. The grouping is as follows:
|
| 272 |
+
|
| 273 |
+
• Asian - Japanese, Thai, Ramen, Sushi, Sushi Bar, Chinese, Asian Fusion, Vietnamese, Korean, Noodles, Dim Sum, Cantonese, Filipino, Taiwanese
|
| 274 |
+
• American - American (New), American (Traditional), Canadian (New), Southern
|
| 275 |
+
• Mexican/Latin American - New Mexican Cuisine, Mexican, Tacos, Tex-Mex, Tapas Bars, Latin American
|
| 276 |
+
• Bars - Brasseries, Nightlife, Bars, Pubs, Wine Bars, Sports Bars, Beer, Cocktail Bars
|
| 277 |
+
• Desserts - Desserts, Bakeries, Ice Cream & Frozen Yogurt, Juice Bars & Smoothies Donuts, Cupcakes, Chocolatiers & Shops
|
| 278 |
+
|
| 279 |
+
As described in Section 4.1, we train a classifier on these parent categories and relabel the entire dataset using this.
|
| 280 |
+
|
| 281 |
+
Amazon: Reviews, their rating, user information and restaurant/business categories are obtained from the metadata made available by He & McAuley (2016). We construct sentiment labels in the same manner as in FYelp. We did not experiment with gender labels, since we found that Amazon usernames seldom use real names. We group Amazon product categories into “parent categories” manually, similar to FYelp as follows:
|
| 282 |
+
|
| 283 |
+
• Books - Books, Books & Comics, Children’s Books, Literature & Fiction, Comic Books, Kindle eBooks etc.
|
| 284 |
+
• Electronics - Car Electronics, Cell Phones, Electrical & Electronics, Electronics, Electronics & Gadgets, Mobiles, Tablets, Headphones etc.
|
| 285 |
+
• Movies - Movies, Movies & TV, Movies & Video, TV & Film
|
| 286 |
+
• Clothing - Clothing, Shoes & Jewelry, Baby Clothing, Fashion
|
| 287 |
+
|
| 288 |
+
• Music - CDs & Vinyl, Music, Digital Music, Children’s Music, World Music, Electronic Music
|
| 289 |
+
|
| 290 |
+
We relabel reviews with a trained product category classifier similar to $F Y e l p$ .
|
| 291 |
+
|
| 292 |
+
For the FYelp and Amazon datasets, we normalize, lowercase and tokenize reviews using the moses (Koehn et al., 2007) tokenizer. With social media content, we do not lowercase data in order to exploit interesting capitalization patterns inherent in the data, but we still run other pre-processing steps. We use byte-pair encodings (BPE) (Sennrich et al., 2015b) with 60k replacements, on all 3 datasets, to deal with large vocabulary sizes.
|
| 293 |
+
|
| 294 |
+
Human Annotated References Li et al. (2018) released a set of human reference edits when controlling the sentiment of a review, on a test set of 500 examples on the SYelp dataset. We follow suit by collecting a similar dataset of 500 human reference edits, which will be made publicly available, for both sentiment and product categories on the FYelp and Amazon datasets. When collecting such data, we use pre-trained sentiment/category classifiers to interactively guide crowd workers using the ParlAI (Miller et al., 2017) platform, to produce edits with the desired attribute value as well as significant content overlap with the input.
|
| 295 |
+
|
| 296 |
+
# A.3 ADDITIONAL QUALITATIVE EXAMPLES
|
| 297 |
+
|
| 298 |
+
<table><tr><td rowspan=1 colspan=2>Positive ←Negative (Yelp)</td></tr><tr><td rowspan=1 colspan=2>Positive frozen hot chocolate with peanut butter cups = amazing.i'll be back for some food next time!Negative frozen hot chocolate with peanut butter ? horrible.i'll stick with the coffee shop next door!</td></tr><tr><td rowspan=1 colspan=2>Negative one Word: underwhelming.save your money and find the many restaurants in vegas that ofers areal experience.Positive one word: delicious.save room for the best and most authentic indian food in vegas.</td></tr><tr><td rowspan=1 colspan=2>Asian ←Mexican(Yelp)</td></tr><tr><td rowspan=1 colspan=2>Asian best thai food i've ever had in the us.great duck specials on monday.. best yellow curry fried rice..Mexican best mexican food i've ever had in my life.great guacamole on the side..best carnitas tacos i have ever had..</td></tr><tr><td rowspan=1 colspan=2>Mexican awesome carne asada! try the papa verde with steak! it's delicious and the portions are great!Asian awesome orange chicken!try the orange chicken with the spicy sauce! it's delicious and the portions are great!</td></tr><tr><td rowspan=1 colspan=2>MaleFemale (Yelp)</td></tr><tr><td rowspan=2 colspan=2>Male good food.my wife and i always enjoy coming here for dinner.irecommend india garden.Female good food.my husband and i always stop by here for lunch.irecommend the veggie burrito.</td></tr><tr><td rowspan=1 colspan=1>Female</td></tr><tr><td rowspan=1 colspan=1>Female</td><td rowspan=1 colspan=1>Female we are regulars here... me n my husband just gorge on these freaking amazing donuts!! loved itMale we are regulars here...every time we come here she loves the new york style pizza!!!!</td></tr><tr><td rowspan=1 colspan=2>Positive Negative (Amazon)</td></tr><tr><td rowspan=2 colspan=2>Positive ilovethis game.takes patience and strategy,goonlineand look forhints and cheats,they helpalot.great game!!!Negative idon'tlikethis game.ittakesalotoftimetofgureouthowtoplay,anditdoesn't work.iwouldnotrecommendthisgame.</td></tr><tr><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>veidor</td></tr><tr><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Negative i did notlike theconflicting historical data.what was realand what was not.iprefer fiction with facts intact.Positive i enjoyed the historical references.what a great read and iloved it.i highly recommend this book.</td></tr><tr><td rowspan=1 colspan=2>Movies ←Books (Amazon)</td></tr><tr><td rowspan=1 colspan=2>Movies very good movie withoutstandingspecial efects irecommend this toallshifilovers.good acting great plotlotsof actionBooks very goodbook withoutstanding characterdevelopmentirecommend this toallthereaders.good jobgreatplottwistsandturns</td></tr><tr><td rowspan=1 colspan=2>Books definitely not a stone barrington book,but a story told that keeps you wanting more.great read!Movies definitely nota film noir,buta story that keeps youon theedge of your seat.great acting and a great story.</td></tr><tr><td rowspan=1 colspan=2>Clothing Electronics (Amazon)</td></tr><tr><td rowspan=1 colspan=2>Clothing gotthis cause it said it would help with tennis elbow and guess what my tennis elbow stillbothering meElectronicsgot this cause it said it would help with windows xp and guess what my windows xp still crashed</td></tr><tr><td rowspan=1 colspan=2>Electronicsi have no choice.this is the only black ink that works with my printer.Clothing i have no choice.this is the only black color that works with my dress.</td></tr></table>
|
| 299 |
+
|
| 300 |
+
Table 8: Example re-writes by our model on the FYelp and Amazon datasets when controlling a single attribute. The first line in every box is the pre-specified input with its attribute on the left, and the subsequent line is our model’s re-write conditioned on a different attribute value.
|
| 301 |
+
|
| 302 |
+
Table 9: Demonstrations of our model’s ability to control multiple attributes simultaneously on the Amazon dataset (top) and FYelp dataset (bottom). The first two columns indicate the combination of attributes that are being controlled, with the first row indicating a pre-specified input
|
| 303 |
+
|
| 304 |
+
<table><tr><td>Sentiment</td><td>Category</td><td>Input/Generations</td></tr><tr><td colspan="3">Amazon</td></tr><tr><td>Positive</td><td>Movies</td><td>exciting new show. john malkovich is superb as always.great supporting cast.hope it survives beyond season1</td></tr><tr><td>Positive</td><td>Books</td><td>exciting new book. john grisham is one of the best. great read. hope he continues to write more.</td></tr><tr><td>Negative</td><td>Books</td><td>nothing new. john grisham is not as good as his first book.not a good read.</td></tr><tr><td>Positive</td><td>Clothing</td><td>awesome new watch.fits perfectly. great price. great quality. hope it lasts for a long time.</td></tr><tr><td>Negative</td><td>Clothing</td><td>horrible. the color is not as pictured. not what i expected. it is not a good quality.</td></tr><tr><td>Positive</td><td>Electronics</td><td>works great. the price is unbeatable. great price. great price. hope it lasts for a long time.</td></tr><tr><td>Negative</td><td>Electronics</td><td>worthless.the picture is not as clear as the picture.not sure why it is not compatible with the samsung galaxy s2.</td></tr><tr><td>Positive</td><td>Movies</td><td>exciting new show. john goodman is great as always.great supporting cast. hope it continues to end.</td></tr><tr><td>Negative</td><td>Movies</td><td>horrible.the acting is terrible.not worth the time. it's not worth the time.</td></tr><tr><td>Positive</td><td>Music</td><td>awesome new album. john mayer is one of the best. great album. hope he continues to release this album.</td></tr><tr><td>Negative</td><td>Music</td><td>horrible. the songs are not as good as the original. not worth the price.</td></tr><tr><td colspan="3">Yelp</td></tr><tr><td>Negative</td><td>Dessert</td><td>the bread here is crummy,half baked and stale even when‘fresh.”i won't be back.</td></tr><tr><td>Positive</td><td>American</td><td>the burgers here are juicy, juicy and full of flavor!i highly recommend this place.</td></tr><tr><td>Negative</td><td>American</td><td>the bread here is stale,dry and over cooked even though the bread is hard.i won'tbe back.</td></tr><tr><td>Positive</td><td>Asian</td><td>the sushi here is fresh,tasty and even better than the last.i highly recommend this place.</td></tr><tr><td>Negative</td><td>Asian</td><td>the noodles here are dry,dry and over cooked even though they are supposed to be“fresh."i won't be back.</td></tr><tr><td>Positive</td><td>Bar</td><td>the pizza here is delicious,thin crust and even better cheese (in my opinion).i highly recommend it.</td></tr><tr><td>Negative</td><td>Bar</td><td>the pizza here is bland,thin crust and even worse than the pizza, so i won't be back.</td></tr><tr><td>Positive</td><td>Dessert Dessert</td><td>the ice cream here is delicious,soft and fluffy with all the toppings you want.i highly recommend it.</td></tr><tr><td>Negative Positive</td><td>Mexican</td><td>the bread here is stale,stale and old when you ask fora“fresh”sandwich.i won'tbe back. the tacos here are delicious,full of flavor and even beter hot sauce.i highly recommend this place.</td></tr><tr><td>Negative</td><td>Mexican</td><td></td></tr><tr><td></td><td></td><td>the beans here are dry,dry and over cooked even though they are supposed to be“fresh.’i won't be back.</td></tr></table>
|
| 305 |
+
|
| 306 |
+

|
| 307 |
+
Table 10: Examples of our model’s ability to re-write sentences from public social media content when conditioned on information about the feeling expressed by the writer (Relaxed vs Annoyed)
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
Table 11: Model re-writes of sentences from public social media content when conditioned on the age-group of the writer (18-24 vs $^ { 6 5 + }$ )
|
| 311 |
+
|
| 312 |
+
Table 12: Examples of human edits from our FYelp and Amazon datasets. The first line in every box was the input presented to a crowd worker followed by their corresponding edit with the specified attribute.
|
| 313 |
+
|
| 314 |
+
<table><tr><td colspan="2">Positive ←→Negative(Yelp)</td></tr><tr><td>Positive Negative</td><td>happy to find this hidden gem near my office. great food and best of all, fast delivery. the restaurant near my office was such a dump.late delivery and gross,cold food.</td></tr><tr><td>Negative Positive</td><td>omfg no.iordered baklavaand they nuked itonastyrofoamdishforme.theisides were stillcoldand it tastedlikecancer:/ yes!iordered baklavaand it was the perfecttemperature onafancy plate.the inside was greatand ittasted excellent.</td></tr><tr><td colspan="2">Mexican ←→Asian (Yelp)</td></tr><tr><td>Mexican Asian</td><td>just wful.socalledasadaburrio'wascoldandbland..justalumpofplaincarnitasandsome iceberg lettce inacheaptrtila. reminiscent of taco bell in the 9Os but worse. just awful.socalled spring roll was cold and bland..jumpa lumpof meat and vegetables inan egg noodle wrapper. reminded me of frozen chinese food but worse.</td></tr><tr><td>Asian American(Yelp)</td><td></td></tr><tr><td colspan="2">Asian my newfavoritecuryhousedefinitelycomingback.chickenkatsuandtakoyakiissooogood!cant wait totrythepork katsu. American my new favorite american bistro house! we are definitely coming back.fried chicken and waffles is soooo good. cant wait to try the new bbq rib sandwich.</td></tr><tr><td>Mexican →Dessert (Yelp)</td><td></td></tr><tr><td>Mexican Dessert</td><td>tacos were delicious.triedthecarneasad,bqpork,andchorizo.came withonionand cilantro toppingandahouse madechoice of mild or hot salsa. cheesecake was delicious.tried the strawberryflavoredone with chocolate drizzle.came with afresh cherryontopanda house</td></tr><tr><td colspan="2">made choice of iced or hot coffee Positive ←→ Negative (Amazon)</td></tr><tr><td>Negative Positive</td><td>tooscif forme.charactersnotrealistic.situationbsurd.abandondithlfwaytroughunusualforme.implynotmytasteinyteri. ilove how scifithis was the characters arerelatable,and the plot was great.i just had to finish itinone siing, the story got me hooked. this is has to be one of my favorite mysteries.</td></tr><tr><td>Positive Negative</td><td>my mom love this case for heri-pod.she uses it a lot and she is one satisfied customer.she would recommended it. mymominitiallylikedthiscaseforheri-pod.sheuseditforawhileanditbroke.sinceit is notsolid she would notrecommendit.</td></tr><tr><td colspan="2">Clothing ←→Books (Amazon)</td></tr><tr><td>Clothing Books</td><td>nice suit but i wear a size 8 and ordered at 12 and it was just a bit too small. great book butican'treadsmall text with mybad eyesight,unfortunately,thisone happenedtobe printedrathersall.</td></tr><tr><td colspan="2">Books → Clothing(Amazon)</td></tr><tr><td>Books Clothing</td><td>greatbookabouttealitisoftemecandeamellwiteithgeathracterdevelopntiwoudefiitelyecomdisbk. great dress with american flags printed on it.wellmade with great materials.iwoulddefinitely recommend this dress.</td></tr><tr><td colspan="2">Books ←Music (Amazon)</td></tr><tr><td>Books Music</td><td>ilovedthebookancan'twaitoreadthesequelicouldn'tputthebookdownbecause theplotandcharacters weresointeresting. iloved the musicand can not wait for the next album!icouldn’t stop listening because the music was so interesting.</td></tr></table>
|
| 315 |
+
|
| 316 |
+
Table 13: Examples of controlling sentiment with different model checkpoints that exhibit different trade-offs between content preservation (self-BLEU) and attribute control (Accuracy). The first line in both examples is the input sentence, and subsequent lines are a model’s outputs with decreasing content preservation with rows corresponding to model checkpoints at different epochs during training.
|
| 317 |
+
|
| 318 |
+
<table><tr><td>Accuracy</td><td>Self-BLEU</td><td>Input/Swap</td></tr><tr><td></td><td></td><td>not a fan.food is not the best and the service was terrible the two times i have visited.</td></tr><tr><td>78.7%</td><td>73.8</td><td>great little place.food is great and the service was great the two times i have visited.</td></tr><tr><td>83.5%</td><td>51.5</td><td>best food in town.food is great and the service was the best two times i have visited.</td></tr><tr><td>92.8% 96.8%</td><td>27.7 13.1</td><td>best thai food in town.the food is great and the service is excellent as always. best chinese food in town. great service and the food is the besti have had in a long time.</td></tr><tr><td></td><td></td><td>overpriced specialty food.also very crowded.service is slow.would not recommend at any time.</td></tr><tr><td>78.7%</td><td>73.8</td><td>great homemade food.also very crowded.service is fast. would recommend at least once.</td></tr><tr><td>83.5%</td><td>51.5</td><td>great specialty food.also very crowded.service is friendly.would recommend any time at the time.</td></tr><tr><td>92.8%</td><td>27.7</td><td>great variety of food.also very friendly staff.good service.would recommend at least oncea week.</td></tr><tr><td>96.8%</td><td>13.1</td><td>great tasting food.very friendly staff. definitely recommend this place for a quick bite.</td></tr></table>
|
| 319 |
+
|
| 320 |
+
<table><tr><td>Positive</td><td>Negative</td><td>Male</td><td>Female</td><td>American</td><td>Asian</td><td>Bar</td><td>Dessert</td><td>Mexican</td></tr><tr><td>pampered</td><td>dishonest</td><td>ammo</td><td>manicure</td><td>primanti</td><td>guu</td><td>promoter</td><td>patisserie</td><td>tortas</td></tr><tr><td>relaxation</td><td>fraud</td><td>tenant</td><td>pedi</td><td>bobby</td><td>chashu</td><td>bouncers</td><td>froyo</td><td>fundido</td></tr><tr><td>delightfully</td><td>incompetence</td><td>bachelor</td><td>hubs</td><td>flay</td><td>izakaya</td><td>bouncer</td><td>buttercream</td><td>arepas</td></tr><tr><td>complemented</td><td>unethical</td><td>barbers</td><td>bridesmaids</td><td>lux</td><td>tonkotsu</td><td>hakkasan</td><td>dunkin</td><td>burritos</td></tr><tr><td>cutest</td><td>insulted</td><td>wife</td><td>bridal</td><td>nacho</td><td>khao</td><td>postino</td><td>groomers</td><td>tostada</td></tr><tr><td>plush</td><td>audacity</td><td>firestone</td><td>pedicure</td><td>bj</td><td>soju</td><td>bachi</td><td>bakeries</td><td>taquitos</td></tr><tr><td>punctual</td><td>confronted</td><td>provider</td><td>instructors</td><td>gown</td><td>tonkatsu</td><td>brio</td><td>bakery</td><td>nacho</td></tr><tr><td>housemade</td><td>cockroach</td><td>data</td><td>mattresses</td><td>applebee</td><td>banchan</td><td>cabanas</td><td>custard</td><td>fajita</td></tr><tr><td>precision</td><td>crooks</td><td>plumber</td><td>stylist</td><td>burgr</td><td>shabu</td><td>films</td><td>doughnuts</td><td>guac</td></tr><tr><td>masterpiece</td><td>disrespect</td><td>motor</td><td>jacuzzi</td><td>chilis</td><td>teppanyaki</td><td>trader</td><td>pastries</td><td>refried</td></tr><tr><td>restored</td><td>roaches</td><td>contractor</td><td>hubby</td><td>mesa</td><td>gai</td><td>hooters</td><td>gelato</td><td>mexico</td></tr><tr><td>comprehensive</td><td>refunds</td><td>hertz</td><td>pregnancy</td><td>bmw</td><td>kbbq</td><td>karaoke</td><td>cheesecakes</td><td>empanadas</td></tr><tr><td>sublime</td><td>shrugged</td><td>hvac</td><td>bachelorette</td><td>denny</td><td>pho</td><td>irish</td><td>donut</td><td>tapas</td></tr><tr><td>made</td><td>liars</td><td>qualified</td><td>husbands</td><td>mastro</td><td>hotpot</td><td>harry</td><td>croissants</td><td>queso</td></tr><tr><td>tastefully</td><td>rudest</td><td>incompetence</td><td>barre</td><td>cellar</td><td>soi</td><td>darts</td><td>doughnut</td><td>cantina</td></tr><tr><td>treasures</td><td>accused</td><td>transmission</td><td>cutest</td><td>bachi</td><td>karaage</td><td>nightclub</td><td>danish</td><td>salsas</td></tr><tr><td>addicting</td><td>inconsiderate</td><td>summary</td><td>lashes</td><td>rubbed</td><td>omakase</td><td>applebee</td><td>cheesecake</td><td>pollo</td></tr><tr><td>marvelous</td><td>roach</td><td>contractors</td><td>sephora</td><td>flatbread</td><td>saigon</td><td>whiskey</td><td>fritter</td><td>asada</td></tr><tr><td>handsome</td><td>rudely</td><td>automotive</td><td>bf</td><td>skins</td><td>panang</td><td>cereal</td><td>macarons</td><td>barrio</td></tr><tr><td>healing</td><td>cancellation</td><td>audio</td><td>boyfriends</td><td>grille</td><td>cantonese</td><td>perform</td><td>oreos</td><td>barbacoa</td></tr></table>
|
| 321 |
+
|
| 322 |
+
Table 14: Examples of the learned attribute biases for sentiment and restaurant categories on $F Y e l p$
|
parse/train/H1g2NhC5KQ/H1g2NhC5KQ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1g2NhC5KQ/H1g2NhC5KQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1g2NhC5KQ/H1g2NhC5KQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyYe6k-CW/SyYe6k-CW.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyYe6k-CW/SyYe6k-CW_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyYe6k-CW/SyYe6k-CW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyYe6k-CW/SyYe6k-CW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/c5QbJ1zob73/c5QbJ1zob73.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/c5QbJ1zob73/c5QbJ1zob73_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/c5QbJ1zob73/c5QbJ1zob73_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/c5QbJ1zob73/c5QbJ1zob73_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1e8WTEYPB/r1e8WTEYPB.md
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPARSE AND STRUCTURED VISUAL ATTENTION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Visual attention mechanisms have been widely used in image captioning models. In this paper, to better link the image structure with the generated text, we replace the traditional softmax attention mechanism by two alternative sparsity-promoting transformations: sparsemax and Total-Variation Sparse Attention (TVMAX). With sparsemax, we obtain sparse attention weights, selecting relevant features. In order to promote sparsity and encourage fusing of the related adjacent spatial locations, we propose TVMAX. By selecting relevant groups of features, the TVMAX transformation improves interpretability. We present results in the Microsoft COCO and Flickr30k datasets, obtaining gains in comparison to softmax. TVMAX outperforms the other compared attention mechanisms in terms of humanrated caption quality and attention relevance.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The goal of image captioning is to generate a fluent textual caption that describes a given image (Farhadi et al., 2010; Kulkarni et al., 2011; Vinyals et al., 2015; Xu et al., 2015). Image captioning is a multimodal task: it combines text generation with the detection and identification of objects in the image, along with their relations. While neural encoder-decoder models have achieved impressive performance in many text generation tasks (Bahdanau et al., 2015; Vaswani et al., 2017; Chorowski et al., 2015; Chopra et al., 2016), it is appealing to design image captioning models where structural bias can be injected to improve their adequacy (preservation of the image’s information), therefore strengthening the link between their language and vision components.
|
| 12 |
+
|
| 13 |
+
State-of-the-art approaches for image captioning (Liu et al., 2018a;b; Anderson et al., 2018; Lu et al., 2018) are based on encoder-decoders with visual attention. These models pay attention either to the features generated by convolutional neural networks (CNNs) pretrained on image recognition datasets, or to detected bounding boxes. In this paper, we focus on the former category: visual attention over features generated by a CNN. Without explicit object detection, it is up to the attention mechanism to identify relevant image regions, in an unsupervised manner.
|
| 14 |
+
|
| 15 |
+
A key component of attention mechanisms is the transformation that maps scores into probabilities, with softmax being the standard choice (Bahdanau et al., 2015). However, softmax is strictly dense, i.e., it devotes some attention probability mass to every region of the image. Not only is this wasteful, it also leads to “lack of focus”: for complex images with many objects, this may lead to vague captions with substantial repetitions. Figure 1 presents an example in which this is visible: in the caption generated using softmax (top), the model attends to the whole image at every time step, leading to a repetition of “bowl of fruit.” This undesirable behaviour is eliminated by using our alternative solutions: sparsemax (middle) and the newly proposed TVMAX (bottom).
|
| 16 |
+
|
| 17 |
+
In this work, we introduce novel visual attention mechanisms by endowing them with a new capability: that of selecting only the relevant features of the image. To this end, we first propose replacing softmax with sparsemax (Martins & Astudillo, 2016). While sparsemax has been previously used in NLP for attention mechanisms over words, it has never been applied to computer vision to attend over image regions. With sparsemax, the attention weights obtained are sparse, leading to the selection (non-zero attention) of only a few relevant features. Second, to further encourage the weights of related adjacent spatial locations to be the same (e.g., parts of an object), we introduce a new attention mechanism: Total-Variation Sparse Attention (which we dub TVMAX), inspired by prior work in structured sparsity (Tibshirani et al., 2005; Bach et al., 2012). With TVMAX, sparsity is allied to the ability of selecting compact regions. According to our human evaluation experiments, this leads to better interpretability, since the model’s behaviour is better understood by looking at the selected image regions when a particular word is generated. It also leads to a better selection of the relevant features, and consequently to the improvement of the generated captions.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Example of captions generated using softmax (top), sparsemax (middle) and TVMAX attention (bottom). Shading denotes the attention weight, with white for zero attention. The darker the green is, the higher the attention weight is. The full sequences are presented in Appendix C.
|
| 21 |
+
|
| 22 |
+
This paper introduces three main contributions:
|
| 23 |
+
|
| 24 |
+
• We propose a novel visual attention mechanism using sparse attention, based on sparsemax (Martins & Astudillo, 2016), that improves the quality of the generated captions and increases interpretability.
|
| 25 |
+
We introduce a new attention mechanism, TVMAX, that encourages sparse attention over contiguous 2D regions, giving the model the capability of selecting compact objects. We show that TVmax can be evaluated by composing a proximal operator with a sparsemax projection, and we provide a closed-form expression for its Jacobian. This leads to an efficient implementation of its forward and backward pass. We perform an empirical and qualitative comparison of the various attention mechanisms considered. We also carry out a human evaluation experiment, taking into account the generated captions as well as the perceived relevance of the selected regions.
|
| 26 |
+
|
| 27 |
+
# 2 SELECTIVE VISUAL ATTENTION
|
| 28 |
+
|
| 29 |
+
Attention mechanisms have the ability to select the relevant features, in this case spatial locations. This requires a mapping from importance scores to a distribution, $z \in \mathbb { R } ^ { k } \mapsto \dot { p } \in \triangle ^ { k }$ , where $\begin{array} { r } { \bigtriangleup ^ { k } : = \Big \{ { \pmb p } \in \mathbb { R } ^ { k } \ \big \vert \ \sum _ { i = 1 } ^ { k } p _ { i } = 1 , { \pmb p } \geqslant { \bf 0 } \Big \} } \end{array}$ denotes the simplex (the set of all probability distributions over $k$ values). The standard choice for this mapping is softmax, defined as:
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
[ \mathsf { s o f t m a x } ( z ) ] _ { i } = \frac { \exp ( z _ { i } ) } { \sum _ { j } \exp ( z _ { j } ) } .
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
However, as softmax is strictly positive, its output is dense. Thus, the model must pay some attention to the whole image and, consequently, assign lower attention weights to the relevant regions. This motivates our proposed selective visual attention mechanisms, which, by being sparse, are able to better isolate the relevant image regions.
|
| 36 |
+
|
| 37 |
+
# 2.1 SPARSEMAX
|
| 38 |
+
|
| 39 |
+
To achieve selective capabilities, we propose the use of sparsemax (Martins & Astudillo, 2016), a sparse mapping consisting in the Euclidean projection of $_ z$ onto the probability simplex:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathsf { s p a r s e m a x } ( z ) : = \underset { \pmb { p } \in \triangle ^ { k } } { \arg \operatorname* { m i n } } \frac 1 2 \| \pmb { p } - z \| _ { 2 } ^ { 2 } ,
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
which allows to obtain sparse outputs with a small increase in complexity. Output sparsity is an attractive property for attention mechanisms, since some features do not provide relevant information for the current prediction. In the image captioning case, using sparsemax allows focusing only on the spatial locations of the image that are relevant to the word being generated, assigning zero attention weight to all other regions.
|
| 46 |
+
|
| 47 |
+
# 2.2 SPARSE AND STRUCTURED VISUAL ATTENTION
|
| 48 |
+
|
| 49 |
+
To generate descriptive captions, the model should identify the objects present in the image. Thus, when generating object-related words, the attention mechanism should assign high weights to the regions of the image containing the object. However, sparsemax is unstructured and index-invariant, leading it to select discontinuous regions. To overcome this, we propose a new visual attention mechanism, TVMAX. TVMAX is a non-trivial generalization of fusedmax (Niculae & Blondel, 2017), a transformation based on fused lasso, to the 2D case. To this end, we first extend fusedmax even more generally, to arbitrary graphs.
|
| 50 |
+
|
| 51 |
+
# 2.2.1 GENERALIZED FUSED LASSO
|
| 52 |
+
|
| 53 |
+
Let $\mathbf { \boldsymbol { w } } \in \mathbb { R } ^ { k }$ , and let $I = \{ 1 , \ldots , k \}$ . Consider a graph over $I$ defined by its edges $E \subseteq I \times I$ , where an edge between $i$ and $j$ means we want to encourage $w _ { i }$ to be close to $w _ { j }$ . For simplicity we use $i \sim j$ as shorthand for $( i , j ) \in E$ .
|
| 54 |
+
|
| 55 |
+
The generalized fused lasso penalty (Tibshirani et al., 2005) is defined as:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\Omega _ { E } ( \pmb { w } ) = \sum _ { i \sim j } | w _ { i } - w _ { j } | .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Minimizing $\Omega _ { E }$ encourages “fused” solutions, i.e., it encourages $w _ { i } = w _ { j }$ for $i \sim j$ . In particular, its proximal operator1 can be seen as a fused signal approximator, seeking a vector $\pmb { w }$ that approximates $_ z$ well (in terms of Euclidean distance) and that is encouraged to be fused:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathsf { p r o x } _ { \lambda \Omega _ { E } } ( z ) = \underset { { \pmb w } \in \mathbb { R } ^ { d } } { \arg \operatorname* { m i n } } \frac { 1 } { 2 } \| { \pmb w } - { \pmb z } \| ^ { 2 } + \lambda \Omega _ { E } ( { \pmb w } ) .
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Computing the value of $\mathsf { p r o x } _ { \lambda \Omega _ { E } }$ is non-trivial in general (Xin et al., 2016), but for certain edge configurations, described below, efficient algorithms exist.
|
| 68 |
+
|
| 69 |
+
• If $E$ forms a chain, i.e. $i \sim j \iff i = j - 1$ , the problem is called 1D total variation and can be solved in ${ \mathcal { O } } ( k )$ time using the taut string algorithm (Davies & Kovac, 2001; Barbero & Sra, 2014). We use the quasilinear algorithm of Condat (2013), which is very fast in practice.
|
| 70 |
+
|
| 71 |
+
• If the indices are aligned on a 2D grid, as in an image, and $i \sim j$ holds iff. $j$ is to the right or immediately below $i$ , the problem is called 2D total variation. Unlike the 1D case, exact algorithms are not available. However, for an input of size $a \times b$ , it is possible to split the penalty into $a$ column-wise and $b$ row-wise 1D problems. We may then apply a number of iterative methods, for instance proximal Dykstra (Barbero & Sra, 2014).2
|
| 72 |
+
|
| 73 |
+
# 2.2.2 TVMAX
|
| 74 |
+
|
| 75 |
+
TVMAX combines 2D total variation (TV2D) regularization with sparsemax. This way it promotes sparsity and encourages the attention weights of adjacent spatial locations to be the same, selecting contiguous regions of the image. TVMAX is defined as follows:
|
| 76 |
+
|
| 77 |
+
Definition 1 (TVMAX). Let $z \in \mathbb { R } ^ { k }$ , such that $_ { z }$ ’s indices can be decomposed into rows and columns. The TVMAX transformation is defined as
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathrm { T V M A X } ( z ) : = \operatorname * { a r g m i n } _ { \pmb { p } \in \triangle ^ { k } } \frac { 1 } { 2 } \| \pmb { p } - z \| _ { 2 } ^ { 2 } + \lambda \Omega _ { 2 D } ^ { T V } ( \pmb { p } ) ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $\lambda$ is an hyper-parameter controlling the amount of fusion $\lambda = 0$ recovers sparsemax) and $\Omega _ { 2 D } ^ { T V }$ is a $2 D$ total variation penalty.
|
| 84 |
+
|
| 85 |
+
Note that Eq. 5 differs from Eq. 4 in which the variable $\pmb { p }$ is further constrained to lie in the probability simplex. We show next how the forward and backward passes can be efficiently computed.
|
| 86 |
+
|
| 87 |
+
# 2.2.3 GENERALIZED FUSED SPARSE ATTENTION
|
| 88 |
+
|
| 89 |
+
To construct generalized fused sparse attention, we follow Niculae & Blondel (2017) and define
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\begin{array} { r } { \mathsf { g f u s e d m a x } _ { E } ( z ) : = \underset { p \in \triangle } { \arg \operatorname* { m i n } } \| p - z \| _ { 2 } ^ { 2 } + \lambda \Omega _ { E } ( p ) . } \end{array}
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
This can be seen as a constrained fused lasso approximator, because the solution $\pmb { p }$ must be a probability distribution vector. While the optimization function is very similar to Eq. 4, the additional constraint that $p \in \triangle$ increases complexity. Fortunately, the following result holds:
|
| 96 |
+
|
| 97 |
+
Proposition 1 (Computing generalized fusedmax).
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array} { r } { \mathsf { g f u s e d m a x } _ { E } ( z ) = \mathsf { p r o j } _ { \triangle } \left( \mathsf { p r o x } _ { \lambda \Omega _ { E } } ( z ) \right) . } \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
The proof is given in Appendix A.2.
|
| 104 |
+
|
| 105 |
+
Proposition 1 also provides a shortcut for deriving the Jacobian of generalized fusedmax via the chain rule: denoting by $J _ { F }$ the Jacobian of $\mathsf { p r o x } _ { \lambda \Omega _ { E } }$ , we have
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\frac { \partial \mathtt { g f u s e d m a x } } { \partial z } = J _ { \mathtt { g f u s e d m a x } } = J _ { \mathtt { s p a r s e m a x } } ( \mathsf { p r o x } _ { \lambda \Omega _ { E } } ( z ) ) J _ { F } ( z ) .
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
As we already know how to compute $J _ { \mathsf { s p a r s e m a x } }$ (Appendix A.1), we may concentrate our effort on deriving the simpler $J _ { F }$ (Eq. 9).
|
| 112 |
+
|
| 113 |
+
Proposition 2 (Group-wise characterization of $\mathsf { p r o x } _ { \lambda \Omega _ { E } } ,$ ). Let $\boldsymbol { w } ^ { \star } : = \mathsf { p r o x } _ { \lambda \Omega _ { E } }$ , and denote by $G _ { i }$ the set of indices fused to $w _ { i }$ in the solution, $G _ { i }$ may be defined recursively:
|
| 114 |
+
|
| 115 |
+
1. $i \in G _ { i }$ for all $i$ , and
|
| 116 |
+
|
| 117 |
+
2. $j \in G _ { i }$ if there exists $m \in G _ { i }$ such that $m \sim j$ and $w _ { m } ^ { \star } = w _ { j } ^ { \star }$ .
|
| 118 |
+
|
| 119 |
+
Define $s _ { i j } = \mathsf { s i g n } ( w _ { i } ^ { \star } - w _ { j } ^ { \star } )$ . Then, the solution has the expression
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
w _ { i } ^ { \star } = \frac { 1 } { | G _ { i } | } \sum _ { j \in G _ { i } } \left( z _ { j } + \sum _ { \stackrel { m \sim j } { m \ll G _ { i } } } \lambda s _ { m j } - \sum _ { \stackrel { j \sim m } { m \ll G _ { i } } } \lambda s _ { j m } \right) .
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
Proposition 2 shows how to easily compute a generalized Jacobian of gfusedmax: since small perturbations in $_ { z }$ never change the groups $G _ { i }$ nor the signs of across-group differences $s _ { i j }$ , differentiating Eq. 8 yields
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\pmb { J } _ { F i , j } = \frac { \partial \pmb { w } _ { i } ^ { \star } } { \partial z _ { j } } = \left\{ \frac { 1 } { | \pmb { G } _ { i } | } , \quad j \in G _ { i } , \right.
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
This generalizes Lemma 1 of Niculae & Blondel (2017) to generalized fused lasso, with a simpler proof, given in Appendix A.3.
|
| 132 |
+
|
| 133 |
+
# 2.2.4 COMPUTATION
|
| 134 |
+
|
| 135 |
+
As we show in Proposition 1, computing TVMAX’s forward pass can be done by chaining efficient algorithms for TV2D and sparsemax.
|
| 136 |
+
|
| 137 |
+
From Eq. 7 we have that TVMAX’s Jacobian can be computed as $\begin{array} { r l } { J _ { \mathrm { T V M A X } } } & { { } = } \end{array}$ $J _ { \mathrm { s p } } ( \mathsf { p r o x } _ { \lambda \Omega _ { 2 D } ^ { T V } } ( z ) ) J _ { \mathrm { t v } } ( z )$ , where $J _ { \mathrm { s p } }$ is the sparsemax’s Jacobian and $\scriptstyle J _ { \mathrm { t v } }$ is the Jacobian of the Total Variation proximal operator.3 As derived in Proposition 2, $( J _ { \mathrm { t v } } ) _ { i , j } = 1 / n _ { i j }$ if $i$ and $j$ are fused in a group with $n _ { i j }$ elements, and 0 otherwise.
|
| 138 |
+
|
| 139 |
+
The backward pass intuitively involves ”spreading�� the credit assigned to one image location evenly across all locations fused with it. This can be implemented by Algorithm 1 in $\mathcal { O } ( k + N _ { g } \log k )$ where $N _ { g }$ is the number of groups of fused positions. In the worst case, when there are no positions fused, the complexity is $\mathcal { O } ( k + k \log k )$ . This algorithm is inspired by flood filling algorithms (Burtsev & Kuzmin, 1993).
|
| 140 |
+
|
| 141 |
+
Algorithm 1 TVMAX backward pass (Jacobian-vector products)
|
| 142 |
+
|
| 143 |
+
<table><tr><td> Input: p = TVMAX(z),dp ∈ Rk.</td><td></td></tr><tr><td> Output: dz = JTvmAx(dp) ∈ Rk</td><td>#chainrule</td></tr><tr><td>3 Initialize:N←</td><td>#neighbours stack</td></tr><tr><td>4</td><td># visited positions</td></tr><tr><td>5</td><td># current group</td></tr><tr><td>6</td><td>#intermediate value used for JTvmAx's computation</td></tr><tr><td>7 dw ← (Jsp)T dp</td><td>#Eqs.14 and15 of $A.1</td></tr><tr><td>8 while|V|<k do</td><td>#checkif all positions havebeen visited</td></tr><tr><td>9 pick(io,jo) V,push (io,jo) to N</td><td>#getnot visited position andadd it to neighbours stack</td></tr><tr><td>10 while N not empty do</td><td></td></tr><tr><td>11</td><td>pop (i,j) from N</td></tr><tr><td>12 if pi,j = Pio,jo then</td><td>#checkif element is fused</td></tr><tr><td>13</td><td>G ← GU{(i,j)},V ←VU{(i,j)} #add neighbourto groupandto visited positions</td></tr><tr><td>14</td><td>s ←s+(dw)i,j #sum of the dw of each element of the group</td></tr><tr><td>15</td><td>for all neighbours (i',j')~(i,j) do</td></tr><tr><td>16</td><td>if (i',j') V then push (i’,j') to N</td></tr><tr><td>17</td><td>if G not empty then:</td></tr><tr><td>18</td><td>(dz)i,j ← $/iG| for all (i,j) ∈G</td></tr><tr><td>19</td><td># compute JTvmAx for elements in group G G↑Q</td></tr><tr><td>20</td><td>s=0</td></tr></table>
|
| 144 |
+
|
| 145 |
+
# 3 IMAGE CAPTIONING MODEL
|
| 146 |
+
|
| 147 |
+
To compare the proposed attention mechanisms, we use a straight-forward simple encoder-decoder model with visual attention, inspired by Liu et al. (2018a). The model is sketched in Figure 2.
|
| 148 |
+
|
| 149 |
+
Given an image, we use a residual CNN pretrained on ImageNet (He et al., 2016; Russakovsky et al., 2014) to get a feature map with spatial dimension of size $8 \times 8$ and channel dimension of size 2048, that go through a fine-tuned feedforward layer yielding $g \ = \ 5 1 2$ feature maps. The visual feature matrix $V = [ v _ { 1 } , v _ { 2 } , \ldots , v _ { k } ]$ , with $v _ { i } \in \mathbb { R } ^ { g }$ and $k = 6 4 = 8 \times 8$ , contains the image information used to generate the corresponding caption. Following Liu et al. (2018a), we use input and output attention to select the relevant features for the current generation. To generate the word at position $t$ , the input attention, $\pmb { \alpha } _ { t }$ , is computed using the LSTM’s previous hidden state, $h _ { t - 1 } \in$ $\mathbb { R } ^ { \dot { d } }$ . First, a similarity score $z _ { t , i } , i \in \{ 1 , \ldots , k \}$ , is computed between $\boldsymbol { h } _ { t - 1 }$ and the $i ^ { t h }$ image cell via a feedforward transformation (Bahdanau et al., 2015), as $z _ { t , i } = { w ^ { \top } } \mathrm { t a n h } \big ( \mathsf { a f f i n e } ( [ v _ { i } ; h _ { t - 1 } ] ) \big )$ , for all $k$ image cells. Then, $\pmb { \alpha } _ { t }$ is obtained by normalizing the $k$ -dimensional vector of scores ${ \boldsymbol { z } } _ { t }$ with softmax, $\pmb { \alpha } _ { t } = \mathsf { s o f t m a x } ( z _ { t } )$ . Using these attention weights, a vector representation of the image to be used as input of the LSTM, is obtained, $s _ { t } ~ = ~ V \alpha _ { t }$ . The output attention $\widetilde { \alpha } _ { t }$ , is computed in the same way as above, but applied to the current LSTM hidden state $\boldsymbol { h } _ { t }$ , instead of $\boldsymbol { h } _ { t - 1 }$ , and normalized with the different proposed transformations. This produces output visual features $\widetilde { \pmb { s } } _ { t } = \pmb { V } \widetilde { \pmb { \alpha } } _ { t }$ , which are passed through a feedforward layer to yield the image representation ${ r } _ { t } = \mathrm { t a n h } \big ( \mathsf { a f f i n e } ( \widetilde { \pmb { s } } _ { t } ) \big )$ . Finally, the predictive probability of the next word is:
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
P ( y _ { t } \mid y _ { 1 : ( t - 1 ) } ; \mathrm { I m a g e } ) \propto \mathsf { s o f t m a x } ( \mathsf { a f f i n e } ( [ r _ { t } ; h _ { t } ] ) ) .
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Figure 2: Diagram of the caption generation network.
|
| 157 |
+
|
| 158 |
+
# 4 EXPERIMENTS
|
| 159 |
+
|
| 160 |
+
Settings. The input images are resized to $2 5 6 \times 2 5 6$ before going through the residual CNN and the feature maps obtained have a size of $8 \times 8$ . We use an LSTM hidden size of $d = 5 1 2$ and a word embedding size of 256, for all models. The models were trained for 50 epochs using the Adam optimizer (Kingma & Ba, 2014) with a learning rate of 0.0001 and a decay of 0.8 and 0.999 for the first and second momentum, respectively. After the $1 0 ^ { t h }$ epoch, the learning rate starts decaying with a decay factor of 0.99. For TVMAX, we set $\lambda = 0 . 0 1$ .
|
| 161 |
+
|
| 162 |
+
Datasets and Metrics. We report our results on the Microsoft COCO (MSCOCO) and Flickr30k datasets. MSCOCO is composed of 113,287 images of common objects in context while Flickr30k consists in 31,000 pictures of people involved in everyday activities and events. Each image is annotated with 5 captions. We use the split proposed by Karpathy & Fei-Fei (2015), which stipulates equal validation and test sizes of 5,000 images (MSCOCO) and 1,000 (Flickr30k). The metrics we report are SPICE (Anderson et al., 2016), CIDEr (Vedantam et al., 2015), longest common subsequence ROUGE, (denoted $\mathrm { R O U G E } _ { L }$ ; Lin, 2004), $1 -$ to 4–gram BLEU (denoted $\mathrm { B L E U _ { 4 } }$ ; Papineni et al., 2002), and METEOR (Banerjee & Lavie, 2005). To investigate whether selective attention alleviates repetition, we also measure the n-gram repetition metric REP (Malaviya et al., 2018).
|
| 163 |
+
|
| 164 |
+
Table 1: Automatic evaluation of caption generation on MSCOCO and Flickr30k.
|
| 165 |
+
|
| 166 |
+
<table><tr><td></td><td colspan="5">MSCOCO</td><td colspan="6">Flickr30k</td></tr><tr><td>SPICE CIDER ROUGEL BLEU4 METEOR REP↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td>SPICE CIDER ROUGEL BLEU4 METEOR REP↓</td><td></td><td></td><td></td><td></td></tr><tr><td>softmax</td><td>18.4</td><td>0.967</td><td>52.9</td><td>29.9</td><td>24.9</td><td>3.76</td><td>13.5 0.443</td><td>44.2</td><td>19.9</td><td>19.1</td><td>6.09</td></tr><tr><td>sparsemax</td><td>18.9</td><td>0.990</td><td>53.5</td><td>31.5</td><td>25.3 3.69</td><td>13.7</td><td>0.444</td><td>44.3</td><td>20.7</td><td>19.3</td><td>5.84</td></tr><tr><td>TVMAX</td><td>18.5</td><td>0.974</td><td>53.1</td><td>29.9</td><td>25.1</td><td>3.17</td><td>13.3 0.438</td><td>44.2</td><td>20.5</td><td>19.0</td><td>3.97</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Automated metrics. As can be seen in table 1, overall sparsemax and TVMAX attention mechanisms achieve better results when compared with softmax, indicating that the use of selective attention leads to better captions. This improvement does not come at a high computational cost: at inference time, models using TVMAX and sparsemax are only $1 . 3 \mathrm { x }$ and $1 . 1 \mathrm { x }$ slower than softmax. Moreover, for TVMAX, automatic metrics results are slightly worse than sparsemax but still superior to softmax on MSCOCO and similar on Flickr30k. We show next that this is compensated with fewer repetitions and higher scores in the human evaluation of the captions and attention relevance.
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 3: Example of captions generated using softmax (top), sparsemax (middle) and TVMAX attention (bottom). Shading denotes the attention weight, with white for zero attention. The darker the green is, the higher the attention weight is. The full sequences are presented in Appendix C.
|
| 172 |
+
|
| 173 |
+
Table 2: Human evaluation results with different attention mechanisms on MSCOCO.
|
| 174 |
+
|
| 175 |
+
<table><tr><td></td><td>CAPTION (1-5)</td><td>ATTENTION RELEVANCE(1-5)</td></tr><tr><td>softmax</td><td>3.50</td><td>3.38</td></tr><tr><td>sparsemax</td><td>3.71</td><td>3.89</td></tr><tr><td>TVMAX</td><td>3.87</td><td>4.10</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Human rating. The caption evaluation consisted in attributing a score from 1 to 5 to the caption of each model while the attention evaluation consisted in scoring the relevancy of the attended areas, from 1 to 5, when generating the non stop words of the captions. A full description of the human assessment can be found in Appendix B.
|
| 178 |
+
|
| 179 |
+
Despite performing slightly worse than sparsemax under automated metrics, TVMAX outperforms sparsemax and softmax in the caption human evaluation and the attention relevance human evaluation, reported in Table 2. The superior score on attention relevance shows that TVMAX is better at selecting the relevant features and its output is more interpretable. Additionally, the better caption evaluation results demonstrate that the ability to select compact regions induces the generation of better captions. We next explore possible explanations for the TVMAX superior results.
|
| 180 |
+
|
| 181 |
+
Repetition. Figure 1 illustrates that softmax attention is prone to spuriously repeating references to the same object. Selective attention mechanisms like sparsemax and especially TVMAX reduce repetition, as measured by the REP metric reported in Table 1. This expected success can be attributed to the sparsity of the attention weights distribution and to the ability to select compact regions exclusively and can be one of the causes of the human evaluation results. This happens even though TVMAX generates longer sentences than sparsemax and softmax (9.5 against 9.0 words on average) and shows the benefit of promoting structured and sparse attention simultaneously. To corroborate our intuition that sparsity leads to less repetition, we measured the Jensen-Shannon divergence (JS) between the attention distributions for each step of the generation of the captions correspondent to the images of the MSCOCO test set. The mean JS values are 0.12, 0.29, and 0.34 for softmax, sparsemax, and TVmax, respectively. This shows that sparsity leads to less similar attention distributions along the generation of the captions and, consequently, to less repetitions.
|
| 182 |
+
|
| 183 |
+
Object detection. Using the MSCOCO object detection ground truth, we compared the percentage of objects present in the image that are referred to in the captions, using each attention mechanism. With TVMAX $2 8 . 2 \%$ of the reference objects are referred, against $2 7 . 5 \%$ and $2 7 . 4 \%$ for sparsemax and softmax, repectively. This shows that promoting high attention to groups of spatial locations of the image leads to a more precise identification of the objects.
|
| 184 |
+
|
| 185 |
+
Sparsity. The average image area that receives zero attention is $3 4 \%$ for sparsemax and $2 5 \%$ for TVMAX. To illustrate where the models attend to, we display the output attention in Figures 1 and 3. As expected, softmax weights are spread widely across the image, ending up missing the relevant regions. In contrast, sparsemax and TVMAX weights are zero for the non-relevant spatial locations.
|
| 186 |
+
|
| 187 |
+
Qualitative comparison. As the image of Figure 1 contains various similar objects, the softmax model (top) generates a incoherent, repetition-laden caption. In contrast, the sparsemax (middle) and TVMAX (bottom) models better identify the relevant parts of the image, generating coherent and descriptive captions. Moreover, the groups obtained with TVMAX are clearly visible and more aligned to object boundaries, offering better interpretability, as revealed by human attention assessment. In Figure 3 it can also be noticed that with TVMAX (bottom) the model correctly identified “a group of people” instead of “a soccer player” as with sparsemax (middle) and softmax (top). This indicates its superior ability to correctly define the relevant groups of features and that this ability leads to improved captions.
|
| 188 |
+
|
| 189 |
+
# 5 RELATED WORK
|
| 190 |
+
|
| 191 |
+
Image captioning. In the last years, neural models with visual attention mechanisms have been receiving increased interest. Several researchers have been studying diverse attention mechanisms in order to refine visual information for image captioning. Xu et al. (2015) proposed the use of hard attention, which only attends to one region at each step. However, to generate descriptive captions the model should, often, focus on more than one region. In addition, hard attention is non-differentiable, requiring imitation learning or Monte Carlo policy gradient approximations.Anderson et al. (2018) proposed bottom-up attention, using an object detection model designed to identify bounding boxes of objects, and top-down attention, selecting the relevant bounding-boxes. Wang et al. (2019) proposed an hierarchical attention network composed by a patch detector, object detector, and concept detector. Using object detection models is less demanding on the attention mechanism, since it only has to select the boxes the model should attend to. However, such models are limited by the bounding boxes position’s accuracy. Gao et al. (2019) introduced a deliberate attention network to refine the attended visual features. Yet, the attention distribution remained dense.
|
| 192 |
+
|
| 193 |
+
Sparse attention. In several tasks only a few features are relevant for the current prediction. This can be attained when using sparse attention. Various prior works have proposed sparse attention mechanisms with promising results, (Xu et al., 2015; Martins & Astudillo, 2016; Malaviya et al., 2018; Peters et al., 2019). Niculae & Blondel (2017) proposed 1D fusedmax, which incorporates the fused lasso, so that adjacent words are encouraged to have the same attention weight. In this work, the authors were able to improve interpretability without sacrificing performance, obtaining superior results on textual entailment and summarization. We derive a generalized fused attention mechanism, extending 1D fusedmax.
|
| 194 |
+
|
| 195 |
+
# 6 CONCLUSIONS AND FUTURE WORK
|
| 196 |
+
|
| 197 |
+
We propose using sparse and structured visual attention, in order to improve the process of selecting the features relevant to the caption generation. For that, we used sparsemax and introduced TVMAX. Results on the image captioning task, show that the attention mechanism is able to select better
|
| 198 |
+
|
| 199 |
+
features when using sparsemax or TVMAX. Furthermore, in the human assessment and attention analysis we see that the improved selection of the relevant features as well as the ability to group spatial features lead to the generation of better captions, while improving the model’s interpretability.
|
| 200 |
+
|
| 201 |
+
In future work, TVMAX attention can be applied to other multimodal problems such as visual question answering. It can also be applied in other tasks for which we have prior knowledge of the data’s stucture, for instance graphs or trees.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. SPICE: Semantic propositional image caption evaluation. In Proc. ECCV, 2016.
|
| 206 |
+
|
| 207 |
+
Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and visual question answering. In Proc. CVPR, 2018.
|
| 208 |
+
|
| 209 |
+
Francis Bach, Rodolphe Jenatton, Julien Mairal, Guillaume Obozinski, et al. Optimization with sparsity-inducing penalties. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 4(1):1–106, 2012.
|
| 210 |
+
|
| 211 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proc. ICLR, 2015.
|
| 212 |
+
|
| 213 |
+
Satanjeev Banerjee and Alon Lavie. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proc. ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, 2005.
|
| 214 |
+
|
| 215 |
+
Alvaro Barbero and Suvrit Sra. Modular proximal optimization for multidimensional total-variation ´ regularization. preprint arXiv:1411.0589, 2014.
|
| 216 |
+
|
| 217 |
+
Sergei Burtsev and Ye.P. Kuzmin. An efficient flood-filling algorithm. Computers & Graphics, 17: 549–561, 09 1993.
|
| 218 |
+
|
| 219 |
+
Sumit Chopra, Michael Auli, and Alexander M Rush. Abstractive sentence summarization with attentive recurrent neural networks. In Proc. NAACL-HLT, 2016.
|
| 220 |
+
|
| 221 |
+
Jan K Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, Kyunghyun Cho, and Yoshua Bengio. Attention-based models for speech recognition. In Proc. NeurIPS, 2015.
|
| 222 |
+
|
| 223 |
+
Laurent Condat. A direct algorithm for 1-d total variation denoising. IEEE Signal Processing Letters, 20(11):1054–1057, 2013.
|
| 224 |
+
|
| 225 |
+
P. Laurie Davies and Arne Kovac. Local extremes, runs, strings and multiresolution. The Annals of Statistics, 29(1):1–48, 2001. ISSN 00905364.
|
| 226 |
+
|
| 227 |
+
Ali Farhadi, Mohsen Hejrati, Mohammad Amin Sadeghi, Peter Young, Cyrus Rashtchian, Julia Hockenmaier, and David Forsyth. Every picture tells a story: Generating sentences from images. In Proc. ECCV, 2010.
|
| 228 |
+
|
| 229 |
+
Jerome Friedman, Trevor Hastie, Holger Hofling, and Robert Tibshirani. Pathwise coordinate opti- ¨ mization. The Annals of Applied Statistics, 1(2):302–332, 2007.
|
| 230 |
+
|
| 231 |
+
Lianli Gao, Kaixuan Fan, Jingkuan Song, Xianglong Liu, Xing Xu, and Heng Tao Shen. Deliberate attention networks for image captioning. 2019.
|
| 232 |
+
|
| 233 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. CVPR, 2016.
|
| 234 |
+
|
| 235 |
+
Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2015.
|
| 236 |
+
|
| 237 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. preprint arXiv:1412.6980, 2014.
|
| 238 |
+
|
| 239 |
+
Girish Kulkarni, Visruth Premraj, Sagnik Dhar, Siming Li, Yejin Choi, Alexander C Berg, and Tamara L Berg. Baby talk: Understanding and generating image descriptions. In Proc. CVPR, 2011.
|
| 240 |
+
|
| 241 |
+
Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. Text Summarization Branches Out, 2004.
|
| 242 |
+
|
| 243 |
+
Fenglin Liu, Xuancheng Ren, Yuanxin Liu, Houfeng Wang, and Xu Sun. simNet: Stepwise imagetopic merging network for generating detailed and comprehensive image captions. Preprint arXiv:1808.08732, 2018a.
|
| 244 |
+
|
| 245 |
+
Xihui Liu, Hongsheng Li, Jing Shao, Dapeng Chen, and Xiaogang Wang. Show, tell and discriminate: Image captioning by self-retrieval with partially labeled data. preprint arXiv:1803.08314, 2018b.
|
| 246 |
+
|
| 247 |
+
Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Neural baby talk. In Proc. CVPR, 2018.
|
| 248 |
+
|
| 249 |
+
Chaitanya Malaviya, Pedro Ferreira, and Andre FT Martins. Sparse and constrained attention for ´ neural machine translation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 370–376, 2018.
|
| 250 |
+
|
| 251 |
+
Andre Martins and Ramon Astudillo. From softmax to sparsemax: A sparse model of attention and multi-label classification. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proc. ICML, 20–22 Jun 2016.
|
| 252 |
+
|
| 253 |
+
Vlad Niculae and Mathieu Blondel. A regularized framework for sparse and structured neural attention. In Proc. NeurIPS, 2017.
|
| 254 |
+
|
| 255 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. BLEU: a method for automatic evaluation of machine translation. In Proc. ACL, 2002.
|
| 256 |
+
|
| 257 |
+
Ben Peters, Vlad Niculae, and Andre FT Martins. Sparse sequence-to-sequence models. ´ In Proc. ACL, 2019.
|
| 258 |
+
|
| 259 |
+
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, 2014.
|
| 260 |
+
|
| 261 |
+
Robert Tibshirani, Michael Saunders, Saharon Rosset, Ji Zhu, and Keith Knight. Sparsity and smoothness via the fused lasso. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67(1):91–108, 2005.
|
| 262 |
+
|
| 263 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proc. NeurIPS, 2017.
|
| 264 |
+
|
| 265 |
+
Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. CIDEr: Consensus-based image description evaluation. In Proc. CVPR, 2015.
|
| 266 |
+
|
| 267 |
+
Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Proc. CVPR, 2015.
|
| 268 |
+
|
| 269 |
+
Weixuan Wang, Zhihong Chen, and Haifeng Hu. Hierarchical attention network for image captioning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 8957–8964, 2019.
|
| 270 |
+
|
| 271 |
+
Bo Xin, Yoshinobu Kawahara, Yizhou Wang, Lingjing Hu, and Wen Gao. Efficient generalized fused lasso and its applications. ACM Trans. Intell. Syst. Technol., 7(4):60:1–60:22, May 2016. ISSN 2157-6904.
|
| 272 |
+
|
| 273 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In Proc. ICML, 2015.
|
| 274 |
+
|
| 275 |
+
Yaoliang Yu. On decomposing the proximal map. In Proc. NeurIPS, 2013.
|
| 276 |
+
|
| 277 |
+
# A FORWARD AND BACKWARD PASS OF 2D FUSEDMAX ATTENTION.
|
| 278 |
+
|
| 279 |
+
# A.1 PRELIMINARIES
|
| 280 |
+
|
| 281 |
+
The proximal operator of a function $f \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } \cup \{ \infty \} }$ is defined as
|
| 282 |
+
|
| 283 |
+
$$
|
| 284 |
+
{ \sf p r o x } _ { f } ( z ) = \underset { { \pmb w } \in \mathbb { R } ^ { d } } { \arg \operatorname* { m i n } } f ( z ) + \frac { 1 } { 2 } \| z - { \pmb w } \| _ { 2 } ^ { 2 } ,
|
| 285 |
+
$$
|
| 286 |
+
|
| 287 |
+
and it is guaranteed to have a unique solution, thanks to the strong convexity of the Euclidean distance.
|
| 288 |
+
|
| 289 |
+
The indicator function of a set $\mathcal { C } \subset \mathbb { R } ^ { d }$ is the function
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
\iota _ { \mathcal { C } } \colon \mathbb { R } ^ { d } \to \mathbb { R } \cup \{ \infty \} , \quad \iota _ { \mathcal { C } } ( \pmb { w } ) : = \left\{ \begin{array} { l l } { 0 , } & { \pmb { w } \in \mathcal { C } , } \\ { \infty , } & { \pmb { w } \notin \mathcal { C } . } \end{array} \right.
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
The projection onto a convex set $\mathcal { C } \subset \mathbb { R } ^ { d }$ is defined as
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\mathsf { p r o j } _ { \mathcal { C } } ( z ) : = \mathop { \arg \operatorname* { m i n } } _ { \pmb { w } \in \mathcal { C } } \frac { 1 } { 2 } \| z - \pmb { w } \| _ { 2 } ^ { 2 } = \mathsf { p r o x } _ { \iota _ { \mathcal { C } } } ( z ) ,
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
showing that the proximal operator can be seen as a generalization of projection.
|
| 302 |
+
|
| 303 |
+
The sparsemax attention mapping (Martins & Astudillo, 2016) is the projection onto the simplex,
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
{ \mathsf { s p a r s e m a x } } ( z ) : = { \mathsf { p r o j } } _ { \triangle } ( z ) = \operatorname * { a r g m i n } _ { p \in { \triangle } } { \frac { 1 } { 2 } } \| p - z \| ^ { 2 } .
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
A necessary component for using sparsemax for attention is its Jacobian, the matrix of its partial derivatives $\begin{array} { r } { ( J _ { \mathsf { s p a r s e m a x } } ) _ { i , j } = \frac { \partial \mathsf { s p a r s e m a x } ( z ) _ { i } } { \partial z _ { j } } } \end{array}$ ∂ sparsemax(z)i . Martins & Astudillo (2016) derive its expression
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\boldsymbol { J } _ { \mathsf { s p a r s e m a x } } ( z ) = \mathsf { d i a g } s - \frac { 1 } { \| s \| _ { 1 } } \pmb { s } \pmb { s } ^ { \top } ,
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
where $s _ { j } = 1$ if sparsemax $( z ) _ { j } > 0$ and $s _ { j } = 0$ otherwise.
|
| 316 |
+
|
| 317 |
+
# A.2 PROOF OF PROPOSITION 1
|
| 318 |
+
|
| 319 |
+
Proof. This result is a slight extension of Proposition 2 in Niculae & Blondel (2017), and also follows from Corrolary 4 of Yu (2013), by taking $f = \iota _ { \triangle }$ , and noting that $\iota \triangle$ is symmetric: if $p \in \triangle$ , then any vector $\pmb { p } ^ { \prime }$ obtained by permuting $\pmb { p }$ is also in $\triangle$ , because its values remain nonnegative and sum to 1. □
|
| 320 |
+
|
| 321 |
+
# A.3 PROOF OF PROPOSITION 2
|
| 322 |
+
|
| 323 |
+
Let $\boldsymbol { w } ^ { \star } : = \mathsf { p r o x } _ { \lambda \Omega _ { E } }$ , and denote by $G _ { i }$ the set of indices fused to $w _ { i }$ in the solution. Define $s _ { i j } =$ $\mathsf { s i g n } ( w _ { i } ^ { \star } - w _ { j } ^ { \star } )$ .
|
| 324 |
+
|
| 325 |
+
Proof. The subgradient optimality conditions of Eq. 4 are: (Friedman et al., 2007)
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
w _ { i } ^ { \star } - z _ { i } + \sum _ { k : i \sim k } \lambda t _ { i k } - \sum _ { k : k \sim i } \lambda t _ { k i } = 0 , \quad \quad 1 \leq i \leq d .
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
where $t _ { i j } = \mathsf { s i g n } ( w _ { i } ^ { \star } - w _ { j } ^ { \star } )$ if $w _ { i } ^ { \star } \neq w _ { j } ^ { \star }$ , otherwise $t _ { i j }$ is a free variable in $[ - 1 , 1 ]$ .
|
| 332 |
+
|
| 333 |
+
We focus on a single group $G = G _ { i }$ , dropping the index $i$ for brevity. Within a fused group, the solution is constant, i.e., $w _ { j } ^ { \star } = w$ for $j \in G$ . We separate the sums in Eq. 16 according to whether $k \in G$ or not, and move the “constant” terms to the right hand side, yielding the system
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
w + \sum _ { j \sim k } \lambda t _ { j k } - \sum _ { k \sim j \atop k \in G } \lambda t _ { k j } = z _ { j } + \sum _ { \stackrel { k \sim j } { k \notin G } } \lambda s _ { k j } - \sum _ { j \sim k } \lambda s _ { j k } , \qquad j \in G .
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
Summing up the Eq. 17 over all $j \in G$ , we observe that for any $k \in G$ , the term $\lambda t _ { j k }$ appears twice with opposite signs. Thus,
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\sum _ { j \in G } w = \sum _ { j \in G } \left( z _ { j } + \sum _ { \stackrel { k \sim j } { k \notin G } } \lambda s _ { k j } - \sum _ { j \stackrel { \sim k } { k \notin G } } \lambda s _ { j k } \right) .
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
Dividing by $| G |$ gives exactly Eq. 8. This reasoning applies to any group $G _ { i }$
|
| 346 |
+
|
| 347 |
+
# B HUMAN EVALUATION DESCRIPTION
|
| 348 |
+
|
| 349 |
+
To perform the human evaluation firstly 100 images were randomly selected from the test set of the MSCOCO dataset (using the split proposed by Karpathy & Fei-Fei (2015)). For each of the selected images, the human evaluators selected a score from 1 to 5 for the captions generated by the models using softmax attention, sparsemax attention, and TVMAX attention. They were also asked to evaluate whether the models attend to the relevant regions of the image when generating a certain word. For that they observed the attention plots corresponding to the non stop words of the caption of each of the models. While in Figures 1 and 3, 4, and 5 we emphasized sparsity with a hard white mask, for the human evaluation the sparse regions of the attention plots were simply fully transparent, to avoid biasing the evaluators. The possible scores were also between 1 and 5. The 100 images were judged by 6 persons both for the captions evaluation and attention evaluation. The order of the captions and attention plots was randomly chosen for each image.
|
| 350 |
+
|
| 351 |
+
With these scores, we computed the mean of the captions evaluation scores and the mean of the attention relevance evaluation scores. The results are reported in Table 2.
|
| 352 |
+
|
| 353 |
+
# C ADDITIONAL ATTENTION VISUALIZATION
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
Figure 4: Example generated captions using softmax attention (top), sparsemax attention (middle) and TVMAX attention (bottom). The captions are “A bowl of fruit and a bowl of fruit”, “A bowl of fruit and oranges on a table” and “A bowl of oranges and a banana on a table”.
|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
Figure 5: Example generated captions using softmax attention (top), sparsemax attention (middle) and TVMAX attention (bottom). The captions are “A soccer player is running to the base”, “A soccer player is running to the field” and “A group of people playing soccer on a field”.
|
parse/train/r1e8WTEYPB/r1e8WTEYPB_content_list.json
ADDED
|
@@ -0,0 +1,1845 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SPARSE AND STRUCTURED VISUAL ATTENTION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
746,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
398,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Visual attention mechanisms have been widely used in image captioning models. In this paper, to better link the image structure with the generated text, we replace the traditional softmax attention mechanism by two alternative sparsity-promoting transformations: sparsemax and Total-Variation Sparse Attention (TVMAX). With sparsemax, we obtain sparse attention weights, selecting relevant features. In order to promote sparsity and encourage fusing of the related adjacent spatial locations, we propose TVMAX. By selecting relevant groups of features, the TVMAX transformation improves interpretability. We present results in the Microsoft COCO and Flickr30k datasets, obtaining gains in comparison to softmax. TVMAX outperforms the other compared attention mechanisms in terms of humanrated caption quality and attention relevance. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
242,
|
| 43 |
+
764,
|
| 44 |
+
395
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
425,
|
| 55 |
+
336,
|
| 56 |
+
440
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The goal of image captioning is to generate a fluent textual caption that describes a given image (Farhadi et al., 2010; Kulkarni et al., 2011; Vinyals et al., 2015; Xu et al., 2015). Image captioning is a multimodal task: it combines text generation with the detection and identification of objects in the image, along with their relations. While neural encoder-decoder models have achieved impressive performance in many text generation tasks (Bahdanau et al., 2015; Vaswani et al., 2017; Chorowski et al., 2015; Chopra et al., 2016), it is appealing to design image captioning models where structural bias can be injected to improve their adequacy (preservation of the image’s information), therefore strengthening the link between their language and vision components. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
457,
|
| 66 |
+
825,
|
| 67 |
+
569
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "State-of-the-art approaches for image captioning (Liu et al., 2018a;b; Anderson et al., 2018; Lu et al., 2018) are based on encoder-decoders with visual attention. These models pay attention either to the features generated by convolutional neural networks (CNNs) pretrained on image recognition datasets, or to detected bounding boxes. In this paper, we focus on the former category: visual attention over features generated by a CNN. Without explicit object detection, it is up to the attention mechanism to identify relevant image regions, in an unsupervised manner. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
575,
|
| 77 |
+
825,
|
| 78 |
+
660
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "A key component of attention mechanisms is the transformation that maps scores into probabilities, with softmax being the standard choice (Bahdanau et al., 2015). However, softmax is strictly dense, i.e., it devotes some attention probability mass to every region of the image. Not only is this wasteful, it also leads to “lack of focus”: for complex images with many objects, this may lead to vague captions with substantial repetitions. Figure 1 presents an example in which this is visible: in the caption generated using softmax (top), the model attends to the whole image at every time step, leading to a repetition of “bowl of fruit.” This undesirable behaviour is eliminated by using our alternative solutions: sparsemax (middle) and the newly proposed TVMAX (bottom). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
666,
|
| 88 |
+
825,
|
| 89 |
+
777
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we introduce novel visual attention mechanisms by endowing them with a new capability: that of selecting only the relevant features of the image. To this end, we first propose replacing softmax with sparsemax (Martins & Astudillo, 2016). While sparsemax has been previously used in NLP for attention mechanisms over words, it has never been applied to computer vision to attend over image regions. With sparsemax, the attention weights obtained are sparse, leading to the selection (non-zero attention) of only a few relevant features. Second, to further encourage the weights of related adjacent spatial locations to be the same (e.g., parts of an object), we introduce a new attention mechanism: Total-Variation Sparse Attention (which we dub TVMAX), inspired by prior work in structured sparsity (Tibshirani et al., 2005; Bach et al., 2012). With TVMAX, sparsity is allied to the ability of selecting compact regions. According to our human evaluation experiments, this leads to better interpretability, since the model’s behaviour is better understood by looking at the selected image regions when a particular word is generated. It also leads to a better selection of the relevant features, and consequently to the improvement of the generated captions. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
785,
|
| 99 |
+
825,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/8eef032470e6d50b2ff6440493118d5e0ef4bff16063051ea86ebbd8f106a8cc.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Example of captions generated using softmax (top), sparsemax (middle) and TVMAX attention (bottom). Shading denotes the attention weight, with white for zero attention. The darker the green is, the higher the attention weight is. The full sequences are presented in Appendix C. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
176,
|
| 113 |
+
102,
|
| 114 |
+
818,
|
| 115 |
+
369
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
459,
|
| 125 |
+
826,
|
| 126 |
+
502
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "This paper introduces three main contributions: ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
508,
|
| 136 |
+
485,
|
| 137 |
+
523
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "• We propose a novel visual attention mechanism using sparse attention, based on sparsemax (Martins & Astudillo, 2016), that improves the quality of the generated captions and increases interpretability. \nWe introduce a new attention mechanism, TVMAX, that encourages sparse attention over contiguous 2D regions, giving the model the capability of selecting compact objects. We show that TVmax can be evaluated by composing a proximal operator with a sparsemax projection, and we provide a closed-form expression for its Jacobian. This leads to an efficient implementation of its forward and backward pass. We perform an empirical and qualitative comparison of the various attention mechanisms considered. We also carry out a human evaluation experiment, taking into account the generated captions as well as the perceived relevance of the selected regions. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
215,
|
| 146 |
+
535,
|
| 147 |
+
825,
|
| 148 |
+
700
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 SELECTIVE VISUAL ATTENTION ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
719,
|
| 159 |
+
473,
|
| 160 |
+
737
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Attention mechanisms have the ability to select the relevant features, in this case spatial locations. This requires a mapping from importance scores to a distribution, $z \\in \\mathbb { R } ^ { k } \\mapsto \\dot { p } \\in \\triangle ^ { k }$ , where $\\begin{array} { r } { \\bigtriangleup ^ { k } : = \\Big \\{ { \\pmb p } \\in \\mathbb { R } ^ { k } \\ \\big \\vert \\ \\sum _ { i = 1 } ^ { k } p _ { i } = 1 , { \\pmb p } \\geqslant { \\bf 0 } \\Big \\} } \\end{array}$ denotes the simplex (the set of all probability distributions over $k$ values). The standard choice for this mapping is softmax, defined as: ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
752,
|
| 170 |
+
825,
|
| 171 |
+
818
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "equation",
|
| 177 |
+
"img_path": "images/d8bdaf8b46543fe683ec67593379dfa8265b6efd7688e7a7d80e1d3e091f996b.jpg",
|
| 178 |
+
"text": "$$\n[ \\mathsf { s o f t m a x } ( z ) ] _ { i } = \\frac { \\exp ( z _ { i } ) } { \\sum _ { j } \\exp ( z _ { j } ) } .\n$$",
|
| 179 |
+
"text_format": "latex",
|
| 180 |
+
"bbox": [
|
| 181 |
+
397,
|
| 182 |
+
824,
|
| 183 |
+
599,
|
| 184 |
+
862
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "However, as softmax is strictly positive, its output is dense. Thus, the model must pay some attention to the whole image and, consequently, assign lower attention weights to the relevant regions. This motivates our proposed selective visual attention mechanisms, which, by being sparse, are able to better isolate the relevant image regions. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
867,
|
| 194 |
+
825,
|
| 195 |
+
924
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "2.1 SPARSEMAX ",
|
| 202 |
+
"text_level": 1,
|
| 203 |
+
"bbox": [
|
| 204 |
+
174,
|
| 205 |
+
103,
|
| 206 |
+
300,
|
| 207 |
+
117
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "To achieve selective capabilities, we propose the use of sparsemax (Martins & Astudillo, 2016), a sparse mapping consisting in the Euclidean projection of $_ z$ onto the probability simplex: ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
171,
|
| 216 |
+
131,
|
| 217 |
+
825,
|
| 218 |
+
160
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "equation",
|
| 224 |
+
"img_path": "images/6d2af67f628b71c36a537d0c1b7c9db42bd19f8219b3fea99fc48b396c320dd7.jpg",
|
| 225 |
+
"text": "$$\n\\mathsf { s p a r s e m a x } ( z ) : = \\underset { \\pmb { p } \\in \\triangle ^ { k } } { \\arg \\operatorname* { m i n } } \\frac 1 2 \\| \\pmb { p } - z \\| _ { 2 } ^ { 2 } ,\n$$",
|
| 226 |
+
"text_format": "latex",
|
| 227 |
+
"bbox": [
|
| 228 |
+
369,
|
| 229 |
+
169,
|
| 230 |
+
627,
|
| 231 |
+
204
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "which allows to obtain sparse outputs with a small increase in complexity. Output sparsity is an attractive property for attention mechanisms, since some features do not provide relevant information for the current prediction. In the image captioning case, using sparsemax allows focusing only on the spatial locations of the image that are relevant to the word being generated, assigning zero attention weight to all other regions. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
214,
|
| 241 |
+
825,
|
| 242 |
+
285
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "2.2 SPARSE AND STRUCTURED VISUAL ATTENTION ",
|
| 249 |
+
"text_level": 1,
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
304,
|
| 253 |
+
547,
|
| 254 |
+
319
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "To generate descriptive captions, the model should identify the objects present in the image. Thus, when generating object-related words, the attention mechanism should assign high weights to the regions of the image containing the object. However, sparsemax is unstructured and index-invariant, leading it to select discontinuous regions. To overcome this, we propose a new visual attention mechanism, TVMAX. TVMAX is a non-trivial generalization of fusedmax (Niculae & Blondel, 2017), a transformation based on fused lasso, to the 2D case. To this end, we first extend fusedmax even more generally, to arbitrary graphs. ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
173,
|
| 263 |
+
332,
|
| 264 |
+
825,
|
| 265 |
+
431
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "2.2.1 GENERALIZED FUSED LASSO ",
|
| 272 |
+
"text_level": 1,
|
| 273 |
+
"bbox": [
|
| 274 |
+
176,
|
| 275 |
+
449,
|
| 276 |
+
433,
|
| 277 |
+
463
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "Let $\\mathbf { \\boldsymbol { w } } \\in \\mathbb { R } ^ { k }$ , and let $I = \\{ 1 , \\ldots , k \\}$ . Consider a graph over $I$ defined by its edges $E \\subseteq I \\times I$ , where an edge between $i$ and $j$ means we want to encourage $w _ { i }$ to be close to $w _ { j }$ . For simplicity we use $i \\sim j$ as shorthand for $( i , j ) \\in E$ . ",
|
| 284 |
+
"bbox": [
|
| 285 |
+
174,
|
| 286 |
+
474,
|
| 287 |
+
825,
|
| 288 |
+
517
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "The generalized fused lasso penalty (Tibshirani et al., 2005) is defined as: ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
174,
|
| 297 |
+
523,
|
| 298 |
+
656,
|
| 299 |
+
539
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "equation",
|
| 305 |
+
"img_path": "images/3979a083b5d42fff30720e6057318cf4f513ec569d5da34755f192878929a3e5.jpg",
|
| 306 |
+
"text": "$$\n\\Omega _ { E } ( \\pmb { w } ) = \\sum _ { i \\sim j } | w _ { i } - w _ { j } | .\n$$",
|
| 307 |
+
"text_format": "latex",
|
| 308 |
+
"bbox": [
|
| 309 |
+
413,
|
| 310 |
+
549,
|
| 311 |
+
584,
|
| 312 |
+
584
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "Minimizing $\\Omega _ { E }$ encourages “fused” solutions, i.e., it encourages $w _ { i } = w _ { j }$ for $i \\sim j$ . In particular, its proximal operator1 can be seen as a fused signal approximator, seeking a vector $\\pmb { w }$ that approximates $_ z$ well (in terms of Euclidean distance) and that is encouraged to be fused: ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
174,
|
| 321 |
+
593,
|
| 322 |
+
825,
|
| 323 |
+
637
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 2
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "equation",
|
| 329 |
+
"img_path": "images/f8ee1e7aeea36f4a361b2595d82744bb4c0d468130273e18e45ead85c3819e6d.jpg",
|
| 330 |
+
"text": "$$\n\\mathsf { p r o x } _ { \\lambda \\Omega _ { E } } ( z ) = \\underset { { \\pmb w } \\in \\mathbb { R } ^ { d } } { \\arg \\operatorname* { m i n } } \\frac { 1 } { 2 } \\| { \\pmb w } - { \\pmb z } \\| ^ { 2 } + \\lambda \\Omega _ { E } ( { \\pmb w } ) .\n$$",
|
| 331 |
+
"text_format": "latex",
|
| 332 |
+
"bbox": [
|
| 333 |
+
338,
|
| 334 |
+
647,
|
| 335 |
+
661,
|
| 336 |
+
681
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "Computing the value of $\\mathsf { p r o x } _ { \\lambda \\Omega _ { E } }$ is non-trivial in general (Xin et al., 2016), but for certain edge configurations, described below, efficient algorithms exist. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
173,
|
| 345 |
+
690,
|
| 346 |
+
823,
|
| 347 |
+
720
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "• If $E$ forms a chain, i.e. $i \\sim j \\iff i = j - 1$ , the problem is called 1D total variation and can be solved in ${ \\mathcal { O } } ( k )$ time using the taut string algorithm (Davies & Kovac, 2001; Barbero & Sra, 2014). We use the quasilinear algorithm of Condat (2013), which is very fast in practice. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
215,
|
| 356 |
+
734,
|
| 357 |
+
825,
|
| 358 |
+
792
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "• If the indices are aligned on a 2D grid, as in an image, and $i \\sim j$ holds iff. $j$ is to the right or immediately below $i$ , the problem is called 2D total variation. Unlike the 1D case, exact algorithms are not available. However, for an input of size $a \\times b$ , it is possible to split the penalty into $a$ column-wise and $b$ row-wise 1D problems. We may then apply a number of iterative methods, for instance proximal Dykstra (Barbero & Sra, 2014).2 ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
215,
|
| 367 |
+
799,
|
| 368 |
+
826,
|
| 369 |
+
869
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "2.2.2 TVMAX ",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
103,
|
| 380 |
+
285,
|
| 381 |
+
117
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "TVMAX combines 2D total variation (TV2D) regularization with sparsemax. This way it promotes sparsity and encourages the attention weights of adjacent spatial locations to be the same, selecting contiguous regions of the image. TVMAX is defined as follows: ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
176,
|
| 390 |
+
127,
|
| 391 |
+
823,
|
| 392 |
+
170
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "Definition 1 (TVMAX). Let $z \\in \\mathbb { R } ^ { k }$ , such that $_ { z }$ ’s indices can be decomposed into rows and columns. The TVMAX transformation is defined as ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
173,
|
| 401 |
+
172,
|
| 402 |
+
823,
|
| 403 |
+
203
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "equation",
|
| 409 |
+
"img_path": "images/a3af01a42fd14b677090bd6681ddc3fd9a9337e093346f1bca42be8e4eab221e.jpg",
|
| 410 |
+
"text": "$$\n\\mathrm { T V M A X } ( z ) : = \\operatorname * { a r g m i n } _ { \\pmb { p } \\in \\triangle ^ { k } } \\frac { 1 } { 2 } \\| \\pmb { p } - z \\| _ { 2 } ^ { 2 } + \\lambda \\Omega _ { 2 D } ^ { T V } ( \\pmb { p } ) ,\n$$",
|
| 411 |
+
"text_format": "latex",
|
| 412 |
+
"bbox": [
|
| 413 |
+
333,
|
| 414 |
+
207,
|
| 415 |
+
661,
|
| 416 |
+
241
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "where $\\lambda$ is an hyper-parameter controlling the amount of fusion $\\lambda = 0$ recovers sparsemax) and $\\Omega _ { 2 D } ^ { T V }$ is a $2 D$ total variation penalty. ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
173,
|
| 425 |
+
246,
|
| 426 |
+
825,
|
| 427 |
+
275
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "Note that Eq. 5 differs from Eq. 4 in which the variable $\\pmb { p }$ is further constrained to lie in the probability simplex. We show next how the forward and backward passes can be efficiently computed. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
285,
|
| 437 |
+
825,
|
| 438 |
+
315
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "2.2.3 GENERALIZED FUSED SPARSE ATTENTION ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
176,
|
| 448 |
+
329,
|
| 449 |
+
517,
|
| 450 |
+
344
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "To construct generalized fused sparse attention, we follow Niculae & Blondel (2017) and define ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
353,
|
| 460 |
+
815,
|
| 461 |
+
368
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "equation",
|
| 467 |
+
"img_path": "images/43f05f0fc961c05636e0cf837632cdb1fb83f403c9c9c2e1729032125312d5d8.jpg",
|
| 468 |
+
"text": "$$\n\\begin{array} { r } { \\mathsf { g f u s e d m a x } _ { E } ( z ) : = \\underset { p \\in \\triangle } { \\arg \\operatorname* { m i n } } \\| p - z \\| _ { 2 } ^ { 2 } + \\lambda \\Omega _ { E } ( p ) . } \\end{array}\n$$",
|
| 469 |
+
"text_format": "latex",
|
| 470 |
+
"bbox": [
|
| 471 |
+
331,
|
| 472 |
+
372,
|
| 473 |
+
666,
|
| 474 |
+
400
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "This can be seen as a constrained fused lasso approximator, because the solution $\\pmb { p }$ must be a probability distribution vector. While the optimization function is very similar to Eq. 4, the additional constraint that $p \\in \\triangle$ increases complexity. Fortunately, the following result holds: ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
174,
|
| 483 |
+
405,
|
| 484 |
+
825,
|
| 485 |
+
448
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Proposition 1 (Computing generalized fusedmax). ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
450,
|
| 495 |
+
509,
|
| 496 |
+
465
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/f951026af7fe688e0727ec86d6706b57b31c5b276db0595944fe4f8d6fe8d51e.jpg",
|
| 503 |
+
"text": "$$\n\\begin{array} { r } { \\mathsf { g f u s e d m a x } _ { E } ( z ) = \\mathsf { p r o j } _ { \\triangle } \\left( \\mathsf { p r o x } _ { \\lambda \\Omega _ { E } } ( z ) \\right) . } \\end{array}\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
364,
|
| 507 |
+
469,
|
| 508 |
+
637,
|
| 509 |
+
489
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "The proof is given in Appendix A.2. ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
500,
|
| 519 |
+
411,
|
| 520 |
+
515
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Proposition 1 also provides a shortcut for deriving the Jacobian of generalized fusedmax via the chain rule: denoting by $J _ { F }$ the Jacobian of $\\mathsf { p r o x } _ { \\lambda \\Omega _ { E } }$ , we have ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
173,
|
| 529 |
+
521,
|
| 530 |
+
823,
|
| 531 |
+
551
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "equation",
|
| 537 |
+
"img_path": "images/7649284fd07e962b61e6aa64fa0b9527c0e92b5f52b8fd4a15a733855ef80c14.jpg",
|
| 538 |
+
"text": "$$\n\\frac { \\partial \\mathtt { g f u s e d m a x } } { \\partial z } = J _ { \\mathtt { g f u s e d m a x } } = J _ { \\mathtt { s p a r s e m a x } } ( \\mathsf { p r o x } _ { \\lambda \\Omega _ { E } } ( z ) ) J _ { F } ( z ) .\n$$",
|
| 539 |
+
"text_format": "latex",
|
| 540 |
+
"bbox": [
|
| 541 |
+
295,
|
| 542 |
+
556,
|
| 543 |
+
702,
|
| 544 |
+
588
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "As we already know how to compute $J _ { \\mathsf { s p a r s e m a x } }$ (Appendix A.1), we may concentrate our effort on deriving the simpler $J _ { F }$ (Eq. 9). ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
176,
|
| 553 |
+
590,
|
| 554 |
+
823,
|
| 555 |
+
619
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 3
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Proposition 2 (Group-wise characterization of $\\mathsf { p r o x } _ { \\lambda \\Omega _ { E } } ,$ ). Let $\\boldsymbol { w } ^ { \\star } : = \\mathsf { p r o x } _ { \\lambda \\Omega _ { E } }$ , and denote by $G _ { i }$ the set of indices fused to $w _ { i }$ in the solution, $G _ { i }$ may be defined recursively: ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
173,
|
| 564 |
+
623,
|
| 565 |
+
825,
|
| 566 |
+
652
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 3
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "1. $i \\in G _ { i }$ for all $i$ , and ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
214,
|
| 575 |
+
662,
|
| 576 |
+
367,
|
| 577 |
+
678
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 3
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "2. $j \\in G _ { i }$ if there exists $m \\in G _ { i }$ such that $m \\sim j$ and $w _ { m } ^ { \\star } = w _ { j } ^ { \\star }$ . ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
212,
|
| 586 |
+
685,
|
| 587 |
+
640,
|
| 588 |
+
703
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 3
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "Define $s _ { i j } = \\mathsf { s i g n } ( w _ { i } ^ { \\star } - w _ { j } ^ { \\star } )$ . Then, the solution has the expression ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
173,
|
| 597 |
+
713,
|
| 598 |
+
614,
|
| 599 |
+
731
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "equation",
|
| 605 |
+
"img_path": "images/5d50125c457702775de0f328731694fbdfa096a42dd590e6d0a43f958620d4c0.jpg",
|
| 606 |
+
"text": "$$\nw _ { i } ^ { \\star } = \\frac { 1 } { | G _ { i } | } \\sum _ { j \\in G _ { i } } \\left( z _ { j } + \\sum _ { \\stackrel { m \\sim j } { m \\ll G _ { i } } } \\lambda s _ { m j } - \\sum _ { \\stackrel { j \\sim m } { m \\ll G _ { i } } } \\lambda s _ { j m } \\right) .\n$$",
|
| 607 |
+
"text_format": "latex",
|
| 608 |
+
"bbox": [
|
| 609 |
+
323,
|
| 610 |
+
734,
|
| 611 |
+
674,
|
| 612 |
+
801
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 3
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "Proposition 2 shows how to easily compute a generalized Jacobian of gfusedmax: since small perturbations in $_ { z }$ never change the groups $G _ { i }$ nor the signs of across-group differences $s _ { i j }$ , differentiating Eq. 8 yields ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
173,
|
| 621 |
+
813,
|
| 622 |
+
825,
|
| 623 |
+
853
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 3
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "equation",
|
| 629 |
+
"img_path": "images/2cc92932d2ea28e17f7a4d32c8071f2db9b3b438d997fef6ed932ada15a1347b.jpg",
|
| 630 |
+
"text": "$$\n\\pmb { J } _ { F i , j } = \\frac { \\partial \\pmb { w } _ { i } ^ { \\star } } { \\partial z _ { j } } = \\left\\{ \\frac { 1 } { | \\pmb { G } _ { i } | } , \\quad j \\in G _ { i } , \\right.\n$$",
|
| 631 |
+
"text_format": "latex",
|
| 632 |
+
"bbox": [
|
| 633 |
+
383,
|
| 634 |
+
852,
|
| 635 |
+
612,
|
| 636 |
+
895
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 3
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "This generalizes Lemma 1 of Niculae & Blondel (2017) to generalized fused lasso, with a simpler proof, given in Appendix A.3. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
895,
|
| 646 |
+
821,
|
| 647 |
+
924
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 3
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "2.2.4 COMPUTATION ",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
176,
|
| 657 |
+
103,
|
| 658 |
+
331,
|
| 659 |
+
117
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "As we show in Proposition 1, computing TVMAX’s forward pass can be done by chaining efficient algorithms for TV2D and sparsemax. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
176,
|
| 668 |
+
127,
|
| 669 |
+
823,
|
| 670 |
+
156
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "From Eq. 7 we have that TVMAX’s Jacobian can be computed as $\\begin{array} { r l } { J _ { \\mathrm { T V M A X } } } & { { } = } \\end{array}$ $J _ { \\mathrm { s p } } ( \\mathsf { p r o x } _ { \\lambda \\Omega _ { 2 D } ^ { T V } } ( z ) ) J _ { \\mathrm { t v } } ( z )$ , where $J _ { \\mathrm { s p } }$ is the sparsemax’s Jacobian and $\\scriptstyle J _ { \\mathrm { t v } }$ is the Jacobian of the Total Variation proximal operator.3 As derived in Proposition 2, $( J _ { \\mathrm { t v } } ) _ { i , j } = 1 / n _ { i j }$ if $i$ and $j$ are fused in a group with $n _ { i j }$ elements, and 0 otherwise. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
162,
|
| 680 |
+
825,
|
| 681 |
+
223
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "The backward pass intuitively involves ”spreading” the credit assigned to one image location evenly across all locations fused with it. This can be implemented by Algorithm 1 in $\\mathcal { O } ( k + N _ { g } \\log k )$ where $N _ { g }$ is the number of groups of fused positions. In the worst case, when there are no positions fused, the complexity is $\\mathcal { O } ( k + k \\log k )$ . This algorithm is inspired by flood filling algorithms (Burtsev & Kuzmin, 1993). ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
229,
|
| 691 |
+
825,
|
| 692 |
+
300
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "table",
|
| 698 |
+
"img_path": "images/d4dc1f070c0db564d82901a81531556b827978d9ac2fb1b39e200811434601fa.jpg",
|
| 699 |
+
"table_caption": [
|
| 700 |
+
"Algorithm 1 TVMAX backward pass (Jacobian-vector products) "
|
| 701 |
+
],
|
| 702 |
+
"table_footnote": [],
|
| 703 |
+
"table_body": "<table><tr><td> Input: p = TVMAX(z),dp ∈ Rk.</td><td></td></tr><tr><td> Output: dz = JTvmAx(dp) ∈ Rk</td><td>#chainrule</td></tr><tr><td>3 Initialize:N←</td><td>#neighbours stack</td></tr><tr><td>4</td><td># visited positions</td></tr><tr><td>5</td><td># current group</td></tr><tr><td>6</td><td>#intermediate value used for JTvmAx's computation</td></tr><tr><td>7 dw ← (Jsp)T dp</td><td>#Eqs.14 and15 of $A.1</td></tr><tr><td>8 while|V|<k do</td><td>#checkif all positions havebeen visited</td></tr><tr><td>9 pick(io,jo) V,push (io,jo) to N</td><td>#getnot visited position andadd it to neighbours stack</td></tr><tr><td>10 while N not empty do</td><td></td></tr><tr><td>11</td><td>pop (i,j) from N</td></tr><tr><td>12 if pi,j = Pio,jo then</td><td>#checkif element is fused</td></tr><tr><td>13</td><td>G ← GU{(i,j)},V ←VU{(i,j)} #add neighbourto groupandto visited positions</td></tr><tr><td>14</td><td>s ←s+(dw)i,j #sum of the dw of each element of the group</td></tr><tr><td>15</td><td>for all neighbours (i',j')~(i,j) do</td></tr><tr><td>16</td><td>if (i',j') V then push (i’,j') to N</td></tr><tr><td>17</td><td>if G not empty then:</td></tr><tr><td>18</td><td>(dz)i,j ← $/iG| for all (i,j) ∈G</td></tr><tr><td>19</td><td># compute JTvmAx for elements in group G G↑Q</td></tr><tr><td>20</td><td>s=0</td></tr></table>",
|
| 704 |
+
"bbox": [
|
| 705 |
+
178,
|
| 706 |
+
332,
|
| 707 |
+
826,
|
| 708 |
+
628
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 4
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "3 IMAGE CAPTIONING MODEL ",
|
| 715 |
+
"text_level": 1,
|
| 716 |
+
"bbox": [
|
| 717 |
+
176,
|
| 718 |
+
664,
|
| 719 |
+
442,
|
| 720 |
+
680
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 4
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "To compare the proposed attention mechanisms, we use a straight-forward simple encoder-decoder model with visual attention, inspired by Liu et al. (2018a). The model is sketched in Figure 2. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
695,
|
| 730 |
+
823,
|
| 731 |
+
724
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 4
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "Given an image, we use a residual CNN pretrained on ImageNet (He et al., 2016; Russakovsky et al., 2014) to get a feature map with spatial dimension of size $8 \\times 8$ and channel dimension of size 2048, that go through a fine-tuned feedforward layer yielding $g \\ = \\ 5 1 2$ feature maps. The visual feature matrix $V = [ v _ { 1 } , v _ { 2 } , \\ldots , v _ { k } ]$ , with $v _ { i } \\in \\mathbb { R } ^ { g }$ and $k = 6 4 = 8 \\times 8$ , contains the image information used to generate the corresponding caption. Following Liu et al. (2018a), we use input and output attention to select the relevant features for the current generation. To generate the word at position $t$ , the input attention, $\\pmb { \\alpha } _ { t }$ , is computed using the LSTM’s previous hidden state, $h _ { t - 1 } \\in$ $\\mathbb { R } ^ { \\dot { d } }$ . First, a similarity score $z _ { t , i } , i \\in \\{ 1 , \\ldots , k \\}$ , is computed between $\\boldsymbol { h } _ { t - 1 }$ and the $i ^ { t h }$ image cell via a feedforward transformation (Bahdanau et al., 2015), as $z _ { t , i } = { w ^ { \\top } } \\mathrm { t a n h } \\big ( \\mathsf { a f f i n e } ( [ v _ { i } ; h _ { t - 1 } ] ) \\big )$ , for all $k$ image cells. Then, $\\pmb { \\alpha } _ { t }$ is obtained by normalizing the $k$ -dimensional vector of scores ${ \\boldsymbol { z } } _ { t }$ with softmax, $\\pmb { \\alpha } _ { t } = \\mathsf { s o f t m a x } ( z _ { t } )$ . Using these attention weights, a vector representation of the image to be used as input of the LSTM, is obtained, $s _ { t } ~ = ~ V \\alpha _ { t }$ . The output attention $\\widetilde { \\alpha } _ { t }$ , is computed in the same way as above, but applied to the current LSTM hidden state $\\boldsymbol { h } _ { t }$ , instead of $\\boldsymbol { h } _ { t - 1 }$ , and normalized with the different proposed transformations. This produces output visual features $\\widetilde { \\pmb { s } } _ { t } = \\pmb { V } \\widetilde { \\pmb { \\alpha } } _ { t }$ , which are passed through a feedforward layer to yield the image representation ${ r } _ { t } = \\mathrm { t a n h } \\big ( \\mathsf { a f f i n e } ( \\widetilde { \\pmb { s } } _ { t } ) \\big )$ . Finally, the predictive probability of the next word is: ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
173,
|
| 740 |
+
731,
|
| 741 |
+
825,
|
| 742 |
+
900
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 4
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "",
|
| 749 |
+
"bbox": [
|
| 750 |
+
173,
|
| 751 |
+
103,
|
| 752 |
+
825,
|
| 753 |
+
160
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 5
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "equation",
|
| 759 |
+
"img_path": "images/bcf584750419b3f2d62caf3b5b2975292cdb5c0948fe1aed77df00a445c2bddc.jpg",
|
| 760 |
+
"text": "$$\nP ( y _ { t } \\mid y _ { 1 : ( t - 1 ) } ; \\mathrm { I m a g e } ) \\propto \\mathsf { s o f t m a x } ( \\mathsf { a f f i n e } ( [ r _ { t } ; h _ { t } ] ) ) .\n$$",
|
| 761 |
+
"text_format": "latex",
|
| 762 |
+
"bbox": [
|
| 763 |
+
325,
|
| 764 |
+
165,
|
| 765 |
+
671,
|
| 766 |
+
183
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 5
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "image",
|
| 772 |
+
"img_path": "images/4fa99c339ce83a2711d6ad0f40e551ad67de3e22e286ac067d67ee682e551005.jpg",
|
| 773 |
+
"image_caption": [
|
| 774 |
+
"Figure 2: Diagram of the caption generation network. "
|
| 775 |
+
],
|
| 776 |
+
"image_footnote": [],
|
| 777 |
+
"bbox": [
|
| 778 |
+
362,
|
| 779 |
+
202,
|
| 780 |
+
635,
|
| 781 |
+
415
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 5
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "4 EXPERIMENTS ",
|
| 788 |
+
"text_level": 1,
|
| 789 |
+
"bbox": [
|
| 790 |
+
176,
|
| 791 |
+
467,
|
| 792 |
+
326,
|
| 793 |
+
483
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 5
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Settings. The input images are resized to $2 5 6 \\times 2 5 6$ before going through the residual CNN and the feature maps obtained have a size of $8 \\times 8$ . We use an LSTM hidden size of $d = 5 1 2$ and a word embedding size of 256, for all models. The models were trained for 50 epochs using the Adam optimizer (Kingma & Ba, 2014) with a learning rate of 0.0001 and a decay of 0.8 and 0.999 for the first and second momentum, respectively. After the $1 0 ^ { t h }$ epoch, the learning rate starts decaying with a decay factor of 0.99. For TVMAX, we set $\\lambda = 0 . 0 1$ . ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
497,
|
| 803 |
+
825,
|
| 804 |
+
582
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 5
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Datasets and Metrics. We report our results on the Microsoft COCO (MSCOCO) and Flickr30k datasets. MSCOCO is composed of 113,287 images of common objects in context while Flickr30k consists in 31,000 pictures of people involved in everyday activities and events. Each image is annotated with 5 captions. We use the split proposed by Karpathy & Fei-Fei (2015), which stipulates equal validation and test sizes of 5,000 images (MSCOCO) and 1,000 (Flickr30k). The metrics we report are SPICE (Anderson et al., 2016), CIDEr (Vedantam et al., 2015), longest common subsequence ROUGE, (denoted $\\mathrm { R O U G E } _ { L }$ ; Lin, 2004), $1 -$ to 4–gram BLEU (denoted $\\mathrm { B L E U _ { 4 } }$ ; Papineni et al., 2002), and METEOR (Banerjee & Lavie, 2005). To investigate whether selective attention alleviates repetition, we also measure the n-gram repetition metric REP (Malaviya et al., 2018). ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
597,
|
| 814 |
+
825,
|
| 815 |
+
723
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 5
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "table",
|
| 821 |
+
"img_path": "images/76d07c5ad1c4ea51b50464da12b5769c5da07082b7e2be623628c3213b121a69.jpg",
|
| 822 |
+
"table_caption": [
|
| 823 |
+
"Table 1: Automatic evaluation of caption generation on MSCOCO and Flickr30k. "
|
| 824 |
+
],
|
| 825 |
+
"table_footnote": [],
|
| 826 |
+
"table_body": "<table><tr><td></td><td colspan=\"5\">MSCOCO</td><td colspan=\"6\">Flickr30k</td></tr><tr><td>SPICE CIDER ROUGEL BLEU4 METEOR REP↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td>SPICE CIDER ROUGEL BLEU4 METEOR REP↓</td><td></td><td></td><td></td><td></td></tr><tr><td>softmax</td><td>18.4</td><td>0.967</td><td>52.9</td><td>29.9</td><td>24.9</td><td>3.76</td><td>13.5 0.443</td><td>44.2</td><td>19.9</td><td>19.1</td><td>6.09</td></tr><tr><td>sparsemax</td><td>18.9</td><td>0.990</td><td>53.5</td><td>31.5</td><td>25.3 3.69</td><td>13.7</td><td>0.444</td><td>44.3</td><td>20.7</td><td>19.3</td><td>5.84</td></tr><tr><td>TVMAX</td><td>18.5</td><td>0.974</td><td>53.1</td><td>29.9</td><td>25.1</td><td>3.17</td><td>13.3 0.438</td><td>44.2</td><td>20.5</td><td>19.0</td><td>3.97</td></tr></table>",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
772,
|
| 830 |
+
823,
|
| 831 |
+
859
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 5
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "Automated metrics. As can be seen in table 1, overall sparsemax and TVMAX attention mechanisms achieve better results when compared with softmax, indicating that the use of selective attention leads to better captions. This improvement does not come at a high computational cost: at inference time, models using TVMAX and sparsemax are only $1 . 3 \\mathrm { x }$ and $1 . 1 \\mathrm { x }$ slower than softmax. Moreover, for TVMAX, automatic metrics results are slightly worse than sparsemax but still superior to softmax on MSCOCO and similar on Flickr30k. We show next that this is compensated with fewer repetitions and higher scores in the human evaluation of the captions and attention relevance. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
176,
|
| 840 |
+
882,
|
| 841 |
+
823,
|
| 842 |
+
924
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 5
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "image",
|
| 848 |
+
"img_path": "images/b17c661cbcf65e6080706f3a6d3234826d6ade1d9990d1fc22ad6a791dc22bd3.jpg",
|
| 849 |
+
"image_caption": [
|
| 850 |
+
"Figure 3: Example of captions generated using softmax (top), sparsemax (middle) and TVMAX attention (bottom). Shading denotes the attention weight, with white for zero attention. The darker the green is, the higher the attention weight is. The full sequences are presented in Appendix C. "
|
| 851 |
+
],
|
| 852 |
+
"image_footnote": [],
|
| 853 |
+
"bbox": [
|
| 854 |
+
176,
|
| 855 |
+
101,
|
| 856 |
+
820,
|
| 857 |
+
369
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
457,
|
| 867 |
+
825,
|
| 868 |
+
513
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 6
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "table",
|
| 874 |
+
"img_path": "images/e7384f98bc1a65308584faa334a367903b551bdbd8bd05a83a6c61ad6e84df94.jpg",
|
| 875 |
+
"table_caption": [
|
| 876 |
+
"Table 2: Human evaluation results with different attention mechanisms on MSCOCO. "
|
| 877 |
+
],
|
| 878 |
+
"table_footnote": [],
|
| 879 |
+
"table_body": "<table><tr><td></td><td>CAPTION (1-5)</td><td>ATTENTION RELEVANCE(1-5)</td></tr><tr><td>softmax</td><td>3.50</td><td>3.38</td></tr><tr><td>sparsemax</td><td>3.71</td><td>3.89</td></tr><tr><td>TVMAX</td><td>3.87</td><td>4.10</td></tr></table>",
|
| 880 |
+
"bbox": [
|
| 881 |
+
261,
|
| 882 |
+
563,
|
| 883 |
+
732,
|
| 884 |
+
635
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 6
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "Human rating. The caption evaluation consisted in attributing a score from 1 to 5 to the caption of each model while the attention evaluation consisted in scoring the relevancy of the attended areas, from 1 to 5, when generating the non stop words of the captions. A full description of the human assessment can be found in Appendix B. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
176,
|
| 893 |
+
665,
|
| 894 |
+
823,
|
| 895 |
+
720
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 6
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Despite performing slightly worse than sparsemax under automated metrics, TVMAX outperforms sparsemax and softmax in the caption human evaluation and the attention relevance human evaluation, reported in Table 2. The superior score on attention relevance shows that TVMAX is better at selecting the relevant features and its output is more interpretable. Additionally, the better caption evaluation results demonstrate that the ability to select compact regions induces the generation of better captions. We next explore possible explanations for the TVMAX superior results. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
727,
|
| 905 |
+
825,
|
| 906 |
+
811
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 6
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Repetition. Figure 1 illustrates that softmax attention is prone to spuriously repeating references to the same object. Selective attention mechanisms like sparsemax and especially TVMAX reduce repetition, as measured by the REP metric reported in Table 1. This expected success can be attributed to the sparsity of the attention weights distribution and to the ability to select compact regions exclusively and can be one of the causes of the human evaluation results. This happens even though TVMAX generates longer sentences than sparsemax and softmax (9.5 against 9.0 words on average) and shows the benefit of promoting structured and sparse attention simultaneously. To corroborate our intuition that sparsity leads to less repetition, we measured the Jensen-Shannon divergence (JS) between the attention distributions for each step of the generation of the captions correspondent to the images of the MSCOCO test set. The mean JS values are 0.12, 0.29, and 0.34 for softmax, sparsemax, and TVmax, respectively. This shows that sparsity leads to less similar attention distributions along the generation of the captions and, consequently, to less repetitions. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
173,
|
| 915 |
+
825,
|
| 916 |
+
825,
|
| 917 |
+
924
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 6
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
103,
|
| 927 |
+
823,
|
| 928 |
+
174
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 7
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Object detection. Using the MSCOCO object detection ground truth, we compared the percentage of objects present in the image that are referred to in the captions, using each attention mechanism. With TVMAX $2 8 . 2 \\%$ of the reference objects are referred, against $2 7 . 5 \\%$ and $2 7 . 4 \\%$ for sparsemax and softmax, repectively. This shows that promoting high attention to groups of spatial locations of the image leads to a more precise identification of the objects. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
189,
|
| 938 |
+
825,
|
| 939 |
+
258
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 7
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Sparsity. The average image area that receives zero attention is $3 4 \\%$ for sparsemax and $2 5 \\%$ for TVMAX. To illustrate where the models attend to, we display the output attention in Figures 1 and 3. As expected, softmax weights are spread widely across the image, ending up missing the relevant regions. In contrast, sparsemax and TVMAX weights are zero for the non-relevant spatial locations. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
174,
|
| 948 |
+
273,
|
| 949 |
+
825,
|
| 950 |
+
329
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 7
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Qualitative comparison. As the image of Figure 1 contains various similar objects, the softmax model (top) generates a incoherent, repetition-laden caption. In contrast, the sparsemax (middle) and TVMAX (bottom) models better identify the relevant parts of the image, generating coherent and descriptive captions. Moreover, the groups obtained with TVMAX are clearly visible and more aligned to object boundaries, offering better interpretability, as revealed by human attention assessment. In Figure 3 it can also be noticed that with TVMAX (bottom) the model correctly identified “a group of people” instead of “a soccer player” as with sparsemax (middle) and softmax (top). This indicates its superior ability to correctly define the relevant groups of features and that this ability leads to improved captions. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
174,
|
| 959 |
+
345,
|
| 960 |
+
825,
|
| 961 |
+
470
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 7
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "5 RELATED WORK ",
|
| 968 |
+
"text_level": 1,
|
| 969 |
+
"bbox": [
|
| 970 |
+
176,
|
| 971 |
+
491,
|
| 972 |
+
344,
|
| 973 |
+
507
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 7
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Image captioning. In the last years, neural models with visual attention mechanisms have been receiving increased interest. Several researchers have been studying diverse attention mechanisms in order to refine visual information for image captioning. Xu et al. (2015) proposed the use of hard attention, which only attends to one region at each step. However, to generate descriptive captions the model should, often, focus on more than one region. In addition, hard attention is non-differentiable, requiring imitation learning or Monte Carlo policy gradient approximations.Anderson et al. (2018) proposed bottom-up attention, using an object detection model designed to identify bounding boxes of objects, and top-down attention, selecting the relevant bounding-boxes. Wang et al. (2019) proposed an hierarchical attention network composed by a patch detector, object detector, and concept detector. Using object detection models is less demanding on the attention mechanism, since it only has to select the boxes the model should attend to. However, such models are limited by the bounding boxes position’s accuracy. Gao et al. (2019) introduced a deliberate attention network to refine the attended visual features. Yet, the attention distribution remained dense. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
174,
|
| 982 |
+
522,
|
| 983 |
+
825,
|
| 984 |
+
702
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 7
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Sparse attention. In several tasks only a few features are relevant for the current prediction. This can be attained when using sparse attention. Various prior works have proposed sparse attention mechanisms with promising results, (Xu et al., 2015; Martins & Astudillo, 2016; Malaviya et al., 2018; Peters et al., 2019). Niculae & Blondel (2017) proposed 1D fusedmax, which incorporates the fused lasso, so that adjacent words are encouraged to have the same attention weight. In this work, the authors were able to improve interpretability without sacrificing performance, obtaining superior results on textual entailment and summarization. We derive a generalized fused attention mechanism, extending 1D fusedmax. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
718,
|
| 994 |
+
825,
|
| 995 |
+
830
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 7
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "6 CONCLUSIONS AND FUTURE WORK ",
|
| 1002 |
+
"text_level": 1,
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
849,
|
| 1006 |
+
504,
|
| 1007 |
+
866
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 7
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "We propose using sparse and structured visual attention, in order to improve the process of selecting the features relevant to the caption generation. For that, we used sparsemax and introduced TVMAX. Results on the image captioning task, show that the attention mechanism is able to select better ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
176,
|
| 1016 |
+
882,
|
| 1017 |
+
823,
|
| 1018 |
+
924
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 7
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "features when using sparsemax or TVMAX. Furthermore, in the human assessment and attention analysis we see that the improved selection of the relevant features as well as the ability to group spatial features lead to the generation of better captions, while improving the model’s interpretability. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
174,
|
| 1027 |
+
103,
|
| 1028 |
+
823,
|
| 1029 |
+
146
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "In future work, TVMAX attention can be applied to other multimodal problems such as visual question answering. It can also be applied in other tasks for which we have prior knowledge of the data’s stucture, for instance graphs or trees. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
174,
|
| 1038 |
+
152,
|
| 1039 |
+
821,
|
| 1040 |
+
195
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "REFERENCES ",
|
| 1047 |
+
"text_level": 1,
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
174,
|
| 1050 |
+
217,
|
| 1051 |
+
287,
|
| 1052 |
+
232
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 8
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. SPICE: Semantic propositional image caption evaluation. In Proc. ECCV, 2016. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
173,
|
| 1061 |
+
239,
|
| 1062 |
+
823,
|
| 1063 |
+
268
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 8
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and visual question answering. In Proc. CVPR, 2018. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
176,
|
| 1072 |
+
277,
|
| 1073 |
+
823,
|
| 1074 |
+
320
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 8
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "Francis Bach, Rodolphe Jenatton, Julien Mairal, Guillaume Obozinski, et al. Optimization with sparsity-inducing penalties. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 4(1):1–106, 2012. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
173,
|
| 1083 |
+
329,
|
| 1084 |
+
821,
|
| 1085 |
+
359
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 8
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proc. ICLR, 2015. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
173,
|
| 1094 |
+
367,
|
| 1095 |
+
823,
|
| 1096 |
+
397
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 8
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Satanjeev Banerjee and Alon Lavie. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proc. ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, 2005. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
176,
|
| 1105 |
+
406,
|
| 1106 |
+
821,
|
| 1107 |
+
449
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 8
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Alvaro Barbero and Suvrit Sra. Modular proximal optimization for multidimensional total-variation ´ regularization. preprint arXiv:1411.0589, 2014. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
459,
|
| 1117 |
+
821,
|
| 1118 |
+
489
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 8
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Sergei Burtsev and Ye.P. Kuzmin. An efficient flood-filling algorithm. Computers & Graphics, 17: 549–561, 09 1993. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
174,
|
| 1127 |
+
497,
|
| 1128 |
+
823,
|
| 1129 |
+
526
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 8
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Sumit Chopra, Michael Auli, and Alexander M Rush. Abstractive sentence summarization with attentive recurrent neural networks. In Proc. NAACL-HLT, 2016. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
536,
|
| 1139 |
+
823,
|
| 1140 |
+
565
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 8
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Jan K Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, Kyunghyun Cho, and Yoshua Bengio. Attention-based models for speech recognition. In Proc. NeurIPS, 2015. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
574,
|
| 1150 |
+
823,
|
| 1151 |
+
604
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 8
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Laurent Condat. A direct algorithm for 1-d total variation denoising. IEEE Signal Processing Letters, 20(11):1054–1057, 2013. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
173,
|
| 1160 |
+
613,
|
| 1161 |
+
825,
|
| 1162 |
+
642
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 8
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "P. Laurie Davies and Arne Kovac. Local extremes, runs, strings and multiresolution. The Annals of Statistics, 29(1):1–48, 2001. ISSN 00905364. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
171,
|
| 1171 |
+
651,
|
| 1172 |
+
825,
|
| 1173 |
+
680
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 8
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Ali Farhadi, Mohsen Hejrati, Mohammad Amin Sadeghi, Peter Young, Cyrus Rashtchian, Julia Hockenmaier, and David Forsyth. Every picture tells a story: Generating sentences from images. In Proc. ECCV, 2010. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
174,
|
| 1182 |
+
689,
|
| 1183 |
+
825,
|
| 1184 |
+
732
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 8
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Jerome Friedman, Trevor Hastie, Holger Hofling, and Robert Tibshirani. Pathwise coordinate opti- ¨ mization. The Annals of Applied Statistics, 1(2):302–332, 2007. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
171,
|
| 1193 |
+
742,
|
| 1194 |
+
823,
|
| 1195 |
+
771
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 8
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Lianli Gao, Kaixuan Fan, Jingkuan Song, Xianglong Liu, Xing Xu, and Heng Tao Shen. Deliberate attention networks for image captioning. 2019. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
169,
|
| 1204 |
+
780,
|
| 1205 |
+
823,
|
| 1206 |
+
810
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 8
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. CVPR, 2016. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
171,
|
| 1215 |
+
818,
|
| 1216 |
+
821,
|
| 1217 |
+
848
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 8
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2015. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
857,
|
| 1227 |
+
821,
|
| 1228 |
+
886
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 8
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. preprint arXiv:1412.6980, 2014. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
173,
|
| 1237 |
+
895,
|
| 1238 |
+
821,
|
| 1239 |
+
922
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 8
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Girish Kulkarni, Visruth Premraj, Sagnik Dhar, Siming Li, Yejin Choi, Alexander C Berg, and Tamara L Berg. Baby talk: Understanding and generating image descriptions. In Proc. CVPR, 2011. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
176,
|
| 1248 |
+
103,
|
| 1249 |
+
825,
|
| 1250 |
+
146
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 9
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. Text Summarization Branches Out, 2004. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
171,
|
| 1259 |
+
155,
|
| 1260 |
+
823,
|
| 1261 |
+
184
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 9
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Fenglin Liu, Xuancheng Ren, Yuanxin Liu, Houfeng Wang, and Xu Sun. simNet: Stepwise imagetopic merging network for generating detailed and comprehensive image captions. Preprint arXiv:1808.08732, 2018a. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
173,
|
| 1270 |
+
193,
|
| 1271 |
+
823,
|
| 1272 |
+
234
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 9
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Xihui Liu, Hongsheng Li, Jing Shao, Dapeng Chen, and Xiaogang Wang. Show, tell and discriminate: Image captioning by self-retrieval with partially labeled data. preprint arXiv:1803.08314, 2018b. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
244,
|
| 1282 |
+
825,
|
| 1283 |
+
286
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 9
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Neural baby talk. In Proc. CVPR, 2018. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
171,
|
| 1292 |
+
295,
|
| 1293 |
+
807,
|
| 1294 |
+
311
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 9
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "Chaitanya Malaviya, Pedro Ferreira, and Andre FT Martins. Sparse and constrained attention for ´ neural machine translation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 370–376, 2018. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
174,
|
| 1303 |
+
319,
|
| 1304 |
+
825,
|
| 1305 |
+
363
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 9
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Andre Martins and Ramon Astudillo. From softmax to sparsemax: A sparse model of attention and multi-label classification. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proc. ICML, 20–22 Jun 2016. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
174,
|
| 1314 |
+
371,
|
| 1315 |
+
825,
|
| 1316 |
+
414
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 9
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "Vlad Niculae and Mathieu Blondel. A regularized framework for sparse and structured neural attention. In Proc. NeurIPS, 2017. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
174,
|
| 1325 |
+
422,
|
| 1326 |
+
823,
|
| 1327 |
+
452
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 9
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. BLEU: a method for automatic evaluation of machine translation. In Proc. ACL, 2002. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
173,
|
| 1336 |
+
460,
|
| 1337 |
+
823,
|
| 1338 |
+
489
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 9
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "Ben Peters, Vlad Niculae, and Andre FT Martins. Sparse sequence-to-sequence models. ´ In Proc. ACL, 2019. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
173,
|
| 1347 |
+
498,
|
| 1348 |
+
823,
|
| 1349 |
+
526
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 9
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "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, 2014. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
173,
|
| 1358 |
+
535,
|
| 1359 |
+
825,
|
| 1360 |
+
579
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 9
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "Robert Tibshirani, Michael Saunders, Saharon Rosset, Ji Zhu, and Keith Knight. Sparsity and smoothness via the fused lasso. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67(1):91–108, 2005. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
173,
|
| 1369 |
+
587,
|
| 1370 |
+
825,
|
| 1371 |
+
630
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 9
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proc. NeurIPS, 2017. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
171,
|
| 1380 |
+
638,
|
| 1381 |
+
823,
|
| 1382 |
+
667
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 9
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. CIDEr: Consensus-based image description evaluation. In Proc. CVPR, 2015. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
173,
|
| 1391 |
+
676,
|
| 1392 |
+
823,
|
| 1393 |
+
705
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 9
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Proc. CVPR, 2015. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
171,
|
| 1402 |
+
714,
|
| 1403 |
+
825,
|
| 1404 |
+
743
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 9
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "Weixuan Wang, Zhihong Chen, and Haifeng Hu. Hierarchical attention network for image captioning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 8957–8964, 2019. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
176,
|
| 1413 |
+
752,
|
| 1414 |
+
823,
|
| 1415 |
+
795
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 9
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Bo Xin, Yoshinobu Kawahara, Yizhou Wang, Lingjing Hu, and Wen Gao. Efficient generalized fused lasso and its applications. ACM Trans. Intell. Syst. Technol., 7(4):60:1–60:22, May 2016. ISSN 2157-6904. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
171,
|
| 1424 |
+
804,
|
| 1425 |
+
823,
|
| 1426 |
+
845
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 9
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In Proc. ICML, 2015. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
176,
|
| 1435 |
+
856,
|
| 1436 |
+
823,
|
| 1437 |
+
898
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 9
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Yaoliang Yu. On decomposing the proximal map. In Proc. NeurIPS, 2013. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
907,
|
| 1447 |
+
663,
|
| 1448 |
+
922
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 9
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "A FORWARD AND BACKWARD PASS OF 2D FUSEDMAX ATTENTION. ",
|
| 1455 |
+
"text_level": 1,
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
173,
|
| 1458 |
+
101,
|
| 1459 |
+
743,
|
| 1460 |
+
119
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 10
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "A.1 PRELIMINARIES ",
|
| 1467 |
+
"text_level": 1,
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
174,
|
| 1470 |
+
133,
|
| 1471 |
+
331,
|
| 1472 |
+
148
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 10
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "The proximal operator of a function $f \\colon { \\mathbb { R } ^ { d } } \\to { \\mathbb { R } \\cup \\{ \\infty \\} }$ is defined as ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
173,
|
| 1481 |
+
159,
|
| 1482 |
+
638,
|
| 1483 |
+
175
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 10
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "equation",
|
| 1489 |
+
"img_path": "images/40e012eb2d3be05e63dbd0726a69af53117dfed2f9bd25ce0a388a82bc90f79b.jpg",
|
| 1490 |
+
"text": "$$\n{ \\sf p r o x } _ { f } ( z ) = \\underset { { \\pmb w } \\in \\mathbb { R } ^ { d } } { \\arg \\operatorname* { m i n } } f ( z ) + \\frac { 1 } { 2 } \\| z - { \\pmb w } \\| _ { 2 } ^ { 2 } ,\n$$",
|
| 1491 |
+
"text_format": "latex",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
361,
|
| 1494 |
+
180,
|
| 1495 |
+
637,
|
| 1496 |
+
214
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 10
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "and it is guaranteed to have a unique solution, thanks to the strong convexity of the Euclidean distance. ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
174,
|
| 1505 |
+
219,
|
| 1506 |
+
823,
|
| 1507 |
+
248
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 10
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "The indicator function of a set $\\mathcal { C } \\subset \\mathbb { R } ^ { d }$ is the function ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
174,
|
| 1516 |
+
253,
|
| 1517 |
+
534,
|
| 1518 |
+
270
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 10
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "equation",
|
| 1524 |
+
"img_path": "images/3d24155670896f13a7c46bec66322ca76b540c973d2729d97ef35a9602ed2f1c.jpg",
|
| 1525 |
+
"text": "$$\n\\iota _ { \\mathcal { C } } \\colon \\mathbb { R } ^ { d } \\to \\mathbb { R } \\cup \\{ \\infty \\} , \\quad \\iota _ { \\mathcal { C } } ( \\pmb { w } ) : = \\left\\{ \\begin{array} { l l } { 0 , } & { \\pmb { w } \\in \\mathcal { C } , } \\\\ { \\infty , } & { \\pmb { w } \\notin \\mathcal { C } . } \\end{array} \\right.\n$$",
|
| 1526 |
+
"text_format": "latex",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
334,
|
| 1529 |
+
273,
|
| 1530 |
+
661,
|
| 1531 |
+
309
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 10
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "The projection onto a convex set $\\mathcal { C } \\subset \\mathbb { R } ^ { d }$ is defined as ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
173,
|
| 1540 |
+
318,
|
| 1541 |
+
539,
|
| 1542 |
+
333
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 10
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "equation",
|
| 1548 |
+
"img_path": "images/18845b4bc748453706947d1a67a6b016accb4c60186064a77391d468812ed599.jpg",
|
| 1549 |
+
"text": "$$\n\\mathsf { p r o j } _ { \\mathcal { C } } ( z ) : = \\mathop { \\arg \\operatorname* { m i n } } _ { \\pmb { w } \\in \\mathcal { C } } \\frac { 1 } { 2 } \\| z - \\pmb { w } \\| _ { 2 } ^ { 2 } = \\mathsf { p r o x } _ { \\iota _ { \\mathcal { C } } } ( z ) ,\n$$",
|
| 1550 |
+
"text_format": "latex",
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
343,
|
| 1553 |
+
338,
|
| 1554 |
+
655,
|
| 1555 |
+
371
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 10
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "text",
|
| 1561 |
+
"text": "showing that the proximal operator can be seen as a generalization of projection. ",
|
| 1562 |
+
"bbox": [
|
| 1563 |
+
176,
|
| 1564 |
+
377,
|
| 1565 |
+
702,
|
| 1566 |
+
392
|
| 1567 |
+
],
|
| 1568 |
+
"page_idx": 10
|
| 1569 |
+
},
|
| 1570 |
+
{
|
| 1571 |
+
"type": "text",
|
| 1572 |
+
"text": "The sparsemax attention mapping (Martins & Astudillo, 2016) is the projection onto the simplex, ",
|
| 1573 |
+
"bbox": [
|
| 1574 |
+
173,
|
| 1575 |
+
397,
|
| 1576 |
+
813,
|
| 1577 |
+
414
|
| 1578 |
+
],
|
| 1579 |
+
"page_idx": 10
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "equation",
|
| 1583 |
+
"img_path": "images/7e661d73e19342a25768d02fec3b52402991d38f91bd506720b1dae5d51ed11c.jpg",
|
| 1584 |
+
"text": "$$\n{ \\mathsf { s p a r s e m a x } } ( z ) : = { \\mathsf { p r o j } } _ { \\triangle } ( z ) = \\operatorname * { a r g m i n } _ { p \\in { \\triangle } } { \\frac { 1 } { 2 } } \\| p - z \\| ^ { 2 } .\n$$",
|
| 1585 |
+
"text_format": "latex",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
328,
|
| 1588 |
+
419,
|
| 1589 |
+
669,
|
| 1590 |
+
454
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 10
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "A necessary component for using sparsemax for attention is its Jacobian, the matrix of its partial derivatives $\\begin{array} { r } { ( J _ { \\mathsf { s p a r s e m a x } } ) _ { i , j } = \\frac { \\partial \\mathsf { s p a r s e m a x } ( z ) _ { i } } { \\partial z _ { j } } } \\end{array}$ ∂ sparsemax(z)i . Martins & Astudillo (2016) derive its expression ",
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
176,
|
| 1599 |
+
465,
|
| 1600 |
+
826,
|
| 1601 |
+
502
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 10
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "equation",
|
| 1607 |
+
"img_path": "images/8cee7bb4d95045756a63901f1abfda8affadcc15e3c2ecd98ca977bf7bcd82ed.jpg",
|
| 1608 |
+
"text": "$$\n\\boldsymbol { J } _ { \\mathsf { s p a r s e m a x } } ( z ) = \\mathsf { d i a g } s - \\frac { 1 } { \\| s \\| _ { 1 } } \\pmb { s } \\pmb { s } ^ { \\top } ,\n$$",
|
| 1609 |
+
"text_format": "latex",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
377,
|
| 1612 |
+
507,
|
| 1613 |
+
619,
|
| 1614 |
+
541
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 10
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "where $s _ { j } = 1$ if sparsemax $( z ) _ { j } > 0$ and $s _ { j } = 0$ otherwise. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
173,
|
| 1623 |
+
546,
|
| 1624 |
+
557,
|
| 1625 |
+
563
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 10
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "A.2 PROOF OF PROPOSITION 1 ",
|
| 1632 |
+
"text_level": 1,
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
176,
|
| 1635 |
+
577,
|
| 1636 |
+
400,
|
| 1637 |
+
593
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 10
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "Proof. This result is a slight extension of Proposition 2 in Niculae & Blondel (2017), and also follows from Corrolary 4 of Yu (2013), by taking $f = \\iota _ { \\triangle }$ , and noting that $\\iota \\triangle$ is symmetric: if $p \\in \\triangle$ , then any vector $\\pmb { p } ^ { \\prime }$ obtained by permuting $\\pmb { p }$ is also in $\\triangle$ , because its values remain nonnegative and sum to 1. □ ",
|
| 1644 |
+
"bbox": [
|
| 1645 |
+
173,
|
| 1646 |
+
603,
|
| 1647 |
+
826,
|
| 1648 |
+
660
|
| 1649 |
+
],
|
| 1650 |
+
"page_idx": 10
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"type": "text",
|
| 1654 |
+
"text": "A.3 PROOF OF PROPOSITION 2 ",
|
| 1655 |
+
"text_level": 1,
|
| 1656 |
+
"bbox": [
|
| 1657 |
+
176,
|
| 1658 |
+
676,
|
| 1659 |
+
400,
|
| 1660 |
+
691
|
| 1661 |
+
],
|
| 1662 |
+
"page_idx": 10
|
| 1663 |
+
},
|
| 1664 |
+
{
|
| 1665 |
+
"type": "text",
|
| 1666 |
+
"text": "Let $\\boldsymbol { w } ^ { \\star } : = \\mathsf { p r o x } _ { \\lambda \\Omega _ { E } }$ , and denote by $G _ { i }$ the set of indices fused to $w _ { i }$ in the solution. Define $s _ { i j } =$ $\\mathsf { s i g n } ( w _ { i } ^ { \\star } - w _ { j } ^ { \\star } )$ . ",
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
173,
|
| 1669 |
+
702,
|
| 1670 |
+
823,
|
| 1671 |
+
733
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 10
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "text",
|
| 1677 |
+
"text": "Proof. The subgradient optimality conditions of Eq. 4 are: (Friedman et al., 2007) ",
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
173,
|
| 1680 |
+
746,
|
| 1681 |
+
714,
|
| 1682 |
+
762
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 10
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "equation",
|
| 1688 |
+
"img_path": "images/764a8471958cf047036a7ac3893492b80bdc4b97fd5be2aee0180bed53de94db.jpg",
|
| 1689 |
+
"text": "$$\nw _ { i } ^ { \\star } - z _ { i } + \\sum _ { k : i \\sim k } \\lambda t _ { i k } - \\sum _ { k : k \\sim i } \\lambda t _ { k i } = 0 , \\quad \\quad 1 \\leq i \\leq d .\n$$",
|
| 1690 |
+
"text_format": "latex",
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
316,
|
| 1693 |
+
777,
|
| 1694 |
+
681,
|
| 1695 |
+
810
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 10
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "where $t _ { i j } = \\mathsf { s i g n } ( w _ { i } ^ { \\star } - w _ { j } ^ { \\star } )$ if $w _ { i } ^ { \\star } \\neq w _ { j } ^ { \\star }$ , otherwise $t _ { i j }$ is a free variable in $[ - 1 , 1 ]$ . ",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
173,
|
| 1704 |
+
813,
|
| 1705 |
+
710,
|
| 1706 |
+
830
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 10
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "text",
|
| 1712 |
+
"text": "We focus on a single group $G = G _ { i }$ , dropping the index $i$ for brevity. Within a fused group, the solution is constant, i.e., $w _ { j } ^ { \\star } = w$ for $j \\in G$ . We separate the sums in Eq. 16 according to whether $k \\in G$ or not, and move the “constant” terms to the right hand side, yielding the system ",
|
| 1713 |
+
"bbox": [
|
| 1714 |
+
174,
|
| 1715 |
+
835,
|
| 1716 |
+
825,
|
| 1717 |
+
878
|
| 1718 |
+
],
|
| 1719 |
+
"page_idx": 10
|
| 1720 |
+
},
|
| 1721 |
+
{
|
| 1722 |
+
"type": "equation",
|
| 1723 |
+
"img_path": "images/1bbf79106246f6e8eeced9f55319bfaa92f27b4a2b55188eecad487e66582f02.jpg",
|
| 1724 |
+
"text": "$$\nw + \\sum _ { j \\sim k } \\lambda t _ { j k } - \\sum _ { k \\sim j \\atop k \\in G } \\lambda t _ { k j } = z _ { j } + \\sum _ { \\stackrel { k \\sim j } { k \\notin G } } \\lambda s _ { k j } - \\sum _ { j \\sim k } \\lambda s _ { j k } , \\qquad j \\in G .\n$$",
|
| 1725 |
+
"text_format": "latex",
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
271,
|
| 1728 |
+
882,
|
| 1729 |
+
725,
|
| 1730 |
+
928
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 10
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "Summing up the Eq. 17 over all $j \\in G$ , we observe that for any $k \\in G$ , the term $\\lambda t _ { j k }$ appears twice with opposite signs. Thus, ",
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
173,
|
| 1739 |
+
102,
|
| 1740 |
+
823,
|
| 1741 |
+
133
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 11
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "equation",
|
| 1747 |
+
"img_path": "images/62de83a721975b3ee86862544ea995947d8d801b9fab281f76e4807dfdbd6ab2.jpg",
|
| 1748 |
+
"text": "$$\n\\sum _ { j \\in G } w = \\sum _ { j \\in G } \\left( z _ { j } + \\sum _ { \\stackrel { k \\sim j } { k \\notin G } } \\lambda s _ { k j } - \\sum _ { j \\stackrel { \\sim k } { k \\notin G } } \\lambda s _ { j k } \\right) .\n$$",
|
| 1749 |
+
"text_format": "latex",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
346,
|
| 1752 |
+
137,
|
| 1753 |
+
651,
|
| 1754 |
+
204
|
| 1755 |
+
],
|
| 1756 |
+
"page_idx": 11
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"type": "text",
|
| 1760 |
+
"text": "Dividing by $| G |$ gives exactly Eq. 8. This reasoning applies to any group $G _ { i }$ ",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
173,
|
| 1763 |
+
210,
|
| 1764 |
+
674,
|
| 1765 |
+
226
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 11
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "text",
|
| 1771 |
+
"text": "B HUMAN EVALUATION DESCRIPTION ",
|
| 1772 |
+
"text_level": 1,
|
| 1773 |
+
"bbox": [
|
| 1774 |
+
174,
|
| 1775 |
+
246,
|
| 1776 |
+
506,
|
| 1777 |
+
261
|
| 1778 |
+
],
|
| 1779 |
+
"page_idx": 11
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "text",
|
| 1783 |
+
"text": "To perform the human evaluation firstly 100 images were randomly selected from the test set of the MSCOCO dataset (using the split proposed by Karpathy & Fei-Fei (2015)). For each of the selected images, the human evaluators selected a score from 1 to 5 for the captions generated by the models using softmax attention, sparsemax attention, and TVMAX attention. They were also asked to evaluate whether the models attend to the relevant regions of the image when generating a certain word. For that they observed the attention plots corresponding to the non stop words of the caption of each of the models. While in Figures 1 and 3, 4, and 5 we emphasized sparsity with a hard white mask, for the human evaluation the sparse regions of the attention plots were simply fully transparent, to avoid biasing the evaluators. The possible scores were also between 1 and 5. The 100 images were judged by 6 persons both for the captions evaluation and attention evaluation. The order of the captions and attention plots was randomly chosen for each image. ",
|
| 1784 |
+
"bbox": [
|
| 1785 |
+
173,
|
| 1786 |
+
276,
|
| 1787 |
+
825,
|
| 1788 |
+
429
|
| 1789 |
+
],
|
| 1790 |
+
"page_idx": 11
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "text",
|
| 1794 |
+
"text": "With these scores, we computed the mean of the captions evaluation scores and the mean of the attention relevance evaluation scores. The results are reported in Table 2. ",
|
| 1795 |
+
"bbox": [
|
| 1796 |
+
173,
|
| 1797 |
+
436,
|
| 1798 |
+
823,
|
| 1799 |
+
465
|
| 1800 |
+
],
|
| 1801 |
+
"page_idx": 11
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"type": "text",
|
| 1805 |
+
"text": "C ADDITIONAL ATTENTION VISUALIZATION ",
|
| 1806 |
+
"text_level": 1,
|
| 1807 |
+
"bbox": [
|
| 1808 |
+
174,
|
| 1809 |
+
486,
|
| 1810 |
+
562,
|
| 1811 |
+
501
|
| 1812 |
+
],
|
| 1813 |
+
"page_idx": 11
|
| 1814 |
+
},
|
| 1815 |
+
{
|
| 1816 |
+
"type": "image",
|
| 1817 |
+
"img_path": "images/55fe3f71d6594beb180beb9dcdbf6de0facac18317739482992ae722e854974c.jpg",
|
| 1818 |
+
"image_caption": [
|
| 1819 |
+
"Figure 4: Example generated captions using softmax attention (top), sparsemax attention (middle) and TVMAX attention (bottom). The captions are “A bowl of fruit and a bowl of fruit”, “A bowl of fruit and oranges on a table” and “A bowl of oranges and a banana on a table”. "
|
| 1820 |
+
],
|
| 1821 |
+
"image_footnote": [],
|
| 1822 |
+
"bbox": [
|
| 1823 |
+
176,
|
| 1824 |
+
520,
|
| 1825 |
+
823,
|
| 1826 |
+
664
|
| 1827 |
+
],
|
| 1828 |
+
"page_idx": 11
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"type": "image",
|
| 1832 |
+
"img_path": "images/2dfa42c0aeb73323465d313c7d5d26e5bd7532f94f492775f4191ce42f005ec3.jpg",
|
| 1833 |
+
"image_caption": [
|
| 1834 |
+
"Figure 5: Example generated captions using softmax attention (top), sparsemax attention (middle) and TVMAX attention (bottom). The captions are “A soccer player is running to the base”, “A soccer player is running to the field” and “A group of people playing soccer on a field”. "
|
| 1835 |
+
],
|
| 1836 |
+
"image_footnote": [],
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
176,
|
| 1839 |
+
404,
|
| 1840 |
+
823,
|
| 1841 |
+
556
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 12
|
| 1844 |
+
}
|
| 1845 |
+
]
|
parse/train/r1e8WTEYPB/r1e8WTEYPB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1e8WTEYPB/r1e8WTEYPB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|