ZHANGYUXUAN-zR commited on
Commit
45461e0
·
verified ·
1 Parent(s): 7aea918

Add files using upload-large-folder tool

Browse files
parse/dev/3uwj8QZROL/3uwj8QZROL.md ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Scaling Up and Distilling Down: Language-Guided Robot Skill Acquisition
2
+
3
+ Huy $\mathrm { H a } ^ { 1 }$ , Pete Florence2, and Shuran Song1
4
+
5
+ 1Columbia University
6
+ 2Google DeepMind
7
+
8
+ Abstract: We present a framework for robot skill acquisition, which 1) efficiently scale up data generation of language-labelled robot data and 2) effectively distills this data down into a robust multi-task language-conditioned visuo-motor policy. For (1), we use a large language model (LLM) to guide high-level planning, and sampling-based robot planners (e.g. motion or grasp samplers) for generating diverse and rich manipulation trajectories. To robustify this data-collection process, the LLM also infers a code-snippet for the success condition of each task, simultaneously enabling the data-collection process to detect failure and retry as well as the automatic labeling of trajectories with success/failure. For (2), we extend the diffusion policy single-task behavior-cloning approach to multi-task settings with language conditioning. Finally, we propose a new multi-task benchmark with 18 tasks across five domains to test long-horizon behavior, common-sense reasoning, tool-use, and intuitive physics. We find that our distilled policy successfully learned the robust retrying behavior in its data collection procedure, while improving absolute success rates by $3 \mathrm { { \bar { 3 } } . 2 \mathrm { { \bar { \% } } } }$ on average across five domains. All code, data, and qualitative policy results are available at our project website.
9
+
10
+ ![](images/2a01ee3c09f480b88ac8375b319968f15d3d2a0a747b2937e52ed97ed42cfdf5.jpg)
11
+ Figure 1: Language-guided Skill Acquisition enables scalable robot learning. In the data generation stage, a LLM takes as input task descriptions (a) and uses sampling-based robotic planners and privileged simulation information (b) to perform task-directed exploration. This enables the scaling up of language and task-success labeled dataset generation (c). In the second stage, the dataset is filtered for success and distilled down into a closed-loop language-conditioned visuomotor policy for real world deployment (d).
12
+
13
+ # 1 Introduction
14
+
15
+ How can we scalably acquire robust, reusable, real-world manipulation skills? This question has been the driving force behind extensive research in robot learning. Attempts in the field have focused on two primary aspects: First, how to scale up the data collection for a diverse range of manipulation skills, which involves efforts such as improving the hardware [1, 2] and software [3, 4] which support demonstration collection, utilization of non-robotics datasets [5, 6], or trial-and-error explorations [7]. The second aspect of this question concerns effective learning from the collected data, which delves into exploring effective action representations [8–10] and policy formulations [11, 12] that can robustly model the training data and generalize to novel scenarios.
16
+
17
+ This paper proposes a new framework that provides a comprehensive solution for both aspects by leveraging language guidance, while using no expert demonstrations or reward specification/engineering. We contribute two key components with our framework:
18
+
19
+ • Scaling Up Language-Guided Data Generation: Our data-collection policy is a large language model (LLM) which has access to a suite of 6DoF exploration primitives (i.e., sampling-based robot planners and utilities). Given an input task description, this policy first simplifies the task by recursively decomposing it into subtasks, resulting in a hierarchical plan (i.e., task tree). Next, this plan is grounded into a sequence of 6DoF exploration primitives, which generates diverse robot trajectories for the task. Finally, the data collection policy verifies the trajectories’ success with an inferred success function and retries the task until it succeeds. This verify & retry step not only improves the data-collection policy’s success, but also adds robot experience on how to recover from failure, an important trait for downstream policy distillation. This data generation approach is scalable, enabling significantly more efficient autonomous task-directed exploration than unguided alternatives (i.e., reinforcement learning) while not being limited by the lack of low-level understanding of the LLM-only solution.
20
+
21
+ • Distilling Down to Language-Conditioned Visuomotor Policy: We distill these robot experiences into a visuo-linguo-motor policy that infers control sequences from visual observations and a natural language task description. To enable effective learning of high entropy, diverse robot trajectories, we extend the diffusion policy [12] to handle language-based conditioning for multi-task learning. This allows the learned policy to be reused and recomposed through language-based planners. We found that our distilled policy successfully learned the robust retrying behavior from its data collection policy, while improving upon its absolute success rate across five domains by $3 3 . 2 \%$ . Further, we demonstrate that our policy directly transfers to the real-world without fine-tuning using domain randomization.
22
+
23
+ Our framework combines these two components to get the best of both worlds – leverage LLM’s common-sense reasoning abilities for efficient exploration while learning robust and re-usable 6DoF skills for real-world deployment. In summary, the key contribution of this paper is a new framework for visuo-linguo-motor policy learning that is enabled by three novel components:
24
+
25
+ • A new language-guided data collection framework that combines language-based task planner with 6DoF robot utilities (e.g. motion planning, grasp sampling).
26
+ • New formulation of diffusion-based policy that effectively learns multi-task language-conditioned closed-loop control policies.
27
+ • In addition to our algorithmic contributions, we also contribute a new multi-task benchmark that includes 18 tasks across five domains, requiring long-horizon $\approx 8 0 0$ control cycles), common sense, tool-use, and intuitive physics understanding – capabilities lacking in existing manipulation benchmarks.
28
+
29
+ # 2 Related Works
30
+
31
+ Scaling visuo-linguo-motor data. In learning vision-and-language-conditioned motor policies for real-world deployment [9, 10, 13–18], one of the most important questions is how to scale up “robot-complete data” – data that has robot sensory inputs (e.g. vision), action labels (e.g. target end-effector & gripper commands), and task labels (e.g. language description, success). The most prevalent paradigm is to use humans to annotate both actions (e.g. teleoperation) and language [9, 10, 13–18]. When providing action labels, humans can either provide task-specific [9, 10, 15, 18], or task-agnostic (“play”) data [13, 14, 16, 19]. A primary limitation, however, is that data scalability is human-limited.
32
+
33
+ Other prior works have proposed strategies to enable more-autonomously-scalable data. To scale language annotation, prior works study using visual-language models [20, 21], or procedurally post-hoc provided in simulation [19]. To scale action labels, methods study how to use autonomous sub-optimal policies from random [7] to learned [22] policies. Human egocentric videos [6, 23, 24] has also been shown to be relevant to robot learning [5, 25], but is not robot-complete (lacks action labels), and requires cross-embodiment transfer. Towards unsupervised exploration, prior works have also investigated evolving environments [26, 27] and embodiments [28], automatic task generation [29], leveraging language guidance [30, 31] and world-model error [32], but have not been demonstrated to scale to 6 DoF robotic skill learning. While these approaches reduce human efforts, they are still limited in optimality, generality, and/or completeness of robot data labels.
34
+
35
+ Another option for the autonomous data collection policy is to use a model-based policy, e.g. task and motion planning (TAMP) [33]. Our approach extends such methods in terms of flexibility and task generality by leveraging LLM’s common-sense knowledge. However, in contrast to recent works which use LLMs as the final policy [34–40], we use the LLM-based planner as a suboptimal data-collection policy. We then distill only successful trajectories into an observable-information [41–43] policy, allowing the distilled policy to improve upon its LLM data collection policy’s performance.
36
+
37
+ Policy Representations and Multi-task Policy Distillation. One primary question in visuo-motor learning [44] has been how to represent the policy for effective learning, i.e. to enable high precision, multi-modal robot behavior [2, 11, 12, 45, 46]. Another related question has been how to best train multi-task policies [47, 48], including those conditioned on language [9, 10, 13, 15, 16, 18]. Our work presents the novel formulation of bringing diffusion-based [49, 50] policies [12] into the language-conditioned [51, 52] visuomotor domain. Additionally, prior works in multi-task language-conditioning typically focus on cloning policies from experts, meanwhile we study distilling data from a success-filtered suboptimal policy. Success-filtering [11, 53] can be viewed as the simplest form of offline RL [54].
38
+
39
+ ![](images/30b00f83487263cbecc9212528670563a1ad3f986a7739c3026049373ee3b1f0.jpg)
40
+ Figure 2: Benchmark. We validate our approach on a new multi-task benchmark addressing challenging long-horizon tasks (i.e., 800 control cycles) requiring language understanding (e.g., put [object] to [top] drawer), common sense knowledge (e.g., send a package for return requires raising the mailbox flag), tool-use (e.g., catapult), and intuitive physics (e.g., balance the bus). The tasks are best viewed on our our project website.
41
+
42
+ # 3 Approach
43
+
44
+ We propose a new framework for robot learning that performs automatic data collection and policy learning from only a task description. Our design is grounded on four key observations:
45
+
46
+ • We recognize the importance of random exploration in reinforcement learning, but aim to not be constrained by its inefficiency for long-horizon, sparse reward tasks.
47
+ • We acknowledge the usefulness of LLM’s common-sense and zero-shot capabilities, but believe language is not by itself the ideal representation for robust, rich, and precise robotic manipulation.
48
+ • We are inspired by the effectiveness of robotic planning methods, e.g. TAMP, but wish to be flexible to novel tasks and domains and non-reliant on ground truth state during policy inference.
49
+ • We aim to achieve the simplicity and effectiveness of behavior cloning in distilling collected robot experience into a policy for real-world deployment, while side-stepping the requirement for costly human demonstrations or play data collection.
50
+
51
+ Using no human demonstration or manually specified reward, our framework combines the strengths of these four areas into a unified framework for both efficient task-directed exploration and multi-task visuo-linguo-motor policy learning.
52
+
53
+ Method Overview. In the data generation phase, we use an LLM to recursively decompose (§3.1) tasks into a hierachical plan (i.e., task tree) for exploration and ground the plan into sampling-based robot utilities and motion primitives (§3.2). Next, the LLM infers success-detection functions for each task in the plan (§3.3), providing success-labeling. This autonomous data generation process outputs a replay buffer of task-directed exploration experience, labeled with language descriptions and success labels. In the training phase (§3.4), we filter this data for success according to the LLM inferred success condition and distill it into a multi-task vision-and-language-conditioned diffusion policy [12].
54
+
55
+ # 3.1 Simplify: Task Planning and Decomposition
56
+
57
+ Given a task description, the first step is to generate a high-level task plan. To improve the flexibility to work with any tasks and 3D assets, we opted for an LLM-based planner to leverage their common-sense and zero-shot reasoning skills. Unlike classical TAMP planners, our framework does not require domain-specific engineering and transition function design to work with new tasks.
58
+
59
+ Concretely, our recursive LLM planner takes as input the task description, the simulation state, and outputs a plan in the form of a task tree (Fig. 3a). To do so, the LLM first checks whether the task description involves the robot interacting with multiple or only one object. For instance, “move the package into the mailbox” involves opening the mailbox before picking up the package and putting the mailbox in, and should be considered a multi-object task. Meanwhile, “with the mailbox opened, move the package into the mailbox” should be a single-object task. For the base case of single-object tasks, we prompt the LLM to which object part name to to interact. For the case of multi-object tasks, we prompt the LLM to decompose the task into subtasks, and recurse down each subtask.
60
+
61
+ ![](images/8b84c8bcafb3c5523a3a5292076f5a24e44c545a54376ab9b4b74b865087bd27.jpg)
62
+ Figure 3: Language-Driven Robot Data Generation takes as input the task description and simulation state, and outputs a replay buffer, labelled with language descriptions and success. It starts by using an LLM to simplify tasks recursively (a) until the task involves only one object, resulting in a hierarchical exploration plan. Next, the plan is grounded (b) into a sequence of 6 DOF exploration primitives (e.g. grasp samplers, motion planners, etc.) and rolled out in simulation to give an unlabelled robot trajectory. Finally, an LLM infers a success function code-snippet, and uses it to verify (c) and label it with succeeded or failed. If the trajectory failed, the LLM retries the exploration plan with a different random seed (e.g. a different grasp pose from the grasp sampler). If the robot succeeds or run out of time, the labeled trajectory is returned.
63
+
64
+ # 3.2 Ground: Compiling a Plan into Robot Utilities
65
+
66
+ With the generated task tree $\ S 3 . 1$ , the next step is to ground the high-level plan into physical actions. Here, the choice of the low-level robot $A P I$ critically defines the system’s capability and, therefore, becomes a key differentiating factor between different systems. In principle, there are three desired properties we want to see in the action space design:
67
+
68
+ • Flexibility. Planar actions [10, 37] aren’t flexible enough to manipulate prismatic and revolute joints.
69
+ • Scalable. Namely, actions should not require human demonstrations to acquire [9, 10, 13–16, 35].
70
+ • Language-friendly. While joint sequences can encode any action, it is not language-friendly.
71
+
72
+ We propose to ground the LLM’s plan with API calls into a set of robot utility functions, which include a sampling-based motion planner, a geometry-based grasp and placement sampler, and motion primitives for articulated manipulation. We refer to these utilities as 6 DOF Exploration Primitives (Fig 3b) because, by virtue of being pseudo-random, the sampling-based utilities generate diverse robot trajectories, enabling effective exploration for rich 6 DoF manipulation settings. For instance, our grasp and placement samplers samples uniformly amongst all points in the object part’s point cloud to find good grasps and placements poses, respectively, which are used as input into a rapidly-exploring random trees [55] motion planner that samples uniformly in joint space. This results in diverse grasps, placements, and motion trajectories connecting grasps and placements.
73
+
74
+ For each leaf node in the inferred task tree (§ 3.1), the grounding process takes as input the node’s task description (e.g. “open the mailbox”), its associated object part name (e.g. “mailbox lid”), and the simulation state, and outputs a sequence of 6 DoF Exploration Primitive API calls. Using the object part name, we can parse the object’s kinematic structure from the simulation state and handle articulated and non-articulated (i.e., rigid, deformable) objects separately. For non-articulated objects, the LLM is prompted to choose the pick & place object names, used to sample grasp and placement pose candidates. For articulated objects (with either revolute or prismatic joints), the leaf node’s associated object part name is used to sample a grasp candidate followed by a rotation or translation primitive conditioned on its joint parameters (i.e., joint type, axis, and origin).
75
+
76
+ Exploration Plan Rollout. Each node in the exploration plan is grounded only when it is being executed, where the order of execution follows a pre-order tree traversal. By keeping track of the subtask’s state, sub-segments of robot trajectory can be labelled with the subtask’s description, thereby providing dense and automatic text labels for the trajectory. For instance, all actions taken during the inferred subtask “open the mailbox” can be labeled with both the subtask’s description “open the mailbox” and the root task description “move the package into the mailbox”.
77
+
78
+ Since grounding happens only when a task node is visited, each node’s grounding process is independent of the other leaf nodes, depending only on the simulation state when it is evaluated. While this simplifies planning significantly, it also means that failed execution can occur. For instance, a grasp candidate may render all placement candidates infeasible.
79
+
80
+ # 3.3 Verify & Retry: Robustifying the Data Collection Policy
81
+
82
+ Recall, the planning and grounding step can fail, especially when we consider long-horizon tasks. To address this, we propose a verify & retry (Fig. 3c) scheme, which uses environment feedback to detect failed execution.
83
+
84
+ Verify. For each task, the LLM infers a success function code snippet given the task description, simulation state, and API functions to for query simulation state (e.g., checking contact or joint values, etc). This amounts to prompting the LLM to complete a task success function definition that outputs a boolean value, indicating task success. For instance, given the task “raise the mailbox flag”, the LLM’s inferred code snippet should check whether the mailbox’s flag hinge is raised (Fig. 3c, highlighted green).
85
+
86
+ Retry. When a trajectory is labeled failed, the robot retries the same sequence of robot utilities with a different random seed (i.e., for the sampling-based robotic utilities) without resetting the simulation state until the task succeeds. For instance, in the bus balance task (Fig. 2, top left), the robot would repeatedly try different grasp and place candidates until the bus is balanced. In the tree traversal process $\ S 3 . 2$ , nodes only yield execution to its parent task when the node’s inferred success condition returns true. This design not only leads to higher success rates in data generation but also provides useful demonstrations on how to recover from failure. In the output replay buffer, the only failed trajectories are ones which timed-out or led to invalid states (e.g. object dropped on the floor).
87
+
88
+ # 3.4 Language-conditioned Policy Distillation
89
+
90
+ We extend diffusion policy [12], a state-of-the-art approach for single-task behavior cloning, to the multitask domain by adding language-conditioning. This policy takes as input a task description CLIP [56] feature, proprioception history, and visual observations, and outputs a sequence of end effector control commands. Following Robomimic [4]’s findings, we use a wrist-mounted view in addition to a global (workspace) view to help with tasks requiring precise manipulation. We use their ResNet18-based [57] vision encoders, one for each view. We found that
91
+
92
+ ![](images/f63bc4948ea74ccafeed52fb6956ad8708828d0027d13f9da9fa68a447de7324.jpg)
93
+ Figure 4: Language-Conditioned Policy Distillation. The policy takes as input a task description, two RGB camera views, and gripper proprioception data, and outputs a sequence of gripper poses and closing command.
94
+
95
+ using only the latest visual observation along with the full observation horizon of proprioception maintains the policy’s high performance while reducing training time. When used in conjunction with the DDIM [58] noise scheduler, we found that we could use a $1 0 \times$ shorter diffusion process at inference (5 timesteps at inference, 50 timesteps at training) while retaining a comparable performance. Quantitatively, when using a 10 dimensional action space\*, our policy can be run at ${ \approx } 3 5 H z$ on an NVIDIA RTX3080.
96
+
97
+ # 4 Evaluation
98
+
99
+ Our experiments try to validate two questions: 1) Can our data generation approach efficiently perform task-directed exploration? 2) Can our policy learning approach effectively distill a multi-modal, multi-task dataset into a generalizable and robust visuo-linguo-motor policy?
100
+
101
+ Table 1: Benchmark Suite.
102
+
103
+ <table><tr><td>Domain</td><td>Complex Artic- Common Tool Multi- Long geometry ulation</td><td></td><td>1sense </td><td></td><td>use task horizon</td><td></td></tr><tr><td>Balance</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Catapult</td><td>xx</td><td>×</td><td>×</td><td>×</td><td>×</td><td>xxx</td></tr><tr><td>Transport</td><td></td><td>×</td><td>×</td><td>×</td><td>X</td><td></td></tr><tr><td>Mailbox</td><td></td><td></td><td></td><td>X</td><td>X</td><td></td></tr><tr><td>Drawer</td><td></td><td></td><td>X</td><td>X</td><td></td><td></td></tr></table>
104
+
105
+ Our Benchmark contains 18 tasks across 5 domains (Fig. 2 Tab. 1), with the following properties:
106
+
107
+ • 6DoF & articulated manipulation, for deadling with complex object geometry and articulation.
108
+ • Geometry Generalization. In our bin transport domain, the robot must generalize its bin transport skill to unseen object instances, with novel shapes, sizes, and colors.
109
+ • Intuitive physics. Robots should understand the physical properties of the world and use this knowledge to perform tasks. In the bus balance domain, the robot needs to learn the precise grasping and placement to balance a large bus toy on a small block. In the catapult domain, where the block is placed along a catapult arm determines how far the block will be launched, and, thus, which bin (if any) the block will land in.
110
+ • Common-sense reasoning & Tool-use. Natural language task description is user-friendly but often under-specifies the task. Common-sense can help to fill in the gaps. In the mailbox domain, given the task “send the package for return”, the robot should understand that it not only needs put the package inside, but also raise the mailbox flag to indicate that the package is ready for pickup. In the catapult domain, the robot needs to understand that pressing the catapult’s button will activate the catapult, and that the block needs to be placed on the catapult arm to be launched.
111
+
112
+ ![](images/22c7522a90c85b5b94f32cb97df5872220f10ae2c946c31d19d6e3eb392b4902.jpg)
113
+ Figure 5: High Entropy yet Precise Language-Guided Action Sequences. Running the pseudorandom languageconditioned diffusion process with different seeds on the same observations yields language-consistent (a-c, different colors for different task descriptions), high entropy actions when possible (a-f, object grasping, transports, & placements) and precise actions when necessary (d, narrow mailbox with large package). Further, domain randomization enables a simulation trained policy (e) to generalize to the real world (f).
114
+
115
+ • Multi-task conditioning. Given the same visual observations but different task description, the robot should perform different and task-relevant actions. The catapult domain has 3 tasks for three target bins, and the drawer domain has 12 tasks.
116
+
117
+ • Long horizon behaviour. Our longest horizon domain, mailbox, takes at least 4 subtasks to complete (open the mailbox, put the package in the mailbox while its opened, close the mailbox, then raise the mailbox flag) which can require up to 800 control cycles. In the drawer domain, the robot needs to open the drawer, move the object into the drawer, then close it, which takes about 300 control cycles.
118
+
119
+ The benchmark is built on top of the MuJoCo [3] simulator, using assets from the Google Scanned dataset [59, 60]. We use a table-top manipulation set-up with a 6DoF robot arm. The task success in evaluation is a manually designed function, instead of LLM generated function used for data collection.
120
+
121
+ Metrics. We report the success rates $( \% )$ averaged over 200 episodes in Table 2, a task completion efficiency plot in Fig. 6, and qualitative results in Fig. 5. If a domain has multiple tasks then we report the average performance of all tasks. We also compare different LLMs in Table 4 (10 samples per task) and investigate the sources of error in our system for the mailbox domain in Table 3 (200 trials per execution).
122
+
123
+ Data Generation Baselines. Code-as-Policy [37] is a state-of-the-art approach for using an LLM directly as a robot policy by making state (e.g. query present objects) and action primitive API calls to a robot. Given an LLM-inferred code string, they execute the snippet in an open-loop fashion. Crucially, in their table top manipulation setting, they assume access to planar action primitives. Thus, we introduce the following baselines, which build on top of Code-as-Policy and each other as follows:
124
+
125
+ • LLM-as-Policy (2D): Similar to code-as-policy using planar pick-and-place, but we use ground truth object segmentation instead of their off-the-shelf object detectors [61, 62].
126
+ • $( + )$ 6 DOF robot utils: Builds on top of the previous baseline by adding access to 6 DOF robot utilities for grasping, placement, motion planning, and articulated manipulation.
127
+ • $( + )$ Verify & Retry: Adding to the previous baselines, this baseline uses the LLM’s predicted success condition to label trajectories and retry failed ones. Since the robot utilities involve pseudo-random samplers (e.g. RRT, grasp sampling), retrying the task means running these samplers again using the pseudo-random state and environment state from where failed trajectory left it. Since we use this approach as our data generation policy, it also serves as an ablation of our approach.
128
+
129
+ Policy Distillation Ablations. We compare against BC-Z [15]’s single-task policies which does not use FiLM conditioning (used in their bin emptying and door opening tasks). To understand the effects of our policy learning design decisions in the single-task regime, we fix training time and dataset size (2 days using at least 500 successful trajectories), and provide the following ablations:
130
+
131
+ • Action Generation: Instead of using diffusion processes conditioned on the policy input embedding to decode actions, it is typical use multi-layer perceptrons. Following Jang et al. [15], we use one MLP with two hidden layers and ReLU activations for end effector position, one for the orientation, and another for gripper command. This standard policy architecture is deterministic, and is trained with mean-squared error loss for pose and binary cross entropy loss for gripper command.
132
+
133
+ • Action Space: Besides our absolute end effector pose action space, Delta-Action and velocity control spaces is another popular action space choice [4, 15, 63–65]. We also ablate BC-Z’s execution action horizon (Exec) while keeping their original prediction horizon (Pred).
134
+
135
+ • Observation Encoder: All approaches encode images using a ResNet18 [57] architecture. Although the original architecture was designed with an average pooling layer, its typical for robotic policies to use a spatial softmax pooling [44] layer instead.
136
+
137
+ • Data usage: No-Retry trains on successful trajectories generated from the data generation approach without Verify & Retry, so it does not observe any recovery behavior.
138
+
139
+ # 4.1 Data Collection Policy Evaluation
140
+
141
+ 6DoF exploration is critical. First, we verify different approach’s ability to perform and explore in 6DoF, which is crucial for general manipulation. When 6DoF exploration is introduced, we first observe a drop in the average success rate for simple tasks that could be accomplished with planar actions (Balance, Transport, Tab. 2). However, this ability is critical for exploring complex tasks, providing data to improve upon in the
142
+
143
+ <table><tr><td rowspan="2">Approach</td><td colspan="3">Planar</td><td colspan="2">6DoF</td><td rowspan="2">Average</td></tr><tr><td>Balance Catapult Transport Mailbox Drawer</td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="2">LLM-as-Policy (2D) (+) 6DoF Robot Utils (+) Verify &amp;Retry</td><td>28.0</td><td>33.3</td><td>21.5</td><td>0.0</td><td>0.0</td><td>27.6</td></tr><tr><td>5.5 45.0</td><td>2.5</td><td>35.0</td><td>0.0</td><td>1.3</td><td>8.8</td></tr><tr><td rowspan="2">Distill No Retry</td><td></td><td>7.3</td><td>82.0</td><td>3.0</td><td>31.8</td><td>33.8</td></tr><tr><td>67.5</td><td>38.5</td><td>32.5</td><td>0.0</td><td>22.7</td><td>32.2</td></tr><tr><td rowspan="2">Distill Ours</td><td>79.0</td><td>58.3</td><td>80.0</td><td>62.0</td><td>55.8</td><td>67.0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
144
+
145
+ Table 2: Success Rates $( \%$ ) for data generation (top) and distillation approaches (bottom) over 200 trials.
146
+
147
+ later distilling stage. In particular, we observed that 6DoF actions are important for grasping diverse objects with complex geometry (Transport, Tab. 2), and manipulating articulated objects (Drawer, Mailbox, Tab. 2).
148
+
149
+ Moreover, 6DoF exploration also helps in diversifying the data collection strategy, which provides the possibility to improve upon in the later distilling stage. For example in the catapult domain, LLM-as-Policy (2D) is only able to solve one of three possible goals (the closest bin) using a deterministic strategy. However, it provides no useful data for learning the other two goals, making it a poor data-collection policy. In contrast, incorporating 6 DOF robot utilities achieves lower but non-zero average success rates in all bins $( 1 6 . 3 \%$ , $3 . 3 \%$ , and $2 . 2 \%$ , full table in appendix), which provide much better exploration data for distillation.
150
+
151
+ Table 3: Sources & Propagation of Error. Accuracy $( \% )$ of planning, verification, and execution success rate $( \% )$ for each mailbox subtask.
152
+
153
+ <table><tr><td>Subtask</td><td>Planning Verify Execution</td></tr><tr><td>Open mailbox</td><td>100</td><td>43.5</td></tr><tr><td>Put package in mailbox</td><td>100</td><td>28.5</td></tr><tr><td>Raise mailbox flag</td><td>100</td><td>62.0</td></tr><tr><td>Close mailbox</td><td>100</td><td>94.2</td></tr></table>
154
+
155
+ Verify & Retry always helps. In the verify & retry step, the LLM retries all tasks until they are successful. This simple addition improves performance in all domains, with $2 \times , 3 \times$ , $8 \times$ , and $1 3 \times$ in transport, catapult, balance, and drawer domains. Without this crucial step, we observe $0 . 0 \%$ success rate in the mailbox domain, underscoring the difficulty of flawlessly executing long sequences of 6 DOF actions, and the importance of recovery after failure.
156
+
157
+ Language Model Scaling. In addition to the final task success, we provide more detailed analysis of planning and success condition inference accuracy in Tab. 4. We evaluate on the proprietary GPT3 [66] (175B text-davinci-003) and the open LLAMA2 [67] (7B and 13B). We found that Llama models struggles in complex planning domains because they do not follow instructions provided in the prompts. For instance, in the drawer domain, both models fail to account for drawer opening and closing. However, we observe an upwards trend with respect to Llama model size, with the 13B model outperforming the 7B model by $+ 2 0 . 0 \%$ and $+ 3 8 . 3 \%$ in planning and success verification accuracy respectively.
158
+
159
+ <table><tr><td>Model</td><td>Size</td><td>Planning</td><td>Success</td></tr><tr><td rowspan="2">LLAMA2</td><td>7B</td><td>42.0</td><td>10.0</td></tr><tr><td>13B</td><td>62.0</td><td>48.3</td></tr><tr><td>GPT3</td><td>175B</td><td>82.0</td><td>91.1</td></tr></table>
160
+
161
+ Table 4: LLM Evaluation.
162
+
163
+ # 4.2 Distilled Policy Evaluation
164
+
165
+ Robustness In, Robustness Out. By filtering trajectories with LLM’s inferred success condition, distilled policies inherit the robustness of their data collection policies while improving upon success rates $( + 2 3 . 4 \%$ and $+ 3 3 . 2 \%$ for no-retry and ours, Tab. 2). Since our distilled policy learned from a robust data collection policy, it also recovers from failures (e.g. failed grasps or placements) and continuously retries a task until it succeeds. Meanwhile, since the no-retry distilled policy learned from a data collection policy which did not retry upon failure, it is sensitive and brittle, leading to $- 3 4 . 8 \%$ lower average success rate across all domains compared to ours (Tab. 2).
166
+
167
+ High Performance From Diverse Retry Attempts. Plotting how long policies take to solve the balance task (Fig. 6), we observed that our policy and its data collection policy continuously tries a diverse set of grasps and placements after each failed attempt until it succeeds. This results in higher success rates as the policy is given more time, and is reflected in their monotonically increasing success rates.
168
+
169
+ In contrast, baselines plateau after their first grasp/platement attempts. This highlights the synergy of two design decisions. First, the verify & retry step $( \ S 3 . 3 )$ is crucial for demonstrating retrying behavior, but is by itself insufficient if each retrying action is the identical as the previous one. Instead, opting for a diffusion policy $( \ S \ 3 . 4 )$ for learning from and generating high-entropy, diverse retry attempts (Fig 5) is also essential for high performance.
170
+
171
+ Policy Learning Baselines. We investigate policy learning design decisions on the single-task balance domain, and remove language conditioning. While BC-Z found spatial softmax hurt their performance and opted for a mean pool, we observed using spatial softmax improved performance by $+ 5 . 0 \%$ . Further, we found that switching from delta to absolute action spaces improved success rates $+ 6 . 5 \%$ and $+ 9 . 5 \%$ when using the MLP action decoder and our diffusion action decoder, respectively, confirming Chi et al. [12]’s findings. Lastly, we find that using our pseudo-random diffusion-based action encoder consistently outperforms a deterministic MLP action mappings, regardless of other design decisions.
172
+
173
+ ![](images/4744b196017d0467fd75e21b1770f0e42c8b6ad74eed9c78004a816824d44cc1.jpg)
174
+ Figure 6: Distilled Robustness. Our policy inherits robust recovery from failure behavior from its data collection policy, while improving upon success rate.
175
+
176
+ Sim2Real Transfer. We evaluated a policy trained on domain randomized synthetic data in a real world transport task with five novel objects (Fig. 5e). Averaging across ten episodes per object, our policy achieved $76 \%$ success rate, demonstrating the effectiveness of our approach in Sim2Real transfer.
177
+
178
+ # 4.3 Limitations
179
+
180
+ By using priviledged simulation state information, the LLM can infer success conditions which uses ground truth contact, joint information, and object poses. This means our implementation of the data generation phase is limited to simulation environments, and our policy requires sim2real transfer. Further, Our data generation method relies on existing 3D assets and environments, which presents a further opportunity for scaling up with assets from 3D generative models or procedural generation. Finally, while our approach’s dataset contains text labels and success labels for all subtasks, we have only evaluated its effectiveness in learning the root task. Learning from all subtasks and growing a robot’s set of learned, reusable sub-skills over time to enable compositional generalization is left for future work.
181
+
182
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Output</td><td colspan="2">Input</td><td rowspan="2">Success (%)</td></tr><tr><td>Generation</td><td>Rep.Exec Pred Pool</td><td></td><td>Proprio</td></tr><tr><td>BC-Z</td><td>FeedForward Delta</td><td>1</td><td>10 Avg</td><td>xxx</td><td>0.0</td></tr><tr><td></td><td>FeedForward Delta</td><td>4</td><td>10 Avg</td><td></td><td>15.0</td></tr><tr><td></td><td>FeedForward Delta</td><td>8</td><td>10 Avg</td><td></td><td>18.5</td></tr><tr><td>Ours</td><td>FeedForward Delta</td><td>8</td><td>16 Spatial</td><td></td><td>29.0</td></tr><tr><td></td><td>FeedForward Abs</td><td>8</td><td>16 Spatial</td><td>ν/√√</td><td>35.5</td></tr><tr><td></td><td>Diffusion</td><td>Delta 8</td><td>16 Spatial</td><td></td><td>69.5</td></tr><tr><td></td><td>Diffusion</td><td>Abs 8</td><td>16Avg</td><td></td><td>76.5</td></tr><tr><td></td><td>Diffusion</td><td>Abs 8</td><td>16 Spatial</td><td></td><td>79.0</td></tr></table>
183
+
184
+ Table 5: Policy Learning Ablations. Action generation using diffusion models [50] robustly outperforms feed-forward models across other policy design decisions.
185
+
186
+ # 5 Conclusion
187
+
188
+ We proposed “Scaling Up and Distilling Down”, a framework that combines the strengths of LLMs, samplingbased planners, and policy learning into a single system that automatically generates, labels, and distills diverse robot-complete exploration experience into a multi-task visuo-linguo-motor policy. The distilled policy inherits long-horizon behaviour, rich low-level manipulation skills, and robustness from its data collection policy while improving upon performance beyond its training distribution. We believe that this integrated approach is a step towards putting robotics on the same scaling trend as that of LLM development while not compromising on the rich low-level control.
189
+
190
+ # Acknowledgments
191
+
192
+ We would like to thank Cheng Chi, Zeyi Liu, Samir Yitzhak Gadre, Mengda Xu, Zhenjia Xu, Mandi Zhao and Dominik Bauer for their helpful feedback and fruitful discussions. This work was supported in part by Google Research Award, NSF Award #2143601, and #2132519. We would like to thank Google for the UR5 robot hardware. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of the sponsors.
193
+
194
+ References
195
+ [1] S. Song, A. Zeng, J. Lee, and T. Funkhouser. Grasping in the wild: Learning 6dof closed-loop grasping from low-cost demonstrations. IEEE Robotics and Automation Letters, 5(3):4978–4985, 2020.
196
+ [2] T. Z. Zhao, V. Kumar, S. Levine, and C. Finn. Learning fine-grained bimanual manipulation with low-cost hardware. arXiv preprint arXiv:2304.13705, 2023.
197
+ [3] E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026–5033. IEEE, 2012. doi:10.1109/IROS.2012.6386109.
198
+ [4] A. Mandlekar, D. Xu, J. Wong, S. Nasiriany, C. Wang, R. Kulkarni, L. Fei-Fei, S. Savarese, Y. Zhu, and R. Mart´ın-Mart´ın. What matters in learning from offline human demonstrations for robot manipulation. In arXiv preprint arXiv:2108.03298, 2021.
199
+ [5] S. Nair, A. Rajeswaran, V. Kumar, C. Finn, and A. Gupta. R3m: A universal visual representation for robot manipulation. arXiv preprint arXiv:2203.12601, 2022.
200
+ [6] K. Grauman, A. Westbury, E. Byrne, Z. Chavis, A. Furnari, R. Girdhar, J. Hamburger, H. Jiang, M. Liu, X. Liu, et al. Ego4d: Around the world in 3,000 hours of egocentric video. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18995–19012, 2022.
201
+ [7] J. Fu, A. Kumar, O. Nachum, G. Tucker, and S. Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
202
+ [8] J. Wu, X. Sun, A. Zeng, S. Song, J. Lee, S. Rusinkiewicz, and T. Funkhouser. Spatial action maps for mobile manipulation. arXiv preprint arXiv:2004.09141, 2020.
203
+ [9] M. Shridhar, L. Manuelli, and D. Fox. Perceiver-actor: A multi-task transformer for robotic manipulation. In Proceedings of the 6th Conference on Robot Learning (CoRL), 2022.
204
+ [10] M. Shridhar, L. Manuelli, and D. Fox. Cliport: What and where pathways for robotic manipulation. In Proceedings of the 5th Conference on Robot Learning (CoRL), 2021.
205
+ [11] P. Florence, C. Lynch, A. Zeng, O. Ramirez, A. Wahid, L. Downs, A. Wong, J. Lee, I. Mordatch, and J. Tompson. Implicit behavioral cloning. Conference on Robot Learning (CoRL), November 2021.
206
+ [12] C. Chi, S. Feng, Y. Du, Z. Xu, E. Cousineau, B. Burchfiel, and S. Song. Diffusion policy: Visuomotor policy learning via action diffusion. In Proceedings of Robotics: Science and Systems (RSS), 2023.
207
+ [13] C. Lynch and P. Sermanet. Language conditioned imitation learning over unstructured data. arXiv preprint arXiv:2005.07648, 2020.
208
+ [14] S. Stepputtis, J. Campbell, M. Phielipp, S. Lee, C. Baral, and H. Ben Amor. Language-conditioned imitation learning for robot manipulation tasks. Advances in Neural Information Processing Systems, 33:13139–13150, 2020.
209
+ [15] E. Jang, A. Irpan, M. Khansari, D. Kappler, F. Ebert, C. Lynch, S. Levine, and C. Finn. Bc-z: Zero-shot task generalization with robotic imitation learning. In A. Faust, D. Hsu, and G. Neumann, editors, Proceedings of the 5th Conference on Robot Learning, volume 164 of Proceedings of Machine Learning Research, pages 991–1002. PMLR, 08–11 Nov 2022. URL https://proceedings.mlr.press/v164/jang22a. html.
210
+ [16] C. Lynch, A. Wahid, J. Tompson, T. Ding, J. Betker, R. Baruch, T. Armstrong, and P. Florence. Interactive language: Talking to robots in real time. arXiv preprint arXiv:2210.06407, 2022.
211
+ [17] O. Mees, L. Hermann, and W. Burgard. What matters in language conditioned robotic imitation learning over unstructured data. IEEE Robotics and Automation Letters, 7(4):11205–11212, 2022.
212
+ [18] A. Brohan, N. Brown, J. Carbajal, Y. Chebotar, J. Dabis, C. Finn, K. Gopalakrishnan, K. Hausman, A. Herzog, J. Hsu, et al. Rt-1: Robotics transformer for real-world control at scale. arXiv preprint arXiv:2212.06817, 2022.
213
+ [19] O. Mees, L. Hermann, E. Rosete-Beas, and W. Burgard. Calvin: A benchmark for language-conditioned policy learning for long-horizon robot manipulation tasks. IEEE Robotics and Automation Letters, 7(3): 7327–7334, 2022.
214
+ [20] T. Xiao, H. Chan, P. Sermanet, A. Wahid, A. Brohan, K. Hausman, S. Levine, and J. Tompson. Robotic skill acquisition via instruction augmentation with vision-language models. arXiv preprint arXiv:2211.11736, 2022.
215
+ [21] J. Zhang, K. Pertsch, J. Zhang, and J. J. Lim. Sprint: Scalable policy pre-training via language instruction relabeling. arXiv preprint arXiv:2306.11886, 2023.
216
+ [22] S. Nair, E. Mitchell, K. Chen, S. Savarese, C. Finn, et al. Learning language-conditioned robot behavior from offline data and crowd-sourced annotation. In Conference on Robot Learning, pages 1303–1315. PMLR, 2022.
217
+ [23] R. Goyal, S. Ebrahimi Kahou, V. Michalski, J. Materzynska, S. Westphal, H. Kim, V. Haenel, I. Fruend, P. Yianilos, M. Mueller-Freitag, et al. The” something something” video database for learning and evaluating visual common sense. In Proceedings of the IEEE international conference on computer vision, pages 5842–5850, 2017.
218
+ [24] D. Damen, H. Doughty, G. M. Farinella, S. Fidler, A. Furnari, E. Kazakos, D. Moltisanti, J. Munro, T. Perrett, W. Price, et al. Scaling egocentric vision: The epic-kitchens dataset. In Proceedings of the European Conference on Computer Vision (ECCV), pages 720–736, 2018.
219
+ [25] A. S. Chen, S. Nair, and C. Finn. Learning generalizable robotic reward functions from” in-the-wild” human videos. arXiv preprint arXiv:2103.16817, 2021.
220
+ [26] R. Wang, J. Lehman, J. Clune, and K. O. Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019.
221
+ [27] M. Jiang, M. Dennis, J. Parker-Holder, J. Foerster, E. Grefenstette, and T. Rocktaschel. Replay-guided ¨ adversarial environment design. Advances in Neural Information Processing Systems, 34:1884–1897, 2021.
222
+ [28] J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.
223
+ [29] K. Fang, T. Migimatsu, A. Mandlekar, L. Fei-Fei, and J. Bohg. Active task randomization: Learning visuomotor skills for sequential manipulation by proposing feasible and novel tasks. arXiv preprint arXiv:2211.06134, 2022.
224
+ [30] Y. Du, O. Watkins, Z. Wang, C. Colas, T. Darrell, P. Abbeel, A. Gupta, and J. Andreas. Guiding pretraining in reinforcement learning with large language models. arXiv preprint arXiv:2302.06692, 2023.
225
+ [31] S. Mirchandani, S. Karamcheti, and D. Sadigh. Ella: Exploration through learned language abstraction. Advances in Neural Information Processing Systems, 34:29529–29540, 2021.
226
+ [32] R. Mendonca, S. Bahl, and D. Pathak. Alan: Autonomously exploring robotic agents in the real world. arXiv preprint arXiv:2302.06604, 2023.
227
+ [33] C. R. Garrett, R. Chitnis, R. Holladay, B. Kim, T. Silver, L. P. Kaelbling, and T. Lozano-Perez. Integrated ´ task and motion planning. Annual review of control, robotics, and autonomous systems, 4:265–293, 2021.
228
+ [34] W. Huang, P. Abbeel, D. Pathak, and I. Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. In International Conference on Machine Learning, pages 9118–9147. PMLR, 2022.
229
+ [35] M. Ahn, A. Brohan, N. Brown, Y. Chebotar, O. Cortes, B. David, C. Finn, K. Gopalakrishnan, K. Hausman, A. Herzog, et al. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691, 2022.
230
+ [36] W. Huang, F. Xia, T. Xiao, H. Chan, J. Liang, P. Florence, A. Zeng, J. Tompson, I. Mordatch, Y. Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models. In 6th Annual Conference on Robot Learning.
231
+ [37] J. Liang, W. Huang, F. Xia, P. Xu, K. Hausman, B. Ichter, P. Florence, and A. Zeng. Code as policies: Language model programs for embodied control. In arXiv preprint arXiv:2209.07753, 2022.
232
+ [38] D. Driess, F. Xia, M. S. Sajjadi, C. Lynch, A. Chowdhery, B. Ichter, A. Wahid, J. Tompson, Q. Vuong, T. Yu, et al. Palm-e: An embodied multimodal language model. ICML, 2023.
233
+ [39] K. Lin, C. Agia, T. Migimatsu, M. Pavone, and J. Bohg. Text2motion: From natural language instructions to feasible plans. arXiv preprint arXiv:2303.12153, 2023.
234
+ [40] I. Singh, V. Blukis, A. Mousavian, A. Goyal, D. Xu, J. Tremblay, D. Fox, J. Thomason, and A. Garg. Progprompt: Generating situated robot task plans using large language models. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pages 11523–11530. IEEE, 2023.
235
+ [41] A. Agarwal, A. Kumar, J. Malik, and D. Pathak. Legged locomotion in challenging terrains using egocentric vision, 2022.
236
+ [42] D. Seita, A. Ganapathi, R. Hoque, M. Hwang, E. Cen, A. K. Tanwani, A. Balakrishna, B. Thananjeyan, J. Ichnowski, N. Jamali, K. Yamane, S. Iba, J. F. Canny, and K. Goldberg. Deep imitation learning of sequential fabric smoothing policies. CoRR, abs/1910.04854, 2019. URL http://arxiv.org/abs/1910. 04854.
237
+ [43] T. Miki, J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning robust perceptive locomotion for quadrupedal robots in the wild. Science Robotics, 7(62):eabk2822, 2022.
238
+ [44] S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016.
239
+ [45] K. Hausman, Y. Chebotar, S. Schaal, G. Sukhatme, and J. J. Lim. Multi-modal imitation learning from unstructured demonstrations using generative adversarial nets. Advances in neural information processing systems, 30, 2017.
240
+ [46] N. M. M. Shafiullah, Z. J. Cui, A. Altanzaya, and L. Pinto. Behavior transformers: Cloning $k$ modes with one stone, 2022.
241
+ [47] T. Yu, D. Quillen, Z. He, R. Julian, K. Hausman, C. Finn, and S. Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on robot learning, pages 1094–1100. PMLR, 2020.
242
+ [48] D. Kalashnikov, J. Varley, Y. Chebotar, B. Swanson, R. Jonschkowski, C. Finn, S. Levine, and K. Hausman. Mt-opt: Continuous multi-task robotic reinforcement learning at scale. arXiv preprint arXiv:2104.08212, 2021.
243
+ [49] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pages 2256–2265. PMLR, 2015.
244
+ [50] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
245
+ [51] C. Saharia, W. Chan, S. Saxena, L. Li, J. Whang, E. L. Denton, K. Ghasemipour, R. Gontijo Lopes, B. Karagol Ayan, T. Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems, 35:36479–36494, 2022.
246
+ [52] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022.
247
+ [53] L. Chen, K. Lu, A. Rajeswaran, K. Lee, A. Grover, M. Laskin, P. Abbeel, A. Srinivas, and I. Mordatch. Decision transformer: Reinforcement learning via sequence modeling. Advances in neural information processing systems, 34:15084–15097, 2021.
248
+ [54] S. Levine, A. Kumar, G. Tucker, and J. Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
249
+ [55] S. M. LaValle et al. Rapidly-exploring random trees: A new tool for path planning.
250
+ [56] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763. PMLR, 2021.
251
+ [57] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
252
+ [58] J. Song, C. Meng, and S. Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations.
253
+ [59] L. Downs, A. Francis, N. Koenig, B. Kinman, R. Hickman, K. Reymann, T. B. McHugh, and V. Vanhoucke. Google scanned objects: A high-quality dataset of 3d scanned household items, 2022. URL https://arxiv.org/abs/2204.11918.
254
+ [60] K. Zakka. Scanned Objects MuJoCo Models, 7 2022. URL https://github.com/kevinzakka/mujoco scanned objects.
255
+ [61] A. Kamath, M. Singh, Y. LeCun, G. Synnaeve, I. Misra, and N. Carion. Mdetr-modulated detection for end-to-end multi-modal understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1780–1790, 2021.
256
+ [62] X. Gu, T.-Y. Lin, W. Kuo, and Y. Cui. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921, 2021.
257
+ [63] T. Zhang, Z. McCarthy, O. Jow, D. Lee, X. Chen, K. Goldberg, and P. Abbeel. Deep imitation learning for complex manipulation tasks from virtual reality teleoperation. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 5628–5635. IEEE, 2018.
258
+ [64] P. Florence, L. Manuelli, and R. Tedrake. Self-supervised correspondence in visuomotor policy learning. IEEE Robotics and Automation Letters, 5(2):492–499, 2019.
259
+ [65] A. Mandlekar, F. Ramos, B. Boots, S. Savarese, L. Fei-Fei, A. Garg, and D. Fox. Iris: Implicit reinforcement without interaction at scale for learning control from offline robot manipulation data. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 4414–4420. IEEE, 2020.
260
+ [66] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
261
+ [67] H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
parse/dev/3uwj8QZROL/3uwj8QZROL_content_list.json ADDED
@@ -0,0 +1,1077 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Scaling Up and Distilling Down: Language-Guided Robot Skill Acquisition ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 256,
8
+ 102,
9
+ 738,
10
+ 150
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Huy $\\mathrm { H a } ^ { 1 }$ , Pete Florence2, and Shuran Song1 ",
17
+ "bbox": [
18
+ 362,
19
+ 181,
20
+ 633,
21
+ 196
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Columbia University \n2Google DeepMind ",
28
+ "bbox": [
29
+ 437,
30
+ 209,
31
+ 560,
32
+ 237
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract: We present a framework for robot skill acquisition, which 1) efficiently scale up data generation of language-labelled robot data and 2) effectively distills this data down into a robust multi-task language-conditioned visuo-motor policy. For (1), we use a large language model (LLM) to guide high-level planning, and sampling-based robot planners (e.g. motion or grasp samplers) for generating diverse and rich manipulation trajectories. To robustify this data-collection process, the LLM also infers a code-snippet for the success condition of each task, simultaneously enabling the data-collection process to detect failure and retry as well as the automatic labeling of trajectories with success/failure. For (2), we extend the diffusion policy single-task behavior-cloning approach to multi-task settings with language conditioning. Finally, we propose a new multi-task benchmark with 18 tasks across five domains to test long-horizon behavior, common-sense reasoning, tool-use, and intuitive physics. We find that our distilled policy successfully learned the robust retrying behavior in its data collection procedure, while improving absolute success rates by $3 \\mathrm { { \\bar { 3 } } . 2 \\mathrm { { \\bar { \\% } } } }$ on average across five domains. All code, data, and qualitative policy results are available at our project website. ",
39
+ "bbox": [
40
+ 232,
41
+ 250,
42
+ 766,
43
+ 446
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "image",
49
+ "img_path": "images/2a01ee3c09f480b88ac8375b319968f15d3d2a0a747b2937e52ed97ed42cfdf5.jpg",
50
+ "image_caption": [
51
+ "Figure 1: Language-guided Skill Acquisition enables scalable robot learning. In the data generation stage, a LLM takes as input task descriptions (a) and uses sampling-based robotic planners and privileged simulation information (b) to perform task-directed exploration. This enables the scaling up of language and task-success labeled dataset generation (c). In the second stage, the dataset is filtered for success and distilled down into a closed-loop language-conditioned visuomotor policy for real world deployment (d). "
52
+ ],
53
+ "image_footnote": [],
54
+ "bbox": [
55
+ 173,
56
+ 467,
57
+ 820,
58
+ 598
59
+ ],
60
+ "page_idx": 0
61
+ },
62
+ {
63
+ "type": "text",
64
+ "text": "1 Introduction ",
65
+ "text_level": 1,
66
+ "bbox": [
67
+ 174,
68
+ 679,
69
+ 305,
70
+ 695
71
+ ],
72
+ "page_idx": 0
73
+ },
74
+ {
75
+ "type": "text",
76
+ "text": "How can we scalably acquire robust, reusable, real-world manipulation skills? This question has been the driving force behind extensive research in robot learning. Attempts in the field have focused on two primary aspects: First, how to scale up the data collection for a diverse range of manipulation skills, which involves efforts such as improving the hardware [1, 2] and software [3, 4] which support demonstration collection, utilization of non-robotics datasets [5, 6], or trial-and-error explorations [7]. The second aspect of this question concerns effective learning from the collected data, which delves into exploring effective action representations [8–10] and policy formulations [11, 12] that can robustly model the training data and generalize to novel scenarios. ",
77
+ "bbox": [
78
+ 174,
79
+ 702,
80
+ 825,
81
+ 795
82
+ ],
83
+ "page_idx": 0
84
+ },
85
+ {
86
+ "type": "text",
87
+ "text": "This paper proposes a new framework that provides a comprehensive solution for both aspects by leveraging language guidance, while using no expert demonstrations or reward specification/engineering. We contribute two key components with our framework: ",
88
+ "bbox": [
89
+ 174,
90
+ 801,
91
+ 821,
92
+ 840
93
+ ],
94
+ "page_idx": 0
95
+ },
96
+ {
97
+ "type": "text",
98
+ "text": "• Scaling Up Language-Guided Data Generation: Our data-collection policy is a large language model (LLM) which has access to a suite of 6DoF exploration primitives (i.e., sampling-based robot planners and utilities). Given an input task description, this policy first simplifies the task by recursively decomposing it into subtasks, resulting in a hierarchical plan (i.e., task tree). Next, this plan is grounded into a sequence of 6DoF exploration primitives, which generates diverse robot trajectories for the task. Finally, the data collection policy verifies the trajectories’ success with an inferred success function and retries the task until it succeeds. This verify & retry step not only improves the data-collection policy’s success, but also adds robot experience on how to recover from failure, an important trait for downstream policy distillation. This data generation approach is scalable, enabling significantly more efficient autonomous task-directed exploration than unguided alternatives (i.e., reinforcement learning) while not being limited by the lack of low-level understanding of the LLM-only solution. ",
99
+ "bbox": [
100
+ 176,
101
+ 845,
102
+ 825,
103
+ 900
104
+ ],
105
+ "page_idx": 0
106
+ },
107
+ {
108
+ "type": "text",
109
+ "text": "",
110
+ "bbox": [
111
+ 187,
112
+ 92,
113
+ 825,
114
+ 184
115
+ ],
116
+ "page_idx": 1
117
+ },
118
+ {
119
+ "type": "text",
120
+ "text": "• Distilling Down to Language-Conditioned Visuomotor Policy: We distill these robot experiences into a visuo-linguo-motor policy that infers control sequences from visual observations and a natural language task description. To enable effective learning of high entropy, diverse robot trajectories, we extend the diffusion policy [12] to handle language-based conditioning for multi-task learning. This allows the learned policy to be reused and recomposed through language-based planners. We found that our distilled policy successfully learned the robust retrying behavior from its data collection policy, while improving upon its absolute success rate across five domains by $3 3 . 2 \\%$ . Further, we demonstrate that our policy directly transfers to the real-world without fine-tuning using domain randomization. ",
121
+ "bbox": [
122
+ 174,
123
+ 189,
124
+ 825,
125
+ 294
126
+ ],
127
+ "page_idx": 1
128
+ },
129
+ {
130
+ "type": "text",
131
+ "text": "Our framework combines these two components to get the best of both worlds – leverage LLM’s common-sense reasoning abilities for efficient exploration while learning robust and re-usable 6DoF skills for real-world deployment. In summary, the key contribution of this paper is a new framework for visuo-linguo-motor policy learning that is enabled by three novel components: ",
132
+ "bbox": [
133
+ 174,
134
+ 299,
135
+ 825,
136
+ 353
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "text",
142
+ "text": "• A new language-guided data collection framework that combines language-based task planner with 6DoF robot utilities (e.g. motion planning, grasp sampling). \n• New formulation of diffusion-based policy that effectively learns multi-task language-conditioned closed-loop control policies. \n• In addition to our algorithmic contributions, we also contribute a new multi-task benchmark that includes 18 tasks across five domains, requiring long-horizon $\\approx 8 0 0$ control cycles), common sense, tool-use, and intuitive physics understanding – capabilities lacking in existing manipulation benchmarks. ",
143
+ "bbox": [
144
+ 173,
145
+ 356,
146
+ 826,
147
+ 460
148
+ ],
149
+ "page_idx": 1
150
+ },
151
+ {
152
+ "type": "text",
153
+ "text": "2 Related Works ",
154
+ "text_level": 1,
155
+ "bbox": [
156
+ 174,
157
+ 468,
158
+ 323,
159
+ 486
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Scaling visuo-linguo-motor data. In learning vision-and-language-conditioned motor policies for real-world deployment [9, 10, 13–18], one of the most important questions is how to scale up “robot-complete data” – data that has robot sensory inputs (e.g. vision), action labels (e.g. target end-effector & gripper commands), and task labels (e.g. language description, success). The most prevalent paradigm is to use humans to annotate both actions (e.g. teleoperation) and language [9, 10, 13–18]. When providing action labels, humans can either provide task-specific [9, 10, 15, 18], or task-agnostic (“play”) data [13, 14, 16, 19]. A primary limitation, however, is that data scalability is human-limited. ",
166
+ "bbox": [
167
+ 174,
168
+ 492,
169
+ 825,
170
+ 585
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Other prior works have proposed strategies to enable more-autonomously-scalable data. To scale language annotation, prior works study using visual-language models [20, 21], or procedurally post-hoc provided in simulation [19]. To scale action labels, methods study how to use autonomous sub-optimal policies from random [7] to learned [22] policies. Human egocentric videos [6, 23, 24] has also been shown to be relevant to robot learning [5, 25], but is not robot-complete (lacks action labels), and requires cross-embodiment transfer. Towards unsupervised exploration, prior works have also investigated evolving environments [26, 27] and embodiments [28], automatic task generation [29], leveraging language guidance [30, 31] and world-model error [32], but have not been demonstrated to scale to 6 DoF robotic skill learning. While these approaches reduce human efforts, they are still limited in optimality, generality, and/or completeness of robot data labels. ",
177
+ "bbox": [
178
+ 174,
179
+ 592,
180
+ 825,
181
+ 710
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Another option for the autonomous data collection policy is to use a model-based policy, e.g. task and motion planning (TAMP) [33]. Our approach extends such methods in terms of flexibility and task generality by leveraging LLM’s common-sense knowledge. However, in contrast to recent works which use LLMs as the final policy [34–40], we use the LLM-based planner as a suboptimal data-collection policy. We then distill only successful trajectories into an observable-information [41–43] policy, allowing the distilled policy to improve upon its LLM data collection policy’s performance. ",
188
+ "bbox": [
189
+ 174,
190
+ 715,
191
+ 825,
192
+ 795
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Policy Representations and Multi-task Policy Distillation. One primary question in visuo-motor learning [44] has been how to represent the policy for effective learning, i.e. to enable high precision, multi-modal robot behavior [2, 11, 12, 45, 46]. Another related question has been how to best train multi-task policies [47, 48], including those conditioned on language [9, 10, 13, 15, 16, 18]. Our work presents the novel formulation of bringing diffusion-based [49, 50] policies [12] into the language-conditioned [51, 52] visuomotor domain. Additionally, prior works in multi-task language-conditioning typically focus on cloning policies from experts, meanwhile we study distilling data from a success-filtered suboptimal policy. Success-filtering [11, 53] can be viewed as the simplest form of offline RL [54]. ",
199
+ "bbox": [
200
+ 174,
201
+ 809,
202
+ 825,
203
+ 916
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "image",
209
+ "img_path": "images/30b00f83487263cbecc9212528670563a1ad3f986a7739c3026049373ee3b1f0.jpg",
210
+ "image_caption": [
211
+ "Figure 2: Benchmark. We validate our approach on a new multi-task benchmark addressing challenging long-horizon tasks (i.e., 800 control cycles) requiring language understanding (e.g., put [object] to [top] drawer), common sense knowledge (e.g., send a package for return requires raising the mailbox flag), tool-use (e.g., catapult), and intuitive physics (e.g., balance the bus). The tasks are best viewed on our our project website. "
212
+ ],
213
+ "image_footnote": [],
214
+ "bbox": [
215
+ 178,
216
+ 84,
217
+ 815,
218
+ 306
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "3 Approach ",
225
+ "text_level": 1,
226
+ "bbox": [
227
+ 174,
228
+ 369,
229
+ 284,
230
+ 386
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "We propose a new framework for robot learning that performs automatic data collection and policy learning from only a task description. Our design is grounded on four key observations: ",
237
+ "bbox": [
238
+ 176,
239
+ 395,
240
+ 823,
241
+ 422
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "• We recognize the importance of random exploration in reinforcement learning, but aim to not be constrained by its inefficiency for long-horizon, sparse reward tasks. \n• We acknowledge the usefulness of LLM’s common-sense and zero-shot capabilities, but believe language is not by itself the ideal representation for robust, rich, and precise robotic manipulation. \n• We are inspired by the effectiveness of robotic planning methods, e.g. TAMP, but wish to be flexible to novel tasks and domains and non-reliant on ground truth state during policy inference. \n• We aim to achieve the simplicity and effectiveness of behavior cloning in distilling collected robot experience into a policy for real-world deployment, while side-stepping the requirement for costly human demonstrations or play data collection. ",
248
+ "bbox": [
249
+ 173,
250
+ 429,
251
+ 826,
252
+ 574
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "Using no human demonstration or manually specified reward, our framework combines the strengths of these four areas into a unified framework for both efficient task-directed exploration and multi-task visuo-linguo-motor policy learning. ",
259
+ "bbox": [
260
+ 176,
261
+ 580,
262
+ 821,
263
+ 621
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Method Overview. In the data generation phase, we use an LLM to recursively decompose (§3.1) tasks into a hierachical plan (i.e., task tree) for exploration and ground the plan into sampling-based robot utilities and motion primitives (§3.2). Next, the LLM infers success-detection functions for each task in the plan (§3.3), providing success-labeling. This autonomous data generation process outputs a replay buffer of task-directed exploration experience, labeled with language descriptions and success labels. In the training phase (§3.4), we filter this data for success according to the LLM inferred success condition and distill it into a multi-task vision-and-language-conditioned diffusion policy [12]. ",
270
+ "bbox": [
271
+ 174,
272
+ 626,
273
+ 825,
274
+ 719
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "3.1 Simplify: Task Planning and Decomposition ",
281
+ "text_level": 1,
282
+ "bbox": [
283
+ 173,
284
+ 732,
285
+ 503,
286
+ 747
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Given a task description, the first step is to generate a high-level task plan. To improve the flexibility to work with any tasks and 3D assets, we opted for an LLM-based planner to leverage their common-sense and zero-shot reasoning skills. Unlike classical TAMP planners, our framework does not require domain-specific engineering and transition function design to work with new tasks. ",
293
+ "bbox": [
294
+ 174,
295
+ 752,
296
+ 825,
297
+ 804
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Concretely, our recursive LLM planner takes as input the task description, the simulation state, and outputs a plan in the form of a task tree (Fig. 3a). To do so, the LLM first checks whether the task description involves the robot interacting with multiple or only one object. For instance, “move the package into the mailbox” involves opening the mailbox before picking up the package and putting the mailbox in, and should be considered a multi-object task. Meanwhile, “with the mailbox opened, move the package into the mailbox” should be a single-object task. For the base case of single-object tasks, we prompt the LLM to which object part name to to interact. For the case of multi-object tasks, we prompt the LLM to decompose the task into subtasks, and recurse down each subtask. ",
304
+ "bbox": [
305
+ 174,
306
+ 810,
307
+ 825,
308
+ 916
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "image",
314
+ "img_path": "images/8b84c8bcafb3c5523a3a5292076f5a24e44c545a54376ab9b4b74b865087bd27.jpg",
315
+ "image_caption": [
316
+ "Figure 3: Language-Driven Robot Data Generation takes as input the task description and simulation state, and outputs a replay buffer, labelled with language descriptions and success. It starts by using an LLM to simplify tasks recursively (a) until the task involves only one object, resulting in a hierarchical exploration plan. Next, the plan is grounded (b) into a sequence of 6 DOF exploration primitives (e.g. grasp samplers, motion planners, etc.) and rolled out in simulation to give an unlabelled robot trajectory. Finally, an LLM infers a success function code-snippet, and uses it to verify (c) and label it with succeeded or failed. If the trajectory failed, the LLM retries the exploration plan with a different random seed (e.g. a different grasp pose from the grasp sampler). If the robot succeeds or run out of time, the labeled trajectory is returned. "
317
+ ],
318
+ "image_footnote": [],
319
+ "bbox": [
320
+ 184,
321
+ 87,
322
+ 820,
323
+ 301
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "3.2 Ground: Compiling a Plan into Robot Utilities ",
330
+ "text_level": 1,
331
+ "bbox": [
332
+ 173,
333
+ 417,
334
+ 519,
335
+ 433
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "With the generated task tree $\\ S 3 . 1$ , the next step is to ground the high-level plan into physical actions. Here, the choice of the low-level robot $A P I$ critically defines the system’s capability and, therefore, becomes a key differentiating factor between different systems. In principle, there are three desired properties we want to see in the action space design: ",
342
+ "bbox": [
343
+ 173,
344
+ 436,
345
+ 825,
346
+ 489
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "• Flexibility. Planar actions [10, 37] aren��t flexible enough to manipulate prismatic and revolute joints. \n• Scalable. Namely, actions should not require human demonstrations to acquire [9, 10, 13–16, 35]. \n• Language-friendly. While joint sequences can encode any action, it is not language-friendly. ",
353
+ "bbox": [
354
+ 173,
355
+ 494,
356
+ 810,
357
+ 549
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "We propose to ground the LLM’s plan with API calls into a set of robot utility functions, which include a sampling-based motion planner, a geometry-based grasp and placement sampler, and motion primitives for articulated manipulation. We refer to these utilities as 6 DOF Exploration Primitives (Fig 3b) because, by virtue of being pseudo-random, the sampling-based utilities generate diverse robot trajectories, enabling effective exploration for rich 6 DoF manipulation settings. For instance, our grasp and placement samplers samples uniformly amongst all points in the object part’s point cloud to find good grasps and placements poses, respectively, which are used as input into a rapidly-exploring random trees [55] motion planner that samples uniformly in joint space. This results in diverse grasps, placements, and motion trajectories connecting grasps and placements. ",
364
+ "bbox": [
365
+ 174,
366
+ 554,
367
+ 826,
368
+ 660
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "For each leaf node in the inferred task tree (§ 3.1), the grounding process takes as input the node’s task description (e.g. “open the mailbox”), its associated object part name (e.g. “mailbox lid”), and the simulation state, and outputs a sequence of 6 DoF Exploration Primitive API calls. Using the object part name, we can parse the object’s kinematic structure from the simulation state and handle articulated and non-articulated (i.e., rigid, deformable) objects separately. For non-articulated objects, the LLM is prompted to choose the pick & place object names, used to sample grasp and placement pose candidates. For articulated objects (with either revolute or prismatic joints), the leaf node’s associated object part name is used to sample a grasp candidate followed by a rotation or translation primitive conditioned on its joint parameters (i.e., joint type, axis, and origin). ",
375
+ "bbox": [
376
+ 174,
377
+ 665,
378
+ 825,
379
+ 771
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Exploration Plan Rollout. Each node in the exploration plan is grounded only when it is being executed, where the order of execution follows a pre-order tree traversal. By keeping track of the subtask’s state, sub-segments of robot trajectory can be labelled with the subtask’s description, thereby providing dense and automatic text labels for the trajectory. For instance, all actions taken during the inferred subtask “open the mailbox” can be labeled with both the subtask’s description “open the mailbox” and the root task description “move the package into the mailbox”. ",
386
+ "bbox": [
387
+ 174,
388
+ 776,
389
+ 825,
390
+ 856
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Since grounding happens only when a task node is visited, each node’s grounding process is independent of the other leaf nodes, depending only on the simulation state when it is evaluated. While this simplifies planning significantly, it also means that failed execution can occur. For instance, a grasp candidate may render all placement candidates infeasible. ",
397
+ "bbox": [
398
+ 174,
399
+ 862,
400
+ 823,
401
+ 915
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "3.3 Verify & Retry: Robustifying the Data Collection Policy ",
408
+ "text_level": 1,
409
+ "bbox": [
410
+ 173,
411
+ 90,
412
+ 580,
413
+ 106
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "Recall, the planning and grounding step can fail, especially when we consider long-horizon tasks. To address this, we propose a verify & retry (Fig. 3c) scheme, which uses environment feedback to detect failed execution. ",
420
+ "bbox": [
421
+ 174,
422
+ 109,
423
+ 825,
424
+ 137
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Verify. For each task, the LLM infers a success function code snippet given the task description, simulation state, and API functions to for query simulation state (e.g., checking contact or joint values, etc). This amounts to prompting the LLM to complete a task success function definition that outputs a boolean value, indicating task success. For instance, given the task “raise the mailbox flag”, the LLM’s inferred code snippet should check whether the mailbox’s flag hinge is raised (Fig. 3c, highlighted green). ",
431
+ "bbox": [
432
+ 173,
433
+ 142,
434
+ 825,
435
+ 209
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Retry. When a trajectory is labeled failed, the robot retries the same sequence of robot utilities with a different random seed (i.e., for the sampling-based robotic utilities) without resetting the simulation state until the task succeeds. For instance, in the bus balance task (Fig. 2, top left), the robot would repeatedly try different grasp and place candidates until the bus is balanced. In the tree traversal process $\\ S 3 . 2$ , nodes only yield execution to its parent task when the node’s inferred success condition returns true. This design not only leads to higher success rates in data generation but also provides useful demonstrations on how to recover from failure. In the output replay buffer, the only failed trajectories are ones which timed-out or led to invalid states (e.g. object dropped on the floor). ",
442
+ "bbox": [
443
+ 173,
444
+ 215,
445
+ 825,
446
+ 320
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "3.4 Language-conditioned Policy Distillation ",
453
+ "text_level": 1,
454
+ "bbox": [
455
+ 174,
456
+ 332,
457
+ 477,
458
+ 347
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "We extend diffusion policy [12], a state-of-the-art approach for single-task behavior cloning, to the multitask domain by adding language-conditioning. This policy takes as input a task description CLIP [56] feature, proprioception history, and visual observations, and outputs a sequence of end effector control commands. Following Robomimic [4]’s findings, we use a wrist-mounted view in addition to a global (workspace) view to help with tasks requiring precise manipulation. We use their ResNet18-based [57] vision encoders, one for each view. We found that ",
465
+ "bbox": [
466
+ 174,
467
+ 351,
468
+ 485,
469
+ 494
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "image",
475
+ "img_path": "images/f63bc4948ea74ccafeed52fb6956ad8708828d0027d13f9da9fa68a447de7324.jpg",
476
+ "image_caption": [
477
+ "Figure 4: Language-Conditioned Policy Distillation. The policy takes as input a task description, two RGB camera views, and gripper proprioception data, and outputs a sequence of gripper poses and closing command. "
478
+ ],
479
+ "image_footnote": [],
480
+ "bbox": [
481
+ 496,
482
+ 324,
483
+ 821,
484
+ 439
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "using only the latest visual observation along with the full observation horizon of proprioception maintains the policy’s high performance while reducing training time. When used in conjunction with the DDIM [58] noise scheduler, we found that we could use a $1 0 \\times$ shorter diffusion process at inference (5 timesteps at inference, 50 timesteps at training) while retaining a comparable performance. Quantitatively, when using a 10 dimensional action space\\*, our policy can be run at ${ \\approx } 3 5 H z$ on an NVIDIA RTX3080. ",
491
+ "bbox": [
492
+ 174,
493
+ 494,
494
+ 825,
495
+ 560
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "4 Evaluation ",
502
+ "text_level": 1,
503
+ "bbox": [
504
+ 173,
505
+ 574,
506
+ 290,
507
+ 590
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Our experiments try to validate two questions: 1) Can our data generation approach efficiently perform task-directed exploration? 2) Can our policy learning approach effectively distill a multi-modal, multi-task dataset into a generalizable and robust visuo-linguo-motor policy? ",
514
+ "bbox": [
515
+ 174,
516
+ 599,
517
+ 549,
518
+ 666
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "table",
524
+ "img_path": "images/aac2af01ab14e71b284d50ba38a37b40f4d7e2ba7bae0cef76d32b765dba60cb.jpg",
525
+ "table_caption": [
526
+ "Table 1: Benchmark Suite. "
527
+ ],
528
+ "table_footnote": [],
529
+ "table_body": "<table><tr><td>Domain</td><td>Complex Artic- Common Tool Multi- Long geometry ulation</td><td></td><td>1sense </td><td></td><td>use task horizon</td><td></td></tr><tr><td>Balance</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Catapult</td><td>xx</td><td>×</td><td>×</td><td>×</td><td>×</td><td>xxx</td></tr><tr><td>Transport</td><td></td><td>×</td><td>×</td><td>×</td><td>X</td><td></td></tr><tr><td>Mailbox</td><td></td><td></td><td></td><td>X</td><td>X</td><td></td></tr><tr><td>Drawer</td><td></td><td></td><td>X</td><td>X</td><td></td><td></td></tr></table>",
530
+ "bbox": [
531
+ 566,
532
+ 566,
533
+ 815,
534
+ 647
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "Our Benchmark contains 18 tasks across 5 domains (Fig. 2 Tab. 1), with the following properties: ",
541
+ "bbox": [
542
+ 183,
543
+ 671,
544
+ 803,
545
+ 686
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "• 6DoF & articulated manipulation, for deadling with complex object geometry and articulation. \n• Geometry Generalization. In our bin transport domain, the robot must generalize its bin transport skill to unseen object instances, with novel shapes, sizes, and colors. \n• Intuitive physics. Robots should understand the physical properties of the world and use this knowledge to perform tasks. In the bus balance domain, the robot needs to learn the precise grasping and placement to balance a large bus toy on a small block. In the catapult domain, where the block is placed along a catapult arm determines how far the block will be launched, and, thus, which bin (if any) the block will land in. \n• Common-sense reasoning & Tool-use. Natural language task description is user-friendly but often under-specifies the task. Common-sense can help to fill in the gaps. In the mailbox domain, given the task “send the package for return”, the robot should understand that it not only needs put the package inside, but also raise the mailbox flag to indicate that the package is ready for pickup. In the catapult domain, the robot needs to understand that pressing the catapult’s button will activate the catapult, and that the block needs to be placed on the catapult arm to be launched. ",
552
+ "bbox": [
553
+ 173,
554
+ 686,
555
+ 826,
556
+ 885
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "image",
562
+ "img_path": "images/22c7522a90c85b5b94f32cb97df5872220f10ae2c946c31d19d6e3eb392b4902.jpg",
563
+ "image_caption": [
564
+ "Figure 5: High Entropy yet Precise Language-Guided Action Sequences. Running the pseudorandom languageconditioned diffusion process with different seeds on the same observations yields language-consistent (a-c, different colors for different task descriptions), high entropy actions when possible (a-f, object grasping, transports, & placements) and precise actions when necessary (d, narrow mailbox with large package). Further, domain randomization enables a simulation trained policy (e) to generalize to the real world (f). "
565
+ ],
566
+ "image_footnote": [],
567
+ "bbox": [
568
+ 171,
569
+ 64,
570
+ 825,
571
+ 327
572
+ ],
573
+ "page_idx": 5
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "• Multi-task conditioning. Given the same visual observations but different task description, the robot should perform different and task-relevant actions. The catapult domain has 3 tasks for three target bins, and the drawer domain has 12 tasks. ",
578
+ "bbox": [
579
+ 176,
580
+ 406,
581
+ 821,
582
+ 446
583
+ ],
584
+ "page_idx": 5
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "• Long horizon behaviour. Our longest horizon domain, mailbox, takes at least 4 subtasks to complete (open the mailbox, put the package in the mailbox while its opened, close the mailbox, then raise the mailbox flag) which can require up to 800 control cycles. In the drawer domain, the robot needs to open the drawer, move the object into the drawer, then close it, which takes about 300 control cycles. ",
589
+ "bbox": [
590
+ 176,
591
+ 450,
592
+ 825,
593
+ 506
594
+ ],
595
+ "page_idx": 5
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "The benchmark is built on top of the MuJoCo [3] simulator, using assets from the Google Scanned dataset [59, 60]. We use a table-top manipulation set-up with a 6DoF robot arm. The task success in evaluation is a manually designed function, instead of LLM generated function used for data collection. ",
600
+ "bbox": [
601
+ 174,
602
+ 511,
603
+ 825,
604
+ 551
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "Metrics. We report the success rates $( \\% )$ averaged over 200 episodes in Table 2, a task completion efficiency plot in Fig. 6, and qualitative results in Fig. 5. If a domain has multiple tasks then we report the average performance of all tasks. We also compare different LLMs in Table 4 (10 samples per task) and investigate the sources of error in our system for the mailbox domain in Table 3 (200 trials per execution). ",
611
+ "bbox": [
612
+ 174,
613
+ 553,
614
+ 825,
615
+ 607
616
+ ],
617
+ "page_idx": 5
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "Data Generation Baselines. Code-as-Policy [37] is a state-of-the-art approach for using an LLM directly as a robot policy by making state (e.g. query present objects) and action primitive API calls to a robot. Given an LLM-inferred code string, they execute the snippet in an open-loop fashion. Crucially, in their table top manipulation setting, they assume access to planar action primitives. Thus, we introduce the following baselines, which build on top of Code-as-Policy and each other as follows: ",
622
+ "bbox": [
623
+ 174,
624
+ 609,
625
+ 825,
626
+ 675
627
+ ],
628
+ "page_idx": 5
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "• LLM-as-Policy (2D): Similar to code-as-policy using planar pick-and-place, but we use ground truth object segmentation instead of their off-the-shelf object detectors [61, 62]. \n• $( + )$ 6 DOF robot utils: Builds on top of the previous baseline by adding access to 6 DOF robot utilities for grasping, placement, motion planning, and articulated manipulation. \n• $( + )$ Verify & Retry: Adding to the previous baselines, this baseline uses the LLM’s predicted success condition to label trajectories and retry failed ones. Since the robot utilities involve pseudo-random samplers (e.g. RRT, grasp sampling), retrying the task means running these samplers again using the pseudo-random state and environment state from where failed trajectory left it. Since we use this approach as our data generation policy, it also serves as an ablation of our approach. ",
633
+ "bbox": [
634
+ 173,
635
+ 679,
636
+ 825,
637
+ 809
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "Policy Distillation Ablations. We compare against BC-Z [15]’s single-task policies which does not use FiLM conditioning (used in their bin emptying and door opening tasks). To understand the effects of our policy learning design decisions in the single-task regime, we fix training time and dataset size (2 days using at least 500 successful trajectories), and provide the following ablations: ",
644
+ "bbox": [
645
+ 174,
646
+ 813,
647
+ 825,
648
+ 867
649
+ ],
650
+ "page_idx": 5
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "• Action Generation: Instead of using diffusion processes conditioned on the policy input embedding to decode actions, it is typical use multi-layer perceptrons. Following Jang et al. [15], we use one MLP with two hidden layers and ReLU activations for end effector position, one for the orientation, and another for gripper command. This standard policy architecture is deterministic, and is trained with mean-squared error loss for pose and binary cross entropy loss for gripper command. ",
655
+ "bbox": [
656
+ 176,
657
+ 871,
658
+ 825,
659
+ 911
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "",
666
+ "bbox": [
667
+ 181,
668
+ 92,
669
+ 823,
670
+ 118
671
+ ],
672
+ "page_idx": 6
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "• Action Space: Besides our absolute end effector pose action space, Delta-Action and velocity control spaces is another popular action space choice [4, 15, 63–65]. We also ablate BC-Z’s execution action horizon (Exec) while keeping their original prediction horizon (Pred). ",
677
+ "bbox": [
678
+ 176,
679
+ 125,
680
+ 826,
681
+ 165
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "• Observation Encoder: All approaches encode images using a ResNet18 [57] architecture. Although the original architecture was designed with an average pooling layer, its typical for robotic policies to use a spatial softmax pooling [44] layer instead. ",
688
+ "bbox": [
689
+ 173,
690
+ 170,
691
+ 823,
692
+ 210
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "• Data usage: No-Retry trains on successful trajectories generated from the data generation approach without Verify & Retry, so it does not observe any recovery behavior. ",
699
+ "bbox": [
700
+ 176,
701
+ 215,
702
+ 823,
703
+ 243
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "4.1 Data Collection Policy Evaluation ",
710
+ "text_level": 1,
711
+ "bbox": [
712
+ 174,
713
+ 258,
714
+ 434,
715
+ 272
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "6DoF exploration is critical. First, we verify different approach’s ability to perform and explore in 6DoF, which is crucial for general manipulation. When 6DoF exploration is introduced, we first observe a drop in the average success rate for simple tasks that could be accomplished with planar actions (Balance, Transport, Tab. 2). However, this ability is critical for exploring complex tasks, providing data to improve upon in the ",
722
+ "bbox": [
723
+ 174,
724
+ 277,
725
+ 465,
726
+ 395
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "table",
732
+ "img_path": "images/0add43e1b5e7daf184ac991319dfa3f26c966b50cb187a76cf9a0f2f3edf5792.jpg",
733
+ "table_caption": [],
734
+ "table_footnote": [
735
+ "Table 2: Success Rates $( \\%$ ) for data generation (top) and distillation approaches (bottom) over 200 trials. "
736
+ ],
737
+ "table_body": "<table><tr><td rowspan=\"2\">Approach</td><td colspan=\"3\">Planar</td><td colspan=\"2\">6DoF</td><td rowspan=\"2\">Average</td></tr><tr><td>Balance Catapult Transport Mailbox Drawer</td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=\"2\">LLM-as-Policy (2D) (+) 6DoF Robot Utils (+) Verify &amp;Retry</td><td>28.0</td><td>33.3</td><td>21.5</td><td>0.0</td><td>0.0</td><td>27.6</td></tr><tr><td>5.5 45.0</td><td>2.5</td><td>35.0</td><td>0.0</td><td>1.3</td><td>8.8</td></tr><tr><td rowspan=\"2\">Distill No Retry</td><td></td><td>7.3</td><td>82.0</td><td>3.0</td><td>31.8</td><td>33.8</td></tr><tr><td>67.5</td><td>38.5</td><td>32.5</td><td>0.0</td><td>22.7</td><td>32.2</td></tr><tr><td rowspan=\"2\">Distill Ours</td><td>79.0</td><td>58.3</td><td>80.0</td><td>62.0</td><td>55.8</td><td>67.0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
738
+ "bbox": [
739
+ 478,
740
+ 268,
741
+ 823,
742
+ 364
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "later distilling stage. In particular, we observed that 6DoF actions are important for grasping diverse objects with complex geometry (Transport, Tab. 2), and manipulating articulated objects (Drawer, Mailbox, Tab. 2). ",
749
+ "bbox": [
750
+ 174,
751
+ 395,
752
+ 821,
753
+ 422
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Moreover, 6DoF exploration also helps in diversifying the data collection strategy, which provides the possibility to improve upon in the later distilling stage. For example in the catapult domain, LLM-as-Policy (2D) is only able to solve one of three possible goals (the closest bin) using a deterministic strategy. However, it provides no useful data for learning the other two goals, making it a poor data-collection policy. In contrast, incorporating 6 DOF robot utilities achieves lower but non-zero average success rates in all bins $( 1 6 . 3 \\%$ , $3 . 3 \\%$ , and $2 . 2 \\%$ , full table in appendix), which provide much better exploration data for distillation. ",
760
+ "bbox": [
761
+ 174,
762
+ 428,
763
+ 576,
764
+ 560
765
+ ],
766
+ "page_idx": 6
767
+ },
768
+ {
769
+ "type": "table",
770
+ "img_path": "images/78a03ced9845e5e36be93f05d891ac4d3e7a6d2c26453a50febf301bf9995670.jpg",
771
+ "table_caption": [
772
+ "Table 3: Sources & Propagation of Error. Accuracy $( \\% )$ of planning, verification, and execution success rate $( \\% )$ for each mailbox subtask. "
773
+ ],
774
+ "table_footnote": [],
775
+ "table_body": "<table><tr><td>Subtask</td><td>Planning Verify Execution</td></tr><tr><td>Open mailbox</td><td>100</td><td>43.5</td></tr><tr><td>Put package in mailbox</td><td>100</td><td>28.5</td></tr><tr><td>Raise mailbox flag</td><td>100</td><td>62.0</td></tr><tr><td>Close mailbox</td><td>100</td><td>94.2</td></tr></table>",
776
+ "bbox": [
777
+ 589,
778
+ 430,
779
+ 823,
780
+ 493
781
+ ],
782
+ "page_idx": 6
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "Verify & Retry always helps. In the verify & retry step, the LLM retries all tasks until they are successful. This simple addition improves performance in all domains, with $2 \\times , 3 \\times$ , $8 \\times$ , and $1 3 \\times$ in transport, catapult, balance, and drawer domains. Without this crucial step, we observe $0 . 0 \\%$ success rate in the mailbox domain, underscoring the difficulty of flawlessly executing long sequences of 6 DOF actions, and the importance of recovery after failure. ",
787
+ "bbox": [
788
+ 173,
789
+ 565,
790
+ 823,
791
+ 631
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Language Model Scaling. In addition to the final task success, we provide more detailed analysis of planning and success condition inference accuracy in Tab. 4. We evaluate on the proprietary GPT3 [66] (175B text-davinci-003) and the open LLAMA2 [67] (7B and 13B). We found that Llama models struggles in complex planning domains because they do not follow instructions provided in the prompts. For instance, in the drawer domain, both models fail to account for drawer opening and closing. However, we observe an upwards trend with respect to Llama model size, with the 13B model outperforming the 7B model by $+ 2 0 . 0 \\%$ and $+ 3 8 . 3 \\%$ in planning and success verification accuracy respectively. ",
798
+ "bbox": [
799
+ 174,
800
+ 638,
801
+ 624,
802
+ 704
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "table",
808
+ "img_path": "images/af501840695a83365f589251c0fbc7f8aabfd9958eafb1d1c3b46a1d762c10b3.jpg",
809
+ "table_caption": [],
810
+ "table_footnote": [
811
+ "Table 4: LLM Evaluation. "
812
+ ],
813
+ "table_body": "<table><tr><td>Model</td><td>Size</td><td>Planning</td><td>Success</td></tr><tr><td rowspan=\"2\">LLAMA2</td><td>7B</td><td>42.0</td><td>10.0</td></tr><tr><td>13B</td><td>62.0</td><td>48.3</td></tr><tr><td>GPT3</td><td>175B</td><td>82.0</td><td>91.1</td></tr></table>",
814
+ "bbox": [
815
+ 635,
816
+ 626,
817
+ 821,
818
+ 688
819
+ ],
820
+ "page_idx": 6
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "",
825
+ "bbox": [
826
+ 173,
827
+ 704,
828
+ 820,
829
+ 757
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "4.2 Distilled Policy Evaluation ",
836
+ "text_level": 1,
837
+ "bbox": [
838
+ 174,
839
+ 767,
840
+ 387,
841
+ 781
842
+ ],
843
+ "page_idx": 6
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "Robustness In, Robustness Out. By filtering trajectories with LLM’s inferred success condition, distilled policies inherit the robustness of their data collection policies while improving upon success rates $( + 2 3 . 4 \\%$ and $+ 3 3 . 2 \\%$ for no-retry and ours, Tab. 2). Since our distilled policy learned from a robust data collection policy, it also recovers from failures (e.g. failed grasps or placements) and continuously retries a task until it succeeds. Meanwhile, since the no-retry distilled policy learned from a data collection policy which did not retry upon failure, it is sensitive and brittle, leading to $- 3 4 . 8 \\%$ lower average success rate across all domains compared to ours (Tab. 2). ",
848
+ "bbox": [
849
+ 174,
850
+ 785,
851
+ 825,
852
+ 877
853
+ ],
854
+ "page_idx": 6
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "High Performance From Diverse Retry Attempts. Plotting how long policies take to solve the balance task (Fig. 6), we observed that our policy and its data collection policy continuously tries a diverse set of grasps and placements after each failed attempt until it succeeds. This results in higher success rates as the policy is given more time, and is reflected in their monotonically increasing success rates. ",
859
+ "bbox": [
860
+ 174,
861
+ 883,
862
+ 821,
863
+ 911
864
+ ],
865
+ "page_idx": 6
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "",
870
+ "bbox": [
871
+ 171,
872
+ 92,
873
+ 823,
874
+ 118
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "In contrast, baselines plateau after their first grasp/platement attempts. This highlights the synergy of two design decisions. First, the verify & retry step $( \\ S 3 . 3 )$ is crucial for demonstrating retrying behavior, but is by itself insufficient if each retrying action is the identical as the previous one. Instead, opting for a diffusion policy $( \\ S \\ 3 . 4 )$ for learning from and generating high-entropy, diverse retry attempts (Fig 5) is also essential for high performance. ",
881
+ "bbox": [
882
+ 174,
883
+ 119,
884
+ 517,
885
+ 223
886
+ ],
887
+ "page_idx": 7
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "Policy Learning Baselines. We investigate policy learning design decisions on the single-task balance domain, and remove language conditioning. While BC-Z found spatial softmax hurt their performance and opted for a mean pool, we observed using spatial softmax improved performance by $+ 5 . 0 \\%$ . Further, we found that switching from delta to absolute action spaces improved success rates $+ 6 . 5 \\%$ and $+ 9 . 5 \\%$ when using the MLP action decoder and our diffusion action decoder, respectively, confirming Chi et al. [12]’s findings. Lastly, we find that using our pseudo-random diffusion-based action encoder consistently outperforms a deterministic MLP action mappings, regardless of other design decisions. ",
892
+ "bbox": [
893
+ 174,
894
+ 229,
895
+ 517,
896
+ 348
897
+ ],
898
+ "page_idx": 7
899
+ },
900
+ {
901
+ "type": "image",
902
+ "img_path": "images/4744b196017d0467fd75e21b1770f0e42c8b6ad74eed9c78004a816824d44cc1.jpg",
903
+ "image_caption": [
904
+ "Figure 6: Distilled Robustness. Our policy inherits robust recovery from failure behavior from its data collection policy, while improving upon success rate. "
905
+ ],
906
+ "image_footnote": [],
907
+ "bbox": [
908
+ 531,
909
+ 121,
910
+ 820,
911
+ 305
912
+ ],
913
+ "page_idx": 7
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "",
918
+ "bbox": [
919
+ 178,
920
+ 348,
921
+ 825,
922
+ 375
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Sim2Real Transfer. We evaluated a policy trained on domain randomized synthetic data in a real world transport task with five novel objects (Fig. 5e). Averaging across ten episodes per object, our policy achieved $76 \\%$ success rate, demonstrating the effectiveness of our approach in Sim2Real transfer. ",
929
+ "bbox": [
930
+ 174,
931
+ 381,
932
+ 544,
933
+ 446
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "4.3 Limitations ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 477,
944
+ 287,
945
+ 491
946
+ ],
947
+ "page_idx": 7
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "By using priviledged simulation state information, the LLM can infer success conditions which uses ground truth contact, joint information, and object poses. This means our implementation of the data generation phase is limited to simulation environments, and our policy requires sim2real transfer. Further, Our data generation method relies on existing 3D assets and environments, which presents a further opportunity for scaling up with assets from 3D generative models or procedural generation. Finally, while our approach’s dataset contains text labels and success labels for all subtasks, we have only evaluated its effectiveness in learning the root task. Learning from all subtasks and growing a robot’s set of learned, reusable sub-skills over time to enable compositional generalization is left for future work. ",
952
+ "bbox": [
953
+ 174,
954
+ 498,
955
+ 544,
956
+ 578
957
+ ],
958
+ "page_idx": 7
959
+ },
960
+ {
961
+ "type": "table",
962
+ "img_path": "images/9ae4afdd3193c47d2f2b4a04951d6281d21f9cc3a160399a0b424263980e3765.jpg",
963
+ "table_caption": [],
964
+ "table_footnote": [
965
+ "Table 5: Policy Learning Ablations. Action generation using diffusion models [50] robustly outperforms feed-forward models across other policy design decisions. "
966
+ ],
967
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Output</td><td colspan=\"2\">Input</td><td rowspan=\"2\">Success (%)</td></tr><tr><td>Generation</td><td>Rep.Exec Pred Pool</td><td></td><td>Proprio</td></tr><tr><td>BC-Z</td><td>FeedForward Delta</td><td>1</td><td>10 Avg</td><td>xxx</td><td>0.0</td></tr><tr><td></td><td>FeedForward Delta</td><td>4</td><td>10 Avg</td><td></td><td>15.0</td></tr><tr><td></td><td>FeedForward Delta</td><td>8</td><td>10 Avg</td><td></td><td>18.5</td></tr><tr><td>Ours</td><td>FeedForward Delta</td><td>8</td><td>16 Spatial</td><td></td><td>29.0</td></tr><tr><td></td><td>FeedForward Abs</td><td>8</td><td>16 Spatial</td><td>ν/√√</td><td>35.5</td></tr><tr><td></td><td>Diffusion</td><td>Delta 8</td><td>16 Spatial</td><td></td><td>69.5</td></tr><tr><td></td><td>Diffusion</td><td>Abs 8</td><td>16Avg</td><td></td><td>76.5</td></tr><tr><td></td><td>Diffusion</td><td>Abs 8</td><td>16 Spatial</td><td></td><td>79.0</td></tr></table>",
968
+ "bbox": [
969
+ 555,
970
+ 382,
971
+ 823,
972
+ 506
973
+ ],
974
+ "page_idx": 7
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "",
979
+ "bbox": [
980
+ 174,
981
+ 579,
982
+ 821,
983
+ 643
984
+ ],
985
+ "page_idx": 7
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "5 Conclusion ",
990
+ "text_level": 1,
991
+ "bbox": [
992
+ 173,
993
+ 667,
994
+ 294,
995
+ 684
996
+ ],
997
+ "page_idx": 7
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "We proposed “Scaling Up and Distilling Down”, a framework that combines the strengths of LLMs, samplingbased planners, and policy learning into a single system that automatically generates, labels, and distills diverse robot-complete exploration experience into a multi-task visuo-linguo-motor policy. The distilled policy inherits long-horizon behaviour, rich low-level manipulation skills, and robustness from its data collection policy while improving upon performance beyond its training distribution. We believe that this integrated approach is a step towards putting robotics on the same scaling trend as that of LLM development while not compromising on the rich low-level control. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 698,
1005
+ 825,
1006
+ 790
1007
+ ],
1008
+ "page_idx": 7
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Acknowledgments ",
1013
+ "text_level": 1,
1014
+ "bbox": [
1015
+ 176,
1016
+ 816,
1017
+ 297,
1018
+ 830
1019
+ ],
1020
+ "page_idx": 7
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "We would like to thank Cheng Chi, Zeyi Liu, Samir Yitzhak Gadre, Mengda Xu, Zhenjia Xu, Mandi Zhao and Dominik Bauer for their helpful feedback and fruitful discussions. This work was supported in part by Google Research Award, NSF Award #2143601, and #2132519. We would like to thank Google for the UR5 robot hardware. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of the sponsors. ",
1025
+ "bbox": [
1026
+ 176,
1027
+ 844,
1028
+ 823,
1029
+ 911
1030
+ ],
1031
+ "page_idx": 7
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "References \n[1] S. Song, A. Zeng, J. Lee, and T. Funkhouser. Grasping in the wild: Learning 6dof closed-loop grasping from low-cost demonstrations. IEEE Robotics and Automation Letters, 5(3):4978–4985, 2020. \n[2] T. Z. Zhao, V. Kumar, S. Levine, and C. Finn. Learning fine-grained bimanual manipulation with low-cost hardware. arXiv preprint arXiv:2304.13705, 2023. \n[3] E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026–5033. IEEE, 2012. doi:10.1109/IROS.2012.6386109. \n[4] A. Mandlekar, D. Xu, J. Wong, S. Nasiriany, C. Wang, R. Kulkarni, L. Fei-Fei, S. Savarese, Y. Zhu, and R. Mart´ın-Mart´ın. What matters in learning from offline human demonstrations for robot manipulation. In arXiv preprint arXiv:2108.03298, 2021. \n[5] S. Nair, A. Rajeswaran, V. Kumar, C. Finn, and A. Gupta. R3m: A universal visual representation for robot manipulation. arXiv preprint arXiv:2203.12601, 2022. \n[6] K. Grauman, A. Westbury, E. Byrne, Z. Chavis, A. Furnari, R. Girdhar, J. Hamburger, H. Jiang, M. Liu, X. Liu, et al. Ego4d: Around the world in 3,000 hours of egocentric video. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18995–19012, 2022. \n[7] J. Fu, A. Kumar, O. Nachum, G. Tucker, and S. Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020. \n[8] J. Wu, X. Sun, A. Zeng, S. Song, J. Lee, S. Rusinkiewicz, and T. Funkhouser. Spatial action maps for mobile manipulation. arXiv preprint arXiv:2004.09141, 2020. \n[9] M. Shridhar, L. Manuelli, and D. Fox. Perceiver-actor: A multi-task transformer for robotic manipulation. In Proceedings of the 6th Conference on Robot Learning (CoRL), 2022. \n[10] M. Shridhar, L. Manuelli, and D. Fox. Cliport: What and where pathways for robotic manipulation. In Proceedings of the 5th Conference on Robot Learning (CoRL), 2021. \n[11] P. Florence, C. Lynch, A. Zeng, O. Ramirez, A. Wahid, L. Downs, A. Wong, J. Lee, I. Mordatch, and J. Tompson. Implicit behavioral cloning. Conference on Robot Learning (CoRL), November 2021. \n[12] C. Chi, S. Feng, Y. Du, Z. Xu, E. Cousineau, B. Burchfiel, and S. Song. Diffusion policy: Visuomotor policy learning via action diffusion. In Proceedings of Robotics: Science and Systems (RSS), 2023. \n[13] C. Lynch and P. Sermanet. Language conditioned imitation learning over unstructured data. arXiv preprint arXiv:2005.07648, 2020. \n[14] S. Stepputtis, J. Campbell, M. Phielipp, S. Lee, C. Baral, and H. Ben Amor. Language-conditioned imitation learning for robot manipulation tasks. Advances in Neural Information Processing Systems, 33:13139–13150, 2020. \n[15] E. Jang, A. Irpan, M. Khansari, D. Kappler, F. Ebert, C. Lynch, S. Levine, and C. Finn. Bc-z: Zero-shot task generalization with robotic imitation learning. In A. Faust, D. Hsu, and G. Neumann, editors, Proceedings of the 5th Conference on Robot Learning, volume 164 of Proceedings of Machine Learning Research, pages 991–1002. PMLR, 08–11 Nov 2022. URL https://proceedings.mlr.press/v164/jang22a. html. \n[16] C. Lynch, A. Wahid, J. Tompson, T. Ding, J. Betker, R. Baruch, T. Armstrong, and P. Florence. Interactive language: Talking to robots in real time. arXiv preprint arXiv:2210.06407, 2022. \n[17] O. Mees, L. Hermann, and W. Burgard. What matters in language conditioned robotic imitation learning over unstructured data. IEEE Robotics and Automation Letters, 7(4):11205–11212, 2022. \n[18] A. Brohan, N. Brown, J. Carbajal, Y. Chebotar, J. Dabis, C. Finn, K. Gopalakrishnan, K. Hausman, A. Herzog, J. Hsu, et al. Rt-1: Robotics transformer for real-world control at scale. arXiv preprint arXiv:2212.06817, 2022. \n[19] O. Mees, L. Hermann, E. Rosete-Beas, and W. Burgard. Calvin: A benchmark for language-conditioned policy learning for long-horizon robot manipulation tasks. IEEE Robotics and Automation Letters, 7(3): 7327–7334, 2022. \n[20] T. Xiao, H. Chan, P. Sermanet, A. Wahid, A. Brohan, K. Hausman, S. Levine, and J. Tompson. Robotic skill acquisition via instruction augmentation with vision-language models. arXiv preprint arXiv:2211.11736, 2022. \n[21] J. Zhang, K. Pertsch, J. Zhang, and J. J. Lim. Sprint: Scalable policy pre-training via language instruction relabeling. arXiv preprint arXiv:2306.11886, 2023. \n[22] S. Nair, E. Mitchell, K. Chen, S. Savarese, C. Finn, et al. Learning language-conditioned robot behavior from offline data and crowd-sourced annotation. In Conference on Robot Learning, pages 1303–1315. PMLR, 2022. \n[23] R. Goyal, S. Ebrahimi Kahou, V. Michalski, J. Materzynska, S. Westphal, H. Kim, V. Haenel, I. Fruend, P. Yianilos, M. Mueller-Freitag, et al. The” something something” video database for learning and evaluating visual common sense. In Proceedings of the IEEE international conference on computer vision, pages 5842–5850, 2017. \n[24] D. Damen, H. Doughty, G. M. Farinella, S. Fidler, A. Furnari, E. Kazakos, D. Moltisanti, J. Munro, T. Perrett, W. Price, et al. Scaling egocentric vision: The epic-kitchens dataset. In Proceedings of the European Conference on Computer Vision (ECCV), pages 720–736, 2018. \n[25] A. S. Chen, S. Nair, and C. Finn. Learning generalizable robotic reward functions from” in-the-wild” human videos. arXiv preprint arXiv:2103.16817, 2021. \n[26] R. Wang, J. Lehman, J. Clune, and K. O. Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019. \n[27] M. Jiang, M. Dennis, J. Parker-Holder, J. Foerster, E. Grefenstette, and T. Rocktaschel. Replay-guided ¨ adversarial environment design. Advances in Neural Information Processing Systems, 34:1884–1897, 2021. \n[28] J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015. \n[29] K. Fang, T. Migimatsu, A. Mandlekar, L. Fei-Fei, and J. Bohg. Active task randomization: Learning visuomotor skills for sequential manipulation by proposing feasible and novel tasks. arXiv preprint arXiv:2211.06134, 2022. \n[30] Y. Du, O. Watkins, Z. Wang, C. Colas, T. Darrell, P. Abbeel, A. Gupta, and J. Andreas. Guiding pretraining in reinforcement learning with large language models. arXiv preprint arXiv:2302.06692, 2023. \n[31] S. Mirchandani, S. Karamcheti, and D. Sadigh. Ella: Exploration through learned language abstraction. Advances in Neural Information Processing Systems, 34:29529–29540, 2021. \n[32] R. Mendonca, S. Bahl, and D. Pathak. Alan: Autonomously exploring robotic agents in the real world. arXiv preprint arXiv:2302.06604, 2023. \n[33] C. R. Garrett, R. Chitnis, R. Holladay, B. Kim, T. Silver, L. P. Kaelbling, and T. Lozano-Perez. Integrated ´ task and motion planning. Annual review of control, robotics, and autonomous systems, 4:265–293, 2021. \n[34] W. Huang, P. Abbeel, D. Pathak, and I. Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. In International Conference on Machine Learning, pages 9118–9147. PMLR, 2022. \n[35] M. Ahn, A. Brohan, N. Brown, Y. Chebotar, O. Cortes, B. David, C. Finn, K. Gopalakrishnan, K. Hausman, A. Herzog, et al. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691, 2022. \n[36] W. Huang, F. Xia, T. Xiao, H. Chan, J. Liang, P. Florence, A. Zeng, J. Tompson, I. Mordatch, Y. Chebotar, et al. Inner monologue: Embodied reasoning through planning with language models. In 6th Annual Conference on Robot Learning. \n[37] J. Liang, W. Huang, F. Xia, P. Xu, K. Hausman, B. Ichter, P. Florence, and A. Zeng. Code as policies: Language model programs for embodied control. In arXiv preprint arXiv:2209.07753, 2022. \n[38] D. Driess, F. Xia, M. S. Sajjadi, C. Lynch, A. Chowdhery, B. Ichter, A. Wahid, J. Tompson, Q. Vuong, T. Yu, et al. Palm-e: An embodied multimodal language model. ICML, 2023. \n[39] K. Lin, C. Agia, T. Migimatsu, M. Pavone, and J. Bohg. Text2motion: From natural language instructions to feasible plans. arXiv preprint arXiv:2303.12153, 2023. \n[40] I. Singh, V. Blukis, A. Mousavian, A. Goyal, D. Xu, J. Tremblay, D. Fox, J. Thomason, and A. Garg. Progprompt: Generating situated robot task plans using large language models. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pages 11523–11530. IEEE, 2023. \n[41] A. Agarwal, A. Kumar, J. Malik, and D. Pathak. Legged locomotion in challenging terrains using egocentric vision, 2022. \n[42] D. Seita, A. Ganapathi, R. Hoque, M. Hwang, E. Cen, A. K. Tanwani, A. Balakrishna, B. Thananjeyan, J. Ichnowski, N. Jamali, K. Yamane, S. Iba, J. F. Canny, and K. Goldberg. Deep imitation learning of sequential fabric smoothing policies. CoRR, abs/1910.04854, 2019. URL http://arxiv.org/abs/1910. 04854. \n[43] T. Miki, J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning robust perceptive locomotion for quadrupedal robots in the wild. Science Robotics, 7(62):eabk2822, 2022. \n[44] S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016. \n[45] K. Hausman, Y. Chebotar, S. Schaal, G. Sukhatme, and J. J. Lim. Multi-modal imitation learning from unstructured demonstrations using generative adversarial nets. Advances in neural information processing systems, 30, 2017. \n[46] N. M. M. Shafiullah, Z. J. Cui, A. Altanzaya, and L. Pinto. Behavior transformers: Cloning $k$ modes with one stone, 2022. \n[47] T. Yu, D. Quillen, Z. He, R. Julian, K. Hausman, C. Finn, and S. Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on robot learning, pages 1094–1100. PMLR, 2020. \n[48] D. Kalashnikov, J. Varley, Y. Chebotar, B. Swanson, R. Jonschkowski, C. Finn, S. Levine, and K. Hausman. Mt-opt: Continuous multi-task robotic reinforcement learning at scale. arXiv preprint arXiv:2104.08212, 2021. \n[49] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pages 2256–2265. PMLR, 2015. \n[50] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020. \n[51] C. Saharia, W. Chan, S. Saxena, L. Li, J. Whang, E. L. Denton, K. Ghasemipour, R. Gontijo Lopes, B. Karagol Ayan, T. Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems, 35:36479–36494, 2022. \n[52] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022. \n[53] L. Chen, K. Lu, A. Rajeswaran, K. Lee, A. Grover, M. Laskin, P. Abbeel, A. Srinivas, and I. Mordatch. Decision transformer: Reinforcement learning via sequence modeling. Advances in neural information processing systems, 34:15084–15097, 2021. \n[54] S. Levine, A. Kumar, G. Tucker, and J. Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020. \n[55] S. M. LaValle et al. Rapidly-exploring random trees: A new tool for path planning. \n[56] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763. PMLR, 2021. \n[57] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. \n[58] J. Song, C. Meng, and S. Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations. \n[59] L. Downs, A. Francis, N. Koenig, B. Kinman, R. Hickman, K. Reymann, T. B. McHugh, and V. Vanhoucke. Google scanned objects: A high-quality dataset of 3d scanned household items, 2022. URL https://arxiv.org/abs/2204.11918. \n[60] K. Zakka. Scanned Objects MuJoCo Models, 7 2022. URL https://github.com/kevinzakka/mujoco scanned objects. \n[61] A. Kamath, M. Singh, Y. LeCun, G. Synnaeve, I. Misra, and N. Carion. Mdetr-modulated detection for end-to-end multi-modal understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1780–1790, 2021. \n[62] X. Gu, T.-Y. Lin, W. Kuo, and Y. Cui. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921, 2021. \n[63] T. Zhang, Z. McCarthy, O. Jow, D. Lee, X. Chen, K. Goldberg, and P. Abbeel. Deep imitation learning for complex manipulation tasks from virtual reality teleoperation. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 5628–5635. IEEE, 2018. \n[64] P. Florence, L. Manuelli, and R. Tedrake. Self-supervised correspondence in visuomotor policy learning. IEEE Robotics and Automation Letters, 5(2):492–499, 2019. \n[65] A. Mandlekar, F. Ramos, B. Boots, S. Savarese, L. Fei-Fei, A. Garg, and D. Fox. Iris: Implicit reinforcement without interaction at scale for learning control from offline robot manipulation data. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 4414–4420. IEEE, 2020. \n[66] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. \n[67] H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. ",
1036
+ "bbox": [
1037
+ 169,
1038
+ 71,
1039
+ 828,
1040
+ 915
1041
+ ],
1042
+ "page_idx": 8
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "",
1047
+ "bbox": [
1048
+ 171,
1049
+ 58,
1050
+ 828,
1051
+ 922
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "",
1058
+ "bbox": [
1059
+ 169,
1060
+ 46,
1061
+ 828,
1062
+ 919
1063
+ ],
1064
+ "page_idx": 10
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "",
1069
+ "bbox": [
1070
+ 169,
1071
+ 84,
1072
+ 828,
1073
+ 574
1074
+ ],
1075
+ "page_idx": 11
1076
+ }
1077
+ ]
parse/dev/3uwj8QZROL/3uwj8QZROL_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3uwj8QZROL/3uwj8QZROL_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/Nayau9fwXU/Nayau9fwXU.md ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIFFUSION-BASED IMAGE TRANSLATION USING DIS-ENTANGLED STYLE AND CONTENT REPRESENTATION
2
+
3
+ Gihyun Kwon1, Jong Chul $\mathbf { Y } \mathbf { e } ^ { 2 , 1 }$
4
+ Department of Bio and Brain Engineering1, Kim Jaechul Graduate School of $\mathsf { A I } ^ { 2 }$ , KAIST
5
+ cyclomon,jong.ye@kaist.ac.kr
6
+
7
+ ![](images/53ecacf54a3c121a6934bef6ee1398844f4e613366779d29467147a64b79a6a4.jpg)
8
+ Figure 1: Image translation results by DiffuseIT. Our model can generate high-quality translation outputs using both text and image conditions. More results can be found in the experiment section.
9
+
10
+ # ABSTRACT
11
+
12
+ Diffusion-based image translation guided by semantic texts or a single target image has enabled flexible style transfer which is not limited to the specific domains. Unfortunately, due to the stochastic nature of diffusion models, it is often difficult to maintain the original content of the image during the reverse diffusion. To address this, here we present a novel diffusion-based unsupervised image translation method, dubbed as DiffuseIT, using disentangled style and content representation. Specifically, inspired by the slicing Vision Transformer (Tumanyan et al., 2022), we extract intermediate keys of multihead self attention layer from ViT model and used them as the content preservation loss. Then, an image guided style transfer is performed by matching the [CLS] classification token from the denoised samples and target image, whereas additional CLIP loss is used for the text-driven style transfer. To further accelerate the semantic change during the reverse diffusion, we also propose a novel semantic divergence loss and resampling strategy. Our experimental results show that the proposed method outperforms state-of-the-art baseline models in both text-guided and image-guided translation tasks.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Image translation is a task in which the model receives an input image and converts it into a target domain. Early image translation approaches (Zhu et al., 2017; Park et al., 2020; Isola et al., 2017) were mainly designed for single domain translation, but soon extended to multi-domain translation (Choi et al., 2018; Lee et al., 2019). As these methods demand large training set for each domain, image translation approaches using only a single image pairs have been studied, which include the one-to-one image translation using multiscale training (Lin et al., 2020), or patch matching strategy (Granot et al., 2022; Kolkin et al., 2019). Most recently, Splicing ViT (Tumanyan et al., 2022) exploits a pre-trained DINO ViT (Caron et al., 2021) to convert the semantic appearance of a given image into a target domain while maintaining the structure of input image.
17
+
18
+ On the other hand, by employing the recent text-to-image embedding model such as CLIP (Radford et al., 2021), several approaches have attempted to generate images conditioned on text prompts (Patashnik et al., 2021; Gal et al., 2021; Crowson et al., 2022; Couairon et al., 2022). As these methods rely on Generative Adversarial Networks (GAN) as a backbone generative model, the semantic changes are not often properly controlled when applied to an out-of-data (OOD) image generation.
19
+
20
+ Recently, score-based generative models (Ho et al., 2020; Song et al., 2020b; Nichol & Dhariwal, 2021) have demonstrated state-of-the-art performance in text-conditioned image generation (Ramesh et al., 2022; Saharia et al., 2022b; Crowson, 2022; Avrahami et al., 2022). However, when it comes to the image translation scenario in which multiple conditions (e.g. input image, text condition) are given to the score based model, disentangling and separately controlling the components still remains as an open problem.
21
+
22
+ In fact, one of the most important open questions in image translation by diffusion models is to transform only the semantic information (or style) while maintaining the structure information (or content) of the input image. Although this could not be an issue with the conditional diffusion models trained with matched input and target domain images (Saharia et al., 2022a), such training is impractical in many image translation tasks (e.g. summer-to-winter, horse-to-zebra translation). On the other hand, existing methods using unconditional diffusion models often fail to preserve content information due to the entanglement problems in which semantic and content change at the same time (Avrahami et al., 2022; Crowson, 2022). DiffusionCLIP (Kim et al., 2022) tried to address this problem using denoising diffusion implicit models (DDIM) (Song et al., 2020a) and pixel-wise loss, but the score function needs to be fine-tuned for a novel target domain, which is computationally expensive.
23
+
24
+ In order to control the diffusion process in such a way that it produces the output that simultaneously retain the content of the input image and follow the semantics of the target text or image, here we introduce a loss function using a pre-trained Vision Transformer (ViT) (Dosovitskiy et al., 2020). Specifically, inspired by the recent idea (Tumanyan et al., 2022), we extract intermediate keys of multihead self attention layer and [CLS] classification tokens of the last layer from the DINO ViT model and used them as our content and style regularization, respectively. More specifically, to preserve the structural information, we use the similarity and contrastive loss between intermediate keys of the input and denoised image during the sampling. Then, an image guided style transfer is performed by matching the [CLS] token between the denoised sample and the target domain, whereas additional CLIP loss is used for the text-driven style transfer. To further improve the sampling speed, we propose a novel semantic divergence loss and resampling strategy.
25
+
26
+ Extensive experimental results including Fig. 1 confirmed that our method provide state-of-the-art performance in both text- and image- guided style transfer tasks quantitatively and qualitatively. To our best knowledge, this is the first unconditional diffusion model-based image translation method that allows both text- and image- guided style transfer without altering input image content.
27
+
28
+ # 2 RELATED WORK
29
+
30
+ Text-guided image synthesis. Thanks to the outstanding performance of text-to-image alignment in the feature space, CLIP has been widely used in various text-related computer vision tasks including object generation (Liu et al., 2021; Wang et al., 2022a), style transfer (Kwon & Ye, 2021; Fu et al., 2021), object segmentation (Luddecke & Ecker, 2022; Wang et al., 2022b), etc. Several recent ¨ approaches also demonstrated state-of-the-art performance in text-guided image manipulation task by combining the CLIP with image generation models. Previous approaches leverage pre-trained StyleGAN (Karras et al., 2020) for image manipulation with a text condition (Patashnik et al., 2021; Gal et al., 2021; Wei et al., 2022). However, StyleGAN-based methods cannot be used in arbitrary natural images since it is restricted to the pre-trained data domain. Pre-trained VQGAN (Esser et al., 2021) was proposed for better generalization capability in the image manipulation, but it often suffers from poor image quality due to limited power of the backbone model.
31
+
32
+ With the advance of score-based generative models such as Denoising Diffusion Probabilistic Model (DDPM) (Ho et al., 2020), several methods (Ramesh et al., 2022; Saharia et al., 2022b) tried to generate photo-realistic image samples with given text conditions. However, these approaches are not adequate for image translation framework as the text condition and input image are not usually disentangled. Although DiffusionCLIP (Kim et al., 2022) partially solves the problem using DDIM sampling and pixelwise regularization during the reverse diffusion, it has major disadvantage in that it requires fine-tuning process of score models. As a concurrent work, DDIB(Su et al., 2022) proposed diffusion model based image translation using deterministic probability flow ODE formulation.
33
+
34
+ Single-shot Image Translation. In image translation using single target image, early models mainly focused on image style transfer (Gatys et al., 2016; Huang & Belongie, 2017; Park & Lee, 2019; Yoo et al., 2019). Afterwards, methods using StyleGAN adaptation (Ojha et al., 2021; Zhu et al., 2021; Kwon & Ye, 2022; Chong & Forsyth, 2021) showed great performance, but there are limitations as the models are domain-specific (e.g. human faces). In order to overcome this, methods for converting unseen image into a semantic of target (Lin et al., 2020; Kolkin et al., 2019; Granot et al., 2022) have been proposed, but these methods often suffer from degraded image quality. Recently, Splicing ViT (Tumanyan et al., 2022) successfully exploited pre-trained DINO ViT(Caron et al., 2021) to convert the semantic appearance of given image into target domain while preserving the structure of input.
35
+
36
+ # 3 PROPOSED METHOD
37
+
38
+ # 3.1 DDPM SAMPLING WITH MANIFOLD CONSTRAINT
39
+
40
+ In DDPMs (Ho et al., 2020), starting from a clean image ${ \pmb x } _ { 0 } \sim { \pmb q } ( { \pmb x } _ { 0 } )$ , a forward diffusion process $q ( { \pmb x } _ { t } | { \pmb x } _ { t - 1 } )$ is described as a Markov chain that gradually adds Gaussian noise at every time steps $t$ :
41
+
42
+ $$
43
+ q ( \pmb { x } _ { T } | \pmb { x } _ { 0 } ) : = \prod _ { t = 1 } ^ { T } q ( \pmb { x } _ { t } | \pmb { x } _ { t - 1 } ) , \quad \mathrm { w h e r e } \quad q ( \pmb { x } _ { t } | \pmb { x } _ { t - 1 } ) : = \mathcal { N } ( \pmb { x } _ { t } ; \sqrt { 1 - \beta _ { t } } \pmb { x } _ { t - 1 } , \beta _ { t } I ) ,
44
+ $$
45
+
46
+ where $\{ \beta \} _ { t = 0 } ^ { T }$ is a variance schedule. By denoting $\alpha _ { t } : = 1 - \beta _ { t }$ and $\textstyle { \bar { \alpha _ { t } } } : = \prod _ { s = 1 } ^ { t } \alpha _ { s }$ , the forward diffused sample at $t$ , i.e. $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ , can be sampled in one step as:
47
+
48
+ $$
49
+ \begin{array} { r } { \pmb { x } _ { t } = \sqrt { \bar { \alpha } _ { t } } \pmb { x } _ { 0 } + \sqrt { 1 - \bar { \alpha } _ { t } } \pmb { \epsilon } , \quad \mathrm { w h e r e } \quad \epsilon \sim \mathcal { N } ( \mathbf { 0 } , I ) . } \end{array}
50
+ $$
51
+
52
+ As the reverse of the forward step $q ( \pmb { x } _ { t - 1 } | \pmb { x } _ { t } )$ is intractable, DDPM learns to maximize the variational lowerbound through a parameterized Gaussian transitions $p _ { \theta } ( \pmb { x } _ { t - 1 } | \pmb { x } _ { t } )$ with the parameter $\theta$ . Accordingly, the reverse process is approximated as Markov chain with learned mean and fixed variance, starting from $p ( { \bf x } _ { T } ) = \mathcal { N } ( { \bf x } _ { T } ; \bar { \bf 0 } , I )$ :
53
+
54
+ $$
55
+ p _ { \theta } ( \boldsymbol { x } _ { 0 : T } ) : = p _ { \theta } ( \boldsymbol { x } _ { T } ) \prod _ { t = 1 } ^ { T } p _ { \theta } ( \boldsymbol { x } _ { t - 1 } | \boldsymbol { x } _ { t } ) , \quad \mathrm { w h e r e } \quad p _ { \theta } ( \boldsymbol { x } _ { t - 1 } | \boldsymbol { x } _ { t } ) : = \mathcal { N } ( \boldsymbol { x } _ { t - 1 } ; \boldsymbol { \mu } _ { \theta } ( \boldsymbol { x } _ { t } , t ) , \sigma _ { t } ^ { 2 } I ) .
56
+ $$
57
+
58
+ where
59
+
60
+ $$
61
+ \pmb { \mu } _ { \theta } ( \pmb { x } _ { t } , t ) : = \frac { 1 } { \sqrt { \alpha _ { t } } } \bigg ( \pmb { x } _ { t } - \frac { 1 - \alpha _ { t } } { \sqrt { 1 - \bar { \alpha } _ { t } } } \pmb { \epsilon } _ { \theta } ( \pmb { x } _ { t } , t ) \bigg ) ,
62
+ $$
63
+
64
+ Here, $\epsilon _ { \theta } ( x _ { t } , t )$ is the diffusion model trained by optimizing the objective:
65
+
66
+ $$
67
+ \operatorname* { m i n } _ { \theta } L ( \theta ) , \quad \mathrm { w h e r e } \quad L ( \theta ) : = \mathbb { E } _ { t , x _ { 0 } , \epsilon } \Bigl [ \| \epsilon - \epsilon _ { \theta } \bigl ( \sqrt { \bar { \alpha } _ { t } } x _ { 0 } + \sqrt { 1 - \bar { \alpha } _ { t } } \epsilon , t \bigr ) \| ^ { 2 } \Bigr ] .
68
+ $$
69
+
70
+ After the optimization, by plugging learned score function into the generative (or reverse) diffusion process, one can simply sample from $p _ { \theta } ( \pmb { x } _ { t - 1 } | \pmb { x } _ { t } )$ by
71
+
72
+ $$
73
+ { \pmb x } _ { t - 1 } = { \pmb \mu } _ { \theta } ( { \pmb x } _ { t } , t ) + \sigma _ { t } { \pmb \epsilon } = \frac { 1 } { \sqrt { \alpha _ { t } } } \bigg ( { \pmb x } _ { t } - \frac { 1 - \alpha _ { t } } { \sqrt { 1 - \bar { \alpha } _ { t } } } { \pmb \epsilon } _ { \theta } ( { \pmb x } _ { t } , t ) \bigg ) + \sigma _ { t } { \pmb \epsilon }
74
+ $$
75
+
76
+ In image translation using conditional diffusion models (Saharia et al., 2022a; Sasaki et al., 2021),√ the diffusion model $\epsilon _ { \theta }$ in (5) and (6) should be replaced with $\epsilon _ { \theta } ( { \pmb y } , \sqrt { \bar { \alpha } _ { t } } { \pmb x } _ { 0 } + \sqrt { 1 - \bar { \alpha } _ { t } } { \epsilon } , t )$ where $\textbf { { y } }$ denotes the matched target image. Accordingly, the sample generation is tightly controlled by the matched target in a supervised manner, so that the image content change rarely happen. Unfortunately, the requirement of the matched targets for the training makes this approach impractical.
77
+
78
+ To address this, Dhariwal & Nichol (2021) proposed classifier-guided image translation using the unconditional diffusion model training as in (5) and a pre-trained classifier $p _ { \phi } ( \pmb { y } | \pmb { x } _ { t } )$ . Specifically, $\mu _ { \theta } ( x _ { t } , t )$ in (4) and (6) are supplemented with the gradient of the classifier, i.e. $\hat { \mu } _ { \boldsymbol { \theta } } ( \mathbf { { x } } _ { t } , t ) : =$ $\begin{array} { r } { \pmb { \mu _ { \boldsymbol { \theta } } } ( \pmb { x } _ { t } , t ) + \sigma _ { t } \nabla _ { \pmb { x } _ { t } } \log p _ { \phi } ( \pmb { y } | \pmb { x } _ { t } ) } \end{array}$ . However, most of the classifiers, which should be separately trained, are not usually sufficient to control the content of the samples from the reverse diffusion process.
79
+
80
+ ![](images/0149e98efe21671497c4a5b0926d07a81c5bb04b5eb13420addf7d160d9d803f.jpg)
81
+ Figure 2: Given the input image $\pmb { x } _ { s r c }$ , we guide the reverse diffusion process $\{ \pmb { x } _ { t } \} _ { t = T } ^ { 0 }$ using various losses. (a) $\ell _ { c o n t }$ : the structural similarity loss between input and outputs in terms of contrastive loss between extracted keys from ViT. (b) $\ell _ { C L I P }$ : relative distance to the target text $\mathbf { \delta } d _ { t r g }$ in CLIP space in terms of $\mathbf { \delta } _ { \mathbf { \mathcal { X } } _ { s r c } }$ and $\pmb { d } _ { s r c }$ . (c) $\ell _ { s t y }$ : the [CLS] token distances between the outputs and target $\mathbf { \Delta } _ { \pmb { x } _ { t r g } }$ . (d) $\ell _ { s e m }$ : dissimilarity between the [CLS] token from the present and past denoised samples.
82
+
83
+ Inspired by the recent manifold constrained gradient (MCG) for inverse problems (Chung et al., 2022a), here we formulate our content and style guidance problem as an inverse problem, which can be solved by minimizing the following total cost function with respect to the sample $_ { \textbf { \em x } }$ :
84
+
85
+ $$
86
+ \begin{array} { r } { \ell _ { t o t a l } ( { \pmb x } ; { \pmb x } _ { t r g } , { \pmb x } _ { s r c } ) , \quad \mathrm { o r } \quad \ell _ { t o t a l } ( { \pmb x } ; { \pmb d } _ { t r g } , { \pmb x } _ { s r c } , { \pmb d } _ { s r c } ) } \end{array}
87
+ $$
88
+
89
+ where $\pmb { x } _ { s r c }$ and $\pmb { x } _ { t r g }$ refer to the source and target images, respectively; and $\pmb { d } _ { s r c }$ and $\mathbf { \delta } d _ { t r g }$ refer to the source and target text, respectively. In our paper, the first form of the total loss in (7) is used for image-guided translation, where the second form is for the text-guided translation. Then, the sampling from the reverse diffusion with MCG is given by
90
+
91
+ $$
92
+ \begin{array} { l l l } { \displaystyle { \boldsymbol { x } _ { t - 1 } ^ { \prime } = \frac { 1 } { \sqrt { \alpha _ { t } } } \Big ( \boldsymbol { x } _ { t } - \frac { 1 - \alpha _ { t } } { \sqrt { 1 - \bar { \alpha } _ { t } } } \epsilon _ { \theta } \big ( \boldsymbol { x } _ { t } , t \big ) \Big ) + \sigma _ { t } \epsilon } } \\ { \displaystyle { \boldsymbol { x } _ { t - 1 } = \boldsymbol { x } _ { t - 1 } ^ { \prime } - \nabla _ { \boldsymbol { x } _ { t } } \ell _ { t o t a l } \big ( \hat { \boldsymbol { x } } _ { 0 } \big ( \boldsymbol { x } _ { t } \big ) \big ) } } \end{array}
93
+ $$
94
+
95
+ where $\hat { \pmb { x } } _ { 0 } ( { \pmb x } _ { t } )$ refers to the estimated clean image from the sample $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ using the Tweedie’s formula (Kim & Ye, 2021):
96
+
97
+ $$
98
+ \hat { \pmb { x } } _ { 0 } ( \pmb { x } _ { t } ) : = \frac { \pmb { x } _ { t } } { \sqrt { \bar { \alpha } _ { t } } } - \frac { \sqrt { 1 - \bar { \alpha } _ { t } } } { \sqrt { \bar { \alpha } _ { t } } } \pmb { \epsilon } _ { \theta } ( \pmb { x } _ { t } , t ) .
99
+ $$
100
+
101
+ In the following, we describe how the total loss $\ell _ { t o t a l }$ is defined. For brevity, we notate $\hat { \pmb { x } } _ { 0 } ( { \pmb x } _ { t } )$ as $_ { \textbf { \em x } }$ in the following sections.
102
+
103
+ # 3.2 STRUCTURE LOSS
104
+
105
+ As previously mentioned, the main objective of image translation is maintaining the content structure between output and the input image, while guiding the output to follow semantic of target condition. Existing methods (Couairon et al., 2022; Kim et al., 2022) use pixel-wise loss or the perceptual loss for the content preservation. However, the pixel space does not explicitly discriminate content and semantic components: too strong pixel loss hinders the semantic change of output, whereas weak pixel loss alters the structural component along with semantic changes. To address the problem, we need to separately process the semantic and structure information of the image.
106
+
107
+ Recently, (Tumanyan et al., 2022) demonstrated successful disentanglement of both components using a pre-trained DINO ViT (Caron et al., 2021). They showed that in ViT, the keys $k ^ { l }$ of multi-head self attention (MSA) layer contain structure information, and [CLS] token of last layer contains the semantic information. With above features, they proposed a loss for maintaining structure between input and network output with matching the self similarity matrix $S ^ { l }$ of the keys, which can be represented in the following form for our problem:
108
+
109
+ $$
110
+ \ell _ { s s i m } ( \pmb { x } _ { s r c } , \pmb { x } ) = \| S ^ { l } ( \pmb { x } _ { s r c } ) - S ^ { l } ( \pmb { x } ) \| _ { F } , \quad \mathrm { w h e r e } \quad \big [ S ^ { l } ( \pmb { x } ) \big ] _ { i , j } = \cos ( k _ { i } ^ { l } ( \pmb { x } ) , k _ { j } ^ { l } ( \pmb { x } ) ) ,
111
+ $$
112
+
113
+ where $k _ { i } ^ { l } ( { \pmb x } )$ and $k _ { j } ^ { l } ( \pmb { x } )$ indicate $i , j$ th key in the $l$ -th MSA layer extracted from ViT with image $_ { \textbf { \em x } }$ . The self-similarity loss can maintain the content information between input and output, but we found that only using this loss results in a weak regularization in our DDPM framework. Since the key $k _ { i }$ contains the spatial information corresponding the $i$ -th patch location, we use additional regularization with contrastive learning as shown in Fig. 2(a), inspired by the idea of using both of relation consistency and contrastive learning(Jung et al., 2022). Specifically, leveraging the idea of patch contrastive loss (Park et al., 2020), we define the infoNCE loss using the DINO ViT keys:
114
+
115
+ $$
116
+ \ L _ { c o n t } ( x _ { s r c } , x ) = - \sum _ { i } ! \log \left( \frac { \exp ( \sin ( k _ { i } ^ { l } ( x ) , k _ { i } ^ { l } ( x _ { s r c } ) ) / \tau ) } { \exp ( \sin ( k _ { i } ^ { l } ( x ) , k _ { i } ^ { l } ( x _ { s r c } ) ) / \tau + \sum _ { j \ne i } \exp ( \sin ( k _ { i } ^ { l } ( x ) , k _ { j } ^ { l } ( x _ { s r c } ) ) / \tau ) } \right) ,
117
+ $$
118
+
119
+ where $\tau$ is temperature, and $\mathrm { s i m } ( \cdot , \cdot )$ represents the normalized cosine similarity. With this loss, we regularize the key of same positions to have closer distance, while maximizing the distances between the keys at different positions.
120
+
121
+ # 3.3 STYLE LOSS
122
+
123
+ CLIP Loss for Text-guided Image Translation Based on the previous work of (Dhariwal & Nichol, 2021), CLIP-guided diffusion (Crowson, 2022) proposed to guide the reverse diffusion using pre-trained CLIP model using the following loss function:
124
+
125
+ $$
126
+ \ell _ { C L I P } ( \boldsymbol { d } _ { t r g } , \boldsymbol { x } ) : = - \mathrm { s i m } \left( E _ { T } ( \boldsymbol { d } _ { t r g } ) , E _ { I } ( \boldsymbol { x } ) \right) ,
127
+ $$
128
+
129
+ where $\mathbf { \delta } d _ { t r g }$ is the target text prompt, and $E _ { I } , E _ { T }$ refer to the image and text encoder of CLIP, respectively. Although this loss can give text-guidance to diffusion model, the results often suffer from poor image quality.
130
+
131
+ Instead, we propose to use input-aware directional CLIP loss (Gal et al. (2021)) which matches the CLIP embedding of the output image to the target vector in terms of $\mathbf { \delta } d _ { t r g }$ , $d _ { s r c }$ , and $\mathbf { \delta } _ { \mathbf { \mathcal { X } } _ { s r c } }$ . More specifically, our CLIP-based semantic loss is described as (see also Fig. 2(b)):
132
+
133
+ $$
134
+ \ell _ { C L I P } ( \pmb { x } ; d _ { t r g } , \pmb { x } _ { s r c } , d _ { s r c } ) : = - \mathrm { s i m } ( \pmb { v } _ { t r g } , \pmb { v } _ { s r c } )
135
+ $$
136
+
137
+ where
138
+
139
+ $$
140
+ \pmb { v } _ { t r g } : = E _ { T } ( d _ { t r g } ) + \lambda _ { i } E _ { I } ( \pmb { x } _ { s r c } ) - \lambda _ { s } E _ { T } ( d _ { s r c } ) , \quad \pmb { v } _ { s r c } : = E _ { I } ( \mathrm { a u g } ( \pmb { x } ) )
141
+ $$
142
+
143
+ where $\mathrm { a u g } ( \cdot )$ denotes the augmentation for preventing adversarial artifacts from CLIP. Here, we simultaneously remove the source domain information $- \lambda _ { s } E _ { T } ( { \pmb d } _ { s r c } )$ and reflect the source image information to output $+ \lambda _ { i } E _ { I } ( { \pmb x } _ { s r c } )$ according to the values of $\lambda _ { s }$ and $\lambda _ { i }$ . Therefore it is possible to obtain stable outputs compared to using the conventional loss.
144
+
145
+ Furthermore, in contrast to the existing methods using only single pre-trained CLIP model (e.g. ViT/B-32), we improve the text-image embedding performance by using the recently proposed CLIP model ensemble method (Couairon et al. (2022)). Specifically, instead of using a single embedding, we concatenate the multiple embedding vectors from multiple pre-trained CLIP models and used the it as our final embedding.
146
+
147
+ Semantic Style Loss for Image-guided Image Translation In the case of image-guide translation, we propose to use [CLS] token of ViT as our style guidance. As explained in the previous part 3.2, the [CLS] token contains the semantic style information of the image. Therefore, we can guide the diffusion process to match the semantic of the samples to that of target image by minimizing the [CLS] token distances as shown in Fig. 2(c). Also, we found that using only [CLS] tokens often results in misaligned color values. To prevent this, we guide the output to follow the overall color statistic of target image with weak MSE loss between the images. Therefore, our loss function is described as follows:
148
+
149
+ $$
150
+ \ell _ { s t y } ( { \pmb x } _ { t r g } , { \pmb x } ) = | | e _ { [ C L S ] } ^ { L } ( { \pmb x } _ { t r g } ) - e _ { [ C L S ] } ^ { L } ( { \pmb x } ) | | _ { 2 } + \lambda _ { m s e } | | { \pmb x } _ { t r g } - { \pmb x } | | _ { 2 } .
151
+ $$
152
+
153
+ where $e _ { [ C L S ] } ^ { L }$ denotes the last layer [CLS] token.
154
+
155
+ # 3.4 ACCELERATION STRATEGY
156
+
157
+ Semantic Divergence Loss With the proposed loss functions, we can achieve text- or imageguided image translation outputs. However, we empirically observed that the generation process requires large steps to reach the the desired output. To solve the problem, we propose a simple approach to accelerate the diffusion process. As explained before, the [CLS] token of ViT contains the overall semantic information of the image. Since our purpose is to make the semantic information as different from the original as possible while maintaining the structure, we conjecture that we can achieve our desired purpose by maximizing the distance between the [CLS] tokens of the previous step and the current output during the generation process as described in Fig. 2(d). Therefore, our loss function at time $t$ is given by
158
+
159
+ $$
160
+ \ell _ { s e m } ( \pmb { x } _ { t } ; \pmb { x } _ { t + 1 } ) = - | | e _ { [ C L S ] } ^ { L } ( \hat { \pmb { x } } _ { 0 } ( \pmb { x } _ { t } ) ) - e _ { [ C L S ] } ^ { L } ( \hat { \pmb { x } } _ { 0 } ( \pmb { x } _ { t + 1 } ) ) | | _ { 2 } ,
161
+ $$
162
+
163
+ Specifically, we maximize the distance between the denoised output of the present time and the previous time, so that next step sample has different semantic from the previous step. One could think of alternatives to maximize pixel-wise or perceptual distance, but we have experimentally found that in these cases, the content structure is greatly harmed. In contrast, our proposed loss has advantages in terms of image quality because it can control only the semantic appearance.
164
+
165
+ Resampling Strategy As shown in CCDF acceleration strategy (Chung et al., 2022b), a better initialization leads to an accelerated reverse diffusion for inverse problem. Empirically, in our image translation problem we also find that finding the good starting point at time step $T$ for the reverse diffusion affects the overall image quality. Specifically, in order to guide the initial estimate $\mathbf { \nabla } _ { \mathbf { x } _ { T } }$ to be sufficiently good, we perform $N$ repetition of one reverse sampling ${ \mathbf { } } { \mathbf { } } { \mathbf { } } x _ { T - 1 }$ followed by one forward step ${ \pmb x } _ { T } = \sqrt { 1 - \beta _ { T - 1 } } { \pmb x } _ { T - 1 } + \beta _ { T - 1 } { \pmb \epsilon }$ to find the $\mathbf { \nabla } _ { \mathbf { x } _ { T } }$ whose gradient for the next step is easily affected by the loss. With this initial resampling strategy, we can empirically found the initial $\mathbf { \nabla } _ { \mathbf { \mathcal { X } } \mathcal { T } }$ that can reduce the number of reverse steps. The overall process is in our algorithm in Appendix.
166
+
167
+ # 3.5 TOTAL LOSS
168
+
169
+ Putting all together, the final loss in (7) for the text-guided reverse diffusion is given by
170
+
171
+ $$
172
+ \ell _ { t o t a l } = \lambda _ { 1 } \ell _ { c o n t } + \lambda _ { 2 } \ell _ { s s i m } + \lambda _ { 3 } \ell _ { C L I P } + \lambda _ { 4 } \ell _ { s e m } + \lambda _ { 5 } \ell _ { r n g } ,
173
+ $$
174
+
175
+ where $\ell _ { r n g }$ is a regularization loss to prevent the irregular step of reverse diffusion process suggested in (Crowson (2022)). If the target style image $\pmb { x } _ { t r g }$ is given instead of text conditions $\pmb { d } _ { s r c }$ and $\mathbf { \delta } d _ { t r g }$ , then $\ell _ { C L I P }$ is simply substituted for $\ell _ { s t y }$ .
176
+
177
+ # 4 EXPERIMENT
178
+
179
+ # 4.1 EXPERIMENTAL DETAILS
180
+
181
+ For implementation, we refer to the official source code of blended diffusion (Avrahami et al. (2022)). All experiments were performed using unconditional score model pre-trained with Imagenet $2 5 6 \times 2 5 6$ resolution datasets (Dhariwal $\&$ Nichol (2021)). In all the experiments, we used diffusion step of $T = 6 0$ and the resampling repetition of $N = 1 0$ ; therefore, the total of 70 diffusion reverse steps are used. The generation process takes 40 seconds per image in single RTX 3090 unit. In $\ell _ { C L I P }$ , we used the ensemble of 5 pre-trained CLIP models (RN50, RN50x4, ViTB/32, RN50x16, ViT-B/16) for the text-guidance, following the setup of Couairon et al. (2022). Our detailed experimental settings are elaborated in Appendix.
182
+
183
+ # 4.2 TEXT-GUIDED SEMANTIC IMAGE TRANSLATION
184
+
185
+ To evaluate the performance of our text-guided image translation, we conducted comparisons with state-of-the-art baseline models. For baseline methods, we selected the recently proposed models which use pre-trained CLIP for text-guided image manipulation: VQGAN-CLIP (Crowson et al. (2022)), CLIP-guided diffusion (CGD) (Crowson (2022)), DiffusionCLIP (Kim et al. (2022)), and FlexIT (Couairon et al. (2022)). For all baseline methods, we referenced the official source codes.
186
+
187
+ ![](images/1cf571a652c5e3bcefacb285259f44d4c0dd479de1bceb0320b09d1beb20cdac.jpg)
188
+ Figure 3: Qualitative comparison of text-guided translation on Animals dataset. Our model generates realistic samples that reflects the text condition, with better perceptual quality than the baselines.
189
+
190
+ ![](images/e3a8a1ed8dec40cb1ec6c123cd202e894167a2f8b252b162ef59f6d8c18f0549.jpg)
191
+ Figure 4: Qualitative comparison of text-guided image translation on Landscape dataset. Our model generates outputs with better perceptual quality than the baselines.
192
+
193
+ Since our framework can be applied to arbitrary text semantics, we tried quantitative and qualitative evaluation on various kinds of natural image datasets. We tested our translation performance using two different datasets: animal faces (Si & Zhu (2012)) and landscapes (Chen et al. (2018)). The animal face dataset contains 14 classes of animal face images, and the landscapes dataset consists of 7 classes of various natural landscape images.
194
+
195
+ Table 1: Quantitative comparison in the text-guided image translation. Our model outperforms baselines in overall scores for both of Animals and Landscapes datasets as well as user study.
196
+
197
+ <table><tr><td rowspan="2">Method</td><td colspan="3">Animals</td><td colspan="3">Landscapes</td><td colspan="3">User Study</td></tr><tr><td>SFID↓</td><td>CSFID↓</td><td>LPIPS↓</td><td>SFID↓</td><td>CSFID↓</td><td>LPIPS↓</td><td>Text个</td><td>Realism↑</td><td>Content</td></tr><tr><td>VQGAN-CLIP</td><td>30.01</td><td>65.51</td><td>0.462</td><td>33.31</td><td>82.92</td><td>0.571</td><td>2.78</td><td>2.05</td><td>2.16</td></tr><tr><td>CLIP-GD</td><td>12.50</td><td>53.05</td><td>0.468</td><td>18.13</td><td>62.19</td><td>0.458</td><td>2.61</td><td>2.24</td><td>2.28</td></tr><tr><td>DiffusionCLIP</td><td>25.09</td><td>66.50</td><td>0.379</td><td>29.85</td><td>76.29</td><td>0.568</td><td>2.50</td><td>2.54</td><td>3.06</td></tr><tr><td>FlexIT</td><td>32.71</td><td>57.87</td><td>0.215</td><td>18.04</td><td>60.04</td><td>0.243</td><td>2.22</td><td>3.15</td><td>3.89</td></tr><tr><td>Ours</td><td>9.98</td><td>41.07</td><td>0.372</td><td>16.86</td><td>54.48</td><td>0.417</td><td>3.68</td><td>4.28</td><td>4.11</td></tr></table>
198
+
199
+ To measure the performance of the generated images, we measured the FID score (Heusel et al. (2017)). However, when using the basic FID score measurement, the output value is not stable because our number of generated images is not large. To compensate for this, we measure the performance using a simplified FID (Kim et al. (2020)) that does not consider the diagonal term of the feature distributions. Also, we additionally showed a class-wise SFID score that measures the SFID for each class of the converted output because it is necessary to measure whether the converted output accurately reflects the semantic information of the target class. Finally, we used the averaged LPIPS score between input and output to verify the content preservation performance of our method. Further experimental settings can be found in our Appendix.
200
+
201
+ In Table 1, we show the quantitative comparison results. In image quality measurement using SFID and CSFID, our model showed the best performance among all baseline methods. Especially for Animals dataset, our SFID value outperformed others in large gain. In the content preservation by LPIPS score, our method scored the second best. In case of FlexIT, it showed the best score in LPIPS since the model is directly trained with LPIPS loss. However, too low value of LPIPS is undesired as it means that the model failed in proper semantic change. This can be also seen in qualitative result of Figs. 3 and 4, where our results have proper semantic features of target texts with content preservation, whereas the results from FlexIT failed in semantic change as it is too strongly confined to the source images. In other baseline methods, most of the methods failed in proper content preservation. Since our method is based on DDPM, our model can generate diverse images as shown in the additional outputs in our Appendix.
202
+
203
+ To further evaluate the perceptual quality of generated samples, we conducted user study. In order to measure the detailed opinions, we used custom-made opinion scoring system. We asked the users in three different parts: 1) Are the output have correct semantic of target text? (Text-match), 2) are the generated images realistic? (Realism), 3) do the outputs contains the content information of source images? (Content). Detailed user-study settings are in our Appendix. In Table 1, our model showed the best performance, which further shows the superiority of our method.
204
+
205
+ # 4.3 IMAGE-GUIDED SEMANTIC IMAGE TRANSLATION
206
+
207
+ Since our method can be easily adapted to the image translation guided by target images, we evaluate the performance of our model with comparison experiments. We compare our model with appearance transfer models of Splicing ViT (Tumanyan et al. (2022)), STROTSS (Kolkin et al. (2019)), and style transfer methods WCT2 (Yoo et al. (2019)) and SANet (Park & Lee (2019)).
208
+
209
+ Fig. 5 is a qualitative comparison result of image guided translation task. Our model successfully generated outputs that follow the semantic styles of the target images while maintaining the content of the source images. In
210
+
211
+ <table><tr><td>Method</td><td>Style↑</td><td>Realism↑</td><td>Content个</td></tr><tr><td>SANet</td><td>2.75</td><td>4.08</td><td>4.37</td></tr><tr><td>WCT2</td><td>2.59</td><td>4.64</td><td>4.90</td></tr><tr><td>STROTSS</td><td>3.92</td><td>2.91</td><td>3.17</td></tr><tr><td>SplicingViT</td><td>3.50</td><td>2.08</td><td>2.15</td></tr><tr><td>Ours</td><td>4.23</td><td>4.25</td><td>4.51</td></tr></table>
212
+
213
+ Table 2: User study comparison of image-guided translation tasks. Our model outperforms baseline methods in overall perceptual quality.
214
+
215
+ the case of other models, we can see that the content was severely deformed or the semantic style was not properly reflected. We also measured the overall perceptual quality through a user study. As with text-guided translation, we investigated user opinion through three different questions. In Table 2, our model obtained the best score in style matching score and the second best in realism and content preservation scores. Baseline WCT2 showed the best in realism and content scores, but it shows the worst score in style matching because the outputs are hardly changed from the inputs except for overall colors. The opinions scores confirm that our model outperforms the baselines. More details are in our Appendix.
216
+
217
+ ![](images/91a3d6e135ef1149b0c93af10fb5561e26b3a4b67f08efeca9bbcdec3b16dfdf.jpg)
218
+ Figure 5: Qualitative comparison of image-guided image translation. Our results have better perceptual quality than the baseline outputs.
219
+
220
+ ![](images/8d61b3fa1f9e7b8174060133dfaf3929cbc61b8e910cd1f6a12a1f76681e70fd.jpg)
221
+ Figure 6: Qualitative comparison on ablation study. Our full setting shows the best results.
222
+
223
+ # 4.4 ABLATION STUDY
224
+
225
+ To verify the proposed components in our framework, we compare the generation performance with different settings. In Fig. 6, we show that (a) the outputs from our best setting have the correct semantic of target text, with preserving the content of the source; (b) by removing $\ell _ { s e m }$ , the results still have the appearance of source images, suggesting that images are not fully converted to the target domain; (c) without $\ell _ { c o n t }$ , the output images totally failed to capture the content of source images; (d) by using LPIPS perceptual loss instead of proposed $\ell _ { c o n t }$ , the results can only capture the approximate content of source images; (e) using pixel-wise $l _ { 2 }$ maximization loss instead of proposed $\ell _ { s e m }$ , the outputs suffer from irregular artifacts; (f) without using our proposed resampling trick, the results cannot fully reflect the semantic information of target texts. (g) With using VGG16 network instead of DINO ViT, the output structure is severely degraded with artifacts. Overall, we can obtain the best generation outputs by using all of our proposed components. For further evaluation, we will show the quantitative results of ablation study in our Appendix.
226
+
227
+ # 5 CONCLUSION
228
+
229
+ In conclusion, we proposed a novel loss function which utilizes a pre-trained ViT model to guide the generation process of DDPM models in terms of content preservation and semantic changes. We further propose a novel strategy of resampling technique for better initialization of diffusion process. For evaluation, our extensive experimental results show that our proposed framework has superior performance compared to baselines in both of text- and image-guided semantic image translation tasks. Despite the successful results, our method often fails to translate the image styles when there is large domain gap between source and target. With respect to this, we show the failure cases and discussions on limitations in Appendix.
230
+
231
+ # Acknowledgement
232
+
233
+ This research was supported by Field-oriented Technology Development Project for Customs Administration through National Research Foundation of Korea(NRF) funded by the Ministry of Science & ICT and Korea Customs Service(NRF-2021M3I1A1097938), the KAIST Key Research Institute (Interdisciplinary Research Group) Project, and the National Research Foundation of Korea under Grant (NRF-2020R1A2B5B03001980).
234
+
235
+ # REFERENCES
236
+
237
+ Asha Anoosheh, Eirikur Agustsson, Radu Timofte, and Luc Van Gool. Combogan: Unrestrained scalability for image domain translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 783–790, 2018.
238
+
239
+ Omri Avrahami, Dani Lischinski, and Ohad Fried. Blended diffusion for text-driven editing of natural images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18208–18218, 2022.
240
+
241
+ Mathilde Caron, Hugo Touvron, Ishan Misra, Herve J ´ egou, Julien Mairal, Piotr Bojanowski, and ´ Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9650–9660, 2021.
242
+
243
+ Yang Chen, Yu-Kun Lai, and Yong-Jin Liu. Cartoongan: Generative adversarial networks for photo cartoonization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9465–9474, 2018.
244
+
245
+ Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8789–8797, 2018.
246
+
247
+ Min Jin Chong and David Forsyth. Jojogan: One shot face stylization. arXiv preprint arXiv:2112.11641, 2021.
248
+
249
+ Hyungjin Chung, Byeongsu Sim, Dohoon Ryu, and Jong Chul Ye. Improving diffusion models for inverse problems using manifold constraints. arXiv preprint arXiv:2206.00941, 2022a.
250
+
251
+ Hyungjin Chung, Byeongsu Sim, and Jong Chul Ye. Come-closer-diffuse-faster: Accelerating conditional diffusion models for inverse problems through stochastic contraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12413–12422, 2022b.
252
+
253
+ Guillaume Couairon, Asya Grechka, Jakob Verbeek, Holger Schwenk, and Matthieu Cord. Flexit: Towards flexible semantic image translation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18270–18279, 2022.
254
+
255
+ Katherine Crowson. Clip-guided diffusion. 2022. URL https://github.com/afiaka87/ clip-guided-diffusion.
256
+
257
+ Katherine Crowson, Stella Biderman, Daniel Kornis, Dashiell Stander, Eric Hallahan, Louis Castricato, and Edward Raff. Vqgan-clip: Open domain image generation and editing with natural language guidance. arXiv preprint arXiv:2204.08583, 2022.
258
+
259
+ Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4690–4699, 2019.
260
+
261
+ Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780–8794, 2021.
262
+
263
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
264
+
265
+ Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12873–12883, 2021.
266
+
267
+ Tsu-Jui Fu, Xin Eric Wang, and William Yang Wang. Language-driven image style transfer. 2021.
268
+
269
+ Rinon Gal, Or Patashnik, Haggai Maron, Gal Chechik, and Daniel Cohen-Or. Stylegan-nada: Clipguided domain adaptation of image generators. arXiv preprint arXiv:2108.00946, 2021.
270
+
271
+ Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2414–2423, 2016.
272
+
273
+ Niv Granot, Ben Feinstein, Assaf Shocher, Shai Bagon, and Michal Irani. Drop the gan: In defense of patches nearest neighbors as single image generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13460–13469, 2022.
274
+
275
+ Christopher Hahne and Amar Aggoun. Plenopticam v1.0: A light-field imaging framework. IEEE Transactions on Image Processing, 30:6757–6771, 2021. doi: 10.1109/TIP.2021.3095671.
276
+
277
+ Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. pp. 6626– 6637, 2017.
278
+
279
+ Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
280
+
281
+ Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. pp. 1501–1510, 2017.
282
+
283
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1125–1134, 2017.
284
+
285
+ Chanyong Jung, Gihyun Kwon, and Jong Chul Ye. Exploring patch-wise semantic relation for contrastive learning in image-to-image translation tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 18260–18269, June 2022.
286
+
287
+ Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8110–8119, 2020.
288
+
289
+ Chung-Il Kim, Meejoung Kim, Seungwon Jung, and Eenjun Hwang. Simplified frechet distance for ´ generative adversarial nets. Sensors, 20(6), 2020. ISSN 1424-8220. doi: 10.3390/s20061548. URL https://www.mdpi.com/1424-8220/20/6/1548.
290
+
291
+ Gwanghyun Kim, Taesung Kwon, and Jong Chul Ye. Diffusionclip: Text-guided diffusion models for robust image manipulation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2426–2435, 2022.
292
+
293
+ Kwanyoung Kim and Jong Chul Ye. Noise2score: tweedie’s approach to self-supervised image denoising without clean images. Advances in Neural Information Processing Systems, 34:864– 874, 2021.
294
+
295
+ Nicholas Kolkin, Jason Salavon, and Gregory Shakhnarovich. Style transfer by relaxed optimal transport and self-similarity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10051–10060, 2019.
296
+
297
+ Gihyun Kwon and Jong Chul Ye. Clipstyler: Image style transfer with a single text condition. arXiv preprint arXiv:2112.00374, 2021.
298
+
299
+ Gihyun Kwon and Jong Chul Ye. One-shot adaptation of gan in just one clip. arXiv preprint arXiv:2203.09301, 2022.
300
+
301
+ Dongwook Lee, Junyoung Kim, Won-Jin Moon, and Jong Chul Ye. Collagan: Collaborative gan for missing image data imputation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2487–2496, 2019.
302
+
303
+ Jianxin Lin, Yingxue Pang, Yingce Xia, Zhibo Chen, and Jiebo Luo. Tuigan: Learning versatile image-to-image translation with two unpaired images. In European Conference on Computer Vision, pp. 18–35. Springer, 2020.
304
+
305
+ Xingchao Liu, Chengyue Gong, Lemeng Wu, Shujian Zhang, Hao Su, and Qiang Liu. Fusedream: Training-free text-to-image generation with improved clip+ gan space optimization. arXiv preprint arXiv:2112.01573, 2021.
306
+
307
+ Timo Luddecke and Alexander Ecker. Image segmentation using text and image prompts. In ¨ Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7086– 7096, 2022.
308
+
309
+ Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In International Conference on Machine Learning, pp. 8162–8171. PMLR, 2021.
310
+
311
+ Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Few-shot image generation via cross-domain correspondence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10743��10752, 2021.
312
+
313
+ Dae Young Park and Kwang Hee Lee. Arbitrary style transfer with style-attentional networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5880–5888, 2019.
314
+
315
+ Taesung Park, Alexei A. Efros, Richard Zhang, and Jun-Yan Zhu. Contrastive learning for unpaired image-to-image translation. In Andrea Vedaldi, Horst Bischof, Thomas Brox, and Jan-Michael Frahm (eds.), Computer Vision – ECCV 2020, pp. 319–345, Cham, 2020. Springer International Publishing. ISBN 978-3-030-58545-7.
316
+
317
+ Or Patashnik, Zongze Wu, Eli Shechtman, Daniel Cohen-Or, and Dani Lischinski. Styleclip: Textdriven manipulation of stylegan imagery. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 2085–2094, 2021.
318
+
319
+ Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021.
320
+
321
+ Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical textconditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
322
+
323
+ Chitwan Saharia, William Chan, Huiwen Chang, Chris Lee, Jonathan Ho, Tim Salimans, David Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. In ACM SIGGRAPH 2022 Conference Proceedings, pp. 1–10, 2022a.
324
+
325
+ Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S Sara Mahdavi, Rapha Gontijo Lopes, et al. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint arXiv:2205.11487, 2022b.
326
+
327
+ Hiroshi Sasaki, Chris G Willcocks, and Toby P Breckon. Unit-ddpm: Unpaired image translation with denoising diffusion probabilistic models. arXiv preprint arXiv:2104.05358, 2021.
328
+
329
+ Zhangzhang Si and Song-Chun Zhu. Learning hybrid image templates (hit) by information projection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(7):1354–1367, 2012. doi: 10.1109/TPAMI.2011.227.
330
+
331
+ Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2020a.
332
+
333
+ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020b.
334
+
335
+ Xu Su, Jiaming Song, Chenlin Meng, and Stefano Ermon. Dual diffusion implicit bridges for imageto-image translation. ArXiv, abs/2203.08382, 2022.
336
+
337
+ Narek Tumanyan, Omer Bar-Tal, Shai Bagon, and Tali Dekel. Splicing vit features for semantic appearance transfer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10748–10757, 2022.
338
+
339
+ Can Wang, Menglei Chai, Mingming He, Dongdong Chen, and Jing Liao. Clip-nerf: Text-andimage driven manipulation of neural radiance fields. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3835–3844, 2022a.
340
+
341
+ Zhaoqing Wang, Yu Lu, Qiang Li, Xunqiang Tao, Yandong Guo, Mingming Gong, and Tongliang Liu. Cris: Clip-driven referring image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11686–11695, 2022b.
342
+
343
+ Tianyi Wei, Dongdong Chen, Wenbo Zhou, Jing Liao, Zhentao Tan, Lu Yuan, Weiming Zhang, and Nenghai Yu. Hairclip: Design your hair by text and reference image. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18072–18081, 2022.
344
+
345
+ Jaejun Yoo, Youngjung Uh, Sanghyuk Chun, Byeongkyu Kang, and Jung-Woo Ha. Photorealistic style transfer via wavelet transforms. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9036–9045, 2019.
346
+
347
+ Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017.
348
+
349
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017.
350
+
351
+ Peihao Zhu, Rameen Abdal, John Femiani, and Peter Wonka. Mind the gap: Domain gap control for single shot domain adaptation for generative adversarial networks. arXiv preprint arXiv:2110.08398, 2021.
352
+
353
+ # A EXPERIMENTAL DETAILS
354
+
355
+ # A.1 IMPLEMENTATION DETAILS
356
+
357
+ For implementation, in case of using text-guided image manipulation, our initial sampling numbers are set as $T = 1 0 0$ , but we skipped the initial 40 steps to maintain the abstract content of input image. Therefore, the total number of sampling steps is $T = 6 0$ . With resampling step of $N = 1 0$ , we use total of 70 iterations for single image output. We found that using more resampling steps does not show meaningful performance improvement. In image-guided manipulation, we set initial sampling number $T = 2 0 0$ , and skipped the initial 80 steps. We used resampling step $N = 1 0$ . Therefore, we use total of 130 iterations. Although we used more iterations than text-guided translation, it takes about 40 seconds.
358
+
359
+ For hyperparameters, we use $\lambda _ { 1 } = 2 0 0$ , $\lambda _ { 2 } = 1 0 0$ , $\lambda _ { 3 } = 2 0 0 0$ , $\lambda _ { 4 } = 1 0 0 0$ , $\lambda _ { 5 } = 2 0 0$ . For imageguided translation, we set $\lambda _ { m s e } = 1 . 5$ . For our CLIP loss, we set $\lambda _ { s } = 0 . 4$ and $\lambda _ { i } = 0 . 2$ . For our ViT backbone model, we used pre-trained DINO ViT that follows the baseline of Splicing ViT (Tumanyan et al., 2022). For extracting keys of intermediate layer, we use layer of $l = 1 1$ , and for [CLS] token, we used last layer output. Since ViT and CLIP model only take $2 2 4 \times 2 2 4$ resolution images, we resized all images before calculating the losses with ViT and CLIP.
360
+
361
+ To further improve the sample quality of our qualitative results, we used restarting trick in which we check the $\ell _ { r e g }$ loss calculated at initial time step $T$ , and restart the whole process if the loss value is too high. If the initial loss $\ell _ { r e g } > 0 . 0 1$ , we restarted the process. For quantitative result, we did not use the restart trick for fair comparison.
362
+
363
+ For augmentation, we use the same geometrical augmentations proposed in FlexIT(Couairon et al., 2022). Also, following the setting from CLIP-guided diffusion(Crowson, 2022), we included noise augmentation in which we mix the noisy image to $\hat { x } _ { 0 } ( x _ { t } )$ as it further removes the artifacts.
364
+
365
+ In our image-guided image translation on natural landscape images, we matched the color distribution of output image to that of target image with (Hahne & Aggoun, 2021), as it showed better perceptual quality. Our detailed implementation can be found in our official GitHub repository.1
366
+
367
+ For baseline experiments, we followed the official source codes in all of the models2345. For diffusion-based models (DiffusionCLIP, CLIP-guided diffusion), we used unconditional score model pre-trained on $2 5 6 \times 2 5 6$ resolutions. In DiffusionCLIP, we fine-tuned the score model longer than suggested training iteration, as it showed better quality. In CLIP-guided diffusion, we set the CLIP-guided loss as 2000, and also set initial sampling number as $T = 1 0 0$ with skipping initial 40 steps. For VQGAN-based models (FlexIT, VQGAN-CLIP), we used VQGAN trained on imagenet $2 5 6 \times 2 5 6$ resolutions datasets. In VQGAN-CLIP, as using longer iteration results in extremely degraded images, therefore we optimized only 30 iterations, which is smaller than suggested iterations $( \geq 8 0 )$ . In the experiments of FlexIT, we followed the exactly same settings suggested in the original paper.
368
+
369
+ For baselines of image-guided style transfer tasks, we also referenced the original source codes6789.
370
+ In all of the experiments, we followed the suggested settings from the original papers.
371
+
372
+ # A.2 DATASET DETAILS
373
+
374
+ For our quantitative results using text-guided image translation, we used two different datasets Animals and Landscapes. In Animals dataset, the original dataset contains 21 different classes, but we filtered out the images from 14 classes (bear, cat, cow, deer, dog, lion, monkey, mouse, panda, pig, rabbit, sheep, tiger, wolf) which can be classified as mammals. Remaining classes (e.g. human, chicken, etc.) are removed since they have far different semantics from the mammal faces.Therefore we reported quantitative scores only with filtered datasets for fair comparison. The dataset contains 100-300 images per each class, and we selected 4 testing images from each class in order to use them as our content source images. With selected samples, we calculated the metrics using the outputs of translating the 4 images from a source class into all the remaining classes. Therefore, in our animal face dataset, total of 676 generated images are used for evaluation.
375
+
376
+ In Landscapes dataset, we manually classified the images into 7 different classes (beach, desert, forest, grass field, mountain, sea, snow). Each class has 300 different images except for desert class which have 100 different images. Since some classes have not enough number of images, we borrowed images from seasons (Anoosheh et al., 2018) dataset. For metric calculation, we selected 8 testing images from each class, and used them as our content source images. Again, we translated the 8 images from source class into all the remaining classes. Therefore, a total of 336 generated images are used for our quantitative evaluation.
377
+
378
+ For single image guided translation, we selected random images from AFHQ dataset for animal face translation; and for natural image generation, we selected random images from our Landscapes datasets.
379
+
380
+ # A.3 USER STUDY DETAILS
381
+
382
+ For our user study in text-guided image translation task, we generated 130 different images using 13 different text conditions with our proposed and baseline models. Then we randomly selected 65 images and made 6 different questions. More specifically, we asked the participants question about three different parts: 1) Are the outputs have correct semantic of target text? (Text-match), 2) Are the generated images realistic? (Realism), 3) Do the outputs contain the content information of source images (Content). We randomly recruited a total of 30 users, and provided them the questions using Google Form. The 30 different users come from age group 20s and 50s. We set the minimum score as 1, and the maximum score is 5. The users can score among 5 different options : 1-Very Unlikely, 2-Unlikely, 3-Normal, 4-Likely, 5-Very Likely.
383
+
384
+ For the user study on image-guided translation task, we generated 40 different images using 8 different images conditions. Then we followed the same protocol to user study on text-guided image translation tasks, except for the content of questions. We asked the users in three different parts: 1) Are the outputs have correct semantic of target style image? (Style-match), 2) Are the generated images realistic? (Realism), 3) Do the outputs contain the content information of source images (Content).
385
+
386
+ # A.4 ALGORITHM
387
+
388
+ For detailed explanation, we include Algorithm of our proposed image translation mathods in Algorithm 1.
389
+
390
+ # B QUANTITATIVE ABLATION STUDY
391
+
392
+ For more thorough evaluation of our proposed components, we report ablation study on quantitative metrics. In this experiment, we only used Animals dataset due to the time limit. In Table 3, we show the quantitative results on various settings. When we remove one of our acceleration strategies, in setting (b) and (f), we can see that the fid score is degraded as the outputs are not properly changed from the original source images. (e) When we use L2 maximization instead of our proposed $\ell _ { s e m }$ , FID scores are improved from setting (b), but still the performance is not on par with our best settings. (d) When we use weak content regularization using LPIPS, we can see that the overall scores are degraded. When we remove our proposed $\ell _ { c o n t }$ , we can observe that SFID and CSFID scores are lower than other settings. However, we can see that LPIPS score is severely high as the model hardly reflect the content information of original source images. (g) we use pre-trained VGG instead of using ViT for ablation study. Instead of ViT keys for structure loss, we substitute it with features extracted from VGG16 relu3 1 activation layer. Also, we substitute ViT [CLS] token with VGG16 relu5 1 feature as it contains high-level semantic features. We can see that the model
393
+
394
+ Algorithm 1 Semantic image translation: given a diffusion score model $\epsilon _ { \theta } ( \pmb { x } _ { t } , t )$ , CLIP model, and VIT model
395
+
396
+ Input: source image $\pmb { x } _ { s r c }$ , diffusion steps $T$ , resampling steps $N$ , target text $\mathbf { \delta } d _ { t r g }$ , source text $\pmb { d } _ { s r c }$ or target image $\mathbf { \boldsymbol { x } } _ { t r g }$
397
+
398
+ Output: translated image √ $\hat { \pmb x }$ which has semantic of $\mathbf { \delta } d _ { t r g }$ (or $\pmb { x } _ { t r g }$ ) and content of $\mathbf { \delta } _ { \mathbf { \mathcal { X } } _ { s r c } }$
399
+
400
+ 1: for all $t$ from $T$ to 0 do
401
+ 2: $\begin{array} { r l } & { \epsilon \epsilon _ { \theta } ( x _ { t } , t ) } \\ & { \hat { x } _ { 0 } ( x _ { t } ) \frac { x _ { t } } { \sqrt { \bar { \alpha } _ { t } } } - \frac { \sqrt { 1 - \bar { \alpha } _ { t } } } { \sqrt { \bar { \alpha } _ { t } } } \epsilon } \end{array}$
402
+ 3:
403
+ 4: if text-guided then
404
+ 5: $\nabla _ { t o t a l } \nabla _ { x _ { t } } \ell _ { t o t a l } ( \hat { { \boldsymbol x } } _ { 0 } ( x _ { t } ) ; d _ { t r g } , { \boldsymbol x } _ { s r c } , d _ { s r c } )$
405
+ 6: else if image-guided then
406
+ 7: $\nabla _ { t o t a l } \mathsf { \bar { V } } _ { \pmb { x } _ { t } } \ell _ { t o t a l } ( \hat { \pmb { x } } _ { 0 } ( \pmb { x } _ { t } ) ; \pmb { x } _ { t r g } , \pmb { x } _ { s r c } )$
407
+ 8: end if
408
+ 9: $\begin{array} { r l } & { z \sim \mathcal { N } ( 0 , { \bf I } ) } \\ & { { \bf x } _ { t - 1 } ^ { \prime } = \frac { 1 } { \sqrt { \alpha _ { t } } } \Big ( { \bf x } _ { t } - \frac { 1 - \alpha _ { t } } { \sqrt { 1 - \bar { \alpha } _ { t } } } \epsilon \Big ) + \sigma _ { t } z } \\ & { { \bf x } _ { t - 1 } = { \bf x } _ { t - 1 } ^ { \prime } - \nabla _ { t o t a l } } \end{array}$
409
+ 10:
410
+ 11:
411
+ 12: if t = T and $n < N$ then
412
+ 13: $\begin{array} { l } { { \pmb x } _ { t } { \mathcal { N } } ( \sqrt { 1 - \beta _ { t - 1 } } { \pmb x } _ { t - 1 } , \beta _ { t - 1 } { \bf I } ) } \\ { { \pmb n } { \ b n } + 1 } \end{array}$
413
+ 14:
414
+ 15: go to 2
415
+ 16: end if
416
+ 17: end for
417
+ 18: return ${ \pmb x } _ { - 1 }$
418
+
419
+ Table 3: Quantitative comparison of ablation studies.
420
+
421
+ <table><tr><td rowspan="2"> Settings</td><td colspan="3">Animals</td></tr><tr><td>SFID↓</td><td>CSFID↓</td><td>LPIPS↓</td></tr><tr><td>VGG instead of ViT (g)</td><td>9.72</td><td>43.08</td><td>0.518</td></tr><tr><td>No resampling (f)</td><td>11.88</td><td>59.09</td><td>0.316</td></tr><tr><td>L2 Max instead of lsem (e)</td><td>13.18</td><td>49.47</td><td>0.324</td></tr><tr><td>LPIPs instead of lcont (d)</td><td>11.15</td><td>58.67</td><td>0.400</td></tr><tr><td>No lcont (c)</td><td>9.90</td><td>33.07</td><td>0.477</td></tr><tr><td>No lsem (b)</td><td>15.00</td><td>53.43</td><td>0.347</td></tr><tr><td>Ours (a)</td><td>9.98</td><td>41.07</td><td>0.372</td></tr></table>
422
+
423
+ shows decent SFID and CSFID scores, but the LPIPS score is very high. The result show that using VGG does not properly operate as regularization tool, rather it degrades the generation process with damaging the structural consistency. Overall, when using our best setting, we can obtain the best output considering all of the scores.
424
+
425
+ # C ARTISTIC STYLE TRANSFER
426
+
427
+ With our framework, we can easily adapt our method to artistic style transfer. With simply changing the text conditions, or using artistic paintings as our image conditions, we can obtain the artistic style transfer results as shown in Fig. 7.
428
+
429
+ # D FACE IMAGE TRANSLATION
430
+
431
+ Instead of using score mode pre-trained on Imagenet dataset, we can use pre-trained score model on FFHQ human face dataset. In order to keep the face identity between source and output images, we include $\lambda _ { i d } \ell _ { i d }$ which leverage pre-trained face identification model ArcFace(Deng et al., 2019). We calculate identity loss between $\pmb { x } _ { s r c }$ and denoised image $\hat { \pmb { x } } _ { 0 } ( { \pmb x } _ { t } )$ . We use $\lambda _ { i d } = 1 0 0$ .
432
+
433
+ ![](images/de5f035d2242c8c5c5f1031a7221c9b9597f5c36db3e0a8359f4eb3e689c8ba4.jpg)
434
+ Figure 7: Various outputs of artistic style transfer. We can translation natural images into artistic style paintings with both of text or image conditions.
435
+
436
+ ![](images/9cd3f4687ea51fdbfb0bf9967d443e408ca5470fd5c3315cbc9bb851370f6ce3.jpg)
437
+ Figure 8: Outputs from face image translation models. The outputs from our model successfully translated the human face images with proper target domain semantic information.
438
+
439
+ In Fig. 8, we show that our method also can be used in face image translation tasks. For comparison, we included baseline models of face editing method StyleCLIP (Patashnik et al., 2021), and oneshot face stylization model of JojoGAN (Chong & Forsyth, 2021). The results show that our method can translate the source faces into target domain with proper semantic change. In baseline models, although some images show high quality outputs, in most cases the image failed in translating the images. Also, since the baseline models rely on pre-trained StyleGAN, they require additional GAN inversion process to translate the source image. Therefore, the content information is not perfectly matched to the source image due to the limitation of GAN inversion methods.
440
+
441
+ # E INFERENCE TIME COMPARISON
442
+
443
+ To evaluate the time-efficiency of our method, we calculate the inference times of the various imageguided translation models. All experiments are conducted with single RTX3090 GPU, on the same hardware and software environment. We use the images of resolution $2 5 6 \times 2 5 6$ for experiments. In Table 4, we compare the times taken for single image translation. For single-shot semantic transfer models of Splicing ViT, the inference time is relatively long as we need to optimize large U-Net model for each image translation. In STROTSS, it requires texture matching calculation for single image translation, so it takes long time. For arbitrary style transfer models of WCT2 and SANet, the inference is done with only single-step network forward process, as the model is already trained with large dataset. Our model takes about 40 seconds, which is moderate when compared to the one-shot semantic transfer models (SplicingVit,STROTSS). However, the time is still longer than the style transfer models, as our model need multiple reverse DDPM steps for inference. In the future work, we are planning to improve the inference time with leveraging recent approaches.
444
+
445
+ Table 4: Quantitative comparison on inference times of image-guided translation models.
446
+
447
+ <table><tr><td></td><td>Ours</td><td>Splicing Vit</td><td>STROTSS</td><td>WCT2</td><td>SANET</td></tr><tr><td>time</td><td>37s</td><td>25m 30s</td><td>53s</td><td>0.18s</td><td>0.12s</td></tr></table>
448
+
449
+ ![](images/73edf21e67d349939b36ba9aa57d652b0555fbf8949c96b896166007b2423294.jpg)
450
+ Figure 9: Comparison results on semantic segmentation maps from baseline outputs. When comparing segmentation maps, our model outputs show high structural consistency with the source images.
451
+
452
+ # F SEMANTIC SEGMENTATION OUTPUTS
453
+
454
+ To further verify the structural consistency between output and source images, we compared the semantic segmentation maps from outputs and source images. For experiment, we use semantic segmentation model (Zhou et al., 2017) which is pre-trained on ADE20K dataset. We referenced the official source code10 for segmentation model. Figure 9 shows the comparison results. In case of the baseline models VQGAN-CLIP, CLIP-guided diffusion, we can see that the segmentation maps are not properly aligned to the source maps, which means the model cannot keep the structure of source images. In case of FlexIT, the model outputs maps have high similarity to the source maps, but the semantic change is not properly applied. In our model, we can see the output maps have high similarity to the source maps, while semantic information is properly changed.
455
+
456
+ ![](images/c74cbbaa0eb1d0061d3e1b799d8c764a5dfa0c5d6f9cc11372d8717d7266f2b5.jpg)
457
+ Figure 10: Additional comparison on image-guided translation. For fair experiment conditioning, we trained the baseline SANet with ViT-based losses.
458
+
459
+ ![](images/7d2a8a34bf513770a88969f830f917a3648e033e5295e69d5ea228f810207983.jpg)
460
+ Figure 11: Ablation study results on pixel-wise l2 loss. Without pixel loss, the output image color is not matched to the color scale of the target images.
461
+
462
+ # G ADDITIONAL COMPARISON ON IMAGE-GUIDED TRANSLATION
463
+
464
+ For fair comparison with the baseline models, we trained the baseline SANet with our proposed ViTbased loss functions. When we train SANet with replacing the existing style and content loss with our $\ell _ { c o n t }$ and $\ell _ { s t y }$ , we found that the training is not properly working. Therefore, we simultaneously used existing VGG-based style and content loss with our proposed ViT-based losses. In Fig. 10, we can see that when training SANet with ViT, the results still show incomplete semantic transfer results. Although the output seems to contain more complex textures than basic model, the model performance is still confined to simple color transformation.
465
+
466
+ ![](images/820fbbd5245336d9f05b260580958ed4894d400c522a64fb446d5aea0ad6ef19.jpg)
467
+ Figure 12: Failure case outputs. If the semantic distance between source and target conditions are extremely far, semantic translation sometimes fails.
468
+
469
+ To further evaluate the effect of pixel-wixe l2 loss for image-guided translation, we conducted additional experiments in Fig. 11. When we remove the pixel-wise l2 loss in our image-guided translation task, we can see the semantic of output images follow the target images, but the overall color of the output images are slightly unaligned with the target image color. The result show that using weak l2 loss help the model to accurately apply the color of target images to outputs.
470
+
471
+ # H LIMITATION AND FUTURE WORK
472
+
473
+ Although our method has shown successful performance in image conversion, it still has limitations to solve. First, if the semantic distance between the source image and the target domain is too far (e.g building Tiger), the output is not translated properly as shown in Fig. 12. We conjecture that this occurs when the text-image embedding space in the CLIP model is not accurately aligned, therefore it can be solved by using the advanced text-to-image embedding model. Second, our method has limitation that the image generation quality heavily relies on the performance of the pre-trained score model. This can also be solved if we use a diffusion model backbone with better performance. In future work, we plan to improve our proposed method in these two directions.
474
+
475
+ # I ADDITIONAL RESULTS
476
+
477
+ For additional results , in Fig. 13 we show the image translation outputs using text conditions. In Fig. 14, we additionally show the results from our image-guided image translation. We can successfully change the semantic of various natural images with text and image conditions.
478
+
479
+ ![](images/936b6fba4101d4ca8bbdbe7dde5b23c57161a091bab935864a599aef6983d958.jpg)
480
+ Figure 13: Qualitative results of text-guided image translation.
481
+
482
+ ![](images/719c2f2e4fc3aa6e8e9475fd282cb232608c9a180ce59af5d89a527cea3c8792.jpg)
483
+ Figure 14: Qualitative results of image-guided image translation.
parse/dev/Nayau9fwXU/Nayau9fwXU_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/Nayau9fwXU/Nayau9fwXU_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/nO5caZwFwYu/nO5caZwFwYu.md ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EFFICIENT ACTIVE SEARCH FOR COMBINATORIAL OPTIMIZATION PROBLEMS
2
+
3
+ André Hottung Bielefeld University, Germany andre.hottung@uni-bielefeld.de
4
+
5
+ Yeong-Dae Kwon Samsung SDS, Korea y.d.kwon@samsung.com
6
+
7
+ Kevin Tierney Bielefeld University, Germany kevin.tierney@uni-bielefeld.de
8
+
9
+ # ABSTRACT
10
+
11
+ Recently, numerous machine learning based methods for combinatorial optimization problems have been proposed that learn to construct solutions in a sequential decision process via reinforcement learning. While these methods can be easily combined with search strategies like sampling and beam search, it is not straightforward to integrate them into a high-level search procedure offering strong search guidance. Bello et al. (2016) propose active search, which adjusts the weights of a (trained) model with respect to a single instance at test time using reinforcement learning. While active search is simple to implement, it is not competitive with state-of-the-art methods because adjusting all model weights for each test instance is very time and memory intensive. Instead of updating all model weights, we propose and evaluate three efficient active search strategies that only update a subset of parameters during the search. The proposed methods offer a simple way to significantly improve the search performance of a given model and outperform state-of-the-art machine learning based methods on combinatorial problems, even surpassing the well-known heuristic solver LKH3 on the capacitated vehicle routing problem. Finally, we show that (efficient) active search enables learned models to effectively solve instances that are much larger than those seen during training.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ In recent years, a wide variety of machine learning (ML) based methods for combinatorial optimization problems have been proposed (e.g., Kool et al. (2019); Hottung et al. (2020)) . While early approaches failed to outperform traditional operations research methods, the gap between handcrafted and learned heuristics has been steadily closing. However, the main potential of ML-based methods lies not only in their ability to outperform existing methods, but in automating the design of customized heuristics in situations where no handcrafted heuristics have yet been developed. We hence focus on developing approaches that require as little additional problem-specific knowledge as possible.
16
+
17
+ Existing ML based methods for combinatorial optimization problems can be classified into construction methods and improvement methods. Improvement methods search the space of complete solutions by iteratively refining a given start solution. They allow for a guided exploration of the search space and are able to find high-quality solutions. However, they usually rely on problemspecific components. In contrast, construction methods create a solution sequentially starting from an empty solution (i.e., they consider a search space consisting of incomplete solutions). At test time, they can be used to either greedily construct a single solution or to sample multiple solutions from the probability distribution encoded in the trained neural network. Furthermore, the sequential solution generation process can be easily integrated into a beam search without requiring any problem-specific components. However, search methods like sampling and beam search offer no (or very limited) search guidance. Additionally, these methods do not react towards the solutions seen so far, i.e., the underlying distribution from which solutions are sampled is never changed throughout the search.
18
+
19
+ Bello et al. (2016) propose a generic search strategy called active search that allows an extensive, guided search for construction methods without requiring any problem specific components. Active search is an iterative search method that at each iteration samples solutions for a single test instance using a given model and then adjusts the parameters of that model with the objective to increase the likelihood of generating high-quality solutions in future iterations. They report improved performance over random sampling when starting the search from an already trained model. Despite promising results, active search has not seen adaption in the literature. The reason for this is its resource requirements, as adjusting all model parameters separately for each test instance is very time intensive, especially compared to methods that can sample solutions to multiple different instances in one batch.
20
+
21
+ We extend the idea of active search as follows. (1) We propose to only adjust a subset of (model) parameters to a single instance during the search, while keeping all other parameters fixed. We show that this efficient active search (EAS) drastically reduces the runtime of active search without impairing the solution quality. (2) We implement and evaluate three different implementations of EAS and show that all offer significantly improved performance over pure sampling approaches.
22
+
23
+ In our EAS implementations, the majority of (model) parameters are not updated during the search, which drastically reduces the runtime, because gradients only need to be computed for a subset of model weights, and most operations can be applied identically across a batch of different instances. Furthermore, we show that for some problems, EAS finds even better solutions than the original active search. All EAS implementations can be easily applied to existing ML construction methods.
24
+
25
+ We evaluate the proposed EAS approaches on the traveling salesperson problem (TSP), the capacitated vehicle routing problem (CVRP) and the job shop scheduling problem (JSSP). For all problems, we build upon already existing construction approaches that only offer limited search capabilities. In all experiments, EAS leads to significantly improved performance over sampling approaches. For the CVRP and the JSSP, the EAS approaches outperform all state-of-the-art ML based approaches, and even the well-known heuristic solver LKH3 for the CVRP. Furthermore, EAS approaches assists in model generalization, resulting in drastically improved performance when searching for solutions to instances that are much larger than the instances seen during model training.
26
+
27
+ # 2 LITERATURE REVIEW
28
+
29
+ Construction methods Hopfield (1982) first used a neural network (a Hopfield network) to solve small TSP instances with up to 30 cities. The development of recent neural network architectures has paved the way for ML approaches that are able to solve large instances. The pointer network architecture proposed by Vinyals et al. (2015) efficiently learns the conditional probability of a permutation of a given input sequence, e.g., a permutation of cities for a TSP solution. The authors solve TSP instances with up to 50 cities via supervised learning. Bello et al. (2016) report that training a pointer network via actor-critic RL instead results in a better performance on TSP instances with 50 and 100 cities. Furthermore, graph neural networks are used to solve the TSP, e.g., a graph embedding network in Khalil et al. (2017) and a graph attention network in Deudon et al. (2018).
30
+
31
+ The first applications of neural network based methods to the CVRP are reported by Nazari et al. (2018) and Kool et al. (2019). Nazari et al. (2018) propose a model with an attention mechanism and a recurrent neural network (RNN) decoder that can be trained via actor-critic RL. Kool et al. (2019) propose an attention model that uses an encoder that is similar to the encoder used in the transformer architecture Vaswani et al. (2017). Peng et al. (2019) and Xin et al. (2021) extend the attention model to update the node embeddings throughout the search, resulting in improved performance at the cost of longer runtimes for the CVRP. Falkner & Schmidt-Thieme (2020) propose an attention-based model that constructs tours in parallel for the CVRP with time windows.
32
+
33
+ While ML-based construction methods have mainly focused on routing problems, there are some notable exceptions. For example, Khalil et al. (2017) use a graph embedding network approach to solve the minimum vertex cover and the maximum cut problems (in addition to the TSP). Zhang et al. (2020) propose a graph neural network based approach for the job shop scheduling problem (JSSP). Li et al. (2018) use a guided tree search enhanced ML approach to solve the maximal independent set, minimum vertex cover, and the maximal clique problems. For a more detailed review of ML methods on different combinatorial optimization problems, we refer to Vesselinova et al. (2020).
34
+
35
+ While most approaches construct routing problem solutions autoregressively, some approaches predict a heat-map that describes which edges will likely be part of a good solution. The heat-map is then used in a post-hoc search to construct solutions. Joshi et al. (2019) use a graph convolutional network to create a heat-map and a beam search to search for solutions. Similarly, Fu et al. (2020) use a graph convolutional residual network with Monte Carlo tree search to solve large TSP instances. Kool et al. (2021) use the model from Joshi et al. (2019) to generate the heat-map and use it to search for solution to TSP and CVRP instances with a dynamic programming based approach.
36
+
37
+ Improvement methods Improvement methods integrate ML based methods into high-level search heuristics or try to learn improvement operators directly. In general, they often invest more time into solving an instance than construction based methods (and usually find better solutions). Chen & Tian (2019) propose an approach that iteratively changes a local part of the solution. At each iteration, the trainable region picking policy selects a part of the solution that should be changed and a trainable rule picking policy selects an action from a given set of possible modification operations. Hottung & Tierney (2020) propose a method for the CVRP that iteratively destroys parts of a solution using predefined, handcrafted operators and then reconstructs them with a learned repair operator. Wu et al. (2021) and de O. da Costa et al. (2020) propose to use RL to pick an improving solution from a specified local neighborhood (e.g., the 2-Opt neighborhood) to solve routing problems. Hottung et al. (2021) learn a continuous representation of discrete routing problem solutions using conditional variational autoencoders and search for solutions using a generic, continuous optimizer.
38
+
39
+ # 3 SOLVING COMBINATORIAL OPTIMIZATION PROBLEMS WITH EAS
40
+
41
+ We propose three EAS implementations that adjust a small subset of (model) parameters in an iterative search process. Given an already trained model, we investigate adjusting (1) the normally static embeddings of the problem instance that are generated by the encoder model, (2) the weights of additional instance-specific residual layers added to the decoder, and (3) the parameters of a lookup table that directly affect the probability distribution returned by model. In each iteration, multiple solutions are sampled for one instance and the dynamic (model) parameters are adjusted with the goal of increasing the probability of generating high quality solutions (as during model training). This allows the search to sample solutions of higher quality in subsequent iterations, i.e., the search can focus on the more promising areas of the search space. Once a high-quality solution for an instance is found, the adjusted parameters are discarded, so that the search process can be repeated on other instances. All strategies efficiently generate solutions to a batch of instances in parallel, because the network layers not updated during the search are applied identically to all instances of the batch.
42
+
43
+ Background RL based approaches for combinatorial problems aim to learn a neural network based model $p _ { \theta } ( \pi | l )$ with weights $\theta$ that can be used to generate a solution $\pi$ given an instance l. State-ofthe-art approaches usually use a model that consists of an encoder and a decoder unit. The encoder usually creates static embeddings $\omega$ that describe the instance $l$ using a computationally expensive encoding process (e.g., Kool et al. (2019); Kwon et al. (2020)). The static embeddings are then used to autoregessively construct solutions using the decoder over $T$ time steps. At each step $t$ , the decoder $q _ { \phi } ( a | s _ { t } , \bar { \omega } )$ , with weights $\phi \subset \theta$ , outputs a probability value for each possible action $a$ in the state $s _ { t }$ (e.g., for the TSP, each action corresponds to visiting a different city next). The starting state $s _ { 1 }$ describes the problem instance $l$ (e.g., the positions of the cities for the TSP and the starting city) and the state $s _ { t + 1 }$ is obtained by applying the action $a _ { t }$ selected at time step $t$ to the state $s _ { t }$ . The (partial) solution $\pi _ { t }$ is defined by the sequence of selected actions $a _ { 1 } , a _ { 2 } , \ldots , a _ { t }$ . Once a complete solution, $\pi _ { T }$ , fulfilling all constraints of the problem is constructed, the objective function value $\mathbf { \bar { \boldsymbol { C } } } ( \pi , l )$ of the solution can be computed (e.g., the tour length for the TSP).
44
+
45
+ Figure 1 shows the solution generation for a TSP instance with a model that uses static embeddings. The static embeddings $\omega$ are used at each decoding step to generate a probability distribution over all possible next actions and the selected action is provided to the decoder in the next decoding step. During testing, solutions can be constructed by either selecting actions greedily or by sampling each action according to $q _ { \phi } ( a | s _ { t } , \omega )$ . Since the static embeddings are not updated during solution generation they only need to be computed once per instance, which allows to quickly sample multiple solutions per instance. We note that not all models use static embeddings. Some approaches update all instance embeddings after each action (e.g., Zhang et al. (2020)), which allows the embeddings to contain information on the current solution state $s _ { t }$ .
46
+
47
+ ![](images/3abde8df1e97587e52664ac4987fda3a29e2025873cd251133e478eda9740eb0.jpg)
48
+ Figure 1: Sampling a solution for the TSP with a model $p _ { \theta } ( \pi | l )$ that uses static instance embeddings.
49
+
50
+ # 3.1 EMBEDDING UPDATES
51
+
52
+ Our first proposed strategy, called EAS-Emb, updates the embeddings $\omega$ generated by an encoder using a loss function consisting of an RL component $\mathcal { L } _ { R L }$ and an imitation learning $\left( \operatorname { I L } \right)$ component $\mathcal { L } _ { I L }$ . The loss $\mathcal { L } _ { R L }$ is based on REINFORCE (Williams, 1992) and is the expected cost of the generated solutions, $\mathbb { E } \left[ C ( \pi ) \right]$ . We aim to adjust the embedding parameters to increase the likelihood of generating solutions with lower costs (e.g., a shorter tour length for the TSP). The loss $\mathcal { L } _ { I L }$ is the negation of the log-probability of (re-)generating the best solution seen so far. We adjust the embedding parameters to increase this probability.
53
+
54
+ More formally, for an instance $l$ we generate the embeddings $\omega$ using a given encoder. Based on $\omega$ we can (repeatedly) sample a solution $\pi$ whose cost is $C ( \pi )$ . A subset of the embeddings $\hat { \omega } \subseteq \omega$ is adjusted to minimize $\mathcal { L } _ { R L }$ using the gradient
55
+
56
+ $$
57
+ \nabla _ { \hat { \omega } } \mathcal { L } _ { R L } ( \hat { \omega } ) = \mathbb { E } _ { \boldsymbol \pi } \left[ ( C ( \boldsymbol \pi ) - b _ { \circ } ) \nabla _ { \hat { \omega } } \log q _ { \phi } ( \boldsymbol \pi \mid \hat { \omega } ) \right]
58
+ $$
59
+
60
+ where $\begin{array} { r } { q _ { \phi } ( \pi \mid \hat { \omega } ) \equiv \prod _ { t = 1 } ^ { T } q _ { \phi } ( a _ { t } \mid s _ { t } , \hat { \omega } ) } \end{array}$ , and $b _ { \circ }$ is a baseline (we use the baseline proposed in Kwon et al. (2020) for our experiments).
61
+
62
+ For the second loss $\mathcal { L } _ { I L }$ , let $\bar { \pi }$ be the best solution found so far for the instance $l$ , that consists of the actions $\bar { a } _ { 1 } , \dots , \bar { a } _ { T }$ . We use teacher forcing to make the decoder $q _ { \phi } ( \cdot | s _ { t } , \hat { \omega } )$ generate the solution $\bar { \pi }$ , during which we obtain the probability values associated with the actions $\bar { a } _ { 1 } , \dots , \bar { a } _ { T }$ . We increase the log-likelihood of generating $\bar { \pi }$ by adjusting $\hat { \omega }$ using the gradient
63
+
64
+ $$
65
+ \nabla _ { \boldsymbol { \hat { \omega } } } \mathcal { L } _ { I L } ( \boldsymbol { \hat { \omega } } ) = - \nabla _ { \boldsymbol { \hat { \omega } } } \log q _ { \phi } ( \bar { \pi } \mid \boldsymbol { \hat { \omega } } ) \equiv - \nabla _ { \boldsymbol { \hat { \omega } } } \log \prod _ { t = 1 } ^ { T } q _ { \phi } ( \bar { a } _ { t } | s _ { t } , \boldsymbol { \hat { \omega } } ) .
66
+ $$
67
+
68
+ The gradient of the overall loss $\mathcal { L } _ { R I L }$ is defined as $\nabla _ { \hat { \omega } } \mathcal { L } _ { R I L } ( \hat { \omega } ) = \nabla _ { \hat { \omega } } \mathcal { L } _ { R L } ( \hat { \omega } ) + \lambda \cdot \nabla _ { \hat { \omega } } \mathcal { L } _ { I L } ( \hat { \omega } )$ , where $\lambda$ is a tunable parameter. If a high value for $\lambda$ is selected, the search focuses on generating solutions that are similar to the incumbent solution. This accelerates the convergence of the search policy, which is useful when the number of search iterations is limited.
69
+
70
+ We note that both decoding processes required for RL and $\mathrm { I L }$ can be carried out in parallel, using the same forward pass through the network. Furthermore, only the parameters $\hat { \omega }$ are instance specific, while all other model parameters are identical for all instances. This makes parallelization of multiple instances in a batch more efficient both in time and memory.
71
+
72
+ # 3.2 ADDED-LAYER UPDATES
73
+
74
+ We next propose EAS-Lay, which adds an instance-specific residual layer to a trained model. During the search, the weights in the added layer are updated, while the weights of all other original layers are held fixed. We use both RL and $\mathrm { I L }$ , similarly to EAS-Emb in Section 3.1.
75
+
76
+ We formalize EAS-Lay as follows. For each instance $l$ we insert a layer
77
+
78
+ $$
79
+ \operatorname { L } ^ { \star } ( h ) = h + ( ( \operatorname { R e L u } ( h W ^ { 1 } + b ^ { 1 } ) W ^ { 2 } + b ^ { 2 } )
80
+ $$
81
+
82
+ into the given decoder $q _ { \phi }$ , resulting in a slightly modified model $\tilde { q } _ { \phi , \psi }$ , where $\psi = \{ W ^ { 1 } , b ^ { 1 } , W ^ { 2 } , b ^ { 2 } \}$ . The layer takes in the input $h$ and applies two linear transformations with a ReLu activation function in between. The weight matrices $W ^ { \bar { 1 } }$ and $W ^ { 2 }$ and the bias vectors $b ^ { 1 }$ and $b ^ { 2 }$ are adjusted throughout the search via gradient descent. The weights in the matrix $W ^ { 2 }$ and the vector $b ^ { 2 }$ are initialized to zero so that the added layer does not affect the output of the model during the first iteration of the search. The gradient for $\mathcal { L } _ { R L }$ is given as
83
+
84
+ $$
85
+ \nabla _ { \psi } \mathcal { L } _ { R L } ( \psi ) = \mathbb { E } _ { \pi } \big [ ( C ( \pi ) - b _ { \circ } ) \nabla _ { \psi } \log \tilde { q } _ { \phi , \psi } ( \pi ) \big ] ,
86
+ $$
87
+
88
+ with $\begin{array} { r } { \tilde { q } _ { \phi , \psi } ( \pi ) \equiv \prod _ { t = 1 } ^ { T } \tilde { q } _ { \phi , \psi } ( a _ { t } \mid s _ { t } , \omega ) } \end{array}$ , and $b _ { \circ }$ is a baseline. The gradient for $\mathcal { L } _ { I L }$ is defined similarly.
89
+
90
+ Note that the majority of the network operations are not instance specific. They can be applied identically to all instances running in parallel as a batch, resulting in significantly lower runtime during search. The position at which the new layer is inserted has an impact on the performance of EAS-Lay, and identifying the best position usually requires testing. In general, the memory requirement of this approach can be reduced by inserting the additional layer closer towards the output layer of the network. This decreases the number of layers to be considered during backpropagation. We noticed for transformer-based architectures that applying the residual layer $\mathrm { L } ^ { \star } ( \cdot )$ to the query vector $q$ before it is passed to the single attention head usually results in a good performance.
91
+
92
+ # 3.3 TABULAR UPDATES
93
+
94
+ EAS-Emb and EAS-Lay require significantly less memory per instance than the original active search. However, they still need to store many gradient weights associated with multiple layers for the purpose of backpropagation. This significantly limits the number of solutions one can generate in parallel. We hence propose EAS-Tab, which does not require backpropagation, but instead uses a simple lookup table to modify the policy of the given model. For each action at a given state, the table provides a guide on how to change its probability, so that the sampled solution has a higher chance at being similar to the best solution found in the past.
95
+
96
+ Formally, at each step $t$ during the sequential generation of a solution, we redefine the probability of selecting action $a _ { t }$ in the state $s _ { t }$ as $q _ { \phi } ( a | \bar { s _ { t } } , \omega ) ^ { \alpha } \cdot Q _ { g ( s _ { t } , a _ { t } ) }$ and renormalize over all possible actions using the softmax function. Here, $\alpha$ is a hyperparameter, and $g$ is a function that maps each possible state and action pair to an entry in the table $Q$ . The network parameters $\theta$ remain unchanged, resulting in fast and memory efficient solution generation. The hyperparameter $\alpha$ is similar to the temperature value proposed in Bello et al. (2016) and modifies the steepness of the probability distribution returned by the model (lower values increase the exploration of the search). During search, the table $Q$ is updated with the objective of increasing the quality of the generated solutions. More precisely, after each iteration, $Q$ is updated based on the best solution $\bar { \pi }$ found so far consisting of the actions $\bar { a } _ { 1 } , \dots , \bar { a } _ { T }$ at states $\bar { s } _ { 1 } , \dots , \bar { s } _ { T }$ , respectively, with
97
+
98
+ $$
99
+ Q _ { g ( s _ { t } , a _ { t } ) } = \left\{ \begin{array} { l l } { \operatorname* { m a x } ( 1 , \frac { \sigma } { q _ { \phi } ( a | s _ { t } , \omega ) ^ { \alpha } } ) , } & { \mathrm { i f } g ( s _ { t } , a _ { t } ) \in \{ g ( \bar { a } _ { 1 } , \bar { s } _ { 1 } ) , \dots , g ( \bar { a } _ { T } , \bar { s } _ { T } ) \} } \\ { 1 , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
100
+ $$
101
+
102
+ The hyperparameter $\sigma$ defines the degree of exploitation of the search. If a higher value of $\sigma$ is used, the probabilities for actions that generate the incumbent solution are increased.
103
+
104
+ In contrast to embedding or added-layer updates, this EAS method requires deeper understanding of the addressed combinatorial optimization problem to design the function $g ( s _ { t } , a _ { t } )$ . For example, for the TSP with $n$ nodes we use a table $Q$ of size $n \times n$ in which each entry $Q _ { i , j }$ corresponds to a directed edge $e _ { i , j }$ of the problem instance. The probability increases for the same directed edge that was used in the incumbent solution. This definition of $g ( s _ { t } , a _ { t } )$ effectively ignores the information on all the previous visits stored in state $s _ { t }$ , focusing instead on the current location (city) in choosing the next move. We note that this EAS approach is similar to the ant colony optimization algorithm (Dorigo et al., 2006), which has been applied to a wide variety of combinatorial optimization problems.
105
+
106
+ # 4 EXPERIMENTS
107
+
108
+ We evaluate all EAS strategies using existing, state-of-the-art RL based methods for three different combinatorial optimization problems. For the first two, the TSP and the CVRP, we implement EAS for the POMO approach (Kwon et al., 2020). For the third problem, the JSSP, we use the L2D method from Zhang et al. (2020). We extend the code made available by the authors of POMO (MIT license) and L2D (no license) with our EAS strategies to ensure a fair evaluation. Note that we only make minor modifications to these methods, and we use the models trained by the authors when available.
109
+
110
+ We run all experiments on a GPU cluster using a single Nvidia Tesla V100 GPU and a single core of an Intel Xeon 4114 CPU at $2 . 2 \ : \mathrm { G H z }$ for each experiment. Our source code is available at https://github.com/ahottung/EAS. We use the Adam optimizer (Kingma & Ba, 2014) for all EAS approaches. The hyperparameters $\lambda , \sigma , \alpha$ , and the learning rate for the optimizer are tuned via Bayesian optimization using scikit-optimize (Head et al., 2020) on separate validation instances, which are sampled from the same distribution as the test instances. The hyperparameters are not adjusted for larger instances used to evaluate the generalization performance.
111
+
112
+ # 4.1 TSP
113
+
114
+ The TSP is a well-known routing problem involving finding the shortest tour between a set of $n$ nodes (i.e., cities) that visits each node exactly once and returns to the starting node. We assume that the distance matrix obeys the triangle inequality.
115
+
116
+ Implementation POMO uses a model that is very similar to the AM model from Kool et al. (2019). The model generates instance embeddings only once per instance and does not update them during construction. The probability distribution over all actions are generated by a decoder, whose last layer is a single-headed attention layer. This last layer calculates the compatibility of a query vector $q$ to the key vector $k _ { i }$ for each node $i$ . In this operation, the key vector $k _ { i }$ is an embedding that has been computed separately, but identically for each input (i.e., node $i$ ) during the instance encoding process. For EAS-Emb, we only update the set of single-head keys $k _ { i }$ $( i = 1 , \ldots , n )$ . For EAS-Lay we apply the residual layer $\mathrm { L } ^ { \star } ( \cdot )$ described in Equation 3 to the query vector $q$ before it is passed to the single attention head. For EAS-Tab, we use a table $Q$ of size $n \times n$ and the mapping function $g ( s _ { t } , a _ { t } )$ such that each entry $Q _ { i , j }$ corespondents to a directed edge $e _ { i , j }$ of the problem instance.
117
+
118
+ Setup We use the 10,000 TSP instances with $n = 1 0 0$ from Kool et al. (2019) for testing and three additional sets of 1,000 instances to evaluate generalization performance. We evaluate the EAS approaches against just using POMO with greedy action selection, random sampling, and active search as in Bello et al. (2016). In all cases, we use the model trained on instances with $n = 1 0 0$ made available by the POMO authors. For greedy action selection, POMO generates $8 \cdot n$ solutions for an instance of size $n$ (using 8 augmentations and $n$ different starting cities). In all other cases, we generate $2 0 0 \cdot 8 \cdot n$ solutions per instance (over the course of 200 iterations for the (E)AS approaches). The batch size (the number of instances solved in parallel) is selected for each method individually to fully utilize the available GPU memory. We compare to the exact solver Concorde (Applegate et al., 2006), the heuristic solver LKH3 (Helsgaun, 2017), the graph convolutional neural network with beam search (GCN-BS) from Joshi et al. (2019), the 2-Opt based deep learning (2-Opt-DL) approach from de O. da Costa et al. (2020), the learning improvement heuristics (LIH) method from Wu et al. (2021), the conditional variational autoencoder (CVAE-Opt) approach (Hottung et al., 2021), and deep policy dynamic programming (DPDP) (Kool et al., 2021).
119
+
120
+ Results Table 1 shows the average costs, average gap and the total runtime (wall-clock time) for each instance set. The exact solver Concorde performs best overall, as it is a highly specialized TSP solver. Of the POMO-based approaches, the original active search offers the best gap to optimality, but requires 5 days of runtime. EAS significantly lowers the runtime while the gap is only marginally larger. DPDP performs best among ML-based approaches. However, DPDP relies on a handcrafted and problem-specific beam search, whereas EAS methods are completely problem-independent. On the larger instances, EAS significantly improves generalization performance, reducing the gap over sampling by up to $3 . 6 \mathrm { x }$ . We also evaluate active search using the imitation learning loss, but observe no impact on the search performance (see Appendix B).
121
+
122
+ Table 1: Results for the TSP
123
+
124
+ <table><tr><td rowspan="2"></td><td colspan="3">Testing (10k inst.)</td><td colspan="10">Generalization (1k instances)</td></tr><tr><td colspan="3">n=100</td><td colspan="3">n=125</td><td colspan="3">n=150</td><td colspan="3"></td><td>n = 200</td></tr><tr><td>Method</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td></td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td></tr><tr><td>Concorde</td><td></td><td>[7.765 0.000%</td><td></td><td></td><td>82M|8.583 0.000%</td><td></td><td></td><td>12M|9.346 0.000%</td><td></td><td></td><td>17M|10.687 0.000%</td><td></td><td>31M</td></tr><tr><td>LKH3</td><td>7.765</td><td>0.000%</td><td>8H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>8.5830.000%73M9.3460.000% 99M10.6870.000%</td><td>3H</td></tr><tr><td>GCN-BS</td><td>7.87</td><td>1.39%</td><td>40M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td><td>-</td></tr><tr><td>2-Opt-DL</td><td>7.83</td><td>0.87%</td><td>41M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>LIH</td><td>7.87</td><td>1.42%</td><td>2H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>CVAE-Opt</td><td>1</td><td>0.343%</td><td>6D</td><td></td><td>8.646 0.736%</td><td>21H</td><td></td><td>9.482 1.454%</td><td></td><td>30H</td><td></td><td></td><td></td></tr><tr><td>DPDP</td><td>7.765</td><td>0.004%</td><td>2H</td><td></td><td>8.589 0.070%</td><td>31M</td><td></td><td>9.4340.942%</td><td></td><td>44M</td><td></td><td>11.154 4.370%</td><td>74M</td></tr><tr><td>Greedy</td><td>7.776</td><td>0.146%</td><td>1M|</td><td>8.607</td><td>0.278%</td><td></td><td>&lt;1M|9.397</td><td></td><td>0.542%</td><td>&lt;1M|</td><td>10.843</td><td>1.457%</td><td>1M</td></tr><tr><td>Sampling</td><td>7.770</td><td>0.074%</td><td>4H</td><td>8.595</td><td>0.145%</td><td>45M</td><td></td><td>9.378</td><td>0.334%</td><td>78M</td><td></td><td>10.8381.416%</td><td>3H</td></tr><tr><td>Active S.</td><td></td><td>7.768 0.046%</td><td>5D</td><td>8.591</td><td>0.095%</td><td>15H</td><td>9.364</td><td></td><td>0.192%</td><td>19H</td><td>10.735</td><td>50.447%</td><td>24H</td></tr><tr><td>0 EAS-Emb</td><td></td><td>7.769 0.063%</td><td>5H</td><td>8.591</td><td>0.092%</td><td>57M</td><td></td><td>9.363</td><td>0.174%</td><td>2H</td><td>10.730 0.400%</td><td></td><td>4H</td></tr><tr><td>P EAS-Lay</td><td></td><td>7.769 0.053%</td><td>7H</td><td>8.591</td><td>0.089%</td><td>74M</td><td></td><td>9.363 0.176%</td><td></td><td>2H</td><td>10.737 0.471%</td><td></td><td>4H</td></tr><tr><td>EAS-Tab</td><td></td><td>7.768 0.048%</td><td>5H</td><td>8.591</td><td>0.091%49M</td><td></td><td></td><td>9.3650.196%</td><td></td><td>1H</td><td>10.756 0.650%</td><td></td><td>3H</td></tr></table>
125
+
126
+ # 4.2 CVRP
127
+
128
+ The goal of the CVRP is to find the shortest routes for a set of vehicles with limited capacity that must deliver goods to a set of $n$ customers. We again use the POMO approach as a basis for our EAS strategies. As is standard in the ML literature, we evaluate all approaches on instance sets where the locations and demands are sampled uniformly at random. Additionally, we consider the more realistic instance sets proposed in Hottung & Tierney (2020) with up to 297 customers (see Appendix A).
129
+
130
+ Implementation We use the same EAS implementation for the CVRP as for the TSP.
131
+
132
+ Setup We use the 10,000 CVRP instances from Kool et al. (2019) for testing and additional sets of 1,000 instances to evaluate the generalization performance. Again, we compare the EAS approaches to POMO using greedy action selection, sampling and active search. We generate the same number of solutions per instance as for the TSP. We compare to LIH, CAVE-Opt, DPDP, NeuRewriter (Chen & Tian, 2019) and neural large neighborhood search (NLNS) from Hottung & Tierney (2020).
133
+
134
+ Results Table 2 shows the average costs, the average gap to LKH3 and the total wall-clock time for all instance sets. EAS-Lay outperforms all other approaches on the test instances, including approaches that rely on problem-specific knowledge, with a gap that beats LKH3. Both other EAS methods also find solutions of better quality than LKH3, which is quite an accomplishment given the many years of work on the LKH3 approach. We note it is difficult to provide a fair comparison between a single-core, CPU-bound technique like LKH3 and our approaches that use a GPU. Nonetheless, assuming a linear speedup, at least 18 CPU cores would be needed for LKH3 to match the runtime of EAS-Tab. On the generalization instance sets with $n = 1 2 5$ and $n = 1 5 0$ , the EAS approaches also outperform LKH3 and CVAE-Opt while being significantly faster than active search. On the instances with $n = 2 0 0$ , active search finds the best solutions of all POMO based approaches with a gap of $0 . 2 2 \%$ to LKH3, albeit with a long runtime of 36 hours. We hypothesize that significant changes to the learned policy are necessary to generate high-quality solutions for instances that are very different to those seen during training. Active search’s ability to modify all model parameters makes it easier to make those changes. EAS-Tab offers the worst performance on the instances with $n = 2 0 0$ with a gap of $1 1 . 8 \%$ . This is because EAS-Tab is very sensitive to the selection of the hyperparameter $\alpha$ , meaning that EAS-Tab requires hyperparameter tuning on some problems to generalize more effectively. Adjusting $\alpha$ for the $n = 2 0 0$ case improves EAS-Tab’s gap to at least $3 . 5 4 \%$ , making it slightly better than greedy or sampling.
135
+
136
+ Table 2: Results for the CVRP on instances with uniformly sampled locations and demands
137
+
138
+ <table><tr><td rowspan="2"></td><td colspan="3">Testing (10k inst.) n=100</td><td colspan="10">Generalization (1k instances)</td></tr><tr><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>n =125 Gap</td><td>Time</td><td>Obj.</td><td>n=150 Gap</td><td>Time</td><td>Obj.</td><td>n = 200 Gap</td><td></td><td>Time</td></tr><tr><td>Method</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>LKH3</td><td>|15.65</td><td>0.00%</td><td></td><td>6D|17.50</td><td>0.00%</td><td></td><td>19H|19.22</td><td></td><td>0.00%</td><td></td><td>20H|22.00</td><td>0.00%</td><td>25H</td></tr><tr><td>NLNS NeuRewriter</td><td>15.99</td><td>2.23%</td><td>62M</td><td>[|18.07</td><td>3.23%</td><td></td><td>9M|19.96</td><td></td><td>3.86%</td><td>12M|23.02</td><td></td><td>4.66%</td><td>24M</td></tr><tr><td>LIH</td><td>16.10</td><td></td><td>66M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>CVAE-Opt</td><td>16.03</td><td>2.47% 1.36%</td><td>5H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td><td>=</td></tr><tr><td>DPDP</td><td>15.63</td><td>-0.13%</td><td>11D 23H</td><td>17.87 17.51</td><td>2.08% 0.07%</td><td>36H 3H</td><td>19.84 19.31</td><td></td><td>3.24% 0.48%</td><td>46H 5H</td><td>22.26</td><td>51.20%</td><td>= 9H</td></tr><tr><td>Greedy</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>15.76</td><td>0.76%</td><td>2M</td><td>17.73</td><td>1.29%</td><td>&lt;1M</td><td>19.64</td><td></td><td>2.18%</td><td>1M</td><td>|22.90</td><td>4.12%</td><td>1M</td></tr><tr><td>Sampling 0</td><td>15.67</td><td>0.17%</td><td>7H</td><td>17.60</td><td>0.54%</td><td>73M</td><td>19.48</td><td></td><td>1.35%</td><td>2H</td><td>23.18</td><td>5.35%</td><td>5H</td></tr><tr><td>Active S.</td><td>15.63</td><td>-0.07%</td><td>8D</td><td>17.47</td><td>-0.21%</td><td>25H</td><td>19.21</td><td></td><td>-0.03%</td><td>29H</td><td>22.05</td><td>0.22%</td><td>36H</td></tr><tr><td>EAS-Emb</td><td>15.63 15.61</td><td>-0.08%</td><td>9H 12H</td><td>17.47</td><td>-0.21%</td><td>93M</td><td>19.22</td><td></td><td>0.03%</td><td>3H</td><td>22.19</td><td>0.88%</td><td>6H</td></tr><tr><td>EAS-Lay EAS-Tab</td><td>15.62</td><td>-0.23% -0.14%</td><td>8H</td><td>17.50</td><td>17.46 -0.24% 0.00%</td><td>2H 80M</td><td>19.21 19.36</td><td></td><td>-0.04% 0.72%</td><td>3H 2H</td><td>22.10 24.56</td><td>0.45% 11.8%</td><td>8H 5H</td></tr></table>
139
+
140
+ # 4.3 JSSP
141
+
142
+ The JSSP is a scheduling problem involving assigning jobs to a set of heterogeneous machines. Each job consists of multiple operations that are run sequentially on the set of machines. The objective is to minimize the time needed to complete all jobs, called the makespan. We evaluate EAS using the L2D approach, which is a state-of-the-art ML based construction method using a graph neural network.
143
+
144
+ Implementation L2D represents JSSP instances as disjunctive graphs in which each operation of an instance is represented by a node in the graph. To create a schedule, L2D sequentially selects the operation that should be scheduled next. To this end, an embedding $h _ { v }$ is created for each node $v$ in a step-wise encoding process. In contrast to POMO, the embeddings $h _ { v }$ are recomputed after each decision step $t$ . Since EAS-Emb requires static embeddings, we modify the network to use $\tilde { h } _ { v } ^ { t } = h _ { v } ^ { t } + h _ { v } ^ { S T }$ as an embedding for node t to zero. During the searc $v$ at step with E $t$ , where S-Emb $h _ { v } ^ { S T }$ is a vector that is initialized winly adjust the static component $h _ { v } ^ { S T }$ of the embedding with gradient descent. For EAS-Lay, we insert the residual layer $\mathrm { L } ^ { \star } ( \cdot )$ described in Equation 3 to each embedding $h _ { v }$ separately and identically. Finally, for EAS-Tab, we use a table $Q$ of size $| O | \times | O |$ , where $| O |$ is the number of operations, and we design the function $g ( s _ { t } , a _ { t } )$ so that the entry $Q _ { i , j }$ corresponds to selecting the operation $o _ { j }$ directly after the operation $o _ { i }$ .
145
+
146
+ Setup We use three instance sets with 100 instances from Zhang et al. (2020) for testing and to evaluate the generalization performance. We use the exact solver Google OR-Tools (Perron & Furnon) as a baseline, allowing it a maximum runtime of 1 hour per instance. Furthermore, we compare to L2D with greedy action selection. Note that the performance of the L2D implementation is CPU bound and does not allow different instances to be batch processed. We hence solve instances sequentially and generate significantly fewer solutions per instance than for the TSP and the CVRP. For sampling, active search and the EAS approaches we sample 8,000 solutions per problem instance over the course of 200 iterations for the (efficient) active search approaches.
147
+
148
+ Results Table 3 shows the average gap to the OR-Tools solution and the total wall-clock time per instance set. EAS-Emb offers the best performance for all three instance sets. On the $1 0 \times 1 0$ instances, EAS-Emb reduces the gap by $50 \%$ in comparison to pure sampling. Even on the $2 0 \times 1 5$ instances it reduces the gap to $1 6 . 8 \%$ from $2 0 . 8 \%$ for pure sampling, despite the low number of sampled solutions per instance. EAS-Lay offers performance that is comparable to active search. We note that if L2D were to more heavily use the GPU, instances could be solved in batches, thus drastically reducing the runtime of EAS-Lay and EAS-Tab. While EAS-Tab shows similar performance to active search on the test instance set, it is unable to generalize effectively to the larger instances.
149
+
150
+ # 4.4 SEARCH TRAJECTORY ANALYSIS
151
+
152
+ To get a better understanding of how efficient active search improves performance, we monitor the quality of the solutions sampled at each of the 200 iterations of the search. Figure 2 reports the average quality over all test instances for the JSSP and over the first 1,000 test instances for the TSP and CVRP. As expected, the quality of solutions generated via pure sampling does not change over the course of the search for all three problems. For all other methods, the quality of the generated solutions improves throughout the search. Thus, all active search variants successfully modify the (model) parameters in a way that increases the likelihood of generating high-quality solutions.
153
+
154
+ Table 3: Results for the JSSP
155
+
156
+ <table><tr><td colspan="2" rowspan="2"></td><td colspan="3">Testing(100 inst.)</td><td colspan="4">Generalization (1OO instances)</td></tr><tr><td colspan="2">10×10</td><td colspan="3">15×15</td><td colspan="3">20×15</td></tr><tr><td colspan="2" rowspan="2">Method</td><td rowspan="2">Obj. Gap</td><td rowspan="2">Time</td><td rowspan="2">Obj.</td><td>Gap</td><td>Time</td><td>Obj. Gap</td><td>Time</td></tr><tr><td rowspan="2"></td><td rowspan="2"></td><td rowspan="2"></td><td rowspan="2">0.0%</td></tr><tr><td rowspan="2">OR-Tools Greedy</td><td rowspan="2">1807.6 0.0%</td></tr><tr><td>37S|1</td><td rowspan="2">[1188.0</td><td colspan="2" rowspan="2">0.0%</td><td rowspan="2">3H| |1345.5</td><td rowspan="2"></td><td rowspan="2">80H</td></tr><tr><td rowspan="2"></td><td rowspan="2">1988.6</td></tr><tr><td>22.3% 871.7</td><td>20S 1528.3</td><td>28.6%</td><td>44S</td><td>1738.0</td><td>29.2%</td><td>60S</td></tr><tr><td rowspan="4">Sampling L</td><td>854.2</td><td>8.0% 5.8%</td><td>8H 8H</td><td>1378.3 16.0% 1345.2 13.2%</td><td>25H 32H</td><td>1624.6 1576.5</td><td>20.8% 17.2%</td><td>40H</td></tr><tr><td>EAS-Emb</td><td>837.0 3.7%</td><td>7H</td><td>1326.4 11.7%</td><td>22H</td><td>1570.8</td><td>16.8%</td><td>50H 37H</td></tr><tr><td>EAS-Lay</td><td>859.6 6.5%</td><td>7H</td><td>1352.6</td><td>13.8%</td><td>25H 1581.8</td><td>17.6%</td><td>46H</td></tr><tr><td>EAS-Tab</td><td>860.2 6.5%</td><td>8H</td><td>1376.8</td><td>15.9% 29H</td><td></td><td>1623.420.7%</td><td>51H</td></tr></table>
157
+
158
+ ![](images/aeff2be7dc644f08b6349a6f6cabfb88e1ed829fcc964cb99457f18da9f01b79.jpg)
159
+ Figure 2: Average costs of sampled solutions at each iteration (best viewed in color).
160
+
161
+ ![](images/3814f29ab52dc4112005668d02a29044fe9d34e4442175ae8284d12c9a420a11.jpg)
162
+ Figure 3: Influence of $\lambda$ on the solution quality for EAS-Emb and EAS-Lay.
163
+
164
+ For the TSP, EAS-Emb and EAS-Lay offer nearly identical performance, with EAS-Tab outperforming both by a very slight margin. The original active search is significantly more unstable, which is likely the result of the learning rate being too high. Note that the learning rate has been tuned on an independent validation set. These results indicate that selecting a suitable learning rate is significantly more difficult for the original active search than for our efficient active search variants where only a subset of (model) parameters are changed. For the CVRP, all EAS variants find better solutions on average than the original search after only a few iterations. Keeping most parameters fixed seems to simplify the underlying learning problem and allows for faster convergence. For the JSSP, EAS-Emb offers significantly better performance than all other methods. The reason for this is that the L2D approach uses only two node features and has a complex node embedding generation procedure. While the original active search must fine tune the entire embedding generation process to modify the generated solutions, EAS-Emb can just modify the node embedding directly.
165
+
166
+ # 4.5 ABLATION STUDY: IMITATION LEARNING LOSS
167
+
168
+ We evaluate the impact of the imitation learning loss $\mathcal { L } _ { I L }$ of EAS-Emb and EAS-Lay with a sensitivity and ablation analysis for the hyperparameter $\lambda$ . We solve the first 500 test instances (to reduce the computational costs) for the TSP and CVRP, and all test instances for the JSSP using EAS-Emb and EAS-Lay with different $\lambda$ values. The learning rate remains fixed to a value determined in independent tuning runs in which $\lambda$ is fixed to zero. Figure 3 shows the results for all three problems. For the TSP and the CVRP, the results show that $\mathcal { L } _ { I L }$ can significantly improve performance. When $\lambda$ is set to 0 or very small values, $\mathcal { L } _ { I L }$ is disabled, thus including $\mathcal { L } _ { I L }$ is clearly beneficial on the TSP and CVRP. For the JSSP, the inclusion of $\mathcal { L } _ { I L }$ does not greatly improve performance, but it does not hurt it, either. Naturally, $\lambda$ should not be selected too low or too high as either too little or too much intensification can hurt search performance.
169
+
170
+ # 5 CONCLUSION
171
+
172
+ We presented a simple technique that can be used to extend ML-based construction heuristics by an extensive search. Our proposed modification of active search fine tunes a small subset of (model) parameters to a single instance at test time. We evaluate three example implementations of EAS that all result in significantly improved model performance in both testing and generalization experiments on three different, difficult combinatorial optimization problems. Our approach of course comes with some key limitations. Search requires time, thus for applications needing extremely fast (or practically instant) solutions, greedy construction remains a better option. Furthermore, while the problems we experiment on have the same computational complexity as real-world optimization problems, additional work may be needed to handle complex side constraints as often seen in industrial problems.
173
+
174
+ # ACKNOWLEDGMENTS
175
+
176
+ The computational experiments in this work have been performed using the Bielefeld GPU Cluster.
177
+
178
+ # REFERENCES
179
+
180
+ David Applegate, Ribert Bixby, Vasek Chvatal, and William Cook. Concorde TSP solver, 2006.
181
+
182
+ Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural Combinatorial Optimization with Reinforcement Learning. ArXiv, abs/1611.0, 2016.
183
+
184
+ Xinyun Chen and Yuandong Tian. Learning to perform local rewriting for combinatorial optimization. In Advances in Neural Information Processing Systems, pp. 6278–6289, 2019.
185
+
186
+ Paulo R de O. da Costa, Jason Rhuggenaath, Yingqian Zhang, and Alp Akcay. Learning 2-opt heuristics for the traveling salesman problem via deep reinforcement learning. In Asian Conference on Machine Learning, pp. 465–480. PMLR, 2020.
187
+
188
+ Michel Deudon, Pierre Cournut, Alexandre Lacoste, Yossiri Adulyasak, and Louis-Martin Rousseau. Learning heuristics for the TSP by policy gradient. In International Conference on the Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pp. 170–181. Springer, 2018.
189
+
190
+ Marco Dorigo, Mauro Birattari, and Thomas Stutzle. Ant colony optimization. IEEE computational intelligence magazine, 1(4):28–39, 2006.
191
+
192
+ Jonas K Falkner and Lars Schmidt-Thieme. Learning to solve vehicle routing problems with time windows through joint attention. arXiv preprint arXiv:2006.09100, 2020.
193
+
194
+ Zhang-Hua Fu, Kai-Bin Qiu, and Hongyuan Zha. Generalize a small pre-trained model to arbitrarily large TSP instances. arXiv preprint arXiv:2012.10658, 2020.
195
+
196
+ Tim Head, Manoj Kumar, Holger Nahrstaedt, Gilles Louppe, and Iaroslav Shcherbatyi. scikitoptimize/scikit-optimize, September 2020. URL https://doi.org/10.5281/zenodo. 4014775.
197
+
198
+ Keld Helsgaun. An extension of the Lin-Kernighan-Helsgaun TSP solver for constrained traveling salesman and vehicle routing problems. Roskilde: Roskilde University, 2017.
199
+
200
+ John J. Hopfield. Neural Networks and Physical Systems with Emergent Collective Computational Abilities. Proceedings of the National Academy of Sciences of the United States of America, 79(8): 2554–2558, 1982. ISSN 00278424.
201
+
202
+ André Hottung and Kevin Tierney. Neural large neighborhood search for the capacitated vehicle routing problem. In European Conference on Artificial Intelligence, pp. 443–450, 2020.
203
+
204
+ André Hottung, Shunji Tanaka, and Kevin Tierney. Deep learning assisted heuristic tree search for the container pre-marshalling problem. Computers & Operations Research, 113:104781, 2020.
205
+
206
+ André Hottung, Bhanu Bhandari, and Kevin Tierney. Learning a latent search space for routing problems using variational autoencoders. In International Conference on Learning Representations, 2021.
207
+
208
+ Chaitanya K Joshi, Thomas Laurent, and Xavier Bresson. An efficient graph convolutional network technique for the travelling salesman problem. arXiv preprint arXiv:1906.01227, 2019.
209
+
210
+ Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
211
+
212
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
213
+
214
+ Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations, 2019.
215
+
216
+ Wouter Kool, Herke van Hoof, Joaquim Gromicho, and Max Welling. Deep policy dynamic programming for vehicle routing problems. arXiv preprint arXiv:2102.11756, 2021.
217
+
218
+ Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: policy optimization with multiple optima for reinforcement learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21188–21198. Curran Associates, Inc., 2020.
219
+
220
+ Zhuwen Li, Qifeng Chen, and Vladlen Koltun. Combinatorial optimization with graph convolutional networks and guided tree search. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. CesaBianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018.
221
+
222
+ Mohammadreza Nazari, Afshin Oroojlooy, Lawrence Snyder, and Martin Takác. Reinforcement learning for solving the vehicle routing problem. In Advances in Neural Information Processing Systems, pp. 9839–9849, 2018.
223
+
224
+ Bo Peng, Jiahai Wang, and Zizhen Zhang. A deep reinforcement learning algorithm using dynamic attention model for vehicle routing problems. In International Symposium on Intelligence Computation and Applications, pp. 636–650. Springer, 2019.
225
+
226
+ Laurent Perron and Vincent Furnon. OR-Tools. URL https://developers.google.com/ optimization/.
227
+
228
+ Eduardo Uchoa, Diego Pecin, Artur Pessoa, Marcus Poggi, Thibaut Vidal, and Anand Subramanian. New benchmark instances for the capacitated vehicle routing problem. European Journal of Operational Research, 257(3):845–858, 2017.
229
+
230
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
231
+
232
+ Natalia Vesselinova, Rebecca Steinert, Daniel F. Perez-Ramirez, and Magnus Boman. Learning combinatorial optimization on graphs: A survey with applications to networking. IEEE Access, 8: 120388–120416, 2020.
233
+
234
+ Thibaut Vidal, Teodor Gabriel Crainic, Michel Gendreau, and Christian Prins. A unified solution framework for multi-attribute vehicle routing problems. European Journal of Operational Research, 234(3):658–673, 2014.
235
+
236
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015.
237
+
238
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256, 1992.
239
+
240
+ Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning improvement heuristics for solving routing problems. IEEE Transactions on Neural Networks and Learning Systems, 2021.
241
+
242
+ Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Step-wise deep learning models for solving routing problems. IEEE Transactions on Industrial Informatics, 17(7):4861–4871, 2021.
243
+
244
+ Cong Zhang, Wen Song, Zhiguang Cao, Jie Zhang, Puay Siew Tan, and Xu Chi. Learning to dispatch for job shop scheduling via deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pp. 1621–1632, 2020.
245
+
246
+ # A EXPERIMENTS FOR MORE REALISTIC CVRP INSTANCES
247
+
248
+ We provide results from additional experiments for the CVRP on more realistic instances to show that our approach is effective at solving instances with a wide range of structures. Our EAS methods are implemented in the same way as in Section 4.2
249
+
250
+ Setup We evaluate EAS on 9 instance sets from Hottung & Tierney (2020) (consisting of 20 instances each) that have been generated based on the instances from Uchoa et al. (2017) performing 3 runs per instance. The characteristics of the instances vary significantly between sets, but all instances in the same set have been sampled from an identical distribution. For each instance set we train a new model for 3 weeks on a separate, corresponding training set. For testing, we run all (efficient) active search approaches for 200 iterations using the newly trained models. Additionally, we test the generalization performance by solving all instance sets with EAS-Lay using the CVRP model of Section 4.2 that has been trained on the uniform instances (with $n = 1 0 0$ ) from Kool et al. (2019) and call this Lay\*. We only evaluate the generalization performance of EAS-Lay (the best performing EAS approach from Section 4.2) to keep the computational costs low. In all experiments, we use hyperparameters tuned for the uniform CVRP instances. We compare to NLNS, LKH3 and the state-of-the-art unified hybrid genetic search (GS) from Vidal et al. (2014). As is standard in the operations research literature, we round the distances between customers to the nearest integer. Furthermore, we solve instances sequentially and not in batches of different instances. However, to make better use of the available GPU memory, we solve up to 10 copies of the same instance in parallel for the EAS approaches and for POMO with sampling. The best solution found so far is shared between all runs, which has an impact on the imitation learning loss $\mathcal { L } _ { I L }$ for EAS-Emb and EAS-Lay. For EAS-Tab we set $\tilde { Q } = ( 1 - \bar { \beta } ) \cdot Q + \beta \cdot Q ^ { g l o b }$ , where $Q ^ { g l o b }$ is the lookup table for the best solution over all runs and $\beta$ is linearly increased from 0 to 1 over the course of the search.
251
+
252
+ Results Table 4 shows the gap to the unified hybrid genetic search and the average runtime per instance for all methods. For EAS-Lay we report the performance of the instance set specific models and additionally the generalization performance when using the model trained on uniform CVRP instances (with $n = 1 0 0$ ). The later results are marked with a star. EAS-Emb and EAS-Lay both find better solution than NLNS and LKH3 on 8 out of the 9 instance sets. EAS-Tab outperforms NLNS and LKH3 on all but two instance sets. As a side note, we have found that the original active search (AS) performs surprisingly well, outperforming LKH3 on 3 instance sets, even though it still cannot surpass our newly proposed EAS methods. The version of EAS-Lay (marked with a star) that uses the model trained on uniform instances with $n = 1 0 0$ performs surprisingly well with gaps between $0 . 2 6 \%$ to $4 . 0 8 \%$ to the GS.
253
+
254
+ Table 4: Results for the CVRP on the instance sets from Hottung & Tierney (2020).
255
+
256
+ <table><tr><td></td><td></td><td colspan="4">Gap to GS in %</td><td colspan="2">POMO</td><td colspan="5"> Avg. Runtime in minutes</td></tr><tr><td>Inst.</td><td>n</td><td>POMO Sam. AS</td><td>POMO-EAS Emb Lay Lay* Tab</td><td></td><td>[NLNS LKH|</td><td></td><td></td><td></td><td>POMO-EAS Sam. AS Emb Lay Lay* TabNLNS LKH GS</td><td></td><td></td><td></td></tr><tr><td>XE 1</td><td>100</td><td></td><td></td><td></td><td></td><td>2.12</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>XE</td><td>128</td><td>0.86 0.65 0.76 0.80</td><td>10.23 0.26 0.260.25</td><td>0.61 0.31| 0.26 0.29</td><td>0.32 0.44</td><td>0.9 0.54</td><td>1.3 1.6</td><td>1.3 1.8</td><td>1.4 2.0</td><td>1.5 0.9 2.1</td><td>3.2</td><td>6.2 0.6 2.0</td></tr><tr><td>XE</td><td>180</td><td>0.51 0.20</td><td>0.09 0.09</td><td>0.54 0.13</td><td>0.58 0.16</td><td>1.3 2.5</td><td>2.2</td><td>3.3</td><td>3.7</td><td>24 3.8</td><td>3.2 3.2</td><td>1.2 1.1 1.4</td></tr><tr><td>3.57 XE</td><td>199</td><td></td><td></td><td></td><td></td><td></td><td></td><td>4.2</td><td>4.7</td><td>3.5</td><td>3.2</td><td>3.6 2.4</td></tr><tr><td>XE 9</td><td>213</td><td>1.50 0.88 1.96 1.30</td><td>0.37 0.45</td><td>1.29 0.80 4.08 0.83</td><td>2.03 2.26</td><td>0.72 3.3 1.09</td><td>2.4</td><td></td><td>5.2</td><td>4.9 5.4</td><td>10.2</td><td>1.1 2.4</td></tr><tr><td>XE 11</td><td>236</td><td>1.42 1.22</td><td>0.64 0.71 0.82 0.84</td><td>1.76 0.94</td><td>0.65</td><td>3.7 0.78 4.0</td><td>2.5 2.7</td><td>4.6 5.2</td><td>5.1</td><td>3.9 5.6 4.8</td><td>10.2</td><td>1.1 3.2</td></tr><tr><td>3 XE</td><td></td><td>1.40 0.88</td><td>0.38 0.56</td><td>2.83 0.80</td><td>0.82</td><td>1.55 7.1</td><td>3.5</td><td>8.7</td><td>6</td><td></td><td>10.2</td><td>5.7 3.6</td></tr><tr><td>XE 15</td><td>268</td><td>1.81 2.17</td><td>0.850.96</td><td>2.51 1.27</td><td>1.81</td><td>1.32 7.3</td><td>3.3</td><td>8.8</td><td></td><td>76</td><td>10.3</td><td>5.8 5.5</td></tr><tr><td>XE 17</td><td>297</td><td>1.66 0.97</td><td>0.44 0.65</td><td>2.15 0.92</td><td>1.41</td><td>1.23 8.9</td><td>3.8</td><td>8.8</td><td>6.8</td><td>9.4</td><td>10.3</td><td>2.5 4.2</td></tr></table>
257
+
258
+ # B ABLATION STUDY: ACTIVE SEARCH LOSS
259
+
260
+ We evaluate if applying the imitation learning loss component used by EAS-Emb and EAS-Lay to the original active search can significantly improve the performance. To this end, we solve all test instances using active search with and without the imitation learning loss component. Note that the hyperparameters for each approach have been tuned independently on separate validation set instances. Table 5 shows the results. We observe no significant impact of the imitation learning loss $\mathcal { L } _ { \pi }$ on the performance of active search. This means that active search with imitation learning loss is not competitive with EAS-Lay and EAS-Emb across all problems, even when sharing the same loss function.
261
+
262
+ ![](images/41ab96920d4ee9221016be5023bf0d3e37f416c536ccee2088f21bf8bca9448d.jpg)
263
+ Figure 4: Influence of $\sigma$ on the solution quality for EAS-Tab
264
+
265
+ # C PARAMETER SWEEP: EAS-TAB INTENSIFICATION
266
+
267
+ We investigate the impact of the hyperparameter $\sigma$ on EAS-Tab, which controls the degree of exploitation of the search. By setting $\sigma$ to zero (or very small values) we essentially disable the lookup table, thus examining its impact on the search. We again solve all three problems with different values of $\sigma$ on a subset of test instances. We fix $\alpha$ independently based on tuning on a separate set of validation instances. Figure 4 provides the results for adjusting $\sigma$ . For all three problems, $\sigma = 1 0$ provides the best trade-off between exploration and exploitation. Note that low $\sigma$ values (which reduce the impact of the lookup table updates) hurt performance, meaning that the table based adjustments are effective in all cases.
parse/dev/nO5caZwFwYu/nO5caZwFwYu_content_list.json ADDED
@@ -0,0 +1,1454 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EFFICIENT ACTIVE SEARCH FOR COMBINATORIAL OPTIMIZATION PROBLEMS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 709,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "André Hottung Bielefeld University, Germany andre.hottung@uni-bielefeld.de ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 480,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Yeong-Dae Kwon Samsung SDS, Korea y.d.kwon@samsung.com ",
28
+ "bbox": [
29
+ 614,
30
+ 170,
31
+ 813,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Kevin Tierney Bielefeld University, Germany kevin.tierney@uni-bielefeld.de ",
39
+ "bbox": [
40
+ 183,
41
+ 233,
42
+ 480,
43
+ 275
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 311,
54
+ 544,
55
+ 327
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Recently, numerous machine learning based methods for combinatorial optimization problems have been proposed that learn to construct solutions in a sequential decision process via reinforcement learning. While these methods can be easily combined with search strategies like sampling and beam search, it is not straightforward to integrate them into a high-level search procedure offering strong search guidance. Bello et al. (2016) propose active search, which adjusts the weights of a (trained) model with respect to a single instance at test time using reinforcement learning. While active search is simple to implement, it is not competitive with state-of-the-art methods because adjusting all model weights for each test instance is very time and memory intensive. Instead of updating all model weights, we propose and evaluate three efficient active search strategies that only update a subset of parameters during the search. The proposed methods offer a simple way to significantly improve the search performance of a given model and outperform state-of-the-art machine learning based methods on combinatorial problems, even surpassing the well-known heuristic solver LKH3 on the capacitated vehicle routing problem. Finally, we show that (efficient) active search enables learned models to effectively solve instances that are much larger than those seen during training. ",
62
+ "bbox": [
63
+ 233,
64
+ 343,
65
+ 766,
66
+ 579
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 607,
77
+ 336,
78
+ 622
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In recent years, a wide variety of machine learning (ML) based methods for combinatorial optimization problems have been proposed (e.g., Kool et al. (2019); Hottung et al. (2020)) . While early approaches failed to outperform traditional operations research methods, the gap between handcrafted and learned heuristics has been steadily closing. However, the main potential of ML-based methods lies not only in their ability to outperform existing methods, but in automating the design of customized heuristics in situations where no handcrafted heuristics have yet been developed. We hence focus on developing approaches that require as little additional problem-specific knowledge as possible. ",
85
+ "bbox": [
86
+ 174,
87
+ 638,
88
+ 825,
89
+ 750
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Existing ML based methods for combinatorial optimization problems can be classified into construction methods and improvement methods. Improvement methods search the space of complete solutions by iteratively refining a given start solution. They allow for a guided exploration of the search space and are able to find high-quality solutions. However, they usually rely on problemspecific components. In contrast, construction methods create a solution sequentially starting from an empty solution (i.e., they consider a search space consisting of incomplete solutions). At test time, they can be used to either greedily construct a single solution or to sample multiple solutions from the probability distribution encoded in the trained neural network. Furthermore, the sequential solution generation process can be easily integrated into a beam search without requiring any problem-specific components. However, search methods like sampling and beam search offer no (or very limited) search guidance. Additionally, these methods do not react towards the solutions seen so far, i.e., the underlying distribution from which solutions are sampled is never changed throughout the search. ",
96
+ "bbox": [
97
+ 174,
98
+ 757,
99
+ 825,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Bello et al. (2016) propose a generic search strategy called active search that allows an extensive, guided search for construction methods without requiring any problem specific components. Active search is an iterative search method that at each iteration samples solutions for a single test instance using a given model and then adjusts the parameters of that model with the objective to increase the likelihood of generating high-quality solutions in future iterations. They report improved performance over random sampling when starting the search from an already trained model. Despite promising results, active search has not seen adaption in the literature. The reason for this is its resource requirements, as adjusting all model parameters separately for each test instance is very time intensive, especially compared to methods that can sample solutions to multiple different instances in one batch. ",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 229
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We extend the idea of active search as follows. (1) We propose to only adjust a subset of (model) parameters to a single instance during the search, while keeping all other parameters fixed. We show that this efficient active search (EAS) drastically reduces the runtime of active search without impairing the solution quality. (2) We implement and evaluate three different implementations of EAS and show that all offer significantly improved performance over pure sampling approaches. ",
118
+ "bbox": [
119
+ 174,
120
+ 236,
121
+ 825,
122
+ 305
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In our EAS implementations, the majority of (model) parameters are not updated during the search, which drastically reduces the runtime, because gradients only need to be computed for a subset of model weights, and most operations can be applied identically across a batch of different instances. Furthermore, we show that for some problems, EAS finds even better solutions than the original active search. All EAS implementations can be easily applied to existing ML construction methods. ",
129
+ "bbox": [
130
+ 174,
131
+ 313,
132
+ 825,
133
+ 382
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We evaluate the proposed EAS approaches on the traveling salesperson problem (TSP), the capacitated vehicle routing problem (CVRP) and the job shop scheduling problem (JSSP). For all problems, we build upon already existing construction approaches that only offer limited search capabilities. In all experiments, EAS leads to significantly improved performance over sampling approaches. For the CVRP and the JSSP, the EAS approaches outperform all state-of-the-art ML based approaches, and even the well-known heuristic solver LKH3 for the CVRP. Furthermore, EAS approaches assists in model generalization, resulting in drastically improved performance when searching for solutions to instances that are much larger than the instances seen during model training. ",
140
+ "bbox": [
141
+ 174,
142
+ 388,
143
+ 825,
144
+ 501
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 LITERATURE REVIEW ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 176,
154
+ 535,
155
+ 383,
156
+ 551
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Construction methods Hopfield (1982) first used a neural network (a Hopfield network) to solve small TSP instances with up to 30 cities. The development of recent neural network architectures has paved the way for ML approaches that are able to solve large instances. The pointer network architecture proposed by Vinyals et al. (2015) efficiently learns the conditional probability of a permutation of a given input sequence, e.g., a permutation of cities for a TSP solution. The authors solve TSP instances with up to 50 cities via supervised learning. Bello et al. (2016) report that training a pointer network via actor-critic RL instead results in a better performance on TSP instances with 50 and 100 cities. Furthermore, graph neural networks are used to solve the TSP, e.g., a graph embedding network in Khalil et al. (2017) and a graph attention network in Deudon et al. (2018). ",
163
+ "bbox": [
164
+ 174,
165
+ 575,
166
+ 825,
167
+ 702
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "The first applications of neural network based methods to the CVRP are reported by Nazari et al. (2018) and Kool et al. (2019). Nazari et al. (2018) propose a model with an attention mechanism and a recurrent neural network (RNN) decoder that can be trained via actor-critic RL. Kool et al. (2019) propose an attention model that uses an encoder that is similar to the encoder used in the transformer architecture Vaswani et al. (2017). Peng et al. (2019) and Xin et al. (2021) extend the attention model to update the node embeddings throughout the search, resulting in improved performance at the cost of longer runtimes for the CVRP. Falkner & Schmidt-Thieme (2020) propose an attention-based model that constructs tours in parallel for the CVRP with time windows. ",
174
+ "bbox": [
175
+ 174,
176
+ 708,
177
+ 825,
178
+ 819
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "While ML-based construction methods have mainly focused on routing problems, there are some notable exceptions. For example, Khalil et al. (2017) use a graph embedding network approach to solve the minimum vertex cover and the maximum cut problems (in addition to the TSP). Zhang et al. (2020) propose a graph neural network based approach for the job shop scheduling problem (JSSP). Li et al. (2018) use a guided tree search enhanced ML approach to solve the maximal independent set, minimum vertex cover, and the maximal clique problems. For a more detailed review of ML methods on different combinatorial optimization problems, we refer to Vesselinova et al. (2020). ",
185
+ "bbox": [
186
+ 174,
187
+ 825,
188
+ 825,
189
+ 924
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "While most approaches construct routing problem solutions autoregressively, some approaches predict a heat-map that describes which edges will likely be part of a good solution. The heat-map is then used in a post-hoc search to construct solutions. Joshi et al. (2019) use a graph convolutional network to create a heat-map and a beam search to search for solutions. Similarly, Fu et al. (2020) use a graph convolutional residual network with Monte Carlo tree search to solve large TSP instances. Kool et al. (2021) use the model from Joshi et al. (2019) to generate the heat-map and use it to search for solution to TSP and CVRP instances with a dynamic programming based approach. ",
196
+ "bbox": [
197
+ 173,
198
+ 103,
199
+ 825,
200
+ 202
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Improvement methods Improvement methods integrate ML based methods into high-level search heuristics or try to learn improvement operators directly. In general, they often invest more time into solving an instance than construction based methods (and usually find better solutions). Chen & Tian (2019) propose an approach that iteratively changes a local part of the solution. At each iteration, the trainable region picking policy selects a part of the solution that should be changed and a trainable rule picking policy selects an action from a given set of possible modification operations. Hottung & Tierney (2020) propose a method for the CVRP that iteratively destroys parts of a solution using predefined, handcrafted operators and then reconstructs them with a learned repair operator. Wu et al. (2021) and de O. da Costa et al. (2020) propose to use RL to pick an improving solution from a specified local neighborhood (e.g., the 2-Opt neighborhood) to solve routing problems. Hottung et al. (2021) learn a continuous representation of discrete routing problem solutions using conditional variational autoencoders and search for solutions using a generic, continuous optimizer. ",
207
+ "bbox": [
208
+ 174,
209
+ 208,
210
+ 825,
211
+ 375
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3 SOLVING COMBINATORIAL OPTIMIZATION PROBLEMS WITH EAS ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 173,
221
+ 404,
222
+ 743,
223
+ 417
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "We propose three EAS implementations that adjust a small subset of (model) parameters in an iterative search process. Given an already trained model, we investigate adjusting (1) the normally static embeddings of the problem instance that are generated by the encoder model, (2) the weights of additional instance-specific residual layers added to the decoder, and (3) the parameters of a lookup table that directly affect the probability distribution returned by model. In each iteration, multiple solutions are sampled for one instance and the dynamic (model) parameters are adjusted with the goal of increasing the probability of generating high quality solutions (as during model training). This allows the search to sample solutions of higher quality in subsequent iterations, i.e., the search can focus on the more promising areas of the search space. Once a high-quality solution for an instance is found, the adjusted parameters are discarded, so that the search process can be repeated on other instances. All strategies efficiently generate solutions to a batch of instances in parallel, because the network layers not updated during the search are applied identically to all instances of the batch. ",
230
+ "bbox": [
231
+ 174,
232
+ 438,
233
+ 825,
234
+ 603
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "Background RL based approaches for combinatorial problems aim to learn a neural network based model $p _ { \\theta } ( \\pi | l )$ with weights $\\theta$ that can be used to generate a solution $\\pi$ given an instance l. State-ofthe-art approaches usually use a model that consists of an encoder and a decoder unit. The encoder usually creates static embeddings $\\omega$ that describe the instance $l$ using a computationally expensive encoding process (e.g., Kool et al. (2019); Kwon et al. (2020)). The static embeddings are then used to autoregessively construct solutions using the decoder over $T$ time steps. At each step $t$ , the decoder $q _ { \\phi } ( a | s _ { t } , \\bar { \\omega } )$ , with weights $\\phi \\subset \\theta$ , outputs a probability value for each possible action $a$ in the state $s _ { t }$ (e.g., for the TSP, each action corresponds to visiting a different city next). The starting state $s _ { 1 }$ describes the problem instance $l$ (e.g., the positions of the cities for the TSP and the starting city) and the state $s _ { t + 1 }$ is obtained by applying the action $a _ { t }$ selected at time step $t$ to the state $s _ { t }$ . The (partial) solution $\\pi _ { t }$ is defined by the sequence of selected actions $a _ { 1 } , a _ { 2 } , \\ldots , a _ { t }$ . Once a complete solution, $\\pi _ { T }$ , fulfilling all constraints of the problem is constructed, the objective function value $\\mathbf { \\bar { \\boldsymbol { C } } } ( \\pi , l )$ of the solution can be computed (e.g., the tour length for the TSP). ",
241
+ "bbox": [
242
+ 174,
243
+ 611,
244
+ 825,
245
+ 791
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Figure 1 shows the solution generation for a TSP instance with a model that uses static embeddings. The static embeddings $\\omega$ are used at each decoding step to generate a probability distribution over all possible next actions and the selected action is provided to the decoder in the next decoding step. During testing, solutions can be constructed by either selecting actions greedily or by sampling each action according to $q _ { \\phi } ( a | s _ { t } , \\omega )$ . Since the static embeddings are not updated during solution generation they only need to be computed once per instance, which allows to quickly sample multiple solutions per instance. We note that not all models use static embeddings. Some approaches update all instance embeddings after each action (e.g., Zhang et al. (2020)), which allows the embeddings to contain information on the current solution state $s _ { t }$ . ",
252
+ "bbox": [
253
+ 174,
254
+ 797,
255
+ 825,
256
+ 924
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "image",
262
+ "img_path": "images/3abde8df1e97587e52664ac4987fda3a29e2025873cd251133e478eda9740eb0.jpg",
263
+ "image_caption": [
264
+ "Figure 1: Sampling a solution for the TSP with a model $p _ { \\theta } ( \\pi | l )$ that uses static instance embeddings. "
265
+ ],
266
+ "image_footnote": [],
267
+ "bbox": [
268
+ 303,
269
+ 98,
270
+ 697,
271
+ 184
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "3.1 EMBEDDING UPDATES ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 174,
281
+ 237,
282
+ 369,
283
+ 251
284
+ ],
285
+ "page_idx": 3
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Our first proposed strategy, called EAS-Emb, updates the embeddings $\\omega$ generated by an encoder using a loss function consisting of an RL component $\\mathcal { L } _ { R L }$ and an imitation learning $\\left( \\operatorname { I L } \\right)$ component $\\mathcal { L } _ { I L }$ . The loss $\\mathcal { L } _ { R L }$ is based on REINFORCE (Williams, 1992) and is the expected cost of the generated solutions, $\\mathbb { E } \\left[ C ( \\pi ) \\right]$ . We aim to adjust the embedding parameters to increase the likelihood of generating solutions with lower costs (e.g., a shorter tour length for the TSP). The loss $\\mathcal { L } _ { I L }$ is the negation of the log-probability of (re-)generating the best solution seen so far. We adjust the embedding parameters to increase this probability. ",
290
+ "bbox": [
291
+ 173,
292
+ 263,
293
+ 825,
294
+ 362
295
+ ],
296
+ "page_idx": 3
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "More formally, for an instance $l$ we generate the embeddings $\\omega$ using a given encoder. Based on $\\omega$ we can (repeatedly) sample a solution $\\pi$ whose cost is $C ( \\pi )$ . A subset of the embeddings $\\hat { \\omega } \\subseteq \\omega$ is adjusted to minimize $\\mathcal { L } _ { R L }$ using the gradient ",
301
+ "bbox": [
302
+ 174,
303
+ 368,
304
+ 825,
305
+ 411
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "equation",
311
+ "img_path": "images/189abc5d6fb79dfe56b65ebb32b7d500676d329066d509c67e35215326a97182.jpg",
312
+ "text": "$$\n\\nabla _ { \\hat { \\omega } } \\mathcal { L } _ { R L } ( \\hat { \\omega } ) = \\mathbb { E } _ { \\boldsymbol \\pi } \\left[ ( C ( \\boldsymbol \\pi ) - b _ { \\circ } ) \\nabla _ { \\hat { \\omega } } \\log q _ { \\phi } ( \\boldsymbol \\pi \\mid \\hat { \\omega } ) \\right]\n$$",
313
+ "text_format": "latex",
314
+ "bbox": [
315
+ 333,
316
+ 417,
317
+ 663,
318
+ 438
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "where $\\begin{array} { r } { q _ { \\phi } ( \\pi \\mid \\hat { \\omega } ) \\equiv \\prod _ { t = 1 } ^ { T } q _ { \\phi } ( a _ { t } \\mid s _ { t } , \\hat { \\omega } ) } \\end{array}$ , and $b _ { \\circ }$ is a baseline (we use the baseline proposed in Kwon et al. (2020) for our experiments). ",
325
+ "bbox": [
326
+ 174,
327
+ 445,
328
+ 825,
329
+ 477
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "For the second loss $\\mathcal { L } _ { I L }$ , let $\\bar { \\pi }$ be the best solution found so far for the instance $l$ , that consists of the actions $\\bar { a } _ { 1 } , \\dots , \\bar { a } _ { T }$ . We use teacher forcing to make the decoder $q _ { \\phi } ( \\cdot | s _ { t } , \\hat { \\omega } )$ generate the solution $\\bar { \\pi }$ , during which we obtain the probability values associated with the actions $\\bar { a } _ { 1 } , \\dots , \\bar { a } _ { T }$ . We increase the log-likelihood of generating $\\bar { \\pi }$ by adjusting $\\hat { \\omega }$ using the gradient ",
336
+ "bbox": [
337
+ 174,
338
+ 483,
339
+ 826,
340
+ 540
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/02db29bd1a00a2d24674766123c6311de2c249ba381d50637f18cb95eaf93a9c.jpg",
347
+ "text": "$$\n\\nabla _ { \\boldsymbol { \\hat { \\omega } } } \\mathcal { L } _ { I L } ( \\boldsymbol { \\hat { \\omega } } ) = - \\nabla _ { \\boldsymbol { \\hat { \\omega } } } \\log q _ { \\phi } ( \\bar { \\pi } \\mid \\boldsymbol { \\hat { \\omega } } ) \\equiv - \\nabla _ { \\boldsymbol { \\hat { \\omega } } } \\log \\prod _ { t = 1 } ^ { T } q _ { \\phi } ( \\bar { a } _ { t } | s _ { t } , \\boldsymbol { \\hat { \\omega } } ) .\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 290,
351
+ 547,
352
+ 705,
353
+ 590
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "The gradient of the overall loss $\\mathcal { L } _ { R I L }$ is defined as $\\nabla _ { \\hat { \\omega } } \\mathcal { L } _ { R I L } ( \\hat { \\omega } ) = \\nabla _ { \\hat { \\omega } } \\mathcal { L } _ { R L } ( \\hat { \\omega } ) + \\lambda \\cdot \\nabla _ { \\hat { \\omega } } \\mathcal { L } _ { I L } ( \\hat { \\omega } )$ , where $\\lambda$ is a tunable parameter. If a high value for $\\lambda$ is selected, the search focuses on generating solutions that are similar to the incumbent solution. This accelerates the convergence of the search policy, which is useful when the number of search iterations is limited. ",
360
+ "bbox": [
361
+ 173,
362
+ 606,
363
+ 825,
364
+ 662
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "We note that both decoding processes required for RL and $\\mathrm { I L }$ can be carried out in parallel, using the same forward pass through the network. Furthermore, only the parameters $\\hat { \\omega }$ are instance specific, while all other model parameters are identical for all instances. This makes parallelization of multiple instances in a batch more efficient both in time and memory. ",
371
+ "bbox": [
372
+ 173,
373
+ 669,
374
+ 825,
375
+ 726
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "3.2 ADDED-LAYER UPDATES ",
382
+ "text_level": 1,
383
+ "bbox": [
384
+ 174,
385
+ 744,
386
+ 385,
387
+ 758
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "We next propose EAS-Lay, which adds an instance-specific residual layer to a trained model. During the search, the weights in the added layer are updated, while the weights of all other original layers are held fixed. We use both RL and $\\mathrm { I L }$ , similarly to EAS-Emb in Section 3.1. ",
394
+ "bbox": [
395
+ 174,
396
+ 770,
397
+ 825,
398
+ 813
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "We formalize EAS-Lay as follows. For each instance $l$ we insert a layer ",
405
+ "bbox": [
406
+ 174,
407
+ 819,
408
+ 643,
409
+ 834
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/a4efe175befc0bb45d9375e239084557e813c70bf10e86d2d14bc5459fc391f8.jpg",
416
+ "text": "$$\n\\operatorname { L } ^ { \\star } ( h ) = h + ( ( \\operatorname { R e L u } ( h W ^ { 1 } + b ^ { 1 } ) W ^ { 2 } + b ^ { 2 } )\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 352,
420
+ 840,
421
+ 645,
422
+ 859
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "into the given decoder $q _ { \\phi }$ , resulting in a slightly modified model $\\tilde { q } _ { \\phi , \\psi }$ , where $\\psi = \\{ W ^ { 1 } , b ^ { 1 } , W ^ { 2 } , b ^ { 2 } \\}$ . The layer takes in the input $h$ and applies two linear transformations with a ReLu activation function in between. The weight matrices $W ^ { \\bar { 1 } }$ and $W ^ { 2 }$ and the bias vectors $b ^ { 1 }$ and $b ^ { 2 }$ are adjusted throughout the search via gradient descent. The weights in the matrix $W ^ { 2 }$ and the vector $b ^ { 2 }$ are initialized to zero so that the added layer does not affect the output of the model during the first iteration of the search. The gradient for $\\mathcal { L } _ { R L }$ is given as ",
429
+ "bbox": [
430
+ 173,
431
+ 867,
432
+ 825,
433
+ 924
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "",
440
+ "bbox": [
441
+ 176,
442
+ 103,
443
+ 823,
444
+ 132
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "equation",
450
+ "img_path": "images/c1609797b2d752b07426872754f67e6261c30974ae005d79b301a2100da2fcbd.jpg",
451
+ "text": "$$\n\\nabla _ { \\psi } \\mathcal { L } _ { R L } ( \\psi ) = \\mathbb { E } _ { \\pi } \\big [ ( C ( \\pi ) - b _ { \\circ } ) \\nabla _ { \\psi } \\log \\tilde { q } _ { \\phi , \\psi } ( \\pi ) \\big ] ,\n$$",
452
+ "text_format": "latex",
453
+ "bbox": [
454
+ 336,
455
+ 137,
456
+ 660,
457
+ 157
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "with $\\begin{array} { r } { \\tilde { q } _ { \\phi , \\psi } ( \\pi ) \\equiv \\prod _ { t = 1 } ^ { T } \\tilde { q } _ { \\phi , \\psi } ( a _ { t } \\mid s _ { t } , \\omega ) } \\end{array}$ , and $b _ { \\circ }$ is a baseline. The gradient for $\\mathcal { L } _ { I L }$ is defined similarly. ",
464
+ "bbox": [
465
+ 173,
466
+ 166,
467
+ 823,
468
+ 183
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Note that the majority of the network operations are not instance specific. They can be applied identically to all instances running in parallel as a batch, resulting in significantly lower runtime during search. The position at which the new layer is inserted has an impact on the performance of EAS-Lay, and identifying the best position usually requires testing. In general, the memory requirement of this approach can be reduced by inserting the additional layer closer towards the output layer of the network. This decreases the number of layers to be considered during backpropagation. We noticed for transformer-based architectures that applying the residual layer $\\mathrm { L } ^ { \\star } ( \\cdot )$ to the query vector $q$ before it is passed to the single attention head usually results in a good performance. ",
475
+ "bbox": [
476
+ 173,
477
+ 188,
478
+ 825,
479
+ 300
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "3.3 TABULAR UPDATES ",
486
+ "text_level": 1,
487
+ "bbox": [
488
+ 176,
489
+ 318,
490
+ 349,
491
+ 332
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "EAS-Emb and EAS-Lay require significantly less memory per instance than the original active search. However, they still need to store many gradient weights associated with multiple layers for the purpose of backpropagation. This significantly limits the number of solutions one can generate in parallel. We hence propose EAS-Tab, which does not require backpropagation, but instead uses a simple lookup table to modify the policy of the given model. For each action at a given state, the table provides a guide on how to change its probability, so that the sampled solution has a higher chance at being similar to the best solution found in the past. ",
498
+ "bbox": [
499
+ 173,
500
+ 343,
501
+ 825,
502
+ 440
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Formally, at each step $t$ during the sequential generation of a solution, we redefine the probability of selecting action $a _ { t }$ in the state $s _ { t }$ as $q _ { \\phi } ( a | \\bar { s _ { t } } , \\omega ) ^ { \\alpha } \\cdot Q _ { g ( s _ { t } , a _ { t } ) }$ and renormalize over all possible actions using the softmax function. Here, $\\alpha$ is a hyperparameter, and $g$ is a function that maps each possible state and action pair to an entry in the table $Q$ . The network parameters $\\theta$ remain unchanged, resulting in fast and memory efficient solution generation. The hyperparameter $\\alpha$ is similar to the temperature value proposed in Bello et al. (2016) and modifies the steepness of the probability distribution returned by the model (lower values increase the exploration of the search). During search, the table $Q$ is updated with the objective of increasing the quality of the generated solutions. More precisely, after each iteration, $Q$ is updated based on the best solution $\\bar { \\pi }$ found so far consisting of the actions $\\bar { a } _ { 1 } , \\dots , \\bar { a } _ { T }$ at states $\\bar { s } _ { 1 } , \\dots , \\bar { s } _ { T }$ , respectively, with ",
509
+ "bbox": [
510
+ 173,
511
+ 446,
512
+ 825,
513
+ 587
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "equation",
519
+ "img_path": "images/dafda474a5834db9ed417690205a5bb2e7098e1162c71613804c95c313b3d37d.jpg",
520
+ "text": "$$\nQ _ { g ( s _ { t } , a _ { t } ) } = \\left\\{ \\begin{array} { l l } { \\operatorname* { m a x } ( 1 , \\frac { \\sigma } { q _ { \\phi } ( a | s _ { t } , \\omega ) ^ { \\alpha } } ) , } & { \\mathrm { i f } g ( s _ { t } , a _ { t } ) \\in \\{ g ( \\bar { a } _ { 1 } , \\bar { s } _ { 1 } ) , \\dots , g ( \\bar { a } _ { T } , \\bar { s } _ { T } ) \\} } \\\\ { 1 , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
521
+ "text_format": "latex",
522
+ "bbox": [
523
+ 240,
524
+ 593,
525
+ 756,
526
+ 636
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "The hyperparameter $\\sigma$ defines the degree of exploitation of the search. If a higher value of $\\sigma$ is used, the probabilities for actions that generate the incumbent solution are increased. ",
533
+ "bbox": [
534
+ 173,
535
+ 641,
536
+ 823,
537
+ 670
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "In contrast to embedding or added-layer updates, this EAS method requires deeper understanding of the addressed combinatorial optimization problem to design the function $g ( s _ { t } , a _ { t } )$ . For example, for the TSP with $n$ nodes we use a table $Q$ of size $n \\times n$ in which each entry $Q _ { i , j }$ corresponds to a directed edge $e _ { i , j }$ of the problem instance. The probability increases for the same directed edge that was used in the incumbent solution. This definition of $g ( s _ { t } , a _ { t } )$ effectively ignores the information on all the previous visits stored in state $s _ { t }$ , focusing instead on the current location (city) in choosing the next move. We note that this EAS approach is similar to the ant colony optimization algorithm (Dorigo et al., 2006), which has been applied to a wide variety of combinatorial optimization problems. ",
544
+ "bbox": [
545
+ 173,
546
+ 676,
547
+ 825,
548
+ 789
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "4 EXPERIMENTS ",
555
+ "text_level": 1,
556
+ "bbox": [
557
+ 176,
558
+ 809,
559
+ 326,
560
+ 824
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "We evaluate all EAS strategies using existing, state-of-the-art RL based methods for three different combinatorial optimization problems. For the first two, the TSP and the CVRP, we implement EAS for the POMO approach (Kwon et al., 2020). For the third problem, the JSSP, we use the L2D method from Zhang et al. (2020). We extend the code made available by the authors of POMO (MIT license) and L2D (no license) with our EAS strategies to ensure a fair evaluation. Note that we only make minor modifications to these methods, and we use the models trained by the authors when available. ",
567
+ "bbox": [
568
+ 174,
569
+ 839,
570
+ 825,
571
+ 924
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "We run all experiments on a GPU cluster using a single Nvidia Tesla V100 GPU and a single core of an Intel Xeon 4114 CPU at $2 . 2 \\ : \\mathrm { G H z }$ for each experiment. Our source code is available at https://github.com/ahottung/EAS. We use the Adam optimizer (Kingma & Ba, 2014) for all EAS approaches. The hyperparameters $\\lambda , \\sigma , \\alpha$ , and the learning rate for the optimizer are tuned via Bayesian optimization using scikit-optimize (Head et al., 2020) on separate validation instances, which are sampled from the same distribution as the test instances. The hyperparameters are not adjusted for larger instances used to evaluate the generalization performance. ",
578
+ "bbox": [
579
+ 174,
580
+ 103,
581
+ 825,
582
+ 202
583
+ ],
584
+ "page_idx": 5
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "4.1 TSP ",
589
+ "text_level": 1,
590
+ "bbox": [
591
+ 174,
592
+ 220,
593
+ 245,
594
+ 234
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "The TSP is a well-known routing problem involving finding the shortest tour between a set of $n$ nodes (i.e., cities) that visits each node exactly once and returns to the starting node. We assume that the distance matrix obeys the triangle inequality. ",
601
+ "bbox": [
602
+ 174,
603
+ 247,
604
+ 825,
605
+ 290
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Implementation POMO uses a model that is very similar to the AM model from Kool et al. (2019). The model generates instance embeddings only once per instance and does not update them during construction. The probability distribution over all actions are generated by a decoder, whose last layer is a single-headed attention layer. This last layer calculates the compatibility of a query vector $q$ to the key vector $k _ { i }$ for each node $i$ . In this operation, the key vector $k _ { i }$ is an embedding that has been computed separately, but identically for each input (i.e., node $i$ ) during the instance encoding process. For EAS-Emb, we only update the set of single-head keys $k _ { i }$ $( i = 1 , \\ldots , n )$ . For EAS-Lay we apply the residual layer $\\mathrm { L } ^ { \\star } ( \\cdot )$ described in Equation 3 to the query vector $q$ before it is passed to the single attention head. For EAS-Tab, we use a table $Q$ of size $n \\times n$ and the mapping function $g ( s _ { t } , a _ { t } )$ such that each entry $Q _ { i , j }$ corespondents to a directed edge $e _ { i , j }$ of the problem instance. ",
612
+ "bbox": [
613
+ 174,
614
+ 296,
615
+ 825,
616
+ 436
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Setup We use the 10,000 TSP instances with $n = 1 0 0$ from Kool et al. (2019) for testing and three additional sets of 1,000 instances to evaluate generalization performance. We evaluate the EAS approaches against just using POMO with greedy action selection, random sampling, and active search as in Bello et al. (2016). In all cases, we use the model trained on instances with $n = 1 0 0$ made available by the POMO authors. For greedy action selection, POMO generates $8 \\cdot n$ solutions for an instance of size $n$ (using 8 augmentations and $n$ different starting cities). In all other cases, we generate $2 0 0 \\cdot 8 \\cdot n$ solutions per instance (over the course of 200 iterations for the (E)AS approaches). The batch size (the number of instances solved in parallel) is selected for each method individually to fully utilize the available GPU memory. We compare to the exact solver Concorde (Applegate et al., 2006), the heuristic solver LKH3 (Helsgaun, 2017), the graph convolutional neural network with beam search (GCN-BS) from Joshi et al. (2019), the 2-Opt based deep learning (2-Opt-DL) approach from de O. da Costa et al. (2020), the learning improvement heuristics (LIH) method from Wu et al. (2021), the conditional variational autoencoder (CVAE-Opt) approach (Hottung et al., 2021), and deep policy dynamic programming (DPDP) (Kool et al., 2021). ",
623
+ "bbox": [
624
+ 174,
625
+ 443,
626
+ 826,
627
+ 637
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Results Table 1 shows the average costs, average gap and the total runtime (wall-clock time) for each instance set. The exact solver Concorde performs best overall, as it is a highly specialized TSP solver. Of the POMO-based approaches, the original active search offers the best gap to optimality, but requires 5 days of runtime. EAS significantly lowers the runtime while the gap is only marginally larger. DPDP performs best among ML-based approaches. However, DPDP relies on a handcrafted and problem-specific beam search, whereas EAS methods are completely problem-independent. On the larger instances, EAS significantly improves generalization performance, reducing the gap over sampling by up to $3 . 6 \\mathrm { x }$ . We also evaluate active search using the imitation learning loss, but observe no impact on the search performance (see Appendix B). ",
634
+ "bbox": [
635
+ 174,
636
+ 645,
637
+ 823,
638
+ 672
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "table",
644
+ "img_path": "images/b850778457b82bd499ebcca9bc2866dca78cef43add4b0a344aaaf470b378364.jpg",
645
+ "table_caption": [
646
+ "Table 1: Results for the TSP "
647
+ ],
648
+ "table_footnote": [],
649
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Testing (10k inst.)</td><td colspan=\"10\">Generalization (1k instances)</td></tr><tr><td colspan=\"3\">n=100</td><td colspan=\"3\">n=125</td><td colspan=\"3\">n=150</td><td colspan=\"3\"></td><td>n = 200</td></tr><tr><td>Method</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td></td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td></tr><tr><td>Concorde</td><td></td><td>[7.765 0.000%</td><td></td><td></td><td>82M|8.583 0.000%</td><td></td><td></td><td>12M|9.346 0.000%</td><td></td><td></td><td>17M|10.687 0.000%</td><td></td><td>31M</td></tr><tr><td>LKH3</td><td>7.765</td><td>0.000%</td><td>8H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>8.5830.000%73M9.3460.000% 99M10.6870.000%</td><td>3H</td></tr><tr><td>GCN-BS</td><td>7.87</td><td>1.39%</td><td>40M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td><td>-</td></tr><tr><td>2-Opt-DL</td><td>7.83</td><td>0.87%</td><td>41M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>LIH</td><td>7.87</td><td>1.42%</td><td>2H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>CVAE-Opt</td><td>1</td><td>0.343%</td><td>6D</td><td></td><td>8.646 0.736%</td><td>21H</td><td></td><td>9.482 1.454%</td><td></td><td>30H</td><td></td><td></td><td></td></tr><tr><td>DPDP</td><td>7.765</td><td>0.004%</td><td>2H</td><td></td><td>8.589 0.070%</td><td>31M</td><td></td><td>9.4340.942%</td><td></td><td>44M</td><td></td><td>11.154 4.370%</td><td>74M</td></tr><tr><td>Greedy</td><td>7.776</td><td>0.146%</td><td>1M|</td><td>8.607</td><td>0.278%</td><td></td><td>&lt;1M|9.397</td><td></td><td>0.542%</td><td>&lt;1M|</td><td>10.843</td><td>1.457%</td><td>1M</td></tr><tr><td>Sampling</td><td>7.770</td><td>0.074%</td><td>4H</td><td>8.595</td><td>0.145%</td><td>45M</td><td></td><td>9.378</td><td>0.334%</td><td>78M</td><td></td><td>10.8381.416%</td><td>3H</td></tr><tr><td>Active S.</td><td></td><td>7.768 0.046%</td><td>5D</td><td>8.591</td><td>0.095%</td><td>15H</td><td>9.364</td><td></td><td>0.192%</td><td>19H</td><td>10.735</td><td>50.447%</td><td>24H</td></tr><tr><td>0 EAS-Emb</td><td></td><td>7.769 0.063%</td><td>5H</td><td>8.591</td><td>0.092%</td><td>57M</td><td></td><td>9.363</td><td>0.174%</td><td>2H</td><td>10.730 0.400%</td><td></td><td>4H</td></tr><tr><td>P EAS-Lay</td><td></td><td>7.769 0.053%</td><td>7H</td><td>8.591</td><td>0.089%</td><td>74M</td><td></td><td>9.363 0.176%</td><td></td><td>2H</td><td>10.737 0.471%</td><td></td><td>4H</td></tr><tr><td>EAS-Tab</td><td></td><td>7.768 0.048%</td><td>5H</td><td>8.591</td><td>0.091%49M</td><td></td><td></td><td>9.3650.196%</td><td></td><td>1H</td><td>10.756 0.650%</td><td></td><td>3H</td></tr></table>",
650
+ "bbox": [
651
+ 194,
652
+ 722,
653
+ 803,
654
+ 922
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "",
661
+ "bbox": [
662
+ 174,
663
+ 103,
664
+ 825,
665
+ 202
666
+ ],
667
+ "page_idx": 6
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "4.2 CVRP ",
672
+ "text_level": 1,
673
+ "bbox": [
674
+ 174,
675
+ 226,
676
+ 261,
677
+ 239
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "The goal of the CVRP is to find the shortest routes for a set of vehicles with limited capacity that must deliver goods to a set of $n$ customers. We again use the POMO approach as a basis for our EAS strategies. As is standard in the ML literature, we evaluate all approaches on instance sets where the locations and demands are sampled uniformly at random. Additionally, we consider the more realistic instance sets proposed in Hottung & Tierney (2020) with up to 297 customers (see Appendix A). ",
684
+ "bbox": [
685
+ 174,
686
+ 253,
687
+ 825,
688
+ 324
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Implementation We use the same EAS implementation for the CVRP as for the TSP. ",
695
+ "bbox": [
696
+ 176,
697
+ 332,
698
+ 733,
699
+ 345
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Setup We use the 10,000 CVRP instances from Kool et al. (2019) for testing and additional sets of 1,000 instances to evaluate the generalization performance. Again, we compare the EAS approaches to POMO using greedy action selection, sampling and active search. We generate the same number of solutions per instance as for the TSP. We compare to LIH, CAVE-Opt, DPDP, NeuRewriter (Chen & Tian, 2019) and neural large neighborhood search (NLNS) from Hottung & Tierney (2020). ",
706
+ "bbox": [
707
+ 174,
708
+ 352,
709
+ 825,
710
+ 422
711
+ ],
712
+ "page_idx": 6
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "Results Table 2 shows the average costs, the average gap to LKH3 and the total wall-clock time for all instance sets. EAS-Lay outperforms all other approaches on the test instances, including approaches that rely on problem-specific knowledge, with a gap that beats LKH3. Both other EAS methods also find solutions of better quality than LKH3, which is quite an accomplishment given the many years of work on the LKH3 approach. We note it is difficult to provide a fair comparison between a single-core, CPU-bound technique like LKH3 and our approaches that use a GPU. Nonetheless, assuming a linear speedup, at least 18 CPU cores would be needed for LKH3 to match the runtime of EAS-Tab. On the generalization instance sets with $n = 1 2 5$ and $n = 1 5 0$ , the EAS approaches also outperform LKH3 and CVAE-Opt while being significantly faster than active search. On the instances with $n = 2 0 0$ , active search finds the best solutions of all POMO based approaches with a gap of $0 . 2 2 \\%$ to LKH3, albeit with a long runtime of 36 hours. We hypothesize that significant changes to the learned policy are necessary to generate high-quality solutions for instances that are very different to those seen during training. Active search’s ability to modify all model parameters makes it easier to make those changes. EAS-Tab offers the worst performance on the instances with $n = 2 0 0$ with a gap of $1 1 . 8 \\%$ . This is because EAS-Tab is very sensitive to the selection of the hyperparameter $\\alpha$ , meaning that EAS-Tab requires hyperparameter tuning on some problems to generalize more effectively. Adjusting $\\alpha$ for the $n = 2 0 0$ case improves EAS-Tab’s gap to at least $3 . 5 4 \\%$ , making it slightly better than greedy or sampling. ",
717
+ "bbox": [
718
+ 173,
719
+ 430,
720
+ 825,
721
+ 679
722
+ ],
723
+ "page_idx": 6
724
+ },
725
+ {
726
+ "type": "table",
727
+ "img_path": "images/acaba43ae1df91044310bfda809b60ffddcc8cd8cff8313d303fd2d71b71174d.jpg",
728
+ "table_caption": [
729
+ "Table 2: Results for the CVRP on instances with uniformly sampled locations and demands "
730
+ ],
731
+ "table_footnote": [],
732
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Testing (10k inst.) n=100</td><td colspan=\"10\">Generalization (1k instances)</td></tr><tr><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>n =125 Gap</td><td>Time</td><td>Obj.</td><td>n=150 Gap</td><td>Time</td><td>Obj.</td><td>n = 200 Gap</td><td></td><td>Time</td></tr><tr><td>Method</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>LKH3</td><td>|15.65</td><td>0.00%</td><td></td><td>6D|17.50</td><td>0.00%</td><td></td><td>19H|19.22</td><td></td><td>0.00%</td><td></td><td>20H|22.00</td><td>0.00%</td><td>25H</td></tr><tr><td>NLNS NeuRewriter</td><td>15.99</td><td>2.23%</td><td>62M</td><td>[|18.07</td><td>3.23%</td><td></td><td>9M|19.96</td><td></td><td>3.86%</td><td>12M|23.02</td><td></td><td>4.66%</td><td>24M</td></tr><tr><td>LIH</td><td>16.10</td><td></td><td>66M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td></tr><tr><td>CVAE-Opt</td><td>16.03</td><td>2.47% 1.36%</td><td>5H</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>=</td><td>=</td></tr><tr><td>DPDP</td><td>15.63</td><td>-0.13%</td><td>11D 23H</td><td>17.87 17.51</td><td>2.08% 0.07%</td><td>36H 3H</td><td>19.84 19.31</td><td></td><td>3.24% 0.48%</td><td>46H 5H</td><td>22.26</td><td>51.20%</td><td>= 9H</td></tr><tr><td>Greedy</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>15.76</td><td>0.76%</td><td>2M</td><td>17.73</td><td>1.29%</td><td>&lt;1M</td><td>19.64</td><td></td><td>2.18%</td><td>1M</td><td>|22.90</td><td>4.12%</td><td>1M</td></tr><tr><td>Sampling 0</td><td>15.67</td><td>0.17%</td><td>7H</td><td>17.60</td><td>0.54%</td><td>73M</td><td>19.48</td><td></td><td>1.35%</td><td>2H</td><td>23.18</td><td>5.35%</td><td>5H</td></tr><tr><td>Active S.</td><td>15.63</td><td>-0.07%</td><td>8D</td><td>17.47</td><td>-0.21%</td><td>25H</td><td>19.21</td><td></td><td>-0.03%</td><td>29H</td><td>22.05</td><td>0.22%</td><td>36H</td></tr><tr><td>EAS-Emb</td><td>15.63 15.61</td><td>-0.08%</td><td>9H 12H</td><td>17.47</td><td>-0.21%</td><td>93M</td><td>19.22</td><td></td><td>0.03%</td><td>3H</td><td>22.19</td><td>0.88%</td><td>6H</td></tr><tr><td>EAS-Lay EAS-Tab</td><td>15.62</td><td>-0.23% -0.14%</td><td>8H</td><td>17.50</td><td>17.46 -0.24% 0.00%</td><td>2H 80M</td><td>19.21 19.36</td><td></td><td>-0.04% 0.72%</td><td>3H 2H</td><td>22.10 24.56</td><td>0.45% 11.8%</td><td>8H 5H</td></tr></table>",
733
+ "bbox": [
734
+ 205,
735
+ 733,
736
+ 794,
737
+ 922
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "4.3 JSSP ",
744
+ "text_level": 1,
745
+ "bbox": [
746
+ 174,
747
+ 103,
748
+ 251,
749
+ 117
750
+ ],
751
+ "page_idx": 7
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "The JSSP is a scheduling problem involving assigning jobs to a set of heterogeneous machines. Each job consists of multiple operations that are run sequentially on the set of machines. The objective is to minimize the time needed to complete all jobs, called the makespan. We evaluate EAS using the L2D approach, which is a state-of-the-art ML based construction method using a graph neural network. ",
756
+ "bbox": [
757
+ 174,
758
+ 132,
759
+ 825,
760
+ 189
761
+ ],
762
+ "page_idx": 7
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "Implementation L2D represents JSSP instances as disjunctive graphs in which each operation of an instance is represented by a node in the graph. To create a schedule, L2D sequentially selects the operation that should be scheduled next. To this end, an embedding $h _ { v }$ is created for each node $v$ in a step-wise encoding process. In contrast to POMO, the embeddings $h _ { v }$ are recomputed after each decision step $t$ . Since EAS-Emb requires static embeddings, we modify the network to use $\\tilde { h } _ { v } ^ { t } = h _ { v } ^ { t } + h _ { v } ^ { S T }$ as an embedding for node t to zero. During the searc $v$ at step with E $t$ , where S-Emb $h _ { v } ^ { S T }$ is a vector that is initialized winly adjust the static component $h _ { v } ^ { S T }$ of the embedding with gradient descent. For EAS-Lay, we insert the residual layer $\\mathrm { L } ^ { \\star } ( \\cdot )$ described in Equation 3 to each embedding $h _ { v }$ separately and identically. Finally, for EAS-Tab, we use a table $Q$ of size $| O | \\times | O |$ , where $| O |$ is the number of operations, and we design the function $g ( s _ { t } , a _ { t } )$ so that the entry $Q _ { i , j }$ corresponds to selecting the operation $o _ { j }$ directly after the operation $o _ { i }$ . ",
767
+ "bbox": [
768
+ 173,
769
+ 195,
770
+ 825,
771
+ 351
772
+ ],
773
+ "page_idx": 7
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Setup We use three instance sets with 100 instances from Zhang et al. (2020) for testing and to evaluate the generalization performance. We use the exact solver Google OR-Tools (Perron & Furnon) as a baseline, allowing it a maximum runtime of 1 hour per instance. Furthermore, we compare to L2D with greedy action selection. Note that the performance of the L2D implementation is CPU bound and does not allow different instances to be batch processed. We hence solve instances sequentially and generate significantly fewer solutions per instance than for the TSP and the CVRP. For sampling, active search and the EAS approaches we sample 8,000 solutions per problem instance over the course of 200 iterations for the (efficient) active search approaches. ",
778
+ "bbox": [
779
+ 174,
780
+ 357,
781
+ 825,
782
+ 468
783
+ ],
784
+ "page_idx": 7
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Results Table 3 shows the average gap to the OR-Tools solution and the total wall-clock time per instance set. EAS-Emb offers the best performance for all three instance sets. On the $1 0 \\times 1 0$ instances, EAS-Emb reduces the gap by $50 \\%$ in comparison to pure sampling. Even on the $2 0 \\times 1 5$ instances it reduces the gap to $1 6 . 8 \\%$ from $2 0 . 8 \\%$ for pure sampling, despite the low number of sampled solutions per instance. EAS-Lay offers performance that is comparable to active search. We note that if L2D were to more heavily use the GPU, instances could be solved in batches, thus drastically reducing the runtime of EAS-Lay and EAS-Tab. While EAS-Tab shows similar performance to active search on the test instance set, it is unable to generalize effectively to the larger instances. ",
789
+ "bbox": [
790
+ 173,
791
+ 474,
792
+ 825,
793
+ 587
794
+ ],
795
+ "page_idx": 7
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "4.4 SEARCH TRAJECTORY ANALYSIS ",
800
+ "text_level": 1,
801
+ "bbox": [
802
+ 176,
803
+ 612,
804
+ 439,
805
+ 626
806
+ ],
807
+ "page_idx": 7
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "To get a better understanding of how efficient active search improves performance, we monitor the quality of the solutions sampled at each of the 200 iterations of the search. Figure 2 reports the average quality over all test instances for the JSSP and over the first 1,000 test instances for the TSP and CVRP. As expected, the quality of solutions generated via pure sampling does not change over the course of the search for all three problems. For all other methods, the quality of the generated solutions improves throughout the search. Thus, all active search variants successfully modify the (model) parameters in a way that increases the likelihood of generating high-quality solutions. ",
812
+ "bbox": [
813
+ 174,
814
+ 641,
815
+ 825,
816
+ 739
817
+ ],
818
+ "page_idx": 7
819
+ },
820
+ {
821
+ "type": "table",
822
+ "img_path": "images/f2ce96d91caec68f4b05fe8c69adad675170d3045007f55110ea4d8ab189f66e.jpg",
823
+ "table_caption": [
824
+ "Table 3: Results for the JSSP "
825
+ ],
826
+ "table_footnote": [],
827
+ "table_body": "<table><tr><td colspan=\"2\" rowspan=\"2\"></td><td colspan=\"3\">Testing(100 inst.)</td><td colspan=\"4\">Generalization (1OO instances)</td></tr><tr><td colspan=\"2\">10×10</td><td colspan=\"3\">15×15</td><td colspan=\"3\">20×15</td></tr><tr><td colspan=\"2\" rowspan=\"2\">Method</td><td rowspan=\"2\">Obj. Gap</td><td rowspan=\"2\">Time</td><td rowspan=\"2\">Obj.</td><td>Gap</td><td>Time</td><td>Obj. Gap</td><td>Time</td></tr><tr><td rowspan=\"2\"></td><td rowspan=\"2\"></td><td rowspan=\"2\"></td><td rowspan=\"2\">0.0%</td></tr><tr><td rowspan=\"2\">OR-Tools Greedy</td><td rowspan=\"2\">1807.6 0.0%</td></tr><tr><td>37S|1</td><td rowspan=\"2\">[1188.0</td><td colspan=\"2\" rowspan=\"2\">0.0%</td><td rowspan=\"2\">3H| |1345.5</td><td rowspan=\"2\"></td><td rowspan=\"2\">80H</td></tr><tr><td rowspan=\"2\"></td><td rowspan=\"2\">1988.6</td></tr><tr><td>22.3% 871.7</td><td>20S 1528.3</td><td>28.6%</td><td>44S</td><td>1738.0</td><td>29.2%</td><td>60S</td></tr><tr><td rowspan=\"4\">Sampling L</td><td>854.2</td><td>8.0% 5.8%</td><td>8H 8H</td><td>1378.3 16.0% 1345.2 13.2%</td><td>25H 32H</td><td>1624.6 1576.5</td><td>20.8% 17.2%</td><td>40H</td></tr><tr><td>EAS-Emb</td><td>837.0 3.7%</td><td>7H</td><td>1326.4 11.7%</td><td>22H</td><td>1570.8</td><td>16.8%</td><td>50H 37H</td></tr><tr><td>EAS-Lay</td><td>859.6 6.5%</td><td>7H</td><td>1352.6</td><td>13.8%</td><td>25H 1581.8</td><td>17.6%</td><td>46H</td></tr><tr><td>EAS-Tab</td><td>860.2 6.5%</td><td>8H</td><td>1376.8</td><td>15.9% 29H</td><td></td><td>1623.420.7%</td><td>51H</td></tr></table>",
828
+ "bbox": [
829
+ 267,
830
+ 792,
831
+ 732,
832
+ 922
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "image",
838
+ "img_path": "images/aeff2be7dc644f08b6349a6f6cabfb88e1ed829fcc964cb99457f18da9f01b79.jpg",
839
+ "image_caption": [
840
+ "Figure 2: Average costs of sampled solutions at each iteration (best viewed in color). "
841
+ ],
842
+ "image_footnote": [],
843
+ "bbox": [
844
+ 187,
845
+ 101,
846
+ 803,
847
+ 195
848
+ ],
849
+ "page_idx": 8
850
+ },
851
+ {
852
+ "type": "image",
853
+ "img_path": "images/3814f29ab52dc4112005668d02a29044fe9d34e4442175ae8284d12c9a420a11.jpg",
854
+ "image_caption": [
855
+ "Figure 3: Influence of $\\lambda$ on the solution quality for EAS-Emb and EAS-Lay. "
856
+ ],
857
+ "image_footnote": [],
858
+ "bbox": [
859
+ 187,
860
+ 236,
861
+ 802,
862
+ 325
863
+ ],
864
+ "page_idx": 8
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "For the TSP, EAS-Emb and EAS-Lay offer nearly identical performance, with EAS-Tab outperforming both by a very slight margin. The original active search is significantly more unstable, which is likely the result of the learning rate being too high. Note that the learning rate has been tuned on an independent validation set. These results indicate that selecting a suitable learning rate is significantly more difficult for the original active search than for our efficient active search variants where only a subset of (model) parameters are changed. For the CVRP, all EAS variants find better solutions on average than the original search after only a few iterations. Keeping most parameters fixed seems to simplify the underlying learning problem and allows for faster convergence. For the JSSP, EAS-Emb offers significantly better performance than all other methods. The reason for this is that the L2D approach uses only two node features and has a complex node embedding generation procedure. While the original active search must fine tune the entire embedding generation process to modify the generated solutions, EAS-Emb can just modify the node embedding directly. ",
869
+ "bbox": [
870
+ 174,
871
+ 381,
872
+ 825,
873
+ 546
874
+ ],
875
+ "page_idx": 8
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "4.5 ABLATION STUDY: IMITATION LEARNING LOSS ",
880
+ "text_level": 1,
881
+ "bbox": [
882
+ 174,
883
+ 565,
884
+ 539,
885
+ 579
886
+ ],
887
+ "page_idx": 8
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "We evaluate the impact of the imitation learning loss $\\mathcal { L } _ { I L }$ of EAS-Emb and EAS-Lay with a sensitivity and ablation analysis for the hyperparameter $\\lambda$ . We solve the first 500 test instances (to reduce the computational costs) for the TSP and CVRP, and all test instances for the JSSP using EAS-Emb and EAS-Lay with different $\\lambda$ values. The learning rate remains fixed to a value determined in independent tuning runs in which $\\lambda$ is fixed to zero. Figure 3 shows the results for all three problems. For the TSP and the CVRP, the results show that $\\mathcal { L } _ { I L }$ can significantly improve performance. When $\\lambda$ is set to 0 or very small values, $\\mathcal { L } _ { I L }$ is disabled, thus including $\\mathcal { L } _ { I L }$ is clearly beneficial on the TSP and CVRP. For the JSSP, the inclusion of $\\mathcal { L } _ { I L }$ does not greatly improve performance, but it does not hurt it, either. Naturally, $\\lambda$ should not be selected too low or too high as either too little or too much intensification can hurt search performance. ",
892
+ "bbox": [
893
+ 173,
894
+ 592,
895
+ 825,
896
+ 731
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "5 CONCLUSION ",
903
+ "text_level": 1,
904
+ "bbox": [
905
+ 176,
906
+ 752,
907
+ 318,
908
+ 768
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "We presented a simple technique that can be used to extend ML-based construction heuristics by an extensive search. Our proposed modification of active search fine tunes a small subset of (model) parameters to a single instance at test time. We evaluate three example implementations of EAS that all result in significantly improved model performance in both testing and generalization experiments on three different, difficult combinatorial optimization problems. Our approach of course comes with some key limitations. Search requires time, thus for applications needing extremely fast (or practically instant) solutions, greedy construction remains a better option. Furthermore, while the problems we experiment on have the same computational complexity as real-world optimization problems, additional work may be needed to handle complex side constraints as often seen in industrial problems. ",
915
+ "bbox": [
916
+ 174,
917
+ 785,
918
+ 825,
919
+ 924
920
+ ],
921
+ "page_idx": 8
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "ACKNOWLEDGMENTS ",
926
+ "text_level": 1,
927
+ "bbox": [
928
+ 176,
929
+ 104,
930
+ 328,
931
+ 118
932
+ ],
933
+ "page_idx": 9
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "The computational experiments in this work have been performed using the Bielefeld GPU Cluster. ",
938
+ "bbox": [
939
+ 173,
940
+ 127,
941
+ 823,
942
+ 143
943
+ ],
944
+ "page_idx": 9
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "REFERENCES ",
949
+ "text_level": 1,
950
+ "bbox": [
951
+ 174,
952
+ 162,
953
+ 287,
954
+ 179
955
+ ],
956
+ "page_idx": 9
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "David Applegate, Ribert Bixby, Vasek Chvatal, and William Cook. Concorde TSP solver, 2006. ",
961
+ "bbox": [
962
+ 176,
963
+ 186,
964
+ 800,
965
+ 202
966
+ ],
967
+ "page_idx": 9
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural Combinatorial Optimization with Reinforcement Learning. ArXiv, abs/1611.0, 2016. ",
972
+ "bbox": [
973
+ 174,
974
+ 210,
975
+ 823,
976
+ 241
977
+ ],
978
+ "page_idx": 9
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Xinyun Chen and Yuandong Tian. Learning to perform local rewriting for combinatorial optimization. In Advances in Neural Information Processing Systems, pp. 6278–6289, 2019. ",
983
+ "bbox": [
984
+ 173,
985
+ 250,
986
+ 823,
987
+ 279
988
+ ],
989
+ "page_idx": 9
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Paulo R de O. da Costa, Jason Rhuggenaath, Yingqian Zhang, and Alp Akcay. Learning 2-opt heuristics for the traveling salesman problem via deep reinforcement learning. In Asian Conference on Machine Learning, pp. 465–480. PMLR, 2020. ",
994
+ "bbox": [
995
+ 173,
996
+ 287,
997
+ 825,
998
+ 330
999
+ ],
1000
+ "page_idx": 9
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Michel Deudon, Pierre Cournut, Alexandre Lacoste, Yossiri Adulyasak, and Louis-Martin Rousseau. Learning heuristics for the TSP by policy gradient. In International Conference on the Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pp. 170–181. Springer, 2018. ",
1005
+ "bbox": [
1006
+ 173,
1007
+ 339,
1008
+ 826,
1009
+ 395
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Marco Dorigo, Mauro Birattari, and Thomas Stutzle. Ant colony optimization. IEEE computational intelligence magazine, 1(4):28–39, 2006. ",
1016
+ "bbox": [
1017
+ 169,
1018
+ 405,
1019
+ 825,
1020
+ 435
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Jonas K Falkner and Lars Schmidt-Thieme. Learning to solve vehicle routing problems with time windows through joint attention. arXiv preprint arXiv:2006.09100, 2020. ",
1027
+ "bbox": [
1028
+ 174,
1029
+ 443,
1030
+ 823,
1031
+ 473
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Zhang-Hua Fu, Kai-Bin Qiu, and Hongyuan Zha. Generalize a small pre-trained model to arbitrarily large TSP instances. arXiv preprint arXiv:2012.10658, 2020. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 481,
1041
+ 821,
1042
+ 511
1043
+ ],
1044
+ "page_idx": 9
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Tim Head, Manoj Kumar, Holger Nahrstaedt, Gilles Louppe, and Iaroslav Shcherbatyi. scikitoptimize/scikit-optimize, September 2020. URL https://doi.org/10.5281/zenodo. 4014775. ",
1049
+ "bbox": [
1050
+ 174,
1051
+ 520,
1052
+ 826,
1053
+ 563
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Keld Helsgaun. An extension of the Lin-Kernighan-Helsgaun TSP solver for constrained traveling salesman and vehicle routing problems. Roskilde: Roskilde University, 2017. ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 571,
1063
+ 823,
1064
+ 602
1065
+ ],
1066
+ "page_idx": 9
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "John J. Hopfield. Neural Networks and Physical Systems with Emergent Collective Computational Abilities. Proceedings of the National Academy of Sciences of the United States of America, 79(8): 2554–2558, 1982. ISSN 00278424. ",
1071
+ "bbox": [
1072
+ 174,
1073
+ 609,
1074
+ 826,
1075
+ 654
1076
+ ],
1077
+ "page_idx": 9
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "André Hottung and Kevin Tierney. Neural large neighborhood search for the capacitated vehicle routing problem. In European Conference on Artificial Intelligence, pp. 443–450, 2020. ",
1082
+ "bbox": [
1083
+ 174,
1084
+ 661,
1085
+ 823,
1086
+ 693
1087
+ ],
1088
+ "page_idx": 9
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "André Hottung, Shunji Tanaka, and Kevin Tierney. Deep learning assisted heuristic tree search for the container pre-marshalling problem. Computers & Operations Research, 113:104781, 2020. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 700,
1096
+ 825,
1097
+ 731
1098
+ ],
1099
+ "page_idx": 9
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "André Hottung, Bhanu Bhandari, and Kevin Tierney. Learning a latent search space for routing problems using variational autoencoders. In International Conference on Learning Representations, 2021. ",
1104
+ "bbox": [
1105
+ 176,
1106
+ 738,
1107
+ 825,
1108
+ 781
1109
+ ],
1110
+ "page_idx": 9
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Chaitanya K Joshi, Thomas Laurent, and Xavier Bresson. An efficient graph convolutional network technique for the travelling salesman problem. arXiv preprint arXiv:1906.01227, 2019. ",
1115
+ "bbox": [
1116
+ 171,
1117
+ 790,
1118
+ 825,
1119
+ 820
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 829,
1129
+ 826,
1130
+ 886
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 895,
1140
+ 823,
1141
+ 924
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations, 2019. ",
1148
+ "bbox": [
1149
+ 171,
1150
+ 103,
1151
+ 823,
1152
+ 132
1153
+ ],
1154
+ "page_idx": 10
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Wouter Kool, Herke van Hoof, Joaquim Gromicho, and Max Welling. Deep policy dynamic programming for vehicle routing problems. arXiv preprint arXiv:2102.11756, 2021. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 140,
1162
+ 823,
1163
+ 170
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: policy optimization with multiple optima for reinforcement learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21188–21198. Curran Associates, Inc., 2020. ",
1170
+ "bbox": [
1171
+ 174,
1172
+ 179,
1173
+ 826,
1174
+ 234
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Zhuwen Li, Qifeng Chen, and Vladlen Koltun. Combinatorial optimization with graph convolutional networks and guided tree search. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. CesaBianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. ",
1181
+ "bbox": [
1182
+ 173,
1183
+ 244,
1184
+ 826,
1185
+ 300
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Mohammadreza Nazari, Afshin Oroojlooy, Lawrence Snyder, and Martin Takác. Reinforcement learning for solving the vehicle routing problem. In Advances in Neural Information Processing Systems, pp. 9839–9849, 2018. ",
1192
+ "bbox": [
1193
+ 174,
1194
+ 309,
1195
+ 826,
1196
+ 352
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Bo Peng, Jiahai Wang, and Zizhen Zhang. A deep reinforcement learning algorithm using dynamic attention model for vehicle routing problems. In International Symposium on Intelligence Computation and Applications, pp. 636–650. Springer, 2019. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 361,
1206
+ 826,
1207
+ 404
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Laurent Perron and Vincent Furnon. OR-Tools. URL https://developers.google.com/ optimization/. ",
1214
+ "bbox": [
1215
+ 171,
1216
+ 412,
1217
+ 825,
1218
+ 441
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Eduardo Uchoa, Diego Pecin, Artur Pessoa, Marcus Poggi, Thibaut Vidal, and Anand Subramanian. New benchmark instances for the capacitated vehicle routing problem. European Journal of Operational Research, 257(3):845–858, 2017. ",
1225
+ "bbox": [
1226
+ 174,
1227
+ 450,
1228
+ 825,
1229
+ 493
1230
+ ],
1231
+ "page_idx": 10
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "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 I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. ",
1236
+ "bbox": [
1237
+ 173,
1238
+ 502,
1239
+ 826,
1240
+ 559
1241
+ ],
1242
+ "page_idx": 10
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Natalia Vesselinova, Rebecca Steinert, Daniel F. Perez-Ramirez, and Magnus Boman. Learning combinatorial optimization on graphs: A survey with applications to networking. IEEE Access, 8: 120388–120416, 2020. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 566,
1250
+ 825,
1251
+ 609
1252
+ ],
1253
+ "page_idx": 10
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Thibaut Vidal, Teodor Gabriel Crainic, Michel Gendreau, and Christian Prins. A unified solution framework for multi-attribute vehicle routing problems. European Journal of Operational Research, 234(3):658–673, 2014. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 618,
1261
+ 826,
1262
+ 661
1263
+ ],
1264
+ "page_idx": 10
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 670,
1272
+ 823,
1273
+ 700
1274
+ ],
1275
+ "page_idx": 10
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256, 1992. ",
1280
+ "bbox": [
1281
+ 173,
1282
+ 708,
1283
+ 823,
1284
+ 738
1285
+ ],
1286
+ "page_idx": 10
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning improvement heuristics for solving routing problems. IEEE Transactions on Neural Networks and Learning Systems, 2021. ",
1291
+ "bbox": [
1292
+ 174,
1293
+ 746,
1294
+ 823,
1295
+ 775
1296
+ ],
1297
+ "page_idx": 10
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Step-wise deep learning models for solving routing problems. IEEE Transactions on Industrial Informatics, 17(7):4861–4871, 2021. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 784,
1305
+ 823,
1306
+ 813
1307
+ ],
1308
+ "page_idx": 10
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Cong Zhang, Wen Song, Zhiguang Cao, Jie Zhang, Puay Siew Tan, and Xu Chi. Learning to dispatch for job shop scheduling via deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pp. 1621–1632, 2020. ",
1313
+ "bbox": [
1314
+ 173,
1315
+ 821,
1316
+ 826,
1317
+ 864
1318
+ ],
1319
+ "page_idx": 10
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "A EXPERIMENTS FOR MORE REALISTIC CVRP INSTANCES ",
1324
+ "text_level": 1,
1325
+ "bbox": [
1326
+ 174,
1327
+ 102,
1328
+ 673,
1329
+ 117
1330
+ ],
1331
+ "page_idx": 11
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "We provide results from additional experiments for the CVRP on more realistic instances to show that our approach is effective at solving instances with a wide range of structures. Our EAS methods are implemented in the same way as in Section 4.2 ",
1336
+ "bbox": [
1337
+ 174,
1338
+ 136,
1339
+ 823,
1340
+ 178
1341
+ ],
1342
+ "page_idx": 11
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Setup We evaluate EAS on 9 instance sets from Hottung & Tierney (2020) (consisting of 20 instances each) that have been generated based on the instances from Uchoa et al. (2017) performing 3 runs per instance. The characteristics of the instances vary significantly between sets, but all instances in the same set have been sampled from an identical distribution. For each instance set we train a new model for 3 weeks on a separate, corresponding training set. For testing, we run all (efficient) active search approaches for 200 iterations using the newly trained models. Additionally, we test the generalization performance by solving all instance sets with EAS-Lay using the CVRP model of Section 4.2 that has been trained on the uniform instances (with $n = 1 0 0$ ) from Kool et al. (2019) and call this Lay\\*. We only evaluate the generalization performance of EAS-Lay (the best performing EAS approach from Section 4.2) to keep the computational costs low. In all experiments, we use hyperparameters tuned for the uniform CVRP instances. We compare to NLNS, LKH3 and the state-of-the-art unified hybrid genetic search (GS) from Vidal et al. (2014). As is standard in the operations research literature, we round the distances between customers to the nearest integer. Furthermore, we solve instances sequentially and not in batches of different instances. However, to make better use of the available GPU memory, we solve up to 10 copies of the same instance in parallel for the EAS approaches and for POMO with sampling. The best solution found so far is shared between all runs, which has an impact on the imitation learning loss $\\mathcal { L } _ { I L }$ for EAS-Emb and EAS-Lay. For EAS-Tab we set $\\tilde { Q } = ( 1 - \\bar { \\beta } ) \\cdot Q + \\beta \\cdot Q ^ { g l o b }$ , where $Q ^ { g l o b }$ is the lookup table for the best solution over all runs and $\\beta$ is linearly increased from 0 to 1 over the course of the search. ",
1347
+ "bbox": [
1348
+ 173,
1349
+ 184,
1350
+ 825,
1351
+ 450
1352
+ ],
1353
+ "page_idx": 11
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Results Table 4 shows the gap to the unified hybrid genetic search and the average runtime per instance for all methods. For EAS-Lay we report the performance of the instance set specific models and additionally the generalization performance when using the model trained on uniform CVRP instances (with $n = 1 0 0$ ). The later results are marked with a star. EAS-Emb and EAS-Lay both find better solution than NLNS and LKH3 on 8 out of the 9 instance sets. EAS-Tab outperforms NLNS and LKH3 on all but two instance sets. As a side note, we have found that the original active search (AS) performs surprisingly well, outperforming LKH3 on 3 instance sets, even though it still cannot surpass our newly proposed EAS methods. The version of EAS-Lay (marked with a star) that uses the model trained on uniform instances with $n = 1 0 0$ performs surprisingly well with gaps between $0 . 2 6 \\%$ to $4 . 0 8 \\%$ to the GS. ",
1358
+ "bbox": [
1359
+ 174,
1360
+ 457,
1361
+ 825,
1362
+ 595
1363
+ ],
1364
+ "page_idx": 11
1365
+ },
1366
+ {
1367
+ "type": "table",
1368
+ "img_path": "images/2b70c77680f3caf606ae0f0a6c0624de6f9421152730ee2f175b081fef75c62a.jpg",
1369
+ "table_caption": [
1370
+ "Table 4: Results for the CVRP on the instance sets from Hottung & Tierney (2020). "
1371
+ ],
1372
+ "table_footnote": [],
1373
+ "table_body": "<table><tr><td></td><td></td><td colspan=\"4\">Gap to GS in %</td><td colspan=\"2\">POMO</td><td colspan=\"5\"> Avg. Runtime in minutes</td></tr><tr><td>Inst.</td><td>n</td><td>POMO Sam. AS</td><td>POMO-EAS Emb Lay Lay* Tab</td><td></td><td>[NLNS LKH|</td><td></td><td></td><td></td><td>POMO-EAS Sam. AS Emb Lay Lay* TabNLNS LKH GS</td><td></td><td></td><td></td></tr><tr><td>XE 1</td><td>100</td><td></td><td></td><td></td><td></td><td>2.12</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>XE</td><td>128</td><td>0.86 0.65 0.76 0.80</td><td>10.23 0.26 0.260.25</td><td>0.61 0.31| 0.26 0.29</td><td>0.32 0.44</td><td>0.9 0.54</td><td>1.3 1.6</td><td>1.3 1.8</td><td>1.4 2.0</td><td>1.5 0.9 2.1</td><td>3.2</td><td>6.2 0.6 2.0</td></tr><tr><td>XE</td><td>180</td><td>0.51 0.20</td><td>0.09 0.09</td><td>0.54 0.13</td><td>0.58 0.16</td><td>1.3 2.5</td><td>2.2</td><td>3.3</td><td>3.7</td><td>24 3.8</td><td>3.2 3.2</td><td>1.2 1.1 1.4</td></tr><tr><td>3.57 XE</td><td>199</td><td></td><td></td><td></td><td></td><td></td><td></td><td>4.2</td><td>4.7</td><td>3.5</td><td>3.2</td><td>3.6 2.4</td></tr><tr><td>XE 9</td><td>213</td><td>1.50 0.88 1.96 1.30</td><td>0.37 0.45</td><td>1.29 0.80 4.08 0.83</td><td>2.03 2.26</td><td>0.72 3.3 1.09</td><td>2.4</td><td></td><td>5.2</td><td>4.9 5.4</td><td>10.2</td><td>1.1 2.4</td></tr><tr><td>XE 11</td><td>236</td><td>1.42 1.22</td><td>0.64 0.71 0.82 0.84</td><td>1.76 0.94</td><td>0.65</td><td>3.7 0.78 4.0</td><td>2.5 2.7</td><td>4.6 5.2</td><td>5.1</td><td>3.9 5.6 4.8</td><td>10.2</td><td>1.1 3.2</td></tr><tr><td>3 XE</td><td></td><td>1.40 0.88</td><td>0.38 0.56</td><td>2.83 0.80</td><td>0.82</td><td>1.55 7.1</td><td>3.5</td><td>8.7</td><td>6</td><td></td><td>10.2</td><td>5.7 3.6</td></tr><tr><td>XE 15</td><td>268</td><td>1.81 2.17</td><td>0.850.96</td><td>2.51 1.27</td><td>1.81</td><td>1.32 7.3</td><td>3.3</td><td>8.8</td><td></td><td>76</td><td>10.3</td><td>5.8 5.5</td></tr><tr><td>XE 17</td><td>297</td><td>1.66 0.97</td><td>0.44 0.65</td><td>2.15 0.92</td><td>1.41</td><td>1.23 8.9</td><td>3.8</td><td>8.8</td><td>6.8</td><td>9.4</td><td>10.3</td><td>2.5 4.2</td></tr></table>",
1374
+ "bbox": [
1375
+ 183,
1376
+ 636,
1377
+ 815,
1378
+ 777
1379
+ ],
1380
+ "page_idx": 11
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "B ABLATION STUDY: ACTIVE SEARCH LOSS ",
1385
+ "text_level": 1,
1386
+ "bbox": [
1387
+ 174,
1388
+ 806,
1389
+ 558,
1390
+ 821
1391
+ ],
1392
+ "page_idx": 11
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "We evaluate if applying the imitation learning loss component used by EAS-Emb and EAS-Lay to the original active search can significantly improve the performance. To this end, we solve all test instances using active search with and without the imitation learning loss component. Note that the hyperparameters for each approach have been tuned independently on separate validation set instances. Table 5 shows the results. We observe no significant impact of the imitation learning loss $\\mathcal { L } _ { \\pi }$ on the performance of active search. This means that active search with imitation learning loss is not competitive with EAS-Lay and EAS-Emb across all problems, even when sharing the same loss function. ",
1397
+ "bbox": [
1398
+ 174,
1399
+ 840,
1400
+ 825,
1401
+ 922
1402
+ ],
1403
+ "page_idx": 11
1404
+ },
1405
+ {
1406
+ "type": "image",
1407
+ "img_path": "images/41ab96920d4ee9221016be5023bf0d3e37f416c536ccee2088f21bf8bca9448d.jpg",
1408
+ "image_caption": [
1409
+ "Figure 4: Influence of $\\sigma$ on the solution quality for EAS-Tab "
1410
+ ],
1411
+ "image_footnote": [],
1412
+ "bbox": [
1413
+ 174,
1414
+ 125,
1415
+ 823,
1416
+ 295
1417
+ ],
1418
+ "page_idx": 12
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "",
1423
+ "bbox": [
1424
+ 173,
1425
+ 347,
1426
+ 825,
1427
+ 376
1428
+ ],
1429
+ "page_idx": 12
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "C PARAMETER SWEEP: EAS-TAB INTENSIFICATION ",
1434
+ "text_level": 1,
1435
+ "bbox": [
1436
+ 174,
1437
+ 396,
1438
+ 622,
1439
+ 412
1440
+ ],
1441
+ "page_idx": 12
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "We investigate the impact of the hyperparameter $\\sigma$ on EAS-Tab, which controls the degree of exploitation of the search. By setting $\\sigma$ to zero (or very small values) we essentially disable the lookup table, thus examining its impact on the search. We again solve all three problems with different values of $\\sigma$ on a subset of test instances. We fix $\\alpha$ independently based on tuning on a separate set of validation instances. Figure 4 provides the results for adjusting $\\sigma$ . For all three problems, $\\sigma = 1 0$ provides the best trade-off between exploration and exploitation. Note that low $\\sigma$ values (which reduce the impact of the lookup table updates) hurt performance, meaning that the table based adjustments are effective in all cases. ",
1446
+ "bbox": [
1447
+ 173,
1448
+ 428,
1449
+ 825,
1450
+ 540
1451
+ ],
1452
+ "page_idx": 12
1453
+ }
1454
+ ]
parse/dev/nO5caZwFwYu/nO5caZwFwYu_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wlEOsQ917F/wlEOsQ917F.md ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A framework for bilevel optimization that enables stochastic and global variance reduction algorithms
2
+
3
+ # Mathieu Dagréou
4
+
5
+ Inria, CEA Université Paris-Saclay Palaiseau, France mathieu.dagreou@inria.fr
6
+
7
+ Pierre Ablin CNRS Université Paris-Dauphine, PSL-University Paris, France pierre.ablin@cnrs.fr
8
+
9
+ # Samuel Vaiter
10
+
11
+ # Thomas Moreau
12
+
13
+ CNRS Université Côte d’Azur, LJAD Nice, France samuel.vaiter@cnrs.fr
14
+
15
+ Inria, CEA Université Paris-Saclay Palaiseau, France thomas.moreau@inria.fr
16
+
17
+ # Abstract
18
+
19
+ Bilevel optimization, the problem of minimizing a value function which involves the arg-minimum of another function, appears in many areas of machine learning. In a large scale empirical risk minimization setting where the number of samples is huge, it is crucial to develop stochastic methods, which only use a few samples at a time to progress. However, computing the gradient of the value function involves solving a linear system, which makes it difficult to derive unbiased stochastic estimates. To overcome this problem we introduce a novel framework, in which the solution of the inner problem, the solution of the linear system, and the main variable evolve at the same time. These directions are written as a sum, making it straightforward to derive unbiased estimates. The simplicity of our approach allows us to develop global variance reduction algorithms, where the dynamics of all variables is subject to variance reduction. We demonstrate that SABA, an adaptation of the celebrated SAGA algorithm in our framework, has $O \big ( \frac { 1 } { T } \big )$ convergence rate, and that it achieves linear convergence under Polyak-Łojasciewicz assumption. This is the first stochastic algorithm for bilevel optimization that verifies either of these properties. Numerical experiments validate the usefulness of our method.
20
+
21
+ # 1 Introduction
22
+
23
+ Bilevel optimization is attracting more and more attention in the machine learning community thanks to its wide range of applications. Typical examples are hyperparameters selection [5, 38, 17, 6], data augmentation [11, 42], implicit deep learning [3] or neural architecture search [33]. Bilevel optimization aims at minimizing a function whose value depends on the result of another optimization problem:
24
+
25
+ $$
26
+ \operatorname* { m i n } _ { x \in \mathbb { R } ^ { d } } h ( x ) = F ( z ^ { * } ( x ) , x ) , \quad \mathrm { s u c h t h a t } z ^ { * } ( x ) \in \arg \operatorname* { m i n } _ { z \in \mathbb { R } ^ { p } } G ( z , x ) ,
27
+ $$
28
+
29
+ where $F$ and $G$ are two real valued functions defined on $\mathbb { R } ^ { p } \times \mathbb { R } ^ { d }$ . $G$ is called the inner function, $F$ is the outer function and $h$ is the value function. Similarly, $z$ is the inner variable and $x$ is the outer variable. In most cases, the function $z ^ { * }$ can only be approximated by an optimization algorithm, which makes bilevel optimization problems challenging. Under appropriate hypotheses, the function $h$ is differentiable, and the chain rule and implicit function theorem give for any $\boldsymbol { x } \in \mathbb { R } ^ { d }$
30
+
31
+ $$
32
+ \nabla h ( x ) = \nabla _ { 2 } F ( z ^ { * } ( x ) , x ) + \nabla _ { 2 1 } ^ { 2 } G ( z ^ { * } ( x ) , x ) v ^ { * } ( x ) \ ,
33
+ $$
34
+
35
+ 36th Conference on Neural Information Processing Systems (NeurIPS 2022).
36
+
37
+ where $v ^ { \ast } ( x ) \in \mathbb { R } ^ { p }$ is the solution of a linear system
38
+
39
+ $$
40
+ \boldsymbol { v } ^ { * } ( \boldsymbol { x } ) = - \left[ \nabla _ { 1 1 } ^ { 2 } G ( \boldsymbol { z } ^ { * } ( \boldsymbol { x } ) , \boldsymbol { x } ) \right] ^ { - 1 } \nabla _ { 1 } F ( \boldsymbol { z } ^ { * } ( \boldsymbol { x } ) , \boldsymbol { x } ) \ .
41
+ $$
42
+
43
+ In the light of (2) and (3), it turns out that the derivation of the gradient of $h$ at each iteration is cumbersome because it involves two subproblems: the resolution of the inner problem to find an approximation of $z ^ { * } ( x )$ and the resolution of a linear system to find an approximation of $v ^ { * } ( x )$ . It makes the practical implementation of first order methods like gradient descent for (1) challenging.
44
+
45
+ As is the case in many machine learning problems, we suppose in this paper that $F$ and $G$ are empirical means:
46
+
47
+ $$
48
+ F ( z , x ) = \frac { 1 } { m } \sum _ { j = 1 } ^ { m } F _ { j } ( z , x ) , \quad G ( z , x ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } G _ { i } ( z , x )
49
+ $$
50
+
51
+ This structure suggests the use of stochastic methods to solve (1). For single-level problems (that is, classical optimization problems where one function should be minimized), using Stochastic Gradient Descent (SGD; [41, 7]) and variants is natural because individual gradients are straightforward unbiased estimators of the gradient. In the bilevel framework, we want to develop algorithms that make progress on problem (1) by using only a few functions $F _ { j }$ and $G _ { i }$ at a time. However, since $\nabla h$ involves the inverse of the Hessian of $G$ , building such stochastic algorithms is quite challenging, one of the difficulties being that there is no straightforward unbiased estimator of $\nabla h$ . Still, in settings where $m$ or $n$ are large, where computing even a single evaluation of $F$ or $G$ is extremely expensive, stochastic methods are the only scalable algorithms.
52
+
53
+ ![](images/5b8583b8f4e3127a6f57e87a8eec2bdb05bebdf958e042d951a51cd676a39614.jpg)
54
+ Figure 1: Convergence curves of the two proposed methods on a toy problem. SABA is a stochastic method that achieves fast convergence on the value function.
55
+
56
+ Variance reduction [27, 13, 43, 15, 12] is a popular technique to obtain fast stochastic algorithms. In a single-level setting, these methods build an approximation of the gradient of the objective function using only stochastic gradients. Contrary to SGD, the variance of the approximation goes to 0 as the algorithm progresses, allowing for faster convergence. For instance, the SAGA method [13] achieves linear convergence if the objective function satisfies a Polyak-Łojasciewicz inequality, and $O ( { \textstyle { \frac { 1 } { T } } } )$ convergence rate on smooth non-convex functions [40]. The extension of these methods to bilevel optimization is a natural idea to develop faster algorithms. However, this idea is hard to implement because it is hard to derive unbiased estimators of $\nabla h$ , let alone variance reduction ones.
57
+
58
+ Contributions. We introduce a novel framework for bilevel optimization in Section 2, where the inner variable, the solution of the linear system (3) and the outer variable evolve jointly. The evolution directions are written as sums of derivatives of $F _ { j }$ and $G _ { i }$ , which allows us to derive simple unbiased stochastic estimators. In this framework, we propose SOBA, an extension of SGD (Section 2.1), and SABA (Section 2.2), an extension of the variance reduction algorithm SAGA [13]. In Section 3 we analyse the convergence of our methods. SOBA is shown to achieve $\begin{array} { r } { \operatorname* { i n f } _ { t \leq T } \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ] = O ( \log ( T ) T ^ { - \frac { 1 } { 2 } } ) } \end{array}$ with decreasing step sizes. We prove that SABA with fixed step sizes achieves $\begin{array} { r } { \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ] = O ( \frac { 1 } { T } ) } \end{array}$ . SABA is therefore, to the best of our knowledge, the first stochastic bilevel algorithm that matches the convergence rate of gradient descent on $h$ . We also prove that SABA achieves linear convergence under the assumption that $h$ satisfies a Polyak-Łojasciewicz inequality. To the best of our knowledge, SABA is also the first stochastic bilevel algorithm to feature such a property. Importantly, these rates match the rates of the single level counterparts of each algorithm in non-convex setting (SGD for SOBA and SAGA for SABA). Finally, in Section 4, we provide an extensive benchmark of many stochastic bilevel methods on hyperparameters selection and data hyper-cleaning, and illustrate the usefulness of our approach.
59
+
60
+ Related work. The bilevel optimization problem has a strong history in the optimization community, taking root in game theory [45]. Gradient-based algorithms to solve (1) can be mainly classified in two different categories depending on how $\nabla h$ is computed, by automatic or implicit differentiation.
61
+
62
+ Since the solution of the inner problem $z ^ { * } ( x )$ is approximated by the output of an iterative algorithm, it is possible to use automatic differentiation [46, 31] to approximate $\nabla h ( x )$ . It consists in differentiating the different steps of the inner optimization algorithm – see [4] for a review – and has been applied successfully to several bilevel problems arising in machine learning [14, 16]. One of the main drawbacks of this approach is that it requires to store in memory each iterate of the inner optimization algorithm, although this problem can sometimes be overcome using invertible optimization algorithms [34] or truncated backpropagation [44].
63
+
64
+ The use of the implicit function theorem to obtain (2) and (3) is known as implicit differentiation [5]. While the cost of computing exactly (2) can be prohibitive for large scale problems, Pedregosa [38] showed that we can still converge to a stationary point of the problem by using approximate solutions of the inner problem and linear system (3), if the approximation error goes to 0 sufficiently quickly. The complexity of approximate implicit differentiation has been studied in [20]. Ramzi et al. [39] propose to reuse the computations done in the forward pass to approximate the solution of the linear system (3) when the inner problem is solved thanks to a quasi-Newton method.
65
+
66
+ In the last few years, several works have proposed different strategies to solve (1) in a stochastic fashion. A first set of methods relies on two nested loops: one inner loop to solve the inner problem with a stochastic method, and one outer loop to update the outer variable with an approximate gradient direction. In [19, 26, 9] the authors use several SGD iterations for the inner problem and then use stochastic Neumann approximations to get an estimate solution of the linear system, which provides them with an approximation of $\nabla h$ used to update $x$ . The analysis of this kind of method was refined by Chen et al. [9], allowing to achieve the same convergence rates as those of SGD. The convergence of the hypergradient when using stochastic solvers for the inner problem and the linear system has been studied in [21]. Arbel and Mairal [2] replace the Neumann approximation by SGD steps to estimate (3). Other authors have proposed single loop algorithms, alternating steps in the inner and the outer problem. Hong et al. [24] propose to perform Neumann approximations of the inverse Hessian and use a single SGD step for the inner problem. It was refined in [23] and [47] where the optimization procedure uses a momentum acceleration. Other variations around this idea include [25, 28, 10, 22, 30]. We refer to Table 1 in appendix for a detailed comparison of these methods.
67
+
68
+ Notation. The set of integers between 1 and $n$ (included) is denoted $[ n ]$ . For $f : \mathbb { R } ^ { p } \times \mathbb { R } ^ { d } \to \mathbb { R }$ we denote $\nabla _ { i } f ( z , x )$ its gradient w.r.t. the $i ^ { \mathrm { { t h } } }$ variable. The Hessian of $f$ with respect to the first variable is denoted $\nabla _ { 1 1 } ^ { 2 } f ( z , x ) \in \mathbb { R } ^ { p \times p }$ , and the cross-derivatives matrix is $\nabla _ { 2 1 } ^ { 2 } f ( z , x ) \in \mathbb { R } ^ { d \times p }$ . If $v$ is a vector, $\lVert v \rVert$ is its Euclidean norm. If $M$ is a matrix, $\lVert M \rVert$ is its spectral norm. A function is said to be $L$ -smooth, for $L > 0$ , if it is differentiable, and its gradient is $L$ -Lipschitz.
69
+
70
+ # 2 Proposed framework
71
+
72
+ In this section, we introduce our framework in which the solution of the inner problem, the solution of the linear system (3) and the outer variable all evolve at the same time, following directions that are written as a sum of derivatives of $F _ { j }$ and $G _ { i }$ . We define
73
+
74
+ # Algorithm 1 General framework
75
+
76
+ Input: initializations $z _ { 0 } \in \mathbb { R } ^ { p }$ , $\overline { { x _ { 0 } \in \mathbb { R } ^ { d } } }$ $v _ { 0 } \in \mathbb { R } ^ { p }$ , number of iterations $T$ , step size sequences $( \rho ^ { t } ) _ { t < T }$ and $( \gamma ^ { t } ) _ { t < T }$ .
77
+
78
+ $$
79
+ D _ { z } ( z , v , x ) = \nabla _ { 1 } G ( z , x ) ,
80
+ $$
81
+
82
+ $$
83
+ D _ { v } ( z , v , x ) = \nabla _ { 1 1 } ^ { 2 } G ( z , x ) v + \nabla _ { 1 } F ( z , x ) ,
84
+ $$
85
+
86
+ $$
87
+ D _ { x } ( z , v , x ) = \nabla _ { 2 1 } ^ { 2 } G ( z , x ) v + \nabla _ { 2 } F ( z , x ) .
88
+ $$
89
+
90
+ These directions are motivated by the fact that we have $\nabla h ( x ) ~ = ~ D _ { x } ( z ^ { * } ( x ) , v ^ { * } ( \bar { x } ) , x )$ , with $z ^ { * } ( x )$ the minimizer of $G ( \cdot , x )$ and $v ^ { * } ( x )$ the solution of $\nabla _ { 1 1 } ^ { 2 } G ( z ^ { * } ( x ) , x ) v \ : = \ : - \nabla _ { 1 } F ( z ^ { * } ( x ) , x )$ . When $x$ is
91
+
92
+ # end for
93
+
94
+ fixed, we approximate $z ^ { * }$ by doing a gradient descent on $G$ , following the direction $- D _ { z } ( z , v , x )$ . Finally, when $z$ and $x$ are fixed, we find $v ^ { * }$ by following the direction $- D _ { v } ( z , v , x )$ , which corresponds to a gradient descent on $\begin{array} { r } { v \mapsto \frac { 1 } { 2 } \langle \nabla _ { 1 1 } ^ { 2 } G ( z , x ) v , v \rangle + \langle \nabla _ { 1 } F ( z , x ) , v \rangle } \end{array}$ . The rest of the paper is devoted to the study of the global dynamics where the three variables $z , v$ and $x$ evolve at the same time, following stochastic approximations of $D _ { z } , D _ { v }$ and $D _ { x }$ . The next proposition motivates the choice of these directions.
95
+
96
+ Proposition 2.1. Assume that for all $x \in \mathbb { R } ^ { d } , G ( \cdot , x )$ is strongly convex. If $( z , v , x )$ is a zero of $( D _ { z } , D _ { v } , D _ { x } )$ , then $z = z ^ { * } ( x )$ , $v = v ^ { * } ( x )$ and $\nabla h ( x ) = ~ 0$ .
97
+
98
+ We also note that the computation of these directions does not require to compute the matrices $\nabla _ { 1 1 } ^ { 2 } G ( z , x )$ and $\nabla _ { 2 1 } ^ { 2 } G ( z , \bar { x } )$ : we only need to compute their product with a vector, which can be computed at a cost similar to that of computing a gradient.
99
+
100
+ The framework we propose is summarized in Algorithm 1. It consists in following a joint update rule in $( z , v , x )$ that follows directions $D _ { z } ^ { t } , D _ { v } ^ { t }$ and $D _ { x } ^ { t }$ that are unbiased estimators of $D _ { z } , D _ { v } , D _ { x }$ The first and most important remark is that whereas $\nabla h$ cannot be written as a sum over samples, the directions $D _ { z } , D _ { v }$ and $D _ { x }$ involve only simple sums, since their expressions are “linear” in $F$ and $G$ :
101
+
102
+ $$
103
+ \begin{array} { r l } & { D _ { z } ( z , v , x ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \nabla _ { 1 } G _ { i } ( z , x ) ~ , } \\ & { D _ { v } ( z , v , x ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \nabla _ { 1 1 } ^ { 2 } G _ { i } ( z , x ) v + \frac { 1 } { m } \sum _ { j = 1 } ^ { m } \nabla _ { 1 } F _ { j } ( z , x ) ~ , } \\ & { D _ { x } ( z , v , x ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) v + \frac { 1 } { m } \sum _ { j = 1 } ^ { m } \nabla _ { 2 } F _ { j } ( z , x ) ~ . } \end{array}
104
+ $$
105
+
106
+ It is therefore straightforward to derive unbiased estimators of these directions. In [30], the authors considered one particular case of our framework, where each direction is estimated by using the STORM variance reduction technique (see [12]). Taking a step back by proposing the framework summarized in Algorithm 1 opens the way to potential new algorithms that implement other techniques that exist in stochastic single level optimization. In what follows, we study two of them.
107
+
108
+ # 2.1 First example: the SOBA algorithm
109
+
110
+ The simplest unbiased estimator is obtained by replacing each mean by one of its terms chosen uniformly at random, akin to what is done in classical single-level SGD. We call the resulting algorithm SOBA (StOchastic Bilevel Algorithm). To do so, we choose two independent random indices $i \in [ n ]$ and $j \in [ m ]$ uniformly and estimate each term coming from $G$ using $G _ { i }$ and each term coming from $F$ using $F _ { j }$ . This gives the unbiased SOBA directions
111
+
112
+ $$
113
+ \boxed { \begin{array} { r l } & { D _ { z } ^ { t } = \nabla _ { 1 } G _ { i } ( z ^ { t } , x ^ { t } ) ~ , } \\ & { D _ { v } ^ { t } = \nabla _ { 1 1 } ^ { 2 } G _ { i } ( z ^ { t } , x ^ { t } ) v ^ { t } + \nabla _ { 1 } F _ { j } ( z ^ { t } , x ^ { t } ) ~ , } \\ & { D _ { x } ^ { t } = \nabla _ { 2 1 } ^ { 2 } G _ { i } ( z ^ { t } , x ^ { t } ) v ^ { t } + \nabla _ { 2 } F _ { j } ( z ^ { t } , x ^ { t } ) ~ . } \end{array} }
114
+ $$
115
+
116
+ This provides us with a first algorithm, SOBA, where we plug Equations (10a) to (10c) in Algorithm 1. We defer its analysis to the next section. Importantly, we use different step sizes for the update in $( z , v )$ and for the update in $x$ . We use the same step size in $z$ and in $v$ since the inner problem and the linear system have similar conditioning, which is that of $\nabla _ { 1 1 } ^ { 2 } G ( z ^ { t } , x ^ { t } )$ . The need for a different step size for the outer and inner problem is clear: both problems can have a different conditioning.
117
+
118
+ An important remark for SOBA is that all the stochastic directions used are computed at the same point $\bar { z } ^ { t } , v ^ { t }$ and $x ^ { t }$ with the same indices $( i , j )$ . The update of $z$ , $v$ and $x$ can thus be performed in parallel instead of sequentially, benefiting from hardware parallelism. Moreover, this enables to share the computations between the different directions. This is the case in hyperparameters selection where $\begin{array} { r } { \bar { G } _ { i } ( z , x ) = \ell _ { i } ( \langle z , d _ { i } \rangle ) + \frac { x } { 2 } \| z \| ^ { 2 } } \end{array}$ , with $d _ { i }$ a training sample, and $\ell _ { i }$ that measures how good is the prediction $\langle z , d _ { i } \rangle$ . In this setting, we have $\nabla _ { 1 } G _ { i } ( z , x ) = \ell _ { i } ^ { \prime } ( \langle z , d _ { i } \rangle ) d _ { i } + x z$ and $\nabla _ { 1 1 } ^ { 2 } \bar { G } _ { i } ( z , x ) v \stackrel { - } { = } \ell _ { i } ^ { \prime \prime } ( \langle z , d _ { i } \rangle ) \langle v , d _ { i } \rangle d _ { i }$ . The prediction $\langle z , d _ { i } \rangle$ can thus be computed only once to obtain both quantities. For more complicated models, where automatic differentiation is used to compute the different derivatives and Jacobian-vector products, we can store the computational graph only once to compute at the same time $\nabla _ { 1 } G _ { i } ( z , x ) , \dot { \nabla _ { 1 1 } ^ { 2 } } G _ { i } ( z , x ) v$ and $\nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) \dot { v }$ , requiring only one backward pass, thanks to the $\mathcal { R }$ technique [37].
119
+
120
+ Finally, like all single loop bilevel algorithms, our method updates at the same time the inner and outer variable, avoiding unnecessary optimization of the inner problem when $x$ is far from the optimum.
121
+
122
+ # 2.2 Global variance reduction with the SABA algorithm
123
+
124
+ In classical optimization, SGD fails to reach optimal rates because of the variance of the gradient estimator. Variance reduction algorithms aim at reducing this variance, in order to follow directions that are closer to the true gradient, and to achieve superior practical and theoretical convergence.
125
+
126
+ In our framework, since the directions $D _ { z } , D _ { v }$ and $D _ { x }$ are all written as sums of derivatives of $F _ { j }$ and $G _ { i }$ , it is easy to adapt most classical variance reduction algorithms. We focus on the celebrated SAGA algorithm [13]. The extension we propose is called SABA (Stochastic Average Bilevel Algorithm). The general idea is to replace each sum in the directions $D$ by a sum over a memory, updating only one term at each iteration. To help the exposition, we denote $y = ( z , x , v )$ the vector of joint variables. Since we have sums over $i$ and over $j$ , we have two memories for each variable: $\boldsymbol { w } _ { i } ^ { t }$ for $i \in [ n ]$ and $\tilde { w } _ { j } ^ { t }$ for $j \in [ m ]$ , which keep track of the previous values of the variable $y$ .
127
+
128
+ At each iteration $t$ , we draw two random independent indices $i \in [ n ]$ and $j \in [ m ]$ uniformly and update the memories. To do so, we put $w _ { i } ^ { t + 1 } = y ^ { t }$ and $w _ { i ^ { \prime } } ^ { t + 1 } = w _ { i ^ { \prime } } ^ { t }$ for $i ^ { \prime } \neq i$ , and $\tilde { w } _ { j } ^ { t + 1 } = y ^ { t }$ and $\tilde { w } _ { j ^ { \prime } } ^ { t + 1 } = \tilde { w } _ { j ^ { \prime } } ^ { t }$ for $\boldsymbol { j ^ { \prime } } \neq \boldsymbol { j }$ . Each sum in the directions $D$ is then approximated using SAGA-like rules: given $n$ functions $\phi _ { i ^ { \prime } }$ for $i ^ { \prime } \in [ n ]$ , we define $\begin{array} { r } { S [ \phi , w ] _ { i } ^ { t } = \phi _ { i } ( w _ { i } ^ { t + 1 } ) - \phi _ { i } ( w _ { i } ^ { t } ) + \frac { 1 } { n } \sum _ { i ^ { \prime } = 1 } ^ { n } \phi _ { i ^ { \prime } } ( w _ { i ^ { \prime } } ^ { t } ) . } \end{array}$ This is an unbiased estimators of the average of the $\phi$ ’s since $\begin{array} { r } { \mathbb E _ { i } \Big [ S [ \phi , w ] _ { i } ^ { t } \Big ] = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \phi _ { i } ( y ^ { t } ) } \end{array}$ .
129
+
130
+ With a slight abuse of notation, we call $\nabla _ { 1 1 } ^ { 2 } G v$ the sequence of functions $( y \mapsto \nabla _ { 1 1 } ^ { 2 } G _ { i } ( z , x ) v ) _ { i \in [ n ] }$ and $\nabla _ { 2 1 } ^ { 2 } G v$ the sequence of functions $( y \mapsto \nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) v ) _ { i \in [ n ] }$ . We define the SABA directions as
131
+
132
+ $$
133
+ \begin{array} { r c l } { { } } & { { } } & { { D _ { z } ^ { t } = S [ \nabla _ { 1 } G , w ] _ { i } ^ { t } ~ , } } \\ { { } } & { { } } & { { D _ { v } ^ { t } = S [ \nabla _ { 1 1 } ^ { 2 } G v , w ] _ { i } ^ { t } + S [ \nabla _ { 1 } F , \tilde { w } ] _ { j } ^ { t } ~ , } } \\ { { } } & { { } } & { { D _ { x } ^ { t } = S [ \nabla _ { 2 1 } ^ { 2 } G v , w ] _ { i } ^ { t } + S [ \nabla _ { 2 } F , \tilde { w } ] _ { j } ^ { t } ~ . } } \end{array}
134
+ $$
135
+
136
+ These estimators are unbiased estimators of the directions $D _ { z } , D _ { v }$ and $D _ { x }$ . The SABA algorithm corresponds to Algorithm 1 where we use Equations (11a) to (11c) as update directions. When taking a step size $\gamma ^ { t } = \bar { 0 }$ in the outer problem, hereby stopping progress in $x$ , we recover the iterations of the SAGA algorithm on the inner problem. In practice, the sum in $S$ is computed by doing a rolling average (see Appendix B for precision), and the quantities $\phi _ { i } ( w _ { i } ^ { t } )$ are stored rather than recomputed: the cost of computing the SABA directions is the same as that of SGD. It requires an additional memory for the five quantities, of total size $n \times p + ( n + m ) \times ( p + d )$ floats that can be reduced by using larger batch sizes. Indeed, if $b _ { \mathrm { i n } }$ and $b _ { \mathrm { o u t } }$ are respectively the inner and the outer batch sizes, the memory load is reduced to nb × p + (nb + mb) × (p × d) with nb = ⌈ nbinn ⌉ and $\begin{array} { r } { m _ { b } = \left\lceil \frac { m } { b _ { \mathrm { o u t } } } \right\rceil } \end{array}$ which are smaller than the number of samples. This memory load can also be reduced in specific cases, for instance when $G$ and $F$ correspond to linear models, where the individual gradients and Hessian-vector products are proportional to the samples. In this case, we only store the proportionality ratio, reducing the memory load to $3 n + 2 m$ floats. Like for SOBA, the computations of the new quantities $\phi _ { i } ( w _ { i } ^ { t + 1 } )$ are done in parallel, thus benefiting from hardware acceleration and shared computations. Despite this memory load, using SAGA-like variance reduction instead of STORM as done in [30, 47, 28] has the advantage to bring the variance of the estimate directions to zero, enabling faster $O ( { \textstyle { \frac { 1 } { T } } } )$ convergence.
137
+
138
+ In the next section, we show that SABA is fast. It essentially has the same properties as SAGA: despite being stochastic, it converges with fixed step sizes, and reaches the same rate of convergence as gradient descent on $h$ .
139
+
140
+ # 3 Theoretical analysis
141
+
142
+ In this section, we provide convergence rates of SOBA and SABA under some classical assumptions. Note that, unlike most of the stochastic bilevel optimization papers, we work in finite sample setting rather than the more general expectation setting. Actually, SABA does not make any sense for functions that don’t have a finite sum structure. However, we stress that SOBA could be studied in a more general setting to obtain the same bounds as here. Also, the finite sum setting is still interesting since doing empirical risk minimization is very common in practice in machine learning. The proofs and the constants in big- $O$ are deferred in Appendix C.
143
+
144
+ # 3.1 Background and assumptions
145
+
146
+ We start by stating some regularity assumptions on the functions $F$ and $G$ .
147
+
148
+ Assumption 3.1. The function $F$ is twice differentiable. The derivatives $\nabla F$ and $\nabla ^ { 2 } F$ are Lipschitz continuous in $( z , x )$ with respective Lipschitz constants $L _ { 1 } ^ { F }$ and $L _ { 2 } ^ { F }$ .
149
+
150
+ Note that the above assumption is typically verified in the machine learning context, e.g., when $F$ is the ordinary least squares (OLS) loss or the logistic loss.
151
+
152
+ Assumption 3.2. The function $G$ is three times continuously differentiable on $\mathbb { R } ^ { p } \times \mathbb { R } ^ { d }$ . For any $x \in \mathbb { R } ^ { d } , G ( \cdot , x )$ is $\mu _ { G }$ -strongly convex. The derivatives $\overrightarrow { \nabla G }$ , $\nabla ^ { 2 } G$ and $\nabla ^ { 3 } G$ are Lipschitz continuous in $( z , x )$ with respective Lipschitz constants $L _ { 1 } ^ { G }$ , $L _ { 2 } ^ { G }$ and $L _ { 3 } ^ { G }$ .
153
+
154
+ Strong convexity and smoothness with respect to $z$ of $G$ are verified when $G$ is a regularized leastsquares/logistic regression with a full rank design matrix, when the data is not separable for the logistic regression. Moreover, the strong convexity ensures the existence and uniqueness of the inner optimization problem for any $x \in \mathbb { R } ^ { d }$ .
155
+
156
+ Assumption 3.3. There exists $C _ { F } ~ > ~ 0$ such that for any $x$ we have $\| \nabla _ { 1 } F ( z ^ { * } ( x ) , x ) \| \leq C _ { F } .$
157
+
158
+ This assumption, combined with the strong convexity of $G ( \cdot , x )$ , shows boundedness of $v ^ { * }$ . This assumption holds, for instance, in the case of hyperparameters selection for a Ridge regression problem. Note that in Assumptions 3.1 and 3.2, we assume more regularity of $F$ and $G$ than in stochastic bilevel optimization literature (see for instance [19, 24, 26, 2]). It is necessary to get the smoothness of $v ^ { * }$ which will allow to adapt the proof of Chen et al. [9] and get tight convergence rates. The following lemma gives us some smoothness properties of the considered directions that will be useful to derive convergence rates of our methods.
159
+
160
+ Lemma 3.4. Under the Assumptions 3.1 to 3.3, there exist constants $L _ { z }$ , $L _ { v }$ and $L _ { x }$ such that $\begin{array} { r } { \| D _ { z } ( z , v , x ) \| ^ { 2 } \leq L _ { z } ^ { 2 } \| z - z ^ { * } ( \hat { x } ) \| ^ { 2 } , \ \| D _ { v } ( z , v , x ) \| ^ { 2 } \leq L _ { v } ^ { 2 } ( \| z - z ^ { * } ( x ) \| ^ { 2 } + \| v - v ^ { * } ( x ) \| ^ { 2 } ) } \end{array}$ and $\| D _ { x } ( z , v , x ) - \nabla h ( x ) \| ^ { 2 } \leq L _ { x } ^ { 2 } ( \| z - z ^ { * } ( x ) \| ^ { 2 } + \| v - v ^ { * } ( x ) \| ^ { 2 } )$ .
161
+
162
+ In first order optimization, a fundamental assumption on the objective function is the smoothness assumption. In the case of vanilla gradient descent applied to a function $f$ , it allows to get a convergence rate of $\| \nabla f ( x ^ { t } ) \| ^ { 2 }$ in $O ( \bar { 1 } / T )$ , i.e. convergence to a stationary point [36]. The following lemma proved by Ghadimi and Wang [19, Lemma 2.2] ensures the smoothness of $h$ .
163
+
164
+ Lemma 3.5. Under the Assumptions 3.1 to 3.3, the function $h$ is $L ^ { h }$ -smooth for some $L ^ { h } > 0$ .
165
+
166
+ The constant $L ^ { h }$ is specified in Appendix C.3. As usual with the analysis of stochastic methods, we define the expected norms of the directions $V _ { z } ^ { t } = \mathbb { E } [ \| D _ { z } ^ { t } \| ^ { 2 } ]$ , $V _ { v } ^ { t } = \dot { \mathbb { E } } [ \| D _ { v } ^ { t } \| ^ { 2 } ]$ and $V _ { x } ^ { t } = \mathbb { E } [ \| D _ { x } ^ { t } \| ^ { 2 } ]$ , where the expectation is taken over the past. Thanks to variance-bias decomposition, they are the sum of the variance of the stochastic direction and the squared-norm of the unbiased direction. For SOBA, we use classical bounds on variances like those found for instance in [24]:
167
+
168
+ Assumption 3.6. There exists $B _ { z }$ , $B _ { v }$ and $B _ { x }$ such that for all $t$ , $\begin{array} { r l r } { \mathbb { E } _ { t } [ \| D _ { z } ^ { t } \| ^ { 2 } ] } & { { } \le } & { B _ { z } ^ { 2 } ( 1 + \| D _ { z } ( z ^ { t } , v ^ { t } , x ^ { t } ) \| ^ { 2 } ) } \end{array}$ and $\begin{array} { r } { \mathbb { E } _ { t } [ \| D _ { v } ^ { t } \| ^ { 2 } ] \ \leq \ B _ { v } ^ { 2 } ( 1 + \| D _ { v } ( z ^ { t } , v ^ { t } , x ^ { t } ) \| ^ { 2 } ) } \end{array}$ where $\mathbb { E } _ { t }$ denotes the expectation conditionally to $( z ^ { t } , v ^ { t } , \ddot { x } ^ { t } )$ .
169
+
170
+ For SOBA and SABA, we need to bound the expected norm of $D _ { x } ^ { t }$ . For SABA, this assumption allows to get a the same sample complexity as SAGA for single level problems.
171
+
172
+ Assumption 3.7. There exists $B _ { x }$ such that for all $t$ , $\mathbb { E } _ { t } [ \| D _ { x } ^ { t } \| ^ { 2 } ] \leq B _ { x } ^ { 2 }$ .
173
+
174
+ Assumptions 3.6 and 3.7 are verified for instance, if all the $G _ { i }$ and $\nabla _ { 1 } G _ { i }$ have at most quadratic growth, and if $F$ has bounded gradients. They are also verified if the iterates remain in a compact set. Note that we do not assume that $G$ has bounded gradients, as this would contradict its strong-convexity. Finally, for the analysis of SABA, we need regularity on each $G _ { i }$ and $F _ { j }$ :
175
+
176
+ Assumption 3.8. For all $i \in [ n ]$ and $j \in [ m ]$ , the functions $\nabla G _ { i }$ , $\nabla F _ { j }$ , $\nabla _ { 1 1 } ^ { 2 } G _ { i }$ and $\nabla _ { 2 1 } ^ { 2 } G _ { i }$ are Lipschitz continuous in $( z , x )$ .
177
+
178
+ # 3.2 Fundamental descent lemmas
179
+
180
+ Our analysis for SOBA and SABA is based on the control of both $\delta _ { z } ^ { t } = \mathbb { E } [ \| z ^ { t } - z ^ { * } ( x ^ { t } ) \| ^ { 2 } ]$ and $\delta _ { v } ^ { t } = \mathbb E [ | | \bar { v } ^ { t } - v ^ { * } ( x ^ { t } ) | | ^ { 2 } ]$ , Strong convexity of $G$ and smoothness of $z ^ { * } ( x )$ and $v ^ { * } ( x )$ allow to obtain the following lemma by adapting the proof of Chen et al. [9]. In what follows, we drop the dependency of the step sizes $\rho$ and $\gamma$ in $t$ for clarity.
181
+
182
+ Lemma 3.9. Assume that $\begin{array} { r } { \gamma ^ { 2 } \leq \operatorname* { m i n } \left( \frac { \mu _ { G } L _ { * } ^ { 2 } } { 4 B _ { x } ^ { 2 } L _ { z x } ^ { 2 } } , \frac { \mu _ { G } L _ { * } ^ { 2 } } { 8 B _ { x } ^ { 2 } L _ { v x } ^ { 2 } } \right) \rho } \end{array}$ . We have:
183
+
184
+ $$
185
+ \begin{array} { r l } & { \delta _ { z } ^ { t + 1 } \leq \left( 1 - \frac { \rho \mu _ { G } } { 4 } \right) \delta _ { z } ^ { t } + 2 \rho ^ { 2 } V _ { z } ^ { t } + \beta _ { z x } \gamma ^ { 2 } V _ { x } ^ { t } + \overline { { \beta } } _ { z x } \frac { \gamma ^ { 2 } } { \rho } \mathbb { E } [ \| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \| ^ { 2 } ] } \\ & { \delta _ { v } ^ { t + 1 } \leq \left( 1 - \frac { \rho \mu _ { G } } { 8 } \right) \delta _ { v } ^ { t } + \beta _ { v z } \rho \delta _ { z } ^ { t } + 2 \rho ^ { 2 } V _ { v } ^ { t } + \beta _ { v x } \gamma ^ { 2 } V _ { x } ^ { t } + \overline { { \beta } } _ { z x } \frac { \gamma ^ { 2 } } { \rho } \mathbb { E } [ \| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \| ^ { 2 } ] } \end{array}
186
+ $$
187
+
188
+ where $\beta _ { z x } = \beta _ { v x } = 3 L _ { * } ^ { 2 }$ , $\begin{array} { r } { \overline { { \beta } } _ { z x } \ : = \ : \frac { 8 L _ { * } ^ { 2 } } { \mu _ { G } } } \end{array}$ , $\begin{array} { r } { \overline { { \beta } } _ { v x } = { \frac { 1 6 L _ { * } ^ { 2 } } { \mu _ { G } } } } \end{array}$ , $L _ { * }$ is the maximum between the Lipschitz constants of and ∗ zx (see Lemma ), , , and are respectively $z ^ { * }$ $v ^ { * }$ $C . I$ $\begin{array} { r } { \beta _ { v z } = \frac { \mathrm { ~ i ~ } } { \mu _ { G } ^ { 3 } } ( L _ { 1 } ^ { F } \mu _ { G } + L _ { 2 } ^ { G } ) ^ { 2 } } \end{array}$ $L _ { z x }$ $L _ { v x }$ the smoothness constants of $z ^ { * }$ and $v ^ { * }$ .
189
+
190
+ We insist that this result is obtained in general for Algorithm 1 with arbitrary unbiased directions. We can therefore invoke this lemma for the analysis of both SOBA and SABA. We use the smoothness of $h$ to get the following lemma, which is similar to [9, Lemma 1].
191
+
192
+ Lemma 3.10. Let $h ^ { t } = \mathbb { E } [ h ( x ^ { t } ) ]$ and $g ^ { t } = \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ]$ . We have
193
+
194
+ $$
195
+ h ^ { t + 1 } \leq h ^ { t } - \frac { \gamma } { 2 } g ^ { t } - \frac { \gamma } { 2 } \mathbb { E } [ \| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \| ^ { 2 } ] + \frac { \gamma } { 2 } L _ { x } ^ { 2 } ( \delta _ { z } ^ { t } + \delta _ { v } ^ { t } ) + \frac { L ^ { h } } { 2 } \gamma ^ { 2 } V _ { x } ^ { t } ~ .
196
+ $$
197
+
198
+ If $z ^ { t } = z ^ { * } ( x ^ { t } )$ , $v ^ { t } = v ^ { * } ( x ^ { t } )$ , that is $\delta _ { z } , \delta _ { v }$ both cancel and $D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) = \nabla h ( x ^ { t } )$ , we get an inequality reminiscent of the smoothness inequality for SGD on $h$ .
199
+
200
+ # 3.3 Analysis of SOBA
201
+
202
+ The analysis of SOBA is based on Lemmas 3.5 and 3.9. We have the following theorem, with fixed step sizes depending on the number of iterations:
203
+
204
+ Theorem 1 (Convergence of SOBA, fixed step size). Fix an iteration $T > 1$ and assume that Assumptions 3.1 to 3.7 hold. We consider fixed steps $\begin{array} { r } { \rho ^ { t } = \frac { \overline { { \rho } } } { \sqrt { T } } } \end{array}$ and $\gamma ^ { t } = \xi \rho ^ { t }$ with $\overline { \rho }$ and $\xi$ precised in the appendix. Let $( x ^ { t } ) _ { t \geq 1 }$ the sequence of outer iterates for SOBA. Then,
205
+
206
+ $$
207
+ \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ] = O ( T ^ { - \frac { 1 } { 2 } } ) \mathrm { ~ . ~ }
208
+ $$
209
+
210
+ As opposed to [24], we do not need that the ratio $\frac { \gamma } { \rho }$ goes to 0, which allows to get a complexity (that is, the number of call to oracles to have an $\epsilon$ -stationary solution) in $O ( \epsilon ^ { - 2 } )$ better than the $\tilde { O } ( \epsilon ^ { - \frac { 5 } { 2 } } )$ they have. Also, note that this rate is the same as the one of SGD for non-convex and smooth objective [18, 8]. We obtain a similar rate using decreasing step sizes:
211
+
212
+ Theorem 2 (Convergence of SOBA, decreasing step size). Assume that Assumptions 3.1 to 3.7 hold. We consider steps $\rho ^ { t } = \overline { { \rho } } t ^ { - \frac { 1 } { 2 } }$ and $\gamma ^ { t } = \xi \rho$ . Let $x ^ { t }$ the sequence of outer iterates for SOBA. Then,
213
+
214
+ $$
215
+ \operatorname* { i n f } _ { t \leq T } \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ] = O ( \log ( T ) T ^ { - { \frac { 1 } { 2 } } } ) \enspace .
216
+ $$
217
+
218
+ As for SGD, SOBA suffers from the need of decreasing step sizes to get actual convergence because of the variance of the estimation on each directions. On the other hand, the analysis of SABA leverages the dynamic of all three variables, resulting in fast convergence with fixed step sizes.
219
+
220
+ # 3.4 SABA: a stochastic method with optimal rates
221
+
222
+ In what follows, we denote $N = n + m$ the total number of samples. The following theorem shows $O ( N ^ { \frac { 2 } { 3 } } T ^ { - 1 } )$ convergence for the SABA algorithm in the general case where we only assume smoothness of $h$ . Our analysis of SABA is inspired by the analysis of single-level SAGA by Reddi et al. [40].
223
+
224
+ Theorem 3 (Convergence of SABA, smooth case). Assume that Assumptions 3.1 to 3.3 and 3.7 to 3.8 hold. We suppose $\rho = \rho ^ { \prime } N ^ { - \frac { 2 } { 3 } }$ and $\gamma = \xi \rho$ , where $\rho ^ { \prime }$ and $\xi$ depend only on $F$ and $G$ and are specified in appendix. Let $x ^ { t }$ the iterates of SABA. Then,
225
+
226
+ $$
227
+ \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } [ \| \nabla h ( x ^ { t } ) \| ^ { 2 } ] = O \left( N ^ { \frac { 2 } { 3 } } T ^ { - 1 } \right) \ .
228
+ $$
229
+
230
+ To prodefine $\begin{array} { r } { { S } ^ { t } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \| y ^ { t } - w _ { i } ^ { t } \| ^ { 2 } + \frac { 1 } { m } \sum _ { j = 1 } ^ { m } \| y ^ { t } - \tilde { w } _ { j } ^ { t } \| ^ { 2 } } \end{array}$ m the memory to the current variables. We. In appendix, we show that we can find $\phi _ { s } , \phi _ { z } , \phi _ { v } > 0$ such that the quantity $\mathcal { L } ^ { t } = h ^ { t } + \phi _ { s } S ^ { t } + \phi _ { z } \delta _ { z } ^ { t } + \phi _ { v } \delta _ { v } ^ { t }$
231
+ Summing these inequalities for $t = 1 \dots T$ and using the fact that $\textstyle { \mathcal { L } } ^ { t }$ is lower bounded demonstrates
232
+ the theorem.
233
+
234
+ Note that the step sizes are constant with respect to the time, but they scale with $N ^ { - \frac { 2 } { 3 } }$ . As a consequence, the sample complexity is $O ( N ^ { \frac { 2 } { 3 } } \epsilon ^ { - 1 } )$ which is analogous of the one of SAGA for non-convex single level problems [40]. This is better than the sample complexity of Algorithm 1 with full batch directions, which is $O ( N \epsilon ^ { - 1 } )$ . Hence, with SABA, we get the best of both worlds: the stochasticity makes the scaling in $N$ of the sample complexity goes from $N$ in full batch mode to $N ^ { \frac { 2 } { 3 } }$ for SABA, and the variance reduction makes the scaling in $\epsilon$ goes from $\epsilon ^ { - 2 }$ for SOBA to $\epsilon ^ { - 1 }$ for SABA. Our experiments in Section 4 confirm this gain.
235
+
236
+ Furthermore, if we assume that $h$ satisfies a Polyak-Łojasiewicz (PL) inequality, we recover linear convergence. Recall that $h$ has the PL property if there exists $\mu _ { h } > 0$ such that for all $x \in \mathbb { R } ^ { d }$ $\begin{array} { r } { \frac { 1 } { 2 } \| \nabla h ( \bar { \boldsymbol { x } } ) \| ^ { 2 } \geq \mu _ { h } ( h ( \boldsymbol { x } ) - h ^ { * } ) } \end{array}$ with $h ^ { * }$ the minimum of $h$ .
237
+
238
+ Theorem 4 (Convergence of SABA, PL case). Assume that $h$ satisfies the PL inequality and that Assumptions 3.1 to 3.3 and 3.7 to 3.8 hold. We suppose $\rho = \rho ^ { \prime } N ^ { - \frac { 2 } { 3 } }$ and $\gamma = \xi \rho ^ { \prime } N ^ { - 1 }$ , where $\rho ^ { \prime }$ and $\xi$ depend only on $F$ and $G$ and are specified in appendix. Let $x ^ { t }$ the iterates of SABA and $\begin{array} { r } { c ^ { \prime } \triangleq \operatorname* { m i n } \left( \mu _ { h } , \frac { 1 } { 1 6 P ^ { \prime } } \right) } \end{array}$ with $P ^ { \prime }$ specified in the appendix. Then,
239
+
240
+ $$
241
+ \mathbb { E } [ h ^ { T } ] - h ^ { * } = ( 1 - c ^ { \prime } \gamma ) ^ { T } ( h ^ { 0 } - h ^ { * } + C ^ { 0 } )
242
+ $$
243
+
244
+ where $C ^ { 0 }$ is a constant specified in appendix that depends on the initialization of $z , v , x$ and memory.
245
+
246
+ The proof is similar to that of the previous theorem: we find coefficients $\phi _ { s } , \phi _ { z } , \phi _ { v }$ such that $\mathcal { L } ^ { t } \stackrel { } { = } h ^ { t } + \phi _ { s } S ^ { t } + \phi _ { z } \delta _ { z } ^ { t } + \phi _ { v } \delta _ { v } ^ { t }$ satisfies the inequality $\mathcal { L } ^ { t + 1 } \leq ( 1 - c ^ { \prime } \gamma ) \mathcal { L } ^ { t }$ , which is then unrolled. Note that in the case where we initialize $z$ and $v$ with $z ^ { 0 } = z ^ { * } ( x ^ { 0 } )$ , $v ^ { 0 } = v ^ { * } ( x ^ { 0 } )$ , and the memories $w _ { i } ^ { 0 } = w ^ { 0 }$ , $\tilde { w } _ { j } ^ { 0 } = w ^ { 0 }$ for all $i , j$ , the constant $C ^ { 0 }$ cancels and the bound simplifies to $\mathbb { E } [ h ( x ^ { T } ) ] - h ^ { * } \leq ( 1 - c ^ { \prime } \gamma ) ^ { T } ( h ( x ^ { 0 } ) - h ^ { * } )$ .
247
+
248
+ Just like classical variance reduction methods in single-level optimization, this theorem shows that our method achieves linear convergence under PL assumption on the value function. To the best of our knowledge, our method is the first stochastic bilevel optimization method that enjoys such property. We note that the PL hypothesis is more general than $\mu _ { h }$ -strong convexity of $h - \mathrm { i t }$ is a necessary condition for strong convexity.
249
+
250
+ We see here the importance of global variance reduction. Indeed, using variance reduction only on $z$ and SGD on $x$ would lead to sub-linear convergence in $x$ . This would be the case even with a perfect estimation of $z ^ { * } ( x )$ . Similarly, using variance reduction only on $x$ and SGD on $z$ would lead to sub-linear convergence in $z$ , and hence in $x$ . Using global variance reduction with respect to each variable as we propose here is the only way to achieve linear convergence. We now turn to experiments, where we find that our method is also promising from a practical point of view.
251
+
252
+ # 4 Experiments
253
+
254
+ Here we compare the performances of SOBA and SABA with competitor methods on different tasks. The different methods being compared are stocBiO [26], AmiGO [2], FSLA [30], MRBO [47], TTSA [24], BSA [19] and SUSTAIN [28]. A detailed account of the experiments is provided in Appendix B. 1
255
+
256
+ # 4.1 Hyperparameters selection
257
+
258
+ The first task we perform is hyperparameters selection to choose regularization parameters on $\ell ^ { 2 }$ logistic regression. Let us denote $( ( d _ { i } ^ { \mathrm { t r a i n } } , y _ { i } ^ { \mathrm { t r a i n } } ) ) _ { 1 \leq i \leq n }$ and $( ( d _ { i } ^ { \mathrm { v a l } } , y _ { i } ^ { \mathrm { v a l } } ) ) _ { 1 \leq i \leq m }$ the training and the validation sets. In this case, the inner variable $\bar { \theta }$ corresponds to the parameters of the model, and the outer variable $\lambda$ to the regularization. The functions $F$ and $G$ of the problem (1) are the logistic loss, with $\ell ^ { 2 }$ penalty for $G$ , that is to say $\begin{array} { r } { F ( \theta , \lambda ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \varphi ( y _ { i } ^ { \mathrm { v a l } } \langle \bar { d } _ { i } ^ { \mathrm { v a l } } , \theta \rangle ) } \end{array}$ and $\begin{array} { r } { G ( \theta , \lambda ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \varphi ( y _ { i } ^ { \mathrm { t r a i n } } \langle d _ { i } ^ { \mathrm { t r a i n } } , \theta \rangle ) + \frac { 1 } { 2 } \sum _ { k = 1 } ^ { p } e ^ { \lambda _ { k } } \theta _ { k } ^ { 2 } } \end{array}$ where $\varphi ( u ) = \log ( 1 + e ^ { - u } )$ . We fit a binary classification model on the IJCNN $1 ^ { 2 }$ dataset. Here, $n = 4 9 9 9 0$ , $m = 9 1 7 0 1$ and $p = 2 2$ .
259
+
260
+ The suboptimality gap is plotted in Figure $2 \mathrm { a }$ for each method. The lowest values are reached by SABA. Moreover, SABA is the only single-loop method that reaches a suboptimality below $1 0 ^ { - 5 }$ SOBA reaches a quite high final value but slightly better than TTSA and FSLA. The gap between
261
+
262
+ ![](images/2688ecd25ca7cb86a395fda5ce9b688673c5e37d3422795d1fc2b1b4c85e6aab.jpg)
263
+ Figure 2: Comparison of SOBA and SABA with other stochastic bilevel optimization methods. For each algorithm, we plot the median performance over 10 runs. In both experiments, SABA achieves the best performance. The dashed lines are for one loop competitor methods, the dotted lines are for two loops methods and the solid lines are the proposed methods. Left: hyperparameter selection for $\ell ^ { 2 }$ penalized logistic regression on IJCNN1 dataset , Right: data hyper-cleaning on MNIST with $p = 0 . 5$ corruption rate.
264
+
265
+ SOBA and SABA highlights the benefits of variance reduction: it gives us a lower plateau and the fixed step sizes enable faster convergence.
266
+
267
+ # 4.2 Data hyper-cleaning
268
+
269
+ The second task we perform is data hyper-cleaning introduced in [16] on the $\mathsf { M N I S T } ^ { 3 }$ dataset. The data is patitioned into a training set $( d _ { i } ^ { \mathrm { t r a i \bar { n } } } , y _ { i } ^ { \mathrm { t r a i n } } )$ , a validation set $( d _ { i } ^ { \mathrm { v a l } } , y _ { i } ^ { \mathrm { v a l } } )$ , and a test set. The training set contains 20000 samples, the validation set 5000 samples and the test set 10000 samples. The targets $y$ take values in $\{ 0 , \ldots , 9 \}$ and the samples $x$ are in dimension 784. Each sample in the training set is corrupted with probability $p$ : a sample is corrupted when we replace its label $y _ { i }$ by a random label in $\{ 0 , \ldots , 9 \}$ . Samples in the validation and test sets are not corrupted. The goal of datacleaning is to train a multinomial logistic regression on the train set and learn a weight per training sample, that should go to 0 for corrupted samples. This is formalized by the bilevel optimization problem (1) with $\begin{array} { r } { F ( \mathbf { \Sigma } \breve { \theta , \lambda } ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \dot { \ell } ( \theta d _ { i } ^ { \mathrm { v a l } } , \dot { y _ { i } ^ { \mathrm { v a l } } } ) } \end{array}$ and $\begin{array} { r } { G ( \theta , \lambda ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n ^ { - } } \sigma ( \lambda _ { i } ) \ell ( \theta d _ { i } ^ { \mathrm { t r a i n } } , y _ { i } ^ { \mathrm { t r a i n } } ) \dot { + } C _ { r } \| \theta \| ^ { 2 } } \end{array}$ where $\ell$ is the cross entropy loss and $\sigma$ is the sigmoid function. The inner variable $\theta$ is a matrix of size $1 0 \times 7 8 4$ , and the outer variable $\lambda$ is a vector in dimension $n _ { \mathrm { t r a i n } } = 2 0 0 0 0$ .
270
+
271
+ For the estimated parameters $\theta$ during optimization, we report in Figure 2b the test error, i.e., the percent of wrong predictions on the testing data. We use for this experiment a corruption probability $p = 0 . 5$ . In general, the error decreases quickly until it reaches a final value. We observe that our method SABA outperforms all the other methods by reaching faster its smallest error, which is smaller than the ones of the other methods. For SOBA, it reaches a lower final error than stocBiO and BSA. In appendix, we provide other convergence curves, and find that for higher values of $p$ , SABA is still the fastest algorithm to reach its final accuracy. Overall, we find that among all methods, even those that implement variance reduction (that is FSLA, MRBO, SUSTAIN, SABA), SABA is the one that demonstrates the best empirical performance.
272
+
273
+ # 5 Conclusion
274
+
275
+ In this paper, we have presented a framework for bilevel optimization that enables the straightforward development of stochastic algorithms. The gist of our framework is that the directions in Equations (4) to (6) are all written as simple sums of samples derivatives. We leveraged this fact to propose SOBA, an extension of SGD to our framework, and SABA, an extension of SAGA to our framework, which both achieve similar convergence rates as their single level counterparts. Finally, we think that our framework opens a large panel of potential methods for stochastic bilevel optimization involving techniques of extrapolation, variance reduction, momentum and so on.
276
+
277
+ # Acknowledgments and Disclosure of Funding
278
+
279
+ We thank Othmane Sebbouh, Zaccharie Ramzi and Benoît Malézieux for their precious comments. The authors acknowledge the support of the ANER RAGA BFC. SV acknowledges the support of the ANR GraVa ANR-18-CE40-0005. This work is supported by a public grant overseen by the French National Research Agency (ANR) through the program UDOPIA, project funded by the ANR-20-THIA-0013-01 and DATAIA convergence institute (ANR-17-CONV-0003).
280
+
281
+ References
282
+ [1] Zeeshan Akhtar, Amrit Singh Bedi, Srujan Teja Thomdapu, and Ketan Rajawat. Projection-Free Algorithm for Stochastic Bi-level Optimization. preprint ArXiv 2110.11721, 2021.
283
+ [2] Michael Arbel and Julien Mairal. Amortized Implicit Differentiation for Stochastic Bilevel Optimization. In International Conference on Learning Representations (ICLR), 2022.
284
+ [3] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep Equilibrium Models. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2019.
285
+ [4] Atilim Gunes Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. Automatic differentiation in Machine Learning: A survey. Journal of Machine Learning Research, 18(153):1–43, 2018.
286
+ [5] Yoshua Bengio. Gradient-Based Optimization of Hyperparameters. Neural Computation, 12(8): 1889–1900, 2000.
287
+ [6] Quentin Bertrand, Quentin Klopfenstein, Mathieu Blondel, Samuel Vaiter, Alexandre Gramfort, and Joseph Salmon. Implicit differentiation of lasso-type models for hyperparameter optimization. In International Conference on Machine Learning (ICML), pages 810–821. PMLR, 2020.
288
+ [7] Léon Bottou. Large-Scale Machine Learning with Stochastic Gradient Descent. In Proceedings of COMPSTAT, pages 177–186. Physica-Verlag HD, Heidelberg, 2010.
289
+ [8] Léon Bottou, Frank E. Curtis, and Jorge Nocedal. Optimization methods for large-scale Machine Learning. Siam Reviews, 60(2):223–311, 2018.
290
+ [9] Tianyi Chen, Yuejiao Sun, and Wotao Yin. Closing the Gap: Tighter Analysis of Alternating Stochastic Gradient Methods for Bilevel Problems. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021.
291
+ [10] Tianyi Chen, Yuejiao Sun, and Wotao Yin. A Single-Timescale Stochastic Bilevel Optimization Method. In International Conference on Artificial Intelligence and Statistics (AISTATS), 2022.
292
+ [11] Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. AutoAugment: Learning Augmentation Strategies From Data. In CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 113–123. IEEE, 2019.
293
+ [12] Ashok Cutkosky and Francesco Orabona. Momentum-based variance reduction in non-convex SGD. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2019.
294
+ [13] Aaron Defazio, Francis Bach, and Simon Lacoste-Julien. SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectives. In Advances in Neural Information Processing Systems (NeurIPS), volume 28, pages 1646–1654, Montreal, QC, Canada, December 2014. Curran Associates, Inc.
295
+ [14] Justin Domke. Generic methods for optimization-based modeling. In International Conference on Artificial Intelligence and Statistics (AISTAT), volume 22, pages 318–326. PMLR, 2012.
296
+ [15] Cong Fang, Chris Junchi Li, Zhouchen Lin, and Tong Zhang. SPIDER: Near-Optimal NonConvex Optimization via Stochastic Path Integrated Differential Estimator. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
297
+ [16] Luca Franceschi, Michele Donini, Paolo Frasconi, and Massimiliano Pontil. Forward and reverse gradient-based hyperparameter optimization. In International Conference on Machine Learning (ICML), pages 1165–1173. PMLR, 2017.
298
+ [17] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimiliano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In International Conference on Machine Learning (ICML), pages 1568–1577. PMLR, 2018.
299
+ [18] Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013. doi: 10.1137/ 120880811.
300
+ [19] Saeed Ghadimi and Mengdi Wang. Approximation Methods for Bilevel Programming. preprint ArXiv 1802.02246, 2018.
301
+ [20] Riccardo Grazzi, Luca Franceschi, Massimiliano Pontil, and Saverio Salzo. On the iteration complexity of hypergradient computation. In International Conference on Machine Learning (ICML), pages 3748–3758. PMLR, 2020.
302
+ [21] Riccardo Grazzi, Massimiliano Pontil, and Saverio Salzo. Convergence properties of stochastic hypergradients. In International Conference on Artificial Intelligence and Statistics (AISTAT), pages 3826–3834. PMLR, 2021.
303
+ [22] Zhishuai Guo, Quanqi Hu, Lijun Zhang, and Tianbao Yang. Randomized Stochastic VarianceReduced Methods for Multi-Task Stochastic Bilevel Optimization. preprint ArXiv 2105.02266, 2021.
304
+ [23] Zhishuai Guo, Yi Xu, Wotao Yin, Rong Jin, and Tianbao Yang. On Stochastic Moving-Average Estimators for Non-Convex Optimization. preprint ArXiv 2104.14840, 2021.
305
+ [24] Mingyi Hong, Hoi-To Wai, Zhaoran Wang, and Zhuoran Yang. A Two-Timescale Framework for Bilevel Optimization: Complexity Analysis and Application to Actor-Critic. preprint ArXiv 2007.05170, 2021.
306
+ [25] Feihu Huang and Heng Huang. BiAdam: Fast Adaptive Bilevel Optimization Methods. preprint ArXiv 2106.11396, 2021.
307
+ [26] Kaiyi Ji, Junjie Yang, and Yingbin Liang. Bilevel optimization: Convergence analysis and enhanced design. In International Conference on Machine Learning (ICML), pages 4882–4892. PMLR, 2021.
308
+ [27] Rie Johnson and Tong Zhang. Accelerating stochastic gradient descent using predictive variance reduction. In Advances in Neural Information Processing Systems (NeurIPS), volume 26. Curran Associates, Inc., 2013.
309
+ [28] Prashant Khanduri, Siliang Zeng, Mingyi Hong, Hoi-To Wai, Zhaoran Wang, and Zhuoran Yang. A Near-Optimal Algorithm for Stochastic Bilevel Optimization via Double-Momentum. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021.
310
+ [29] Siu Kwan Lam, Antoine Pitrou, and Stanley Seibert. Numba: A llvm-based python jit compiler. In Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC, pages 1–6, 2015.
311
+ [30] Junyi Li, Bin Gu, and Heng Huang. A Fully Single Loop Algorithm for Bilevel Optimization without Hessian Inverse. In Proceedings of the Thirty-sixth AAAI Conference on Artificial Intelligence, AAAI’22, 2022.
312
+ [31] Seppo Linnainmaa. Taylor expansion of the accumulated rounding error. BIT Numerical Mathematics, 16(2):146–160, 1976.
313
+ [32] Dong C. Liu and Jorge Nocedal. On the limited memory BFGS method for large scale optimization. Mathematical Programming, 45(1-3):503–528, 1989.
314
+ [33] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In International Conference on Learning Representations (ICLR), 2018.
315
+ [34] Dougal Maclaurin, David Duvenaud, and Ryan Adams. Gradient-based hyperparameter optimization through reversible learning. In International Conference on machine learning (ICML), pages 2113–2122. PMLR, 2015.
316
+ [35] Thomas Moreau, Mathurin Massias, Alexandre Gramfort, Pierre Ablin, Pierre-Antoine Bannier Benjamin Charlier, Mathieu Dagréou, Tom Dupré la Tour, Ghislain Durif, Cassio F. Dantas, Quentin Klopfenstein, Johan Larsson, En Lai, Tanguy Lefort, Benoit Malézieux, Badr Moufad, Binh T. Nguyen, Alain Rakotomamonjy, Zaccharie Ramzi, Joseph Salmon, and Samuel Vaiter. Benchopt: Reproducible, efficient and collaborative optimization benchmarks. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
317
+ [36] IU E. Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. Number v. 87 in Applied Optimization. Kluwer Academic Publishers, Boston, 2004.
318
+ [37] Barak A Pearlmutter. Fast exact multiplication by the hessian. Neural computation, 6(1): 147–160, 1994.
319
+ [38] Fabian Pedregosa. Hyperparameter optimization with approximate gradient. In International Conference on Machine Learning (ICML), pages 737–746. PMLR, 2016.
320
+ [39] Zaccharie Ramzi, Florian Mannel, Shaojie Bai, Jean-Luc Starck, Philippe Ciuciu, and Thomas Moreau. SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models. In International Conference on Learning Representations (ICLR), 2022.
321
+ [40] Sashank J. Reddi, Suvrit Sra, Barnabas Poczos, and Alex Smola. Fast Incremental Method for Nonconvex Optimization. In 2016 IEEE 55th Conference on Decision and Control (CDC), IEEE, pages 1971–1977, 2016.
322
+ [41] Herbert Robbins and Sutton Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400–407, 1951.
323
+ [42] Cédric Rommel, Thomas Moreau, Joseph Paillard, and Alexandre Gramfort. CADDA: Classwise Automatic Differentiable Data Augmentation for EEG Signals. In International Conference on Learning Representations (ICLR), 2022.
324
+ [43] Mark Schmidt, Nicolas Le Roux, and Francis Bach. Minimizing finite sums with the stochastic average gradient. Mathematical Programming, 162(1-2):83–112, 2017.
325
+ [44] Amirreza Shaban, Ching-An Cheng, Nathan Hatch, and Byron Boots. Truncated Backpropagation for Bilevel Optimization. In Artificial Intelligence and Statistics (AISTAT), pages 1723–1732, Okinawa, Japan, 2019.
326
+ [45] Heinrich von Stackelberg. Theory of the market economy. Oxford University Press, 1952.
327
+ [46] R. Wengert. A simple automatic derivative evaluation program. Communications of the ACM, 7 (8):463–464, 1964.
328
+ [47] Junjie Yang, Kaiyi Ji, and Yingbin Liang. Provably Faster Algorithms for Bilevel Optimization. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021.
329
+
330
+ # Checklist
331
+
332
+ 1. For all authors...
333
+
334
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Section 3 and Section 4
335
+ (b) Did you describe the limitations of your work? [Yes]
336
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A]
337
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
338
+
339
+ 2. If you are including theoretical results...
340
+
341
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 3.1 (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix C
342
+
343
+ 3. If you ran experiments...
344
+
345
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]
346
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix B
347
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
348
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix B
349
+
350
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
351
+
352
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
353
+ (b) Did you mention the license of the assets? [Yes]
354
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
355
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
356
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
357
+
358
+ 5. If you used crowdsourcing or conducted research with human subjects...
359
+
360
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
361
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
362
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/wlEOsQ917F/wlEOsQ917F_content_list.json ADDED
@@ -0,0 +1,1615 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A framework for bilevel optimization that enables stochastic and global variance reduction algorithms ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 186,
8
+ 122,
9
+ 812,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Mathieu Dagréou ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 266,
20
+ 227,
21
+ 390,
22
+ 239
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Inria, CEA Université Paris-Saclay Palaiseau, France mathieu.dagreou@inria.fr ",
29
+ "bbox": [
30
+ 223,
31
+ 241,
32
+ 431,
33
+ 295
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Pierre Ablin CNRS Université Paris-Dauphine, PSL-University Paris, France pierre.ablin@cnrs.fr ",
40
+ "bbox": [
41
+ 488,
42
+ 226,
43
+ 774,
44
+ 295
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Samuel Vaiter ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 307,
54
+ 318,
55
+ 406,
56
+ 330
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Thomas Moreau ",
63
+ "text_level": 1,
64
+ "bbox": [
65
+ 586,
66
+ 318,
67
+ 702,
68
+ 330
69
+ ],
70
+ "page_idx": 0
71
+ },
72
+ {
73
+ "type": "text",
74
+ "text": "CNRS Université Côte d’Azur, LJAD Nice, France samuel.vaiter@cnrs.fr ",
75
+ "bbox": [
76
+ 258,
77
+ 332,
78
+ 459,
79
+ 386
80
+ ],
81
+ "page_idx": 0
82
+ },
83
+ {
84
+ "type": "text",
85
+ "text": "Inria, CEA Université Paris-Saclay Palaiseau, France thomas.moreau@inria.fr ",
86
+ "bbox": [
87
+ 549,
88
+ 332,
89
+ 740,
90
+ 386
91
+ ],
92
+ "page_idx": 0
93
+ },
94
+ {
95
+ "type": "text",
96
+ "text": "Abstract ",
97
+ "text_level": 1,
98
+ "bbox": [
99
+ 462,
100
+ 421,
101
+ 535,
102
+ 438
103
+ ],
104
+ "page_idx": 0
105
+ },
106
+ {
107
+ "type": "text",
108
+ "text": "Bilevel optimization, the problem of minimizing a value function which involves the arg-minimum of another function, appears in many areas of machine learning. In a large scale empirical risk minimization setting where the number of samples is huge, it is crucial to develop stochastic methods, which only use a few samples at a time to progress. However, computing the gradient of the value function involves solving a linear system, which makes it difficult to derive unbiased stochastic estimates. To overcome this problem we introduce a novel framework, in which the solution of the inner problem, the solution of the linear system, and the main variable evolve at the same time. These directions are written as a sum, making it straightforward to derive unbiased estimates. The simplicity of our approach allows us to develop global variance reduction algorithms, where the dynamics of all variables is subject to variance reduction. We demonstrate that SABA, an adaptation of the celebrated SAGA algorithm in our framework, has $O \\big ( \\frac { 1 } { T } \\big )$ convergence rate, and that it achieves linear convergence under Polyak-Łojasciewicz assumption. This is the first stochastic algorithm for bilevel optimization that verifies either of these properties. Numerical experiments validate the usefulness of our method. ",
109
+ "bbox": [
110
+ 232,
111
+ 449,
112
+ 766,
113
+ 670
114
+ ],
115
+ "page_idx": 0
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "1 Introduction ",
120
+ "text_level": 1,
121
+ "bbox": [
122
+ 174,
123
+ 690,
124
+ 310,
125
+ 707
126
+ ],
127
+ "page_idx": 0
128
+ },
129
+ {
130
+ "type": "text",
131
+ "text": "Bilevel optimization is attracting more and more attention in the machine learning community thanks to its wide range of applications. Typical examples are hyperparameters selection [5, 38, 17, 6], data augmentation [11, 42], implicit deep learning [3] or neural architecture search [33]. Bilevel optimization aims at minimizing a function whose value depends on the result of another optimization problem: ",
132
+ "bbox": [
133
+ 174,
134
+ 719,
135
+ 825,
136
+ 787
137
+ ],
138
+ "page_idx": 0
139
+ },
140
+ {
141
+ "type": "equation",
142
+ "img_path": "images/673a643345889d4e3248fc0df9e2e6740aec277c118909e511938888551c02a8.jpg",
143
+ "text": "$$\n\\operatorname* { m i n } _ { x \\in \\mathbb { R } ^ { d } } h ( x ) = F ( z ^ { * } ( x ) , x ) , \\quad \\mathrm { s u c h t h a t } z ^ { * } ( x ) \\in \\arg \\operatorname* { m i n } _ { z \\in \\mathbb { R } ^ { p } } G ( z , x ) ,\n$$",
144
+ "text_format": "latex",
145
+ "bbox": [
146
+ 279,
147
+ 786,
148
+ 715,
149
+ 811
150
+ ],
151
+ "page_idx": 0
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "where $F$ and $G$ are two real valued functions defined on $\\mathbb { R } ^ { p } \\times \\mathbb { R } ^ { d }$ . $G$ is called the inner function, $F$ is the outer function and $h$ is the value function. Similarly, $z$ is the inner variable and $x$ is the outer variable. In most cases, the function $z ^ { * }$ can only be approximated by an optimization algorithm, which makes bilevel optimization problems challenging. Under appropriate hypotheses, the function $h$ is differentiable, and the chain rule and implicit function theorem give for any $\\boldsymbol { x } \\in \\mathbb { R } ^ { d }$ ",
156
+ "bbox": [
157
+ 173,
158
+ 814,
159
+ 825,
160
+ 883
161
+ ],
162
+ "page_idx": 0
163
+ },
164
+ {
165
+ "type": "equation",
166
+ "img_path": "images/90ad97bdf05e07bbf69e0840bb834a6e93d616567a411c7bf450c6ae5a96dfac.jpg",
167
+ "text": "$$\n\\nabla h ( x ) = \\nabla _ { 2 } F ( z ^ { * } ( x ) , x ) + \\nabla _ { 2 1 } ^ { 2 } G ( z ^ { * } ( x ) , x ) v ^ { * } ( x ) \\ ,\n$$",
168
+ "text_format": "latex",
169
+ "bbox": [
170
+ 323,
171
+ 886,
172
+ 671,
173
+ 905
174
+ ],
175
+ "page_idx": 0
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "36th Conference on Neural Information Processing Systems (NeurIPS 2022). ",
180
+ "bbox": [
181
+ 173,
182
+ 922,
183
+ 629,
184
+ 936
185
+ ],
186
+ "page_idx": 0
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "where $v ^ { \\ast } ( x ) \\in \\mathbb { R } ^ { p }$ is the solution of a linear system ",
191
+ "bbox": [
192
+ 176,
193
+ 90,
194
+ 511,
195
+ 106
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "equation",
201
+ "img_path": "images/753ead0f5c30f5763cf9f2e08983156c9b1f3ab03e9fcb8c1002682f604aed00.jpg",
202
+ "text": "$$\n\\boldsymbol { v } ^ { * } ( \\boldsymbol { x } ) = - \\left[ \\nabla _ { 1 1 } ^ { 2 } G ( \\boldsymbol { z } ^ { * } ( \\boldsymbol { x } ) , \\boldsymbol { x } ) \\right] ^ { - 1 } \\nabla _ { 1 } F ( \\boldsymbol { z } ^ { * } ( \\boldsymbol { x } ) , \\boldsymbol { x } ) \\ .\n$$",
203
+ "text_format": "latex",
204
+ "bbox": [
205
+ 331,
206
+ 112,
207
+ 665,
208
+ 135
209
+ ],
210
+ "page_idx": 1
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "In the light of (2) and (3), it turns out that the derivation of the gradient of $h$ at each iteration is cumbersome because it involves two subproblems: the resolution of the inner problem to find an approximation of $z ^ { * } ( x )$ and the resolution of a linear system to find an approximation of $v ^ { * } ( x )$ . It makes the practical implementation of first order methods like gradient descent for (1) challenging. ",
215
+ "bbox": [
216
+ 173,
217
+ 140,
218
+ 825,
219
+ 196
220
+ ],
221
+ "page_idx": 1
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "As is the case in many machine learning problems, we suppose in this paper that $F$ and $G$ are empirical means: ",
226
+ "bbox": [
227
+ 173,
228
+ 199,
229
+ 549,
230
+ 228
231
+ ],
232
+ "page_idx": 1
233
+ },
234
+ {
235
+ "type": "equation",
236
+ "img_path": "images/48952885d7753c9b07c3aebab5746a0ccea5fa554b21835026246a566fa9b494.jpg",
237
+ "text": "$$\nF ( z , x ) = \\frac { 1 } { m } \\sum _ { j = 1 } ^ { m } F _ { j } ( z , x ) , \\quad G ( z , x ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } G _ { i } ( z , x )\n$$",
238
+ "text_format": "latex",
239
+ "bbox": [
240
+ 173,
241
+ 234,
242
+ 547,
243
+ 277
244
+ ],
245
+ "page_idx": 1
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "This structure suggests the use of stochastic methods to solve (1). For single-level problems (that is, classical optimization problems where one function should be minimized), using Stochastic Gradient Descent (SGD; [41, 7]) and variants is natural because individual gradients are straightforward unbiased estimators of the gradient. In the bilevel framework, we want to develop algorithms that make progress on problem (1) by using only a few functions $F _ { j }$ and $G _ { i }$ at a time. However, since $\\nabla h$ involves the inverse of the Hessian of $G$ , building such stochastic algorithms is quite challenging, one of the difficulties being that there is no straightforward unbiased estimator of $\\nabla h$ . Still, in settings where $m$ or $n$ are large, where computing even a single evaluation of $F$ or $G$ is extremely expensive, stochastic methods are the only scalable algorithms. ",
250
+ "bbox": [
251
+ 174,
252
+ 282,
253
+ 550,
254
+ 421
255
+ ],
256
+ "page_idx": 1
257
+ },
258
+ {
259
+ "type": "image",
260
+ "img_path": "images/5b8583b8f4e3127a6f57e87a8eec2bdb05bebdf958e042d951a51cd676a39614.jpg",
261
+ "image_caption": [
262
+ "Figure 1: Convergence curves of the two proposed methods on a toy problem. SABA is a stochastic method that achieves fast convergence on the value function. "
263
+ ],
264
+ "image_footnote": [],
265
+ "bbox": [
266
+ 560,
267
+ 204,
268
+ 823,
269
+ 327
270
+ ],
271
+ "page_idx": 1
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "",
276
+ "bbox": [
277
+ 173,
278
+ 421,
279
+ 820,
280
+ 463
281
+ ],
282
+ "page_idx": 1
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Variance reduction [27, 13, 43, 15, 12] is a popular technique to obtain fast stochastic algorithms. In a single-level setting, these methods build an approximation of the gradient of the objective function using only stochastic gradients. Contrary to SGD, the variance of the approximation goes to 0 as the algorithm progresses, allowing for faster convergence. For instance, the SAGA method [13] achieves linear convergence if the objective function satisfies a Polyak-Łojasciewicz inequality, and $O ( { \\textstyle { \\frac { 1 } { T } } } )$ convergence rate on smooth non-convex functions [40]. The extension of these methods to bilevel optimization is a natural idea to develop faster algorithms. However, this idea is hard to implement because it is hard to derive unbiased estimators of $\\nabla h$ , let alone variance reduction ones. ",
287
+ "bbox": [
288
+ 173,
289
+ 465,
290
+ 825,
291
+ 577
292
+ ],
293
+ "page_idx": 1
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Contributions. We introduce a novel framework for bilevel optimization in Section 2, where the inner variable, the solution of the linear system (3) and the outer variable evolve jointly. The evolution directions are written as sums of derivatives of $F _ { j }$ and $G _ { i }$ , which allows us to derive simple unbiased stochastic estimators. In this framework, we propose SOBA, an extension of SGD (Section 2.1), and SABA (Section 2.2), an extension of the variance reduction algorithm SAGA [13]. In Section 3 we analyse the convergence of our methods. SOBA is shown to achieve $\\begin{array} { r } { \\operatorname* { i n f } _ { t \\leq T } \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ] = O ( \\log ( T ) T ^ { - \\frac { 1 } { 2 } } ) } \\end{array}$ with decreasing step sizes. We prove that SABA with fixed step sizes achieves $\\begin{array} { r } { \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ] = O ( \\frac { 1 } { T } ) } \\end{array}$ . SABA is therefore, to the best of our knowledge, the first stochastic bilevel algorithm that matches the convergence rate of gradient descent on $h$ . We also prove that SABA achieves linear convergence under the assumption that $h$ satisfies a Polyak-Łojasciewicz inequality. To the best of our knowledge, SABA is also the first stochastic bilevel algorithm to feature such a property. Importantly, these rates match the rates of the single level counterparts of each algorithm in non-convex setting (SGD for SOBA and SAGA for SABA). Finally, in Section 4, we provide an extensive benchmark of many stochastic bilevel methods on hyperparameters selection and data hyper-cleaning, and illustrate the usefulness of our approach. ",
298
+ "bbox": [
299
+ 173,
300
+ 580,
301
+ 826,
302
+ 806
303
+ ],
304
+ "page_idx": 1
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "Related work. The bilevel optimization problem has a strong history in the optimization community, taking root in game theory [45]. Gradient-based algorithms to solve (1) can be mainly classified in two different categories depending on how $\\nabla h$ is computed, by automatic or implicit differentiation. ",
309
+ "bbox": [
310
+ 174,
311
+ 810,
312
+ 826,
313
+ 852
314
+ ],
315
+ "page_idx": 1
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "Since the solution of the inner problem $z ^ { * } ( x )$ is approximated by the output of an iterative algorithm, it is possible to use automatic differentiation [46, 31] to approximate $\\nabla h ( x )$ . It consists in differentiating the different steps of the inner optimization algorithm – see [4] for a review – and has been applied successfully to several bilevel problems arising in machine learning [14, 16]. One of the main drawbacks of this approach is that it requires to store in memory each iterate of the inner optimization algorithm, although this problem can sometimes be overcome using invertible optimization algorithms [34] or truncated backpropagation [44]. ",
320
+ "bbox": [
321
+ 176,
322
+ 856,
323
+ 825,
324
+ 911
325
+ ],
326
+ "page_idx": 1
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "",
331
+ "bbox": [
332
+ 174,
333
+ 90,
334
+ 823,
335
+ 133
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "The use of the implicit function theorem to obtain (2) and (3) is known as implicit differentiation [5]. While the cost of computing exactly (2) can be prohibitive for large scale problems, Pedregosa [38] showed that we can still converge to a stationary point of the problem by using approximate solutions of the inner problem and linear system (3), if the approximation error goes to 0 sufficiently quickly. The complexity of approximate implicit differentiation has been studied in [20]. Ramzi et al. [39] propose to reuse the computations done in the forward pass to approximate the solution of the linear system (3) when the inner problem is solved thanks to a quasi-Newton method. ",
342
+ "bbox": [
343
+ 173,
344
+ 136,
345
+ 825,
346
+ 233
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "In the last few years, several works have proposed different strategies to solve (1) in a stochastic fashion. A first set of methods relies on two nested loops: one inner loop to solve the inner problem with a stochastic method, and one outer loop to update the outer variable with an approximate gradient direction. In [19, 26, 9] the authors use several SGD iterations for the inner problem and then use stochastic Neumann approximations to get an estimate solution of the linear system, which provides them with an approximation of $\\nabla h$ used to update $x$ . The analysis of this kind of method was refined by Chen et al. [9], allowing to achieve the same convergence rates as those of SGD. The convergence of the hypergradient when using stochastic solvers for the inner problem and the linear system has been studied in [21]. Arbel and Mairal [2] replace the Neumann approximation by SGD steps to estimate (3). Other authors have proposed single loop algorithms, alternating steps in the inner and the outer problem. Hong et al. [24] propose to perform Neumann approximations of the inverse Hessian and use a single SGD step for the inner problem. It was refined in [23] and [47] where the optimization procedure uses a momentum acceleration. Other variations around this idea include [25, 28, 10, 22, 30]. We refer to Table 1 in appendix for a detailed comparison of these methods. ",
353
+ "bbox": [
354
+ 173,
355
+ 237,
356
+ 825,
357
+ 444
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Notation. The set of integers between 1 and $n$ (included) is denoted $[ n ]$ . For $f : \\mathbb { R } ^ { p } \\times \\mathbb { R } ^ { d } \\to \\mathbb { R }$ we denote $\\nabla _ { i } f ( z , x )$ its gradient w.r.t. the $i ^ { \\mathrm { { t h } } }$ variable. The Hessian of $f$ with respect to the first variable is denoted $\\nabla _ { 1 1 } ^ { 2 } f ( z , x ) \\in \\mathbb { R } ^ { p \\times p }$ , and the cross-derivatives matrix is $\\nabla _ { 2 1 } ^ { 2 } f ( z , x ) \\in \\mathbb { R } ^ { d \\times p }$ . If $v$ is a vector, $\\lVert v \\rVert$ is its Euclidean norm. If $M$ is a matrix, $\\lVert M \\rVert$ is its spectral norm. A function is said to be $L$ -smooth, for $L > 0$ , if it is differentiable, and its gradient is $L$ -Lipschitz. ",
364
+ "bbox": [
365
+ 173,
366
+ 446,
367
+ 825,
368
+ 518
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "2 Proposed framework ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 174,
378
+ 534,
379
+ 382,
380
+ 551
381
+ ],
382
+ "page_idx": 2
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "In this section, we introduce our framework in which the solution of the inner problem, the solution of the linear system (3) and the outer variable all evolve at the same time, following directions that are written as a sum of derivatives of $F _ { j }$ and $G _ { i }$ . We define ",
387
+ "bbox": [
388
+ 173,
389
+ 563,
390
+ 516,
391
+ 632
392
+ ],
393
+ "page_idx": 2
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "Algorithm 1 General framework ",
398
+ "text_level": 1,
399
+ "bbox": [
400
+ 531,
401
+ 569,
402
+ 746,
403
+ 582
404
+ ],
405
+ "page_idx": 2
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "Input: initializations $z _ { 0 } \\in \\mathbb { R } ^ { p }$ , $\\overline { { x _ { 0 } \\in \\mathbb { R } ^ { d } } }$ $v _ { 0 } \\in \\mathbb { R } ^ { p }$ , number of iterations $T$ , step size sequences $( \\rho ^ { t } ) _ { t < T }$ and $( \\gamma ^ { t } ) _ { t < T }$ . ",
410
+ "bbox": [
411
+ 544,
412
+ 587,
413
+ 823,
414
+ 630
415
+ ],
416
+ "page_idx": 2
417
+ },
418
+ {
419
+ "type": "equation",
420
+ "img_path": "images/c8ea2e88e87a5719ad7c39dc1f9c5aa334772c691070e1fa10a524f99dac7eab.jpg",
421
+ "text": "$$\nD _ { z } ( z , v , x ) = \\nabla _ { 1 } G ( z , x ) ,\n$$",
422
+ "text_format": "latex",
423
+ "bbox": [
424
+ 191,
425
+ 633,
426
+ 372,
427
+ 651
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "img_path": "images/996cecb29016fbe6174834ee4b2af1d24afbda38b250f2689bcf387c5fafa554.jpg",
434
+ "text": "$$\nD _ { v } ( z , v , x ) = \\nabla _ { 1 1 } ^ { 2 } G ( z , x ) v + \\nabla _ { 1 } F ( z , x ) ,\n$$",
435
+ "text_format": "latex",
436
+ "bbox": [
437
+ 191,
438
+ 654,
439
+ 477,
440
+ 671
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "equation",
446
+ "img_path": "images/c4a75ecef04aabb2255a9fa5dcc236b7c35d1ef10951a5f31261e1ea5640cad6.jpg",
447
+ "text": "$$\nD _ { x } ( z , v , x ) = \\nabla _ { 2 1 } ^ { 2 } G ( z , x ) v + \\nabla _ { 2 } F ( z , x ) .\n$$",
448
+ "text_format": "latex",
449
+ "bbox": [
450
+ 191,
451
+ 674,
452
+ 477,
453
+ 691
454
+ ],
455
+ "page_idx": 2
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "These directions are motivated by the fact that we have $\\nabla h ( x ) ~ = ~ D _ { x } ( z ^ { * } ( x ) , v ^ { * } ( \\bar { x } ) , x )$ , with $z ^ { * } ( x )$ the minimizer of $G ( \\cdot , x )$ and $v ^ { * } ( x )$ the solution of $\\nabla _ { 1 1 } ^ { 2 } G ( z ^ { * } ( x ) , x ) v \\ : = \\ : - \\nabla _ { 1 } F ( z ^ { * } ( x ) , x )$ . When $x$ is ",
460
+ "bbox": [
461
+ 173,
462
+ 694,
463
+ 516,
464
+ 750
465
+ ],
466
+ "page_idx": 2
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "end for ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 547,
474
+ 726,
475
+ 598,
476
+ 738
477
+ ],
478
+ "page_idx": 2
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "fixed, we approximate $z ^ { * }$ by doing a gradient descent on $G$ , following the direction $- D _ { z } ( z , v , x )$ . Finally, when $z$ and $x$ are fixed, we find $v ^ { * }$ by following the direction $- D _ { v } ( z , v , x )$ , which corresponds to a gradient descent on $\\begin{array} { r } { v \\mapsto \\frac { 1 } { 2 } \\langle \\nabla _ { 1 1 } ^ { 2 } G ( z , x ) v , v \\rangle + \\langle \\nabla _ { 1 } F ( z , x ) , v \\rangle } \\end{array}$ . The rest of the paper is devoted to the study of the global dynamics where the three variables $z , v$ and $x$ evolve at the same time, following stochastic approximations of $D _ { z } , D _ { v }$ and $D _ { x }$ . The next proposition motivates the choice of these directions. ",
483
+ "bbox": [
484
+ 173,
485
+ 750,
486
+ 825,
487
+ 832
488
+ ],
489
+ "page_idx": 2
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "Proposition 2.1. Assume that for all $x \\in \\mathbb { R } ^ { d } , G ( \\cdot , x )$ is strongly convex. If $( z , v , x )$ is a zero of $( D _ { z } , D _ { v } , D _ { x } )$ , then $z = z ^ { * } ( x )$ , $v = v ^ { * } ( x )$ and $\\nabla h ( x ) = ~ 0$ . ",
494
+ "bbox": [
495
+ 173,
496
+ 833,
497
+ 823,
498
+ 863
499
+ ],
500
+ "page_idx": 2
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "We also note that the computation of these directions does not require to compute the matrices $\\nabla _ { 1 1 } ^ { 2 } G ( z , x )$ and $\\nabla _ { 2 1 } ^ { 2 } G ( z , \\bar { x } )$ : we only need to compute their product with a vector, which can be computed at a cost similar to that of computing a gradient. ",
505
+ "bbox": [
506
+ 174,
507
+ 869,
508
+ 825,
509
+ 911
510
+ ],
511
+ "page_idx": 2
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "The framework we propose is summarized in Algorithm 1. It consists in following a joint update rule in $( z , v , x )$ that follows directions $D _ { z } ^ { t } , D _ { v } ^ { t }$ and $D _ { x } ^ { t }$ that are unbiased estimators of $D _ { z } , D _ { v } , D _ { x }$ The first and most important remark is that whereas $\\nabla h$ cannot be written as a sum over samples, the directions $D _ { z } , D _ { v }$ and $D _ { x }$ involve only simple sums, since their expressions are “linear” in $F$ and $G$ : ",
516
+ "bbox": [
517
+ 174,
518
+ 90,
519
+ 825,
520
+ 147
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "equation",
526
+ "img_path": "images/2cad3bc99892a0519dcf64b4d51cc53bbeebfb43daa1744f6954f349acaee224.jpg",
527
+ "text": "$$\n\\begin{array} { r l } & { D _ { z } ( z , v , x ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\nabla _ { 1 } G _ { i } ( z , x ) ~ , } \\\\ & { D _ { v } ( z , v , x ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\nabla _ { 1 1 } ^ { 2 } G _ { i } ( z , x ) v + \\frac { 1 } { m } \\sum _ { j = 1 } ^ { m } \\nabla _ { 1 } F _ { j } ( z , x ) ~ , } \\\\ & { D _ { x } ( z , v , x ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) v + \\frac { 1 } { m } \\sum _ { j = 1 } ^ { m } \\nabla _ { 2 } F _ { j } ( z , x ) ~ . } \\end{array}\n$$",
528
+ "text_format": "latex",
529
+ "bbox": [
530
+ 290,
531
+ 150,
532
+ 705,
533
+ 215
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "It is therefore straightforward to derive unbiased estimators of these directions. In [30], the authors considered one particular case of our framework, where each direction is estimated by using the STORM variance reduction technique (see [12]). Taking a step back by proposing the framework summarized in Algorithm 1 opens the way to potential new algorithms that implement other techniques that exist in stochastic single level optimization. In what follows, we study two of them. ",
540
+ "bbox": [
541
+ 173,
542
+ 218,
543
+ 826,
544
+ 287
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "2.1 First example: the SOBA algorithm ",
551
+ "text_level": 1,
552
+ "bbox": [
553
+ 176,
554
+ 301,
555
+ 460,
556
+ 316
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "The simplest unbiased estimator is obtained by replacing each mean by one of its terms chosen uniformly at random, akin to what is done in classical single-level SGD. We call the resulting algorithm SOBA (StOchastic Bilevel Algorithm). To do so, we choose two independent random indices $i \\in [ n ]$ and $j \\in [ m ]$ uniformly and estimate each term coming from $G$ using $G _ { i }$ and each term coming from $F$ using $F _ { j }$ . This gives the unbiased SOBA directions ",
563
+ "bbox": [
564
+ 173,
565
+ 324,
566
+ 825,
567
+ 393
568
+ ],
569
+ "page_idx": 3
570
+ },
571
+ {
572
+ "type": "equation",
573
+ "img_path": "images/7a75d9ca6f4e1eb9d69ea5b9354eec61b127209a03944608b0531a9e1cefad59.jpg",
574
+ "text": "$$\n\\boxed { \\begin{array} { r l } & { D _ { z } ^ { t } = \\nabla _ { 1 } G _ { i } ( z ^ { t } , x ^ { t } ) ~ , } \\\\ & { D _ { v } ^ { t } = \\nabla _ { 1 1 } ^ { 2 } G _ { i } ( z ^ { t } , x ^ { t } ) v ^ { t } + \\nabla _ { 1 } F _ { j } ( z ^ { t } , x ^ { t } ) ~ , } \\\\ & { D _ { x } ^ { t } = \\nabla _ { 2 1 } ^ { 2 } G _ { i } ( z ^ { t } , x ^ { t } ) v ^ { t } + \\nabla _ { 2 } F _ { j } ( z ^ { t } , x ^ { t } ) ~ . } \\end{array} }\n$$",
575
+ "text_format": "latex",
576
+ "bbox": [
577
+ 336,
578
+ 400,
579
+ 656,
580
+ 465
581
+ ],
582
+ "page_idx": 3
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "This provides us with a first algorithm, SOBA, where we plug Equations (10a) to (10c) in Algorithm 1. We defer its analysis to the next section. Importantly, we use different step sizes for the update in $( z , v )$ and for the update in $x$ . We use the same step size in $z$ and in $v$ since the inner problem and the linear system have similar conditioning, which is that of $\\nabla _ { 1 1 } ^ { 2 } G ( z ^ { t } , x ^ { t } )$ . The need for a different step size for the outer and inner problem is clear: both problems can have a different conditioning. ",
587
+ "bbox": [
588
+ 173,
589
+ 474,
590
+ 825,
591
+ 545
592
+ ],
593
+ "page_idx": 3
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "An important remark for SOBA is that all the stochastic directions used are computed at the same point $\\bar { z } ^ { t } , v ^ { t }$ and $x ^ { t }$ with the same indices $( i , j )$ . The update of $z$ , $v$ and $x$ can thus be performed in parallel instead of sequentially, benefiting from hardware parallelism. Moreover, this enables to share the computations between the different directions. This is the case in hyperparameters selection where $\\begin{array} { r } { \\bar { G } _ { i } ( z , x ) = \\ell _ { i } ( \\langle z , d _ { i } \\rangle ) + \\frac { x } { 2 } \\| z \\| ^ { 2 } } \\end{array}$ , with $d _ { i }$ a training sample, and $\\ell _ { i }$ that measures how good is the prediction $\\langle z , d _ { i } \\rangle$ . In this setting, we have $\\nabla _ { 1 } G _ { i } ( z , x ) = \\ell _ { i } ^ { \\prime } ( \\langle z , d _ { i } \\rangle ) d _ { i } + x z$ and $\\nabla _ { 1 1 } ^ { 2 } \\bar { G } _ { i } ( z , x ) v \\stackrel { - } { = } \\ell _ { i } ^ { \\prime \\prime } ( \\langle z , d _ { i } \\rangle ) \\langle v , d _ { i } \\rangle d _ { i }$ . The prediction $\\langle z , d _ { i } \\rangle$ can thus be computed only once to obtain both quantities. For more complicated models, where automatic differentiation is used to compute the different derivatives and Jacobian-vector products, we can store the computational graph only once to compute at the same time $\\nabla _ { 1 } G _ { i } ( z , x ) , \\dot { \\nabla _ { 1 1 } ^ { 2 } } G _ { i } ( z , x ) v$ and $\\nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) \\dot { v }$ , requiring only one backward pass, thanks to the $\\mathcal { R }$ technique [37]. ",
598
+ "bbox": [
599
+ 173,
600
+ 547,
601
+ 825,
602
+ 702
603
+ ],
604
+ "page_idx": 3
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Finally, like all single loop bilevel algorithms, our method updates at the same time the inner and outer variable, avoiding unnecessary optimization of the inner problem when $x$ is far from the optimum. ",
609
+ "bbox": [
610
+ 173,
611
+ 705,
612
+ 823,
613
+ 734
614
+ ],
615
+ "page_idx": 3
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "2.2 Global variance reduction with the SABA algorithm ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 173,
623
+ 746,
624
+ 575,
625
+ 762
626
+ ],
627
+ "page_idx": 3
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "In classical optimization, SGD fails to reach optimal rates because of the variance of the gradient estimator. Variance reduction algorithms aim at reducing this variance, in order to follow directions that are closer to the true gradient, and to achieve superior practical and theoretical convergence. ",
632
+ "bbox": [
633
+ 174,
634
+ 768,
635
+ 825,
636
+ 810
637
+ ],
638
+ "page_idx": 3
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "In our framework, since the directions $D _ { z } , D _ { v }$ and $D _ { x }$ are all written as sums of derivatives of $F _ { j }$ and $G _ { i }$ , it is easy to adapt most classical variance reduction algorithms. We focus on the celebrated SAGA algorithm [13]. The extension we propose is called SABA (Stochastic Average Bilevel Algorithm). The general idea is to replace each sum in the directions $D$ by a sum over a memory, updating only one term at each iteration. To help the exposition, we denote $y = ( z , x , v )$ the vector of joint variables. Since we have sums over $i$ and over $j$ , we have two memories for each variable: $\\boldsymbol { w } _ { i } ^ { t }$ for $i \\in [ n ]$ and $\\tilde { w } _ { j } ^ { t }$ for $j \\in [ m ]$ , which keep track of the previous values of the variable $y$ . ",
643
+ "bbox": [
644
+ 174,
645
+ 814,
646
+ 825,
647
+ 912
648
+ ],
649
+ "page_idx": 3
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "At each iteration $t$ , we draw two random independent indices $i \\in [ n ]$ and $j \\in [ m ]$ uniformly and update the memories. To do so, we put $w _ { i } ^ { t + 1 } = y ^ { t }$ and $w _ { i ^ { \\prime } } ^ { t + 1 } = w _ { i ^ { \\prime } } ^ { t }$ for $i ^ { \\prime } \\neq i$ , and $\\tilde { w } _ { j } ^ { t + 1 } = y ^ { t }$ and $\\tilde { w } _ { j ^ { \\prime } } ^ { t + 1 } = \\tilde { w } _ { j ^ { \\prime } } ^ { t }$ for $\\boldsymbol { j ^ { \\prime } } \\neq \\boldsymbol { j }$ . Each sum in the directions $D$ is then approximated using SAGA-like rules: given $n$ functions $\\phi _ { i ^ { \\prime } }$ for $i ^ { \\prime } \\in [ n ]$ , we define $\\begin{array} { r } { S [ \\phi , w ] _ { i } ^ { t } = \\phi _ { i } ( w _ { i } ^ { t + 1 } ) - \\phi _ { i } ( w _ { i } ^ { t } ) + \\frac { 1 } { n } \\sum _ { i ^ { \\prime } = 1 } ^ { n } \\phi _ { i ^ { \\prime } } ( w _ { i ^ { \\prime } } ^ { t } ) . } \\end{array}$ This is an unbiased estimators of the average of the $\\phi$ ’s since $\\begin{array} { r } { \\mathbb E _ { i } \\Big [ S [ \\phi , w ] _ { i } ^ { t } \\Big ] = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\phi _ { i } ( y ^ { t } ) } \\end{array}$ . ",
654
+ "bbox": [
655
+ 173,
656
+ 90,
657
+ 826,
658
+ 181
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "With a slight abuse of notation, we call $\\nabla _ { 1 1 } ^ { 2 } G v$ the sequence of functions $( y \\mapsto \\nabla _ { 1 1 } ^ { 2 } G _ { i } ( z , x ) v ) _ { i \\in [ n ] }$ and $\\nabla _ { 2 1 } ^ { 2 } G v$ the sequence of functions $( y \\mapsto \\nabla _ { 2 1 } ^ { 2 } G _ { i } ( z , x ) v ) _ { i \\in [ n ] }$ . We define the SABA directions as ",
665
+ "bbox": [
666
+ 176,
667
+ 185,
668
+ 820,
669
+ 218
670
+ ],
671
+ "page_idx": 4
672
+ },
673
+ {
674
+ "type": "equation",
675
+ "img_path": "images/851627f4797c8bee48086eb1f575679b6b9eb4c71c728ebde4ec66df75a4e654.jpg",
676
+ "text": "$$\n\\begin{array} { r c l } { { } } & { { } } & { { D _ { z } ^ { t } = S [ \\nabla _ { 1 } G , w ] _ { i } ^ { t } ~ , } } \\\\ { { } } & { { } } & { { D _ { v } ^ { t } = S [ \\nabla _ { 1 1 } ^ { 2 } G v , w ] _ { i } ^ { t } + S [ \\nabla _ { 1 } F , \\tilde { w } ] _ { j } ^ { t } ~ , } } \\\\ { { } } & { { } } & { { D _ { x } ^ { t } = S [ \\nabla _ { 2 1 } ^ { 2 } G v , w ] _ { i } ^ { t } + S [ \\nabla _ { 2 } F , \\tilde { w } ] _ { j } ^ { t } ~ . } } \\end{array}\n$$",
677
+ "text_format": "latex",
678
+ "bbox": [
679
+ 357,
680
+ 223,
681
+ 645,
682
+ 286
683
+ ],
684
+ "page_idx": 4
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "These estimators are unbiased estimators of the directions $D _ { z } , D _ { v }$ and $D _ { x }$ . The SABA algorithm corresponds to Algorithm 1 where we use Equations (11a) to (11c) as update directions. When taking a step size $\\gamma ^ { t } = \\bar { 0 }$ in the outer problem, hereby stopping progress in $x$ , we recover the iterations of the SAGA algorithm on the inner problem. In practice, the sum in $S$ is computed by doing a rolling average (see Appendix B for precision), and the quantities $\\phi _ { i } ( w _ { i } ^ { t } )$ are stored rather than recomputed: the cost of computing the SABA directions is the same as that of SGD. It requires an additional memory for the five quantities, of total size $n \\times p + ( n + m ) \\times ( p + d )$ floats that can be reduced by using larger batch sizes. Indeed, if $b _ { \\mathrm { i n } }$ and $b _ { \\mathrm { o u t } }$ are respectively the inner and the outer batch sizes, the memory load is reduced to nb × p + (nb + mb) × (p × d) with nb = ⌈ nbinn ⌉ and $\\begin{array} { r } { m _ { b } = \\left\\lceil \\frac { m } { b _ { \\mathrm { o u t } } } \\right\\rceil } \\end{array}$ which are smaller than the number of samples. This memory load can also be reduced in specific cases, for instance when $G$ and $F$ correspond to linear models, where the individual gradients and Hessian-vector products are proportional to the samples. In this case, we only store the proportionality ratio, reducing the memory load to $3 n + 2 m$ floats. Like for SOBA, the computations of the new quantities $\\phi _ { i } ( w _ { i } ^ { t + 1 } )$ are done in parallel, thus benefiting from hardware acceleration and shared computations. Despite this memory load, using SAGA-like variance reduction instead of STORM as done in [30, 47, 28] has the advantage to bring the variance of the estimate directions to zero, enabling faster $O ( { \\textstyle { \\frac { 1 } { T } } } )$ convergence. ",
689
+ "bbox": [
690
+ 173,
691
+ 289,
692
+ 825,
693
+ 530
694
+ ],
695
+ "page_idx": 4
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "In the next section, we show that SABA is fast. It essentially has the same properties as SAGA: despite being stochastic, it converges with fixed step sizes, and reaches the same rate of convergence as gradient descent on $h$ . ",
700
+ "bbox": [
701
+ 174,
702
+ 534,
703
+ 825,
704
+ 575
705
+ ],
706
+ "page_idx": 4
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "3 Theoretical analysis ",
711
+ "text_level": 1,
712
+ "bbox": [
713
+ 174,
714
+ 592,
715
+ 372,
716
+ 608
717
+ ],
718
+ "page_idx": 4
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "In this section, we provide convergence rates of SOBA and SABA under some classical assumptions. Note that, unlike most of the stochastic bilevel optimization papers, we work in finite sample setting rather than the more general expectation setting. Actually, SABA does not make any sense for functions that don’t have a finite sum structure. However, we stress that SOBA could be studied in a more general setting to obtain the same bounds as here. Also, the finite sum setting is still interesting since doing empirical risk minimization is very common in practice in machine learning. The proofs and the constants in big- $O$ are deferred in Appendix C. ",
723
+ "bbox": [
724
+ 173,
725
+ 619,
726
+ 826,
727
+ 718
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "3.1 Background and assumptions ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 174,
737
+ 729,
738
+ 419,
739
+ 744
740
+ ],
741
+ "page_idx": 4
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "We start by stating some regularity assumptions on the functions $F$ and $G$ . ",
746
+ "bbox": [
747
+ 176,
748
+ 752,
749
+ 661,
750
+ 767
751
+ ],
752
+ "page_idx": 4
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Assumption 3.1. The function $F$ is twice differentiable. The derivatives $\\nabla F$ and $\\nabla ^ { 2 } F$ are Lipschitz continuous in $( z , x )$ with respective Lipschitz constants $L _ { 1 } ^ { F }$ and $L _ { 2 } ^ { F }$ . ",
757
+ "bbox": [
758
+ 173,
759
+ 768,
760
+ 820,
761
+ 797
762
+ ],
763
+ "page_idx": 4
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Note that the above assumption is typically verified in the machine learning context, e.g., when $F$ is the ordinary least squares (OLS) loss or the logistic loss. ",
768
+ "bbox": [
769
+ 174,
770
+ 803,
771
+ 823,
772
+ 833
773
+ ],
774
+ "page_idx": 4
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "Assumption 3.2. The function $G$ is three times continuously differentiable on $\\mathbb { R } ^ { p } \\times \\mathbb { R } ^ { d }$ . For any $x \\in \\mathbb { R } ^ { d } , G ( \\cdot , x )$ is $\\mu _ { G }$ -strongly convex. The derivatives $\\overrightarrow { \\nabla G }$ , $\\nabla ^ { 2 } G$ and $\\nabla ^ { 3 } G$ are Lipschitz continuous in $( z , x )$ with respective Lipschitz constants $L _ { 1 } ^ { G }$ , $L _ { 2 } ^ { G }$ and $L _ { 3 } ^ { G }$ . ",
779
+ "bbox": [
780
+ 174,
781
+ 834,
782
+ 825,
783
+ 877
784
+ ],
785
+ "page_idx": 4
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "Strong convexity and smoothness with respect to $z$ of $G$ are verified when $G$ is a regularized leastsquares/logistic regression with a full rank design matrix, when the data is not separable for the logistic regression. Moreover, the strong convexity ensures the existence and uniqueness of the inner optimization problem for any $x \\in \\mathbb { R } ^ { d }$ . ",
790
+ "bbox": [
791
+ 174,
792
+ 882,
793
+ 823,
794
+ 911
795
+ ],
796
+ "page_idx": 4
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "",
801
+ "bbox": [
802
+ 174,
803
+ 90,
804
+ 823,
805
+ 119
806
+ ],
807
+ "page_idx": 5
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Assumption 3.3. There exists $C _ { F } ~ > ~ 0$ such that for any $x$ we have $\\| \\nabla _ { 1 } F ( z ^ { * } ( x ) , x ) \\| \\leq C _ { F } .$ ",
812
+ "bbox": [
813
+ 171,
814
+ 123,
815
+ 795,
816
+ 138
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "This assumption, combined with the strong convexity of $G ( \\cdot , x )$ , shows boundedness of $v ^ { * }$ . This assumption holds, for instance, in the case of hyperparameters selection for a Ridge regression problem. Note that in Assumptions 3.1 and 3.2, we assume more regularity of $F$ and $G$ than in stochastic bilevel optimization literature (see for instance [19, 24, 26, 2]). It is necessary to get the smoothness of $v ^ { * }$ which will allow to adapt the proof of Chen et al. [9] and get tight convergence rates. The following lemma gives us some smoothness properties of the considered directions that will be useful to derive convergence rates of our methods. ",
823
+ "bbox": [
824
+ 173,
825
+ 146,
826
+ 825,
827
+ 244
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "Lemma 3.4. Under the Assumptions 3.1 to 3.3, there exist constants $L _ { z }$ , $L _ { v }$ and $L _ { x }$ such that $\\begin{array} { r } { \\| D _ { z } ( z , v , x ) \\| ^ { 2 } \\leq L _ { z } ^ { 2 } \\| z - z ^ { * } ( \\hat { x } ) \\| ^ { 2 } , \\ \\| D _ { v } ( z , v , x ) \\| ^ { 2 } \\leq L _ { v } ^ { 2 } ( \\| z - z ^ { * } ( x ) \\| ^ { 2 } + \\| v - v ^ { * } ( x ) \\| ^ { 2 } ) } \\end{array}$ and $\\| D _ { x } ( z , v , x ) - \\nabla h ( x ) \\| ^ { 2 } \\leq L _ { x } ^ { 2 } ( \\| z - z ^ { * } ( x ) \\| ^ { 2 } + \\| v - v ^ { * } ( x ) \\| ^ { 2 } )$ . ",
834
+ "bbox": [
835
+ 173,
836
+ 248,
837
+ 825,
838
+ 292
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "In first order optimization, a fundamental assumption on the objective function is the smoothness assumption. In the case of vanilla gradient descent applied to a function $f$ , it allows to get a convergence rate of $\\| \\nabla f ( x ^ { t } ) \\| ^ { 2 }$ in $O ( \\bar { 1 } / T )$ , i.e. convergence to a stationary point [36]. The following lemma proved by Ghadimi and Wang [19, Lemma 2.2] ensures the smoothness of $h$ . ",
845
+ "bbox": [
846
+ 173,
847
+ 299,
848
+ 825,
849
+ 354
850
+ ],
851
+ "page_idx": 5
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Lemma 3.5. Under the Assumptions 3.1 to 3.3, the function $h$ is $L ^ { h }$ -smooth for some $L ^ { h } > 0$ . ",
856
+ "bbox": [
857
+ 169,
858
+ 358,
859
+ 792,
860
+ 373
861
+ ],
862
+ "page_idx": 5
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "The constant $L ^ { h }$ is specified in Appendix C.3. As usual with the analysis of stochastic methods, we define the expected norms of the directions $V _ { z } ^ { t } = \\mathbb { E } [ \\| D _ { z } ^ { t } \\| ^ { 2 } ]$ , $V _ { v } ^ { t } = \\dot { \\mathbb { E } } [ \\| D _ { v } ^ { t } \\| ^ { 2 } ]$ and $V _ { x } ^ { t } = \\mathbb { E } [ \\| D _ { x } ^ { t } \\| ^ { 2 } ]$ , where the expectation is taken over the past. Thanks to variance-bias decomposition, they are the sum of the variance of the stochastic direction and the squared-norm of the unbiased direction. For SOBA, we use classical bounds on variances like those found for instance in [24]: ",
867
+ "bbox": [
868
+ 173,
869
+ 381,
870
+ 826,
871
+ 452
872
+ ],
873
+ "page_idx": 5
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Assumption 3.6. There exists $B _ { z }$ , $B _ { v }$ and $B _ { x }$ such that for all $t$ , $\\begin{array} { r l r } { \\mathbb { E } _ { t } [ \\| D _ { z } ^ { t } \\| ^ { 2 } ] } & { { } \\le } & { B _ { z } ^ { 2 } ( 1 + \\| D _ { z } ( z ^ { t } , v ^ { t } , x ^ { t } ) \\| ^ { 2 } ) } \\end{array}$ and $\\begin{array} { r } { \\mathbb { E } _ { t } [ \\| D _ { v } ^ { t } \\| ^ { 2 } ] \\ \\leq \\ B _ { v } ^ { 2 } ( 1 + \\| D _ { v } ( z ^ { t } , v ^ { t } , x ^ { t } ) \\| ^ { 2 } ) } \\end{array}$ where $\\mathbb { E } _ { t }$ denotes the expectation conditionally to $( z ^ { t } , v ^ { t } , \\ddot { x } ^ { t } )$ . ",
878
+ "bbox": [
879
+ 174,
880
+ 454,
881
+ 826,
882
+ 500
883
+ ],
884
+ "page_idx": 5
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "For SOBA and SABA, we need to bound the expected norm of $D _ { x } ^ { t }$ . For SABA, this assumption allows to get a the same sample complexity as SAGA for single level problems. ",
889
+ "bbox": [
890
+ 173,
891
+ 506,
892
+ 823,
893
+ 535
894
+ ],
895
+ "page_idx": 5
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Assumption 3.7. There exists $B _ { x }$ such that for all $t$ , $\\mathbb { E } _ { t } [ \\| D _ { x } ^ { t } \\| ^ { 2 } ] \\leq B _ { x } ^ { 2 }$ . ",
900
+ "bbox": [
901
+ 174,
902
+ 537,
903
+ 642,
904
+ 554
905
+ ],
906
+ "page_idx": 5
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Assumptions 3.6 and 3.7 are verified for instance, if all the $G _ { i }$ and $\\nabla _ { 1 } G _ { i }$ have at most quadratic growth, and if $F$ has bounded gradients. They are also verified if the iterates remain in a compact set. Note that we do not assume that $G$ has bounded gradients, as this would contradict its strong-convexity. Finally, for the analysis of SABA, we need regularity on each $G _ { i }$ and $F _ { j }$ : ",
911
+ "bbox": [
912
+ 174,
913
+ 560,
914
+ 826,
915
+ 617
916
+ ],
917
+ "page_idx": 5
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Assumption 3.8. For all $i \\in [ n ]$ and $j \\in [ m ]$ , the functions $\\nabla G _ { i }$ , $\\nabla F _ { j }$ , $\\nabla _ { 1 1 } ^ { 2 } G _ { i }$ and $\\nabla _ { 2 1 } ^ { 2 } G _ { i }$ are Lipschitz continuous in $( z , x )$ . ",
922
+ "bbox": [
923
+ 174,
924
+ 622,
925
+ 823,
926
+ 652
927
+ ],
928
+ "page_idx": 5
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "3.2 Fundamental descent lemmas ",
933
+ "text_level": 1,
934
+ "bbox": [
935
+ 174,
936
+ 664,
937
+ 419,
938
+ 679
939
+ ],
940
+ "page_idx": 5
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Our analysis for SOBA and SABA is based on the control of both $\\delta _ { z } ^ { t } = \\mathbb { E } [ \\| z ^ { t } - z ^ { * } ( x ^ { t } ) \\| ^ { 2 } ]$ and $\\delta _ { v } ^ { t } = \\mathbb E [ | | \\bar { v } ^ { t } - v ^ { * } ( x ^ { t } ) | | ^ { 2 } ]$ , Strong convexity of $G$ and smoothness of $z ^ { * } ( x )$ and $v ^ { * } ( x )$ allow to obtain the following lemma by adapting the proof of Chen et al. [9]. In what follows, we drop the dependency of the step sizes $\\rho$ and $\\gamma$ in $t$ for clarity. ",
945
+ "bbox": [
946
+ 173,
947
+ 688,
948
+ 825,
949
+ 746
950
+ ],
951
+ "page_idx": 5
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Lemma 3.9. Assume that $\\begin{array} { r } { \\gamma ^ { 2 } \\leq \\operatorname* { m i n } \\left( \\frac { \\mu _ { G } L _ { * } ^ { 2 } } { 4 B _ { x } ^ { 2 } L _ { z x } ^ { 2 } } , \\frac { \\mu _ { G } L _ { * } ^ { 2 } } { 8 B _ { x } ^ { 2 } L _ { v x } ^ { 2 } } \\right) \\rho } \\end{array}$ . We have: ",
956
+ "bbox": [
957
+ 173,
958
+ 748,
959
+ 624,
960
+ 775
961
+ ],
962
+ "page_idx": 5
963
+ },
964
+ {
965
+ "type": "equation",
966
+ "img_path": "images/f65f526ac4a0f42f4512be04e32029c311e51a7726b022d8c22f66a6cb7df06b.jpg",
967
+ "text": "$$\n\\begin{array} { r l } & { \\delta _ { z } ^ { t + 1 } \\leq \\left( 1 - \\frac { \\rho \\mu _ { G } } { 4 } \\right) \\delta _ { z } ^ { t } + 2 \\rho ^ { 2 } V _ { z } ^ { t } + \\beta _ { z x } \\gamma ^ { 2 } V _ { x } ^ { t } + \\overline { { \\beta } } _ { z x } \\frac { \\gamma ^ { 2 } } { \\rho } \\mathbb { E } [ \\| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \\| ^ { 2 } ] } \\\\ & { \\delta _ { v } ^ { t + 1 } \\leq \\left( 1 - \\frac { \\rho \\mu _ { G } } { 8 } \\right) \\delta _ { v } ^ { t } + \\beta _ { v z } \\rho \\delta _ { z } ^ { t } + 2 \\rho ^ { 2 } V _ { v } ^ { t } + \\beta _ { v x } \\gamma ^ { 2 } V _ { x } ^ { t } + \\overline { { \\beta } } _ { z x } \\frac { \\gamma ^ { 2 } } { \\rho } \\mathbb { E } [ \\| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \\| ^ { 2 } ] } \\end{array}\n$$",
968
+ "text_format": "latex",
969
+ "bbox": [
970
+ 215,
971
+ 780,
972
+ 782,
973
+ 851
974
+ ],
975
+ "page_idx": 5
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "where $\\beta _ { z x } = \\beta _ { v x } = 3 L _ { * } ^ { 2 }$ , $\\begin{array} { r } { \\overline { { \\beta } } _ { z x } \\ : = \\ : \\frac { 8 L _ { * } ^ { 2 } } { \\mu _ { G } } } \\end{array}$ , $\\begin{array} { r } { \\overline { { \\beta } } _ { v x } = { \\frac { 1 6 L _ { * } ^ { 2 } } { \\mu _ { G } } } } \\end{array}$ , $L _ { * }$ is the maximum between the Lipschitz constants of and ∗ zx (see Lemma ), , , and are respectively $z ^ { * }$ $v ^ { * }$ $C . I$ $\\begin{array} { r } { \\beta _ { v z } = \\frac { \\mathrm { ~ i ~ } } { \\mu _ { G } ^ { 3 } } ( L _ { 1 } ^ { F } \\mu _ { G } + L _ { 2 } ^ { G } ) ^ { 2 } } \\end{array}$ $L _ { z x }$ $L _ { v x }$ the smoothness constants of $z ^ { * }$ and $v ^ { * }$ . ",
980
+ "bbox": [
981
+ 174,
982
+ 856,
983
+ 825,
984
+ 911
985
+ ],
986
+ "page_idx": 5
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "We insist that this result is obtained in general for Algorithm 1 with arbitrary unbiased directions. We can therefore invoke this lemma for the analysis of both SOBA and SABA. We use the smoothness of $h$ to get the following lemma, which is similar to [9, Lemma 1]. ",
991
+ "bbox": [
992
+ 173,
993
+ 90,
994
+ 825,
995
+ 133
996
+ ],
997
+ "page_idx": 6
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Lemma 3.10. Let $h ^ { t } = \\mathbb { E } [ h ( x ^ { t } ) ]$ and $g ^ { t } = \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ]$ . We have ",
1002
+ "bbox": [
1003
+ 173,
1004
+ 136,
1005
+ 620,
1006
+ 152
1007
+ ],
1008
+ "page_idx": 6
1009
+ },
1010
+ {
1011
+ "type": "equation",
1012
+ "img_path": "images/60a8b5e303f000db113358f398206514b13d198f9e3b9f31ffa2140a730db22f.jpg",
1013
+ "text": "$$\nh ^ { t + 1 } \\leq h ^ { t } - \\frac { \\gamma } { 2 } g ^ { t } - \\frac { \\gamma } { 2 } \\mathbb { E } [ \\| D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) \\| ^ { 2 } ] + \\frac { \\gamma } { 2 } L _ { x } ^ { 2 } ( \\delta _ { z } ^ { t } + \\delta _ { v } ^ { t } ) + \\frac { L ^ { h } } { 2 } \\gamma ^ { 2 } V _ { x } ^ { t } ~ .\n$$",
1014
+ "text_format": "latex",
1015
+ "bbox": [
1016
+ 251,
1017
+ 157,
1018
+ 745,
1019
+ 189
1020
+ ],
1021
+ "page_idx": 6
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "If $z ^ { t } = z ^ { * } ( x ^ { t } )$ , $v ^ { t } = v ^ { * } ( x ^ { t } )$ , that is $\\delta _ { z } , \\delta _ { v }$ both cancel and $D _ { x } ( z ^ { t } , v ^ { t } , x ^ { t } ) = \\nabla h ( x ^ { t } )$ , we get an inequality reminiscent of the smoothness inequality for SGD on $h$ . ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 196,
1029
+ 825,
1030
+ 227
1031
+ ],
1032
+ "page_idx": 6
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "3.3 Analysis of SOBA ",
1037
+ "text_level": 1,
1038
+ "bbox": [
1039
+ 173,
1040
+ 238,
1041
+ 338,
1042
+ 255
1043
+ ],
1044
+ "page_idx": 6
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "The analysis of SOBA is based on Lemmas 3.5 and 3.9. We have the following theorem, with fixed step sizes depending on the number of iterations: ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 261,
1052
+ 823,
1053
+ 290
1054
+ ],
1055
+ "page_idx": 6
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Theorem 1 (Convergence of SOBA, fixed step size). Fix an iteration $T > 1$ and assume that Assumptions 3.1 to 3.7 hold. We consider fixed steps $\\begin{array} { r } { \\rho ^ { t } = \\frac { \\overline { { \\rho } } } { \\sqrt { T } } } \\end{array}$ and $\\gamma ^ { t } = \\xi \\rho ^ { t }$ with $\\overline { \\rho }$ and $\\xi$ precised in the appendix. Let $( x ^ { t } ) _ { t \\geq 1 }$ the sequence of outer iterates for SOBA. Then, ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 299,
1063
+ 826,
1064
+ 349
1065
+ ],
1066
+ "page_idx": 6
1067
+ },
1068
+ {
1069
+ "type": "equation",
1070
+ "img_path": "images/9da4ca1859e2f4486e6a59330ee7e0b44553df77ed6dbacadf22987a95fb4189.jpg",
1071
+ "text": "$$\n\\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ] = O ( T ^ { - \\frac { 1 } { 2 } } ) \\mathrm { ~ . ~ }\n$$",
1072
+ "text_format": "latex",
1073
+ "bbox": [
1074
+ 380,
1075
+ 356,
1076
+ 617,
1077
+ 398
1078
+ ],
1079
+ "page_idx": 6
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "As opposed to [24], we do not need that the ratio $\\frac { \\gamma } { \\rho }$ goes to 0, which allows to get a complexity (that is, the number of call to oracles to have an $\\epsilon$ -stationary solution) in $O ( \\epsilon ^ { - 2 } )$ better than the $\\tilde { O } ( \\epsilon ^ { - \\frac { 5 } { 2 } } )$ they have. Also, note that this rate is the same as the one of SGD for non-convex and smooth objective [18, 8]. We obtain a similar rate using decreasing step sizes: ",
1084
+ "bbox": [
1085
+ 173,
1086
+ 407,
1087
+ 826,
1088
+ 472
1089
+ ],
1090
+ "page_idx": 6
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Theorem 2 (Convergence of SOBA, decreasing step size). Assume that Assumptions 3.1 to 3.7 hold. We consider steps $\\rho ^ { t } = \\overline { { \\rho } } t ^ { - \\frac { 1 } { 2 } }$ and $\\gamma ^ { t } = \\xi \\rho$ . Let $x ^ { t }$ the sequence of outer iterates for SOBA. Then, ",
1095
+ "bbox": [
1096
+ 173,
1097
+ 481,
1098
+ 823,
1099
+ 512
1100
+ ],
1101
+ "page_idx": 6
1102
+ },
1103
+ {
1104
+ "type": "equation",
1105
+ "img_path": "images/76826469efea4ca34fad1e18a86a761b926bb4edffb1f2b761a265b1f6c9ee23.jpg",
1106
+ "text": "$$\n\\operatorname* { i n f } _ { t \\leq T } \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ] = O ( \\log ( T ) T ^ { - { \\frac { 1 } { 2 } } } ) \\enspace .\n$$",
1107
+ "text_format": "latex",
1108
+ "bbox": [
1109
+ 367,
1110
+ 518,
1111
+ 629,
1112
+ 545
1113
+ ],
1114
+ "page_idx": 6
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "As for SGD, SOBA suffers from the need of decreasing step sizes to get actual convergence because of the variance of the estimation on each directions. On the other hand, the analysis of SABA leverages the dynamic of all three variables, resulting in fast convergence with fixed step sizes. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 554,
1122
+ 826,
1123
+ 598
1124
+ ],
1125
+ "page_idx": 6
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "3.4 SABA: a stochastic method with optimal rates ",
1130
+ "text_level": 1,
1131
+ "bbox": [
1132
+ 173,
1133
+ 609,
1134
+ 534,
1135
+ 626
1136
+ ],
1137
+ "page_idx": 6
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "In what follows, we denote $N = n + m$ the total number of samples. The following theorem shows $O ( N ^ { \\frac { 2 } { 3 } } T ^ { - 1 } )$ convergence for the SABA algorithm in the general case where we only assume smoothness of $h$ . Our analysis of SABA is inspired by the analysis of single-level SAGA by Reddi et al. [40]. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 632,
1145
+ 825,
1146
+ 690
1147
+ ],
1148
+ "page_idx": 6
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Theorem 3 (Convergence of SABA, smooth case). Assume that Assumptions 3.1 to 3.3 and 3.7 to 3.8 hold. We suppose $\\rho = \\rho ^ { \\prime } N ^ { - \\frac { 2 } { 3 } }$ and $\\gamma = \\xi \\rho$ , where $\\rho ^ { \\prime }$ and $\\xi$ depend only on $F$ and $G$ and are specified in appendix. Let $x ^ { t }$ the iterates of SABA. Then, ",
1153
+ "bbox": [
1154
+ 171,
1155
+ 699,
1156
+ 826,
1157
+ 744
1158
+ ],
1159
+ "page_idx": 6
1160
+ },
1161
+ {
1162
+ "type": "equation",
1163
+ "img_path": "images/fa9814b49bb946cfb9c109ef1f9ae2cd5d2de464d1eeead1b48bf982b7720ed3.jpg",
1164
+ "text": "$$\n\\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ \\| \\nabla h ( x ^ { t } ) \\| ^ { 2 } ] = O \\left( N ^ { \\frac { 2 } { 3 } } T ^ { - 1 } \\right) \\ .\n$$",
1165
+ "text_format": "latex",
1166
+ "bbox": [
1167
+ 364,
1168
+ 751,
1169
+ 633,
1170
+ 794
1171
+ ],
1172
+ "page_idx": 6
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "To prodefine $\\begin{array} { r } { { S } ^ { t } = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\| y ^ { t } - w _ { i } ^ { t } \\| ^ { 2 } + \\frac { 1 } { m } \\sum _ { j = 1 } ^ { m } \\| y ^ { t } - \\tilde { w } _ { j } ^ { t } \\| ^ { 2 } } \\end{array}$ m the memory to the current variables. We. In appendix, we show that we can find $\\phi _ { s } , \\phi _ { z } , \\phi _ { v } > 0$ such that the quantity $\\mathcal { L } ^ { t } = h ^ { t } + \\phi _ { s } S ^ { t } + \\phi _ { z } \\delta _ { z } ^ { t } + \\phi _ { v } \\delta _ { v } ^ { t }$ \nSumming these inequalities for $t = 1 \\dots T$ and using the fact that $\\textstyle { \\mathcal { L } } ^ { t }$ is lower bounded demonstrates \nthe theorem. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 803,
1180
+ 826,
1181
+ 878
1182
+ ],
1183
+ "page_idx": 6
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Note that the step sizes are constant with respect to the time, but they scale with $N ^ { - \\frac { 2 } { 3 } }$ . As a consequence, the sample complexity is $O ( N ^ { \\frac { 2 } { 3 } } \\epsilon ^ { - 1 } )$ which is analogous of the one of SAGA for non-convex single level problems [40]. This is better than the sample complexity of Algorithm 1 with full batch directions, which is $O ( N \\epsilon ^ { - 1 } )$ . Hence, with SABA, we get the best of both worlds: the stochasticity makes the scaling in $N$ of the sample complexity goes from $N$ in full batch mode to $N ^ { \\frac { 2 } { 3 } }$ for SABA, and the variance reduction makes the scaling in $\\epsilon$ goes from $\\epsilon ^ { - 2 }$ for SOBA to $\\epsilon ^ { - 1 }$ for SABA. Our experiments in Section 4 confirm this gain. ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 881,
1191
+ 823,
1192
+ 912
1193
+ ],
1194
+ "page_idx": 6
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "",
1199
+ "bbox": [
1200
+ 174,
1201
+ 90,
1202
+ 825,
1203
+ 164
1204
+ ],
1205
+ "page_idx": 7
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Furthermore, if we assume that $h$ satisfies a Polyak-Łojasiewicz (PL) inequality, we recover linear convergence. Recall that $h$ has the PL property if there exists $\\mu _ { h } > 0$ such that for all $x \\in \\mathbb { R } ^ { d }$ $\\begin{array} { r } { \\frac { 1 } { 2 } \\| \\nabla h ( \\bar { \\boldsymbol { x } } ) \\| ^ { 2 } \\geq \\mu _ { h } ( h ( \\boldsymbol { x } ) - h ^ { * } ) } \\end{array}$ with $h ^ { * }$ the minimum of $h$ . ",
1210
+ "bbox": [
1211
+ 176,
1212
+ 166,
1213
+ 823,
1214
+ 209
1215
+ ],
1216
+ "page_idx": 7
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Theorem 4 (Convergence of SABA, PL case). Assume that $h$ satisfies the PL inequality and that Assumptions 3.1 to 3.3 and 3.7 to 3.8 hold. We suppose $\\rho = \\rho ^ { \\prime } N ^ { - \\frac { 2 } { 3 } }$ and $\\gamma = \\xi \\rho ^ { \\prime } N ^ { - 1 }$ , where $\\rho ^ { \\prime }$ and $\\xi$ depend only on $F$ and $G$ and are specified in appendix. Let $x ^ { t }$ the iterates of SABA and $\\begin{array} { r } { c ^ { \\prime } \\triangleq \\operatorname* { m i n } \\left( \\mu _ { h } , \\frac { 1 } { 1 6 P ^ { \\prime } } \\right) } \\end{array}$ with $P ^ { \\prime }$ specified in the appendix. Then, ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 219,
1224
+ 826,
1225
+ 281
1226
+ ],
1227
+ "page_idx": 7
1228
+ },
1229
+ {
1230
+ "type": "equation",
1231
+ "img_path": "images/d171f703a0c21f685a2182fd2abaa97c57ea243855b8b097d1c3c03eb9ed610a.jpg",
1232
+ "text": "$$\n\\mathbb { E } [ h ^ { T } ] - h ^ { * } = ( 1 - c ^ { \\prime } \\gamma ) ^ { T } ( h ^ { 0 } - h ^ { * } + C ^ { 0 } )\n$$",
1233
+ "text_format": "latex",
1234
+ "bbox": [
1235
+ 357,
1236
+ 287,
1237
+ 638,
1238
+ 306
1239
+ ],
1240
+ "page_idx": 7
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "where $C ^ { 0 }$ is a constant specified in appendix that depends on the initialization of $z , v , x$ and memory. ",
1245
+ "bbox": [
1246
+ 173,
1247
+ 313,
1248
+ 823,
1249
+ 328
1250
+ ],
1251
+ "page_idx": 7
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "The proof is similar to that of the previous theorem: we find coefficients $\\phi _ { s } , \\phi _ { z } , \\phi _ { v }$ such that $\\mathcal { L } ^ { t } \\stackrel { } { = } h ^ { t } + \\phi _ { s } S ^ { t } + \\phi _ { z } \\delta _ { z } ^ { t } + \\phi _ { v } \\delta _ { v } ^ { t }$ satisfies the inequality $\\mathcal { L } ^ { t + 1 } \\leq ( 1 - c ^ { \\prime } \\gamma ) \\mathcal { L } ^ { t }$ , which is then unrolled. Note that in the case where we initialize $z$ and $v$ with $z ^ { 0 } = z ^ { * } ( x ^ { 0 } )$ , $v ^ { 0 } = v ^ { * } ( x ^ { 0 } )$ , and the memories $w _ { i } ^ { 0 } = w ^ { 0 }$ , $\\tilde { w } _ { j } ^ { 0 } = w ^ { 0 }$ for all $i , j$ , the constant $C ^ { 0 }$ cancels and the bound simplifies to $\\mathbb { E } [ h ( x ^ { T } ) ] - h ^ { * } \\leq ( 1 - c ^ { \\prime } \\gamma ) ^ { T } ( h ( x ^ { 0 } ) - h ^ { * } )$ . ",
1256
+ "bbox": [
1257
+ 173,
1258
+ 337,
1259
+ 825,
1260
+ 411
1261
+ ],
1262
+ "page_idx": 7
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Just like classical variance reduction methods in single-level optimization, this theorem shows that our method achieves linear convergence under PL assumption on the value function. To the best of our knowledge, our method is the first stochastic bilevel optimization method that enjoys such property. We note that the PL hypothesis is more general than $\\mu _ { h }$ -strong convexity of $h - \\mathrm { i t }$ is a necessary condition for strong convexity. ",
1267
+ "bbox": [
1268
+ 174,
1269
+ 414,
1270
+ 825,
1271
+ 483
1272
+ ],
1273
+ "page_idx": 7
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "We see here the importance of global variance reduction. Indeed, using variance reduction only on $z$ and SGD on $x$ would lead to sub-linear convergence in $x$ . This would be the case even with a perfect estimation of $z ^ { * } ( x )$ . Similarly, using variance reduction only on $x$ and SGD on $z$ would lead to sub-linear convergence in $z$ , and hence in $x$ . Using global variance reduction with respect to each variable as we propose here is the only way to achieve linear convergence. We now turn to experiments, where we find that our method is also promising from a practical point of view. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 486,
1281
+ 825,
1282
+ 570
1283
+ ],
1284
+ "page_idx": 7
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "4 Experiments ",
1289
+ "text_level": 1,
1290
+ "bbox": [
1291
+ 174,
1292
+ 587,
1293
+ 312,
1294
+ 603
1295
+ ],
1296
+ "page_idx": 7
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Here we compare the performances of SOBA and SABA with competitor methods on different tasks. The different methods being compared are stocBiO [26], AmiGO [2], FSLA [30], MRBO [47], TTSA [24], BSA [19] and SUSTAIN [28]. A detailed account of the experiments is provided in Appendix B. 1 ",
1301
+ "bbox": [
1302
+ 174,
1303
+ 616,
1304
+ 826,
1305
+ 676
1306
+ ],
1307
+ "page_idx": 7
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "4.1 Hyperparameters selection ",
1312
+ "text_level": 1,
1313
+ "bbox": [
1314
+ 174,
1315
+ 690,
1316
+ 400,
1317
+ 705
1318
+ ],
1319
+ "page_idx": 7
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "The first task we perform is hyperparameters selection to choose regularization parameters on $\\ell ^ { 2 }$ logistic regression. Let us denote $( ( d _ { i } ^ { \\mathrm { t r a i n } } , y _ { i } ^ { \\mathrm { t r a i n } } ) ) _ { 1 \\leq i \\leq n }$ and $( ( d _ { i } ^ { \\mathrm { v a l } } , y _ { i } ^ { \\mathrm { v a l } } ) ) _ { 1 \\leq i \\leq m }$ the training and the validation sets. In this case, the inner variable $\\bar { \\theta }$ corresponds to the parameters of the model, and the outer variable $\\lambda$ to the regularization. The functions $F$ and $G$ of the problem (1) are the logistic loss, with $\\ell ^ { 2 }$ penalty for $G$ , that is to say $\\begin{array} { r } { F ( \\theta , \\lambda ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\varphi ( y _ { i } ^ { \\mathrm { v a l } } \\langle \\bar { d } _ { i } ^ { \\mathrm { v a l } } , \\theta \\rangle ) } \\end{array}$ and $\\begin{array} { r } { G ( \\theta , \\lambda ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\varphi ( y _ { i } ^ { \\mathrm { t r a i n } } \\langle d _ { i } ^ { \\mathrm { t r a i n } } , \\theta \\rangle ) + \\frac { 1 } { 2 } \\sum _ { k = 1 } ^ { p } e ^ { \\lambda _ { k } } \\theta _ { k } ^ { 2 } } \\end{array}$ where $\\varphi ( u ) = \\log ( 1 + e ^ { - u } )$ . We fit a binary classification model on the IJCNN $1 ^ { 2 }$ dataset. Here, $n = 4 9 9 9 0$ , $m = 9 1 7 0 1$ and $p = 2 2$ . ",
1324
+ "bbox": [
1325
+ 173,
1326
+ 713,
1327
+ 825,
1328
+ 815
1329
+ ],
1330
+ "page_idx": 7
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "The suboptimality gap is plotted in Figure $2 \\mathrm { a }$ for each method. The lowest values are reached by SABA. Moreover, SABA is the only single-loop method that reaches a suboptimality below $1 0 ^ { - 5 }$ SOBA reaches a quite high final value but slightly better than TTSA and FSLA. The gap between ",
1335
+ "bbox": [
1336
+ 176,
1337
+ 818,
1338
+ 823,
1339
+ 861
1340
+ ],
1341
+ "page_idx": 7
1342
+ },
1343
+ {
1344
+ "type": "image",
1345
+ "img_path": "images/2688ecd25ca7cb86a395fda5ce9b688673c5e37d3422795d1fc2b1b4c85e6aab.jpg",
1346
+ "image_caption": [
1347
+ "Figure 2: Comparison of SOBA and SABA with other stochastic bilevel optimization methods. For each algorithm, we plot the median performance over 10 runs. In both experiments, SABA achieves the best performance. The dashed lines are for one loop competitor methods, the dotted lines are for two loops methods and the solid lines are the proposed methods. Left: hyperparameter selection for $\\ell ^ { 2 }$ penalized logistic regression on IJCNN1 dataset , Right: data hyper-cleaning on MNIST with $p = 0 . 5$ corruption rate. "
1348
+ ],
1349
+ "image_footnote": [],
1350
+ "bbox": [
1351
+ 173,
1352
+ 89,
1353
+ 820,
1354
+ 227
1355
+ ],
1356
+ "page_idx": 8
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "SOBA and SABA highlights the benefits of variance reduction: it gives us a lower plateau and the fixed step sizes enable faster convergence. ",
1361
+ "bbox": [
1362
+ 174,
1363
+ 325,
1364
+ 823,
1365
+ 354
1366
+ ],
1367
+ "page_idx": 8
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "4.2 Data hyper-cleaning ",
1372
+ "text_level": 1,
1373
+ "bbox": [
1374
+ 174,
1375
+ 367,
1376
+ 354,
1377
+ 382
1378
+ ],
1379
+ "page_idx": 8
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "The second task we perform is data hyper-cleaning introduced in [16] on the $\\mathsf { M N I S T } ^ { 3 }$ dataset. The data is patitioned into a training set $( d _ { i } ^ { \\mathrm { t r a i \\bar { n } } } , y _ { i } ^ { \\mathrm { t r a i n } } )$ , a validation set $( d _ { i } ^ { \\mathrm { v a l } } , y _ { i } ^ { \\mathrm { v a l } } )$ , and a test set. The training set contains 20000 samples, the validation set 5000 samples and the test set 10000 samples. The targets $y$ take values in $\\{ 0 , \\ldots , 9 \\}$ and the samples $x$ are in dimension 784. Each sample in the training set is corrupted with probability $p$ : a sample is corrupted when we replace its label $y _ { i }$ by a random label in $\\{ 0 , \\ldots , 9 \\}$ . Samples in the validation and test sets are not corrupted. The goal of datacleaning is to train a multinomial logistic regression on the train set and learn a weight per training sample, that should go to 0 for corrupted samples. This is formalized by the bilevel optimization problem (1) with $\\begin{array} { r } { F ( \\mathbf { \\Sigma } \\breve { \\theta , \\lambda } ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\dot { \\ell } ( \\theta d _ { i } ^ { \\mathrm { v a l } } , \\dot { y _ { i } ^ { \\mathrm { v a l } } } ) } \\end{array}$ and $\\begin{array} { r } { G ( \\theta , \\lambda ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n ^ { - } } \\sigma ( \\lambda _ { i } ) \\ell ( \\theta d _ { i } ^ { \\mathrm { t r a i n } } , y _ { i } ^ { \\mathrm { t r a i n } } ) \\dot { + } C _ { r } \\| \\theta \\| ^ { 2 } } \\end{array}$ where $\\ell$ is the cross entropy loss and $\\sigma$ is the sigmoid function. The inner variable $\\theta$ is a matrix of size $1 0 \\times 7 8 4$ , and the outer variable $\\lambda$ is a vector in dimension $n _ { \\mathrm { t r a i n } } = 2 0 0 0 0$ . ",
1384
+ "bbox": [
1385
+ 173,
1386
+ 391,
1387
+ 825,
1388
+ 544
1389
+ ],
1390
+ "page_idx": 8
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "For the estimated parameters $\\theta$ during optimization, we report in Figure 2b the test error, i.e., the percent of wrong predictions on the testing data. We use for this experiment a corruption probability $p = 0 . 5$ . In general, the error decreases quickly until it reaches a final value. We observe that our method SABA outperforms all the other methods by reaching faster its smallest error, which is smaller than the ones of the other methods. For SOBA, it reaches a lower final error than stocBiO and BSA. In appendix, we provide other convergence curves, and find that for higher values of $p$ , SABA is still the fastest algorithm to reach its final accuracy. Overall, we find that among all methods, even those that implement variance reduction (that is FSLA, MRBO, SUSTAIN, SABA), SABA is the one that demonstrates the best empirical performance. ",
1395
+ "bbox": [
1396
+ 173,
1397
+ 546,
1398
+ 825,
1399
+ 671
1400
+ ],
1401
+ "page_idx": 8
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "5 Conclusion ",
1406
+ "text_level": 1,
1407
+ "bbox": [
1408
+ 174,
1409
+ 688,
1410
+ 299,
1411
+ 705
1412
+ ],
1413
+ "page_idx": 8
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "In this paper, we have presented a framework for bilevel optimization that enables the straightforward development of stochastic algorithms. The gist of our framework is that the directions in Equations (4) to (6) are all written as simple sums of samples derivatives. We leveraged this fact to propose SOBA, an extension of SGD to our framework, and SABA, an extension of SAGA to our framework, which both achieve similar convergence rates as their single level counterparts. Finally, we think that our framework opens a large panel of potential methods for stochastic bilevel optimization involving techniques of extrapolation, variance reduction, momentum and so on. ",
1418
+ "bbox": [
1419
+ 174,
1420
+ 717,
1421
+ 826,
1422
+ 815
1423
+ ],
1424
+ "page_idx": 8
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Acknowledgments and Disclosure of Funding ",
1429
+ "text_level": 1,
1430
+ "bbox": [
1431
+ 174,
1432
+ 830,
1433
+ 555,
1434
+ 848
1435
+ ],
1436
+ "page_idx": 8
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "We thank Othmane Sebbouh, Zaccharie Ramzi and Benoît Malézieux for their precious comments. The authors acknowledge the support of the ANER RAGA BFC. SV acknowledges the support of the ANR GraVa ANR-18-CE40-0005. This work is supported by a public grant overseen by the French National Research Agency (ANR) through the program UDOPIA, project funded by the ANR-20-THIA-0013-01 and DATAIA convergence institute (ANR-17-CONV-0003). ",
1441
+ "bbox": [
1442
+ 174,
1443
+ 859,
1444
+ 825,
1445
+ 888
1446
+ ],
1447
+ "page_idx": 8
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "",
1452
+ "bbox": [
1453
+ 173,
1454
+ 90,
1455
+ 823,
1456
+ 133
1457
+ ],
1458
+ "page_idx": 9
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "References \n[1] Zeeshan Akhtar, Amrit Singh Bedi, Srujan Teja Thomdapu, and Ketan Rajawat. Projection-Free Algorithm for Stochastic Bi-level Optimization. preprint ArXiv 2110.11721, 2021. \n[2] Michael Arbel and Julien Mairal. Amortized Implicit Differentiation for Stochastic Bilevel Optimization. In International Conference on Learning Representations (ICLR), 2022. \n[3] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep Equilibrium Models. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2019. \n[4] Atilim Gunes Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. Automatic differentiation in Machine Learning: A survey. Journal of Machine Learning Research, 18(153):1–43, 2018. \n[5] Yoshua Bengio. Gradient-Based Optimization of Hyperparameters. Neural Computation, 12(8): 1889–1900, 2000. \n[6] Quentin Bertrand, Quentin Klopfenstein, Mathieu Blondel, Samuel Vaiter, Alexandre Gramfort, and Joseph Salmon. Implicit differentiation of lasso-type models for hyperparameter optimization. In International Conference on Machine Learning (ICML), pages 810–821. PMLR, 2020. \n[7] Léon Bottou. Large-Scale Machine Learning with Stochastic Gradient Descent. In Proceedings of COMPSTAT, pages 177–186. Physica-Verlag HD, Heidelberg, 2010. \n[8] Léon Bottou, Frank E. Curtis, and Jorge Nocedal. Optimization methods for large-scale Machine Learning. Siam Reviews, 60(2):223–311, 2018. \n[9] Tianyi Chen, Yuejiao Sun, and Wotao Yin. Closing the Gap: Tighter Analysis of Alternating Stochastic Gradient Methods for Bilevel Problems. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021. \n[10] Tianyi Chen, Yuejiao Sun, and Wotao Yin. A Single-Timescale Stochastic Bilevel Optimization Method. In International Conference on Artificial Intelligence and Statistics (AISTATS), 2022. \n[11] Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. AutoAugment: Learning Augmentation Strategies From Data. In CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 113–123. IEEE, 2019. \n[12] Ashok Cutkosky and Francesco Orabona. Momentum-based variance reduction in non-convex SGD. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2019. \n[13] Aaron Defazio, Francis Bach, and Simon Lacoste-Julien. SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectives. In Advances in Neural Information Processing Systems (NeurIPS), volume 28, pages 1646–1654, Montreal, QC, Canada, December 2014. Curran Associates, Inc. \n[14] Justin Domke. Generic methods for optimization-based modeling. In International Conference on Artificial Intelligence and Statistics (AISTAT), volume 22, pages 318–326. PMLR, 2012. \n[15] Cong Fang, Chris Junchi Li, Zhouchen Lin, and Tong Zhang. SPIDER: Near-Optimal NonConvex Optimization via Stochastic Path Integrated Differential Estimator. In Advances in Neural Information Processing Systems (NeurIPS), 2018. \n[16] Luca Franceschi, Michele Donini, Paolo Frasconi, and Massimiliano Pontil. Forward and reverse gradient-based hyperparameter optimization. In International Conference on Machine Learning (ICML), pages 1165–1173. PMLR, 2017. \n[17] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimiliano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In International Conference on Machine Learning (ICML), pages 1568–1577. PMLR, 2018. \n[18] Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013. doi: 10.1137/ 120880811. \n[19] Saeed Ghadimi and Mengdi Wang. Approximation Methods for Bilevel Programming. preprint ArXiv 1802.02246, 2018. \n[20] Riccardo Grazzi, Luca Franceschi, Massimiliano Pontil, and Saverio Salzo. On the iteration complexity of hypergradient computation. In International Conference on Machine Learning (ICML), pages 3748–3758. PMLR, 2020. \n[21] Riccardo Grazzi, Massimiliano Pontil, and Saverio Salzo. Convergence properties of stochastic hypergradients. In International Conference on Artificial Intelligence and Statistics (AISTAT), pages 3826–3834. PMLR, 2021. \n[22] Zhishuai Guo, Quanqi Hu, Lijun Zhang, and Tianbao Yang. Randomized Stochastic VarianceReduced Methods for Multi-Task Stochastic Bilevel Optimization. preprint ArXiv 2105.02266, 2021. \n[23] Zhishuai Guo, Yi Xu, Wotao Yin, Rong Jin, and Tianbao Yang. On Stochastic Moving-Average Estimators for Non-Convex Optimization. preprint ArXiv 2104.14840, 2021. \n[24] Mingyi Hong, Hoi-To Wai, Zhaoran Wang, and Zhuoran Yang. A Two-Timescale Framework for Bilevel Optimization: Complexity Analysis and Application to Actor-Critic. preprint ArXiv 2007.05170, 2021. \n[25] Feihu Huang and Heng Huang. BiAdam: Fast Adaptive Bilevel Optimization Methods. preprint ArXiv 2106.11396, 2021. \n[26] Kaiyi Ji, Junjie Yang, and Yingbin Liang. Bilevel optimization: Convergence analysis and enhanced design. In International Conference on Machine Learning (ICML), pages 4882–4892. PMLR, 2021. \n[27] Rie Johnson and Tong Zhang. Accelerating stochastic gradient descent using predictive variance reduction. In Advances in Neural Information Processing Systems (NeurIPS), volume 26. Curran Associates, Inc., 2013. \n[28] Prashant Khanduri, Siliang Zeng, Mingyi Hong, Hoi-To Wai, Zhaoran Wang, and Zhuoran Yang. A Near-Optimal Algorithm for Stochastic Bilevel Optimization via Double-Momentum. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021. \n[29] Siu Kwan Lam, Antoine Pitrou, and Stanley Seibert. Numba: A llvm-based python jit compiler. In Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC, pages 1–6, 2015. \n[30] Junyi Li, Bin Gu, and Heng Huang. A Fully Single Loop Algorithm for Bilevel Optimization without Hessian Inverse. In Proceedings of the Thirty-sixth AAAI Conference on Artificial Intelligence, AAAI’22, 2022. \n[31] Seppo Linnainmaa. Taylor expansion of the accumulated rounding error. BIT Numerical Mathematics, 16(2):146–160, 1976. \n[32] Dong C. Liu and Jorge Nocedal. On the limited memory BFGS method for large scale optimization. Mathematical Programming, 45(1-3):503–528, 1989. \n[33] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In International Conference on Learning Representations (ICLR), 2018. \n[34] Dougal Maclaurin, David Duvenaud, and Ryan Adams. Gradient-based hyperparameter optimization through reversible learning. In International Conference on machine learning (ICML), pages 2113–2122. PMLR, 2015. \n[35] Thomas Moreau, Mathurin Massias, Alexandre Gramfort, Pierre Ablin, Pierre-Antoine Bannier Benjamin Charlier, Mathieu Dagréou, Tom Dupré la Tour, Ghislain Durif, Cassio F. Dantas, Quentin Klopfenstein, Johan Larsson, En Lai, Tanguy Lefort, Benoit Malézieux, Badr Moufad, Binh T. Nguyen, Alain Rakotomamonjy, Zaccharie Ramzi, Joseph Salmon, and Samuel Vaiter. Benchopt: Reproducible, efficient and collaborative optimization benchmarks. In Advances in Neural Information Processing Systems (NeurIPS), 2022. \n[36] IU E. Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. Number v. 87 in Applied Optimization. Kluwer Academic Publishers, Boston, 2004. \n[37] Barak A Pearlmutter. Fast exact multiplication by the hessian. Neural computation, 6(1): 147–160, 1994. \n[38] Fabian Pedregosa. Hyperparameter optimization with approximate gradient. In International Conference on Machine Learning (ICML), pages 737–746. PMLR, 2016. \n[39] Zaccharie Ramzi, Florian Mannel, Shaojie Bai, Jean-Luc Starck, Philippe Ciuciu, and Thomas Moreau. SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit models. In International Conference on Learning Representations (ICLR), 2022. \n[40] Sashank J. Reddi, Suvrit Sra, Barnabas Poczos, and Alex Smola. Fast Incremental Method for Nonconvex Optimization. In 2016 IEEE 55th Conference on Decision and Control (CDC), IEEE, pages 1971–1977, 2016. \n[41] Herbert Robbins and Sutton Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400–407, 1951. \n[42] Cédric Rommel, Thomas Moreau, Joseph Paillard, and Alexandre Gramfort. CADDA: Classwise Automatic Differentiable Data Augmentation for EEG Signals. In International Conference on Learning Representations (ICLR), 2022. \n[43] Mark Schmidt, Nicolas Le Roux, and Francis Bach. Minimizing finite sums with the stochastic average gradient. Mathematical Programming, 162(1-2):83–112, 2017. \n[44] Amirreza Shaban, Ching-An Cheng, Nathan Hatch, and Byron Boots. Truncated Backpropagation for Bilevel Optimization. In Artificial Intelligence and Statistics (AISTAT), pages 1723–1732, Okinawa, Japan, 2019. \n[45] Heinrich von Stackelberg. Theory of the market economy. Oxford University Press, 1952. \n[46] R. Wengert. A simple automatic derivative evaluation program. Communications of the ACM, 7 (8):463–464, 1964. \n[47] Junjie Yang, Kaiyi Ji, and Yingbin Liang. Provably Faster Algorithms for Bilevel Optimization. In Advances in Neural Information Processing Systems (NeurIPS). Curran Associates, Inc., 2021. ",
1463
+ "bbox": [
1464
+ 169,
1465
+ 122,
1466
+ 828,
1467
+ 915
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "",
1474
+ "bbox": [
1475
+ 171,
1476
+ 73,
1477
+ 828,
1478
+ 916
1479
+ ],
1480
+ "page_idx": 10
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "",
1485
+ "bbox": [
1486
+ 171,
1487
+ 88,
1488
+ 828,
1489
+ 684
1490
+ ],
1491
+ "page_idx": 11
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Checklist ",
1496
+ "text_level": 1,
1497
+ "bbox": [
1498
+ 174,
1499
+ 89,
1500
+ 254,
1501
+ 106
1502
+ ],
1503
+ "page_idx": 12
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "1. For all authors... ",
1508
+ "bbox": [
1509
+ 214,
1510
+ 118,
1511
+ 339,
1512
+ 133
1513
+ ],
1514
+ "page_idx": 12
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Section 3 and Section 4 \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1519
+ "bbox": [
1520
+ 238,
1521
+ 138,
1522
+ 825,
1523
+ 229
1524
+ ],
1525
+ "page_idx": 12
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "2. If you are including theoretical results... ",
1530
+ "bbox": [
1531
+ 214,
1532
+ 233,
1533
+ 493,
1534
+ 247
1535
+ ],
1536
+ "page_idx": 12
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 3.1 (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix C ",
1541
+ "bbox": [
1542
+ 230,
1543
+ 251,
1544
+ 823,
1545
+ 284
1546
+ ],
1547
+ "page_idx": 12
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "3. If you ran experiments... ",
1552
+ "bbox": [
1553
+ 212,
1554
+ 287,
1555
+ 393,
1556
+ 301
1557
+ ],
1558
+ "page_idx": 12
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix B \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix B ",
1563
+ "bbox": [
1564
+ 238,
1565
+ 305,
1566
+ 825,
1567
+ 424
1568
+ ],
1569
+ "page_idx": 12
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1574
+ "bbox": [
1575
+ 215,
1576
+ 428,
1577
+ 823,
1578
+ 444
1579
+ ],
1580
+ "page_idx": 12
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1585
+ "bbox": [
1586
+ 238,
1587
+ 446,
1588
+ 823,
1589
+ 554
1590
+ ],
1591
+ "page_idx": 12
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1596
+ "bbox": [
1597
+ 214,
1598
+ 559,
1599
+ 705,
1600
+ 574
1601
+ ],
1602
+ "page_idx": 12
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "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] ",
1607
+ "bbox": [
1608
+ 238,
1609
+ 577,
1610
+ 825,
1611
+ 666
1612
+ ],
1613
+ "page_idx": 12
1614
+ }
1615
+ ]
parse/dev/wlEOsQ917F/wlEOsQ917F_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wlEOsQ917F/wlEOsQ917F_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wv79UiY5U7/wv79UiY5U7.md ADDED
@@ -0,0 +1,437 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Data Curation for Image Captioning with Text-to-Image Generative Models
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 Recent advances in image captioning are driven by increasingly larger-scale vision–
11
+ 2 language pretraining, relying on massive computational resources and increasingly
12
+ 3 large datasets. Instead of solely focusing on scaling pretraining, we ask whether
13
+ 4 it is possible to improve performance by improving the quality of the samples in
14
+ 5 existing datasets. We pursue this question through two approaches to data curation:
15
+ 6 one that assumes that some examples should be avoided due to mismatches between
16
+ 7 the image and caption, and one that assumes that the mismatch can be addressed by
17
+ 8 replacing the image, for which we use the state-of-the-art Stable Diffusion model.
18
+ 9 These approaches are evaluated using the BLIP model on the COCO and Flickr30K
19
+ 10 datasets. Models trained with our data curation approaches consistently outperform
20
+ 11 their baselines, indicating that better image captioning models can be trained by
21
+ 12 curating existing resources. Finally, we conduct a human study to understand the
22
+ 13 errors made by the Stable Diffusion model and highlight directions for future work
23
+ 14 in text-to-image generation.
24
+
25
+ # 15 1 Introduction
26
+
27
+ 16 Large-scale vision–language pretraining has been the driving force behind recent advances in image
28
+ 17 captioning [14]. The amount of image–text data needed to pretrain recent generative language
29
+ 18 models [28, 23, 53] has made it necessary to train on “noisy” samples harvested from the web
30
+ 19 [46, 45], as opposed to crowdsourced captions [32]. This emerging reliance on harvested data has
31
+ 20 made it important to perform additional filtering steps to remove low-quality data [28], in addition to
32
+ 21 more resource-intensive pretraining. Given that computing resources are not equally distributed [21],
33
+ 22 there is a need to also pursue less resource-intensive research directions.
34
+ 23 We show how to improve image captioning by improving the quality of the downstream task data
35
+ 24 through data curation: the process of dynamically updating the samples during training. We devise
36
+ 25 three techniques for data curation that are designed to prevent the total size of the dataset from
37
+ 26 increasing: the complete removal of an image–caption sample from a dataset; replacing a caption
38
+ 27 with another caption; and replacing images using a text-to-image generation model [41]. These
39
+ 28 curation techniques are used to update image–caption samples that have outlier losses, with respect
40
+ 29 to the rest of a training dataset, under the current model parameters. In other words, the samples that
41
+ 30 are proving difficult to model. Also, the synthesis of completely new images is radically different
42
+ 31 from standard data augmentation techniques, such as random cropping or color manipulation [47], or
43
+ 32 swapping and mask words in text [12].
44
+ 33 We conduct experiments using BLIP [28], a strong image captioning model, on the Flickr30K [56]
45
+ 34 and MS COCO datasets [32]. The results show that the sample removal and image replacement
46
+ 35 techniques lead to consistent improvements of 1–3 CIDEr points compared to not curating the
47
+ 36 dataset. Our analyses show that Flickr30K benefits from more curation than COCO due to differences
48
+ 37 in the distribution of long captions in each dataset. Finally, we find that it is better to curate the
49
+ 38 data dynamically while training instead of replacing images before starting to train the model.
50
+ 39 Taken together, these findings show the promise of model-in-the-loop text-to-image generation for
51
+ 40 multimodal learning, while highlighting that improvements in text-to-image generation are likely to
52
+ 41 further enhance the effectiveness of data curation.
53
+
54
+ ![](images/ec55786e780ac343012b7e186f7424d0f65b7f4749737d805de26a12cfaadb2f.jpg)
55
+ Figure 1: Overview of our data curation approaches. For dynamic removal or replacement of captions, high loss image-text pairs are either removed or the image is paired with an alternative caption in the following training epoch. For image replacement, captions of original images are used as prompts for text-to-image generation to synthesize new image–text pairs. We experiment with both options of replacing the image only, or pair another relevant caption to the synthesized image.
56
+
57
+ # 42 2 Related work
58
+
59
+ 43 Image Captioning Image Captioning is the task of describing images with syntactically and
60
+ 44 semantically sentences. Current deep learning-based image captioning models have evolved as
61
+ 45 the encode-decoder frameworks with multi-modal connection [8, 9], attentive [24, 16] and fusion
62
+ 46 strategies [58]. Standard captioning datasets contain Flickr30K [56] and the commonly used MS
63
+ 47 COCO [32], which consisting of images with events, objects and scenes. Each image is paired with
64
+ 48 five captions. Some works have demonstrated the benefits of training on synthetic captions [29, 3] or
65
+ 49 datasets collected from other vision-and-language learning tasks [38, 7].
66
+ 50 Data Augmentation Data augmentation [13] has achieved increasing attention in both natural
67
+ 51 language processing [33] and vision-and-language learning [27]. Early methods generate augmented
68
+ 52 examples in the model’s feature space [54] or interpolate the inputs and labels of few examples [57].
69
+ 53 For downstream tasks in the text domain, Yang et al. [55] and Anaby-Tavor et al. [1] generate
70
+ 54 synthetic text examples through state-of-the-art pretrained language models and show improved
71
+ 55 performance on common-sense reasoning and text-classification. For image captioning, BERT [11]
72
+ 56 has been used to generate additional captions to improve the diversity of the captioning datasets [3].
73
+ 57 Hossain et al. [22] used GAN-synthesized images as additional augmentation training set to improve
74
+ 58 image captioning models.
75
+ 59 Diffusion Models and Application Diffusion models [49, 35] have grown rapidly and become
76
+ 60 the powerful deep generative models. They have shown potential in a variety of applications,
77
+ 61 including text-to-image generation [36, 15], image-to-image translation [42], as well as semantic
78
+ 62 segmentation [26, 5] and video generation [20, 48, 52]. While recent large scale latent diffusion
79
+ 63 models have shown strong capability in generating both artistic and photo-realistic high-resolution
80
+ 64 images [41, 34, 39, 43], applying large-scale stable diffusion models in vision-language downstream
81
+ 65 tasks remains under-explored. Concurrently, Azizi et al. [4] and Jain et al. [25] show that image
82
+ 66 classifiers can be improved by learning from augmentation images generated by finetuned stable
83
+ 67 diffusion models. To the best of our knowledge, we are the first to explore how image captioning
84
+ 68 models can benefit from simple data curation without scaling up existing datasets, and how stable
85
+ 69 diffusion text-to-image models can be applied and contribute in the process.
86
+
87
+ # 70 3 Data Curation for Captioning
88
+
89
+ 71 Our goal is to improve image captioning models by preventing the model from training on difficult
90
+ 72 samples. There are many reasons for the possible existence of these difficult samples, including
91
+ 73 mismatches or inconsistencies between the image and caption [3]. More formally, given an image
92
+ 74 captioning training dataset $\mathcal { D }$ with $K$ images, let $\mathrm { I } _ { k }$ be the $k$ -th image. Each image is paired with
93
+ 75 $J$ captions; let $\mathrm { C } _ { k } ^ { j }$ be $j$ th caption of image $k$ , and thus, let $( \boldsymbol { \mathrm { I } } _ { k } , \boldsymbol { \mathrm { C } } _ { k } ^ { j } )$ be an image–caption sample in
94
+ 76 the dataset. Assume the existence of model $\mathcal { M }$ , which is being trained on dataset $\mathcal { D }$ , from which we
95
+ 77 can calculate the loss of each sample at each epoch $t$ : $\mathcal { L } _ { \mathcal { M } } ^ { t } ( \mathrm { I } _ { k } , \mathrm { C } _ { k } ^ { j } )$ , which can be used to track the
96
+ 78 difficult samples. At the end of each epoch, the difficult samples are candidates for our data curation
97
+ 79 techniques, resulting in dynamic updates to the training dataset $\mathcal { D } \to \mathcal { D } _ { 1 } \to \cdots \to \mathcal { D } _ { T }$ .
98
+
99
+ # 3.1 Identifying the difficult samples
100
+
101
+ 81 Difficult training samples may contain mismatches or inconsis
102
+ 82 tencies between the image and the caption [3]. We propose to
103
+ 83 use the captioning model that is being trained to automatically
104
+ 84 identify such samples. After each epoch, we compute the loss
105
+ 85 of each sample in the current training dataset, given the current
106
+ 86 model parameters. The highest loss samples are targets for our
107
+ 87 data curation methods; more specifically, we focus on samples
108
+ 88 with losses that are either two standard deviations from the mean,
109
+ 89 or a fixed $X \%$ away e.g. $10 \%$ , $20 \%$ , etc. In this way, the training
110
+ 90 dataset is dynamically updated at the end of each epoch according
111
+ 91 to the model’s captioning capability. The adjacent figure shows
112
+ 92 the empirical distribution of losses in the training samples of
113
+ 93 the Flickr30K dataset. It is clear that, without data curation, the
114
+ 94 high-loss samples remain high-loss during five epochs of training.
115
+
116
+ ![](images/f93276185cbc74760b08a71a948ec69ff823864460eba48e32ddb37a732b76e3.jpg)
117
+ Figure 2: Distribution of persample losses in Flickr30K.
118
+
119
+ # 95 3.2 Sample Removal / Caption Replacement
120
+
121
+ The simplest approach to data curation is to remove or replace the high-loss samples. In REMOVE, the high-loss samples are completely removed from the remainder of the training process, reducing the total number of image–caption training samples. In REPLACECAP, we simply replace the caption in the image–caption sample with a different caption taken from the other captions that describe the image, effectively creating a duplicate. With the caption replacement method, the total number of samples used to train the model remains the same, as well as the total number of the unique images. This creates a clean control condition for the subsequent experiments.
122
+
123
+ # 103 3.3 Image Generation-based Replacement
124
+
125
+ An alternative to removing difficult samples or replacing captions is to pair an existing caption with a new image. This has the benefit of training the model on the same total number of samples while exposing it to more unique images. The new image could be found by humans, in a long-running human-in-the-loop cycle. Instead, we use a text-to-image generation model, in a rapid model-inthe-loop step, to synthesize images based on the other sentences that describe the image. Some representative examples of images generated using this technique can be seen in Figure 10.
126
+
127
+ Our methodology is based on the open source Stable Diffusion model [41], which can generate images given a textual prompt. 1 We integrate this into training as follows: Given an image $I _ { k }$ in the training data and its captions $\{ ( I _ { k } , C _ { k } ^ { 1 } ) , \ldots , ( I _ { k } , C _ { k } ^ { J } ) \}$ , we synthesize a new image $\hat { I } _ { k }$ without increasing the total number of samples in the original dataset. Instead, we replace the original image in the sample with the generated image. Specifically, for image $I _ { k }$ , we replace a high-loss sample $( I _ { k } , C _ { k } ^ { j } )$ with the synthesized image-text pair $( \hat { I } _ { k } , C _ { k } ^ { j } )$ .
128
+
129
+ # 116 Round-trip captioning evaluation
130
+
131
+ 117 In order to effectively use a text-to-image generation model for data curation, we need an objec
132
+ 118 tive measure that can estimate the expected quality of a generated image. Most previous work
133
+ 119 uses image-oriented measures like FID [19] or CLIPScore [17] but these measures are claimed
134
+ 120 to lack alignment with perceptual quality [44]. We also found they were not suitable for our
135
+ 121 purpose, and that CLIPScore cannot distinguish between low- and high-loss samples in the cap
136
+ 122 tioning model (Figure 9). Here, we propose an alternative that is directly related to our task: given
137
+ 123 the generated image, measure the quality of the caption that can be generated by a fixed model.
138
+ 124 Our assumption is that if the generated images
139
+ 125 are of a similar quality to the original images,
140
+ 126 the resulting captions should be similar to each
141
+ 127 other. We call this a round-trip captioning evalu
142
+ 128 ation, which comprises three steps illustrated in
143
+ 129 Figure 3. In Step (1), we use the captions in the
144
+ 130 validation set to generate images using a text-to
145
+ 131 image generation model. In Step (2), we use an
146
+ 132 existing image-captioning model to predict cap
147
+ 133 tions for the generated images. Specifically, we
148
+ 134 use BLIP fine-tuned on the COCO dataset but
149
+ 135 any other strong captioning model could be used
150
+ 136 instead. Finally, in Step (3), we compare the pre
151
+ 137 dicted captions against the original captions. We
152
+ 138 now discuss the the factors that we found make
153
+ 139 a difference when generating images.
154
+
155
+ ![](images/dd71c6cf0bdb2bfce4295a9727ef57802e3b4792986d2731663ccef0b54643af.jpg)
156
+ Figure 3: Round-trip captioning evaluation.
157
+
158
+ # 140 Prompt engineering matters
159
+
160
+ Recall that text-to-image generation models produce images based on a textual prompts. Given a set of five captions that describe an image, there are several options for how to prompt the image generation model. We experiment with three options:
161
+
162
+ • Single caption: Each caption is used in isolation to generate a new image. • Sentence-BERT selection: There is a lot of variety in how different captions describe the same image. Instead of using all captions, we can use a representative caption from the set. This is achieved using the Sentence-BERT [40] model to find the caption that is closest to the average embedding of all captions. • Concatenation: All five captions are concatenated as the text prompt for generation.
163
+
164
+ For all three approaches mentioned above, we can append an additional string to the prompt as a styler to force a specific style in the generated image $+ \cal S$ tyler). The styler used here is: "national geographic, high quality photography, Canon EOS R3, Flickr".2
165
+
166
+ # Finetuning improves image relevance
167
+
168
+ Table 1 shows the results of the round-trip captioning evaluation on the Flickr30K dataset using different textual prompts and whether or not to fine-tune the diffusion model. When we fine-tune StableDiffusion, we use the MS COCO [32] dataset with a prompt consisting of a concatenation of all 5 captions, for 15,000 steps with a constant learning rate of $1 e { - } 5$ and a batch size of 32. The best performance is clearly found by fine-tuning Stable Diffusion 1.5 and using a prompt with a concatenation of the captions and the styler. We use this configuration in the remainder of the paper.
169
+
170
+ Table 1: Round-trip captioning evaluation on Flickr30K with different Stable Diffusion models, prompts, and fine-tuning. BLEU, CIDEr, Meteor.
171
+
172
+ <table><tr><td>Model</td><td>FT</td><td>Prompt</td><td>B</td><td>C</td><td>M</td></tr><tr><td>Upper-bound</td><td></td><td></td><td>37.6</td><td>27.2</td><td>57.1</td></tr><tr><td>SD 1.5</td><td>=</td><td>concat</td><td>31.0</td><td>24.7</td><td>52.5</td></tr><tr><td>SD 1.5</td><td>-</td><td>+ styler</td><td>30.8</td><td>24.2</td><td>52.5</td></tr><tr><td>SD 1.5</td><td>F</td><td>+ styler</td><td>33.5</td><td>25.0</td><td>53.5</td></tr><tr><td>SD 1.5</td><td>F</td><td>SBERT + styler</td><td>30.6</td><td>24.1</td><td>52.0</td></tr><tr><td>SD 2.0</td><td>-</td><td>concat + styler</td><td>31.2</td><td>24.8</td><td>52.0</td></tr></table>
173
+
174
+ ![](images/5880a1e3bd6cd3c1d7c81a867381c35d10f2f48c5a760f279138df1cf0bdf3a4.jpg)
175
+ Figure 4: Qualitative examples from the COCO dataset of captions generated by the BLIP model (top), and the same model trained using our REPLACEIMG data curation (bottom). The errors made by the BLIP model (shown in red) are avoided by REPLACEIMG curation (shown in blue).
176
+
177
+ # 167 4 Experiments
178
+
179
+ 168 We evaluate our data curation methods on the MS COCO and Flickr30K datasets when finetuning the
180
+ 169 pretrained BLIP [28] model. We evaluate the captions using BLEU [37], METEOR [10], ROUGE
181
+ 170 [31], CIDEr [51], SPICE [2], CLIPScore, and RefCLIPScore [18].
182
+ 171 We use the ViT-based BLIP model [28] as our captioning model. We note that BLIP has a captioning
183
+ 172 and filtering (CapFilt) data augmentation process during its pretraining, where both components were
184
+ 173 finetuned on the COCO dataset. Therefore we use pretrained checkpoint $\mathrm { B L I P } _ { C a p F i l t }$ for Flick $3 0 \mathrm { k }$
185
+ 174 and $\mathrm { B L I P } _ { b a s e }$ for COCO in our experiment, removing the effects from the CapFilt process. We
186
+ 175 finetune BLIP using a batch size of 128 for 5 epochs on $4 \times$ A100 GPUs.
187
+
188
+ # 4.1 Results
189
+
190
+ Removal/Caption Replacement As shown in Table 2, dynamically removing mismatched imagetext pairs or replacing captions can effectively improve performance on both datasets over baselines on all metrics. For Flickr30K, the dynamic updates work best when apply to the top $1 \%$ of high-loss samples for REPLACECAP, and to samples whose loss are two standard deviations higher than the mean for REMOVE. For COCO, both REPLACECAP and REMOVE works best when curating the top $1 \%$ of high-loss samples. We repeat that during the curation process, no additional data samples or computation cost is introduced. We further study the effect of the amount of curation in Section 5.
191
+
192
+ 184 Image Generation-based Replacement We evaluate Image Generation-based Replacement on
193
+ 185 both the Flickr30K and COCO dataset. During finetuning, we replace images in the original text
194
+ 186 image pairs with Stable Diffusion-synthesized images (ReplaceImg in Table 2). The results show
195
+ 187 improvements compared to the baseline in every evaluation measure with best performance obtained
196
+ 188 at replacement ratio of $40 \%$ for Flickr30K and at $10 \%$ for COCO. We show qualitative examples in
197
+ 189 Figure 4, where models finetuned with our proposed curation method can generate better captions for
198
+ 190 some scenes that may confuse the standard finetuned model. In Section 5.1, we analyze the effects of
199
+ 191 varying the amount of synthetic images replaced, and in Section 5.2, we conduct a human study of
200
+ 192 the types of errors found in the generated images.
201
+
202
+ ![](images/bd0d9934e6787c5f94594cb8179e809d60cfc4a1ff3bb7ada286ba3543b5e6bd.jpg)
203
+ Figure 5: Effects of the amount of data curated when finetuning the captioning model. We can observe that Flickr30K needs more curation $40 \%$ REPLACEIMG or 2 std REMOVE) than COCO ( $10 \%$ REPLACEIMG or $1 \%$ REPLACECAP). Flickr30K benefits more from removing high-loss training samples, indicating the original dataset may be noisier than MS COCO. For the 2 std approach, the number of samples curated is not fixed after each epoch and varies between $5 \%$ to $10 \%$ .
204
+
205
+ # 193 5 Analysis and Discussion
206
+
207
+ # 5.1 Data Curation: how much and when?
208
+
209
+ We analyze how the amount of curation affects image captioning performance. We examine different ratios of training samples that are removed, replaced with an alternative caption, or replaced with a synthesized image. For REMOVE and REPLACECAP, we consider curation ratio of $1 \%$ , $5 \%$ and $10 \%$ of high-loss samples. For REPLACEIMG, we consider $10 \% { - } 8 0 \%$ curation ratio. In addition to fixed $X \%$ ratios, we also intereven on samples that have losses two standard deviations worse than the mean.
210
+
211
+ 201 Flickr30K needs more curation than COCO. The results of this analysis are shown in Figure 5.
212
+ 202 The best improvement in performance for Flickr30K is achieved either through removing high loss
213
+ 203 samples that are two standard deviations away, or replacing images for $40 \%$ of the high loss samples.
214
+ 204 In the COCO dataset, replacing images for $10 \%$ of the
215
+ 205 high loss samples gives the best improvement compared
216
+ 206 to no data curation. The second best performing method
217
+ 207 for COCO is removing or replacing captions of only $1 \%$
218
+ 208 of the high loss samples. This indicates that Flickr30K
219
+ 209 may contain more noisy samples than the MS COCO
220
+ 210 dataset. Compared to MS COCO, Flickr30K contains
221
+ 211 more samples with long captions (Figure 6), which may
222
+ 212 include overly-specific details that are inconsistent with
223
+ 213 other captions and are hard for the model to learn. See
224
+ 214 more examples in our supplemental materials. Through
225
+ 215 our curation-based finetuning, these samples can be effec
226
+ 216 tively identified, removed or replaced, which indicates that
227
+ 217 our method is efficient when training with noisy datasets. We note that curating more than $50 \%$ of
228
+ 218 the data does not benefit training and actually harms performance.
229
+ 219 Static image replacement versus dynamic replacement In REPLACEIMG (Section 3.3), we
230
+ 220 dynamically replace images for the difficult training samples. Another static approach is to replace
231
+ 221 the identical images, i.e. $I _ { k }$ in $\{ ( I _ { k } , C _ { k } ^ { 1 } ) , \ldots , ( I _ { k } , \check { C } _ { k } ^ { J } ) \}$ , with unique SD-synthesized images before
232
+ 222 training, instead of updating the training samples while training. With static image replacement, for
233
+ 223 each of the reference captions, we replace their original image with a SD-synthesized image. Static
234
+ 224 replacement with $20 \% { - } 8 0 \%$ curation ratio corresponds to replacing images for one–four captions of
235
+
236
+ ![](images/a6f75623bf6c27b9b39c97e30c9dccdd5ceeb53188a88c396f0b67988df825f7.jpg)
237
+ Figure 6: Distribution of caption lengths.
238
+
239
+ ![](images/b724073f5d31a2a624b4d55823d3db3c56d82fc197f5992637a482159ecf6e7b.jpg)
240
+ Figure 7: Dynamic image replacement against static replacement, as a function of the number of samples replaced.
241
+
242
+ ![](images/9109d63e5c77bff9c3902a83a05ce5457cdefa8e3688c476533290a693e205f7.jpg)
243
+ Figure 8: Loss distribution of training samples across epochs with different curation methods.
244
+
245
+ ![](images/b7f9ce0a993f619a4c9e733eba30581534866055483bee3d24f984c1a430c635.jpg)
246
+ (a) Distribution of text-to-image generation errors.
247
+
248
+ ![](images/b19f84fd0a3b52e2e475622b0bb0a3e1d862d65ede861c5eb52a84372a704122.jpg)
249
+ (b) Human evaluation versus CLIPScore.
250
+
251
+ Figure 9: Results of the human study of the errors made by the Stable Diffusion model in 100 images. The images used in the study were chosen to represent either low or high model loss. (a) Histogram of the number of errors annotated in each category. The most frequently occurring annotations concern weird deformations in the expected objects or humans. (b) Relationship between average number of identified errors by human annotations for each synthesized image and its captioning loss with regard to original captions. More errors are identified in images of higher loss. However, CLIPScore appears to fail in validating qualities of the synthesized images, as the score ranges are almost identical for samples that contain more errors.
252
+
253
+ 225 the original five. The $50 \%$ replacement ratio mimics a fair coin-flip, where for each of the text-image
254
+ 226 samples, there is $50 \%$ probability for the image to be replaced by a synthesized image.
255
+ 227 We compare the efficacy of these two approaches in Figure 7. When evaluating on the original
256
+ 228 1k validation set, we see that for both approaches, incorporating synthesized images of $20 \%$ or
257
+ 229 $40 \%$ can assist finetuning and achieves higher BLEU4 and CIDEr scores. Nevertheless, dynamic
258
+ 230 image replacement consistently performs better than the static method, showing focusing on the hard
259
+ 231 samples is effective. For both replacement methods, performance starts to decrease when the curation
260
+ 232 ratio is too high. This may indicate that when incorporating too many images from the synthetic
261
+ 233 distribution, the gap increases between the training and evaluation sets.
262
+ 234 Figure 8 shows the effect of the curation techniques in the training loss distributions across epochs.
263
+ 235 For the REMOVE approach, training samples with loss that are two standard deviations worse than the
264
+ 236 mean are dynamically removed during training, leading to the shrinking tail of the loss distribution.
265
+ 237 SD-based image replacement gradually reduces losses through learning from a mixture of Gaussian
266
+ 238 distribution from original image-text pairs and the ones contain synthesized images.
267
+
268
+ <table><tr><td>Image</td><td>Caption</td><td>CLIPScore Loss</td><td></td><td>Categorized Errors</td></tr><tr><td></td><td>A picture of two women with one in lacy white dress with handbag and leggings and the other with a tall red hat, black mid-dress,and frame like plastic dress on top.</td><td>84.1</td><td>181.0</td><td>type/color of clothing, color-clothing, weird-face</td></tr><tr><td></td><td>A pedicab driver waiting on his bike.</td><td>89.3</td><td>169.2</td><td>weird-main-object, weird-other-object, weird-body-parts, stance</td></tr><tr><td></td><td>A man in a black suit with tie and corsage smiles77.6 at a girl who smiles back,both are sitting at a tableat a semi formal event such as a wedding or reunion.</td><td></td><td>163.5</td><td>color-clothing, weird-body-parts, wrong-main-object, scene/event/location</td></tr><tr><td></td><td>Two men are playing guitars and one man is singing into a microphone on a stage with the spotlight on them.</td><td>74.7</td><td>26.0</td><td>weird-face, weird-body-parts, weird-main-object, weird-other-object</td></tr><tr><td></td><td>There a several people in a dark bar-type room,84.9 including one girl on a stool.</td><td></td><td>26.5</td><td>number, weird-face, weird-main-object, weird-body-parts</td></tr><tr><td></td><td>Many children are playing and swimming in the water.</td><td>78.2</td><td>26.9</td><td>weird-face, weird-body-parts</td></tr></table>
269
+
270
+ Figure 10: Examples of synthesized images that are of high losses (top) and examples of synthesized images that are of low losses (bottom). Human annotations show that consistent error types have been recognized for the high loss samples while CLIPScore fails to align with human judgement. The low loss synthesized images are visually less complicated than the higher loss ones, but can still often look weird and contain errors in color or objects.
271
+
272
+ # 239 5.2 Human Study: Errors made by SD models
273
+
274
+ Finally, we conduct a human study of the errors present in the SD-synthesized images. This will serve to better understand any shortcomings with this approach that is not captured by automatic evaluation measures.
275
+
276
+ 243 We first ranked SD-synthesized images by model loss from the 1K images in the validation set. This
277
+ 244 validation set of synthesized images was generated using the best performing configuration of the
278
+ 245 Stable Diffusion model (see Section 3.3). We then sampled a subset for human annotation using the
279
+ 246 top and bottom 50 images based on their loss using our fine-tuned captioning model. These images
280
+ 247 are uniformly divided into 5 sets, each containing 20 images with equal number of the high loss
281
+ 248 ones and the low loss ones. The data was annotated by 12 people, members of a university research
282
+ 249 lab with a basic understanding of Stable Diffusion but no knowledge of the bi-modal distribution
283
+ 250 of images. The annotators were asked to categorize the errors they observed in the synthesized
284
+ 251 images, given both the image and the reference sentences that were used to generate the images. Each
285
+ 252 participant annotated one set of 20 images.
286
+ 253 Starting from the categories defined by van Miltenburg and Elliott [50], we predefined 25 categories
287
+ 254 including general errors such as color, or number mismatches, and errors related to people and
288
+ 255 objects in the images. Please see the user interface in supplemental materials. We analyze the human
289
+ 256 judgements for the images that have at least three annotations, yielding 74 unique images.
290
+ 257 As shown in Figure 9a, the most common problem of SD-synthesized images are that they often
291
+ 258 generate weird face or body parts, which makes the images less natural or pleasant. The Stable
292
+ 259 Diffusion model is also weak at generating the correct number of people or objects. From Figure 9b
293
+ 260 we confirm the quality of our collected annotations that high loss figures often contain more errors
294
+ 261 on average. Furthermore, we note that CLIPScore does not appear to align with human judgements,
295
+ 262 indicating its weak capability of evaluating quality of generated images. Please see more concrete
296
+ 263 examples in Figure 10.
297
+
298
+ # 264 6 Conclusion
299
+
300
+ 65 In this paper, we have shown a simple, yet effective, data curation framework that can improve the
301
+ 66 performance of image captioning models. We investigated three approaches to data curation that
302
+ 67 dynamically update the training dataset based on high-loss image-caption samples. The methods
303
+ 68 involved either removing a sample, replacing the caption in a sample, or generating a new image
304
+ 69 from existing captions. Experimental results on the Flickr30K and MS COCO datasets show the
305
+ 70 effectiveness of these approaches to data curation without increasing the total size of the training
306
+ 71 dataset. A deeper analysis of the images synthesized by Stable Diffusion shows frequent errors on
307
+ 72 generating objects of a certain amount or color, and struggles with human body features. A human
308
+ 73 evaluation of the errors in those images shows a clear difference in images with high or low losses.
309
+ 274 In the future, we expect that better text-to-image generation models will lead to further improvements
310
+ 275 from using synthesized images for difficult captions in existing training datasets. We plan on
311
+ 276 verifying whether these findings extend to other image captioning models, which was not possible
312
+ 277 here due to computational issues. Finally, we are interested in applying the same framework to other
313
+ 278 multimodal tasks, especially those with undercomplete datasets that cannot comprehensively cover
314
+ 279 the distributional space due to the cost of crowdsourcing enough data, e.g. visual question answering,
315
+ 280 or visually-grounded dialog.
316
+
317
+ # 281 Limitations
318
+
319
+ While our curation methods being effective on image-captioning in the finetuning and fewshotlearning settings, it is not clear if the same strategy can be scaled and adapted also to vision-language pretraining. Currently our data curation methods also rely on state-of-the art pretrained models for both image understanding and text-to-image generation. In pretraining, models will often be trained from scratch and pretraining data are often collected from multiple datasets and resources.
320
+
321
+ Moreover, while we take an online approach to data curation, our current approach is upper bounded in speed and performance of the text-to-image generation model. This might be a large bottle neck for adapting the strategy for more complicated vision-and-language tasks.
322
+
323
+ # 290 Ethics Statement
324
+
325
+ Text-to-image generation with Stable Diffusion is controversial in the broader AI and ethics community[6]. For example, it can generate images according to gender or racial stereotypes, which may prove harmful to members of those communities [30]. In this paper, we use Stable Diffusion to improve the quality of an image captioning model, given a specific set of crowdsourced captions. Those captions may themselves contain harmful stereotypes that would become more prevalent in our dynamically updated training datasets. As we dynamically update the model with new images based on loss values, we remove the water-marker in our generated images to prevent information leak to the model. Use of the synthesized images will strictly follow community guidelines.
326
+
327
+ # References
328
+
329
+ [1] Ateret Anaby-Tavor, Boaz Carmeli, Esther Goldbraich, Amir Kantor, George Kour, Segev Shlomov, Naama Tepper, and Naama Zwerdling. Do not have enough data? deep learning to the rescue! In AAAI, pages 7383–7390. AAAI Press, 2020. 2
330
+
331
+ 304 [2] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. Spice: Semantic
332
+ 305 propositional image caption evaluation. In European conference on computer vision, pages
333
+ 306 382–398. Springer, 2016. 5
334
+ 307 [3] Viktar Atliha and Dmitrij Šešok. Text augmentation using bert for image captioning. Applied
335
+ 308 Sciences, 2020. 2, 3
336
+ 309 [4] Shekoofeh Azizi, Simon Kornblith, Chitwan Saharia, Mohammad Norouzi, and David J. Fleet.
337
+ 310 Synthetic data from diffusion models improves imagenet classification, 2023. 2
338
+ 311 [5] Dmitry Baranchuk, Andrey Voynov, Ivan Rubachev, Valentin Khrulkov, and Artem Babenko.
339
+ 312 Label-efficient semantic segmentation with diffusion models. In International Conference on
340
+ 313 Learning Representations, 2022. URL https://openreview.net/forum?id $\underset { . } { = }$ SlxSY2UZQT.
341
+ 314 2
342
+ 315 [6] Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr,
343
+ 316 Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models.
344
+ 317 arXiv preprint arXiv:2301.13188, 2023. 9
345
+ 318 [7] Soravit Changpinyo, Doron Kukliansy, Idan Szpektor, Xi Chen, Nan Ding, and Radu Sori
346
+ 319 cut. All you may need for VQA are image captions. In Marine Carpuat, Marie-Catherine
347
+ 320 de Marneffe, and Iván Vladimir Meza Ruíz, editors, NAACL, pages 1947–1963. Association for
348
+ 321 Computational Linguistics, 2022. 2
349
+ 322 [8] Fuhai Chen, Rongrong Ji, Jinsong Su, Yongjian Wu, and Yunsheng Wu. Structcap: Structured
350
+ 323 semantic embedding for image captioning. In Qiong Liu, Rainer Lienhart, Haohong Wang,
351
+ 324 Sheng-Wei "Kuan-Ta" Chen, Susanne Boll, Yi-Ping Phoebe Chen, Gerald Friedland, Jia Li, and
352
+ 325 Shuicheng Yan, editors, MM, pages 46–54. ACM, 2017. 2
353
+ 326 [9] Fuhai Chen, Rongrong Ji, Xiaoshuai Sun, Yongjian Wu, and Jinsong Su. Groupcap: Group
354
+ 327 based image captioning with structured relevance and diversity constraints. In CVPR, pages
355
+ 328 1345–1353. Computer Vision Foundation / IEEE Computer Society, 2018. 2
356
+ 329 [10] Michael Denkowski and Alon Lavie. Meteor universal: Language specific translation evaluation
357
+ 330 for any target language. In Proceedings of the ninth workshop on statistical machine translation,
358
+ 331 pages 376–380, 2014. 5
359
+ 332 [11] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of
360
+ 333 deep bidirectional transformers for language understanding. In Proceedings of the 2019 Confer
361
+ 334 ence of the North American Chapter of the Association for Computational Linguistics: Human
362
+ 335 Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis,
363
+ 336 Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423.
364
+ 337 URL https://aclanthology.org/N19-1423. 2
365
+ 338 [12] Steven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura,
366
+ 339 and Eduard Hovy. A survey of data augmentation approaches for NLP. In Findings of the
367
+ 340 Association for Computational Linguistics: ACL-IJCNLP 2021, pages 968–988, Online, August
368
+ 341 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.findings-acl.84. URL
369
+ 342 https://aclanthology.org/2021.findings-acl.84. 1
370
+ 343 [13] Steven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura,
371
+ 344 and Eduard H. Hovy. A survey of data augmentation approaches for NLP. In Chengqing Zong,
372
+ 345 Fei Xia, Wenjie Li, and Roberto Navigli, editors, ACL, volume ACL/IJCNLP 2021 of Findings
373
+ 346 of ACL, pages 968–988. Association for Computational Linguistics, 2021. 2
374
+ 347 [14] Zhe Gan, Linjie Li, Chunyuan Li, Lijuan Wang, Zicheng Liu, and Jianfeng Gao. Vision-language
375
+ 348 pre-training: Basics, recent advances, and future trends, 2022. 1
376
+ 349 [15] Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, and
377
+ 350 Baining Guo. Vector quantized diffusion model for text-to-image synthesis. In CVPR, pages
378
+ 351 10686–10696. IEEE, 2022. 2
379
+
380
+ 352 [16] Longteng Guo, Jing Liu, Xinxin Zhu, Peng Yao, Shichen Lu, and Hanqing Lu. Normalized and geometry-aware self-attention network for image captioning. In CVPR, pages 10324–10333. Computer Vision Foundation / IEEE, 2020. 2
381
+ 355 [17] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: a reference-free evaluation metric for image captioning. In EMNLP, 2021. 4 [18] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: A reference-free evaluation metric for image captioning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7514–7528, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10. 18653/v1/2021.emnlp-main.595. URL https://aclanthology.org/2021.emnlp-main. 595. 5 [19] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017. 4
382
+ [20] Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J Fleet. Video diffusion models. arXiv:2204.03458, 2022. 2
383
+ 368 [21] Sara Hooker. The hardware lottery, 2020. 1
384
+ 369 [22] Md. Zakir Hossain, Ferdous Sohel, Mohd Fairuz Shiratuddin, Hamid Laga, and Mohammed Bennamoun. Text to image synthesis for improved image captioning. IEEE Access, 9:64918– 64928, 2021. doi: 10.1109/ACCESS.2021.3075579. 2 [23] Xiaowei Hu, Zhe Gan, Jianfeng Wang, Zhengyuan Yang, Zicheng Liu, Yumao Lu, and Lijuan Wang. Scaling up vision-language pre-training for image captioning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17980–17989, 2022. 1 [24] Lun Huang, Wenmin Wang, Jie Chen, and Xiaoyong Wei. Attention on attention for image captioning. In ICCV, pages 4633–4642. IEEE, 2019. 2 [25] Saachi Jain, Hannah Lawrence, Ankur Moitra, and Aleksander Madry. Distilling model failures as directions in latent space. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id $\equiv$ 99RpBVpLiX. 2 [26] Peng Jiang, Fanglin Gu, Yunhai Wang, Changhe Tu, and Baoquan Chen. Difnet: Semantic segmentation by diffusion networks. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. CesaBianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/ paper/2018/file/c2626d850c80ea07e7511bbae4c76f4b-Paper.pdf. 2
385
+ 386 [27] Guodun Li, Yuchen Zhai, Zehao Lin, and Yin Zhang. Similar scenes arouse similar emotions: Parallel data augmentation for stylized image captioning. In Heng Tao Shen, Yueting Zhuang, John R. Smith, Yang Yang, Pablo César, Florian Metze, and Balakrishnan Prabhakaran, editors, MM, pages 5363–5372. ACM, 2021. 2 [28] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In ICML, 2022. 1, 5 [29] Junnan Li, Dongxu Li, Caiming Xiong, and Steven C. H. Hoi. BLIP: bootstrapping languageimage pre-training for unified vision-language understanding and generation. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvári, Gang Niu, and Sivan Sabato, editors, ICML, volume 162 of Proceedings of Machine Learning Research, pages 12888–12900. PMLR, 2022. 2
386
+ 397 [30] Minghui Li, Yan Wan, and Jinping Gao. What drives the ethical acceptance of deep synthesis applications? a fuzzy set qualitative comparative analysis. Computers in Human Behavior, 133: 107286, 2022. ISSN 0747-5632. doi: https://doi.org/10.1016/j.chb.2022.107286. 9
387
+
388
+ 400 [31] Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summariza
389
+ 401 tion Branches Out, pages 74–81, Barcelona, Spain, July 2004. Association for Computational
390
+ 402 Linguistics. URL https://aclanthology.org/W04-1013. 5
391
+ 403 [32] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James
392
+ 404 Hays, Pietro Perona, Deva Ramanan, Piotr Doll’a r, and C. Lawrence Zitnick. Microsoft COCO:
393
+ 405 common objects in context. CoRR, abs/1405.0312, 2014. 1, 2, 4
394
+ 406 [33] Ruibo Liu, Guangxuan Xu, Chenyan Jia, Weicheng Ma, Lili Wang, and Soroush Vosoughi. Data
395
+ 407 boost: Text data augmentation through reinforcement learning guided conditional generation.
396
+ 408 In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu, editors, EMNLP, pages 9031–9041.
397
+ 409 Association for Computational Linguistics, 2020. 2
398
+ 410 [34] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew,
399
+ 411 Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing
400
+ 412 with text-guided diffusion models, 2022. 2
401
+ 413 [35] Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic
402
+ 414 models. In Marina Meila and Tong Zhang, editors, ICML, volume 139, pages 8162–8171.
403
+ 415 PMLR, 2021. 2
404
+ 416 [36] Alexander Quinn Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin,
405
+ 417 Bob McGrew, Ilya Sutskever, and Mark Chen. GLIDE: towards photorealistic image generation
406
+ 418 and editing with text-guided diffusion models. In Kamalika Chaudhuri, Stefanie Jegelka,
407
+ 419 Le Song, Csaba Szepesvári, Gang Niu, and Sivan Sabato, editors, ICML, volume 162, pages
408
+ 420 16784–16804, 2022. 2
409
+ 421 [37] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic
410
+ 422 evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association
411
+ 423 for Computational Linguistics, pages 311–318, 2002. 5
412
+ 424 [38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agar
413
+ 425 wal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya
414
+ 426 Sutskever. Learning transferable visual models from natural language supervision. In Ma
415
+ 427 rina Meila and Tong Zhang, editors, ICML, volume 139 of Proceedings of Machine Learning
416
+ 428 Research, pages 8748–8763. PMLR, 2021. 2
417
+ 429 [39] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical
418
+ 430 text-conditional image generation with clip latents, 2022. 2
419
+ 431 [40] Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese
420
+ 432 BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Nat
421
+ 433 ural Language Processing and the 9th International Joint Conference on Natural Lan
422
+ 434 guage Processing (EMNLP-IJCNLP), pages 3982–3992, Hong Kong, China, November
423
+ 435 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1410. URL
424
+ 436 https://aclanthology.org/D19-1410. 4
425
+ 437 [41] Robin Rombach, A. Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High
426
+ 438 resolution image synthesis with latent diffusion models. 2022 IEEE/CVF Conference on
427
+ 439 Computer Vision and Pattern Recognition (CVPR), pages 10674–10685, 2022. 1, 2, 3
428
+ 440 [42] Chitwan Saharia, William Chan, Huiwen Chang, Chris A. Lee, Jonathan Ho, Tim Salimans,
429
+ 441 David J. Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. In
430
+ 442 Munkhtsetseg Nandigjav, Niloy J. Mitra, and Aaron Hertzmann, editors, SIGGRAPH, pages
431
+ 443 15:1–15:10. ACM, 2022. 2
432
+ 444 [43] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed
433
+ 445 Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S. Sara Mahdavi, Rapha Gontijo Lopes, Tim
434
+ 446 Salimans, Jonathan Ho, David J Fleet, and Mohammad Norouzi. Photorealistic text-to-image
435
+ 447 diffusion models with deep language understanding, 2022. 2
436
+
437
+ 448 [44] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L. Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, Seyedeh Sara Mahdavi, Raphael Gontijo Lopes, Tim Salimans, Jonathan Ho, David J. Fleet, and Mohammad Norouzi. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint, 2022. URL https://doi.org/10.48550/arXiv.2205.11487. 4 [45] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. Laion- $. 4 0 0 \mathrm { m }$ : Open dataset of clip-filtered 400 million image-text pairs. arXiv preprint, 2021. URL https: //doi.org/10.48550/arXiv.2111.02114. 1 [46] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-1238. URL https://aclanthology.org/P18-1238. 1 [47] Connor Shorten and Taghi M Khoshgoftaar. A survey on image data augmentation for deep learning. Journal of big data, 6(1):1–48, 2019. 1 [48] Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, Devi Parikh, Sonal Gupta, and Yaniv Taigman. Make-a-video: Text-to-video generation without text-video data, 2022. 2 [49] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In ICLR, 2021. 2 [50] Emiel van Miltenburg and Desmond Elliott. Room for improvement in automatic image description: an error analysis. CoRR, abs/1704.04198, 2017. 8 [51] Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4566–4575, 2015. 5 [52] Ruben Villegas, Mohammad Babaeizadeh, Pieter-Jan Kindermans, Hernan Moraldo, Han Zhang, Mohammad Taghi Saffar, Santiago Castro, Julius Kunze, and Dumitru Erhan. Phenaki: Variable length video generation from open domain textual description, 2022. 2 [53] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. Simvlm: Simple visual language model pretraining with weak supervision. Learning, 2021. 1 [54] Jason W. Wei and Kai Zou. EDA: easy data augmentation techniques for boosting performance on text classification tasks. In Kentaro Inui, Jing Jiang, Vincent $\mathrm { N g }$ , and Xiaojun Wan, editors, EMNLP-IJCNLP, pages 6381–6387. Association for Computational Linguistics, 2019. 2 [55] Yiben Yang, Chaitanya Malaviya, Jared Fernandez, Swabha Swayamdipta, Ronan Le Bras, Ji-Ping Wang, Chandra Bhagavatula, Yejin Choi, and Doug Downey. G-daug: Generative data augmentation for commonsense reasoning. In Trevor Cohn, Yulan He, and Yang Liu, editors, EMNLP, volume EMNLP 2020 of Findings of ACL, pages 1008–1025. Association for Computational Linguistics, 2020. 2 [56] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. TACL, 2:67–78, 2014. 1, 2 [57] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR. OpenReview.net, 2018. 2 [58] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason J. Corso, and Jianfeng Gao. Unified vision-language pre-training for image captioning and VQA. In AAAI, pages 13041– 13049. AAAI Press, 2020. 2
parse/dev/wv79UiY5U7/wv79UiY5U7_content_list.json ADDED
@@ -0,0 +1,948 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Data Curation for Image Captioning with Text-to-Image Generative Models ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 245,
8
+ 122,
9
+ 751,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 Recent advances in image captioning are driven by increasingly larger-scale vision– \n2 language pretraining, relying on massive computational resources and increasingly \n3 large datasets. Instead of solely focusing on scaling pretraining, we ask whether \n4 it is possible to improve performance by improving the quality of the samples in \n5 existing datasets. We pursue this question through two approaches to data curation: \n6 one that assumes that some examples should be avoided due to mismatches between \n7 the image and caption, and one that assumes that the mismatch can be addressed by \n8 replacing the image, for which we use the state-of-the-art Stable Diffusion model. \n9 These approaches are evaluated using the BLIP model on the COCO and Flickr30K \n10 datasets. Models trained with our data curation approaches consistently outperform \n11 their baselines, indicating that better image captioning models can be trained by \n12 curating existing resources. Finally, we conduct a human study to understand the \n13 errors made by the Stable Diffusion model and highlight directions for future work \n14 in text-to-image generation. ",
40
+ "bbox": [
41
+ 148,
42
+ 348,
43
+ 767,
44
+ 542
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "15 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 566,
55
+ 312,
56
+ 584
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "16 Large-scale vision–language pretraining has been the driving force behind recent advances in image \n17 captioning [14]. The amount of image–text data needed to pretrain recent generative language \n18 models [28, 23, 53] has made it necessary to train on “noisy” samples harvested from the web \n19 [46, 45], as opposed to crowdsourced captions [32]. This emerging reliance on harvested data has \n20 made it important to perform additional filtering steps to remove low-quality data [28], in addition to \n21 more resource-intensive pretraining. Given that computing resources are not equally distributed [21], \n22 there is a need to also pursue less resource-intensive research directions. \n23 We show how to improve image captioning by improving the quality of the downstream task data \n24 through data curation: the process of dynamically updating the samples during training. We devise \n25 three techniques for data curation that are designed to prevent the total size of the dataset from \n26 increasing: the complete removal of an image–caption sample from a dataset; replacing a caption \n27 with another caption; and replacing images using a text-to-image generation model [41]. These \n28 curation techniques are used to update image–caption samples that have outlier losses, with respect \n29 to the rest of a training dataset, under the current model parameters. In other words, the samples that \n30 are proving difficult to model. Also, the synthesis of completely new images is radically different \n31 from standard data augmentation techniques, such as random cropping or color manipulation [47], or \n32 swapping and mask words in text [12]. \n33 We conduct experiments using BLIP [28], a strong image captioning model, on the Flickr30K [56] \n34 and MS COCO datasets [32]. The results show that the sample removal and image replacement \n35 techniques lead to consistent improvements of 1–3 CIDEr points compared to not curating the \n36 dataset. Our analyses show that Flickr30K benefits from more curation than COCO due to differences \n37 in the distribution of long captions in each dataset. Finally, we find that it is better to curate the \n38 data dynamically while training instead of replacing images before starting to train the model. \n39 Taken together, these findings show the promise of model-in-the-loop text-to-image generation for \n40 multimodal learning, while highlighting that improvements in text-to-image generation are likely to \n41 further enhance the effectiveness of data curation. ",
63
+ "bbox": [
64
+ 147,
65
+ 598,
66
+ 825,
67
+ 695
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 702,
77
+ 825,
78
+ 840
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 148,
87
+ 845,
88
+ 823,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/ec55786e780ac343012b7e186f7424d0f65b7f4749737d805de26a12cfaadb2f.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Overview of our data curation approaches. For dynamic removal or replacement of captions, high loss image-text pairs are either removed or the image is paired with an alternative caption in the following training epoch. For image replacement, captions of original images are used as prompts for text-to-image generation to synthesize new image–text pairs. We experiment with both options of replacing the image only, or pair another relevant caption to the synthesized image. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 176,
102
+ 92,
103
+ 818,
104
+ 282
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 147,
113
+ 385,
114
+ 825,
115
+ 455
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "42 2 Related work ",
122
+ "text_level": 1,
123
+ "bbox": [
124
+ 148,
125
+ 478,
126
+ 316,
127
+ 496
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "43 Image Captioning Image Captioning is the task of describing images with syntactically and \n44 semantically sentences. Current deep learning-based image captioning models have evolved as \n45 the encode-decoder frameworks with multi-modal connection [8, 9], attentive [24, 16] and fusion \n46 strategies [58]. Standard captioning datasets contain Flickr30K [56] and the commonly used MS \n47 COCO [32], which consisting of images with events, objects and scenes. Each image is paired with \n48 five captions. Some works have demonstrated the benefits of training on synthetic captions [29, 3] or \n49 datasets collected from other vision-and-language learning tasks [38, 7]. \n50 Data Augmentation Data augmentation [13] has achieved increasing attention in both natural \n51 language processing [33] and vision-and-language learning [27]. Early methods generate augmented \n52 examples in the model’s feature space [54] or interpolate the inputs and labels of few examples [57]. \n53 For downstream tasks in the text domain, Yang et al. [55] and Anaby-Tavor et al. [1] generate \n54 synthetic text examples through state-of-the-art pretrained language models and show improved \n55 performance on common-sense reasoning and text-classification. For image captioning, BERT [11] \n56 has been used to generate additional captions to improve the diversity of the captioning datasets [3]. \n57 Hossain et al. [22] used GAN-synthesized images as additional augmentation training set to improve \n58 image captioning models. \n59 Diffusion Models and Application Diffusion models [49, 35] have grown rapidly and become \n60 the powerful deep generative models. They have shown potential in a variety of applications, \n61 including text-to-image generation [36, 15], image-to-image translation [42], as well as semantic \n62 segmentation [26, 5] and video generation [20, 48, 52]. While recent large scale latent diffusion \n63 models have shown strong capability in generating both artistic and photo-realistic high-resolution \n64 images [41, 34, 39, 43], applying large-scale stable diffusion models in vision-language downstream \n65 tasks remains under-explored. Concurrently, Azizi et al. [4] and Jain et al. [25] show that image \n66 classifiers can be improved by learning from augmentation images generated by finetuned stable \n67 diffusion models. To the best of our knowledge, we are the first to explore how image captioning \n68 models can benefit from simple data curation without scaling up existing datasets, and how stable \n69 diffusion text-to-image models can be applied and contribute in the process. ",
134
+ "bbox": [
135
+ 147,
136
+ 512,
137
+ 825,
138
+ 609
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "",
145
+ "bbox": [
146
+ 145,
147
+ 622,
148
+ 825,
149
+ 747
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "",
156
+ "bbox": [
157
+ 145,
158
+ 758,
159
+ 825,
160
+ 911
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "70 3 Data Curation for Captioning ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 148,
170
+ 89,
171
+ 455,
172
+ 107
173
+ ],
174
+ "page_idx": 2
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "71 Our goal is to improve image captioning models by preventing the model from training on difficult \n72 samples. There are many reasons for the possible existence of these difficult samples, including \n73 mismatches or inconsistencies between the image and caption [3]. More formally, given an image \n74 captioning training dataset $\\mathcal { D }$ with $K$ images, let $\\mathrm { I } _ { k }$ be the $k$ -th image. Each image is paired with \n75 $J$ captions; let $\\mathrm { C } _ { k } ^ { j }$ be $j$ th caption of image $k$ , and thus, let $( \\boldsymbol { \\mathrm { I } } _ { k } , \\boldsymbol { \\mathrm { C } } _ { k } ^ { j } )$ be an image–caption sample in \n76 the dataset. Assume the existence of model $\\mathcal { M }$ , which is being trained on dataset $\\mathcal { D }$ , from which we \n77 can calculate the loss of each sample at each epoch $t$ : $\\mathcal { L } _ { \\mathcal { M } } ^ { t } ( \\mathrm { I } _ { k } , \\mathrm { C } _ { k } ^ { j } )$ , which can be used to track the \n78 difficult samples. At the end of each epoch, the difficult samples are candidates for our data curation \n79 techniques, resulting in dynamic updates to the training dataset $\\mathcal { D } \\to \\mathcal { D } _ { 1 } \\to \\cdots \\to \\mathcal { D } _ { T }$ . ",
179
+ "bbox": [
180
+ 147,
181
+ 122,
182
+ 825,
183
+ 251
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "3.1 Identifying the difficult samples ",
190
+ "text_level": 1,
191
+ "bbox": [
192
+ 161,
193
+ 270,
194
+ 433,
195
+ 285
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "81 Difficult training samples may contain mismatches or inconsis \n82 tencies between the image and the caption [3]. We propose to \n83 use the captioning model that is being trained to automatically \n84 identify such samples. After each epoch, we compute the loss \n85 of each sample in the current training dataset, given the current \n86 model parameters. The highest loss samples are targets for our \n87 data curation methods; more specifically, we focus on samples \n88 with losses that are either two standard deviations from the mean, \n89 or a fixed $X \\%$ away e.g. $10 \\%$ , $20 \\%$ , etc. In this way, the training \n90 dataset is dynamically updated at the end of each epoch according \n91 to the model’s captioning capability. The adjacent figure shows \n92 the empirical distribution of losses in the training samples of \n93 the Flickr30K dataset. It is clear that, without data curation, the \n94 high-loss samples remain high-loss during five epochs of training. ",
202
+ "bbox": [
203
+ 148,
204
+ 296,
205
+ 594,
206
+ 491
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "image",
212
+ "img_path": "images/f93276185cbc74760b08a71a948ec69ff823864460eba48e32ddb37a732b76e3.jpg",
213
+ "image_caption": [
214
+ "Figure 2: Distribution of persample losses in Flickr30K. "
215
+ ],
216
+ "image_footnote": [],
217
+ "bbox": [
218
+ 617,
219
+ 313,
220
+ 810,
221
+ 459
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "95 3.2 Sample Removal / Caption Replacement ",
228
+ "text_level": 1,
229
+ "bbox": [
230
+ 148,
231
+ 508,
232
+ 493,
233
+ 525
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "The simplest approach to data curation is to remove or replace the high-loss samples. In REMOVE, the high-loss samples are completely removed from the remainder of the training process, reducing the total number of image–caption training samples. In REPLACECAP, we simply replace the caption in the image–caption sample with a different caption taken from the other captions that describe the image, effectively creating a duplicate. With the caption replacement method, the total number of samples used to train the model remains the same, as well as the total number of the unique images. This creates a clean control condition for the subsequent experiments. ",
240
+ "bbox": [
241
+ 163,
242
+ 536,
243
+ 825,
244
+ 633
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "103 3.3 Image Generation-based Replacement ",
251
+ "text_level": 1,
252
+ "bbox": [
253
+ 148,
254
+ 651,
255
+ 478,
256
+ 667
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "An alternative to removing difficult samples or replacing captions is to pair an existing caption with a new image. This has the benefit of training the model on the same total number of samples while exposing it to more unique images. The new image could be found by humans, in a long-running human-in-the-loop cycle. Instead, we use a text-to-image generation model, in a rapid model-inthe-loop step, to synthesize images based on the other sentences that describe the image. Some representative examples of images generated using this technique can be seen in Figure 10. ",
263
+ "bbox": [
264
+ 158,
265
+ 679,
266
+ 825,
267
+ 762
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Our methodology is based on the open source Stable Diffusion model [41], which can generate images given a textual prompt. 1 We integrate this into training as follows: Given an image $I _ { k }$ in the training data and its captions $\\{ ( I _ { k } , C _ { k } ^ { 1 } ) , \\ldots , ( I _ { k } , C _ { k } ^ { J } ) \\}$ , we synthesize a new image $\\hat { I } _ { k }$ without increasing the total number of samples in the original dataset. Instead, we replace the original image in the sample with the generated image. Specifically, for image $I _ { k }$ , we replace a high-loss sample $( I _ { k } , C _ { k } ^ { j } )$ with the synthesized image-text pair $( \\hat { I } _ { k } , C _ { k } ^ { j } )$ . ",
274
+ "bbox": [
275
+ 173,
276
+ 768,
277
+ 825,
278
+ 857
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "116 Round-trip captioning evaluation ",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 145,
288
+ 92,
289
+ 408,
290
+ 106
291
+ ],
292
+ "page_idx": 3
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "117 In order to effectively use a text-to-image generation model for data curation, we need an objec \n118 tive measure that can estimate the expected quality of a generated image. Most previous work \n119 uses image-oriented measures like FID [19] or CLIPScore [17] but these measures are claimed \n120 to lack alignment with perceptual quality [44]. We also found they were not suitable for our \n121 purpose, and that CLIPScore cannot distinguish between low- and high-loss samples in the cap \n122 tioning model (Figure 9). Here, we propose an alternative that is directly related to our task: given \n123 the generated image, measure the quality of the caption that can be generated by a fixed model. \n124 Our assumption is that if the generated images \n125 are of a similar quality to the original images, \n126 the resulting captions should be similar to each \n127 other. We call this a round-trip captioning evalu \n128 ation, which comprises three steps illustrated in \n129 Figure 3. In Step (1), we use the captions in the \n130 validation set to generate images using a text-to \n131 image generation model. In Step (2), we use an \n132 existing image-captioning model to predict cap \n133 tions for the generated images. Specifically, we \n134 use BLIP fine-tuned on the COCO dataset but \n135 any other strong captioning model could be used \n136 instead. Finally, in Step (3), we compare the pre \n137 dicted captions against the original captions. We \n138 now discuss the the factors that we found make \n139 a difference when generating images. ",
297
+ "bbox": [
298
+ 140,
299
+ 114,
300
+ 826,
301
+ 212
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "",
308
+ "bbox": [
309
+ 143,
310
+ 213,
311
+ 485,
312
+ 431
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "image",
318
+ "img_path": "images/dd71c6cf0bdb2bfce4295a9727ef57802e3b4792986d2731663ccef0b54643af.jpg",
319
+ "image_caption": [
320
+ "Figure 3: Round-trip captioning evaluation. "
321
+ ],
322
+ "image_footnote": [],
323
+ "bbox": [
324
+ 500,
325
+ 228,
326
+ 823,
327
+ 395
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "140 Prompt engineering matters ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 145,
337
+ 446,
338
+ 372,
339
+ 460
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Recall that text-to-image generation models produce images based on a textual prompts. Given a set of five captions that describe an image, there are several options for how to prompt the image generation model. We experiment with three options: ",
346
+ "bbox": [
347
+ 173,
348
+ 469,
349
+ 825,
350
+ 512
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "• Single caption: Each caption is used in isolation to generate a new image. • Sentence-BERT selection: There is a lot of variety in how different captions describe the same image. Instead of using all captions, we can use a representative caption from the set. This is achieved using the Sentence-BERT [40] model to find the caption that is closest to the average embedding of all captions. • Concatenation: All five captions are concatenated as the text prompt for generation. ",
357
+ "bbox": [
358
+ 215,
359
+ 521,
360
+ 825,
361
+ 621
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "For all three approaches mentioned above, we can append an additional string to the prompt as a styler to force a specific style in the generated image $+ \\cal S$ tyler). The styler used here is: \"national geographic, high quality photography, Canon EOS R3, Flickr\".2 ",
368
+ "bbox": [
369
+ 168,
370
+ 630,
371
+ 826,
372
+ 672
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Finetuning improves image relevance ",
379
+ "text_level": 1,
380
+ "bbox": [
381
+ 161,
382
+ 685,
383
+ 434,
384
+ 700
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Table 1 shows the results of the round-trip captioning evaluation on the Flickr30K dataset using different textual prompts and whether or not to fine-tune the diffusion model. When we fine-tune StableDiffusion, we use the MS COCO [32] dataset with a prompt consisting of a concatenation of all 5 captions, for 15,000 steps with a constant learning rate of $1 e { - } 5$ and a batch size of 32. The best performance is clearly found by fine-tuning Stable Diffusion 1.5 and using a prompt with a concatenation of the captions and the styler. We use this configuration in the remainder of the paper. ",
391
+ "bbox": [
392
+ 174,
393
+ 709,
394
+ 485,
395
+ 890
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "table",
401
+ "img_path": "images/2679cf42c5ca7afde4a76a523590adcad544a86c1101f2b35addc5e22e0d29de.jpg",
402
+ "table_caption": [
403
+ "Table 1: Round-trip captioning evaluation on Flickr30K with different Stable Diffusion models, prompts, and fine-tuning. BLEU, CIDEr, Meteor. "
404
+ ],
405
+ "table_footnote": [],
406
+ "table_body": "<table><tr><td>Model</td><td>FT</td><td>Prompt</td><td>B</td><td>C</td><td>M</td></tr><tr><td>Upper-bound</td><td></td><td></td><td>37.6</td><td>27.2</td><td>57.1</td></tr><tr><td>SD 1.5</td><td>=</td><td>concat</td><td>31.0</td><td>24.7</td><td>52.5</td></tr><tr><td>SD 1.5</td><td>-</td><td>+ styler</td><td>30.8</td><td>24.2</td><td>52.5</td></tr><tr><td>SD 1.5</td><td>F</td><td>+ styler</td><td>33.5</td><td>25.0</td><td>53.5</td></tr><tr><td>SD 1.5</td><td>F</td><td>SBERT + styler</td><td>30.6</td><td>24.1</td><td>52.0</td></tr><tr><td>SD 2.0</td><td>-</td><td>concat + styler</td><td>31.2</td><td>24.8</td><td>52.0</td></tr></table>",
407
+ "bbox": [
408
+ 500,
409
+ 770,
410
+ 823,
411
+ 868
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "image",
417
+ "img_path": "images/5880a1e3bd6cd3c1d7c81a867381c35d10f2f48c5a760f279138df1cf0bdf3a4.jpg",
418
+ "image_caption": [
419
+ "Figure 4: Qualitative examples from the COCO dataset of captions generated by the BLIP model (top), and the same model trained using our REPLACEIMG data curation (bottom). The errors made by the BLIP model (shown in red) are avoided by REPLACEIMG curation (shown in blue). "
420
+ ],
421
+ "image_footnote": [],
422
+ "bbox": [
423
+ 187,
424
+ 126,
425
+ 812,
426
+ 420
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "167 4 Experiments ",
433
+ "text_level": 1,
434
+ "bbox": [
435
+ 143,
436
+ 491,
437
+ 312,
438
+ 507
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "168 We evaluate our data curation methods on the MS COCO and Flickr30K datasets when finetuning the \n169 pretrained BLIP [28] model. We evaluate the captions using BLEU [37], METEOR [10], ROUGE \n170 [31], CIDEr [51], SPICE [2], CLIPScore, and RefCLIPScore [18]. \n171 We use the ViT-based BLIP model [28] as our captioning model. We note that BLIP has a captioning \n172 and filtering (CapFilt) data augmentation process during its pretraining, where both components were \n173 finetuned on the COCO dataset. Therefore we use pretrained checkpoint $\\mathrm { B L I P } _ { C a p F i l t }$ for Flick $3 0 \\mathrm { k }$ \n174 and $\\mathrm { B L I P } _ { b a s e }$ for COCO in our experiment, removing the effects from the CapFilt process. We \n175 finetune BLIP using a batch size of 128 for 5 epochs on $4 \\times$ A100 GPUs. ",
445
+ "bbox": [
446
+ 143,
447
+ 523,
448
+ 825,
449
+ 566
450
+ ],
451
+ "page_idx": 4
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "",
456
+ "bbox": [
457
+ 142,
458
+ 571,
459
+ 825,
460
+ 642
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "4.1 Results ",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 160,
470
+ 662,
471
+ 263,
472
+ 676
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "Removal/Caption Replacement As shown in Table 2, dynamically removing mismatched imagetext pairs or replacing captions can effectively improve performance on both datasets over baselines on all metrics. For Flickr30K, the dynamic updates work best when apply to the top $1 \\%$ of high-loss samples for REPLACECAP, and to samples whose loss are two standard deviations higher than the mean for REMOVE. For COCO, both REPLACECAP and REMOVE works best when curating the top $1 \\%$ of high-loss samples. We repeat that during the curation process, no additional data samples or computation cost is introduced. We further study the effect of the amount of curation in Section 5. ",
479
+ "bbox": [
480
+ 161,
481
+ 681,
482
+ 825,
483
+ 779
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "184 Image Generation-based Replacement We evaluate Image Generation-based Replacement on \n185 both the Flickr30K and COCO dataset. During finetuning, we replace images in the original text \n186 image pairs with Stable Diffusion-synthesized images (ReplaceImg in Table 2). The results show \n187 improvements compared to the baseline in every evaluation measure with best performance obtained \n188 at replacement ratio of $40 \\%$ for Flickr30K and at $10 \\%$ for COCO. We show qualitative examples in \n189 Figure 4, where models finetuned with our proposed curation method can generate better captions for \n190 some scenes that may confuse the standard finetuned model. In Section 5.1, we analyze the effects of \n191 varying the amount of synthetic images replaced, and in Section 5.2, we conduct a human study of \n192 the types of errors found in the generated images. ",
490
+ "bbox": [
491
+ 140,
492
+ 786,
493
+ 825,
494
+ 911
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "image",
500
+ "img_path": "images/bd0d9934e6787c5f94594cb8179e809d60cfc4a1ff3bb7ada286ba3543b5e6bd.jpg",
501
+ "image_caption": [
502
+ "Figure 5: Effects of the amount of data curated when finetuning the captioning model. We can observe that Flickr30K needs more curation $40 \\%$ REPLACEIMG or 2 std REMOVE) than COCO ( $10 \\%$ REPLACEIMG or $1 \\%$ REPLACECAP). Flickr30K benefits more from removing high-loss training samples, indicating the original dataset may be noisier than MS COCO. For the 2 std approach, the number of samples curated is not fixed after each epoch and varies between $5 \\%$ to $10 \\%$ . "
503
+ ],
504
+ "image_footnote": [],
505
+ "bbox": [
506
+ 181,
507
+ 94,
508
+ 815,
509
+ 270
510
+ ],
511
+ "page_idx": 5
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "193 5 Analysis and Discussion ",
516
+ "text_level": 1,
517
+ "bbox": [
518
+ 153,
519
+ 392,
520
+ 405,
521
+ 409
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "5.1 Data Curation: how much and when? ",
528
+ "text_level": 1,
529
+ "bbox": [
530
+ 169,
531
+ 426,
532
+ 475,
533
+ 441
534
+ ],
535
+ "page_idx": 5
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "We analyze how the amount of curation affects image captioning performance. We examine different ratios of training samples that are removed, replaced with an alternative caption, or replaced with a synthesized image. For REMOVE and REPLACECAP, we consider curation ratio of $1 \\%$ , $5 \\%$ and $10 \\%$ of high-loss samples. For REPLACEIMG, we consider $10 \\% { - } 8 0 \\%$ curation ratio. In addition to fixed $X \\%$ ratios, we also intereven on samples that have losses two standard deviations worse than the mean. ",
540
+ "bbox": [
541
+ 169,
542
+ 454,
543
+ 825,
544
+ 537
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "201 Flickr30K needs more curation than COCO. The results of this analysis are shown in Figure 5. \n202 The best improvement in performance for Flickr30K is achieved either through removing high loss \n203 samples that are two standard deviations away, or replacing images for $40 \\%$ of the high loss samples. \n204 In the COCO dataset, replacing images for $10 \\%$ of the \n205 high loss samples gives the best improvement compared \n206 to no data curation. The second best performing method \n207 for COCO is removing or replacing captions of only $1 \\%$ \n208 of the high loss samples. This indicates that Flickr30K \n209 may contain more noisy samples than the MS COCO \n210 dataset. Compared to MS COCO, Flickr30K contains \n211 more samples with long captions (Figure 6), which may \n212 include overly-specific details that are inconsistent with \n213 other captions and are hard for the model to learn. See \n214 more examples in our supplemental materials. Through \n215 our curation-based finetuning, these samples can be effec \n216 tively identified, removed or replaced, which indicates that \n217 our method is efficient when training with noisy datasets. We note that curating more than $50 \\%$ of \n218 the data does not benefit training and actually harms performance. \n219 Static image replacement versus dynamic replacement In REPLACEIMG (Section 3.3), we \n220 dynamically replace images for the difficult training samples. Another static approach is to replace \n221 the identical images, i.e. $I _ { k }$ in $\\{ ( I _ { k } , C _ { k } ^ { 1 } ) , \\ldots , ( I _ { k } , \\check { C } _ { k } ^ { J } ) \\}$ , with unique SD-synthesized images before \n222 training, instead of updating the training samples while training. With static image replacement, for \n223 each of the reference captions, we replace their original image with a SD-synthesized image. Static \n224 replacement with $20 \\% { - } 8 0 \\%$ curation ratio corresponds to replacing images for one–four captions of ",
551
+ "bbox": [
552
+ 140,
553
+ 559,
554
+ 825,
555
+ 601
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "",
562
+ "bbox": [
563
+ 143,
564
+ 602,
565
+ 550,
566
+ 779
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "image",
572
+ "img_path": "images/a6f75623bf6c27b9b39c97e30c9dccdd5ceeb53188a88c396f0b67988df825f7.jpg",
573
+ "image_caption": [
574
+ "Figure 6: Distribution of caption lengths. "
575
+ ],
576
+ "image_footnote": [],
577
+ "bbox": [
578
+ 570,
579
+ 623,
580
+ 795,
581
+ 756
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "",
588
+ "bbox": [
589
+ 150,
590
+ 780,
591
+ 825,
592
+ 808
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "",
599
+ "bbox": [
600
+ 140,
601
+ 828,
602
+ 825,
603
+ 911
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "image",
609
+ "img_path": "images/b724073f5d31a2a624b4d55823d3db3c56d82fc197f5992637a482159ecf6e7b.jpg",
610
+ "image_caption": [
611
+ "Figure 7: Dynamic image replacement against static replacement, as a function of the number of samples replaced. "
612
+ ],
613
+ "image_footnote": [],
614
+ "bbox": [
615
+ 191,
616
+ 111,
617
+ 413,
618
+ 241
619
+ ],
620
+ "page_idx": 6
621
+ },
622
+ {
623
+ "type": "image",
624
+ "img_path": "images/9109d63e5c77bff9c3902a83a05ce5457cdefa8e3688c476533290a693e205f7.jpg",
625
+ "image_caption": [
626
+ "Figure 8: Loss distribution of training samples across epochs with different curation methods. "
627
+ ],
628
+ "image_footnote": [],
629
+ "bbox": [
630
+ 482,
631
+ 93,
632
+ 800,
633
+ 251
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "image",
639
+ "img_path": "images/b7f9ce0a993f619a4c9e733eba30581534866055483bee3d24f984c1a430c635.jpg",
640
+ "image_caption": [
641
+ "(a) Distribution of text-to-image generation errors. "
642
+ ],
643
+ "image_footnote": [],
644
+ "bbox": [
645
+ 220,
646
+ 376,
647
+ 446,
648
+ 506
649
+ ],
650
+ "page_idx": 6
651
+ },
652
+ {
653
+ "type": "image",
654
+ "img_path": "images/b19f84fd0a3b52e2e475622b0bb0a3e1d862d65ede861c5eb52a84372a704122.jpg",
655
+ "image_caption": [
656
+ "(b) Human evaluation versus CLIPScore. "
657
+ ],
658
+ "image_footnote": [],
659
+ "bbox": [
660
+ 519,
661
+ 363,
662
+ 766,
663
+ 505
664
+ ],
665
+ "page_idx": 6
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Figure 9: Results of the human study of the errors made by the Stable Diffusion model in 100 images. The images used in the study were chosen to represent either low or high model loss. (a) Histogram of the number of errors annotated in each category. The most frequently occurring annotations concern weird deformations in the expected objects or humans. (b) Relationship between average number of identified errors by human annotations for each synthesized image and its captioning loss with regard to original captions. More errors are identified in images of higher loss. However, CLIPScore appears to fail in validating qualities of the synthesized images, as the score ranges are almost identical for samples that contain more errors. ",
670
+ "bbox": [
671
+ 173,
672
+ 534,
673
+ 825,
674
+ 645
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "225 the original five. The $50 \\%$ replacement ratio mimics a fair coin-flip, where for each of the text-image \n226 samples, there is $50 \\%$ probability for the image to be replaced by a synthesized image. \n227 We compare the efficacy of these two approaches in Figure 7. When evaluating on the original \n228 1k validation set, we see that for both approaches, incorporating synthesized images of $20 \\%$ or \n229 $40 \\%$ can assist finetuning and achieves higher BLEU4 and CIDEr scores. Nevertheless, dynamic \n230 image replacement consistently performs better than the static method, showing focusing on the hard \n231 samples is effective. For both replacement methods, performance starts to decrease when the curation \n232 ratio is too high. This may indicate that when incorporating too many images from the synthetic \n233 distribution, the gap increases between the training and evaluation sets. \n234 Figure 8 shows the effect of the curation techniques in the training loss distributions across epochs. \n235 For the REMOVE approach, training samples with loss that are two standard deviations worse than the \n236 mean are dynamically removed during training, leading to the shrinking tail of the loss distribution. \n237 SD-based image replacement gradually reduces losses through learning from a mixture of Gaussian \n238 distribution from original image-text pairs and the ones contain synthesized images. ",
681
+ "bbox": [
682
+ 148,
683
+ 704,
684
+ 823,
685
+ 733
686
+ ],
687
+ "page_idx": 6
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "",
692
+ "bbox": [
693
+ 140,
694
+ 738,
695
+ 825,
696
+ 835
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "",
703
+ "bbox": [
704
+ 140,
705
+ 842,
706
+ 825,
707
+ 911
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "table",
713
+ "img_path": "images/59cb387eaa11efcf1fe9990004718392ee957360c7b38bc20eb8747030037cea.jpg",
714
+ "table_caption": [],
715
+ "table_footnote": [],
716
+ "table_body": "<table><tr><td>Image</td><td>Caption</td><td>CLIPScore Loss</td><td></td><td>Categorized Errors</td></tr><tr><td></td><td>A picture of two women with one in lacy white dress with handbag and leggings and the other with a tall red hat, black mid-dress,and frame like plastic dress on top.</td><td>84.1</td><td>181.0</td><td>type/color of clothing, color-clothing, weird-face</td></tr><tr><td></td><td>A pedicab driver waiting on his bike.</td><td>89.3</td><td>169.2</td><td>weird-main-object, weird-other-object, weird-body-parts, stance</td></tr><tr><td></td><td>A man in a black suit with tie and corsage smiles77.6 at a girl who smiles back,both are sitting at a tableat a semi formal event such as a wedding or reunion.</td><td></td><td>163.5</td><td>color-clothing, weird-body-parts, wrong-main-object, scene/event/location</td></tr><tr><td></td><td>Two men are playing guitars and one man is singing into a microphone on a stage with the spotlight on them.</td><td>74.7</td><td>26.0</td><td>weird-face, weird-body-parts, weird-main-object, weird-other-object</td></tr><tr><td></td><td>There a several people in a dark bar-type room,84.9 including one girl on a stool.</td><td></td><td>26.5</td><td>number, weird-face, weird-main-object, weird-body-parts</td></tr><tr><td></td><td>Many children are playing and swimming in the water.</td><td>78.2</td><td>26.9</td><td>weird-face, weird-body-parts</td></tr></table>",
717
+ "bbox": [
718
+ 197,
719
+ 92,
720
+ 769,
721
+ 530
722
+ ],
723
+ "page_idx": 7
724
+ },
725
+ {
726
+ "type": "image",
727
+ "img_path": "",
728
+ "image_caption": [
729
+ "Figure 10: Examples of synthesized images that are of high losses (top) and examples of synthesized images that are of low losses (bottom). Human annotations show that consistent error types have been recognized for the high loss samples while CLIPScore fails to align with human judgement. The low loss synthesized images are visually less complicated than the higher loss ones, but can still often look weird and contain errors in color or objects. "
730
+ ],
731
+ "image_footnote": [],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "239 5.2 Human Study: Errors made by SD models ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 145,
740
+ 636,
741
+ 509,
742
+ 651
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Finally, we conduct a human study of the errors present in the SD-synthesized images. This will serve to better understand any shortcomings with this approach that is not captured by automatic evaluation measures. ",
749
+ "bbox": [
750
+ 173,
751
+ 662,
752
+ 825,
753
+ 704
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "243 We first ranked SD-synthesized images by model loss from the 1K images in the validation set. This \n244 validation set of synthesized images was generated using the best performing configuration of the \n245 Stable Diffusion model (see Section 3.3). We then sampled a subset for human annotation using the \n246 top and bottom 50 images based on their loss using our fine-tuned captioning model. These images \n247 are uniformly divided into 5 sets, each containing 20 images with equal number of the high loss \n248 ones and the low loss ones. The data was annotated by 12 people, members of a university research \n249 lab with a basic understanding of Stable Diffusion but no knowledge of the bi-modal distribution \n250 of images. The annotators were asked to categorize the errors they observed in the synthesized \n251 images, given both the image and the reference sentences that were used to generate the images. Each \n252 participant annotated one set of 20 images. \n253 Starting from the categories defined by van Miltenburg and Elliott [50], we predefined 25 categories \n254 including general errors such as color, or number mismatches, and errors related to people and \n255 objects in the images. Please see the user interface in supplemental materials. We analyze the human \n256 judgements for the images that have at least three annotations, yielding 74 unique images. \n257 As shown in Figure 9a, the most common problem of SD-synthesized images are that they often \n258 generate weird face or body parts, which makes the images less natural or pleasant. The Stable \n259 Diffusion model is also weak at generating the correct number of people or objects. From Figure 9b \n260 we confirm the quality of our collected annotations that high loss figures often contain more errors \n261 on average. Furthermore, we note that CLIPScore does not appear to align with human judgements, \n262 indicating its weak capability of evaluating quality of generated images. Please see more concrete \n263 examples in Figure 10. ",
760
+ "bbox": [
761
+ 147,
762
+ 710,
763
+ 825,
764
+ 849
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "",
771
+ "bbox": [
772
+ 140,
773
+ 856,
774
+ 823,
775
+ 911
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "",
782
+ "bbox": [
783
+ 140,
784
+ 92,
785
+ 825,
786
+ 189
787
+ ],
788
+ "page_idx": 8
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "264 6 Conclusion ",
793
+ "text_level": 1,
794
+ "bbox": [
795
+ 143,
796
+ 210,
797
+ 299,
798
+ 227
799
+ ],
800
+ "page_idx": 8
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "65 In this paper, we have shown a simple, yet effective, data curation framework that can improve the \n66 performance of image captioning models. We investigated three approaches to data curation that \n67 dynamically update the training dataset based on high-loss image-caption samples. The methods \n68 involved either removing a sample, replacing the caption in a sample, or generating a new image \n69 from existing captions. Experimental results on the Flickr30K and MS COCO datasets show the \n70 effectiveness of these approaches to data curation without increasing the total size of the training \n71 dataset. A deeper analysis of the images synthesized by Stable Diffusion shows frequent errors on \n72 generating objects of a certain amount or color, and struggles with human body features. A human \n73 evaluation of the errors in those images shows a clear difference in images with high or low losses. \n274 In the future, we expect that better text-to-image generation models will lead to further improvements \n275 from using synthesized images for difficult captions in existing training datasets. We plan on \n276 verifying whether these findings extend to other image captioning models, which was not possible \n277 here due to computational issues. Finally, we are interested in applying the same framework to other \n278 multimodal tasks, especially those with undercomplete datasets that cannot comprehensively cover \n279 the distributional space due to the cost of crowdsourcing enough data, e.g. visual question answering, \n280 or visually-grounded dialog. ",
805
+ "bbox": [
806
+ 150,
807
+ 242,
808
+ 825,
809
+ 367
810
+ ],
811
+ "page_idx": 8
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "",
816
+ "bbox": [
817
+ 140,
818
+ 375,
819
+ 825,
820
+ 472
821
+ ],
822
+ "page_idx": 8
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "281 Limitations ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 145,
830
+ 492,
831
+ 272,
832
+ 508
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "While our curation methods being effective on image-captioning in the finetuning and fewshotlearning settings, it is not clear if the same strategy can be scaled and adapted also to vision-language pretraining. Currently our data curation methods also rely on state-of-the art pretrained models for both image understanding and text-to-image generation. In pretraining, models will often be trained from scratch and pretraining data are often collected from multiple datasets and resources. ",
839
+ "bbox": [
840
+ 173,
841
+ 525,
842
+ 825,
843
+ 594
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Moreover, while we take an online approach to data curation, our current approach is upper bounded in speed and performance of the text-to-image generation model. This might be a large bottle neck for adapting the strategy for more complicated vision-and-language tasks. ",
850
+ "bbox": [
851
+ 166,
852
+ 602,
853
+ 823,
854
+ 642
855
+ ],
856
+ "page_idx": 8
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "290 Ethics Statement ",
861
+ "text_level": 1,
862
+ "bbox": [
863
+ 143,
864
+ 665,
865
+ 316,
866
+ 681
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Text-to-image generation with Stable Diffusion is controversial in the broader AI and ethics community[6]. For example, it can generate images according to gender or racial stereotypes, which may prove harmful to members of those communities [30]. In this paper, we use Stable Diffusion to improve the quality of an image captioning model, given a specific set of crowdsourced captions. Those captions may themselves contain harmful stereotypes that would become more prevalent in our dynamically updated training datasets. As we dynamically update the model with new images based on loss values, we remove the water-marker in our generated images to prevent information leak to the model. Use of the synthesized images will strictly follow community guidelines. ",
873
+ "bbox": [
874
+ 171,
875
+ 696,
876
+ 825,
877
+ 821
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "References ",
884
+ "text_level": 1,
885
+ "bbox": [
886
+ 171,
887
+ 844,
888
+ 266,
889
+ 859
890
+ ],
891
+ "page_idx": 8
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "[1] Ateret Anaby-Tavor, Boaz Carmeli, Esther Goldbraich, Amir Kantor, George Kour, Segev Shlomov, Naama Tepper, and Naama Zwerdling. Do not have enough data? deep learning to the rescue! In AAAI, pages 7383–7390. AAAI Press, 2020. 2 ",
896
+ "bbox": [
897
+ 181,
898
+ 869,
899
+ 823,
900
+ 911
901
+ ],
902
+ "page_idx": 8
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "304 [2] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. Spice: Semantic \n305 propositional image caption evaluation. In European conference on computer vision, pages \n306 382–398. Springer, 2016. 5 \n307 [3] Viktar Atliha and Dmitrij Šešok. Text augmentation using bert for image captioning. Applied \n308 Sciences, 2020. 2, 3 \n309 [4] Shekoofeh Azizi, Simon Kornblith, Chitwan Saharia, Mohammad Norouzi, and David J. Fleet. \n310 Synthetic data from diffusion models improves imagenet classification, 2023. 2 \n311 [5] Dmitry Baranchuk, Andrey Voynov, Ivan Rubachev, Valentin Khrulkov, and Artem Babenko. \n312 Label-efficient semantic segmentation with diffusion models. In International Conference on \n313 Learning Representations, 2022. URL https://openreview.net/forum?id $\\underset { . } { = }$ SlxSY2UZQT. \n314 2 \n315 [6] Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, \n316 Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. \n317 arXiv preprint arXiv:2301.13188, 2023. 9 \n318 [7] Soravit Changpinyo, Doron Kukliansy, Idan Szpektor, Xi Chen, Nan Ding, and Radu Sori \n319 cut. All you may need for VQA are image captions. In Marine Carpuat, Marie-Catherine \n320 de Marneffe, and Iván Vladimir Meza Ruíz, editors, NAACL, pages 1947–1963. Association for \n321 Computational Linguistics, 2022. 2 \n322 [8] Fuhai Chen, Rongrong Ji, Jinsong Su, Yongjian Wu, and Yunsheng Wu. Structcap: Structured \n323 semantic embedding for image captioning. In Qiong Liu, Rainer Lienhart, Haohong Wang, \n324 Sheng-Wei \"Kuan-Ta\" Chen, Susanne Boll, Yi-Ping Phoebe Chen, Gerald Friedland, Jia Li, and \n325 Shuicheng Yan, editors, MM, pages 46–54. ACM, 2017. 2 \n326 [9] Fuhai Chen, Rongrong Ji, Xiaoshuai Sun, Yongjian Wu, and Jinsong Su. Groupcap: Group \n327 based image captioning with structured relevance and diversity constraints. In CVPR, pages \n328 1345–1353. Computer Vision Foundation / IEEE Computer Society, 2018. 2 \n329 [10] Michael Denkowski and Alon Lavie. Meteor universal: Language specific translation evaluation \n330 for any target language. In Proceedings of the ninth workshop on statistical machine translation, \n331 pages 376–380, 2014. 5 \n332 [11] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of \n333 deep bidirectional transformers for language understanding. In Proceedings of the 2019 Confer \n334 ence of the North American Chapter of the Association for Computational Linguistics: Human \n335 Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, \n336 Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423. \n337 URL https://aclanthology.org/N19-1423. 2 \n338 [12] Steven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura, \n339 and Eduard Hovy. A survey of data augmentation approaches for NLP. In Findings of the \n340 Association for Computational Linguistics: ACL-IJCNLP 2021, pages 968–988, Online, August \n341 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.findings-acl.84. URL \n342 https://aclanthology.org/2021.findings-acl.84. 1 \n343 [13] Steven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura, \n344 and Eduard H. Hovy. A survey of data augmentation approaches for NLP. In Chengqing Zong, \n345 Fei Xia, Wenjie Li, and Roberto Navigli, editors, ACL, volume ACL/IJCNLP 2021 of Findings \n346 of ACL, pages 968–988. Association for Computational Linguistics, 2021. 2 \n347 [14] Zhe Gan, Linjie Li, Chunyuan Li, Lijuan Wang, Zicheng Liu, and Jianfeng Gao. Vision-language \n348 pre-training: Basics, recent advances, and future trends, 2022. 1 \n349 [15] Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, and \n350 Baining Guo. Vector quantized diffusion model for text-to-image synthesis. In CVPR, pages \n351 10686–10696. IEEE, 2022. 2 ",
907
+ "bbox": [
908
+ 143,
909
+ 40,
910
+ 828,
911
+ 916
912
+ ],
913
+ "page_idx": 9
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "352 [16] Longteng Guo, Jing Liu, Xinxin Zhu, Peng Yao, Shichen Lu, and Hanqing Lu. Normalized and geometry-aware self-attention network for image captioning. In CVPR, pages 10324–10333. Computer Vision Foundation / IEEE, 2020. 2 \n355 [17] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: a reference-free evaluation metric for image captioning. In EMNLP, 2021. 4 [18] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: A reference-free evaluation metric for image captioning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7514–7528, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10. 18653/v1/2021.emnlp-main.595. URL https://aclanthology.org/2021.emnlp-main. 595. 5 [19] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017. 4 \n[20] Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J Fleet. Video diffusion models. arXiv:2204.03458, 2022. 2 \n368 [21] Sara Hooker. The hardware lottery, 2020. 1 \n369 [22] Md. Zakir Hossain, Ferdous Sohel, Mohd Fairuz Shiratuddin, Hamid Laga, and Mohammed Bennamoun. Text to image synthesis for improved image captioning. IEEE Access, 9:64918– 64928, 2021. doi: 10.1109/ACCESS.2021.3075579. 2 [23] Xiaowei Hu, Zhe Gan, Jianfeng Wang, Zhengyuan Yang, Zicheng Liu, Yumao Lu, and Lijuan Wang. Scaling up vision-language pre-training for image captioning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17980–17989, 2022. 1 [24] Lun Huang, Wenmin Wang, Jie Chen, and Xiaoyong Wei. Attention on attention for image captioning. In ICCV, pages 4633–4642. IEEE, 2019. 2 [25] Saachi Jain, Hannah Lawrence, Ankur Moitra, and Aleksander Madry. Distilling model failures as directions in latent space. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id $\\equiv$ 99RpBVpLiX. 2 [26] Peng Jiang, Fanglin Gu, Yunhai Wang, Changhe Tu, and Baoquan Chen. Difnet: Semantic segmentation by diffusion networks. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. CesaBianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/ paper/2018/file/c2626d850c80ea07e7511bbae4c76f4b-Paper.pdf. 2 \n386 [27] Guodun Li, Yuchen Zhai, Zehao Lin, and Yin Zhang. Similar scenes arouse similar emotions: Parallel data augmentation for stylized image captioning. In Heng Tao Shen, Yueting Zhuang, John R. Smith, Yang Yang, Pablo César, Florian Metze, and Balakrishnan Prabhakaran, editors, MM, pages 5363–5372. ACM, 2021. 2 [28] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In ICML, 2022. 1, 5 [29] Junnan Li, Dongxu Li, Caiming Xiong, and Steven C. H. Hoi. BLIP: bootstrapping languageimage pre-training for unified vision-language understanding and generation. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvári, Gang Niu, and Sivan Sabato, editors, ICML, volume 162 of Proceedings of Machine Learning Research, pages 12888–12900. PMLR, 2022. 2 \n397 [30] Minghui Li, Yan Wan, and Jinping Gao. What drives the ethical acceptance of deep synthesis applications? a fuzzy set qualitative comparative analysis. Computers in Human Behavior, 133: 107286, 2022. ISSN 0747-5632. doi: https://doi.org/10.1016/j.chb.2022.107286. 9 ",
918
+ "bbox": [
919
+ 148,
920
+ 49,
921
+ 828,
922
+ 917
923
+ ],
924
+ "page_idx": 10
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "400 [31] Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summariza \n401 tion Branches Out, pages 74–81, Barcelona, Spain, July 2004. Association for Computational \n402 Linguistics. URL https://aclanthology.org/W04-1013. 5 \n403 [32] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James \n404 Hays, Pietro Perona, Deva Ramanan, Piotr Doll’a r, and C. Lawrence Zitnick. Microsoft COCO: \n405 common objects in context. CoRR, abs/1405.0312, 2014. 1, 2, 4 \n406 [33] Ruibo Liu, Guangxuan Xu, Chenyan Jia, Weicheng Ma, Lili Wang, and Soroush Vosoughi. Data \n407 boost: Text data augmentation through reinforcement learning guided conditional generation. \n408 In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu, editors, EMNLP, pages 9031–9041. \n409 Association for Computational Linguistics, 2020. 2 \n410 [34] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, \n411 Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing \n412 with text-guided diffusion models, 2022. 2 \n413 [35] Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic \n414 models. In Marina Meila and Tong Zhang, editors, ICML, volume 139, pages 8162–8171. \n415 PMLR, 2021. 2 \n416 [36] Alexander Quinn Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, \n417 Bob McGrew, Ilya Sutskever, and Mark Chen. GLIDE: towards photorealistic image generation \n418 and editing with text-guided diffusion models. In Kamalika Chaudhuri, Stefanie Jegelka, \n419 Le Song, Csaba Szepesvári, Gang Niu, and Sivan Sabato, editors, ICML, volume 162, pages \n420 16784–16804, 2022. 2 \n421 [37] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic \n422 evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association \n423 for Computational Linguistics, pages 311–318, 2002. 5 \n424 [38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agar \n425 wal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya \n426 Sutskever. Learning transferable visual models from natural language supervision. In Ma \n427 rina Meila and Tong Zhang, editors, ICML, volume 139 of Proceedings of Machine Learning \n428 Research, pages 8748–8763. PMLR, 2021. 2 \n429 [39] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical \n430 text-conditional image generation with clip latents, 2022. 2 \n431 [40] Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese \n432 BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Nat \n433 ural Language Processing and the 9th International Joint Conference on Natural Lan \n434 guage Processing (EMNLP-IJCNLP), pages 3982–3992, Hong Kong, China, November \n435 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1410. URL \n436 https://aclanthology.org/D19-1410. 4 \n437 [41] Robin Rombach, A. Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High \n438 resolution image synthesis with latent diffusion models. 2022 IEEE/CVF Conference on \n439 Computer Vision and Pattern Recognition (CVPR), pages 10674–10685, 2022. 1, 2, 3 \n440 [42] Chitwan Saharia, William Chan, Huiwen Chang, Chris A. Lee, Jonathan Ho, Tim Salimans, \n441 David J. Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. In \n442 Munkhtsetseg Nandigjav, Niloy J. Mitra, and Aaron Hertzmann, editors, SIGGRAPH, pages \n443 15:1–15:10. ACM, 2022. 2 \n444 [43] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed \n445 Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S. Sara Mahdavi, Rapha Gontijo Lopes, Tim \n446 Salimans, Jonathan Ho, David J Fleet, and Mohammad Norouzi. Photorealistic text-to-image \n447 diffusion models with deep language understanding, 2022. 2 ",
929
+ "bbox": [
930
+ 142,
931
+ 88,
932
+ 828,
933
+ 922
934
+ ],
935
+ "page_idx": 11
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "448 [44] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L. Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, Seyedeh Sara Mahdavi, Raphael Gontijo Lopes, Tim Salimans, Jonathan Ho, David J. Fleet, and Mohammad Norouzi. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint, 2022. URL https://doi.org/10.48550/arXiv.2205.11487. 4 [45] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. Laion- $. 4 0 0 \\mathrm { m }$ : Open dataset of clip-filtered 400 million image-text pairs. arXiv preprint, 2021. URL https: //doi.org/10.48550/arXiv.2111.02114. 1 [46] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-1238. URL https://aclanthology.org/P18-1238. 1 [47] Connor Shorten and Taghi M Khoshgoftaar. A survey on image data augmentation for deep learning. Journal of big data, 6(1):1–48, 2019. 1 [48] Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, Devi Parikh, Sonal Gupta, and Yaniv Taigman. Make-a-video: Text-to-video generation without text-video data, 2022. 2 [49] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In ICLR, 2021. 2 [50] Emiel van Miltenburg and Desmond Elliott. Room for improvement in automatic image description: an error analysis. CoRR, abs/1704.04198, 2017. 8 [51] Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4566–4575, 2015. 5 [52] Ruben Villegas, Mohammad Babaeizadeh, Pieter-Jan Kindermans, Hernan Moraldo, Han Zhang, Mohammad Taghi Saffar, Santiago Castro, Julius Kunze, and Dumitru Erhan. Phenaki: Variable length video generation from open domain textual description, 2022. 2 [53] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. Simvlm: Simple visual language model pretraining with weak supervision. Learning, 2021. 1 [54] Jason W. Wei and Kai Zou. EDA: easy data augmentation techniques for boosting performance on text classification tasks. In Kentaro Inui, Jing Jiang, Vincent $\\mathrm { N g }$ , and Xiaojun Wan, editors, EMNLP-IJCNLP, pages 6381–6387. Association for Computational Linguistics, 2019. 2 [55] Yiben Yang, Chaitanya Malaviya, Jared Fernandez, Swabha Swayamdipta, Ronan Le Bras, Ji-Ping Wang, Chandra Bhagavatula, Yejin Choi, and Doug Downey. G-daug: Generative data augmentation for commonsense reasoning. In Trevor Cohn, Yulan He, and Yang Liu, editors, EMNLP, volume EMNLP 2020 of Findings of ACL, pages 1008–1025. Association for Computational Linguistics, 2020. 2 [56] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. TACL, 2:67–78, 2014. 1, 2 [57] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR. OpenReview.net, 2018. 2 [58] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason J. Corso, and Jianfeng Gao. Unified vision-language pre-training for image captioning and VQA. In AAAI, pages 13041– 13049. AAAI Press, 2020. 2 ",
940
+ "bbox": [
941
+ 150,
942
+ 36,
943
+ 828,
944
+ 902
945
+ ],
946
+ "page_idx": 12
947
+ }
948
+ ]
parse/dev/wv79UiY5U7/wv79UiY5U7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wv79UiY5U7/wv79UiY5U7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/zq1iJkNk3uN/zq1iJkNk3uN_content_list.json ADDED
@@ -0,0 +1,1925 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SUPERVISION EXISTS EVERYWHERE: A DATA EFFICIENT CONTRASTIVE LANGUAGE-IMAGE PRE-TRAINING PARADIGM ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 723,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yangguang $\\mathbf { L i } ^ { * 1 , }$ ,, Feng Liang∗ 2, Lichen Zhao∗ 1, Yufeng $\\mathbf { C } \\mathbf { u } \\mathbf { i }$ , Wanli Ouyang3, Jing Shao1, Fengwei ${ { \\bf { Y } } { \\bf { u } } ^ { 1 } }$ , Junjie Yan1 ",
17
+ "bbox": [
18
+ 184,
19
+ 194,
20
+ 619,
21
+ 224
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1SenseTime Research \n2The University of Texas at Austin \n3University of Sydney \n{liyangguang,zhaolichen,cuiyufeng}@sensetime.com \njeffliang@utexas.edu ",
28
+ "bbox": [
29
+ 184,
30
+ 227,
31
+ 651,
32
+ 295
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 333,
43
+ 544,
44
+ 348
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recently, large-scale Contrastive Language-Image Pre-training (CLIP) (Radford et al., 2021) has attracted unprecedented attention for its impressive zero-shot recognition ability and excellent transferability to downstream tasks. However, CLIP is quite data-hungry and requires 400M image-text pairs for pre-training, thereby restricting its adoption. This work proposes a novel training paradigm, Data efficient CLIP (DeCLIP), to alleviate this limitation. We demonstrate that by carefully utilizing the widespread supervision among the image-text pairs, our DeCLIP can learn generic visual features more efficiently. Instead of using the single image-text contrastive supervision, we fully exploit data potential through the use of (1) self-supervision within each modality; (2) multi-view supervision across modalities; (3) nearest-neighbor supervision from other similar pairs. Benefiting from these intrinsic supervision, our DeCLIP-ResNet50 can achieve $6 0 . 4 \\%$ zeroshot top1 accuracy on ImageNet, which is $0 . 8 \\%$ above the CLIP-ResNet50 while using $7 . 1 \\times$ fewer data. Our DeCLIP-ResNet50 outperforms its counterpart in 8 out of 11 visual datasets when transferred to downstream tasks. Moreover, Scaling up the model and computing also works well in our framework. Our code, dataset and models are released at: https://github.com/Sense-GVT/DeCLIP ",
51
+ "bbox": [
52
+ 232,
53
+ 364,
54
+ 764,
55
+ 601
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 627,
66
+ 336,
67
+ 642
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Over the last few years, pre-trained models have greatly revolutionized computer vision (CV) and natural language processing (NLP). The first wave of exploring pre-trained models took place in the field of CV. Deep convolutional neural nets (Krizhevsky et al., 2012; Simonyan & Zisserman, 2014; He et al., 2016) are pre-trained on well-labeled ImageNet (Deng et al., 2009) and then transferred to downstream CV tasks (Girshick et al., 2014; Long et al., 2015; Vinyals et al., 2015). Standardly, CV models are pre-trained to predict a fixed set of pre-defined object categories, e.g., 1000 classes in ImageNet. However, this supervised pre-training is hard to scale since we need arduous human labeling to specify new visual concepts. ",
74
+ "bbox": [
75
+ 174,
76
+ 659,
77
+ 823,
78
+ 770
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "When pre-training meets NLP, the intrinsic supervision within the natural language makes the pretraining more scalable (Devlin et al., 2018; Radford et al., 2019; Brown et al., 2020). Witnessing the progress in NLP, researchers use natural language supervision to learn visual features. The language-image pre-training can scale up to a very large size, benefiting from abundant image-text pairs on the Internet. For instance, CLIP (Radford et al., 2021) and ALIGN (Jia et al., 2021) adopt the contrastive loss to push the embedding of matched image-text pairs together while pushing those of non-matched pairs apart. They achieve prestigious performance by learning from an enormous dataset that contains 400M/1B image-text pairs. However, these methods also require huge storage and computing resources, which is not affordable for most laboratories and companies. We argue that these prior arts only use the single image-text contrastive supervision while overlooking the widespread supervision within the pairs, thus is inefficient. ",
85
+ "bbox": [
86
+ 174,
87
+ 776,
88
+ 825,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/0ce1d9446a4c27c1beac26f91cc23c8f585923fe59a3017bc43c6e9fe2aab4fe.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Zero-shot performance of CLIP- Figure 2: Transfer the DeCLIP-ResNet50 (abbr. ResNet50 and our DeCLIP-ResNet50 when us- as DeC) and CLIP-ResNet50 (abbr. as C) to 11 ing different amounts of data. (88M, $6 2 . 5 \\% )$ ) de- downstream visual datasets using linear probe notes the use of 88M data with top-1 accuracy verification. Our DeCLIP achieves better results $6 2 . 5 \\%$ on the ImageNet-1K validation dataset. in 8 out of 11 datasets. Our model has much better data efficiency. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 171,
102
+ 77,
103
+ 823,
104
+ 275
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 174,
113
+ 396,
114
+ 823,
115
+ 424
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Firstly, there underlies rich structural information within each modality itself (LeCun & Misra, 2021). We can tweak some words/pixels in a sentence/image while retaining a similar semantic meaning. This sort of self-supervision can be exploited to learn a more common-sense representation for each modality (Devlin et al., 2018; He et al., 2020; Chen et al., 2020a). Moreover, inspired by contrasting multi-crops in an image (Caron et al., 2020), we further extend the multi-view 1 supervision into our multi-modality setting. Specifically, each image is paired with multiple textual descriptions obtained via stochastic augmentations, vice versa. The benefit is intuitive: this auxiliary multi-view supervision brings more invariant and robust information. ",
122
+ "bbox": [
123
+ 173,
124
+ 431,
125
+ 825,
126
+ 542
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Besides these overlooked supervision, we propose a novel nearest-neighbor (NN) supervision from other similar pairs. This NN supervision is mainly based on the intuition that one image is likely to have other similar text descriptions among the dataset. As shown in right figure, the image with the text ’going to see a lot of vintage tractors this week’ can also be described by ’vintage at tractors a gathering’. For this reason, we sample the NN in the embedding space and utilize them as additional supervisory signals. Aggregating these supervision leads to our novel training paradigm DeCLIP, which stands for Data efficient Contrastive Language-Image Pretraining. ",
133
+ "bbox": [
134
+ 174,
135
+ 550,
136
+ 581,
137
+ 729
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Extensive experiments show the effectiveness and efficiency of our DeCLIP. As shown in Fig. 1, with a ResNet50 image encoder and a Transformer text encoder, our model can achieve $6 0 . 4 \\%$ zero-shot top1 accuracy on ImageNet, which is $0 . 8 \\%$ above the CLIPResNet50 while using $7 . 1 \\times$ fewer data. Using only 88M image-text pairs, our best ResNet50/ViTB32 models boost the zero-shot performance to $6 2 . 5 \\%$ and $6 6 . 2 \\%$ , nearly $3 . 0 \\%$ higher than the best number reported for these two architectures. We further verify the transferability of our models on downstream tasks. As indicated in Fig. 2, our DeCLIP-ResNet50 outperforms its counterpart in 8 out of 11 visual datasets. Moreover, Scaling up the model and computing also works well in our framework. Using $4 . 5 \\times$ fewer data, our DeCLIP-RegNetY-64GF achieves $7 3 . 7 \\%$ zero-shot ImageNet top1 accuracy, which is on-pair with CLIP- ${ \\mathrm { R 5 0 } } \\times 6 4$ . Pre-trained models, code, and datasets shall be released to the community. The contributions are summarized as follows: ",
144
+ "bbox": [
145
+ 173,
146
+ 737,
147
+ 581,
148
+ 751
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "image",
154
+ "img_path": "images/2ce5145e595e67cb713313239ce738b67507991bf096300d17a37e96f75693e5.jpg",
155
+ "image_caption": [
156
+ "Figure 3: Examples of Nearest Neighbor from Conceptual Captions dataset. "
157
+ ],
158
+ "image_footnote": [],
159
+ "bbox": [
160
+ 596,
161
+ 550,
162
+ 821,
163
+ 695
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "",
170
+ "bbox": [
171
+ 174,
172
+ 751,
173
+ 825,
174
+ 890
175
+ ],
176
+ "page_idx": 1
177
+ },
178
+ {
179
+ "type": "text",
180
+ "text": "• To the best of our knowledge, this is the first work to study self-supervision and cross-modal multi-view supervision in the million-scale image-text pre-training task. Our work opens a new direction to fully exploit the intrinsic supervision within the multi-modal data instead of scaling up data naively. ",
181
+ "bbox": [
182
+ 174,
183
+ 103,
184
+ 823,
185
+ 160
186
+ ],
187
+ "page_idx": 2
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "• We propose novel cross-modal Nearest-Neighbor Supervision (NNS) to harness information from other similar pairs. The NNS can also be regarded as a semantic-level augmentation. ",
192
+ "bbox": [
193
+ 171,
194
+ 164,
195
+ 823,
196
+ 193
197
+ ],
198
+ "page_idx": 2
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "2 RELATED WORK ",
203
+ "text_level": 1,
204
+ "bbox": [
205
+ 176,
206
+ 213,
207
+ 344,
208
+ 229
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "2.1 PRE-TRAINED MODELS ",
215
+ "text_level": 1,
216
+ "bbox": [
217
+ 176,
218
+ 246,
219
+ 377,
220
+ 260
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "The critical idea of pre-training is to first extract general knowledge implicitly from the massive amount of data and then transfer the knowledge to versatile downstream tasks (Han et al., 2021). Big NLP models (Devlin et al., 2018; Brown et al., 2020) yield unprecedented performance via learning from tremendous language data over the Internet and labor-free supervision within the language itself. In the field of CV, supervised pre-training on ImageNet is still the standard practice. While achieving great success on downstream CV tasks (Girshick et al., 2014; Long et al., 2015; Vinyals et al., 2015) , this supervised manner is hard to scale. To address this challenge, our DeCLIP learns directly from image-text pairs that are abundant across the Internet. More importantly, by exploiting the widespread supervision within the pairs, our DeCLIP is more data-efficient than the prior art. ",
227
+ "bbox": [
228
+ 174,
229
+ 271,
230
+ 825,
231
+ 397
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "2.2 SUPERVISION WITHIN DATA ",
238
+ "text_level": 1,
239
+ "bbox": [
240
+ 176,
241
+ 415,
242
+ 406,
243
+ 428
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "Language supervision Joulin et al. (2016); Gomez et al. (2017); Zhang et al. (2020); Sariyildiz et al. (2020); Desai & Johnson (2021) demonstrate the effectiveness of learning transferable visual features from language supervision. Pioneering work CLIP (Radford et al., 2021) and ALIGN (Jia et al., 2021) achieve prestigious performance via learning from 400M/1B image-text pairs. We are following these two works to improve their data efficiency. ",
250
+ "bbox": [
251
+ 174,
252
+ 440,
253
+ 825,
254
+ 511
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "Relevant concurrent work including: SLIP Mu et al. (2021) introduces self-supervision to CLIP. FILIP Yao et al. (2021) leverages the finer-grained alignment between image patches and textual words. OTTER Wu et al. (2021); Cheng et al. (2021) uses online entropic optimal transport to find a soft image-text match as labels to mitigate the noise within the dataset. ",
261
+ "bbox": [
262
+ 174,
263
+ 517,
264
+ 825,
265
+ 573
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "Visual self-supervision Our work is also highly related to self-supervised learning (SSL) (LeCun & Misra, 2021). Contrastive learning, as a pretext task of SSL, has achieved remarkable success in visual representation learning (He et al., 2020; Chen et al., 2020a; Caron et al., 2020; Grill et al., 2020; Chen et al., 2020a). Researchers also extend contrastive learning into multi-modal settings (Yuan et al., 2021). However, it is only limited to a small COCO dataset (Yuan et al., 2021). ",
272
+ "bbox": [
273
+ 174,
274
+ 580,
275
+ 825,
276
+ 650
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Nearest-neighbor supervision Recently, researchers have exploited nearest-neighbor supervision to learn visual features (Dwibedi et al., 2021; Van Gansbeke et al., 2021). They find that using nearest-neighbor as positive samples in the contrastive loss improves the performances on multiple downstream tasks. However, they mainly focus on the single visual modality pretraining on relatively small datasets, such as ImageNet. We propose novel nearest-neighbor supervision for multi-modal learning to harness information from other similar pairs. ",
283
+ "bbox": [
284
+ 174,
285
+ 657,
286
+ 825,
287
+ 741
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "2.3 MULTI-MODAL LEARNING ",
294
+ "text_level": 1,
295
+ "bbox": [
296
+ 176,
297
+ 758,
298
+ 401,
299
+ 772
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Most vision-language models Chen et al. (2020b); Lu et al. (2019); Li et al. (2020) use a bunch of cross-modal transformers to fuse and align the information between text and image. These methods either need an off-the-shelf object detector to extract region features or dedicated cross-modal transformer layers, significantly hindering their scalability. Our DeCLIP, by contrast, uses a simple yet effective two-tower framework with multi-modal interaction only at the top. Moreover, this series of models (Radford et al., 2021; Jia et al., 2021; Huo et al., 2021) can perform zero-shot recognition, adapting to new categories with no seen labeled data. Shen et al. (2021) also shows that the pretrained CLIP model can significantly benefit the downstream VQA and image caption tasks. Our DeCLIP is supposed to be compatible with more modalities, e.g., acoustic signals (Akbari et al., 2021). More modalities included, more correlated supervision are expected to be exploited. ",
306
+ "bbox": [
307
+ 174,
308
+ 784,
309
+ 825,
310
+ 924
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "image",
316
+ "img_path": "images/5122ea60d58db20432ff26bdbb4bbe9a554035589c526eeff41d31ea91e0641f.jpg",
317
+ "image_caption": [
318
+ "Figure 4: (a) CLIP and ALIGN jointly train an image encoder and a text encoder to predict the correct pairings of a batch of (image, text) training examples. (b) Our DeCLIP overview. $\\textcircled{1}$ means Self-Supervision(SS). For image SS, we maximize the similarity between two augmented views of the same instance. For text SS, we leverage Masked Language Modeling(MLM) within a text sentence. $\\textcircled{2}$ represents cross-modal Multi-View Supervision(MVS). We first have two augmented views of both image and text, then contrast the $2 \\times 2$ image-text pairs. $\\textcircled{3}$ indicates NearestNeighbor Supervision(NNS). We sample text NN in the embedding space to serve as additional supervision. The combination of the three supervision leads to efficient multi-modal learning. "
319
+ ],
320
+ "image_footnote": [],
321
+ "bbox": [
322
+ 176,
323
+ 99,
324
+ 818,
325
+ 356
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "3 APPROACH",
332
+ "text_level": 1,
333
+ "bbox": [
334
+ 176,
335
+ 506,
336
+ 299,
337
+ 522
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "In this section, we first revisit CLIP and denote some basic concepts, such as image-text contrastive supervision (i.e., the InfoNCE loss). Next, we present the overview of our DeCLIP framework. Then we introduce every auxiliary supervision: Self-Supervision(SS), Multi-View Supervision(MVS), and Nearest-Neighbor Supervision(NNS). ",
344
+ "bbox": [
345
+ 174,
346
+ 537,
347
+ 825,
348
+ 594
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "3.1 REVISITING CLIP ",
355
+ "text_level": 1,
356
+ "bbox": [
357
+ 176,
358
+ 609,
359
+ 341,
360
+ 625
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Contrastive Language-Image Pre-training (CLIP) (Radford et al., 2021) aims to learn directly from the raw text about images. They use a dual-encoder architecture as in Fig. 4(a). The model consists of an image encoder (e.g., CNN (He et al., 2016) or ViT (Dosovitskiy et al., 2020)) and a text encoder(e.g., Transformer (Vaswani et al., 2017) or its variants (Radford et al., 2019)), with a multimodal interaction at the top. The image and text features are projected to the same dimension and followed by L2 normalization before interaction. At the training phase, a contrastive objective pushes the embeddings of matched image-text pairs together while pushing those of non-matched pairs apart. In a batch of $N$ image-text pairs $\\{ ( \\pmb { x } _ { i } ^ { I } , \\pmb { x } _ { i } ^ { T } ) \\}$ , we denote $\\bar { \\mathbf { \\boldsymbol { x } } } _ { i } ^ { I }$ and $\\mathbf { \\bar { \\mathbf { x } } } _ { i } ^ { T }$ as image and text of the $i _ { t h }$ pair. Let $z _ { i } ^ { I }$ and $z _ { j } ^ { T }$ be the normalized embedding of the $i _ { t h }$ image and $j _ { t h }$ text, respectively. CLIP uses InfoNCE loss (Oord et al., 2018). The loss for the image encoder can be denoted as Eq. 1. ",
367
+ "bbox": [
368
+ 173,
369
+ 636,
370
+ 825,
371
+ 777
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/24124e253e38c6704603134c4ef33a12601e11c766185c26503b711bcee1bced.jpg",
378
+ "text": "$$\nL _ { I } = - \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\log \\frac { \\exp ( \\sin ( z _ { i } ^ { I } , z _ { i } ^ { T } ) / \\tau ) } { \\sum _ { j = 1 } ^ { N } \\exp ( \\sin ( z _ { i } ^ { I } , z _ { j } ^ { T } ) / \\tau ) }\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 339,
382
+ 792,
383
+ 653,
384
+ 838
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Here, the similarity function $\\mathrm { s i m } ( , )$ is measured by dot product, and $\\tau$ is a learnable temperature variable to scale the logits. We have a symmetrical loss for image and text encoder, thus the overall loss function $L _ { C L I P }$ is the average of $L _ { I }$ and $L _ { T }$ . ",
391
+ "bbox": [
392
+ 174,
393
+ 845,
394
+ 823,
395
+ 888
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "At the test phase, the learned text encoder synthesizes a zero-shot linear classifier by embedding the arbitrary categories of the test dataset. Because it is rare in the dataset that image caption is just ",
402
+ "bbox": [
403
+ 174,
404
+ 895,
405
+ 823,
406
+ 924
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "a single word, CLIP uses prompts to make up the context of the category $\\{ 1 \\mathsf { a b e 1 } \\}$ , such as $\" a$ photo of $\\mathrm { ~ a ~ } \\left\\{ 1 \\mathrm { a b } { \\in } 1 \\right\\} \"$ . Unless otherwise specified, we use the same prompt engineering and ensembling techniques as CLIP. Details can be found in Appendix E. ",
413
+ "bbox": [
414
+ 173,
415
+ 103,
416
+ 823,
417
+ 146
418
+ ],
419
+ "page_idx": 4
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "3.2 OVERVIEW OF DECLIP ",
424
+ "text_level": 1,
425
+ "bbox": [
426
+ 176,
427
+ 164,
428
+ 377,
429
+ 178
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "As shown in Fig. 4(b), our DeCLIP has three additional supervisory signals. ",
436
+ "bbox": [
437
+ 176,
438
+ 189,
439
+ 669,
440
+ 204
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "$\\textcircled{1}$ We first use existing methods to exploit image and text Self-Supervision (SS) within its modality. For image SS, we adopt the simple yet effective SimSiam (Chen & He, 2021). The objective is to maximize the similarity between two augmented image features. For text SS, we adopt the most widely used Masked Language Modeling (MLM) (Devlin et al., 2018) as the pre-text task. We believe other kinds of self-supervised learning algorithms (e.g. MoCo (He et al., 2020), SimCSE (Gao et al., 2021) are orthogonal with our framework. ",
447
+ "bbox": [
448
+ 174,
449
+ 213,
450
+ 825,
451
+ 296
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "$\\textcircled{2}$ While SS only focuses on a single modality, we further propose cross-modal Multi-View Supervision (MVS). We apply stochastic data augmentations for both images and texts, resulting in two correlated views1 of each example. Then, the image-text contrastive loss is calculated for all the $2 \\times 2$ pairs. Worth mentioning, the original CLIP does not use text augmentations and only uses random square crop image augmentations, thereby is data-hungry. The extension is instinctive and straightforward. Specifically, we contrast the $2 \\times 2$ pairs and resulting in $3 \\times$ more additional supervision. ",
458
+ "bbox": [
459
+ 173,
460
+ 304,
461
+ 825,
462
+ 402
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "$\\textcircled{3}$ We also propose novel Nearest-Neighbor Supervision (NNS) mined in embedding space to make better use of similar text descriptions among the dataset. In detail, we maintain a first-in-first-out feature queue that is representative of the whole data distribution. We use the nearest-neighbor search in embedding space to get the semantically similar text descriptions. Then we use the imagetext contrastive loss to get additional supervision. ",
469
+ "bbox": [
470
+ 174,
471
+ 410,
472
+ 825,
473
+ 481
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "3.3 SUPERVISION EXISTS EVERYWHERE",
480
+ "text_level": 1,
481
+ "bbox": [
482
+ 178,
483
+ 500,
484
+ 462,
485
+ 512
486
+ ],
487
+ "page_idx": 4
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Self-Supervision within each modality Following SimSiam (Chen & He, 2021) (depicted in Fig 5(a)), we first have two augmented views $( x ^ { I } , \\bar { \\tilde { x } } ^ { I } )$ for each image. These two views are sent to the image encoder (weights are shared between views). We also use the popularized nonlinear predictor module, which is typically a 2-layer MLP, to improve the representation quality in the encoder (Chen et al., 2020a). The objective is to maximize the similarity between $\\tilde { z } ^ { I }$ and $p ^ { I }$ , which is a negative cosine similarity in this paper. To avoid the trivial “collapsing” solution, we follow (Chen & He, 2021) to adopt a stop-grad technique. ",
492
+ "bbox": [
493
+ 174,
494
+ 525,
495
+ 568,
496
+ 678
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "As shown in Fig. 5(b), we follow the method in BERT (Devlin et al., 2018) for our text self-supervision. In detail, we first randomly choose $1 5 \\%$ of all tokens in each sequence. Then the token is replaced with (1) the [mask] token $8 0 \\%$ of the time (2) a random token $1 0 \\%$ of the time (3) the unchanged token $1 0 \\%$ of the time. Then, the output of the language module for the corresponding token is used to predict the original token with cross-entropy loss. ",
503
+ "bbox": [
504
+ 174,
505
+ 684,
506
+ 568,
507
+ 796
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "image",
513
+ "img_path": "images/efca79d801146a93e7ca9561d754ff7a39aecdc8ab47135af616f0ab59f5eb72.jpg",
514
+ "image_caption": [
515
+ "Figure 5: Self-Supervision with each modality. We adopt SimSiam and MLM for image and text SS. "
516
+ ],
517
+ "image_footnote": [],
518
+ "bbox": [
519
+ 581,
520
+ 517,
521
+ 823,
522
+ 743
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Multi-View Supervision The authors only contrast the original text (w/o augmentation) with a single ‘global view’ of the image in the original CLIP. However, the text annotation of the image might not describe the whole picture, instead depicts a small local view of this image. For instance, as shown in the image with the text \"a cute white cat\" in Fig. 4, the central concept (cat) only occupies a small part of the picture. To mitigate this discrepancy, we get a closer look at the local region and utilize it as our auxiliary supervision, as shown in the augmented view in Fig. 4(b). This intuitive idea is akin to the successful Multi-crop transformation (Caron et al., 2020; Van Gansbeke et al., 2021) in image SSL. We further extend it into the multi-modal setting. More specifically, we reuse the two image views introduced in SS, which contains the RandomResizedCrop policy to obtain a small local view. For text, as our goal is to understand the overall semantic meaning of a sentence, we adopt text classification augmentation EDA (Wei & Zou, 2019) to generate two text views. Besides the original contrastive loss between $( z ^ { I } , \\dot { z } ^ { T } )$ , we can contrast $( \\breve { z } ^ { I } , \\tilde { z } ^ { T } )$ , $( \\tilde { z } ^ { I } , z ^ { T } )$ and $( \\tilde { z } ^ { I } , \\tilde { z } ^ { T } )$ , leading to $3 \\times$ diverse and high-quality additional supervision. More conveniently, they are naturally compatible with the image-text contrastive loss as denoted in Eq. 1. ",
529
+ "bbox": [
530
+ 174,
531
+ 811,
532
+ 823,
533
+ 924
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "",
540
+ "bbox": [
541
+ 173,
542
+ 103,
543
+ 825,
544
+ 202
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Nearest-Neighbor Supervision As shown in Fig 3, one image is likely to have other similar text descriptions among the dataset. To harness the information from other pairs and go beyond single pairs, we propose using nearest-neighbor (NN) to obtain more diverse supervision. More formally, we aim to find the NN feature $z ^ { T ^ { \\prime } }$ of text feature $z ^ { T }$ in the embedding space. The distance between two features could be measured by a simple cosine similarity. It is infeasible to search NN in the whole million-scale dataset. Thus, we maintain a FIFO queue $Q$ to simulate the whole data distribution. The size of $Q$ is 64K in our implementation. As shown in Fig. 6, we further get the contrastive loss between $( z ^ { I } , z ^ { T ^ { \\prime } } )$ . Since there are two augmented image features, we also calculate the contrastive loss between $( \\tilde { z } ^ { I } , z ^ { T ^ { \\prime } } )$ . Fortunately, NNS is also compatible with Eq. 1. ",
551
+ "bbox": [
552
+ 174,
553
+ 218,
554
+ 535,
555
+ 459
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "In summary, we denote $L _ { I S S }$ and $L _ { T S S }$ as the loss function of image SS and text SS, respectively. ${ \\cal L } _ { M V S }$ is multi-view loss, and $L _ { N N S }$ is nearest-neighbor loss. We have the overall loss function of our DeCLIP as in Eq. 2. ",
562
+ "bbox": [
563
+ 173,
564
+ 465,
565
+ 534,
566
+ 494
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "",
573
+ "bbox": [
574
+ 178,
575
+ 494,
576
+ 821,
577
+ 522
578
+ ],
579
+ "page_idx": 5
580
+ },
581
+ {
582
+ "type": "image",
583
+ "img_path": "images/05899bf9ce8b7ecbf860f3ef3c370d4df60211f7f85b8b68a64cbf2208b142fb.jpg",
584
+ "image_caption": [
585
+ "Figure 6: Nearest-Neighbor Supervision. $z ^ { T ^ { \\prime } }$ is the NN of feature $z ^ { T }$ in the embedding space. $z ^ { T ^ { \\prime } }$ will serve as an additional objective for $z ^ { I }$ . We use the feature-level nearest neighbor for the text descriptions as the supervision. "
586
+ ],
587
+ "image_footnote": [],
588
+ "bbox": [
589
+ 549,
590
+ 219,
591
+ 821,
592
+ 383
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "equation",
598
+ "img_path": "images/099e973feb436fd6ca674d188bd97dc50d7da4c983895863c106332cf6dab9c0.jpg",
599
+ "text": "$$\nL _ { D e C L I P } = ( 1 - \\alpha - \\beta - \\gamma ) L _ { C L I P } + \\alpha ( L _ { I S S } + L _ { T S S } ) + \\beta L _ { M V S } + \\gamma L _ { N N S }\n$$",
600
+ "text_format": "latex",
601
+ "bbox": [
602
+ 232,
603
+ 544,
604
+ 766,
605
+ 561
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "4 EXPERIMENTS ",
612
+ "text_level": 1,
613
+ "bbox": [
614
+ 174,
615
+ 582,
616
+ 326,
617
+ 598
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "4.1 DATASETS ",
624
+ "text_level": 1,
625
+ "bbox": [
626
+ 174,
627
+ 614,
628
+ 287,
629
+ 628
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Pre-training datasets We summarize our pre-training dataset as in Tab. 1. Our DeCLIP full data consists of two parts: open-source data and web-crawled data. The open-source data comes from three different datasets: Conceptual Captions (CC3M) (Sharma et al., 2018), Conceptual 12M (CC12M) (Changpinyo et al., 2021), and YFCC (Thomee et al., 2016). Worth mentioning, due to the download failure or nonEnglish caption, we do not obtain the complete data for these datasets. We further use the YFCC15M query to crawl about 59M filtered ",
636
+ "bbox": [
637
+ 174,
638
+ 642,
639
+ 483,
640
+ 808
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "table",
646
+ "img_path": "images/0a212f39308583b1cf69a8c17dd30e076d9672d7286f2297521508281ad81028.jpg",
647
+ "table_caption": [
648
+ "Table 1: Details of DeCLIP pre-training datasets. "
649
+ ],
650
+ "table_footnote": [],
651
+ "table_body": "<table><tr><td>DATASET</td><td>TRAINING SIZE</td></tr><tr><td>CLIP (RADFORD ET AL.,2021)</td><td>400M</td></tr><tr><td>ALIGN (JIA ET AL., 2021)</td><td>1.8B</td></tr><tr><td>CC (SHARMA ET AL., 2018)</td><td>3M</td></tr><tr><td>CC-12M(CHANGPINYO ET AL.,2021)</td><td>11M</td></tr><tr><td>YFCC (THOMEE ET AL.,2016)</td><td>15M</td></tr><tr><td>DECLIP OPEN-SOURCE DATA</td><td>29M</td></tr><tr><td>DECLIP WEB-CRAWLED DATA</td><td>59M</td></tr><tr><td>DECLIP FULL DATA</td><td>88M</td></tr></table>",
652
+ "bbox": [
653
+ 501,
654
+ 670,
655
+ 815,
656
+ 790
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "web data on the Internet, together with open-source data to form the 88M DeCLIP full pre-training dataset. More details can be seen in Appendix C. ",
663
+ "bbox": [
664
+ 174,
665
+ 809,
666
+ 823,
667
+ 837
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "Downstream datasets We assess our model performances in a wider variety of distributions and tasks. Following the CLIP (Radford et al., 2021), we evaluate the image encoder transferability on 11 widely used downstream datasets, such as Food-101, CIFAR-10, etc. To conduct a fair comparison, the metric and division for each dataset that can be collected are consistent with those of CLIP. More details of downstream datasets can be found in Tabel 6 of Appendix D. ",
674
+ "bbox": [
675
+ 174,
676
+ 854,
677
+ 825,
678
+ 924
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "table",
684
+ "img_path": "images/9cf73d38023a7786008f4c6ac9a8a422d164c277356e8beea2be9652a80ddb72.jpg",
685
+ "table_caption": [
686
+ "Table 2: Zero-shot top1 accuracy on ImageNet. Our DeCLIP shows great data-efficency. "
687
+ ],
688
+ "table_footnote": [
689
+ "† OUR REIMPLEMENTATION. "
690
+ ],
691
+ "table_body": "<table><tr><td>METHOD</td><td>IMAGE ENCODER</td><td>#PARAMS</td><td>TRAINING SIZE</td><td>ZERO-SHOT TOP1 ACC.</td></tr><tr><td>CLIP+</td><td>REsNET50</td><td>24M</td><td>88M</td><td>56.9</td></tr><tr><td>CLIP</td><td>REsNET50</td><td>24M</td><td>400M</td><td>59.6</td></tr><tr><td>DECLIP</td><td>REsNET50</td><td>24M</td><td>88M(↓4.5×)</td><td>62.5(个 +2.9)</td></tr><tr><td>CLIP</td><td>REsNET101</td><td>42M</td><td>400M</td><td>62.2</td></tr><tr><td>CLIP†</td><td>VIT-B/32</td><td>88M</td><td>88M</td><td>57.4</td></tr><tr><td>CLIP</td><td>VIT-B/32</td><td>88M</td><td>400M</td><td>63.2</td></tr><tr><td>DECLIP</td><td>VIT-B/32</td><td>88M</td><td>88M(↓4.5×)</td><td>66.2(↑ +3.0)</td></tr><tr><td>CLIP</td><td>ResNET50×64</td><td>291M</td><td>400M</td><td>73.6</td></tr><tr><td>DECLIP</td><td>REGNETY-64GF</td><td>276M</td><td>88M(↓4.5×)</td><td>73.7(个 +0.1)</td></tr></table>",
692
+ "bbox": [
693
+ 199,
694
+ 133,
695
+ 794,
696
+ 290
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "4.2 EXPERIMENTS SETUP ",
703
+ "text_level": 1,
704
+ "bbox": [
705
+ 174,
706
+ 335,
707
+ 366,
708
+ 349
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "Network architectures Following CLIP, we first consider two different architectures for the image encoder: a modified version of ResNet50 (Radford et al., 2021) and ViT-B/32 (Dosovitskiy et al., 2020). The text encoder is a Transformer (Vaswani et al., 2017) with the architecture modifications described in Radford et al. (2019). The image and text features are projected to the same 1024 dimension, followed by L2 normalization before interaction. Benefiting from the rapid progress of large CV models, we further scale up our model. Our largest model is a RegNetY-64GF (Radosavovic et al., 2020; Goyal et al., 2021) image encoder with a BERT (Devlin et al., 2018) text encoder, which is on-pair with the largest CLIP- $. { \\mathrm { R 5 0 } } { \\times } 6 4$ model. ",
715
+ "bbox": [
716
+ 173,
717
+ 361,
718
+ 825,
719
+ 473
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "Pre-training setup For a fair comparison with CLIP, we train our DeCLIP-ResNet50 and DeCLIP-ViT-B/32 from scratch for 32 epochs. Unless otherwise specified, we use full data, i.e., 88M image-text pairs, to obtain the best performance. The input resolution of the image encoder is $2 2 4 \\times 2 2 4$ , and the maximum context length of the text encoder is 76. The learnable temperature parameter $\\tau$ is initialized to 0.07. The loss weights of additional supervision $\\alpha$ , $\\beta$ and $\\gamma$ are all set to 0.2. More details can be found in Appendix C. ",
726
+ "bbox": [
727
+ 173,
728
+ 488,
729
+ 825,
730
+ 571
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Downstream evaluation setup We evaluate our model transferability by performing linear classification on frozen features, i.e., the pre-trained image encoder is fixed and serves as a feature extractor. After feature extraction, we train the linear classifier with the L-BFGS optimizer as the same in Radford et al. (2021). ",
737
+ "bbox": [
738
+ 174,
739
+ 588,
740
+ 823,
741
+ 642
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "4.3 MAIN RESULTS ",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 174,
751
+ 660,
752
+ 323,
753
+ 674
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Zero-shot recognition on ImageNet After pre-training, we use natural language to refer to visual concepts enabling the zero-shot ability of our model. As shown in Fig. 1, our DeCLIP-ResNet50 consistently outperforms the CLIP-ResNet50 across all dataset sizes. When the data amount reaches 56M (29M open-source $\\mathbf { + \\ 2 7 M }$ web-crawled), our model can achieve $6 0 . 4 \\%$ accuracy, $0 . 8 \\%$ above the CLIP-ResNet50, while using $7 . 1 \\times$ fewer data. As described in Tab. 2, with our full data, our best ResNet50/ViT-B32 models boost the zero-shot performance to $6 2 . 5 \\%$ and $6 6 . 2 \\%$ , nearly $3 . 0 \\%$ higher than the best number reported for these two architectures. Moreover, our DeCLIP-ResNet50 is even $0 . 3 \\%$ better than CLIP-ResNet101, revealing the effectiveness and efficiency of our framework. Scaling up model capacity works in our framework as well. Our biggest DeCLIP-RegNetY64GF achieves $7 3 . 7 \\%$ accuracy, which is $0 . 1 \\%$ above CLIP ResNet $5 0 \\times 6 4$ with fewer parameters. ",
760
+ "bbox": [
761
+ 173,
762
+ 685,
763
+ 825,
764
+ 824
765
+ ],
766
+ "page_idx": 6
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Downstream evaluation results We report our linear probe performance on 11 downstream datasets in Tab. 3. Our DeCLIP-ResNet50 outperforms its CLIP counterpart in 8 out of 11 datasets, with a $0 . 8 \\%$ average improvement. There are some datasets that our models perform worse than CLIP models, such as SUN and Food101. We conjecture that this is caused by the different distribution of the pre-trained dataset. Interestingly, our ResNet50 and ViT-B/32 models might have distinct performance on several datasets, such as Pets and Aircraft. We infer that these two types of neural networks might have different data preferences, i.e., different feature extraction capacities when they meet the same data. ",
771
+ "bbox": [
772
+ 174,
773
+ 840,
774
+ 825,
775
+ 922
776
+ ],
777
+ "page_idx": 6
778
+ },
779
+ {
780
+ "type": "table",
781
+ "img_path": "images/3d2b4004d15eb6f48d3f5e80d9d1488c241c13b497c0d9fef0536ead1748173d.jpg",
782
+ "table_caption": [
783
+ "Table 3: Linear probe performance on 11 downstream datasets. There are some abbreviations. C10/100 is CIFAR10/100. F101 is Food101. Flow is Flowers. Cal is Caltech. Air is Aircraft. IN is ImageNet. Our DeCLIP models achieve higher average accuracy over 11 datasets. "
784
+ ],
785
+ "table_footnote": [
786
+ "† OUR REIMPLEMENTATED CLIP MODEL TRAINED ON 88M DATA. "
787
+ ],
788
+ "table_body": "<table><tr><td>MODEL</td><td></td><td>50</td><td></td><td></td><td>10</td><td>MOTI</td><td></td><td></td><td>美</td><td></td><td>N</td><td>U</td></tr><tr><td>CLIP-RESNET50+ CLIP-RESNET50</td><td>85.1 88.2</td><td>87.3</td><td>65.0 70.3</td><td>71.3 73.3</td><td>80.8 86.4</td><td>98.2 96.1</td><td>77.2 78.3</td><td>89.6 89.6</td><td>44.8 49.1</td><td>71.0 76.4</td><td>70.8 73.3</td><td>76.5 79.1</td></tr><tr><td>DECLIP-RESNET50</td><td>88.7</td><td>88.7 89.8</td><td>71.2</td><td>72.8</td><td>82.7</td><td>99.2</td><td>81.7</td><td>93.9</td><td>48.4</td><td>76.8</td><td>74.0</td><td>79.9(个 +0.8)</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CLIP-VIT-B/32+</td><td>85.3 90.0</td><td>91.6</td><td>74.2 80.5</td><td>72.3 76.6</td><td>80.8 88.8</td><td>97.9 96.9</td><td>77.6 81.8</td><td>93.2 93.0</td><td>47.0 52.0</td><td>72.5 76.5</td><td>70.3 76.1</td><td>78.4 82.5</td></tr><tr><td>CLIP-VIT-B/32</td><td></td><td>95.1</td><td></td><td></td><td></td><td>99.1</td><td></td><td>94.8</td><td></td><td></td><td></td><td></td></tr><tr><td>DECLIP-VIT-B/32</td><td>89.2</td><td>96.5</td><td>84.7</td><td>75.0</td><td>85.0</td><td></td><td>81.6</td><td></td><td>53.5</td><td>78.5</td><td>75.3</td><td>83.0 (个 +0.5)</td></tr></table>",
789
+ "bbox": [
790
+ 176,
791
+ 161,
792
+ 825,
793
+ 272
794
+ ],
795
+ "page_idx": 7
796
+ },
797
+ {
798
+ "type": "table",
799
+ "img_path": "images/796081aa69bcfc094c57ebf682e4ad8fe85bc76f651c50febc1462a8b3dfd2f4.jpg",
800
+ "table_caption": [
801
+ "Table 4: Ablation on additional supervision. SS/MVS/NNS denotes Self-Supervision, Multi-View Supervision and NearestNeighbor Supervision, respectively. "
802
+ ],
803
+ "table_footnote": [],
804
+ "table_body": "<table><tr><td>CLIP</td><td>MVS</td><td>Ss</td><td>NNS</td><td>ZERO-SHOT</td></tr><tr><td>广</td><td>×</td><td>×</td><td>×</td><td>20.6</td></tr><tr><td></td><td>√</td><td>×</td><td>×</td><td>24.8(个 +4.2)</td></tr><tr><td>√</td><td>广</td><td></td><td>×</td><td>25.4(个 +4.8)</td></tr><tr><td>√</td><td></td><td>&lt;</td><td>√</td><td>27.2(个 +6.6)</td></tr></table>",
805
+ "bbox": [
806
+ 179,
807
+ 385,
808
+ 483,
809
+ 464
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "image",
815
+ "img_path": "images/bc5e47ac7e18c08e37f2312818f8ebdaedd2ea57aaef0cfcf10e0f1d8daa11ee.jpg",
816
+ "image_caption": [
817
+ "Figure 7: Ablation on pre-training cost on CC3M dataset. The proposed method performs better with less training time. "
818
+ ],
819
+ "image_footnote": [],
820
+ "bbox": [
821
+ 493,
822
+ 296,
823
+ 816,
824
+ 431
825
+ ],
826
+ "page_idx": 7
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "",
831
+ "bbox": [
832
+ 173,
833
+ 487,
834
+ 823,
835
+ 513
836
+ ],
837
+ "page_idx": 7
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "4.4 ABLATION STUDY ",
842
+ "text_level": 1,
843
+ "bbox": [
844
+ 176,
845
+ 532,
846
+ 341,
847
+ 546
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Ablation on additional supervision In order to understand the effectiveness of each additional supervision, we conduct an ablation study as indicated in Tab. 4. We follow the DeCLIP-ResNet50 protocol in the pre-training setup except for a smaller 1024 batch size on a smaller CC3M dataset. The single image-text contrastive supervision (CLIP) results in $2 0 . 6 \\%$ zero-shot top1 accuracy on ImageNet. We can observe that MVS boost amazing $4 . 2 \\%$ improvement over the original CLIP. As discussed in Sec. 3.3, the benefits might come from two sides: 1). the MVS can look at a small local view of an image which might be a better fit with the text description. 2). $2 \\times 2$ augmented views can provide $3 \\times$ diverse and high-quality additional supervision, thus leading to more robust representations. SS can further contribute an additional $0 . 6 \\%$ improvement on the basis of MVS. We believe SS could bring more improvements with proper dedicated SSL methods. NNS further brings $1 . 8 \\%$ improvement on the high basis of SS. We will discuss more about NNS at Sec. 4.5. On the YFCC15M dataset, our DeCLIP using full additional supervision gets significant effect improvement, Appendix F shows the details. ",
854
+ "bbox": [
855
+ 174,
856
+ 558,
857
+ 825,
858
+ 738
859
+ ],
860
+ "page_idx": 7
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Ablation on training cost Since we need to encode twice for each image-text pair, we admit our DeCLIP needs a higher training cost than CLIP. Regarding the training time, one DeCLIP iteration equals $1 . 5 \\times$ CLIP iteration. In this ablation, we train the original CLIP-ResNet50 longer than our DeCLIP-ResNet50. As shown in Fig. 7, longer 64 epochs training can bring about $1 . 1 \\%$ improvement. However, our model has $2 7 . 2 \\%$ top1 accuracy, which is still $5 . 3 \\%$ higher than the time-equivalent CLIP. It reveals that our framework can extract richer and more representative features through our proposed supervision. We also include memory usage ablation in Appendix F. ",
865
+ "bbox": [
866
+ 174,
867
+ 755,
868
+ 825,
869
+ 852
870
+ ],
871
+ "page_idx": 7
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "4.5 ANALYSIS ",
876
+ "text_level": 1,
877
+ "bbox": [
878
+ 176,
879
+ 869,
880
+ 285,
881
+ 883
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Class activation maps We try to understand what renders our DeCLIP effective. As shown in Fig. 8, we visualize the class activation maps (CAM) (Zhou et al., 2016) of different models trained on the YFCC dataset. The results validate that the proposed method learns more representative features with the aid of multiple supervision. ",
888
+ "bbox": [
889
+ 176,
890
+ 895,
891
+ 823,
892
+ 924
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "image",
898
+ "img_path": "images/2419d1a278807a209c104291cc45f9107ffa7faa3350cc9fbaf8bbe17baf2a26.jpg",
899
+ "image_caption": [
900
+ "Figure 8: Class activation maps (CAM) for the CLIP vs. our DeCLIP model trained on the YFCC dataset. The CAMs of our model segment the complete object, while the CLIP model only looks at a few components. "
901
+ ],
902
+ "image_footnote": [],
903
+ "bbox": [
904
+ 271,
905
+ 99,
906
+ 725,
907
+ 297
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "image",
913
+ "img_path": "images/f61344fb96af452036cbd5e7de88d22ad6f3e802c2d5da0e26f0d73a004c59c8.jpg",
914
+ "image_caption": [
915
+ "Figure 9: Nearest neighbor samples from different datasets. As we can see, the NN pair is very similar to the original pair, thus it can provide high-quality supervision. "
916
+ ],
917
+ "image_footnote": [],
918
+ "bbox": [
919
+ 171,
920
+ 372,
921
+ 816,
922
+ 547
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "",
929
+ "bbox": [
930
+ 173,
931
+ 618,
932
+ 823,
933
+ 646
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Nearest neighbor samples In Fig 9, we show some nearest neighbor (NN) samples from different datasets. The first row is the original image-text pair, while the second row is the NN pair. In general, we can see that the texts have similar intellectual meanings. Therefore, the NN pair can provide high-quality supervision. When taking datasets into consideration, the matching performs very well in well-filtered datasets, such as CC3M and CC12M. This matching might be a little worse in more noisy datasets, such as YFCC and web-crawled, but it can still provide some beneficial guidance. ",
940
+ "bbox": [
941
+ 174,
942
+ 667,
943
+ 825,
944
+ 751
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "5 CONCLUSION ",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 176,
954
+ 776,
955
+ 318,
956
+ 792
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "This paper introduces DeCLIP, a Data efficient Contrastive Language-Image Pre-training paradigm. Our goal is to learn visual representations through the use of broader and scalable supervision. Specifically, instead of using the single image-text contrastive supervision, we fully exploit data potential through the use of (1) self-supervision within each modality; (2) multi-view supervision across modalities; (3) nearest-neighbor supervision from other similar pairs. Experimentally, DeCLIP shows superior effectiveness and efficiency with different types of neural nets(CNN and ViT) and different amounts of data. We hope our work could bring insights about exploiting the multimodal data. ",
963
+ "bbox": [
964
+ 174,
965
+ 811,
966
+ 825,
967
+ 924
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "REFERENCES ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 176,
977
+ 102,
978
+ 287,
979
+ 118
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Hassan Akbari, Linagzhe Yuan, Rui Qian, Wei-Hong Chuang, Shih-Fu Chang, Yin Cui, and Boqing Gong. Vatt: Transformers for multimodal self-supervised learning from raw video, audio and text. arXiv preprint arXiv:2104.11178, 2021. ",
986
+ "bbox": [
987
+ 176,
988
+ 126,
989
+ 823,
990
+ 169
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. ",
997
+ "bbox": [
998
+ 176,
999
+ 179,
1000
+ 821,
1001
+ 222
1002
+ ],
1003
+ "page_idx": 9
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. ",
1008
+ "bbox": [
1009
+ 173,
1010
+ 232,
1011
+ 825,
1012
+ 275
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual $1 2 \\mathrm { m }$ : Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3558–3568, 2021. ",
1019
+ "bbox": [
1020
+ 173,
1021
+ 285,
1022
+ 825,
1023
+ 329
1024
+ ],
1025
+ "page_idx": 9
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020a. ",
1030
+ "bbox": [
1031
+ 174,
1032
+ 338,
1033
+ 823,
1034
+ 381
1035
+ ],
1036
+ "page_idx": 9
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15750–15758, 2021. ",
1041
+ "bbox": [
1042
+ 171,
1043
+ 391,
1044
+ 825,
1045
+ 421
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Universal image-text representation learning, 2020b. ",
1052
+ "bbox": [
1053
+ 171,
1054
+ 430,
1055
+ 825,
1056
+ 460
1057
+ ],
1058
+ "page_idx": 9
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Ruizhe Cheng, Bichen Wu, Peizhao Zhang, Peter Vajda, and Joseph E Gonzalez. Data-efficient language-supervised zero-shot learning with self-distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3119–3124, 2021. ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 469,
1066
+ 825,
1067
+ 513
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. ",
1074
+ "bbox": [
1075
+ 173,
1076
+ 522,
1077
+ 825,
1078
+ 565
1079
+ ],
1080
+ "page_idx": 9
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Karan Desai and Justin Johnson. Virtex: Learning visual representations from textual annotations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11162–11173, 2021. ",
1085
+ "bbox": [
1086
+ 174,
1087
+ 575,
1088
+ 821,
1089
+ 619
1090
+ ],
1091
+ "page_idx": 9
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1096
+ "bbox": [
1097
+ 169,
1098
+ 630,
1099
+ 821,
1100
+ 659
1101
+ ],
1102
+ "page_idx": 9
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. ",
1107
+ "bbox": [
1108
+ 174,
1109
+ 667,
1110
+ 825,
1111
+ 726
1112
+ ],
1113
+ "page_idx": 9
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. With a little help from my friends: Nearest-neighbor contrastive learning of visual representations. arXiv preprint arXiv:2104.14548, 2021. ",
1118
+ "bbox": [
1119
+ 173,
1120
+ 736,
1121
+ 825,
1122
+ 779
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Tianyu Gao, Xingcheng Yao, and Danqi Chen. Simcse: Simple contrastive learning of sentence embeddings. arXiv preprint arXiv:2104.08821, 2021. ",
1129
+ "bbox": [
1130
+ 169,
1131
+ 789,
1132
+ 823,
1133
+ 818
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 580–587, 2014. ",
1140
+ "bbox": [
1141
+ 176,
1142
+ 828,
1143
+ 823,
1144
+ 872
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Lluis Gomez, Yash Patel, Marc¸al Rusinol, Dimosthenis Karatzas, and CV Jawahar. Self-supervised ˜ learning of visual features through embedding images into text topic spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4230–4239, 2017. ",
1151
+ "bbox": [
1152
+ 174,
1153
+ 882,
1154
+ 825,
1155
+ 924
1156
+ ],
1157
+ "page_idx": 9
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Priya Goyal, Mathilde Caron, Benjamin Lefaudeux, Min Xu, Pengchao Wang, Vivek Pai, Mannat Singh, Vitaliy Liptchinsky, Ishan Misra, Armand Joulin, et al. Self-supervised pretraining of visual features in the wild. arXiv preprint arXiv:2103.01988, 2021. ",
1162
+ "bbox": [
1163
+ 176,
1164
+ 103,
1165
+ 823,
1166
+ 146
1167
+ ],
1168
+ "page_idx": 10
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. ",
1173
+ "bbox": [
1174
+ 173,
1175
+ 155,
1176
+ 825,
1177
+ 212
1178
+ ],
1179
+ "page_idx": 10
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Xu Han, Zhengyan Zhang, Ning Ding, Yuxian Gu, Xiao Liu, Yuqi Huo, Jiezhong Qiu, Liang Zhang, Wentao Han, Minlie Huang, et al. Pre-trained models: Past, present and future. AI Open, 2021. ",
1184
+ "bbox": [
1185
+ 173,
1186
+ 219,
1187
+ 821,
1188
+ 250
1189
+ ],
1190
+ "page_idx": 10
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1195
+ "bbox": [
1196
+ 174,
1197
+ 257,
1198
+ 825,
1199
+ 300
1200
+ ],
1201
+ "page_idx": 10
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9729–9738, 2020. ",
1206
+ "bbox": [
1207
+ 174,
1208
+ 309,
1209
+ 825,
1210
+ 352
1211
+ ],
1212
+ "page_idx": 10
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Yuqi Huo, Manli Zhang, Guangzhen Liu, Haoyu Lu, Yizhao Gao, Guoxing Yang, Jingyuan Wen, Heng Zhang, Baogui Xu, Weihao Zheng, et al. Wenlan: Bridging vision and language by largescale multi-modal pre-training. arXiv preprint arXiv:2103.06561, 2021. ",
1217
+ "bbox": [
1218
+ 174,
1219
+ 361,
1220
+ 825,
1221
+ 404
1222
+ ],
1223
+ "page_idx": 10
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021. ",
1228
+ "bbox": [
1229
+ 174,
1230
+ 411,
1231
+ 825,
1232
+ 455
1233
+ ],
1234
+ "page_idx": 10
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Armand Joulin, Laurens Van Der Maaten, Allan Jabri, and Nicolas Vasilache. Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Springer, 2016. ",
1239
+ "bbox": [
1240
+ 173,
1241
+ 463,
1242
+ 823,
1243
+ 506
1244
+ ],
1245
+ "page_idx": 10
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2661–2671, 2019. ",
1250
+ "bbox": [
1251
+ 173,
1252
+ 515,
1253
+ 823,
1254
+ 558
1255
+ ],
1256
+ "page_idx": 10
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012. ",
1261
+ "bbox": [
1262
+ 174,
1263
+ 565,
1264
+ 823,
1265
+ 609
1266
+ ],
1267
+ "page_idx": 10
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "Y LeCun and I Misra. Self-supervised learning: The dark matter of intelligence, 2021. ",
1272
+ "bbox": [
1273
+ 173,
1274
+ 617,
1275
+ 740,
1276
+ 633
1277
+ ],
1278
+ "page_idx": 10
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In European Conference on Computer Vision, pp. 121–137. Springer, 2020. ",
1283
+ "bbox": [
1284
+ 176,
1285
+ 641,
1286
+ 823,
1287
+ 684
1288
+ ],
1289
+ "page_idx": 10
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3431–3440, 2015. ",
1294
+ "bbox": [
1295
+ 171,
1296
+ 693,
1297
+ 823,
1298
+ 736
1299
+ ],
1300
+ "page_idx": 10
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019. ",
1305
+ "bbox": [
1306
+ 171,
1307
+ 744,
1308
+ 821,
1309
+ 773
1310
+ ],
1311
+ "page_idx": 10
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "George A Miller. Wordnet: a lexical database for english. Communications of the ACM, 38(11): 39–41, 1995. ",
1316
+ "bbox": [
1317
+ 173,
1318
+ 782,
1319
+ 820,
1320
+ 810
1321
+ ],
1322
+ "page_idx": 10
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Norman Mu, Alexander Kirillov, David Wagner, and Saining Xie. Slip: Self-supervision meets language-image pre-training. arXiv preprint arXiv:2112.12750, 2021. ",
1327
+ "bbox": [
1328
+ 173,
1329
+ 819,
1330
+ 823,
1331
+ 849
1332
+ ],
1333
+ "page_idx": 10
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. ",
1338
+ "bbox": [
1339
+ 173,
1340
+ 857,
1341
+ 821,
1342
+ 887
1343
+ ],
1344
+ "page_idx": 10
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. ",
1349
+ "bbox": [
1350
+ 174,
1351
+ 895,
1352
+ 821,
1353
+ 924
1354
+ ],
1355
+ "page_idx": 10
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021. ",
1360
+ "bbox": [
1361
+ 176,
1362
+ 103,
1363
+ 821,
1364
+ 146
1365
+ ],
1366
+ "page_idx": 11
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollar. Designing ´ network design spaces. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10428–10436, 2020. ",
1371
+ "bbox": [
1372
+ 178,
1373
+ 154,
1374
+ 823,
1375
+ 198
1376
+ ],
1377
+ "page_idx": 11
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "Mert Bulent Sariyildiz, Julien Perez, and Diane Larlus. Learning visual representations with caption annotations. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VIII 16, pp. 153–170. Springer, 2020. ",
1382
+ "bbox": [
1383
+ 176,
1384
+ 205,
1385
+ 823,
1386
+ 248
1387
+ ],
1388
+ "page_idx": 11
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of ACL, 2018. ",
1393
+ "bbox": [
1394
+ 173,
1395
+ 257,
1396
+ 823,
1397
+ 286
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "Sheng Shen, Liunian Harold Li, Hao Tan, Mohit Bansal, Anna Rohrbach, Kai-Wei Chang, Zhewei Yao, and Kurt Keutzer. How much can clip benefit vision-and-language tasks? arXiv preprint arXiv:2107.06383, 2021. ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 294,
1407
+ 825,
1408
+ 337
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1415
+ "bbox": [
1416
+ 173,
1417
+ 344,
1418
+ 821,
1419
+ 375
1420
+ ],
1421
+ "page_idx": 11
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. Communications of the ACM, 59(2):64–73, 2016. ",
1426
+ "bbox": [
1427
+ 176,
1428
+ 382,
1429
+ 825,
1430
+ 426
1431
+ ],
1432
+ "page_idx": 11
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "Wouter Van Gansbeke, Simon Vandenhende, Stamatios Georgoulis, and Luc Van Gool. Revisiting contrastive methods for unsupervised learning of visual representations. arXiv preprint arXiv:2106.05967, 2021. ",
1437
+ "bbox": [
1438
+ 173,
1439
+ 434,
1440
+ 825,
1441
+ 477
1442
+ ],
1443
+ "page_idx": 11
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "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 Advances in neural information processing systems, pp. 5998–6008, 2017. ",
1448
+ "bbox": [
1449
+ 173,
1450
+ 484,
1451
+ 825,
1452
+ 529
1453
+ ],
1454
+ "page_idx": 11
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3156–3164, 2015. ",
1459
+ "bbox": [
1460
+ 174,
1461
+ 536,
1462
+ 825,
1463
+ 579
1464
+ ],
1465
+ "page_idx": 11
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "Jason Wei and Kai Zou. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. arXiv preprint arXiv:1901.11196, 2019. ",
1470
+ "bbox": [
1471
+ 171,
1472
+ 588,
1473
+ 825,
1474
+ 617
1475
+ ],
1476
+ "page_idx": 11
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "Bichen Wu, Ruizhe Cheng, Peizhao Zhang, Peter Vajda, and Joseph E Gonzalez. Data efficient language-supervised zero-shot recognition with optimal transport distillation. arXiv preprint arXiv:2112.09445, 2021. ",
1481
+ "bbox": [
1482
+ 173,
1483
+ 625,
1484
+ 823,
1485
+ 667
1486
+ ],
1487
+ "page_idx": 11
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3733–3742, 2018. ",
1492
+ "bbox": [
1493
+ 171,
1494
+ 676,
1495
+ 821,
1496
+ 719
1497
+ ],
1498
+ "page_idx": 11
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Lewei Yao, Runhui Huang, Lu Hou, Guansong Lu, Minzhe Niu, Hang Xu, Xiaodan Liang, Zhenguo Li, Xin Jiang, and Chunjing Xu. Filip: Fine-grained interactive language-image pre-training. arXiv preprint arXiv:2111.07783, 2021. ",
1503
+ "bbox": [
1504
+ 174,
1505
+ 727,
1506
+ 823,
1507
+ 770
1508
+ ],
1509
+ "page_idx": 11
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "Xin Yuan, Zhe Lin, Jason Kuen, Jianming Zhang, Yilin Wang, Michael Maire, Ajinkya Kale, and Baldo Faieta. Multimodal contrastive training for visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6995–7004, 2021. ",
1514
+ "bbox": [
1515
+ 174,
1516
+ 779,
1517
+ 825,
1518
+ 821
1519
+ ],
1520
+ "page_idx": 11
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. arXiv preprint arXiv:2010.00747, 2020. ",
1525
+ "bbox": [
1526
+ 173,
1527
+ 830,
1528
+ 823,
1529
+ 872
1530
+ ],
1531
+ "page_idx": 11
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2921–2929, 2016. ",
1536
+ "bbox": [
1537
+ 174,
1538
+ 882,
1539
+ 825,
1540
+ 924
1541
+ ],
1542
+ "page_idx": 11
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "A PSEUDO CODE OF DECLIP ",
1547
+ "text_level": 1,
1548
+ "bbox": [
1549
+ 176,
1550
+ 102,
1551
+ 434,
1552
+ 118
1553
+ ],
1554
+ "page_idx": 12
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "The training pseudo code of DeCLIP is as follows: ",
1559
+ "bbox": [
1560
+ 174,
1561
+ 133,
1562
+ 506,
1563
+ 148
1564
+ ],
1565
+ "page_idx": 12
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Algorithm 1 DeCLIP ",
1570
+ "text_level": 1,
1571
+ "bbox": [
1572
+ 174,
1573
+ 165,
1574
+ 318,
1575
+ 180
1576
+ ],
1577
+ "page_idx": 12
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "Input: $I , \\tilde { I } , T , \\tilde { T }$ , image encoder, text encoder, F eature Queue \n1: function BATCH-UPDATING(I, ˜I, T , T˜) \n2: # Get The Features of The Current Batch. \n3: $I _ { f } , \\tilde { I } _ { f } \\gets i m a g e \\_ e n c o d e r ( I )$ , image encoder( ˜I) \n4: $T _ { f } , \\tilde { T } _ { f } \\gets t e x t . e n c o d e r ( T )$ , text encoder $( \\tilde { T } )$ \n5: TNN ← NEAREST-NEIGHBOR(F eature Queue, Tf ) \n6: \n7: # Calculate The losses. \n8: $L _ { C L I P } \\gets \\mathrm { I N F O N C E - L O S S } ( I _ { f } , T _ { f } )$ \n9: $L _ { S S } \\gets \\mathrm { I M A G E - S S - L O s s } ( I _ { f } , I _ { f } ) + \\mathrm { T E X T - S S - L O s s } ( T _ { f } )$ \n10: ${ \\cal L } _ { M V S } \\gets \\mathrm { I N F O N C E - L O s s } ( I _ { f } , \\bar { T } _ { f } ) + \\mathrm { I N F O N C E - L O s s } ( \\bar { I } _ { f } , T _ { f } ) + \\mathrm { I N F O N C E - L O s s } ( \\bar { I } _ { f } , \\bar { T } _ { f } )$ \n11: $L _ { N N S } \\gets \\mathrm { I N F O N C E - L O s s } ( \\bar { I } _ { f } , \\bar { T } _ { N N } )$ \n12: $L _ { D e C L I P } \\gets ( 1 - \\alpha - \\beta - \\gamma ) L _ { C L I P } + \\alpha L _ { S S } + \\beta L _ { M V S } + \\gamma L _ { N N S }$ \n13: \n14: # Update The Network. \n15: image encoder $\\gets$ BACKWARD-UPDATE(image encoder, LDeCLIP ) \n16: text encoder $\\gets$ BACKWARD-UPDATE(text encoder, LDeCLIP ) \n17: F eature Queue FIFO-UPDATE(F eature Queue, $T _ { f }$ ) \n18: end function \n19: \n20: function IMAGE-SS-LOSS(If , ˜If ) \n21: $z , \\tilde { z } \\gets$ image encoder.proj $\\left( I _ { f } \\right)$ , image encoder.proj( ˜If ) \n22: p, p˜ ← image encoder.pred(z), image encoder.pred(˜z) \n23: $z , \\tilde { z } \\gets z . d e t a c h ( ) , \\tilde { z } . d e t a c h ( )$ \n24: # Calculate the Negative Cosine Similarity loss. \n25: $L _ { I m a g e - S S } N C S ( p , \\tilde { z } ) / 2 + N C S ( \\tilde { p } , z ) / 2$ \n26: return LImage−SS \n27: end function \n28: \n29: function TEXT-SS-LOSS $( T _ { f } )$ ) \n30: # Get The Masking GT when performing the text-encoder. \n31: Wf $, W _ { g t } \\gets T _ { f }$ .word feat, $T _ { f }$ .mask id \n32: $W _ { p r e d } t e x t . e n c o d e r . p r e d ( W _ { f } )$ \n33: # Calculate the Cross-Entropy loss. \n34: $L _ { T e x t - S S } \\gets C E ( W _ { g t } , W _ { p r e d } )$ \n35: return LT ext−SS \n36: end function ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 188,
1585
+ 826,
1586
+ 714
1587
+ ],
1588
+ "page_idx": 12
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "B DATA AUGMENTATION ",
1593
+ "text_level": 1,
1594
+ "bbox": [
1595
+ 176,
1596
+ 750,
1597
+ 398,
1598
+ 765
1599
+ ],
1600
+ "page_idx": 12
1601
+ },
1602
+ {
1603
+ "type": "text",
1604
+ "text": "Details of SS The image SS uses SimSiam (Chen & He, 2021) method as the image selfsupervision. The prediction module is a 2-layer MLP, in which the hidden dimensions are 512 and output dimensions are 1024, the projection module is a 3-layer MLP, in which the hidden and output dimensions are both 1024. The text SS uses the Masked Language Model (Devlin et al., 2018) as the pretext task. In detail, we first randomly choose $1 5 \\%$ of all tokens in each sequence. Then the token is replaced with (1) the [mask] token $8 0 \\%$ of the time (2) a random token $\\bar { 1 } 0 \\%$ of the time (3) the unchanged token $1 0 \\%$ of the time. ",
1605
+ "bbox": [
1606
+ 173,
1607
+ 781,
1608
+ 825,
1609
+ 878
1610
+ ],
1611
+ "page_idx": 12
1612
+ },
1613
+ {
1614
+ "type": "text",
1615
+ "text": "Image augmentations The augmentation policy includes: RandomResizedCrop with scale in [0.2,1.0] (Wu et al., 2018), ColorJitter containing $\\{$ {brightness, contrast, saturation, hue} strength of $\\{ 0 . 4 , 0 . 4 , 0 . 4 , 0 . 1 \\}$ with an applying probability of 0.8, RandomGrayscale with an applying probability of 0.2. Blurring augmentation (Chen et al., 2020a) has a Gaussian kernel with std in [0.1, 2.0], and RandomHorizontalFlip. ",
1616
+ "bbox": [
1617
+ 173,
1618
+ 895,
1619
+ 821,
1620
+ 924
1621
+ ],
1622
+ "page_idx": 12
1623
+ },
1624
+ {
1625
+ "type": "text",
1626
+ "text": "",
1627
+ "bbox": [
1628
+ 174,
1629
+ 103,
1630
+ 823,
1631
+ 146
1632
+ ],
1633
+ "page_idx": 13
1634
+ },
1635
+ {
1636
+ "type": "text",
1637
+ "text": "Text augmentations We use the EDA (Wei & Zou, 2019) method as our text augmentation strategy, which contains three types of text augmentation strategies: synonym replacement, random swap, and random deletion. Each text will randomly select one of these three types for text augmentation. ",
1638
+ "bbox": [
1639
+ 174,
1640
+ 170,
1641
+ 823,
1642
+ 226
1643
+ ],
1644
+ "page_idx": 13
1645
+ },
1646
+ {
1647
+ "type": "text",
1648
+ "text": "C PRE-TRAINING DATASETS & IMPLEMENTATION DETAILS ",
1649
+ "text_level": 1,
1650
+ "bbox": [
1651
+ 176,
1652
+ 256,
1653
+ 673,
1654
+ 271
1655
+ ],
1656
+ "page_idx": 13
1657
+ },
1658
+ {
1659
+ "type": "text",
1660
+ "text": "Open-source data. Conceptual Captions (Sharma et al., 2018) is a $3 . 3 \\ \\mathrm { M }$ image caption opensource data. Due to the failure of the download link, we only download about 3M data(CC3M). Conceptual 12M (Sharma et al., 2018) contains approximately 12M of image-text pairs(CC12M), which is larger than the CC3M and covers a more diverse set of visual concepts. Also, due to the failure of the download link, we only download about 11M data. YFCC (Thomee et al., 2016), the Yahoo Flickr Creative Commons 100M data, is a dataset for vision language tasks. We download about $8 6 . 5 \\mathrm { M }$ data from the YFCC website and use four filtering rules to filter the DeCLIP YFCC15M dataset to benchmark against CLIP YFCC15M. The four rules are: filtering data with damaged images, filtering data without the caption, filtering data with a caption English word ratio less than 0.8, filtering data with a caption only including one part of speech. ",
1661
+ "bbox": [
1662
+ 173,
1663
+ 291,
1664
+ 825,
1665
+ 431
1666
+ ],
1667
+ "page_idx": 13
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "Web-crawled data. We use the user tags and machine tags of YFCC15M to form a tag list, and use WordNet (Miller, 1995) to find synonyms for each tag in the tag list to form a synonym tag list. The tag list and synonym tag list form a query list. Then we use the query list to crawl images from the Internet, after filtering data with smaller images, filtering data with damaged images, filtering data without the caption, and filtering data with Chinese in the caption, we collect 59M web crawled data. Tabel 5 shows the source link of pre-training datasets, and Figure 10 shows some cases random sampled from each dataset. ",
1672
+ "bbox": [
1673
+ 174,
1674
+ 455,
1675
+ 825,
1676
+ 553
1677
+ ],
1678
+ "page_idx": 13
1679
+ },
1680
+ {
1681
+ "type": "table",
1682
+ "img_path": "images/ff256bd190f5fa5cb1563d8163a4724b11aa7664d82de5778c462e23266912f7.jpg",
1683
+ "table_caption": [
1684
+ "Table 5: The source link of DeCLIP pre-training datasets. "
1685
+ ],
1686
+ "table_footnote": [],
1687
+ "table_body": "<table><tr><td>DATASET</td><td>DATASET API</td></tr><tr><td>CONCEPTUALCAPTIONS</td><td>HTTPS://AI.GOOGLE.COM/RESEARCH/CONCEPTUALCAPTIONS</td></tr><tr><td>CONCEPTUAL12M</td><td>HTTPS://GITHUB.COM/GOOGLE-RESEARCH-DATASETS/CONCEPTUAL-12M</td></tr><tr><td>YFCC</td><td>HTTP://PROJECTS.DFKI.UNI-KL.DE/YFCC100M</td></tr><tr><td>GOOGLE</td><td>HTTPS://WWW.GOOGLE.COM.HK</td></tr></table>",
1688
+ "bbox": [
1689
+ 174,
1690
+ 606,
1691
+ 823,
1692
+ 685
1693
+ ],
1694
+ "page_idx": 13
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "Implementation details We train DeCLIP-ResNet50 (abbr. as R50) and DeCLIP-ViT-B/32 (abbr. as V-B32) from scratch for 32 epochs. For R50, we use the FP16-SGD optimizer with the batch size of 10,240 $( 1 2 8 \\times 8 0 )$ ). Starting with an 0.01 learning rate (lr), we first linearly increasing the lr to 0.2 (a.k.a warm-up) in one epoch. Then we use cosine anneal lr decay to decrease the lr. The weight decay is set to 0.0001. For V-B32, we use a hybrid FP16-AdamW-SGD optimizer with bacth size $1 0 , 2 4 0 ( 1 2 8 \\times 8 0 )$ ). For the ViT image encoder, we use AdamW optimizer with the lr warming up from 1e-4 to 1e-3 in one epoch. The weight decay is set to 0.05. For the text encoder, we use the SGD optimizer with the lr warming up from 1e-3 to 0.02 in one epoch. The weight decay is set to 1e-4. ",
1699
+ "bbox": [
1700
+ 174,
1701
+ 732,
1702
+ 825,
1703
+ 857
1704
+ ],
1705
+ "page_idx": 13
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "Pre-training cost Our R50 and V-B32 took 8/10 days to train on 80 V100 GPUs, respectively. Our largest DeCLIP-RegNetY-64GF took 21 days on 160 V100 GPUs, while the largest CLIP- ${ \\mathrm { R 5 0 } } \\times 6 4$ from (Radford et al., 2021) spent 18 days on 592 V100 GPUs. ",
1710
+ "bbox": [
1711
+ 176,
1712
+ 882,
1713
+ 823,
1714
+ 924
1715
+ ],
1716
+ "page_idx": 13
1717
+ },
1718
+ {
1719
+ "type": "image",
1720
+ "img_path": "images/7597d0083fb5b3c88dc12cc3288664828aa98bb8384c0b068b46b4ce50440dfa.jpg",
1721
+ "image_caption": [
1722
+ "Figure 10: Example image-text pairs randomly sampled from the training dataset. (a) Conceptual Captions, (b) YFCC, (c) Conceptual 12M, (d) Web-crawled. "
1723
+ ],
1724
+ "image_footnote": [],
1725
+ "bbox": [
1726
+ 179,
1727
+ 112,
1728
+ 839,
1729
+ 525
1730
+ ],
1731
+ "page_idx": 14
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "D DOWNSTREAM DATASETS & IMPLEMENTATION DETAILS ",
1736
+ "text_level": 1,
1737
+ "bbox": [
1738
+ 176,
1739
+ 579,
1740
+ 676,
1741
+ 594
1742
+ ],
1743
+ "page_idx": 14
1744
+ },
1745
+ {
1746
+ "type": "text",
1747
+ "text": "Downstream data. We begin with the 12 datasets from the well-studied evaluation suite introduced by Kornblith et al. (2019). Within these 12 datasets, Birdsnap can not be downloaded, and PASCAL VOC 2007 classification is replaced by more challenging ImageNet-1K, resulting in our 11 datasets. They are: Food-101, CIFAR-10, CIFAR-100, SUN397, Stanford Cars, FGVC Aircraft, Describable Textures, Oxford-IIIT Pets, Caltech-101, Oxford Flowers 102. Tab. 6 is the detailed information of these datasets. ",
1748
+ "bbox": [
1749
+ 174,
1750
+ 611,
1751
+ 825,
1752
+ 694
1753
+ ],
1754
+ "page_idx": 14
1755
+ },
1756
+ {
1757
+ "type": "table",
1758
+ "img_path": "images/8662742de9a8a9ec0d5242984fd33aa7e005d4a664aa011675880d70caa2e1cd.jpg",
1759
+ "table_caption": [
1760
+ "Table 6: Details of DeCLIP downstream datasets. "
1761
+ ],
1762
+ "table_footnote": [],
1763
+ "table_body": "<table><tr><td>DATASET</td><td>CLASSES</td><td>TRAIN SIZE</td><td>TEST SIZE</td><td>EVALUATIONMETRIC</td></tr><tr><td>CIFAR10</td><td>10</td><td>50,000</td><td>10,000</td><td>ACCURACY</td></tr><tr><td>CIFAR100</td><td>100</td><td>50.000</td><td>10,000</td><td>ACCURACY</td></tr><tr><td>F00D-101</td><td>101</td><td>75,750</td><td>25,250</td><td>ACCURACY</td></tr><tr><td>OXFORDIIIT-PETS</td><td>37</td><td>3,680</td><td>3,669</td><td>MEAN PER CLASS</td></tr><tr><td>OXFORD 102 FLOWERS</td><td>102</td><td>2.040</td><td>6,149</td><td>MEAN PER CLASS</td></tr><tr><td>SUN</td><td>397</td><td>19,850</td><td>19,850</td><td>ACCURACY</td></tr><tr><td>STANFORD CARS</td><td>196</td><td>8,144</td><td>8,041</td><td>ACCURACY</td></tr><tr><td>DTD</td><td>47</td><td>3,760</td><td>1,880</td><td>ACCURACY</td></tr><tr><td>CALTECH-101</td><td>102</td><td>3,060</td><td>6,085</td><td>MEAN PER</td></tr><tr><td>FGVC AIRCRAFT</td><td>100</td><td>6,667</td><td>3,333</td><td>MEAN PER CLASS</td></tr><tr><td>IMAGENET1K</td><td>1000</td><td>1,281,167</td><td>50,000</td><td>ACCURACY</td></tr></table>",
1764
+ "bbox": [
1765
+ 192,
1766
+ 738,
1767
+ 800,
1768
+ 906
1769
+ ],
1770
+ "page_idx": 14
1771
+ },
1772
+ {
1773
+ "type": "text",
1774
+ "text": "Implementation details We follow CLIP (Radford et al., 2021) to train a logistic regression classifier using L-BFGS, with maximum 1,000 iterations, and report the corresponding metric for each dataset. We determine the L2 regularization strength $\\lambda$ using a hyperparameter sweep on the validation sets over the range between $1 0 ^ { - 6 }$ and $1 0 ^ { 6 }$ , with 96 logarithmically spaced steps. To save compute required for the sweeps, we perform a parametric binary search that starts with $\\lambda = [ 1 0 ^ { - 6 }$ , $1 0 ^ { - \\dot { 4 } }$ , $1 0 ^ { - 2 }$ , 1, $1 0 ^ { 2 }$ , $1 0 ^ { 4 }$ , $1 0 ^ { 6 } ]$ and iteratively halves the interval around the peak until it reaches a resolution of 8 steps per decade. The hyperparameter sweeps are performed on a validation split of each dataset. For the datasets that contains a validation split in addition to from the test split, we use the provided validation set to perform the hyperparameter search, and for the datasets that do not provide a validation split or have not published labels for the test data, we split the training dataset to perform the hyperparameter search and report the performance on the validation data. ",
1775
+ "bbox": [
1776
+ 173,
1777
+ 103,
1778
+ 825,
1779
+ 256
1780
+ ],
1781
+ "page_idx": 15
1782
+ },
1783
+ {
1784
+ "type": "text",
1785
+ "text": "E PROMPT ENGINEERING ",
1786
+ "text_level": 1,
1787
+ "bbox": [
1788
+ 176,
1789
+ 277,
1790
+ 401,
1791
+ 294
1792
+ ],
1793
+ "page_idx": 15
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "Due to the reason that it’s relatively rare in the dataset for the text to be a single word, we use prompts such as $\" a$ photo of a $\\{ \\mathrm { 1 a b e 1 } \\} \"$ for zero-shot classification. For a fair comparison, we use the same prompts as proposed in Radford et al. (2021) for the ImageNet dataset. As shown in Fig 11, the prompts reduce the domain gap between the training dataset and testset, and fully consider the different situations for the picture. ",
1798
+ "bbox": [
1799
+ 173,
1800
+ 309,
1801
+ 825,
1802
+ 378
1803
+ ],
1804
+ "page_idx": 15
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "a bad photo of a {label}. \na photo of many {label}. \na sculpture of a {label}. \na photo of the hard to see {label}. \na low resolution photo of the {label}. \na rendering of a {label}. \ngraffiti of a {label}. \na bad photo of the {label}. \na cropped photo of the {label}. \na tattoo of a {label}. \nthe embroidered {label}. \na photo of a hard to see {label}. \na bright photo of a {label}. \na photo of a clean {label}. \na photo of a dirty {label}. \na dark photo of the {label}. \na drawing of a {label}. \na photo of my {label}. \nthe plastic {label}. \na photo of the cool {label}. ",
1809
+ "bbox": [
1810
+ 187,
1811
+ 409,
1812
+ 341,
1813
+ 587
1814
+ ],
1815
+ "page_idx": 15
1816
+ },
1817
+ {
1818
+ "type": "image",
1819
+ "img_path": "images/e685a6a711b7ad54e01e952638e18b72f3ce6a258ddcd267d907ad4e151b4ac2.jpg",
1820
+ "image_caption": [
1821
+ "Figure 11: The prompts for zero-shot testing. "
1822
+ ],
1823
+ "image_footnote": [],
1824
+ "bbox": [
1825
+ 349,
1826
+ 409,
1827
+ 825,
1828
+ 587
1829
+ ],
1830
+ "page_idx": 15
1831
+ },
1832
+ {
1833
+ "type": "text",
1834
+ "text": "F ADDITIONAL STUDY ",
1835
+ "text_level": 1,
1836
+ "bbox": [
1837
+ 174,
1838
+ 641,
1839
+ 377,
1840
+ 655
1841
+ ],
1842
+ "page_idx": 15
1843
+ },
1844
+ {
1845
+ "type": "table",
1846
+ "img_path": "images/a1c88e67ffd3076e07cf6bd1348a5c72a05f0560bd752c84a44e89c351ccc327.jpg",
1847
+ "table_caption": [
1848
+ "Table 7: DeCLIP zero-shot performance of ImageNet top1 on different training datasets. "
1849
+ ],
1850
+ "table_footnote": [],
1851
+ "table_body": "<table><tr><td>BACKBONE</td><td>DATASET</td><td>DATA SIZE</td><td>BATCH SIZE</td><td>ZERO-SHOT</td></tr><tr><td>REsNET50</td><td>CONCEPTUALCAPTIONS</td><td>3M</td><td>2,048</td><td>27.8</td></tr><tr><td>REsNET50</td><td>CONCEPTUAL12M</td><td>11M</td><td>4,096</td><td>41.0</td></tr><tr><td>RESNET50</td><td>YFCC</td><td>15M</td><td>4,096</td><td>41.9</td></tr><tr><td>REsNET50</td><td>DECLIP OPEN-SOURCE DATA</td><td>29M</td><td>6,144</td><td>49.3</td></tr></table>",
1852
+ "bbox": [
1853
+ 202,
1854
+ 708,
1855
+ 792,
1856
+ 795
1857
+ ],
1858
+ "page_idx": 15
1859
+ },
1860
+ {
1861
+ "type": "text",
1862
+ "text": "Different Pre-training Datasets Data is critical for language-image pre-training task. As shown in Tab. 7, we evaluate our DeCLIP on different sources of datasets. Combining Tab.7 and Fig.1, we can see that when the amount of training data continues to scale up, the zero-shot recognition ability continues to improve as well. In addition, we can see that the open source data has high quality. The 29M open source data can achieve $4 9 . 3 \\%$ zero-shot top1 accuracy on ImageNet through the DeCLIP training paradigm. Our open-source data is an affordable benchmark, which would be beneficial for explorations. ",
1863
+ "bbox": [
1864
+ 173,
1865
+ 825,
1866
+ 825,
1867
+ 924
1868
+ ],
1869
+ "page_idx": 15
1870
+ },
1871
+ {
1872
+ "type": "text",
1873
+ "text": "Our YFCC re-implementation Although we use the same number of image-text pairs as the CLIP YFCC-15M, our YFCC data is different from CLIP. We also reproduce the naive CLIP on our YFCC-15M data, which results in $3 5 . 9 \\%$ zero-shot top1 accuracy on ImageNet-1K (see Fig. 8). It is relatively higher than the number in CLIP paper $( 3 1 . 1 \\% )$ . We conjecture the improvements might be caused by the different data cleaning strategies. However, our DeCLIP can achieve $4 1 . 9 \\%$ zero-shot accuracy which is also $6 . 0 \\%$ higher than our CLIP re-implementation. ",
1874
+ "bbox": [
1875
+ 174,
1876
+ 103,
1877
+ 825,
1878
+ 188
1879
+ ],
1880
+ "page_idx": 16
1881
+ },
1882
+ {
1883
+ "type": "table",
1884
+ "img_path": "images/53ff2d3a432b12e62a157fe31dc337181959190e86b844012553188c822353c6.jpg",
1885
+ "table_caption": [
1886
+ "Table 8: DeCLIP zero-shot performance of ImageNet top1 on YFCC datasets. Although we use the same amount of data, our YFCC is different with CLIP YFCC due to the different data cleaning strategies. "
1887
+ ],
1888
+ "table_footnote": [],
1889
+ "table_body": "<table><tr><td>MODEL</td><td>BACKBONE</td><td>DATASET</td><td>DATA SIZE</td><td>BATCH SIZE</td><td>ZERO-SHOT</td></tr><tr><td>CLIP</td><td>REsNET50</td><td>YFCC</td><td>15M</td><td></td><td>31.3</td></tr><tr><td>CLIP (OUR REIMP.)</td><td>REsNET50</td><td>YFCC*</td><td>15M</td><td>4,096</td><td>35.9</td></tr><tr><td>DECLIP</td><td>REsNET50</td><td>YFCC*</td><td>15M</td><td>4,096</td><td>41.9(↑+6.0)</td></tr></table>",
1890
+ "bbox": [
1891
+ 192,
1892
+ 261,
1893
+ 802,
1894
+ 328
1895
+ ],
1896
+ "page_idx": 16
1897
+ },
1898
+ {
1899
+ "type": "text",
1900
+ "text": "Memory usage Because of the additional views, our DeCLIP is more memory-consuming. Thanks to the ICLR anonymous review comments: a fairer comparison might be doubling the batch size of CLIP. Flowing the ablation study in Fig. 7, we double the batch size and train CLIP-ResNet50 for 64 epochs. The final result is $2 2 . 3 \\%$ which is still $4 . 9 \\%$ lower than our DeCLIP model. We summarize the memory usage, training cost, and the final accuracy as below. All experiments are conducted on CC-3M with 16 V100 GPUs. ",
1901
+ "bbox": [
1902
+ 174,
1903
+ 356,
1904
+ 825,
1905
+ 440
1906
+ ],
1907
+ "page_idx": 16
1908
+ },
1909
+ {
1910
+ "type": "table",
1911
+ "img_path": "images/a199ca3e8ed6e778fb5e867454a918ea7578fff4a0d309b8192582da8d2d66b6.jpg",
1912
+ "table_caption": [
1913
+ "Table 9: Ablation on Memory usage. "
1914
+ ],
1915
+ "table_footnote": [],
1916
+ "table_body": "<table><tr><td>MODEL</td><td>BATCH SIZE PER GPU</td><td>MEMORY (GB)</td><td>EPOCHS</td><td>COST (GPU HOURS)</td><td>ZERO-SHOT</td></tr><tr><td>CLIP-RESNET50</td><td>128</td><td>15.8</td><td>64</td><td>416</td><td>21.7</td></tr><tr><td>CLIP-RESNET50</td><td>256</td><td>24.0</td><td>64</td><td>399</td><td>22.3</td></tr><tr><td>DECLIP-RESNET50</td><td>128</td><td>22.7</td><td>32</td><td>304</td><td>27.2</td></tr></table>",
1917
+ "bbox": [
1918
+ 187,
1919
+ 483,
1920
+ 807,
1921
+ 540
1922
+ ],
1923
+ "page_idx": 16
1924
+ }
1925
+ ]
parse/dev/zq1iJkNk3uN/zq1iJkNk3uN_middle.json ADDED
The diff for this file is too large to render. See raw diff