ZHANGYUXUAN-zR commited on
Commit
dcaa715
·
verified ·
1 Parent(s): 1530eca

Add files using upload-large-folder tool

Browse files
parse/dev/AhccnBXSne/AhccnBXSne_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/JCCi58IUsh/JCCi58IUsh.md ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Grounded Decoding: Guiding Text Generation with Grounded Models for Embodied Agents
2
+
3
+ Wenlong Huang1∗, Fei $\mathbf { X i a } ^ { 2 }$ , Dhruv Shah3, Danny Driess2, Andy Zeng2, Yao $\mathbf { L } \mathbf { u } ^ { 2 }$ , Pete Florence2, Igor Mordatch2, Sergey Levine2,3, Karol Hausman2, Brian Ichter2 1Stanford University, 2Google Deepmind, 3UC Berkeley grounded-decoding.github.io
4
+
5
+ # Abstract
6
+
7
+ Recent progress in large language models (LLMs) has demonstrated the ability to learn and leverage Internet-scale knowledge through pre-training with autoregressive models. Unfortunately, applying such models to settings with embodied agents, such as robots, is challenging due to their lack of experience with the physical world, inability to parse non-language observations, and ignorance of rewards or safety constraints that robots may require. On the other hand, languageconditioned robotic policies that learn from interaction data can provide the necessary grounding that allows the agent to be correctly situated in the real world, but such policies are limited by the lack of high-level semantic understanding due to the limited breadth of the interaction data available for training them. Thus, if we want to make use of the semantic knowledge in a language model while still situating it in an embodied setting, we must construct an action sequence that is both likely according to the language model and also realizable according to grounded models of the environment. We frame this as a problem similar to probabilistic filtering: decode a sequence that both has high probability under the language model and high probability under a set of grounded model objectives. We demonstrate how such grounded models can be obtained across three simulation and real-world domains, and that the proposed decoding strategy is able to solve complex, long-horizon embodiment tasks in a robotic setting by leveraging the knowledge of both models.
8
+
9
+ # 1 Introduction
10
+
11
+ Recent works have demonstrated robots that are increasingly proficient at understanding and acting upon natural language, whether through planning or conditioned policies. Complementing such progress, the field of natural language processing has recently seen large language models (LLMs) become ubiquitously used as pre-trained or few-shot prompted models, due to their impressive fewshot performance and vast knowledge-base. These LLMs have efficiently learned from web-scale data through autoregressively modeling the probability distribution over text tokens and thus generate text. However, the nature of this process is such that applying such models to embodied settings remains a challenge. They have not interacted with their environment, lack observability of nonlanguage observation modalities (e.g., images), and may not know what is safe or possible for a particular embodiment.
12
+
13
+ Determining how to execute long-horizon behaviors based on high-level verbal commands is one particular area of robotics where the rich semantic knowledge in large language models can be especially useful. This problem combines elements of semantic reasoning and planning: the robot must understand the instruction, determine the steps needed to fulfill it, and also determine how to sequence those steps appropriately given its capabilities and the current state of the environment. However, this is not a problem that can be solved purely with semantics, as it requires sufficient grounding to understand how the task should be performed in context – for example, in the example in Figure 1, the language model alone has no way of knowing which block to pick up because this requires knowledge of which blocks are present, and also what manipulations the robot is capable of performing on them. Thus, although a language model can assign probabilities for how likely various steps are to correspond to the desired task semantically, the constraints of the planning problem must also enter into the process. These constraints could themselves be represented as probabilities that mirror the token probabilities generated by a language model, reflecting their applicability to the current environment rather than their semantic likelihood. We can frame this as a problem similar to probabilistic filtering: decode a sequence (i.e., a task description) that both has a high probability under the language model and a high probability under a grounded model that predicts how applicable this sequence is to the current scene.
14
+
15
+ ![](images/55c2bb7f596e605d1eb02a8b51a6da2372e6a2ac1e480096707c0e9fa6f7f3f9.jpg)
16
+ Figure 1: Grounded Decoding solves robotic tasks by taking an instruction as input and selecting tokens that have high probability under a Large Language Model (LLM) and a set of Grounded Models (GM). Thus, it leverages the open-vocabulary and semantic knowledge of LLMs while being grounded in the environment and in the robot’s capabilities. Furthermore, the whole process does not require expensive fine-tuning of the LLM.
17
+
18
+ Herein, we present Grounded Decoding (GD), a scalable, general approach to planning with LLMs embodied domains. Grounded Decoding jointly decodes the token probability of an LLM and token probabilities from token-conditioned, robotic functions, such as affordance functions capturing the abilities of a robot given its embodiment, safety functions, or more. By guiding the LLM directly at its output, Grounded Decoding enables a general and flexible family of planning algorithms that combines LLM’s strength of long-horizon and semantic reasoning and grounded models’ strength of local and embodiment grounding.
19
+
20
+ Our contributions are as followed: 1) we present a robot-centric formulation for decoding language models to perform long-horizon robotic tasks with token-conditioned grounded models, 2) we demonstrate techniques for learning such grounded models, serving different purposes such as affordances and safety requirements, and 3) we show empirical evidence, across three simulation and real-world domains, that the proposed method performs strongly on a wide range of tasks while also significantly outperforming prior methods in efficiency.
21
+
22
+ # 2 Related Work
23
+
24
+ Guided Decoding for Language Models. Decoding strategies for large language models is an active area of research within natural language processing [77, 87, 25, 85, 38]. A number of recent works have focused on developing decoding heuristics for natural text generation [49, 35, 48, 18, 25, 6, 36, 63]. Another line of works use external classifiers for maximizing certain language-space utilities when decoding language models [71, 92, 26, 39, 37, 21, 38, 4, 12, 23]. Most closely related to our work are classifier-guided decoding methods developed for offline domains, such as image captioning [78, 74] and task-oriented dialog [72, 83]. However, extensions to embodied domains, which we investigate exclusively in this work, remain non-trivial because grounding in embodied domains is bounded by the abilities of the agent and by environment state transition as the agent actively interacts with the environment.
25
+
26
+ ![](images/5fdb2a7a22b965fe17fff70f6ac16a295d0678a3944f751bcee5eb6cca8daed2.jpg)
27
+ Figure 2: Overview of Grounded Decoding. Given a free-form language instruction, a language model and grounded models jointly decide the next candidate token to be decoded by combining their respective likelihood. Language model proposes likely tokens that produce goal-directed and coherent long-horizon behaviors, while grounded models connect them to the physical scene, through a flexible composition of multiple objective functions from multiple modalities, such as affordance, preferences, and safety.
28
+
29
+ Embodied and Multimodal Language Models. Training language models to understand embodiment is an active area of research. Training multimodal models can enable some degree of embodied reasoning, such as understanding images and videos [9, 40, 76, 3]. Directly finetuning language models to output actions has also been investigated [75, 55, 66]. Lastly, training downstream models on language model embeddings shows promise [46, 52, 24, 94, 60, 41]. In this work, we investigate leveraging large frozen language models for embodied applications [29, 2, 96, 8, 64, 30, 42, 70, 47, 27, 58, 73, 44, 43, 14, 16, 82, 93, 89, 45, 56], with grounded models to provide domain-specific grounding during decoding process.
30
+
31
+ Comparison to SayCan. The most closely related work to our work is SayCan [2]. SayCan uses a large language model and a value function to select robotic skills among a constrained set of primitives. This constrained set of primitives enables SayCan to use the so-called “scoring-mode” of the LLM to get the probability of a skill being useful to a high-level instruction. This requirement to consider only a fixed and enumerated set of primitives limits the applicability of SayCan in scenarios with many possible skills, such as open vocabulary or combinatorial tasks. Grounded Decoding on the other hand jointly decodes the LLM and the grounded model at the token level, allowing for expressive decoding with an open vocabulary. Furthermore, SayCan considers only grounding functions derived from RL-trained value functions for affordance grounding functions, while Grounded Decoding explores many types of grounding functions to propose a broad family of algorithms.
32
+
33
+ Task and Motion Planning. Task and motion planning [33] seeks to solve high-level instructions via sequencing tasks in dynamically feasible manner. Research within this area generally focuses on symbolic planning [19] or optimization-based [79] approaches. Machine learning has increasingly been used to accelerate planning and enable new domains [91, 61, 69, 20, 17, 28, 90, 31, 1, 65, 51, 86, 88, 15]. However, planning constraints are often explicitly specified for TAMP methods. In contrast, we specify constraints as (learned) probabilities, which are baked into the decoding process and provided by domain-specific grounded models.
34
+
35
+ # 3 Grounded Decoding
36
+
37
+ # 3.1 LLMs and Grounding Models
38
+
39
+ Large Language Models. LLMs are trained to predict the probability $p ( W )$ of a text sequence $W$ , represented as a sequence of tokens $W = w _ { 1 : N } = ( w _ { 1 } , \dotsc , w _ { N } )$ . The tokens are elements of a fixed vocabulary $\mathcal { W }$ . Typical neural architectures factorize the joint probability into $p ( W ) =$ $\begin{array} { r } { \prod _ { n = 1 } ^ { N } p _ { \mathrm { L L M } } ( w _ { n } | w _ { 1 : n - 1 } ) } \end{array}$ , where $p _ { \mathrm { L L M } }$ is predicted by a transformer network [81]. Given $p _ { \mathrm { L L M } }$ , generating a text consisting of $N$ -many tokens, the so-called decoding process, can be seen as the optimization problem arg $\begin{array} { r } { \operatorname* { m a x } _ { w _ { 1 : N } \in \mathcal { W } } \prod _ { n = 1 } ^ { N } p _ { \mathrm { L L M } } ( w _ { n } | w _ { 1 : n - 1 } ) } \end{array}$ , which in practice is solved, e.g., using greedy search , beam search, or sampling strategies. To further ensure the LLM is solving a desired task, one typically starts with a given text, the so-called prefix or prompt, that describes the task, and then the LLM completes this task in its decoding process.
40
+
41
+ Grounding Functions. We use the concept of grounding functions, $p _ { \mathrm { G } } ( w _ { 1 : n } | s )$ , which seek to model a probability of tokens $w _ { 1 : n }$ given (potentially non-textual) state $s \in S$ . This state is intended to capture the embodiment of the robot and the environment, which may be an image, proprioception of the robot, or the environment state. Thus the grounding function models probabilities relevant to the robot embodiment and environment, such as whether the tokens are possible for the robot to execute given the state (affordances), or other values like safety, cost, or user preferences.
42
+
43
+ # 3.2 Problem formulation.
44
+
45
+ Given an instruction in language $\ell$ , we look at the problem of using an LLM to decode a language plan $w _ { 1 : N }$ , which is typically done by finding the most likely tokens under the probability distribution predicted by the LLM, $p _ { \mathrm { L L M } } ( w _ { 1 : N } | \ell )$ , with $\ell$ being the prefix. However, based on the instruction $\ell$ as the prefix alone, the LLM can easily generate text that is not grounded in the physical state of the environment, rendering such plans useless in the real world. In order to ground the language model in an actual physical embodiment, we propose Grounded Decoding (GD): The main idea of GD is to guide the generation of token sequences with grounding function $( s )$ that are conditioned on the embodiment of the system.
46
+
47
+ Formally, let $s \in S$ denote a representation of the state of the world. Then, GD attempts to generate text that is consistent with both the instruction $\ell$ and the physical state $s$ :
48
+
49
+ $$
50
+ w _ { 1 : N } ^ { * } = \arg \operatorname* { m a x } _ { w _ { 1 : N } , w _ { n } \in \mathcal { W } } p _ { \mathrm { G D } } ( w _ { 1 : N } | s , \ell )
51
+ $$
52
+
53
+ To leverage the Internet-scale knowledge of LLMs, we factorize $p _ { \mathrm { G D } } ( w _ { 1 : N } | s , \ell )$ as follows 2:
54
+
55
+ $$
56
+ \begin{array} { r l } { p _ { \mathrm { G i D } } ( w _ { 1 : N } | s , \ell ) = \frac { p ( s , \ell | w _ { 1 : N } ) p ( w _ { 1 : N } ) } { p ( s , \ell ) } } & { } \\ { = \frac { p ( s | w _ { 1 : N } ) p ( \ell | w _ { 1 : N } ) p ( w _ { 1 : N } ) } { p ( s , \ell ) } } & { } \\ { = \frac { p ( w _ { 1 : N } | \ell ) p ( \ell ) p ( w _ { 1 : N } | s ) p ( s ) p ( w _ { 1 : N } ) } { p ( s , \ell ) p ( w _ { 1 : N } ) p ( w _ { 1 : N } ) } } & { } \\ { \propto \frac { p ( w _ { 1 : N } | \ell ) } { p ( w _ { 1 : N } ) } p ( w _ { 1 : N } ) } & { } \\ { \propto \frac { p ( w _ { 1 : N } | \ell ) } { p ( w _ { 1 : N } ) } p ( w _ { 1 : N } | s ) } & { } \\ { \propto p ( w _ { 1 : N } | \ell ) p ( w _ { 1 : N } | s ) . } & { } \end{array}
57
+ $$
58
+
59
+ To decode autoregressively with the formulation, we factorize above into token decoding:
60
+
61
+ $$
62
+ \begin{array} { r } { p _ { \mathrm { G D } } ( w _ { 1 : N } | s , \ell ) \propto \displaystyle \prod _ { n = 1 } ^ { N } p _ { \mathrm { L L M } } ( w _ { n } | w _ { 1 : n - 1 } , \ell ) p _ { \mathrm { G } } ( w _ { 1 : n } | s ) . } \end{array}
63
+ $$
64
+
65
+ The first term, $p _ { \mathrm { L L M } } ( w _ { n } | w _ { 1 : n - 1 } , \ell )$ , can be modeled as the probability of the LLM predicting the token for the given instruction $\ell$ appended previously decoded tokens $w _ { 1 : n - 1 }$ without the state $s$ as input. The second term, $p _ { \mathrm { G } } ( w _ { 1 : n } | s )$ , is the grounding function that is only conditioned on the state $s$ and judges whether the generated text $w _ { 1 : n }$ is consistent with the physical state. The core idea behind this factorization is that LLMs exhibit long-term planning capabilities, while the grounding function guides the planning of the LLM to be possible in the concrete embodied physical world without needing to be informed or capable of reasoning over the long-horizon instruction.
66
+
67
+ # 3.3 Grounded Decoding
68
+
69
+ This work investigates grounded decoding exclusively in the context of task planning for embodied agents. Figure 2 visualizes a single step of the simplest greedy search form of GD, and accompanying pseudo-code can be found in Algorithm 1. Given a high-level language instruction and history of executed actions, GD proceeds through a process similar to probabilistic filtering by selecting tokens iteratively that have high probability under the language model and the grounded model. After each token is selected, it is appended to the prefix. The process continues until a token in the terminal set ${ \mathcal { W } } _ { \mathrm { t e r m } }$ is selected, which could be a period sign “.” indicating the end of a single-step skill (e.g., pick-and-place). Then the command $w _ { 1 : i }$ is sent to a language-conditioned policy $\pi ( \boldsymbol { a } | \boldsymbol { s } , \boldsymbol { w } _ { 1 : i } )$ that executes the action $a$ conditioned on the environment state $s$ . Crucially, this grounding function must accept partial commands to enable grounding during decoding.3 Additionally, we note that GD, in its essence, provides a grounded scoring function; thus, it can be easily extended to any search methods such as beam search, top- $\mathbf { \nabla } \cdot \mathbf { k }$ sampling, etc.
70
+
71
+ # Algorithm 1 Grounded Decoding (GD) w/ Greedy Search
72
+
73
+ 1: Given: state $s$ , instruction $\ell$ , terminal set ${ \mathcal { W } } _ { \mathrm { t e r m } }$
74
+ 2: Initialize: $w = \{ \}$ , $n = 0$
75
+ 3: while $w _ { n } \notin \mathcal { W } _ { \mathrm { t e r m } } \mathbf { d o }$
76
+ 4: $n = n + 1$
77
+ 5: $\begin{array} { r } { \left. w _ { n } = \arg \operatorname* { m a x } _ { w _ { n } \in \mathcal { W } } p _ { \mathrm { L L M } } ( w _ { n } | w _ { 1 : n - 1 } , \ell ) p _ { \mathrm { G } } ( w _ { 1 : n } | s ) \right. } \end{array}$
78
+ 6: end while
79
+ 7: Return: $w$
80
+
81
+ # 3.4 Techniques for Obtaining Grounded Models
82
+
83
+ Unlike language tasks, where a single model is capable of performing general semantic reasoning, a singular grounded model remains an open problem. Indeed, each domain may impose varied environmental and embodiment constraints. Despite these challenges, we present several techniques for obtaining grounded models that can be leveraged in GD’s formulation, and validate them in three domains in Section 4.
84
+
85
+ Token-Conditioned Value Functions. Assuming a robot acts with action $a$ according to policy $\pi ( \boldsymbol { a } | \boldsymbol { s } , \boldsymbol { w } _ { 1 : n } )$ , that aims to maximize certain a utility and that the utility captures a task objective, a natural choice that can provide “grounding score” is the action-value function $Q ( s , a | w _ { 1 : n } )$ as it necessarily captures the embodiment of the robot. Additional objectives, such as task constraints, can also be encapsulated in $Q ( s , a | w _ { 1 : n } )$ to ensure grounding. Note that unlike the formulation proposed in [2], $w _ { 1 : n }$ cannot be restricted to a fixed repertoire of token sequences. In practice, to obtain a $Q ( s , a | w _ { 1 : n } )$ that satisfies the requirements, one can train multi-task language-conditioned agents, either through reinforcement learning (Section 4.2) or supervised learning (Section 4.1).
86
+
87
+ Multimodal Foundation Models. A general choice to ground LLMs is through using multimodal foundation models, such as CLIP [57] or open-vocabulary object detectors [22, 34, 50]. Although these models can connect language to other grounded modalities (e.g., vision), they often lack the capability for complex or long-horizon reasoning, and they do not consider embodiment constraints. As a result, to leverage them in the decoding process, they need to constrained to where they are the most applicable rather than always decoding jointly. To this end, we use a prompt-based technique that allows LLMs to choose when to jointly decode (Section 4.3), which we find to be effective in most cases.4.
88
+
89
+ Rule-based Methods. Another source of grounding may come from features $x = \phi ( w _ { 1 : n } )$ designed with expert domain knowledge, which can then be used to map $w _ { 1 : n }$ to a “grounding score” using pamametric or non-parametric functions $f ( x )$ . Such techniques may be most applicable when interpretability and enforcing hard constraints are required, such as safety-critical settings, or when data are scarce, such as cases involving preferences of individual users (as shown in Section 4.1).
90
+
91
+ # 3.5 Comparisons to Prompt-based Methods
92
+
93
+ One alternative approach for grounding is including scene information as part of the prompt (e.g., object detection results [96]), which complements the grounding method proposed in this work.
94
+
95
+ ![](images/9dad5d3bb0a0ce1e91e69106f28a556838841fa5f6e3ab2473b19bc919e17e2b.jpg)
96
+ Figure 3: Example rollouts and likelihood of representative tokens under Grounded Decoding objective in three distinct domains: simulated tabletop rearrangement (top), Minigrid 2D Maze (middle), and real-world Language score, grounding score, tokenskitchen mobile manipulation (bottom). Each domain uses different prompts, grounded models, and low-level [(-2.2144471089350395, 13.634880781173706, 'pepsi'), primitives. The GD formulation is shared across the domains, decoding a pre-trained langauge model with (-0.1931666703881, 0.0, 'grapefruit soda'), respect to domain-specific grounded models to decompose a open-ended instruction into actionable steps.
97
+
98
+ However, we note that prompting is often insufficent for grounding, as information about the scene and about the capabilities of the robot may not always be succinctly described in the prompt. Such examples include 1) in a block stacking task, a block that has been stacked on cannot be picked, 2) in a navigation task, to open a door, one must have a key and that door must be reachable, and 3) in a mobile manipulation domain, an object may be visible but is out of reach of the manipulator. Therefore, Grounded Decoding is a more general and flexible grounding method that injects continuous probabilities during decoding, which may even come from grounding functions from other modalities (e.g., vision).
99
+
100
+ # 4 Experiments
101
+
102
+ # 4.1 Long-Horizon Tabletop Manipulation
103
+
104
+ Herein we experiment with a simulated tabletop manipulation environment based on RAVENS [95]. We create a custom set of 20 tasks, with 10 seen tasks and 10 unseen tasks. Seen tasks are used for training (for supervised baseline) or for few-shot prompting. They are grouped by following categories. Detailed breakdown can be found in Appendix A.2.
105
+
106
+ i. Letters: Rearranging alphabetical letters (“sort the letters in alphabetical order”).
107
+
108
+ ii. Blocks & Bowls: Rearranging or combining blocks and bowls (“put blocks in matching bowls”).
109
+
110
+ iii. Box Packing: Sorting food items and utensils into boxes in accordance with safety constraints and user preferences (“Can you pack the picnic box for me?”).
111
+
112
+ Given only high-level language instructions and top-down visual observation of the environment, Grounded Decoding decodes a sequence of text tokens representing the step command to be executed. Note that because GD generated grounded free-form actions, it does not require each step to strictly map to a repertoire of skill as in [29, 2]. After a complete command is generated, it is executed via a pre-trained multi-task language-conditioned CLIPort [67]. An example rollout is shown in Figure 4.To demonstrate the techniques proposed in Section 3.4 to obtain grounding functions, we study the composition of following grounding functions (overall grounding score is calculated as $\textstyle p _ { \mathbf { G } } = \mathbf { \dot { I } } \prod _ { i = 1 } ^ { n } p _ { i } )$ depending on the task categories. Refer to the Appendix A.2 for details.
113
+
114
+ Table 1: Tabletop domain success rates.
115
+
116
+ <table><tr><td></td><td colspan="2">CLIPort</td><td>+LLM</td><td colspan="2">+GD (Ours)</td></tr><tr><td></td><td>Short Long</td><td></td><td>Ungrounded</td><td>Greedy Beam</td><td></td></tr><tr><td>Seen Tasks</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Letters</td><td>7%</td><td>40%</td><td>20%</td><td>43%</td><td>57%</td></tr><tr><td>Blocks&amp;Bowls</td><td>2%</td><td>62%</td><td>35%</td><td>60%</td><td>77%</td></tr><tr><td>Box Packing*</td><td>15%</td><td>28%</td><td>11%</td><td>79%</td><td>78%</td></tr><tr><td>Unseen Tasks</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Letters</td><td>6%</td><td>10%</td><td>19%</td><td>37%</td><td>41%</td></tr><tr><td>Blocks&amp;Bowls</td><td>6%</td><td>10%</td><td>28%</td><td>44%</td><td>50%</td></tr></table>
117
+
118
+ Table 2: 2D Maze success rates.
119
+
120
+ <table><tr><td></td><td></td><td>+Skills</td><td>+LLM</td><td colspan="2">+GD (Ours)</td></tr><tr><td></td><td>PPO</td><td>HRL</td><td>Ungrounded</td><td>Greedy</td><td>Beam</td></tr><tr><td>Easy</td><td>28%</td><td>68%</td><td>96%</td><td>100%</td><td>100%</td></tr><tr><td>Medium</td><td>13%</td><td>48%</td><td>87%</td><td>93%</td><td>97%</td></tr><tr><td>Hard</td><td>6%</td><td>31%</td><td>54%</td><td>78%</td><td>88%</td></tr></table>
121
+
122
+ Affordance Grounding Function (AF). As the primitive policy CLIPort [67] already acts as an action-value function over the pixel space, we directly leverage its predictions for affordance grounding. In particular, given scene image $s$ and partially-decoded instruction $w _ { 1 : n }$ , CLIPort predicts unnormalized logits over the pixel space $\mathbf { u } _ { \mathrm { p i c k } } , \mathbf { u } _ { \mathrm { p l a c e } } \mathbf { \dot { \in } } \mathbb { R } ^ { 4 8 0 \times 6 4 0 }$ , respectively for the pick location and the place location. Therefore, for any given $s$ and $w _ { 1 : n }$ , we can calculate the affordance as $p _ { \mathrm { A F } } ( w _ { 1 : n } | s ) = \operatorname* { m a x } _ { ( x , y ) \in 4 8 0 \times 6 4 0 }$ $( \mathbf { u } _ { \mathrm { p i c k } } ( x , y ) + \mathbf { u } _ { \mathrm { p l a c e } } ( x , y ) )$ .
123
+
124
+ Safety Grounding Function (S). To strictly enforce hard constraints such as safety requirements, we adopt the rule-based method proposed in Section 3.4. In particular, the features $x$ are indicator functions denoting whether knives and red boxes which we use as hazardous objects are involved in an action, i.e., $x = \mathbb { I } [$ [“red” or “knife” in $w _ { 1 : n } ]$ . We then use constant mappings to convert the features $\begin{array} { r } { p _ { \mathrm { S } } ( w _ { 1 : n } | s ) = \underline { { \epsilon } } ( x + \frac { 1 } { Z } ( 1 - x ) } \end{array}$ to scores of 0 or 1, where $Z$ is the normalizing term and $\epsilon \approx 0$ is a small value for ensuring the joint probability does not collapse to 0.
125
+
126
+ Preference Grounding Function $\mathbf { \Pi } ^ { ( \mathbf { P } ) }$ . We similarly use rule-based methods for preference grounding, as data of individual users may be scarce to learn a separate model. In particular, we choose two random objects $\left( o _ { 1 } , o _ { 2 } \right)$ as the preferred objects, i.e., $x = \mathbb { I } [ o _ { 1 } \quad$ or $O _ { 2 }$ in $w _ { 1 : n } ]$ . Note that unlike safety functions, preferences often come in the form of “soft requirement”. Therefore, the preference grounding function is implemented as $\begin{array} { r } { p _ { \mathrm { P } } ( w _ { 1 : n } | s ) = \frac { \alpha } { Z } x + \frac { \bar { \beta ^ { } } } { Z } ( 1 - x ) } \end{array}$ , where we choose $\alpha = 0 . 5$ and $\beta = 0 . 1$ for our experiments.
127
+
128
+ Baselines. We study two variants of GD using beam search and greedy search. We also compare to ”No Grounding” baseline that decodes only according to language model likelihood. Furthermore, we compare to solitary method CLIPort [67] that directly take in the high-level language instructions without a planner. We consider two variants of CLIPort: 1) ”Short” that is trained with only singlestep pick-and-place commands, and 2) ”Long” that is trained on high-level instructions from the 10 training tasks. For more details, please refer to Appendix A.2.
129
+
130
+ Analysis. Results grouped by each task category are shown in Table $\cdot$ . Please refer to the Appendix for detailed breakdown. Each method is evaluated on 20 episodes for each task within each task category. Supervised methods, such as CLIPort, are found to perform poorly on unseen tasks. Methods that leverage language model planner show better generalization to unseen tasks but fall short due to lack of grounding. Grounded Decoding achieves the best results by enabling the LLM to plan actions using grounded information and is further improved with beam search.
131
+
132
+ # 4.2 2D Maze
133
+
134
+ We further evaluate the long-horizon reasoning of Grounded Decoding for 2D maze-solving on Minigrid [10]. The agent receives a top-down view of the environment along with a natural language instruction. More details can be found in Appendix A.3. The tasks are grouped in three categories:
135
+
136
+ i. Easy: Simple tasks where the horizon is short (10-30 steps) and fully described by the textual instruction, e.g. OpenDoors and PutNext.
137
+
138
+ ii. Medium: Short and long-horizon tasks (up to 80 steps) with step-by-step textual instructions, e.g. LockedRoom.
139
+
140
+ iii. Hard: Complex, long-horizon instructions (over 100 steps) with ambiguous instructions that necessitate multi-step reasoning and efficient exploration, e.g. MultiRoom and BlockedUnlock.
141
+
142
+ ![](images/f32112cc7fd36e36fbcb5def3cfcf4cbf68a179f7b4e667eeba04a488fd7e47a.jpg)
143
+ Figure 4: Greedy decoding rollout with GD, where key decoded tokens are shown (yellow, purple, red, yellow). Combined scores are normalized to the maximum for visual clarity; others are normalized to their sum.
144
+
145
+ Affordance Grounding Function. Following the recipe from Section 3.3, we train tokenconditioned affordance function to be used in GD. The difference is that the grounding function here is the value function from the goal-conditioned policy that is trained with PPO [62] instead of from demonstrations as in CLIPort [67]. The policy performs short-horizon skills such as “Go to red key” or “Open the door” and are conditioned on CLIP embeddings of the skill and an image of the scene. Accordingly, the goal-conditioned value function evaluates the feasibility given the current observation and the (partially) decoded skill.
146
+
147
+ Baselines. We compare the two variants of GD – with greedy and beam search – with 1) a solitary PPO policy [62], 2) a hierarchical RL algorithm which plans over the low-level skills, and 3) a hierarchical method that uses an ungrounded language model for planning [29].
148
+
149
+ Analysis. Table 2 reports the success rate, averaged across 100 episodes of randomly initialized environments. The “flat” RL agent performs poorly in all but the simplest environments, owing to difficulties with understanding the high-level instruction and reasoning over long horizons (often over 100 steps). Planning over low-level skills using hierarchical RL [5] improves this performance, since the high-level decision-making problem is greatly simplified. However, the high-level RL agent still needs to reason over low-level (textual) skills by understanding their underlying capabilities and stitching them together. Using the planning capabilities of large language models to reason over textual skills significantly boosts this performance [29], since the language model can inherit the strong reasoning capabilities from its training data. This tends to be insufficient in challenging environments, however, since the number of potentially viable skills may be very large and the LLM has no information about the robot’s observations. GD can leverage the learned affordance function (in this case, the goal-conditioned value function) to inform the language model’s plans, enabling successful long-horizon reasoning. We further find that beam search improves performance modestly, particularly in long-horizon tasks.
150
+
151
+ # 4.3 Mobile Manipulation in a Physical Kitchen
152
+
153
+ Our last environment is a kitchen robot in the real world, and we follow the same implementations of the mobile manipulation platform and skills in SayCan [2]. We perform instruction following tasks, as in [2]. An example task is “Bring an apple”, for which the robot needs to plan and execute a sequence of “1. Find an apple, 2. Pick up the apple, 3. Bring it to you. 4. Put it down, 5. Done”. We split the tasks into two categories. Unambiguous means the instruction explicitly contains the object of interest, and Ambiguous means the instruction does not contain the object name. For example, when human asks “bring me the fruit”, the robot needs to first determine available fruits. We assume all necessary objects are in the field of view. More details can be found in Appendix A.4.
154
+
155
+ Grounded Decoding with Chain-of-thought. We demonstrate using multimodal foundation models for Grounded Decoding, as proposed in Section 3.4. In particular, we use open-vocabulary object detector owl-vit [50]. Note that because these off-the-shelf models are not trained on robot domain data, we find that it works best by constraining their influence on decoding. We achieve this by making a slight modification to the SayCan algorithm [2]: before generating action plans, we prompt the LLM to generate visually-grounded chain-of-thought [84] by giving LLM the option of when to enable grounded decoding and disable grounded decoding, as visualized in Fig. 5. Specifically,
156
+
157
+ ![](images/75677539f5e245c38debf45eabab4c8a4a9622b1a965a0333d960316bec7df7f.jpg)
158
+ Figure 5: Example prompt and rollout in realworld kitchen environment.
159
+
160
+ Table 3: Success rates in kitchen environment.
161
+
162
+ <table><tr><td></td><td colspan="2">GD</td><td colspan="2">SayCan</td></tr><tr><td>Tasks</td><td>Planning</td><td>gExecution Planning</td><td></td><td>:Execution</td></tr><tr><td>Unambiguous</td><td>85%</td><td>57%</td><td>85%</td><td>57%</td></tr><tr><td>Ambiguous</td><td>58%</td><td>44%</td><td>33%</td><td>25%</td></tr></table>
163
+
164
+ Table 4: By avoiding full enumeration of skills, GD is more efficient than SayCan while staying performant.
165
+
166
+ <table><tr><td colspan="4">GD (Greedy) ( GD(Beam) SayCan</td></tr><tr><td>Success Rate</td><td>50%</td><td>60%</td><td>64%</td></tr><tr><td>Token Count</td><td>1x</td><td>4.3x</td><td>113.7x</td></tr></table>
167
+
168
+ LLMs can be prompted to generate a left bracket to start decoding jointly with grounded models and a right bracket to revert to ungrounded decoding. After chain-of-thought, we use SayCan scoring mode for decoding the action plans.
169
+
170
+ Analysis. Table 3 shows that GD recovers similar performance on Unambiguous tasks, and gain $2 5 \%$ in planning performance on Ambiguous tasks. This shows that GD with multimodal foundation models can effectively use visually-grounded chain-of-thought to disambiguate abstract tasks.
171
+
172
+ # 5 Analysis
173
+
174
+ # 5.1 Comparison to SayCan
175
+
176
+ In this section, we directly compare GD to SayCan [2], which is related to our method in that both combine language model knowledge and grounded model knowledge (discussed in more detail in Section 2). However, SayCan uses the language model to score all pre-specified options, rendering it inefficient at dealing with large or combinatorial action spaces. In contrast, GD computation considers all possible language token in the autoregressive decoding process, which is independent of the size of the action space. Results shown in Table 4 demonstrate that GD is two orders of magnitude more efficient on our tasks, with comparable performance. Furthermore, by decoding at the most basic functioning unit of language, GD’s formulation allows open-vocabulary grounding beyond just affordances, e.g. safety, preferences, and multimodal embeddings such as CLIP.
177
+
178
+ # 5.2 Breakdown of Failure Reasons
179
+
180
+ Because all hierarchical approaches share an imperfect low-level policy for step execution, the results reported in Table 1 are compounded with both planning failures and low-level policy failure. In Figure 6, we provide failure breakdown analysis for Grounded Decoding and associated baselines. Note that the CLIPort baselines are solitary methods that do not use a planner, so the failures are solely composed of policy failures. As shown in Figure 6, while all planning-based methods use the same underlying low-level policy, Grounded Decoding significantly reduces planning failure by being able to incorporate grounded scene information into the decoding process. Moreover, we observe that despite the shared affordance function across beam and greedy search, the beam search variant performs stronger by being aware of the full-length single-step instructions during decoding.
181
+
182
+ # 5.3 Grounded Action Manifold
183
+
184
+ A central goal of this work is to investigate the integration of grounded information into language model decoding to output instructions actionable by a policy. To investigate this, we use a t-SNE [80] plot to illustrate the extent to which grounded models help narrow down the search space for language models. Specifically, we first enumerate all meaningful instructions in the tabletop domain, such as “pick x and place it on y,” which are represented as dots in the figure. We then compute the affordance values with respect to four different scenes, where each color represents one scene. Finally, we group the dots using t-SNE and BERT embeddings [13]. Figure 7 shows that grounded models can effectively identify achievable skills to produce an actionable manifold within the language space and that this grounding is required, as language alone does not perfectly group actionable skills. It is worth noting that while we provide manual enumeration of all possible skills for practical analysis, the full language space is much larger. This highlights the even more pronounced narrowing of the search in the language space.
185
+
186
+ ![](images/e78baaf4be0d137b1420c9ad6910d91ec93fb1056194220e0f7981d23f4b2c3c.jpg)
187
+ Figure 6: Failure breakdown on tabletop domain. GD achieves lowest planning failure among planning-based methods, among which beam search variant performs the best.
188
+
189
+ ![](images/069caa95eae39662255c8967f618b2d27da9aaa176566a9d4fac4599115206ad.jpg)
190
+ Figure 7: Visualization of actions colored by affordance values in different scenes. Every dot represents a possible action in the tabletop domain, where the majority of the actions are infeasible. We show how grounded models can identify the feasible actions for specific scenes. Notably, these actions are not always clustered in language space, requiring the grounding function to determine what action to perform.
191
+
192
+ # 6 Conclusions, Limitations, & Future Works
193
+
194
+ We presented Grounded Decoding (GD), an approach for leveraging the knowledge and capabilities of large language models in embodied settings through grounding functions, which model the probabilities of tokens given an embodiment. GD resembles probabilistic filtering, by decoding tokens that have high probabilities under the language model and under grounded model(s). By guiding the LLM’s decoding directly at its output, GD is a general, flexible, and expressive approach to embodied tasks. This is demonstrated on three embodied domains, showing GD is capable of solving complex, long-horizon tasks.
195
+
196
+ Though quite general and flexible, GD has a few limitations. First, although we present several techniques for obtaining grounding functions in different domains, it remains a question whether a capable and general grounding function can be obtained. We hope that recent progress in largescale robotics models (e.g. [7] and [59]) can remove this bottleneck, and note that the flexibility of GD allows such progress to be straightforwardly leveraged. Second, prompt engineering is often required to steer LLMs to the desired action space (e.g., likely action verbs, likely present objects). Finally, while not requiring additional training, the joint decoding may be limiting compared to a single model capable of both grounding and language reasoning [3, 9, 16].
197
+
198
+ This work presented a family of algorithms for grounding LLMs in embodiment, for which there are many avenues for future work. The flexibility of the approach enables many other grounding functions and ways to integrate grounding. Furthermore, the development and integration of a foundation model for grounding would improve performance significantly. Finally, though GD’s probabilistic filtering-based approach is quite general, fusing grounding information to the language model after each token decoding may be limiting and future works can investigate how such grounding can be elegantly integrated during decoding.
199
+
200
+ # Acknowledgments
201
+
202
+ The authors would like to acknowledge Pierre Sermanet, Carolina Parada, Jie Tan, Yevgen Chebotar, Vincent Vanhoucke, and Dorsa Sadigh for their feedback and contributions. This work is supported in part by OpenAI academic access program, granted to Wenlong Huang.
203
+
204
+ References [1] Christopher Agia, Toki Migimatsu, Jiajun Wu, and Jeannette Bohg. Stap: Sequencing taskagnostic policies. arXiv preprint arXiv:2210.12250, 2022.
205
+ [2] Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, and Mengyuan Yan. Do as i can and not as i say: Grounding language in robotic affordances. In arXiv preprint arXiv:2204.01691, 2022.
206
+ [3] Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. arXiv preprint arXiv:2204.14198, 2022.
207
+ [4] Ashutosh Baheti, Alan Ritter, Jiwei Li, and Bill Dolan. Generating more interesting responses in neural conversation models with distributional constraints. arXiv preprint arXiv:1809.01215, 2018.
208
+ [5] Andrew G. Barto and Sridhar Mahadevan. Recent advances in hierarchical reinforcement learning. Discrete Event Dynamic Systems, 13(1–2):41–77, jan 2003. [6] Sourya Basu, Govardana Sachitanandam Ramachandran, Nitish Shirish Keskar, and Lav R Varshney. Mirostat: A neural text decoding algorithm that directly controls perplexity. arXiv preprint arXiv:2007.14966, 2020.
209
+ [7] Anthony Brohan, Noah Brown, Justice Carbajal, Yevgen Chebotar, Joseph Dabis, Chelsea Finn, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Jasmine Hsu, et al. Rt-1: Robotics transformer for real-world control at scale. arXiv preprint arXiv:2212.06817, 2022.
210
+ [8] Boyuan Chen, Fei Xia, Brian Ichter, Kanishka Rao, Keerthana Gopalakrishnan, Michael S Ryoo, Austin Stone, and Daniel Kappler. Open-vocabulary queryable scene representations for real world planning. arXiv preprint arXiv:2209.09874, 2022.
211
+ [9] Xi Chen, Xiao Wang, Soravit Changpinyo, AJ Piergiovanni, Piotr Padlewski, Daniel Salz, Sebastian Goodman, Adam Grycner, Basil Mustafa, Lucas Beyer, et al. Pali: A jointly-scaled multilingual language-image model. arXiv preprint arXiv:2209.06794, 2022.
212
+ [10] Maxime Chevalier-Boisvert, Lucas Willems, and Suman Pal. Minimalistic gridworld environment for gymnasium, 2018.
213
+ [11] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
214
+ [12] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. Plug and play language models: A simple approach to controlled text generation. arXiv preprint arXiv:1912.02164, 2019.
215
+ [13] 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.
216
+ [14] Yan Ding, Xiaohan Zhang, Chris Paxton, and Shiqi Zhang. Task and motion planning with large language models for object rearrangement. arXiv preprint arXiv:2303.06247, 2023.
217
+ [15] Danny Driess, Ozgur Oguz, Jung-Su Ha, and Marc Toussaint. Deep visual heuristics: Learning feasibility of mixed-integer programs for manipulation planning. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 9563–9569. IEEE, 2020.
218
+ [16] Danny Driess, Fei Xia, Mehdi SM Sajjadi, Corey Lynch, Aakanksha Chowdhery, Brian Ichter, Ayzaan Wahid, Jonathan Tompson, Quan Vuong, Tianhe Yu, et al. Palm-e: An embodied multimodal language model. arXiv preprint arXiv:2303.03378, 2023.
219
+ [17] Ben Eysenbach, Russ R Salakhutdinov, and Sergey Levine. Search on the replay buffer: Bridging planning and reinforcement learning. Advances in Neural Information Processing Systems, 2019.
220
+ [18] Angela Fan, Mike Lewis, and Yann Dauphin. Hierarchical neural story generation. arXiv preprint arXiv:1805.04833, 2018.
221
+ [19] Richard E Fikes and Nils J Nilsson. Strips: A new approach to the application of theorem proving to problem solving. Artificial intelligence, 1971.
222
+ [20] Caelan Reed Garrett, Chris Paxton, Tomas Lozano-P ´ erez, Leslie Pack Kaelbling, and Dieter ´ Fox. Online replanning in belief space for partially observable task and motion problems. In 2020 IEEE International Conference on Robotics and Automation (ICRA), 2020.
223
+ [21] Marjan Ghazvininejad, Xing Shi, Jay Priyadarshi, and Kevin Knight. Hafez: an interactive poetry generation system. In Proceedings of ACL 2017, System Demonstrations, pages 43–48, 2017.
224
+ [22] Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921, 2021.
225
+ [23] Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, and Ece Kamar. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. arXiv preprint arXiv:2203.09509, 2022.
226
+ [24] Felix Hill, Sona Mokra, Nathaniel Wong, and Tim Harley. Human instruction-following with deep reinforcement learning via transfer-learning from text. arXiv preprint arXiv:2005.09382, 2020.
227
+ [25] Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019.
228
+ [26] Ari Holtzman, Jan Buys, Maxwell Forbes, Antoine Bosselut, David Golub, and Yejin Choi. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018.
229
+ [27] Chenguang Huang, Oier Mees, Andy Zeng, and Wolfram Burgard. Visual language maps for robot navigation. arXiv preprint arXiv:2210.05714, 2022.
230
+ [28] De-An Huang, Suraj Nair, Danfei Xu, Yuke Zhu, Animesh Garg, Li Fei-Fei, Silvio Savarese, and Juan Carlos Niebles. Neural task graphs: Generalizing to unseen tasks from a single video demonstration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019.
231
+ [29] Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. In International Conference on Machine Learning. PMLR, 2022.
232
+ [30] Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen Chebotar, Pierre Sermanet, Noah Brown, Tomas Jackson, Linda Luu, Sergey Levine, Karol Hausman, and Brian Ichter. Inner monologue: Embodied reasoning through planning with language models. In arXiv preprint arXiv:2207.05608, 2022.
233
+ [31] Brian Ichter, Pierre Sermanet, and Corey Lynch. Broadly-exploring, local-policy trees for long-horizon task planning. Conference on Robot Learning (CoRL), 2021.
234
+ [32] Eric Jang, Alex Irpan, Mohi Khansari, Daniel Kappler, Frederik Ebert, Corey Lynch, Sergey Levine, and Chelsea Finn. Bc-z: Zero-shot task generalization with robotic imitation learning. In Conference on Robot Learning, pages 991–1002. PMLR, 2021.
235
+ [33] Leslie Pack Kaelbling and Tomas Lozano-P ´ erez. Hierarchical planning in the now. In ´ Workshops at the Twenty-Fourth AAAI Conference on Artificial Intelligence, 2010.
236
+ [34] Aishwarya Kamath, Mannat Singh, Yann LeCun, Gabriel Synnaeve, Ishan Misra, and Nicolas 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.
237
+ [35] Jungo Kasai, Keisuke Sakaguchi, Ronan Le Bras, Dragomir Radev, Yejin Choi, and Noah A Smith. Beam decoding with controlled patience. arXiv preprint arXiv:2204.05424, 2022.
238
+ [36] Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019.
239
+ [37] Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. Gedi: Generative discriminator guided sequence generation. arXiv preprint arXiv:2009.06367, 2020.
240
+ [38] Remi Leblond, Jean-Baptiste Alayrac, Laurent Sifre, Miruna Pislar, Jean-Baptiste Lespiau, ´ Ioannis Antonoglou, Karen Simonyan, and Oriol Vinyals. Machine translation decoding beyond beam search. arXiv preprint arXiv:2104.05336, 2021.
241
+ [39] Jiwei Li, Will Monroe, and Dan Jurafsky. Learning to decode for future success. arXiv preprint arXiv:1701.06549, 2017.
242
+ [40] Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019.
243
+ [41] Shuang Li, Xavier Puig, Yilun Du, Clinton Wang, Ekin Akyurek, Antonio Torralba, Jacob Andreas, and Igor Mordatch. Pre-trained language models for interactive decision-making. arXiv preprint arXiv:2202.01771, 2022.
244
+ [42] Jacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, and Andy Zeng. Code as policies: Language model programs for embodied control. arXiv preprint arXiv:2209.07753, 2022.
245
+ [43] Kevin Lin, Christopher Agia, Toki Migimatsu, Marco Pavone, and Jeannette Bohg. Text2motion: From natural language instructions to feasible plans. arXiv preprint arXiv:2303.12153, 2023.
246
+ [44] Bo Liu, Yuqian Jiang, Xiaohan Zhang, Qiang Liu, Shiqi Zhang, Joydeep Biswas, and Peter Stone. Llm+ p: Empowering large language models with optimal planning proficiency. arXiv preprint arXiv:2304.11477, 2023.
247
+ [45] Yujie Lu, Pan Lu, Zhiyu Chen, Wanrong Zhu, Xin Eric Wang, and William Yang Wang. Multimodal procedural planning via dual text-image prompting. arXiv preprint arXiv:2305.01795, 2023.
248
+ [46] Corey Lynch and Pierre Sermanet. Grounding language in play. 2020.
249
+ [47] Oier Mees, Jessica Borja-Diaz, and Wolfram Burgard. Grounding language with visual affordances over unstructured data. arXiv preprint arXiv:2210.01911, 2022.
250
+ [48] Clara Meister, Tiago Pimentel, Gian Wiher, and Ryan Cotterell. Typical decoding for natural language generation. arXiv preprint arXiv:2202.00666, 2022.
251
+ [49] Clara Meister, Tim Vieira, and Ryan Cotterell. If beam search is the answer, what was the question? arXiv preprint arXiv:2010.02650, 2020.
252
+ [50] Matthias Minderer, Alexey Gritsenko, Austin Stone, Maxim Neumann, Dirk Weissenborn, Alexey Dosovitskiy, Aravindh Mahendran, Anurag Arnab, Mostafa Dehghani, Zhuoran Shen, et al. Simple open-vocabulary object detection with vision transformers. arXiv preprint arXiv:2205.06230, 2022.
253
+
254
+ [51] Ashvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Advances in Neural Information Processing Systems, 2018.
255
+
256
+ [52] Suraj Nair, Eric Mitchell, Kevin Chen, Brian Ichter, Silvio Savarese, and Chelsea Finn. Learning language-conditioned robot behavior from offline data and crowd-sourced annotation. In Conference on Robot Learning, pages 1303–1315. PMLR, 2021.
257
+
258
+ [53] OpenAI. Gpt-4 technical report. arXiv, 2023.
259
+
260
+ [54] Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. arXiv preprint arXiv:2203.02155, 2022.
261
+
262
+ [55] Alexander Pashevich, Cordelia Schmid, and Chen Sun. Episodic transformer for vision-andlanguage navigation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021.
263
+
264
+ [56] Dhruvesh Patel, Hamid Eghbalzadeh, Nitin Kamra, Michael Louis Iuzzolino, Unnat Jain, and Ruta Desai. Pretrained language models as visual planners for human assistance. arXiv preprint arXiv:2304.09179, 2023.
265
+
266
+ [57] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748–8763. PMLR, 18–24 Jul 2021.
267
+
268
+ [58] Shreyas Sundara Raman, Vanya Cohen, Eric Rosen, Ifrah Idrees, David Paulius, and Stefanie Tellex. Planning with large language models via corrective re-prompting. arXiv preprint arXiv:2211.09935, 2022.
269
+
270
+ [59] Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, et al. A generalist agent. arXiv preprint arXiv:2205.06175, 2022.
271
+
272
+ [60] Machel Reid, Yutaro Yamada, and Shixiang Shane Gu. Can wikipedia help offline reinforcement learning. arXiv preprint arXiv:2201.12122, 2022.
273
+
274
+ [61] Nikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. arXiv preprint arXiv:1803.00653, 2018.
275
+
276
+ [62] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
277
+
278
+ [63] Thomas Scialom, Paul-Alexis Dray, Sylvain Lamprier, Benjamin Piwowarski, and Jacopo Staiano. Discriminative adversarial search for abstractive summarization. In International Conference on Machine Learning, pages 8555–8564. PMLR, 2020.
279
+
280
+ [64] Dhruv Shah, Blazej Osinski, Brian Ichter, and Sergey Levine. Lm-nav: Robotic navigation with large pre-trained models of language, vision, and action. arXiv preprint arXiv:2207.04429, 2022.
281
+
282
+ [65] Dhruv Shah, Peng Xu, Yao Lu, Ted Xiao, Alexander Toshev, Sergey Levine, and Brian Ichter. Value function spaces: Skill-centric state abstractions for long-horizon reasoning. ICLR, 2022.
283
+
284
+ [66] Pratyusha Sharma, Antonio Torralba, and Jacob Andreas. Skill induction and planning with latent language. arXiv preprint arXiv:2110.01517, 2021.
285
+
286
+ [67] Mohit Shridhar, Lucas Manuelli, and Dieter Fox. Cliport: What and where pathways for robotic manipulation. In Conference on Robot Learning, pages 894–906. PMLR, 2022.
287
+
288
+ [68] Mohit Shridhar, Lucas Manuelli, and Dieter Fox. Perceiver-actor: A multi-task transformer for robotic manipulation. In Proceedings of the 6th Conference on Robot Learning (CoRL), 2022.
289
+
290
+ [69] Tom Silver, Rohan Chitnis, Nishanth Kumar, Willie McClinton, Tomas Lozano-Perez, Leslie Pack Kaelbling, and Joshua Tenenbaum. Inventing relational state and action abstractions for effective and efficient bilevel planning. arXiv preprint arXiv:2203.09634, 2022.
291
+ [70] Ishika Singh, Valts Blukis, Arsalan Mousavian, Ankit Goyal, Danfei Xu, Jonathan Tremblay, Dieter Fox, Jesse Thomason, and Animesh Garg. Progprompt: Generating situated robot task plans using large language models. arXiv preprint arXiv:2209.11302, 2022.
292
+ [71] Charlie Snell, Ilya Kostrikov, Yi Su, Mengjiao Yang, and Sergey Levine. Offline rl for natural language generation with implicit language q learning. arXiv preprint arXiv:2206.11871, 2022.
293
+ [72] Charlie Snell, Sherry Yang, Justin Fu, Yi Su, and Sergey Levine. Context-aware language modeling for goal-oriented dialogue systems. arXiv preprint arXiv:2204.10198, 2022.
294
+ [73] Chan Hee Song, Jiaman Wu, Clayton Washington, Brian M Sadler, Wei-Lun Chao, and Yu Su. Llm-planner: Few-shot grounded planning for embodied agents with large language models. arXiv preprint arXiv:2212.04088, 2022.
295
+ [74] Yixuan Su, Tian Lan, Yahui Liu, Fangyu Liu, Dani Yogatama, Yan Wang, Lingpeng Kong, and Nigel Collier. Language models can see: plugging visual controls in text generation. arXiv preprint arXiv:2205.02655, 2022.
296
+ [75] Alessandro Suglia, Qiaozi Gao, Jesse Thomason, Govind Thattai, and Gaurav Sukhatme. Embodied bert: A transformer model for embodied, language-guided visual task completion. arXiv preprint arXiv:2108.04927, 2021.
297
+ [76] Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. Videobert: A joint model for video and language representation learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019.
298
+ [77] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. Advances in neural information processing systems, 27, 2014.
299
+ [78] Yoad Tewel, Yoav Shalev, Idan Schwartz, and Lior Wolf. Zero-shot image-to-text generation for visual-semantic arithmetic. arXiv preprint arXiv:2111.14447, 2021.
300
+ [79] Marc Toussaint. Logic-geometric programming: An optimization-based approach to combined task and motion planning. In Twenty-Fourth International Joint Conference on Artificial Intelligence, 2015.
301
+ [80] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008.
302
+ [81] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
303
+ [82] Sai Vemprala, Rogerio Bonatti, Arthur Bucker, and Ashish Kapoor. Chatgpt for robotics: Design principles and model abilities. 2023, 2023.
304
+ [83] Siddharth Verma, Justin Fu, Mengjiao Yang, and Sergey Levine. Chai: A chatbot ai for taskoriented dialogue with offline reinforcement learning. arXiv preprint arXiv:2204.08426, 2022.
305
+ [84] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022.
306
+ [85] Sean Welleck, Ilia Kulikov, Jaedeok Kim, Richard Yuanzhe Pang, and Kyunghyun Cho. Consistency of a recurrent language model with respect to incomplete decoding. arXiv preprint arXiv:2002.02492, 2020.
307
+ [86] Bohan Wu, Suraj Nair, Li Fei-Fei, and Chelsea Finn. Example-driven model-based reinforcement learning for solving long-horizon visuomotor tasks. arXiv preprint arXiv:2109.10312, 2021.
308
+ [87] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
309
+ [88] Fei Xia, Chengshu Li, Roberto Mart´ın-Mart´ın, Or Litany, Alexander Toshev, and Silvio Savarese. Relmogen: Integrating motion generation in reinforcement learning for mobile manipulation. In 2021 IEEE International Conference on Robotics and Automation (ICRA), 2021.
310
+ [89] Yaqi Xie, Chen Yu, Tongyao Zhu, Jinbin Bai, Ze Gong, and Harold Soh. Translating natural language to planning goals with large-language models. arXiv preprint arXiv:2302.05128, 2023.
311
+ [90] Danfei Xu, Ajay Mandlekar, Roberto Mart´ın-Mart´ın, Yuke Zhu, Silvio Savarese, and Li FeiFei. Deep affordance foresight: Planning through what can be done in the future. In 2021 IEEE International Conference on Robotics and Automation (ICRA), pages 6206–6213. IEEE, 2021.
312
+ [91] Danfei Xu, Suraj Nair, Yuke Zhu, Julian Gao, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Neural task programming: Learning to generalize across hierarchical tasks. In 2018 IEEE International Conference on Robotics and Automation (ICRA), 2018.
313
+ [92] Kevin Yang and Dan Klein. Fudge: Controlled text generation with future discriminators. arXiv preprint arXiv:2104.05218, 2021.
314
+ [93] Haoqi Yuan, Chi Zhang, Hongcheng Wang, Feiyang Xie, Penglin Cai, Hao Dong, and Zongqing Lu. Plan4mc: Skill reinforcement learning and planning for open-world minecraft tasks. arXiv preprint arXiv:2303.16563, 2023.
315
+ [94] Rowan Zellers, Ximing Lu, Jack Hessel, Youngjae Yu, Jae Sung Park, Jize Cao, Ali Farhadi, and Yejin Choi. Merlot: Multimodal neural script knowledge models. Advances in Neural Information Processing Systems, 2021.
316
+ [95] Andy Zeng, Pete Florence, Jonathan Tompson, Stefan Welker, Jonathan Chien, Maria Attarian, Travis Armstrong, Ivan Krasin, Dan Duong, Vikas Sindhwani, and Johnny Lee. Transporter networks: Rearranging the visual world for robotic manipulation. Conference on Robot Learning (CoRL), 2020.
317
+ [96] Andy Zeng, Adrian Wong, Stefan Welker, Krzysztof Choromanski, Federico Tombari, Aveek Purohit, Michael Ryoo, Vikas Sindhwani, Johnny Lee, Vincent Vanhoucke, et al. Socratic models: Composing zero-shot multimodal reasoning with language. arXiv preprint arXiv:2204.00598, 2022.
318
+
319
+ # A Appendix
320
+
321
+ # A.1 Grounded Decoding Implementation Details
322
+
323
+ We study three different implementations of Grounded Decoding for each of the experimental domains. While each instantiation applied Grounded Decoding to long-horizon planning and behavior synthesis, different components including language models and grounded models are used in each domain, as seen in Table 5. Grounded models used in these domains include Affordance Functions (AF), Safety Functions (S), Preference Functions (P), and Open-Vocabulary Object Detectors (D).
324
+
325
+ <table><tr><td></td><td>Tabletop Rearrangement (Sim)</td><td>MiniGrid 2D Maze (Sim)</td><td>Kitchen Mobile Manipulation (Real)</td></tr><tr><td>LLM</td><td>InstructGPT [54]</td><td>InstructGPT</td><td>InstructGPT + PaLM[11]</td></tr><tr><td>Primitives</td><td>CLIPort [67]</td><td>PPO [62]</td><td>RT-1 [7]</td></tr><tr><td>Grounded Models</td><td>AF+S + P</td><td>AF</td><td>D</td></tr></table>
326
+
327
+ Table 5: Comparison between different versions of GD implemented in three different environments.
328
+
329
+ # A.2 Implementation Details of Simulated Tabletop Rearrangement
330
+
331
+ # A.2.1 Tasks
332
+
333
+ There are a total of 20 tasks (templates of language instructions), listed in Table 6, grouped into three task category: Letters, Blocks&Bowls, and Box Packing. Three categories share a total of 57 objects. For Letters category, the goals are to rearrange the alphabetical letter objects such that they satisfy certain orders specified by the language instructions. At the beginning of each episode, task-relevant objects and a set of 1 to 3 randomly-sampled distractor objects (except for the Letters category) are initialized at random positions on the tabletop with fixed orientations. A minimum $1 5 \mathrm { c m }$ distance is enforced between any two objects to avoid collision and penetration at initialization. To allow for automatic evaluations, a binary reward function is defined for each task using ground-truth state of the objects. Furthermore, we implement scripted policies for each task to collect demonstrations for training the CLIPort baseline. For certain tasks, we also randomize the attributes mentioned in the given instructions, which can be found below:
334
+
335
+ i. hwordi: hi, world, left, right, top, down, love, you ii. hcorner/sidei: left side, top left corner, top side, top right corner, bottom right corner, bottom side, bottom left corner
336
+
337
+ # A.2.2 Low-level Primitives
338
+
339
+ We use CLIPort [67] as the low-level primitive that can be invoked by the LLM planner, as it shows promising results of generalization across free-form language instructions. Additionally, since the policy predicts per-pixel affordance, it can be repurposed to serve as grounded models for planning for long-horizon tasks, which we leverage in this work. The single primitive policy is trained on 50,000 pre-collected demonstrations, across 10 training tasks, where each demonstration contains 1) language instruction of the format “pick up [x] and place it on [y]”, 2) top-down RGB-D observation of the current scene, 3) expert pick location expressed as pixel coordinates, and 4) expert place location expressed as pixel coordinates. The expert actions are obtained by accessing ground-truth object pose in the simulator. We further apply substring augmentation during training as we find it helps with performance on partial commands (see Section
340
+
341
+ # A.2.3 Language Model
342
+
343
+ We use InstructGPT [54] (text-davinci-002), accessed through OpenAI API.
344
+
345
+ # A.2.4 CLIPort Baseline
346
+
347
+ As CLIPort [67] already takes as input a natural language instruction and is capable of directly outputting robot actions, it bears the question whether we need a high-level planner for completing long-horizon tasks. To this end, we additionally train two variants of multi-task CLIPort policy on 10 of the total 20 tasks as baselines (see Table 6 for the train/test split). One variant, which we referred as “CLIPort (Short)”, is trained only on single-step pick-and-place instructions of the format “pick up [x] and place it on [y]” on the 10 training tasks. The decomposed pick-and-place instructions are obtained from scripted planners. At evaluation time, the policy is fed in only the high-level instructions without any planners. The other variant, which we referred as “CLIPort (Long)”, is trained on the high-level instructions from the 10 training tasks (without decomposition from scripted planners). Similarly, at evaluation time, it is fed in only the high-level instructions and evaluated on both seen and unseen instructions. Both variants are trained on 50,000 demonstrations, similar to the Grounded Decoding primitive. The goal of these baselines is to evaluate whether solitary language-conditioned policies can perform well on long-horizon tasks and generalize to new task instructions. Note that the CLIPort baselines are different from the primitive used in Grounded Decoding, although they share the same architecture.
348
+
349
+ # A.2.5 Full Experimental Results in Simulated Tabletop Domain
350
+
351
+ Below we show the full list of tasks and the full experimental results in the simulated tabletop domain. Each entry is the average success rate across 20 rollouts. The tasks with blue-colored background are seen tasks and the tasks with orange-colored background are the unseen tasks. Seen tasks may be used for training for supervised baselines (CLIPort) or may be used in the prompt for methods using language model planner. Note that for the “Box Packing” task category, although all tasks were seen in training or the prompts, we enforce additional safety and preference constraints for evaluation only at test time.
352
+
353
+ Table 6: Full Experimental Results in Simulated Tabletop Rearrangement Tasks. The tasks with blue-colored background are seen tasks and the tasks with orange-colored background are the unseen tasks. $\ast _ { \mathrm { B o X } }$ Packing tasks are all seen during training, but safety and preference requirements are only enforced during evaluation.
354
+
355
+ <table><tr><td rowspan="2"></td><td rowspan="2"></td><td colspan="2">CLIPort</td><td rowspan="2">+LLM</td><td colspan="2">+Grounded Decoding</td></tr><tr><td></td><td>Short Long</td><td>:Ungrounded Greedy</td><td>Beam</td></tr><tr><td>Letters</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Put the letters in alphabetical order from left to right</td><td>AF</td><td>5%</td><td>20%</td><td>10%</td><td>20%</td><td>40%</td></tr><tr><td>Spell as much of word as you can</td><td>AF</td><td>10%</td><td>60%</td><td>30%</td><td>60%</td><td>65%</td></tr><tr><td>Separate the vowels from the remaining letters to the bottom side</td><td>AF</td><td>5%</td><td>40%</td><td>20%</td><td>50%</td><td>65%</td></tr><tr><td>Put the leters in reverse alphabetical order from left to right</td><td>AF</td><td>15%</td><td>10%</td><td>15%</td><td>25%</td><td>25%</td></tr><tr><td>Correctly spell out a sport using the present letters</td><td>AF</td><td>10%</td><td>10%</td><td>5%</td><td>30%</td><td>30%</td></tr><tr><td>Sort the geometrically symmetrical leters to the bottom side</td><td>AF</td><td>5%</td><td>10%</td><td>15%</td><td>35%</td><td>50%</td></tr><tr><td>Separate the consonants from the remaining letters to the bottom side</td><td>AF</td><td>0%</td><td>0%</td><td>25%</td><td>25%</td><td>25%</td></tr><tr><td>Sortthe letters less than &quot;D&quot;according to ASCII to the bottom side</td><td>AF</td><td>0%</td><td>20%</td><td>35%</td><td>70%</td><td>75%</td></tr><tr><td>Blocks &amp; Bowls</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td> Stack all the blocks</td><td>AF</td><td>5%</td><td>90%</td><td>30%</td><td>75%</td><td>90%</td></tr><tr><td>Put all the blocks on the corner/side</td><td>AF</td><td>0%</td><td>65%</td><td>50%</td><td>45%</td><td>70%</td></tr><tr><td>Put all the blocks in the bowls with matching colors</td><td>AF</td><td>0%</td><td>30%</td><td>25%</td><td>60%</td><td>70%</td></tr><tr><td>Put the blocks in the bowls with mismatched colors</td><td>AF</td><td>25%</td><td>30%</td><td>45%</td><td>30%</td><td> 55%</td></tr><tr><td>Put all the blocks in different corners</td><td>AF</td><td>0%</td><td>5%</td><td>40%</td><td>50%</td><td>60%</td></tr><tr><td>Stack only the blocks of cool colors</td><td>AF</td><td>5%</td><td>5%</td><td>20%</td><td>70%</td><td>70%</td></tr><tr><td>Stack only the blocks of warm colors</td><td>AF</td><td>0%</td><td>10%</td><td>15%</td><td>45%</td><td>35%</td></tr><tr><td>Sort the primary color blocks to the left side</td><td>AF</td><td>0%</td><td>0%</td><td>20%</td><td>25%</td><td>30%</td></tr><tr><td> Box Packing*</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Pack the objects into the brown box</td><td>AF + S</td><td></td><td>20%40%</td><td>5%</td><td>100%</td><td>90%</td></tr><tr><td>Pack the objects into the boxes</td><td>AF + S</td><td></td><td>10%20%</td><td>5%</td><td>75%</td><td>70%</td></tr><tr><td>I&#x27;d like some snacks on the right side</td><td>AF + P</td><td></td><td>15%20%</td><td>15%</td><td>40%</td><td>55%</td></tr><tr><td>Pack me a picnic box</td><td>AF + S +P</td><td></td><td>15%30%</td><td>20%</td><td>100%</td><td>95%</td></tr></table>
356
+
357
+ # A.3 Implementation Details of Minigrid 2D Maze
358
+
359
+ # A.3.1 Environment Setup
360
+
361
+ We use the open-source gym-minigrid suite of environments to evaluate our method with one simple change — instead of the default observation space which is a $7 \times 7$ egocentric window, our agent has access to entire grid — that allows us to simplify the tasks by removing partial observability [65].
362
+
363
+ # A.3.2 Tasks
364
+
365
+ The tasks are grouped in three categories (please see Table 7 for example instructions):
366
+
367
+ 1. Easy: Simple tasks where the horizon is short (10-30 steps) and fully described by the textual instruction, e.g. OpenDoors and PutNext. The short horizon makes them relatively easy for a wide range of HRL algorithms. The instructions for these tasks generally spell out each individual skill, making them particularly easy for high-level planners based on language modeling.
368
+ 2. Medium: Combination of short and long horizon tasks (up to 80 steps) with step-by-step textual instructions, e.g. LockedRoom. While being significantly longer, these tasks also tend to have instructions that spell out the low-level tasks (see Table 7).
369
+ 3. Hard: Complex, long horizon instructions (over 100 steps) with short, ambiguous instructions that necessitate multi-step reasoning and efficient exploration, e.g. MultiRoom and BlockedUnlock. In addition to being long-horizon, the instructions in this case tend to be ambiguous and under-specified, e.g. ”traverse through the rooms to get to the goal”, which does not provide enough context for any blind planning agent.
370
+
371
+ Table 7: Example Instructions in Minigrid
372
+
373
+ <table><tr><td>Difficulty</td><td>Task Name</td><td>Example Instruction</td></tr><tr><td>Easy</td><td>OpenDoors PutNext</td><td>open door blue, then open door red move the red ball next to the green box</td></tr><tr><td>Medium</td><td>LockedRoom</td><td> get the red key from the purple room, open the red door and go to the goal</td></tr><tr><td>Hard</td><td>MultiRoom BlockedUnlock</td><td>traverse the rooms to get to the goal pick up the blue box</td></tr></table>
374
+
375
+ # A.3.3 Language Model
376
+
377
+ We use InstructGPT [54] (text-davinci-002), accessed through OpenAI API. The prompts used can be found in Section A.5.
378
+
379
+ We found the prompts to be generally sufficient for solving the “seen” tasks, as well as “unseen” tasks, i.e. tasks that do not have an example in the context. Empirically, we did not find any improvements by including more then 3 example tasks in the prompt — we hypothesize that this is likely due to the shared low-level primitives across tasks. For all Minigrid experiments presented in this paper, we used the prompt shown in Section A.5.
380
+
381
+ # A.3.4 Low-level Primitives
382
+
383
+ To train low-level primitives, we train an RL agent to solve a wide range of short-horizon subtasks (under 10 steps) that are shared across the various Minigrid tasks — go to $< \circ { \mathrm { b j } } >$ , pick up <obj>, drop <obj>, open <obj>. Rather than training individual skills for each of them [65], we train a single multi-task policy that is conditioned on the CLIP embeddings [57] of the task strings. This scheme allows some robustness to synonyms and ambiguous task specifications, and has been widely used in learning language-grounded policies [32, 68].
384
+
385
+ We train these primitives using PPO [62], as recommended by the environment developers [10]. Each of these skills are trained with a sparse outcome reward $^ { + 1 }$ if a trajectory is successful, 0 otherwise). In addition to these low-level skills, we perform a form of hindsight relabeling where “substrings“ of the task strings are masked to allow generalization to partial strings, e.g. “go to red” may be interpreted as “go to red key” or “go to red door”, and our masking strategy allows the multi-task policy to execute tasks specified by partially complete strings, if necessary.
386
+
387
+ ![](images/301680600e4fbc1c2e8b316a0ff516e53980d95ccffc8e560e9dbb87866d5e87.jpg)
388
+ A.3.5 Additional Qualitative Results
389
+ Figure 8: Minigrid Domain
390
+
391
+ # A.4 Implementation Details of Real-World Mobile Manipulation
392
+
393
+ A.4.1 Tasks
394
+ Table 8: List of unambiguous SayCan instructions
395
+
396
+ <table><tr><td>Instruction</td></tr><tr><td>put an energy bar and water bottle on the table bring me a lime soda and a bag of chips Can you throw away the apple and bring me a coke bring me a 7up can and a tea move an multigrain chips to the table and an apple to the far counter move the lime soda, the sponge,and the water bottle to the table</td></tr></table>
397
+
398
+ Table 9: List of ambiguous SayCan instructions
399
+
400
+ <table><tr><td>Instruction</td></tr><tr><td>I want to wipe some spill.</td></tr><tr><td>Bring me a fruit</td></tr><tr><td>Bring me a snack</td></tr><tr><td>Bring me a bag of chips</td></tr><tr><td>Bring me a bag of snack</td></tr><tr><td>Bring me a bag of chips and something to wipe a spill Bring me a bag of chips and something to drink</td></tr><tr><td>Bring me a bag of chips and a soda</td></tr><tr><td>Human: I want a soda that is not coke,and a fruit.</td></tr><tr><td>I want a fruit and a soda</td></tr></table>
401
+
402
+ # A.4.2 Language Model
403
+
404
+ For planning, we use PaLM [11], a 540B parameter language model trained on a large datasets that include high-quality web documents, books, Wikipedia, conversations, and GitHub code. Before planning, we use InstructGPT [54] (text-davinci-002), accessed through OpenAI API. to generate the (grounded) chain of thought.
405
+
406
+ We used square bracket to indicate grounded decoding, as illustrated in Fig. 5. The prompts are shown in Listing 3.
407
+
408
+ # A.4.3 Low-level Primitives
409
+
410
+ We use a combination of learned and scripted control policies for navigation and manipulation, following the implementation described in SayCan [2] and RT-1 [7]. The manipulation policies for the picking action are learned using Behavior Cloning (BC) on 68000 demonstrations and 12000 autonomous successes that were collected over the course of 11 months using a fleet of 10 robots. The demonstrations are collected by teleoperators using VR headset controllers to track the motion of their hand, which is then mapped onto the robot’s end-effector pose. The navigation policies are scripted, based on a ground-truth map as well as a learned perception module for collision avoidance and planning. The placing actions follow pre-computed motions only when preceded by a navigation policy. The Value Functions used by SayCan for affordance grounding are provided by the $Q$ -networks of trained RL agents; we follow the RL training setup described in [2].
411
+
412
+ # A.4.4 Open-Vocabulary Detector Grounding Function
413
+
414
+ We use owl-vit [50] as our grounding model. It takes in an image and a natural language query, and returns a list of bounding boxes with scores. We take the maximum score a the grounding function.
415
+
416
+ More examples of object detection as a grounding function can be found in Fig. 9.
417
+
418
+ ![](images/ca7088894b568194cb064e24310032d2b3e0159c5e2770130fc417ace28b0a8e.jpg)
419
+ Figure 9: Additional examples of using open-vocabulary object detection as a grounding function in Real-World Kitchen Mobile Manipulation Domain.
420
+
421
+ # A.5 Prompts
422
+
423
+ # Listing 1: Grounded Decoding Prompt in Simulated Tabletop Rearrangement Domain
424
+
425
+ Task: Pack all letter objects on the brown box Step 1: pick up the e and place it on the brown box Step 2: pick up the g and place it on the brown box Step 3: done
426
+
427
+ Task: Put the letters on the tables in alphabetical order Step 1: pick up the c and place it on the bottom left side Step 2: pick up the d and place it on the right of c Step 3: pick up the i and place it on the right of d Step 4: pick up the l and place it on the right of i Step 5: pick up the w and place it on the right of l Step 6: done
428
+
429
+ Task: Spell as much of "blue" as you can Step 1: pick up the l and place it on the bottom left side Step 2: pick up the the u and place it on the right of l Step 3: pick up the the e and place it on the right of u Step 4: done
430
+
431
+ Task: Separate the vowels from the remaining letters Step 1: pick up the i and place it on the bottom side Step 2: pick up the o and place it on the bottom side Step 3: done
432
+
433
+ Task: Stack all the blocks
434
+
435
+ Step 1: pick up the brown block and place it on the pink block Step 2: pick up the cyan block and place it on the brown block Step 3: pick up the orange block and place it on the cyan block Step 4: pick up the gray block and place it on the orange block Step 5: done
436
+
437
+ Task: Put all the blocks on the bottom left corner Step 1: pick up the white block and place it on the bottom left corner Step 2: pick up the yellow block and place it on the bottom left corner Step 3: pick up the green block and place it on the bottom left corner Step 4: pick up the blue block and place it on the bottom left corner Step 5: pick up the purple block and place it on the bottom left corner Step 6: done
438
+
439
+ Task: Put all the blocks in the bowls with matching colors Step 1: pick up the cyan block and place it on the cyan bowl Step 2: pick up the purple block and place it on the purple bowl Step 3: pick up the brown block and place it on the brown bowl Step 4: pick up the pink block and place it on the pink bowl Step 5: done
440
+
441
+ Task: Pack the items into any box
442
+ Step 1: pick up the donut stick and place it on the red box
443
+ Step 2: pick up the pepsi and place it on the brown box
444
+ Step 3: pick up the peach and place it on the brown box
445
+ Step 4: pick up the strawberry and place it on the red box
446
+ Step 5: done
447
+
448
+ Task: Pack the items on the table into the brown box Step 1: pick up the knife and place it on the brown box Step 2: pick up the plum and place it on the brown box Step 3: pick up the pepsi and place it on the brown box Step 4: pick up the cupcake and place it on the brown box Step 5: done
449
+
450
+ Task: Pack the items on the table into the brown box Step 1: pick up the i and place it on the brown box Step 2: pick up the green block and place it on the brown box Step 3: pick up the l and place it on the brown box Step 4: done
451
+
452
+ Task: Can you put some snacks on the right side for me? Step 1: pick up the plum and place it on the right side Step 2: done
453
+
454
+ Task: Can you pack my picnic box for me?
455
+
456
+ Step 1: pick up the orange and place it on the picnic box Step 2: pick up the diet pepsi and place it on the picnic box Step 3: pick up the knife and place it on the picnic box Step 4: done
457
+
458
+ # Listing 2: Grounded Decoding Prompt in MiniGrid 2D Maze Domain
459
+
460
+ You are a 2D maze-solving agent with access to a variety of low-level skills such as picking up or dropping objects, navigating to doors/keys/boxes, and opening/closing doors. Here are some example tasks:
461
+
462
+ Task: get the green key from the purple room, unlock the green door and go to the goal Step 1: go to the purple door and open it
463
+ Step 2: go to the green key
464
+ Step 3: pick up the key
465
+ Step 4: go to the green door and open it
466
+ Step 5: go to the goal.
467
+
468
+ Task: pick up the purple box Step 1: go to the green obstacle Step 2: pick up the obstacle Step 3: place the obstacle Step 4: go to the blue key Step 5: pick up the blue key Step 6: go to the blue door and open it Step 8: drop the blue key Step 7: go to the purple box Step 8: pick up the purple box.
469
+
470
+ Task: traverse the rooms to get to the goal Step 1: go to the purple door and open it Step 2: go to the green door and open it Step 3: go to the purple door and open it Step 4: go to the green door and open it Step 5: go to the green door and open it Step 6: go to the goal.
471
+
472
+ Now your turn.
473
+
474
+ # Listing 3: Grounded Decoding Prompt in Real-World Kitchen Mobile Manipulation Domain
475
+
476
+ The following objects are in the scene: 7up, apple, banana, mango, tea, multigrain chips, kettle chips, jalapeno chips, rice chips, coke, grapefruit soda, pepsi, redbull, energy bar, lime soda, sponge, paper towel, and water bottle.
477
+
478
+ The following locations are in the scene: close counter, far counter, table, trash, bowl.
479
+ The robot will always put object name in brackets []. Robot: I am a robot that can bring objects to you. Human: I am hungry.
480
+ Robot thought: I will find the [multigrain chips]. Robot plan: 1. Find the multigrain chips
481
+ 2. Pick up the multigrain chips
482
+ 3. Bring it to you
483
+ 4. Put it down
484
+ 5. Done Robot: I am a robot that can bring objects to you.
485
+ Human: Throw away the fruit.
486
+ Robot thought: I will find the [mango] and move it to the trash. Robot plan: 1. Find the mango
487
+ 2. Pick up the mango
488
+ 3. Go to the trash
489
+ 4. Put it down
490
+ 5. Done Robot: I am a robot that can bring objects to you. Human: (inject instruction).
491
+ Robot thought:
parse/dev/NiEtU7blzN/NiEtU7blzN_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/NiEtU7blzN/NiEtU7blzN_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/TIdIXIpzhoI/TIdIXIpzhoI.md ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PROGRESSIVE DISTILLATION FOR FAST SAMPLING OF DIFFUSION MODELS
2
+
3
+ Tim Salimans & Jonathan Ho Google Research, Brain team {salimans,jonathanho}@google.com
4
+
5
+ # ABSTRACT
6
+
7
+ Diffusion models have recently shown great promise for generative modeling, outperforming GANs on perceptual quality and autoregressive models at density estimation. A remaining downside is their slow sampling time: generating high quality samples takes many hundreds or thousands of model evaluations. Here we make two contributions to help eliminate this downside: First, we present new parameterizations of diffusion models that provide increased stability when using few sampling steps. Second, we present a method to distill a trained deterministic diffusion sampler, using many steps, into a new diffusion model that takes half as many sampling steps. We then keep progressively applying this distillation procedure to our model, halving the number of required sampling steps each time. On standard image generation benchmarks like CIFAR-10, ImageNet, and LSUN, we start out with state-of-the-art samplers taking as many as 8192 steps, and are able to distill down to models taking as few as 4 steps without losing much perceptual quality; achieving, for example, a FID of 3.0 on CIFAR-10 in 4 steps. Finally, we show that the full progressive distillation procedure does not take more time than it takes to train the original model, thus representing an efficient solution for generative modeling using diffusion at both train and test time.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Diffusion models (Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Ho et al., 2020) are an emerging class of generative models that has recently delivered impressive results on many standard generative modeling benchmarks. These models have achieved ImageNet generation results outperforming BigGAN-deep and VQ-VAE-2 in terms of FID score and classification accuracy score (Ho et al., 2021; Dhariwal & Nichol, 2021), and they have achieved likelihoods outperforming autoregressive image models (Kingma et al., 2021; Song et al., 2021b). They have also succeeded in image super-resolution (Saharia et al., 2021; Li et al., 2021) and image inpainting (Song et al., 2021c), and there have been promising results in shape generation (Cai et al., 2020), graph generation (Niu et al., 2020), and text generation (Hoogeboom et al., 2021; Austin et al., 2021).
12
+
13
+ A major barrier remains to practical adoption of diffusion models: sampling speed. While sampling can be accomplished in relatively few steps in strongly conditioned settings, such as text-tospeech (Chen et al., 2021) and image super-resolution (Saharia et al., 2021), or when guiding the sampler using an auxiliary classifier (Dhariwal & Nichol, 2021), the situation is substantially different in settings in which there is less conditioning information available. Examples of such settings are unconditional and standard class-conditional image generation, which currently require hundreds or thousands of steps using network evaluations that are not amenable to the caching optimizations of other types of generative models (Ramachandran et al., 2017).
14
+
15
+ In this paper, we reduce the sampling time of diffusion models by orders of magnitude in unconditional and class-conditional image generation, which represent the setting in which diffusion models have been slowest in previous work. We present a procedure to distill the behavior of a $N$ -step DDIM sampler (Song et al., 2021a) for a pretrained diffusion model into a new model with $N / 2$ steps, with little degradation in sample quality. In what we call progressive distillation, we repeat this distillation procedure to produce models that generate in as few as 4 steps, still maintaining sample quality competitive with state-of-the-art models using thousands of steps.
16
+
17
+ ![](images/4b13771c6ccaadae72cb320c80cfabfab9e7defc924ee44d5bd74db32bdbfef6.jpg)
18
+ Figure 1: A visualization of two iterations of our proposed progressive distillation algorithm. A sampler $f ( \mathbf { z } ; \boldsymbol { \eta } )$ , mapping random noise $\epsilon$ to samples $\mathbf { x }$ in 4 deterministic steps, is distilled into a new sampler $f ( \mathbf { z } ; \theta )$ taking only a single step. The original sampler is derived by approximately integrating the probability flow $O D E$ for a learned diffusion model, and distillation can thus be understood as learning to integrate in fewer steps, or amortizing this integration into the new sampler.
19
+
20
+ # 2 BACKGROUND ON DIFFUSION MODELS
21
+
22
+ We consider diffusion models (Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Ho et al., 2020) specified in continuous time (Tzen & Raginsky, 2019a; Song et al., 2021c; Chen et al., 2021; Kingma et al., 2021). We use $\mathbf { x } \sim p ( \mathbf { x } )$ to denote training data. A diffusion model has latent variables $\mathbf { z } = \{ \mathbf { z } _ { t } | t \in [ 0 , 1 ] \}$ and is specified by a noise schedule comprising differentiable functions $\alpha _ { t } , \sigma _ { t }$ such that $\lambda _ { t } = \log \bar { [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ] }$ , the log signal-to-noise-ratio, decreases monotonically with $t$ .
23
+
24
+ These ingredients define the forward process $q ( \mathbf { z } | \mathbf { x } )$ , a Gaussian process satisfying the following Markovian structure:
25
+
26
+ $$
27
+ \begin{array} { r } { q ( \mathbf { z } _ { t } | \mathbf { x } ) = \mathcal { N } ( \mathbf { z } _ { t } ; \alpha _ { t } \mathbf { x } , \sigma _ { t } ^ { 2 } \mathbf { I } ) , \quad q ( \mathbf { z } _ { t } | \mathbf { z } _ { s } ) = \mathcal { N } ( \mathbf { z } _ { t } ; ( \alpha _ { t } / \alpha _ { s } ) \mathbf { z } _ { s } , \sigma _ { t | s } ^ { 2 } \mathbf { I } ) } \end{array}
28
+ $$
29
+
30
+ where $0 \leq s < t \leq 1$ and $\sigma _ { t | s } ^ { 2 } = ( 1 - e ^ { \lambda _ { t } - \lambda _ { s } } ) \sigma _ { t } ^ { 2 }$
31
+
32
+ The role of function approximation in the diffusion model is to denoise ${ \mathbf z } _ { t } \sim q ( { \mathbf z } _ { t } | { \mathbf x } )$ into an estimate $\hat { \mathbf { x } } _ { \theta } ( { \mathbf z } _ { t } ) \approx { \mathbf x }$ (the function approximator also receives $\lambda _ { t }$ as an input, but we omit this to keep our notation clean). We train this denoising model $\hat { \mathbf { x } } _ { \theta }$ using a weighted mean squared error loss
33
+
34
+ $$
35
+ \mathbb { E } _ { \epsilon , t } \big [ w ( \lambda _ { t } ) \| \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) - \mathbf { x } \| _ { 2 } ^ { 2 } \big ]
36
+ $$
37
+
38
+ over uniformly sampled times $t \in [ 0 , 1 ]$ . This loss can be justified as a weighted variational lower bound on the data log likelihood under the diffusion model (Kingma et al., 2021) or as a form of denoising score matching (Vincent, 2011; Song & Ermon, 2019). We will discuss particular choices of weighting function $w ( \lambda _ { t } )$ later on.
39
+
40
+ Sampling from a trained model can be performed in several ways. The most straightforward way is discrete time ancestral sampling (Ho et al., 2020). To define this sampler, first note that the forward process can be described in reverse as $q ( \mathbf { z } _ { s } | \mathbf { z } _ { t } , \mathbf { x } ) = \mathcal { N } ( \mathbf { z } _ { s } ; \tilde { \mu } _ { s | t } ( \mathbf { z } _ { t } , \grave { \mathbf { x } } ) , \tilde { \sigma } _ { s | t } ^ { 2 } \mathbf { I } )$ (noting $s < t$ ), where
41
+
42
+ $$
43
+ \tilde { \mu } _ { s | t } ( \mathbf { z } _ { t } , \mathbf { x } ) = e ^ { \lambda _ { t } - \lambda _ { s } } ( \alpha _ { s } / \alpha _ { t } ) \mathbf { z } _ { t } + ( 1 - e ^ { \lambda _ { t } - \lambda _ { s } } ) \alpha _ { s } \mathbf { x } , \quad \tilde { \sigma } _ { s | t } ^ { 2 } = ( 1 - e ^ { \lambda _ { t } - \lambda _ { s } } ) \sigma _ { s } ^ { 2 }
44
+ $$
45
+
46
+ We use this reversed description of the forward process to define the ancestral sampler. Starting at $\mathbf { z } _ { 1 } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ , the ancestral sampler follows the rule
47
+
48
+ $$
49
+ \begin{array} { r l } & { \mathbf z _ { s } = \tilde { \mu } _ { s \mid t } ( \mathbf z _ { t } , \hat { \mathbf x } _ { \theta } ( \mathbf z _ { t } ) ) + \sqrt { ( \tilde { \sigma } _ { s \mid t } ^ { 2 } ) ^ { 1 - \gamma } ( \sigma _ { t \mid s } ^ { 2 } ) ^ { \gamma } ) } \epsilon } \\ & { \quad = e ^ { \lambda _ { t } - \lambda _ { s } } ( \alpha _ { s } / \alpha _ { t } ) \mathbf z _ { t } + ( 1 - e ^ { \lambda _ { t } - \lambda _ { s } } ) \alpha _ { s } \hat { \mathbf x } _ { \theta } ( \mathbf z _ { t } ) + \sqrt { ( \tilde { \sigma } _ { s \mid t } ^ { 2 } ) ^ { 1 - \gamma } ( \sigma _ { t \mid s } ^ { 2 } ) ^ { \gamma } ) } \epsilon , } \end{array}
50
+ $$
51
+
52
+ where $\epsilon$ is standard Gaussian noise, and $\gamma$ is a hyperparameter that controls how much noise is added during sampling, following Nichol $\&$ Dhariwal (2021).
53
+
54
+ Alternatively, Song et al. (2021c) show that our denoising model $\hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } )$ can be used to deterministically map noise ${ \bf z } _ { 1 } \sim \mathcal { N } ( { \bf 0 } , { \bf I } )$ to samples $\mathbf { x }$ by numerically solving the probability flow $O D E$ :
55
+
56
+ $$
57
+ d \mathbf { z } _ { t } = [ f ( \mathbf { z } _ { t } , t ) - \frac { 1 } { 2 } g ^ { 2 } ( t ) \nabla _ { z } \log \hat { p } _ { \boldsymbol { \theta } } ( \mathbf { z } _ { t } ) ] d t ,
58
+ $$
59
+
60
+ where $\begin{array} { r } { \nabla _ { z } \log \hat { p } _ { \boldsymbol { \theta } } ( \mathbf { z } _ { t } ) = \frac { \alpha _ { t } \hat { \mathbf { x } } _ { \boldsymbol { \theta } } ( \mathbf { z } _ { t } ) - \mathbf { z } _ { t } } { \sigma _ { t } ^ { 2 } } } \end{array}$ . Following Kingma et al. (2021), we have $\begin{array} { r } { f ( \mathbf { z } _ { t } , t ) = \frac { d \log \alpha _ { t } } { d t } \mathbf { z } _ { t } } \end{array}$ and g2(t) = dσ2tdt $\begin{array} { r } { g ^ { 2 } ( t ) = \frac { d \sigma _ { t } ^ { 2 } } { d t } - 2 \frac { d \log { \alpha _ { t } } } { d t } \sigma _ { t } ^ { 2 } } \end{array}$ . Since $\hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } )$ is parameterized by a neural network, this equation is a special case of a neural $O D E$ (Chen et al., 2018), also called a continuous normalizing flow (Grathwohl et al., 2018).
61
+
62
+ Solving the ODE in Equation 6 numerically can be done with standard methods like the Euler rule or the Runge-Kutta method. The DDIM sampler proposed by Song et al. (2021a) can also be understood as an integration rule for this ODE, as we show in Appendix B, even though it was originally proposed with a different motivation. The update rule specified by DDIM is
63
+
64
+ $$
65
+ \begin{array} { r l r } { { \mathbf { z } _ { s } = \alpha _ { s } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) + \sigma _ { s } \frac { \mathbf { z } _ { t } - \alpha _ { t } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) } { \sigma _ { t } } } } \\ & { } & { = e ^ { ( \lambda _ { t } - \lambda _ { s } ) / 2 } ( \alpha _ { s } / \alpha _ { t } ) \mathbf { z } _ { t } + ( 1 - e ^ { ( \lambda _ { t } - \lambda _ { s } ) / 2 } ) \alpha _ { s } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) , } \end{array}
66
+ $$
67
+
68
+ and in practice this rule performs better than the aforementioned standard ODE integration rules in our case, as we show in Appendix C.
69
+
70
+ If $\hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } )$ satisfies mild smoothness conditions, the error introduced by numerical integration of the probability flow ODE is guaranteed to vanish as the number of integration steps grows infinitely large, i.e. $N \infty$ . This leads to a trade-off in practice between the accuracy of the numerical integration, and hence the quality of the produced samples from our model, and the time needed to produce these samples. So far, most models in the literature have needed hundreds or thousands of integration steps to produce their highest quality samples, which is prohibitive for many practical applications of generative modeling. Here, we therefore propose a method to distill these accurate, but slow, ODE integrators into much faster models that are still very accurate. This idea is visualized in Figure 1, and described in detail in the next section.
71
+
72
+ # 3 PROGRESSIVE DISTILLATION
73
+
74
+ To make diffusion models more efficient at sampling time, we propose progressive distillation: an algorithm that iteratively halves the number of required sampling steps by distilling a slow teacher diffusion model into a faster student model. Our implementation of progressive distillation stays very close to the implementation for training the original diffusion model, as described by e.g. Ho et al. (2020). Algorithm 1 and Algorithm 2 present diffusion model training and progressive distillation side-by-side, with the relative changes in progressive distillation highlighted in green.
75
+
76
+ We start the progressive distillation procedure with a teacher diffusion model that is obtained by training in the standard way. At every iteration of progressive distillation, we then initialize the student model with a copy of the teacher, using both the same parameters and same model definition. Like in standard training, we then sample data from the training set and add noise to it, before forming the training loss by applying the student denoising model to this noisy data $\mathbf { z } _ { t }$ . The main difference in progressive distillation is in how we set the target for the denoising model: instead of the original data $\mathbf { x }$ , we have the student model denoise towards a target $\tilde { \mathbf { x } }$ that makes a single student DDIM step match 2 teacher DDIM steps. We calculate this target value by running 2 DDIM sampling steps using the teacher, starting from $\mathbf { z } _ { t }$ and ending at $\mathbf { z } _ { t - 1 / N }$ , with $N$ being the number of student sampling steps. By inverting a single step of DDIM, we then calculate the value the student model would need to predict in order to move from $\mathbf { z } _ { t }$ to $\mathbf { z } _ { t - 1 / N }$ in a single step, as we show in detail in Appendix G. The resulting target value $\tilde { \mathbf { x } } ( \mathbf { z } _ { t } )$ is fully determined given the teacher model and starting point $\mathbf { z } _ { t }$ , which allows the student model to make a sharp prediction when evaluated at $\mathbf { z } _ { t }$ . In contrast, the original data point $\mathbf { x }$ is not fully determined given $\mathbf { z } _ { t }$ , since multiple different data points $\mathbf { x }$ can produce the same noisy data $\mathbf { z } _ { t }$ : this means that the original denoising model is predicting a weighted average of possible x values, which produces a blurry prediction. By making sharper predictions, the student model can make faster progress during sampling.
77
+
78
+ After running distillation to learn a student model taking $N$ sampling steps, we can repeat the procedure with $\bar { N } / 2$ steps: The student model then becomes the new teacher, and a new student model is initialized by making a copy of this model.
79
+
80
+ Unlike our procedure for training the original model, we always run progressive distillation in discrete time: we sample this discrete time such that the highest time index corresponds to a signal-tonoise ratio of zero, i.e. $\alpha _ { 1 } = 0$ , which exactly matches the distribution of input noise $\mathbf { z } _ { 1 } \sim \bar { \mathcal { N } } ( \mathbf { 0 } , \mathbf { I } )$ that is used at test time. We found this to work slightly better than starting from a non-zero signalto-noise ratio as used by e.g. Ho et al. (2020), both for training the original model as well as when performing progressive distillation.
81
+
82
+ # Algorithm 1 Standard diffusion training
83
+
84
+ # Algorithm 2 Progressive distillation
85
+
86
+ Require: Model $\hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } )$ to be trained Require: Data set $\mathcal { D }$ Require: Loss weight function $w ( )$
87
+
88
+ $\mathbf { x } \sim \mathcal { D }$ $\triangleright$ Sample data $t \sim U [ 0 , 1 ]$ $\triangleright$ Sample time $\epsilon \sim \bar { N ( 0 , I ) }$ $\triangleright$ Sample noise ${ \bf z } _ { t } = \alpha _ { t } { \bf x } + \sigma _ { t } \epsilon$ . Add noise to data
89
+
90
+ Require: Trained teacher model $\hat { \mathbf { x } } _ { \eta } ( \mathbf { z } _ { t } )$
91
+ Require: Data set $\mathcal { D }$
92
+ Require: Loss weight function w()
93
+ Require: Student sampling steps $N$ for $K$ iterations do $\theta \eta$ $\triangleright$ Init student from teacher while not converged do $\begin{array} { l } { { \bf { x } } \sim { \mathcal { D } } } \\ { t = i / N , ~ i \sim C a t [ 1 , 2 , \dots , N ] } \\ { \epsilon \sim N ( 0 , I ) } \\ { { \bf { z } } _ { t } = \alpha _ { t } { \bf { x } } + \sigma _ { t } \epsilon } \end{array}$ # 2 steps of DDIM with teacher $\begin{array} { r l } & { t ^ { \prime } = t - 0 . 5 / N , \quad t ^ { \prime \prime } = t - 1 / N } \\ & { \mathbf { \tilde { z } } _ { t ^ { \prime } } = \alpha _ { t ^ { \prime } } \hat { \mathbf { x } } _ { \eta } ( \mathbf { z } _ { t } ) + \frac { \sigma _ { t ^ { \prime } } } { \sigma _ { t } } ( \mathbf { z } _ { t } - \alpha _ { t } \hat { \mathbf { x } } _ { \eta } ( \mathbf { z } _ { t } ) ) } \\ & { \mathbf { \tilde { z } } _ { t ^ { \prime \prime } } = \alpha _ { t ^ { \prime \prime } } \hat { \mathbf { x } } _ { \eta } ( \mathbf { z } _ { t ^ { \prime } } ) + \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t ^ { \prime \prime } } } ( \mathbf { z } _ { t ^ { \prime } } - \alpha _ { t ^ { \prime } } \hat { \mathbf { x } } _ { \eta } ( \mathbf { z } _ { t ^ { \prime } } ) ) } \\ & { \mathbf { \tilde { x } } = \frac { \mathbf { z } _ { t ^ { \prime \prime } } - ( \sigma _ { t ^ { \prime \prime } } / \sigma _ { t } ) \mathbf { z } _ { t } } { \alpha _ { t ^ { \prime \prime } } - ( \sigma _ { t ^ { \prime \prime } } / \sigma _ { t } ) \alpha _ { t } } \qquad \mathrm { ~ > ~ T e a c h e r ~ } \hat { \mathbf { x } } \mathrm { ~ t a r g e t } } \\ & { \lambda _ { t } = \mathrm { l o g } [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ] } \\ & { L _ { \theta } = w ( \lambda _ { t } ) | | \hat { \mathbf { x } } - \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) | | _ { 2 } ^ { 2 } } \\ & { \theta \gets \theta - \gamma \mathrm { v } _ { \theta } L _ { \theta } } \end{array}$ end while $\eta \theta$ . Student becomes next teacher $N \gets N / 2 \mathsf { \Omega } \triangleright \mathrm { H }$ alve number of sampling steps end for
94
+
95
+ $\tilde { \mathbf { x } } = \mathbf { x } \triangleright$ Clean data is target for xˆ $\lambda _ { t } = \log [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ]$ $\triangleright$ log-SNR $L _ { \theta } = w ( \lambda _ { t } ) \| \tilde { \mathbf { x } } - \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) \| _ { 2 } ^ { 2 }$ . Loss $\theta \theta - \gamma \nabla _ { \theta } L _ { \theta }$ $\triangleright$ Optimization end while
96
+
97
+ # 4 DIFFUSION MODEL PARAMETERIZATION AND TRAINING LOSS
98
+
99
+ In this section, we discuss how to parameterize the denoising model $\hat { \mathbf { x } } _ { \theta }$ , and how to specify the reconstruction loss weight $w ( \lambda _ { t } )$ . We assume a standard variance-preserving diffusion process for which $\sigma _ { t } ^ { 2 } = 1 - \alpha _ { t } ^ { 2 }$ . This is without loss of generalization, as shown by (Kingma et al., 2021, appendix G): different specifications of the diffusion process, such as the variance-exploding specification, can be considered equivalent to this specification, up to rescaling of the noisy latents $\mathbf { z } _ { t }$ . We use a cosine schedule $\alpha _ { t } = \cos ( 0 . 5 \pi t )$ , similar to that introduced by Nichol $\&$ Dhariwal (2021).
100
+
101
+ Ho et al. (2020) and much of the following work choose to parameterize the denoising model through directly predicting $\epsilon$ with a neural network $\hat { \epsilon } _ { \boldsymbol { \theta } } ( \mathbf { z } _ { t } )$ , which implicitly sets $\begin{array} { r } { \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) = \frac { 1 } { \alpha _ { t } } \bar { ( } \mathbf { z } _ { t } - \sigma _ { t } \hat { \epsilon } _ { \theta } ( \mathbf { z } _ { t } ) \bar { ) } } \end{array}$ . In this case, the training loss is also usually defined as mean squared error in the $\epsilon$ -space:
102
+
103
+ $$
104
+ L _ { \theta } = \| \epsilon - \hat { \epsilon } _ { \theta } ( \mathbf { z } _ { t } ) \| _ { 2 } ^ { 2 } = \left\| \frac { 1 } { \sigma _ { t } } ( \mathbf { z } _ { t } - \alpha _ { t } \mathbf { x } ) - \frac { 1 } { \sigma _ { t } } ( \mathbf { z } _ { t } - \alpha _ { t } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) ) \right\| _ { 2 } ^ { 2 } = \frac { \alpha _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \| \mathbf { x } - \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) \| _ { 2 } ^ { 2 } ,
105
+ $$
106
+
107
+ which can thus equivalently be seen as a weighted reconstruction loss in $\mathbf { x }$ -space, where the weighting function is given by $w ( \lambda _ { t } ) = \exp ( \lambda _ { t } )$ , for log signal-to-noise ratio $\lambda _ { t } = \log [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ]$ .
108
+
109
+ Although this standard specification works well for training the original model, it is not well suited for distillation: when training the original diffusion model, and at the start of progressive distillation, the model is evaluated at a wide range of signal-to-noise ratios $\alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 }$ , but as distillation progresses we increasingly evaluate at lower and lower signal-to-noise ratios. As the signal-to-noise ratio goes to zero, the effect of small changes in the neural network output $\hat { \epsilon } _ { \theta } ( { \bf z } _ { t } )$ on the implied prediction in $\mathbf { x }$ -space is increasingly amplified, since $\begin{array} { r } { \hat { \mathbf { x } } _ { \theta } \big ( \mathbf { z } _ { t } \big ) = \frac { 1 } { \alpha _ { t } } \big ( \mathbf { z } _ { t } - \sigma _ { t } \dot { \hat { \epsilon } } _ { \theta } \big ( \mathbf { z } _ { t } \big ) \big ) } \end{array}$ divides by $\alpha _ { t } 0$ . This is not much of a problem when taking many steps, since the effect of early missteps is limited by clipping of the $\mathbf { z } _ { t }$ iterates, and later updates can correct any mistakes, but it becomes increasingly important as we decrease the number of sampling steps. Eventually, if we distill all the way down to a single sampling step, the input to the model is only pure noise $\epsilon$ , which corresponds to a signal-to-noise ratio of zero, i.e. $\alpha _ { t } = 0 , \sigma _ { t } = 1$ . At this extreme, the link between $\epsilon$ -prediction and $\mathbf { x }$ -prediction breaks down completely: observed data $\mathbf { z } _ { t } = \epsilon$ is no longer informative of $\mathbf { x }$ and predictions $\hat { \epsilon } _ { \boldsymbol { \theta } } ( \mathbf { z } _ { t } )$ no longer implicitly predict $\mathbf { x }$ . Examining our reconstruction loss (equation 9), we see that the weighting function $w ( \lambda _ { t } )$ gives zero weight to the reconstruction loss at this signal-to-noise ratio.
110
+
111
+ For distillation to work, we thus need to parameterize the diffusion model in a way for which the implied prediction $\hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } )$ remains stable as $\lambda _ { t } = \log [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ]$ varies. We tried the following options, and found all to work well with progressive distillation:
112
+
113
+ • Predicting $\mathbf { x }$ directly. • Predicting both $\mathbf { x }$ and $\epsilon$ , via separate output channels $\{ \tilde { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) , \tilde { \epsilon } _ { \theta } ( \mathbf { z } _ { t } ) \}$ of the neural network, and then merging the predictions via $\hat { \mathbf { x } } = \sigma _ { t } ^ { 2 } \tilde { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) + \alpha _ { t } ( \mathbf { z } _ { t } - \sigma _ { t } \tilde { \epsilon } _ { \theta } ( \mathbf { z } _ { t } ) )$ , thus smoothly interpolating between predicting $\mathbf { x }$ directly and predicting via $\epsilon$ . • Predicting $\mathbf { v } \equiv \alpha _ { t } \epsilon - \sigma _ { t } \mathbf { x }$ , which gives $\hat { \mathbf { x } } = \alpha _ { t } \mathbf { z } _ { t } - \sigma _ { t } \hat { \mathbf { v } } _ { \theta } \big ( \mathbf { z } _ { t } \big )$ , as we show in Appendix D.
114
+
115
+ In Section 5.1 we test all three parameterizations on training an original diffusion model (no distillation), and find them to work well there also.
116
+
117
+ In addition to determining an appropriate parameterization, we also need to decide on a reconstruction loss weighting $w ( \lambda _ { t } )$ . The setup of Ho et al. (2020) weights the reconstruction loss by the signal-to-noise ratio, implicitly gives a weight of zero to data with zero SNR, and is therefore not a suitable choice for distillation. We consider two alternative training loss weightings:
118
+
119
+ $$
120
+ \begin{array} { r l } & { \bullet L _ { \theta } = \operatorname* { m a x } ( \| \mathbf { x } - \hat { \mathbf { x } } _ { t } \| _ { 2 } ^ { 2 } , \| \epsilon - \hat { \epsilon } _ { t } \| _ { 2 } ^ { 2 } ) = \operatorname* { m a x } ( \frac { \alpha _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } , 1 ) \| \mathbf { x } - \hat { \mathbf { x } } _ { t } \| _ { 2 } ^ { 2 } ; \mathfrak { t } } \\ & { \bullet L _ { \theta } = \| \mathbf { v } _ { t } - \hat { \mathbf { v } } _ { t } \| _ { 2 } ^ { 2 } = ( 1 + \frac { \alpha _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } ) \| \mathbf { x } - \hat { \mathbf { x } } _ { t } \| _ { 2 } ^ { 2 } ; \mathbf { \nabla } \mathrm { { S N R } } + 1 ^ { \prime } \mathrm { ~ w e i g h t i n g } } \end{array}
121
+ $$
122
+
123
+ We examine both choices in our ablation study in Section 5.1, and find both to be good choices for training diffusion models. In practice, the choice of loss weighting also has to take into account how $\alpha _ { t } , \sigma _ { t }$ are sampled during training, as this sampling distribution strongly determines the weight the expected loss gives to each signal-to-noise ratio. Our results are for a cosine schedule $\alpha _ { t } =$ $\cos ( 0 . 5 \pi t )$ , where time is sampled uniformly from [0, 1]. In Figure 2 we visualize the resulting loss weightings, both including and excluding the effect of the cosine schedule.
124
+
125
+ # 5 EXPERIMENTS
126
+
127
+ In this section we empirically validate the progressive distillation algorithm proposed in Section 3, as well as the parameterizations and loss weightings considered in Section 4. We consider various image generation benchmarks, with resolution varying from $3 2 \times 3 2$ to $1 2 8 \times 1 2 8$ . All experiments use the cosine schedule $\alpha _ { t } = \cos ( 0 . 5 \pi t )$ , and all models use a U-Net architecture similar to that introduced by Ho et al. (2020), but with BigGAN-style up- and downsampling (Brock et al., 2019), as used in the diffusion modeling setting by Nichol & Dhariwal (2021); Song et al. (2021c). Our training setup closely matches the open source code by Ho et al. (2020). Exact details are given in Appendix E.
128
+
129
+ # 5.1 MODEL PARAMETERIZATION AND TRAINING LOSS
130
+
131
+ As explained in Section 4, the standard method of having our model predict , and minimizing mean squared error in the $\epsilon$ -space (Ho et al., 2020), is not appropriate for use with progressive distillation.
132
+
133
+ ![](images/c4f8ad7753e82207e389a0e3e4a68071bdf0d89a05fcf89e908ae1934d2f46a4.jpg)
134
+ Figure 2: Left: Log weight assigned to reconstruction loss $\| \mathbf { x } - \hat { \mathbf { x } } _ { \lambda } \| _ { 2 } ^ { 2 }$ as a function of the log-SNR $\lambda \stackrel { } { = } \log [ \alpha ^ { 2 } / \sigma ^ { 2 } ]$ , for each of our considered training loss weightings, excluding the influence of the $\alpha _ { t } , \sigma _ { t }$ schedule. Right: Weights assigned to the reconstruction loss including the effect of the cosine schedule $\alpha _ { t } = \cos ( 0 . 5 \pi t )$ , with $t \stackrel { - } { \sim } U [ 0 , 1 ]$ . The weights are only defined up to a constant, and we have adjusted these constants to fit this graph.
135
+
136
+ <table><tr><td>Network Output</td><td>Loss Weighting</td><td>Stochastic sampler</td><td>DDIM sampler</td></tr><tr><td rowspan="3">(x,ε) combined</td><td>SNR</td><td>2.54/9.88</td><td>2.78/9.56</td></tr><tr><td>Truncated SNR</td><td>2.47/9.85</td><td>2.76/9.49</td></tr><tr><td>SNR+1</td><td>2.52/9.79</td><td>2.87/9.45</td></tr><tr><td rowspan="3">X</td><td>SNR</td><td>2.65/9.80</td><td>2.75/9.56</td></tr><tr><td>Truncated SNR</td><td>2.53/9.92</td><td>2.51/9.58</td></tr><tr><td>SNR+1</td><td>2.56/9.84</td><td>2.65/9.52</td></tr><tr><td rowspan="3">E</td><td>SNR</td><td>2.59/9.84</td><td>2.91/9.52</td></tr><tr><td>Truncated SNR</td><td>N/A</td><td>N/A</td></tr><tr><td>SNR+1</td><td>2.56/9.77</td><td>3.27/9.41</td></tr><tr><td rowspan="3">V</td><td>SNR</td><td>2.65/9.86</td><td>3.05/9.56</td></tr><tr><td>Truncated SNR</td><td>2.45/9.80</td><td>2.75/9.52</td></tr><tr><td>SNR+1</td><td>2.49/9.77</td><td>2.87/9.43</td></tr></table>
137
+
138
+ Table 1: Generated sample quality as measured by FID and Inception Score (FID/IS) on unconditional CIFAR-10, training the original model (no distillation), and comparing different parameterizations and loss weightings discussed in Section 4. All reported results are averages over 3 random seeds of the best metrics obtained over 2 million training steps; nevertheless we find results are still $\pm 0 . 1$ due to the noise inherent in training our models. Taking the neural network output to represent a prediction of $\epsilon$ in combination with the Truncated SNR loss weighting leads to divergence.
139
+
140
+ We therefore proposed various alternative parameterizations of the denoising diffusion model that are stable under the progressive distillation procedure, as well as various weighting functions for the reconstruction error in $\mathbf { x }$ -space. Here, we perform a complete ablation experiment of all parameterizations and loss weightings considered in Section 4. For computational efficiency, and for comparisons to established methods in the literature, we use unconditional CIFAR-10 as the benchmark. We measure performance of undistilled models trained from scratch, to avoid introducing too many factors of variation into our analysis.
141
+
142
+ Table 1 lists the results of the ablation study. Overall results are fairly close across different parameterizations and loss weights. All proposed stable model specifications achieve excellent performance, with the exception of the combination of outputting $\epsilon$ with the neural network and weighting the loss with the truncated SNR, which we find to be unstable. Both predicting $\mathbf { x }$ directly, as well as predicting $\mathbf { v }$ , or the combination $( \epsilon , \bf { x } )$ , could thus be recommended for specification of diffusion models. Here, predicting v is the most stable option, as it has the unique property of making DDIM step-sizes independent of the SNR (see Appendix D), but predicting $\mathbf { x }$ gives slightly better empirical results in this ablation study.
143
+
144
+ # 5.2 PROGRESSIVE DISTILLATION
145
+
146
+ We evaluate our proposed progressive distillation algorithm on 4 data sets: CIFAR-10, $6 4 \times 6 4$ downsampled ImageNet, $1 2 8 \times 1 2 8$ LSUN bedrooms, and $1 2 8 \times 1 2 8$ LSUN Church-Outdoor. For each data set we start by training a baseline model, after which we start the progressive distillation procedure. For CIFAR-10 we start progressive distillation from a teacher model taking 8192 steps. For the bigger data sets we start at 1024 steps. At every iteration of distillation we train for 50 thousand parameter updates, except for the distillation to 2 and 1 sampling steps, for which we use 100 thousand updates. We report FID results obtained after each iteration of the algorithm. Using these settings, the computational cost of progressive distillation to 4 sampling steps is comparable or less than for training the original model. In Appendix I we show that this computational cost can be reduce much further still, at a small cost in performance.
147
+
148
+ In Figure 4 we plot the resulting FID scores (Heusel et al., 2017) obtained for each number of sampling steps. We compare against the undistilled DDIM sampler, as well as to a highly optimized stochastic baseline sampler. For all four data sets, progressive distillation produces near optimal results up to 4 or 8 sampling steps. At 2 or 1 sampling steps, the sample quality degrades relatively more quickly. In contrast, the quality of the DDIM and stochastic samplers degrades very sharply after reducing the number of sampling steps below 128. Overall, we conclude that progressive distillation is thus an attractive solution for computational budgets that allow less than or equal to 128 sampling steps. Although our distillation procedure is designed for use with the DDIM sampler, the resulting distilled models can in principle also be used with stochastic sampling: we investigate this in Appendix F, and find that it achieves performance that falls in between the distilled DDIM sampler and the undistilled stochastic sampler.
149
+
150
+ Table 2 shows some of our results on CIFAR-10, and compares against other fast sampling methods in the literature: Our method compares favorably and attains higher sampling quality in fewer steps than most of the alternative methods. Figure 3 shows some random samples from our model obtained at different phases of the distillation process. Additional samples are provided in Appendix H.
151
+
152
+ ![](images/ec7e7bccc6f5084fca3cedf3062761bfe9deb3526437ce39335e6a9c68196f18.jpg)
153
+ Figure 3: Random samples from our distilled $6 4 \times 6 4$ ImageNet models, conditioned on the ‘malamute’ class, for fixed random seed and for varying number of sampling steps. The mapping from input noise to output image is well preserved as the number of sampling steps is reduced.
154
+
155
+ # 6 RELATED WORK ON FAST SAMPLING
156
+
157
+ Our proposed method is closest to the work of Luhman & Luhman (2021), who perform distillation of DDIM teacher models into one-step student models. A possible downside of their method is that it requires constructing a large data set by running the original model at its full number of sampling steps: their cost of distillation thus scales linearly with this number of steps, which can be prohibitive. In contrast, our method never needs to run the original model at the full number of sampling steps: at every iteration of progressive distillation, the number of model evaluations is independent of the number of teacher sampling steps, allowing our method to scale up to large numbers of teacher steps at a logarithmic cost in total distillation time.
158
+
159
+ ![](images/002d5d2e542bcdb563cc9e8b531a983549450ab7d1f1a3d1df8cb5f79414a4d8.jpg)
160
+ Figure 4: Sample quality results as measured by FID for our distilled model on unconditional CIFAR-10, class-conditional $6 4 \mathrm { x } 6 4$ ImageNet, $1 2 8 \mathrm { x } 1 2 8$ LSUN bedrooms, and $1 2 8 \mathrm { x } 1 2 8$ LSUN church-outdoor. We compare against the DDIM sampler and against an optimized stochastic sampler, each evaluated using the same models that were used to initialize the progressive distillation procedure. For CIFAR-10 we report an average over 4 random seeds. For the other data sets we only use a single run because of their computational demand. For the stochastic sampler we set the variance as a log-scale interpolation between an upper and lower bound on the variance, following Nichol & Dhariwal (2021), but we use a single interpolation coefficient rather than a learned coefficient. We then tune this interpolation coefficient separately for each number of sampling steps and report only the best result for that number of steps: this way we obtained better results than with the learned interpolation.
161
+
162
+ DDIM (Song et al., 2021a) was originally shown to be effective for few-step sampling, as was the probability flow sampler (Song et al., 2021c). Jolicoeur-Martineau et al. (2021) study fast SDE integrators for reverse diffusion processes, and Tzen & Raginsky (2019b) study unbiased samplers which may be useful for fast, high quality sampling as well.
163
+
164
+ Other work on fast sampling can be viewed as manual or automated methods to adjust samplers or diffusion processes for fast generation. Nichol & Dhariwal (2021); Kong & Ping (2021) describe methods to adjust a discrete time diffusion model trained on many timesteps into models that can sample in few timesteps. Watson et al. (2021) describe a dynamic programming algorithm to reduce the number of timesteps for a diffusion model in a way that is optimal for log likelihood. Chen et al. (2021); Saharia et al. (2021); Ho et al. (2021) train diffusion models over continuous noise levels and tune samplers post training by adjusting the noise levels of a few-step discrete time reverse diffusion process. Their method is effective in highly conditioned settings such as text-to-speech and image super-resolution. San-Roman et al. (2021) train a new network to estimate the noise level of noisy data and show how to use this estimate to speed up sampling.
165
+
166
+ Alternative specifications of the diffusion model can also lend themselves to fast sampling, such as modified forward and reverse processes (Nachmani et al., 2021; Lam et al., 2021) and training diffusion models in latent space (Vahdat et al., 2021).
167
+
168
+ Table 2: Comparison of fast sampling results on CIFAR-10 for diffusion models in the literature.
169
+
170
+ <table><tr><td>Method</td><td>Model evaluations</td><td>FID</td></tr><tr><td rowspan="3">Progressive Distillation (ours)</td><td>1</td><td>9.12</td></tr><tr><td>2</td><td>4.51</td></tr><tr><td>4</td><td>3.00</td></tr><tr><td>Knowledge distillation (Luhman &amp;Luhman,2021)</td><td>8 1</td><td>2.57 9.36</td></tr><tr><td>DDIM (Song et al.,2021a)</td><td>10</td><td>13.36</td></tr><tr><td rowspan="3"></td><td>20</td><td>6.84</td></tr><tr><td>50</td><td>4.67</td></tr><tr><td>100</td><td>4.16</td></tr><tr><td rowspan="4">Dynamic step-size extrapolation + VP-deep (Jolicoeur-Martineau et al.,2021)</td><td>48</td><td>82.42</td></tr><tr><td>151</td><td>2.73</td></tr><tr><td>180</td><td>2.44</td></tr><tr><td>274 330</td><td>2.60 2.56</td></tr><tr><td rowspan="4">FastDPM(Kong&amp; Ping,2021)</td><td>10</td><td>9.90</td></tr><tr><td>20</td><td>5.05</td></tr><tr><td>50</td><td>3.20</td></tr><tr><td>100</td><td>2.86</td></tr><tr><td>Improved DDPM respacing</td><td>25</td><td>7.53</td></tr><tr><td>(Nichol &amp; Dhariwal, 2021),our reimplementation</td><td>50</td><td>4.99</td></tr><tr><td>LSGM (Vahdat et al., 2021)</td><td>138</td><td>2.10</td></tr></table>
171
+
172
+ # 7 DISCUSSION
173
+
174
+ We have presented progressive distillation, a method to drastically reduce the number of sampling steps required for high quality generation of images, and potentially other data, using diffusion models with deterministic samplers like DDIM (Song et al., 2020). By making these models cheaper to run at test time, we hope to increase their usefulness for practical applications, for which running time and computational requirements often represent important constraints.
175
+
176
+ In the current work we limited ourselves to setups where the student model has the same architecture and number of parameters as the teacher model: in future work we hope to relax this constraint and explore settings where the student model is smaller, potentially enabling further gains in test time computational requirements. In addition, we hope to move past the generation of images and also explore progressive distillation of diffusion models for different data modalities such as e.g. audio (Chen et al., 2021).
177
+
178
+ In addition to the proposed distillation procedure, some of our progress was realized through different parameterizations of the diffusion model and its training loss. We expect to see more progress in this direction as the community further explores this model class.
179
+
180
+ # REPRODUCIBILITY STATEMENT
181
+
182
+ We provide full details on model architectures, training procedures, and hyperparameters in Appendix E, in addition to our discussion in Section 5. In Algorithm 2 we provide fairly detailed pseudocode that closely matches our actual implementation, which is available in open source at https: //github.com/google-research/google-research/tree/master/diffusion_distillation.
183
+
184
+ # ETHICS STATEMENT
185
+
186
+ In general, generative models can have unethical uses, such as fake content generation, and they can suffer from bias if applied to data sets that are not carefully curated. The focus of this paper specifically is on speeding up generative models at test time in order to reduce their computational demands; we do not have specific concerns with regards to this contribution.
187
+
188
+ # REFERENCES
189
+
190
+ Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. CoRR, abs/2107.03006, 2021.
191
+
192
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019.
193
+
194
+ Ruojin Cai, Guandao Yang, Hadar Averbuch-Elor, Zekun Hao, Serge Belongie, Noah Snavely, and Bharath Hariharan. Learning gradient fields for shape generation. arXiv preprint arXiv:2008.06520, 2020.
195
+
196
+ Nanxin Chen, Yu Zhang, Heiga Zen, Ron J Weiss, Mohammad Norouzi, and William Chan. WaveGrad: Estimating gradients for waveform generation. International Conference on Learning Representations, 2021.
197
+
198
+ Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In Advances in Neural Information Processing Systems, pp. 6571–6583, 2018.
199
+
200
+ Prafulla Dhariwal and Alex Nichol. Diffusion models beat GANs on image synthesis. arXiv preprint arXiv:2105.05233, 2021.
201
+
202
+ Will Grathwohl, Ricky TQ Chen, Jesse Bettencourt, Ilya Sutskever, and David Duvenaud. Ffjord: Free-form continuous dynamics for scalable reversible generative models. arXiv preprint arXiv:1810.01367, 2018.
203
+
204
+ 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 Advances in Neural Information Processing Systems, pp. 6626–6637, 2017.
205
+
206
+ Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, pp. 6840–6851, 2020.
207
+
208
+ Jonathan Ho, Chitwan Saharia, William Chan, David J Fleet, Mohammad Norouzi, and Tim Salimans. Cascaded diffusion models for high fidelity image generation. arXiv preprint arXiv:2106.15282, 2021.
209
+
210
+ Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Towards non-autoregressive language models. arXiv preprint arXiv:2102.05379, 2021.
211
+
212
+ Alexia Jolicoeur-Martineau, Ke Li, Rémi Piché-Taillefer, Tal Kachman, and Ioannis Mitliagkas. Gotta go fast when generating data with score-based models. arXiv preprint arXiv:2105.14080, 2021.
213
+
214
+ Diederik P Kingma, Tim Salimans, Ben Poole, and Jonathan Ho. Variational diffusion models. arXiv preprint arXiv:2107.00630, 2021.
215
+
216
+ Zhifeng Kong and Wei Ping. On fast sampling of diffusion probabilistic models. arXiv preprint arXiv:2106.00132, 2021.
217
+
218
+ Max WY Lam, Jun Wang, Rongjie Huang, Dan Su, and Dong Yu. Bilateral denoising diffusion models. arXiv preprint arXiv:2108.11514, 2021.
219
+
220
+ Haoying Li, Yifan Yang, Meng Chang, Huajun Feng, Zhihai Xu, Qi Li, and Yueting Chen. Srdiff: Single image super-resolution with diffusion probabilistic models. arXiv preprint arXiv:2104.14951, 2021.
221
+
222
+ Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
223
+
224
+ Eric Luhman and Troy Luhman. Knowledge distillation in iterative generative models for improved sampling speed. arXiv preprint arXiv:2101.02388, 2021.
225
+
226
+ Eliya Nachmani, Robin San Roman, and Lior Wolf. Non gaussian denoising diffusion models. arXiv preprint arXiv:2106.07582, 2021.
227
+
228
+ Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, ICML, 2021.
229
+
230
+ Chenhao Niu, Yang Song, Jiaming Song, Shengjia Zhao, Aditya Grover, and Stefano Ermon. Permutation invariant graph generation via score-based generative modeling. In International Conference on Artificial Intelligence and Statistics, pp. 4474–4484. PMLR, 2020.
231
+
232
+ Prajit Ramachandran, Tom Le Paine, Pooya Khorrami, Mohammad Babaeizadeh, Shiyu Chang, Yang Zhang, Mark A Hasegawa-Johnson, Roy H Campbell, and Thomas S Huang. Fast generation for convolutional autoregressive models. arXiv preprint arXiv:1704.06001, 2017.
233
+
234
+ Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021.
235
+
236
+ Robin San-Roman, Eliya Nachmani, and Lior Wolf. Noise estimation for generative diffusion models. arXiv preprint arXiv:2104.02600, 2021.
237
+
238
+ Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256–2265, 2015.
239
+
240
+ Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. International Conference on Learning Representations, 2021a.
241
+
242
+ Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, pp. 11895–11907, 2019.
243
+
244
+ Yang Song and Stefano Ermon. Improved techniques for training score-based generative. Advances in Neural Information Processing Systems, 2020.
245
+
246
+ Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. Maximum likelihood training of scorebased diffusion models. arXiv e-prints, pp. arXiv–2101, 2021b.
247
+
248
+ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations, 2021c.
249
+
250
+ Yuxuan Song, Qiwei Ye, Minkai Xu, and Tie-Yan Liu. Discriminator contrastive divergence: Semi-amortized generative modeling by exploring energy of the discriminator. arXiv preprint arXiv:2004.01704, 2020.
251
+
252
+ Belinda Tzen and Maxim Raginsky. Neural stochastic differential equations: Deep latent gaussian models in the diffusion limit. arXiv preprint arXiv:1905.09883, 2019a.
253
+
254
+ Belinda Tzen and Maxim Raginsky. Theoretical guarantees for sampling and inference in generative models with latent diffusions. In Conference on Learning Theory, pp. 3084–3114. PMLR, 2019b.
255
+
256
+ Arash Vahdat, Karsten Kreis, and Jan Kautz. Score-based generative modeling in latent space. arXiv preprint arXiv:2106.05931, 2021.
257
+
258
+ Pascal Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7):1661–1674, 2011.
259
+
260
+ Daniel Watson, Jonathan Ho, Mohammad Norouzi, and William Chan. Learning to efficiently sample from diffusion probabilistic models. arXiv preprint arXiv:2106.03802, 2021.
261
+
262
+ # A PROBABILITY FLOW ODE IN TERMS OF LOG-SNR
263
+
264
+ Song et al. (2021c) formulate the forward diffusion process in terms of an SDE of the form
265
+
266
+ $$
267
+ \begin{array} { r } { d { \mathbf { z } } = f ( { \mathbf { z } } , t ) d t + g ( t ) d W , } \end{array}
268
+ $$
269
+
270
+ and show that samples from this diffusion process can be generated by solving the associated probability flow ODE:
271
+
272
+ $$
273
+ d \mathbf { z } = [ f ( \mathbf { z } , t ) - \frac { 1 } { 2 } g ^ { 2 } ( t ) \nabla _ { z } \log p _ { t } ( \mathbf { z } ) ] d t ,
274
+ $$
275
+
276
+ where in practice $\nabla _ { z } \log { p _ { t } ( \mathbf { z } ) }$ is approximated by a learned denoising model using
277
+
278
+ $$
279
+ \nabla _ { z } \log { p _ { t } ( \mathbf { z } ) } \approx \frac { \alpha _ { t } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) - \mathbf { z } _ { t } } { \sigma _ { t } ^ { 2 } } .
280
+ $$
281
+
282
+ Following Kingma et al. (2021) we have $\begin{array} { r } { f ( \mathbf { z } , t ) = \frac { d \log \alpha _ { t } } { d t } \mathbf { z } _ { t } } \end{array}$ and $\begin{array} { r } { g ^ { 2 } ( t ) = \frac { d \sigma _ { t } ^ { 2 } } { d t } - 2 \frac { d \log { \alpha _ { t } } } { d t } \sigma _ { t } ^ { 2 } } \end{array}$ . Assuming a variance preserving diffusion process with $\alpha _ { t } ^ { 2 } = 1 - \sigma _ { t } ^ { 2 } = \mathrm { s i g m o i d } ( \bar { \lambda } _ { t } )$ for $\bar { \lambda _ { t } } = \log [ \alpha _ { t } ^ { 2 } / \sigma _ { t } ^ { 2 } ]$ (without loss of generality, see Kingma et al. (2021)), we get
283
+
284
+ $$
285
+ f ( \mathbf { z } , t ) = { \frac { d \log \alpha _ { t } } { d t } } \mathbf { z } _ { t } = { \frac { 1 } { 2 } } { \frac { d \log \alpha _ { \lambda } ^ { 2 } } { d \lambda } } { \frac { d \lambda } { d t } } \mathbf { z } _ { t } = { \frac { 1 } { 2 } } ( 1 - \alpha _ { t } ^ { 2 } ) { \frac { d \lambda } { d t } } \mathbf { z } _ { t } = { \frac { 1 } { 2 } } \sigma _ { t } ^ { 2 } { \frac { d \lambda } { d t } } \mathbf { z } _ { t } .
286
+ $$
287
+
288
+ Similarly, we get
289
+
290
+ $$
291
+ g ^ { 2 } ( t ) = { \frac { d \sigma _ { t } ^ { 2 } } { d t } } - 2 { \frac { d \log \alpha _ { t } } { d t } } \sigma _ { t } ^ { 2 } = { \frac { d \sigma _ { \lambda } ^ { 2 } } { d \lambda } } { \frac { d \lambda } { d t } } - \sigma _ { t } ^ { 4 } { \frac { d \lambda } { d t } } = ( \sigma _ { t } ^ { 4 } - \sigma _ { t } ^ { 2 } ) { \frac { d \lambda } { d t } } - \sigma _ { t } ^ { 4 } { \frac { d \lambda } { d t } } = - \sigma _ { t } ^ { 2 } { \frac { d \lambda } { d t } } .
292
+ $$
293
+
294
+ Plugging these into the probability flow ODE then gives
295
+
296
+ $$
297
+ \begin{array} { l } { d \mathbf { z } = [ f ( \mathbf { z } , t ) - \displaystyle \frac { 1 } { 2 } g ^ { 2 } ( t ) \nabla _ { z } \log p _ { t } ( \mathbf { z } ) ] d t } \\ { \displaystyle = \frac { 1 } { 2 } \sigma _ { \lambda } ^ { 2 } [ \mathbf { z } _ { \lambda } + \nabla _ { z } \log p _ { \lambda } ( \mathbf { z } ) ] d \lambda . } \end{array}
298
+ $$
299
+
300
+ Plugging in our function approximation from Equation 12 gives
301
+
302
+ $$
303
+ \begin{array} { l } { { d { \bf z } = \displaystyle \frac { 1 } { 2 } \sigma _ { \lambda } ^ { 2 } \left[ { \bf z } _ { \lambda } + \left( \frac { \alpha _ { \lambda } \hat { \bf x } _ { \theta } \left( { \bf z } _ { \lambda } \right) - { \bf z } _ { \lambda } } { \sigma _ { \lambda } ^ { 2 } } \right) \right] d \lambda } } \\ { { { \mathrm { } ~ } = \displaystyle \frac { 1 } { 2 } [ \alpha _ { \lambda } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) + ( \sigma _ { \lambda } ^ { 2 } - 1 ) { \bf z } _ { \lambda } ] d \lambda } } \\ { { { \mathrm { } ~ } = \displaystyle \frac { 1 } { 2 } [ \alpha _ { \lambda } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) - \alpha _ { \lambda } ^ { 2 } { \bf z } _ { \lambda } ] d \lambda . } } \end{array}
304
+ $$
305
+
306
+ # B DDIM IS AN INTEGRATOR OF THE PROBABILITY FLOW ODE
307
+
308
+ The DDIM update rule (Song & Ermon, 2020) is given by
309
+
310
+ $$
311
+ \mathbf { z } _ { s } = \frac { \sigma _ { s } } { \sigma _ { t } } [ \mathbf { z } _ { t } - \alpha _ { t } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) ] + \alpha _ { s } \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { t } ) ,
312
+ $$
313
+
314
+ for $s < t$ . Taking the derivative of this expression with respect to $\lambda _ { s }$ , assuming again a variance preserving diffusion process, and using $\begin{array} { r } { \frac { d \alpha _ { \lambda } } { d \lambda } = \frac { 1 } { 2 } \alpha _ { \lambda } \sigma _ { \lambda } ^ { 2 } } \end{array}$ and $\begin{array} { r } { \frac { d \sigma _ { \lambda } } { d \lambda } = - \frac { 1 } { 2 } \sigma _ { \lambda } \alpha _ { \lambda } ^ { 2 } } \end{array}$ , gives
315
+
316
+ $$
317
+ \begin{array} { r l r } { { \frac { { \bf z } _ { \lambda _ { s } } } { d \lambda _ { s } } = \frac { d \sigma _ { \lambda _ { s } } } { d \lambda _ { s } } \frac { 1 } { \sigma _ { t } } [ { \bf z } _ { t } - \alpha _ { t } \hat { \bf x } _ { \theta } ( { \bf z } _ { t } ) ] + \frac { d \alpha _ { \lambda _ { s } } } { d \lambda _ { s } } \hat { \bf x } _ { \theta } ( { \bf z } _ { t } ) } } \\ & { } & { = - \frac { 1 } { 2 } \alpha _ { s } ^ { 2 } \frac { \sigma _ { s } } { \sigma _ { t } } [ { \bf z } _ { t } - \alpha _ { t } \hat { \bf x } _ { \theta } ( { \bf z } _ { t } ) ] + \frac { 1 } { 2 } \alpha _ { s } \sigma _ { s } ^ { 2 } \hat { \bf x } _ { \theta } ( { \bf z } _ { t } ) . } \end{array}
318
+ $$
319
+
320
+ Evaluating this derivative at $s = t$ then gives
321
+
322
+ $$
323
+ \begin{array} { l } { \displaystyle \frac { { \bf z } _ { \lambda _ { s } } } { d \lambda _ { s } } | _ { s = t } = - \frac { 1 } { 2 } \alpha _ { \lambda } ^ { 2 } [ { \bf z } _ { \lambda } - \alpha _ { \lambda } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) ] + \frac { 1 } { 2 } \alpha _ { \lambda } \sigma _ { \lambda } ^ { 2 } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) } \\ { \displaystyle = - \frac { 1 } { 2 } \alpha _ { \lambda } ^ { 2 } [ { \bf z } _ { \lambda } - \alpha _ { \lambda } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) ] + \frac { 1 } { 2 } \alpha _ { \lambda } ( 1 - \alpha _ { \lambda } ^ { 2 } ) \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) } \\ { \displaystyle = \frac { 1 } { 2 } [ \alpha _ { \lambda } \hat { \bf x } _ { \theta } ( { \bf z } _ { \lambda } ) - \alpha _ { \lambda } ^ { 2 } { \bf z } _ { \lambda } ] . } \end{array}
324
+ $$
325
+
326
+ Comparison with Equation 19 now shows that DDIM follows the probability flow ODE up to first order, and can thus be considered as an integration rule for this ODE.
327
+
328
+ # C EVALUATION OF INTEGRATORS OF THE PROBABILITY FLOW ODE
329
+
330
+ In a preliminary investigation we tried several numerical integrators for the probability flow ODE. As our model we used a pre-trained class-conditional $1 2 8 \mathrm { x } 1 2 8$ ImageNet model following the description in Ho et al. (2020). We tried a simple Euler integrator, RK4 (the “classic” 4th order Runge–Kutta integrator), and DDIM (Song et al., 2021a). In addition we compared to a Gaussian sampler with variance equal to the lower bound given by Ho et al. (2020). We calculated FID scores on just 5000 samples, hence our results in this experiment are not comparable to results reported in the literature. This preliminary investigation gave the results listed in Table 3 and identified DDIM as the best integrator in terms of resulting sample quality.
331
+
332
+ <table><tr><td>Sampler</td><td>Number of steps</td><td>FID</td></tr><tr><td>Stochastic Euler RK4</td><td>1000 1000 1000 1000</td><td>13.35 16.5 16.33 15.98</td></tr><tr><td>DDIM Stochastic</td><td>100</td><td>18.44</td></tr><tr><td>Euler</td><td>100</td><td>23.67</td></tr><tr><td>RK4</td><td>100</td><td>18.94</td></tr><tr><td>DDIM</td><td>100</td><td>16.35</td></tr></table>
333
+
334
+ Table 3: Preliminary FID scores on $1 2 8 \times 1 2 8$ ImageNet for various integrators of the probability flow ODE, and compared against a stochastic sampler. Model specification and noise schedule follow Ho et al. (2020).
335
+
336
+ # D EXPRESSION OF DDIM IN ANGULAR PARAMETERIZATION
337
+
338
+ We can simplify the DDIM update rule by expressing it in terms of $\phi _ { t } = \arctan ( \sigma _ { t } / \alpha _ { t } )$ , rather than in terms of time $t$ or log-SNR $\lambda _ { t }$ , as we show here.
339
+
340
+ Given our definition of $\phi$ , and assuming a variance preserving diffusion process, we have $\alpha _ { \phi } =$ $\cos ( \phi )$ , $\begin{array} { r } { \sigma _ { \phi } = \sin ( \phi ) } \end{array}$ , and hence ${ \bf z } _ { \phi } = \mathrm { c o s } ( \phi ) { \bf x } + \mathrm { s i n } ( { \bar { \phi } } ) \epsilon$ . We can now define the velocity of $\mathbf { z } _ { \phi }$ as
341
+
342
+ $$
343
+ \mathbf { v } _ { \phi } \equiv \frac { d \mathbf { z } _ { \phi } } { d \phi } = \frac { d \cos ( \phi ) } { d \phi } \mathbf { x } + \frac { d \sin ( \phi ) } { d \phi } \epsilon = \cos ( \phi ) \epsilon - \sin ( \phi ) \mathbf { x } .
344
+ $$
345
+
346
+ Rearranging $\epsilon , \mathbf { x } , \mathbf { v }$ , we then get
347
+
348
+ $$
349
+ \begin{array} { c } { { \sin ( \phi ) { \bf x } = \cos ( \phi ) \epsilon - { \bf v } _ { \phi } } } \\ { { { \displaystyle = \frac { \cos ( \phi ) } { \sin ( \phi ) } ( { \bf z } - \cos ( \phi ) { \bf x } ) - { \bf v } _ { \phi } } } } \\ { { { \displaystyle \sin ^ { 2 } ( \phi ) { \bf x } = \cos ( \phi ) { \bf z } - \cos ^ { 2 } ( \phi ) { \bf x } - \sin ( \phi ) { \bf v } _ { \phi } } } } \\ { { { \displaystyle ( \sin ^ { 2 } ( \phi ) + \cos ^ { 2 } ( \phi ) ) { \bf x } = { \bf x } = \cos ( \phi ) { \bf z } - \sin ( \phi ) { \bf v } _ { \phi } } , } } \end{array}
350
+ $$
351
+
352
+ and similarly we get $\boldsymbol { \epsilon } = \sin ( \phi ) \mathbf { z } _ { \phi } + \cos ( \phi ) \mathbf { v } _ { \phi }$
353
+
354
+ Furthermore, we define the predicted velocity as
355
+
356
+ $$
357
+ \hat { \mathbf { v } } _ { \theta } ( \mathbf { z } _ { \phi } ) \equiv \cos ( \phi ) \hat { \epsilon } _ { \theta } ( \mathbf { z } _ { \phi } ) - \sin ( \phi ) \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { \phi } ) ,
358
+ $$
359
+
360
+ where $\begin{array} { r } { \hat { \epsilon } _ { \theta } ( \mathbf { z } _ { \phi } ) = ( \mathbf { z } _ { \phi } - \cos ( \phi ) \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { \phi } ) ) / \sin ( \phi ) . } \end{array}$
361
+
362
+ Rewriting the DDIM update rule in the introduced terms then gives
363
+
364
+ $$
365
+ \begin{array} { r l r } { { \mathbf { z } _ { \phi _ { s } } = \cos ( \phi _ { s } ) \hat { \mathbf { x } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) + \sin ( \phi _ { s } ) \hat { \boldsymbol { \epsilon } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) } } & { \quad ( \hat { \mathbf { z } } _ { \phi _ { t } } ) } \\ & { } & { = \cos ( \phi _ { s } ) ( \cos ( \phi _ { t } ) \mathbf { z } _ { \phi _ { t } } - \sin ( \phi _ { t } ) \hat { \mathbf { v } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) ) + \sin ( \phi _ { s } ) ( \sin ( \phi _ { t } ) \mathbf { z } _ { \phi _ { t } } + \cos ( \phi _ { t } ) \hat { \mathbf { v } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) ) \quad \mathrm { ~ ( \hat { z } _ \phi \phi _ t ~ ) ~ } } \\ & { } & { = [ \cos ( \phi _ { s } ) \cos ( \phi _ { t } ) - \sin ( \phi _ { s } ) \sin ( \phi _ { t } ) ] \mathbf { z } _ { \phi _ { t } } + [ \sin ( \phi _ { s } ) \cos ( \phi _ { t } ) - \cos ( \phi _ { s } ) \sin ( \phi _ { t } ) ] \hat { \mathbf { v } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) . } \end{array}
366
+ $$
367
+
368
+ Finally, we use the trigonometric identities
369
+
370
+ $$
371
+ \begin{array} { l } { \cos ( \phi _ { s } ) \sin ( \phi _ { t } ) - \sin ( \phi _ { s } ) \cos ( \phi _ { t } ) = \cos ( \phi _ { s } - \phi _ { t } ) } \\ { \sin ( \phi _ { s } ) \cos ( \phi _ { t } ) - \cos ( \phi _ { s } ) \sin ( \phi _ { t } ) = \sin ( \phi _ { s } - \phi _ { t } ) , } \end{array}
372
+ $$
373
+
374
+ to find that
375
+
376
+ $$
377
+ \begin{array} { r } { \mathbf { z } _ { \phi _ { s } } = \cos ( \phi _ { s } - \phi _ { t } ) \mathbf { z } _ { \phi _ { t } } + \sin ( \phi _ { s } - \phi _ { t } ) \hat { \mathbf { v } } _ { \theta } ( \mathbf { z } _ { \phi _ { t } } ) . } \end{array}
378
+ $$
379
+
380
+ or equivalently
381
+
382
+ $$
383
+ \begin{array} { r } { { \bf z } _ { \phi _ { t } - \delta } = \cos ( \delta ) { \bf z } _ { \phi _ { t } } - \sin ( \delta ) \hat { \bf v } _ { \theta } ( { \bf z } _ { \phi _ { t } } ) . } \end{array}
384
+ $$
385
+
386
+ Viewed from this perspective, DDIM thus evolves ${ \bf z } _ { \phi _ { s } }$ by moving it on a circle in the $\left( \mathbf { z } _ { \phi _ { t } } , \hat { \mathbf { v } } _ { \phi _ { t } } \right)$ basis, along the $- \hat { \mathbf { v } } _ { \phi _ { t } }$ direction. The relationship between ${ \bf z } _ { \phi _ { t } } , { \bf v } _ { t } , \alpha _ { t } , \sigma _ { t } , { \bf x } , \epsilon$ is visualized in Figure 5.
387
+
388
+ ![](images/1ae6fef040ee919933f9302d63bd576cb38724ffa5acf6df12efc7bec38eb818.jpg)
389
+ Figure 5: Visualization of reparameterizing the diffusion process in terms of $\phi$ and $\mathbf { v } _ { \phi }$
390
+
391
+ # E SETTINGS USED IN EXPERIMENTS
392
+
393
+ Our model architectures closely follow those described by Dhariwal & Nichol (2021). For $6 4 \times 6 4$ ImageNet we use their model exactly, with 192 channels at the highest resolution. All other models are slight variations with different hyperparameters.
394
+
395
+ For CIFAR-10 we use an architecture with a fixed number of channels at all resolutions of 256. The model consists of a UNet that internally downsamples the data twice, to $1 6 \times 1 6$ and to $8 \times 8$ . At each resolution we apply 3 residual blocks, like described by Dhariwal & Nichol (2021). We use single-headed attention, and only apply this at the $1 6 \times 1 6$ and $8 \times 8$ resolutions. We use dropout of 0.2 when training the original model. No dropout is used during distillation.
396
+
397
+ For LSUN we use a model similar to that for ImageNet, but with a reduced number of 128 channels at the $6 4 \times 6 4$ resolution. Compared to ImageNet we have an additional level in the UNet, corresponding to the input resolution of $1 2 8 \times 1 2 8$ , which we process using 3 residual blocks with 64 channels. We only use attention layers for the resolutions of $3 2 \times 3 2$ and lower.
398
+
399
+ For CIFAR-10 we take the output of the model to represent a prediction of $\mathbf { x }$ directly, as discussed in Section 4. For the other data sets we used the combined prediction of $( \mathbf { x } , \epsilon )$ like described in that section also. All original models are trained with Adam with standard settings (learning rate of $3 * 1 0 ^ { - 4 }$ ), using a parameter moving average with constant 0.9999 and very slight decoupled weight decay (Loshchilov & Hutter, 2017) with a constant of 0.001. We clip the norm of gradients to a global norm of 1 before calculating parameter updates. For CIFAR-10 we train for $8 0 0 \mathrm { k }$ parameter updates, for ImageNet we use 550k updates, and for LSUN we use $4 0 0 \mathrm { k }$ updates. During distillation we train for 50k updates per iteration, except for the distillation to 2 and 1 sampling steps, for which we use $1 0 0 \mathrm { k }$ updates. We linearly anneal the learning rate from $1 0 ^ { - 4 }$ to zero during each iteration.
400
+
401
+ We use a batch size of 128 for CIFAR-10 and 2048 for the other data sets. We run our experiments on TPUv4, using 8 TPU chips for CIFAR-10, and 64 chips for the other data sets. The total time required to first train and then distill a model varies from about a day for CIFAR-10, to about 5 days for ImageNet.
402
+
403
+ # F STOCHASTIC SAMPLING WITH DISTILLED MODELS
404
+
405
+ Our progressive distillation procedure was designed to be used with the DDIM sampler, but the resulting distilled model could in principle also be used with a stochastic sampler. Here we evaluate a distilled model for $6 4 \mathrm { x } 6 4$ ImageNet using the optimized stochastic sampler also used in Section 5.2. The results are presented in Figure 6.
406
+
407
+ ![](images/529c3caadd0c73afa2ceffeaf299556a86ed0424c93903a30db7430a1147d922.jpg)
408
+ Figure 6: FID of generated samples from distilled and undistilled models, using DDIM or stochastic sampling. For the stochastic sampling results we present the best FID obtained by a grid-search over 11 possible noise levels, spaced log-uniformly between the upper and lower bound on the variance as derived by Ho et al. (2020). The performance of the distilled model with stochastic sampling is found to lie in between the undistilled original model with stochastic sampling and the distilled DDIM sampler: For small numbers of sampling steps the DDIM sampler performs better with the distilled model, for large numbers of steps the stochastic sampler performs better.
409
+
410
+ # G DERIVATION OF THE DISTILLATION TARGET
411
+
412
+ The key difference between our progressive distillation algorithm proposed in Section 3 and the standard diffusion training procedure is in how we determine the target value for our denoising model. In standard diffusion training, the target for denoising is the clean data $\mathbf { x }$ . In progressive distillation it is the value $\tilde { \mathbf { x } }$ the student denoising model would need to predict in order to match the teacher model when sampling. Here we derive what this target needs to be.
413
+
414
+ Using notation $t ^ { \prime } = t - 0 . 5 / N$ and $t ^ { \prime \prime } = t - 1 / N$ , when training a student with $N$ sampling steps, we have that the teacher model samples the next set of noisy data $\mathbf { z } _ { t ^ { \prime \prime } }$ given the current noisy data $\mathbf { z } _ { t }$ by taking two steps of DDIM. The student tries to sample the same value in only one step of DDIM. Denoting the student denoising prediction by $\tilde { \mathbf { x } }$ , and its one-step sample by $\tilde { \mathbf { z } } _ { t ^ { \prime \prime } }$ , application of the DDIM sampler (see equation 8), gives:
415
+
416
+ $$
417
+ \tilde { \mathbf { z } } _ { t ^ { \prime \prime } } = \alpha _ { t ^ { \prime \prime } } \tilde { \mathbf { x } } + \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } ( \mathbf { z } _ { t } - \alpha _ { t } \tilde { \mathbf { x } } ) .
418
+ $$
419
+
420
+ In order for the student sampler to match the teacher sampler, we must set $\tilde { \mathbf { z } } _ { t ^ { \prime \prime } }$ equal to $\mathbf { z } _ { t ^ { \prime \prime } }$ . This gives
421
+
422
+ $$
423
+ \begin{array} { c } { { \tilde { \bf z } _ { t ^ { \prime \prime } } = \alpha _ { t ^ { \prime \prime } } \tilde { \bf x } + \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } ( { \bf z } _ { t } - \alpha _ { t } \tilde { \bf x } ) = { \bf z } _ { t ^ { \prime \prime } } } } \\ { { { \mathrm { } } } } \\ { { { \mathrm { } } = \left( \alpha _ { t ^ { \prime \prime } } - \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } \alpha _ { t } \right) \tilde { \bf x } + \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } { \bf z } _ { t } = { \bf z } _ { t ^ { \prime \prime } } } } \\ { { { \mathrm { } } } } \\ { { \left( \alpha _ { t ^ { \prime \prime } } - \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } \alpha _ { t } \right) \tilde { \bf x } = { \bf z } _ { t ^ { \prime \prime } } - \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t } } { \bf z } _ { t } } } \\ { { { \mathrm { } } } } \\ { { \tilde { \bf x } = \frac { { \bf z } _ { t ^ { \prime \prime } } - \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t ^ { \prime } } } { \alpha _ { t } } } { \alpha _ { t ^ { \prime \prime } } - \frac { \sigma _ { t ^ { \prime \prime } } } { \sigma _ { t ^ { \prime \prime } } } { \alpha _ { t } } } } } \end{array}
424
+ $$
425
+
426
+ In other words, if our student denoising model exactly predicts $\tilde { \mathbf { x } }$ as defined in equation 43 above, then the one-step student sample $\tilde { \mathbf { z } } _ { t ^ { \prime \prime } }$ is identical to the two-step teacher sample $\mathbf { z } _ { t ^ { \prime \prime } }$ . In order to have our student model approximate this ideal outcome, we thus train it to predict $\tilde { \bf x }$ from $\mathbf { z } _ { t }$ as well as possible, using the standard squared error denoising loss (see Equation 9).
427
+
428
+ Note that this possibility of matching the two-step teacher model with a one-step student model is unique to deterministic samplers like DDIM: the composition of two standard stochastic DDPM sampling steps (Equation 5) forms a non-Gaussian distribution that falls outside the family of Gaussian distributions that can be modelled by a single DDPM student step: A multi-step stochastic DDPM sampler can thus not be distilled into a few-step sampler without some loss in fidelity. This is in contrast with the deterministic DDIM sampler: here both the two-step DDIM teacher update and the one-step DDIM student update represent deterministic mappings implemented by a neural net, which is why the student is able to accurately match the teacher.
429
+
430
+ Finally, note that we do lose something during the progressive distillation process: while the original model was trained to denoise $\mathbf { z } _ { t }$ for any given continuous time $t$ , the distilled student models are only ever evaluated on a small discrete set of times $t$ . The student models thus lose generality as distillation progresses. At the same time, it’s this loss of generality that allows the student models to free up enough modeling capacity to accurately match the teacher model without increasing their model size.
431
+
432
+ # H ADDITIONAL RANDOM SAMPLES
433
+
434
+ In this section we present additional random samples from our diffusion models obtained through progressive distillation. We show samples for distilled models taking 256, 4, and 1 sampling steps. All samples are uncurated.
435
+
436
+ As explained in Section 3, our distilled samplers implement a deterministic mapping from input noise to output samples (also see Appendix G). To facilitate comparison of this mapping for varying numbers of sampling steps, we generate all samples using the same random input noise, and we present the samples side-by-side. As these samples show, the mapping is mostly preserved when moving from many steps to a single step: The same input noise is mapped to the same output image, with a slight loss in image quality, as the number of steps is reduced. Since the mapping is preserved while reducing the number of steps, our distilled models also preserve the excellent sample diversity of diffusion models (see e.g. Kingma et al. (2021)).
437
+
438
+ ![](images/54da9530cb6dc419c29bfdd5a04f5babde9fa27d7a511f328a1974efb6afda39.jpg)
439
+ Figure 7: Random samples from our distilled CIFAR-10 models, for fixed random seed and for varying number of sampling steps.
440
+
441
+ ![](images/78b797bc518f181c27129d69dc32db54a060585aba455ff0aef1fcd447f1c2e6.jpg)
442
+ Figure 8: Random samples from our distilled $6 4 \times 6 4$ ImageNet models, conditioned on the ‘coral reef’ class, for fixed random seed and for varying number of sampling steps.
443
+
444
+ ![](images/332eea9c8611103ed561e748d470ffbbce320d1e310aafbc84bbcfaebb641aa5.jpg)
445
+ Figure 9: Random samples from our distilled $6 4 \times 6 4$ ImageNet models, conditioned on the ‘sports car’ class, for fixed random seed and for varying number of sampling steps.
446
+
447
+ ![](images/472f66b51eddfba405ca39faa14ff2395e3ec9231915dca97b94e1353b20ecd7.jpg)
448
+ Figure 10: Random samples from our distilled LSUN bedrooms models, for fixed random seed and for varying number of sampling steps.
449
+
450
+ ![](images/32b5f2a4b6ed9574351fbb777d6ac3ccfd7f42bcf9dbd59265ed6f9c562bdca2.jpg)
451
+ Figure 11: Random samples from our distilled LSUN church-outdoor models, for fixed random seed and for varying number of sampling steps.
452
+
453
+ # I ABLATION WITH FASTER DISTILLATION SCHEDULES
454
+
455
+ In order to further reduce the computational requirements for our progressive distillation approach, we perform an ablation study on CIFAR-10, where we decrease the number of parameter updates we use to train each new student model. In Figure 12 we present results for taking 25 thousand, 10 thousand, or 5 thousand optimization steps, instead of the 50 thousand we suggested in Section 3. As the results show, we can drastically decrease the number of optimization steps taken, and still get very good performance when using $\geq 4$ sampling steps. When taking very few sampling steps, the loss in performance becomes more pronounced when training the student for only a short time.
456
+
457
+ In addition to just decreasing the number of parameter updates, we also experiment with a schedule where we train each student on 4 times fewer sampling steps than its teacher, rather than the 2 times we propose in Section 3. Here the denoising target is still derived from taking 2 DDIM steps with the teacher model as usual, since taking 4 teacher steps would negate most of the computational savings. As Figure 12 shows, this does not work as well: if the computational budget is limited, it’s better to take fewer parameter updates per halving of the number of sampling steps then to skip distillation iterations altogether.
458
+
459
+ In Figure 13 we show the results achieved with a faster schedule for the ImageNet and LSUN datasets. Here also, we achieve excellent results with a faster distillation schedule.
460
+
461
+ ![](images/fffa87cf6ed1399dcdd3366b898a5c784f71fba780833ee28c4b364427919aad.jpg)
462
+ Figure 12: Comparing our proposed schedule for progressive distillation taking $5 0 \mathrm { k }$ parameter updates to train a new student every time the number of steps is halved, versus fast sampling schedules taking fewer parameter updates (25k, 10k, 5k), and a fast schedule dividing the number of steps by 4 for every new student instead of by 2. All reported numbers are averages over 4 random seeds. For each schedule we selected the optimal learning rate from $[ 5 e ^ { - 5 } , 1 e ^ { - 4 } , 2 e ^ { - 4 } , 3 e ^ { - 4 } ]$ .
463
+
464
+ ![](images/6e2fc03b5372c92a9ba4a042ca391d715e5486acf4fa56597a511cb18f5aeacc.jpg)
465
+ Figure 13: Comparing our proposed schedule for progressive distillation taking $5 0 \mathrm { k }$ parameter updates to train a new student every time the number of steps is halved, versus a fast sampling schedule taking $1 0 \mathrm { k }$ parameter updates. For each reported number of steps we selected the optimal learning rate from $[ \dot { 5 } e ^ { - 5 } , 1 e ^ { - 4 } , \dot { 2 } e ^ { - 4 } , 3 e ^ { - 4 } ]$ . Results are for a single random seed.
parse/dev/TIdIXIpzhoI/TIdIXIpzhoI_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/TIdIXIpzhoI/TIdIXIpzhoI_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/TIdIXIpzhoI/TIdIXIpzhoI_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/TntbHxxGd6j/TntbHxxGd6j_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/dUSI4vFyMK/dUSI4vFyMK.md ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Convergence for score-based generative modeling with polynomial complexity
2
+
3
+ Holden Lee Department of Applied Mathematics and Statistics Johns Hopkins University hlee283@jhu.edu
4
+
5
+ Jianfeng Lu
6
+ Department of Mathematics Duke University
7
+ jianfeng@math.duke.edu
8
+
9
+ Yixin Tan Department of Mathematics Duke University yixin.tan@duke.edu
10
+
11
+ # Abstract
12
+
13
+ Score-based generative modeling (SGM) is a highly successful approach for learning a probability distribution from data and generating further samples. We prove the first polynomial convergence guarantees for the core mechanic behind SGM: drawing samples from a probability density $p$ given a score estimate (an estimate of $\nabla \ln p$ ) that is accurate in $L ^ { 2 } ( p )$ . Compared to previous works, we do not incur error that grows exponentially in time or that suffers from a curse of dimensionality. Our guarantee works for any smooth distribution and depends polynomially on its log-Sobolev constant. Using our guarantee, we give a theoretical analysis of score-based generative modeling, which transforms white-noise input into samples from a learned data distribution given score estimates at different noise scales. Our analysis gives theoretical grounding to the observation that an annealed procedure is required in practice to generate good samples, as our proof depends essentially on using annealing to obtain a warm start at each step. Moreover, we show that a predictor-corrector algorithm gives better convergence than using either portion alone.
14
+
15
+ # 1 Introduction
16
+
17
+ A key task in machine learning is to learn a probability distribution from data, in a way that allows efficient generation of additional samples from the learned distribution. Score-based generative modeling (SGM) is one empirically successful approach that implicitly learns the probability distribution by learning how to transform white noise into the data distribution, and gives stateof-the-art performance for generating images and audio [SE19; Dat+19; Gra+19; SE20; $\mathrm { S o n } { + } 2 0 \mathrm { b }$ ; $\mathrm { M e n } { + } 2 1$ ; $\mathbf { S o n } { + } 2 1 \mathbf { b }$ ; Son $+ 2 1 \mathrm { a }$ ; $\mathrm { J i n } { + } 2 2 ^ { \cdot }$ ]. It also yields a conditional generation process for inverse problems [DN21]. The basic idea behind score-based generative modeling is to first estimate the score function from data $[ \mathrm { S o n } { + } 2 0 \mathrm { a } ]$ and then to sample the distribution based on the learned score function. Other approaches for generative modeling include generative adversarial networks (GANs) $[ \mathrm { G o o { + } 1 4 }$ ; ACB17], normalizing flows [DSB16], variational autoencoders [KW19], and energybased models [ZML16]. While score-based generative modeling has achieved great success, its theoretical analysis is still lacking and is the focus of our work.
18
+
19
+ # 1.1 Background
20
+
21
+ General framework. The score function of a distribution $P$ with density $p$ is defined as the gradient of the log-pdf, $\nabla \ln p$ . Its significance arises from the fact that knowing the score function allows running a variety of sampling algorithms, based on discretizations of stochastic differential equations (SDE’s), to sample from $p$ . SGM consists of two steps: first, learning an estimate of the score function for a sequence of “noisy” versions of the data distribution $P _ { \mathrm { d a t a } }$ , and second, using the score function in lieu of the gradient of the log-pdf in the chosen sampling algorithm. We now describe each of these steps more precisely.
22
+
23
+ First, a method of adding noise to the data distribution is fixed; this takes the form of evolving a (forward) stochastic differential equation (SDE) starting from the data distribution. We fix a sequence of noise levels $\sigma _ { 1 } < \cdots < \sigma _ { N }$ . For $\sigma \in \{ \sigma _ { 1 } , \dots , \sigma _ { N } \}$ , let the resulting distributions be $P _ { \sigma ^ { 2 } }$ and the distributions conditional on the starting data point be $P _ { \sigma ^ { 2 } } ( \cdot | x )$ . Typically, $\sigma _ { 1 }$ is chosen so that $P _ { \sigma _ { 1 } ^ { 2 } } \approx P _ { \mathrm { d a t a } }$ and $P _ { \sigma _ { N } ^ { 2 } }$ is close to some “prior” distribution that is easy to sample from, such as $N ( 0 , \sigma _ { N } ^ { 2 } I _ { d } )$ . While the score $\nabla \ln p _ { \sigma ^ { 2 } }$ cannot be estimated directly, it turns out that a de-noising objective that is equivalent to the score-matching objective can be calculated [SE19]. This de-noising objective can be estimated from samples $( X , { \tilde { X } } )$ where $\widetilde { X } \sim P _ { \sigma ^ { 2 } } ( \cdot | x )$ . The objective is represented and optimized within an expressive function class, typically neural networks, to obtain a $L ^ { 2 }$ -estimate of the score, that is, $s _ { \theta } ( x , \overbar { \sigma } ^ { 2 } )$ such that
24
+
25
+ $$
26
+ \begin{array} { r l } { { \mathbb { E } _ { { x } \sim { P } _ { \sigma ^ { 2 } } } [ \| s _ { \theta } ( x , \sigma ^ { 2 } ) - \nabla \ln { p } _ { \sigma ^ { 2 } } ( x ) \| ^ { 2 } ] } \quad } & { { } } \end{array}
27
+ $$
28
+
29
+ is small.
30
+
31
+ The reason we estimate the score function $\nabla \ln p _ { \sigma ^ { 2 } }$ is that there are a variety of sampling algorithms—based on simulating SDE’s—that can sample from $p$ given access to $\nabla \ln p$ , including Langevin Monte Carlo and Hamiltonian Monte Carlo. The second step is then to use the estimated score function $s _ { \theta } ( x , t )$ in lieu of the exact gradient in the sampling algorithm to successively obtain samples from $p _ { \sigma _ { N } ^ { 2 } } , \ldots , p _ { \sigma _ { 1 } ^ { 2 } }$ . This sequence interpolates smoothly between the prior distribution (e.g., $N ( 0 , \sigma _ { N } ^ { 2 } I _ { d } ) )$ and the data distribution $P _ { \mathrm { d a t a } }$ ; such an “annealing” or “homotopy” method is required in practice to generate good samples $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ .
32
+
33
+ Examples of SGM’s. There have been several instantiations of this general approach. [SE19] add gaussian noise to the data and then use Langevin diffusion at a discrete set of noise levels $\sigma _ { N } > \cdots > \sigma _ { 1 }$ as the sampling algorithm. $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ take the continuous perspective and consider a more general framework, where the forward process can be any reasonable SDE. Then a natural reverse $S D E$ evolves the final distribution $p _ { \sigma _ { N } ^ { 2 } }$ back to the data distribution; this process can be simulated with the estimated score. They consider methods based on two different SDE’s: score-matching Langevin diffusion (SMLD) based on adding Gaussian noise and denosing diffusion probabilistic models (DDPM) $[ \mathrm { S o h + } 1 5$ ; HJA20], based on the Ornstein-Uhlenbeck process. Note that a difference with MCMC-based methods is that these SDE’s are evolved for a fixed amount of time, rather than until convergence. However, they can be combined with MCMC-based methods such as Langevin diffusion in the predictor-corrector approach for improved convergence. [DVK21] include Hamiltonian dynamics: they augment the state space with a velocity variable and consider a critically-damped version of the Ornstein-Uhlenbeck process. Finally, we note the work of [De $+ 2 1 ]$ , who introduce the Diffusion Schrodinger Bridge method to learn a diffusion that more quickly ¨ transforms the prior into the data distribution.
34
+
35
+ We will give a general analysis framework for SGM’s that applies to the algorithms in both [SE19] and $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ .
36
+
37
+ # 1.2 Prior work and challenges for theory
38
+
39
+ Although the literature on convergence for Langevin Monte Carlo [DM17; CB18; ${ \mathrm { C h e } } + 1 8$ ; Dal17; DK19; MMS20; EHZ21] and related sampling algorithms is extensive, prior works mainly consider the case of exact or stochastic gradients. In contrast, by the structure of the loss function (1), the score function learned in SGM is only accurate in $L ^ { 2 } ( p )$ . This poses a significant challenge for analysis, as the stationary distribution of Langevin diffusion with $L ^ { 2 } ( p )$ -accurate gradient can be arbitrarily far from $p$ (see Appendix D). Hence, any analysis must be utilizing the short/mediumterm convergence, while overcoming the potential issue of long-term behavior of convergence to an incorrect distribution.
40
+
41
+ [BMR20] give the first theoretical analysis of SGM, and in particular, Langevin Monte Carlo with $L ^ { 2 } ( p )$ -accurate gradients. First, they show using uniform generalization bounds that optimizing the de-noising autoencoder (DAE) objective does in fact give a $L ^ { 2 } ( p )$ -accurate score function, with sample complexity depending on the complexity of the function class. They analyze convergence of LMC in Wasserstein distance. However, the error they obtain (Theorem 13) only decreases as $\varepsilon ^ { 1 / d }$ where $\varepsilon$ is the accuracy of the score estimate—so it suffers from the curse of dimensionality—and increases exponentially in the time that the process is run, the dimension, and the smoothness of the distribution, as in ODE/SDE discretization arguments that do not depend on contractivity.
42
+
43
+ [De $+ 2 1 ]$ give an analysis for $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ in TV distance that requires a $L ^ { \infty }$ -accurate score function and depends exponentially on the amount of time the reverse SDE is run. Although exponential dependence is bad in general, it is mollified using their Diffusion Schrodinger Bridge (DSB) approach, ¨ as it allows running for a shorter, fixed amount of time, before the forward SDE converges to the prior distribution. However, this supposes that a good solution can be found for the DSB problem, and theoretical guarantees may be difficult to obtain.
44
+
45
+ We overcome the challenges of analysis with a $L ^ { 2 } ( p )$ -accurate gradient, and give the first analysis with only polynomial dependence on running time, dimension, and smoothness of the distribution, with rates that are a fixed power of $\varepsilon$ . Our convergence result is in TV distance. We assume only smoothness conditions and a bounded log-Sobolev constant of the data distribution, a weaker condition than the dissipativity condition required by [BMR20]. We introduce a general framework for analysis of sampling algorithms given $L ^ { 2 }$ -accurate gradients (score function) based on constructing a “bad set” with small measure and showing convergence of the discretized process conditioned on not hitting the bad set. We use our framework to give an end-to-end analysis for both the algorithms in [SE19] and $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ , and illuminate the relative performance of different methods in practice.
46
+
47
+ # 1.3 Notation and organization
48
+
49
+ Through out the paper, $p ( x ) \propto e ^ { - V ( x ) }$ denotes the target distribution in $\mathbb { R } ^ { d }$ and $V : \mathbb { R } ^ { d } \mathbb { R }$ is referred to as the potential. We abuse notation by identifying a measure with its density when context allows. We write $a \wedge b : = \operatorname* { m i n } \{ a , b \}$ and $a \vee b : = \operatorname* { m a x } \{ a , b \}$ . We use $a = O ( b )$ or $b = \Omega ( a )$ to indicate that $a \leq C b$ for a universal constant $C > 0$ . Also, we write $a = \Theta ( b )$ if there are universal constants $c ^ { \prime } > c > 0$ such that $c b \leq a \leq c b$ , and the notation ${ \tilde { O } } ( \cdot )$ means it hides polylog factors in the parameters. Definite integrals without limits are taken over $\mathbb { R } ^ { d }$ .
50
+
51
+ In Section 2 we explain our main results for Langevin Monte Carlo with $L ^ { 2 } ( p )$ -accurate score estimate and use it to derive convergence bounds for the annealed LMC method of [SE19]. In Section 3, we give our main results for the predictor-corrector algorithms of $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ based on simulating reverse SDE’s. Our proofs are based on a common framework which we introduce in Section 4. Full proofs are in the appendix.
52
+
53
+ # 2 Results for Langevin dynamics with estimated score
54
+
55
+ Let $p ( x ) \propto e ^ { - V ( x ) }$ be a probability density on $\mathbb { R } ^ { d }$ such that $V$ is $C ^ { 1 }$ . Langevin diffusion with stationary distribution $p$ is the stochastic process defined by the SDE
56
+
57
+ $$
58
+ d x _ { t } = - \nabla V ( x _ { t } ) d t + \sqrt { 2 } d w _ { t } ,
59
+ $$
60
+
61
+ where $w _ { t }$ is a standard Brownian Motion in $\mathbb { R } ^ { d }$ . The rate of convergence to $p$ in $\chi ^ { 2 }$ and $\mathrm { K L }$ divergences are given by the Poincare and log-Sobolev constants of ´ $p$ , respectively; see Section E.1. To obtain the Langevin Monte Carlo (LMC) algorithm, we take the Euler-Murayama discretization of the SDE. We define LMC with score estimate $s ( x ) \approx - \nabla V ( x )$ and step size $h$ by
62
+
63
+ $$
64
+ x _ { ( k + 1 ) h } = x _ { k h } + h \cdot s ( x _ { k h } ) + \sqrt { 2 h } \cdot \xi _ { k h } , \mathrm { w h e r e } \xi _ { k h } \sim N ( 0 , I _ { d } ) .
65
+ $$
66
+
67
+ We make the following assumptions on the density $p$ and the score estimate $s$ , which we will use throughout this paper.
68
+
69
+ Assumption 1. $p$ is a probability density on $\mathbb { R } ^ { d }$ such that the following hold.
70
+
71
+ 1. $\ln { p }$ is $C ^ { 1 }$ and $L$ -smooth, that is, $\nabla \ln p$ is $L$ -Lipschitz. We assume $L \geq 1$ .
72
+
73
+ 2. $p$ satisfies a log-Sobolev inequality with constant $C _ { \mathrm { L S } }$ . We assume $C _ { \mathrm { L S } } \geq 1$
74
+
75
+ 3. (Moments) $\| \mathbb { E } _ { p } x \| \leq M _ { 1 }$ and ${ \mathbb E } _ { p } \left\| x \right\| ^ { 2 } \le M _ { 2 }$ .
76
+
77
+ We note that the uniform Lipschitzness assumption (1) helps ensure a unique strong solution to the Langevin diffusion, as in [BMR20]. One special case where one can prove Lipschitzness for all $t$ is when $p _ { 0 }$ is strongly log-concave $[ \mathrm { L e e } + 2 1$ , Lemma 28]. Although satisfying a log-Sobolev inequality (3) is a significant assumption, it is standard for analysis of Langevin Monte Carlo [VW19]. It is much weaker than assumptions in previous works [BMR20], including log-concave distributions and distributions satisfying strong dissipativity, and is stable under bounded perturbations. See Section E.1 for background on functional inequalities.
78
+
79
+ Assumption 2. Let p be a given probability density on $\mathbb { R } ^ { d }$ such that $\ln { p }$ is $C ^ { 1 }$ . The score estimate $s : \mathbb { R } ^ { d } \overset { ^ { - } } { \to } \mathbb { R } ^ { d }$ satisfies the following.
80
+
81
+ 1. s is a $C ^ { 1 }$ function that is $L _ { s }$ -Lipschitz. We assume $L _ { s } \ge 1$ .
82
+
83
+ 2. The error in the score estimate is bounded in $L ^ { 2 }$
84
+
85
+ $$
86
+ \begin{array} { r } { \| \nabla \ln p - s \| _ { L ^ { 2 } ( p ) } ^ { 2 } = \mathbb { E } _ { p } [ \| \nabla \ln p ( x ) - s ( x ) \| ^ { 2 } ] \le \varepsilon ^ { 2 } . } \end{array}
87
+ $$
88
+
89
+ # 2.1 Langevin with $L ^ { 2 }$ -accurate score estimate
90
+
91
+ Our first main result gives an error bound between the sampled distribution and $p$ , assuming $L ^ { 2 }$ - accurate score function estimate.
92
+
93
+ Theorem 2.1 (LMC with $L ^ { 2 }$ -accurate score estimate). Let $p : \mathbb { R } ^ { d } \mathbb { R }$ be a probability density satisfying Assumption $I ( I , 2 )$ with $L \geq 1$ and $s : \mathbb { R } ^ { d } \mathbb { R } ^ { d }$ be a score estimate satisfying Assumption 2(2). Consider the accuracy requirement in TV and $\chi ^ { 2 } \colon 0 < \varepsilon _ { \mathrm { T V } } < 1 , 0 < \varepsilon _ { \chi } < 1$ , and suppose furthermore the starting distribution satisfies $\chi ^ { 2 } ( p _ { 0 } | | p ) \leq K _ { \chi } ^ { 2 }$ . Then if
94
+
95
+ $$
96
+ \varepsilon = O \left( \frac { \varepsilon _ { \mathrm { T V } } \varepsilon _ { \chi } ^ { 3 } } { d L ^ { 2 } C _ { \mathrm { L S } } ^ { 5 / 2 } ( \ln ( 2 K _ { \chi } / \varepsilon _ { \chi } ^ { 2 } ) \vee K _ { \chi } ) } \right) ,
97
+ $$
98
+
99
+ then running (LMC-SE) with score estimate $s$ , step size $\begin{array} { r } { h \ \mathrm { ~ = ~ } \ \Theta \biggl ( \frac { \varepsilon _ { \chi } ^ { 2 } } { d L ^ { 2 } C _ { \mathrm { L S } } } \biggr ) } \end{array}$ and time $T =$ $\begin{array} { r } { \Theta \Big ( C _ { \mathrm { L S } } \ln \Big ( \frac { 2 K _ { \chi } } { \varepsilon _ { \chi } ^ { 2 } } \Big ) \Big ) } \end{array}$ results in a distribution $p _ { T }$ such that $p _ { T }$ is $\varepsilon _ { \mathrm { T V } }$ -far in TV distance from a distribution $\overline { { p } } _ { T }$ , where $\overline { { p } } _ { T }$ satisfies $\chi ^ { 2 } ( \overline { { p } } _ { T } | | p ) \leq \varepsilon _ { \chi } ^ { 2 }$ . In particular, taking $\varepsilon _ { \chi } = \varepsilon _ { \mathrm { T V } }$ , we have the error guarantee that $\mathrm { T V } ( p _ { T } , p ) \leq 2 \varepsilon _ { \mathrm { T V } }$ .
100
+
101
+ Note that the error bound is only achieved when running LMC for a moderate time; this is consistent with the fact that the stationary distribution of LMC with a $L ^ { 2 }$ -score estimate can be arbitrarily far from $p$ . Note also that we need a warm start in $\chi ^ { 2 }$ -divergence: to obtain fixed errors $\varepsilon _ { \mathrm { T V } } , \varepsilon _ { \chi }$ , the required accuracy for the score estimate is inversely proportional to $K _ { \chi }$ . Intuitively, we must suffer from such a dependence because if the starting distribution is very far away, then there is no guarantee that $\| \nabla \ln \bar { p } ( x _ { t } ) - s ( x _ { t } ) \| ^ { 2 }$ is small on average during the sampling algorithm. Finally, although we can state a result purely in terms of TV distance, we need this more precise formulation to prove a result for annealed Langevin dynamics.
102
+
103
+ # 2.2 Annealed Langevin dynamics with estimated score
104
+
105
+ In light of the warm start requirement in Theorem 2.1, we typically cannot directly sample from $p _ { \mathrm { d a t a } }$ or its approximation. Hence, [SE19] proposed using annealed Langevin dynamics: consider a sequence of noise levels $\sigma _ { N } > \cdots > \sigma _ { 1 } \approx 0$ giving rise to a sequence of distributions pσ2N , . . . , pσ21 ≈ pdata, where pσ2 = p ∗ φσ2 , φσ2 being the density of N (0, σ2Id). For large enough $\sigma _ { N } , \varphi _ { \sigma _ { N } ^ { 2 } } \approx p _ { \sigma _ { N } ^ { 2 } }$ provides a warm start to $p _ { \sigma _ { N } ^ { 2 } }$ . We then successively run LMC using score estimates for $p _ { \sigma _ { k } ^ { 2 } }$ , with the approximate sample for $p _ { \sigma _ { k } ^ { 2 } }$ giving a warm start for $p _ { \sigma _ { k - 1 } ^ { 2 } }$ . We obtain the following algorithm and error estimate.
106
+
107
+ INPUT: Noise levels $0 \leq \sigma _ { 1 } < . . . < \sigma _ { M }$ ; score function estimates $s ( \cdot , \sigma _ { m } )$ (estimates of $\nabla \ln ( p * \varphi _ { \sigma _ { m } ^ { 2 } } ) )$ , step sizes $h _ { m }$ , and number of steps $N _ { m }$ for $1 \leq m \leq M$ .
108
+ Draw $x ^ { ( M + 1 ) } \sim N ( 0 , \sigma _ { M } ^ { 2 } I _ { d } )$ .
109
+ for from to 1 do
110
+
111
+ Starting from $x _ { 0 } ^ { ( m ) } = x ^ { ( m + 1 ) }$ , run (LMC-SE) with $s ( x , \sigma _ { m } )$ and step size $h _ { m }$ for $N _ { m }$ steps, and let the final sample be $x ^ { ( m ) }$ .
112
+
113
+ # end for
114
+
115
+ OUTPUT: Return $x ^ { ( 1 ) }$ , approximate sample from $p * \varphi _ { \sigma _ { 1 } ^ { 2 } }$
116
+
117
+ Theorem 2.2 (Annealed LMC with $L ^ { 2 }$ -accurate score estimate). Let $p : \mathbb { R } ^ { d } \mathbb { R }$ be a probability density satisfying Assumption 1 for $M _ { 1 } = O ( d )$ , and let $p _ { \sigma ^ { 2 } } : = p * \varphi _ { \sigma ^ { 2 } }$ . Suppose furthermore that $\nabla \ln p _ { \sigma ^ { 2 } }$ is $L$ -Lipschitz for every $\sigma \geq 0$ . Given $\sigma _ { \operatorname* { m i n } } > 0$ , there exists a sequence $\sigma _ { \mathrm { m i n } } = \sigma _ { 1 } <$ $\cdots < \sigma _ { M }$ with $\begin{array} { r } { M = O \left( \sqrt { d } \log \left( \frac { d C _ { \mathrm { L S } } } { \sigma _ { \mathrm { m i n } } ^ { 2 } } \right) \right) } \end{array}$ such that for each $m$ , $i f$
118
+
119
+ $$
120
+ \begin{array} { r l } & { \left\| \nabla \ln ( p _ { \sigma _ { m } ^ { 2 } } ) - s ( \cdot , \sigma _ { m } ^ { 2 } ) \right\| _ { L ^ { 2 } ( p _ { \sigma _ { m } ^ { 2 } } ) } ^ { 2 } = \mathbb { E } _ { p _ { \sigma _ { m } ^ { 2 } } } [ \left\| \nabla \ln p _ { \sigma _ { m } ^ { 2 } } ( x ) - s ( x , \sigma _ { m } ^ { 2 } ) \right\| ^ { 2 } ] \leq \varepsilon ^ { 2 } . } \\ & { \qquad w i t h \varepsilon : = \widetilde { \cal O } \left( \frac { \varepsilon _ { \mathrm { T V } } ^ { 4 . 5 } } { d ^ { 3 . 2 5 } L ^ { 2 } C _ { \mathrm { L S } } ^ { 2 . 5 } } \right) } \end{array}
121
+ $$
122
+
123
+ then $x ^ { ( 1 ) }$ is a sample from a distribution $q$ such that $\mathrm { T V } ( q , p _ { \sigma _ { 1 } ^ { 2 } } ) \leq \varepsilon _ { \mathrm { T V } }$
124
+
125
+ Note that we assume a score estimate with error $\varepsilon$ at all noise scales; this corresponds to using an objective function that is a maximum of the score-matching objective over all noise levels, rather than an average over all noise levels as more commonly used in practice. However, these two losses are at most a factor of $M$ apart.
126
+
127
+ The proof shows that the noise levels $\sigma _ { k }$ can be chosen as a geometric sequence, which matches the choice used in practice [SE20]. The additional dependence on $d$ and $\varepsilon _ { \mathrm { T V } }$ in Theorem 2.2 compared to Theorem 2.1 comes from requiring a sequence of $\widetilde { O } ( \sqrt { d } )$ noise levels and an additional factor in $\chi ^ { 2 }$ -divergence we suffer at the beginning of each level $m$ . In the next section, we will find that using a reverse SDE to evolve the samples between the noise levels—called a predictor step—will improve the rate and time complexity.
128
+
129
+ # 3 Results for reverse SDE’s with estimated score
130
+
131
+ To improve the empirical performance of score-based generative modeling, $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ consider a general framework where noise is injected into a data distribution $p _ { \mathrm { d a t a } }$ via a forward SDE,
132
+
133
+ $$
134
+ d \tilde { x } _ { t } = f ( \tilde { x } _ { t } , t ) d t + g ( t ) d w _ { t } , \ t \in [ 0 , T ] ,
135
+ $$
136
+
137
+ where $\widetilde x _ { 0 } \sim \widetilde p _ { 0 } : = p _ { \mathrm { d a t a } }$ . Let $\widetilde { p } _ { t }$ denote the distribution of $\widetilde { x } _ { t }$ $\widetilde { p } _ { t }$ is used instead of $p _ { t }$ to distine e e e eguish with the Gaussian-convolved distribution used in Annealed Langevin dynamics as in $\ S 2 . 2 )$ . Remarkably, $\widetilde { x } _ { t }$ also satisfies a reverse-time SDE,
138
+
139
+ $$
140
+ d \widetilde { \boldsymbol { x } } _ { t } = [ f ( \widetilde { \boldsymbol { x } } _ { t } , t ) - g ( t ) ^ { 2 } \nabla \ln \widetilde { p } _ { t } ( \widetilde { \boldsymbol { x } } _ { t } ) ] d t + g ( t ) d \widetilde { \boldsymbol { w } } _ { t } , t \in [ 0 , T ] ,
141
+ $$
142
+
143
+ where $\tilde { w } _ { t }$ is a backward Brownian Motion [And82]. By carefully choosing $f$ and $g$ , we can expect that $\tilde { p } _ { T }$ is approximately equal to some prior distribution $\tilde { q } _ { T }$ (e.g., a centered Gaussian) which we can accurately sample from. Then we hope that starting with some $\tilde { y } _ { T } \sim p _ { \mathrm { p r i o r } } = \tilde { q } _ { T } \approx \tilde { p } _ { T }$ and running the reverse-time process, we will get a good sample $\tilde { y } _ { 0 } \sim \tilde { q } _ { 0 } \approx p _ { \mathrm { d a t a } }$ .
144
+
145
+ The case where $f \equiv 0$ and $g \equiv 1$ recovers the simple case of convolving with a Gaussian as used in $\ S 2 . 2$ ; note, however that the reverse-time SDE differs from Langevin diffusion in having a larger (and time-varying) drift relative to the diffusion. $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ highlight the following two special cases. We will focus on DDPM while noting that our analysis applies more generically.
146
+
147
+ SMLD Score-matching Langevin diffusion: $f \equiv 0$ . In this case, $\widetilde { p } _ { t } \ = \ \widetilde { p } _ { 0 } * \ \varphi _ { \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s }$ , so $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ call this a variance-exploding (VE) SDE. As is common for annealing-based algorithms, [SE19; $\mathbf { S o n } { + } 2 0 \mathbf { b } ]$ suggest choosing an exponential schedule, so that $g ( t ) = a b ^ { t }$ for constants $a , b$ . We take $\begin{array} { r } { p _ { \mathrm { p r i o r } } = N ( 0 , \int _ { 0 } ^ { T } g ( s ) ^ { 2 } d s \cdot I _ { d } ) } \end{array}$ .
148
+
149
+ DDPM Denoising diffusion probabilistic modeling: $\begin{array} { r } { f ( x , t ) = - \frac { 1 } { 2 } g ( t ) ^ { 2 } x } \end{array}$ . This is an OrnsteinUhlenbeck process with time rescaling, $\begin{array} { r } { \widetilde { p } _ { t } = M _ { - \frac { 1 } { 2 } \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s \sharp } \widetilde { p } _ { 0 } \ast \varphi _ { 1 - e ^ { - \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s } } } \end{array}$ , where $M _ { \alpha } ( x ) = \alpha x$ . $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ call this a variance-preserving (VP) SDE, as the variance converges towards $I _ { d }$ . Because it displays exponential convergence towards $N ( 0 , I _ { d } )$ , it can be run for a smaller amount of normalized time $\textstyle \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s$ . $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ suggest the choice $g ( t ) = \sqrt { b + \alpha t }$ . We take $p _ { \mathrm { p r i o r } } = N ( 0 , ( 1 - e ^ { - \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s } ) I _ { d } ) \approx N ( 0 , I _ { d } ) .$
150
+
151
+ To obtain an algorithm, we consider the following discretization and approximation of (4); note that in all cases of interest the integrals can be analytically evaluated. We reverse time so that $t$ corresponds to $T - t$ of the forward process. As we are free to rescale time in the SDE, we assume without loss of generality that the step sizes are constant. The predictor step is
152
+
153
+ $$
154
+ \begin{array} { r l r } { { z _ { ( k + 1 ) h } = z _ { k h } - \int _ { k h } ^ { ( k + 1 ) h } [ f ( z _ { k h } , T - t ) - g ( T - t ) ^ { 2 } \cdot s ( z _ { k h } , T - k h ) ] d t } } \\ & { } & \\ & { } & { + \int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) d w _ { t } , } \end{array}
155
+ $$
156
+
157
+ where $\begin{array} { r } { \int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) d w _ { t } } \end{array}$ is distributed as $\begin{array} { r } { N ( 0 , \int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) ^ { 2 } d t \cdot I _ { d } ) } \end{array}$ . Following $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ , we call these predictor steps as the samples aim to track the distributions $\widetilde { p } _ { T - k h }$ . Note that we flip the time. For simplicity of presentation, we consider the case $g \ \equiv \ 1$ . We note that although the choice of the schedule does matter in practice, what really matters in our theoretical analysis is the integral $\textstyle \int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s$ . This means that different choices of $g$ are related by only a rescaling of time, i.e., for different $g$ and $\tilde { g }$ , we can always choose total times $T$ and $\tilde { T }$ , such that $\begin{array} { r } { \int _ { 0 } ^ { T } g ( s ) ^ { 2 } d s = \int _ { 0 } ^ { \tilde { T } } \tilde { g } ( s ) ^ { 2 } d s } \end{array}$ . While it seems that choosing large $g ( t )$ could reduce the total time $T$ , in our analysis (e.g., Lemma C.15) we need the time step-size $h$ to be ${ \cal O } ( 1 / g ( T ) ^ { 2 } )$ and hence the total computational cost, which is roughly $O ( T / h )$ , does not change significantly.
158
+
159
+ Theorem 3.1 (Predictor with $L ^ { 2 }$ -accurate score estimate, DDPM). Let $p _ { \mathrm { d a t a } } : \mathbb { R } ^ { d } \mathbb { R }$ be a probability density satisfying Assumption $^ { l }$ with $M _ { 2 } = O ( d )$ , and let $\widetilde { p } _ { t }$ be the distribution resulting from evolving the forward $S D E$ according to DDPM with $g \equiv 1$ e. Suppose furthermore that $\nabla \ln \widetilde { p } _ { t }$ is $L$ -Lipschitz for every $t \geq 0$ , and that each $s ( \cdot , t )$ satisfies Assumption 2. Then if
160
+
161
+ $$
162
+ \varepsilon = O \left( \frac { \varepsilon _ { \mathrm { T V } } ^ { 4 } } { ( C _ { \mathrm { L S } } + d ) C _ { \mathrm { L S } } ^ { 5 / 2 } ( L \vee L _ { s } ) ^ { 2 } ( \ln ( C _ { \mathrm { L S } } d ) \vee C _ { \mathrm { L S } } \ln ( 1 / \varepsilon _ { \mathrm { T V } } ^ { 2 } ) ) } \right) ,
163
+ $$
164
+
165
+ running (P) starting from $p _ { \mathrm { p r i o r } }$ for time $\begin{array} { r } { T = \Theta \left( \ln ( C _ { \mathrm { L S } } d ) \vee C _ { \mathrm { L S } } \ln \left( \frac { 1 } { \varepsilon _ { \mathrm { T V } } } \right) \right) } \end{array}$ and step size $h \ =$ $\begin{array} { r } { \Theta \left( \frac { \varepsilon _ { \mathrm { T V } } ^ { 2 } } { C _ { \mathrm { L S } } ( C _ { \mathrm { L S } } + d ) ( L \vee L _ { s } ) ^ { 2 } } \right) } \end{array}$ results in a distribution $q _ { T }$ so that $\mathrm { T V } ( q _ { T } , p _ { \mathrm { d a t a } } ) \leq \varepsilon _ { \mathrm { T V } } .$ .
166
+
167
+ A more precise statement of the Theorem can be found in the Appendix. Although we state our theorem for DDPM, we describe in Appendix C how it can be adapted to other SDE’s like SMLD and the sub-VP SDE; the primary SDE-dependent bound we need is a bound on $\begin{array} { r } { \nabla \ln \frac { \widetilde { p } _ { t } } { \widetilde { p } _ { t + h } } } \end{array}$ . Because the predictor is tracking a changing distribution $p _ { t }$ e, we incur more error terms and worse dependence on parameters $( C _ { \mathrm { L S } } , L )$ than in LMC (Theorem 2.1). Motivated by this, we intersperse the predictor steps with LMC steps—called corrector steps in this context—to give additional time for the process to mix, resulting in improved dependence on parameters.
168
+
169
+ Theorem 3.2 (Predictor-corrector with $L ^ { 2 }$ -accurate score estimate). Keep the setup of Theorem 3.1.
170
+
171
+ $$
172
+ \varepsilon = { \cal O } \left( \frac { \varepsilon _ { \mathrm { T V } } ^ { 4 } } { d L ^ { 2 } C _ { \mathrm { L S } } ^ { 5 / 2 } \ln ( 1 / \varepsilon _ { \chi } ^ { 2 } ) } \right) ,
173
+ $$
174
+
175
+ then Algorithm 2 with appropriate choices of $\begin{array} { r } { T = \Theta \left( \ln ( C _ { \mathrm { L S } } d ) \lor C _ { \mathrm { L S } } \log \left( \frac { 1 } { \varepsilon _ { \mathrm { T V } } } \right) \right) } \end{array}$ , $N _ { m }$ , corrector step sizes $h _ { m }$ and predictor step size $h$ , produces $a$ sample from a distribution $q _ { T }$ such that $\mathrm { T V } ( q _ { T } , p _ { \mathrm { d a t a } } ) < \varepsilon _ { \mathrm { T V } }$ .
176
+
177
+ <table><tr><td>INPUT: Time T, predictor step size h; number of corrector steps Nm per predictor step, corrector step sizeshm</td></tr><tr><td>Draw zo ~ Pprior from the prior distribution.</td></tr><tr><td></td></tr><tr><td>for m from1to T/h do (Predictor) Take a step of (P) to obtain Zmh from z(m-1)h, with f,g as in SMLD or DDPM.</td></tr><tr><td>(Corrector) Starting from 2mh,0 := 2mh, run (LMC-SE) with s(z,T - mh) and step size hm</td></tr><tr><td>for N steps,and let zmh ← zmh,N.</td></tr><tr><td>end for OUTPUT: Return zT,approximate sample from pdata·</td></tr></table>
178
+
179
+ The assumption on $\varepsilon _ { \mathrm { T V } }$ is for convenience in stating our bound. In comparison to using the predictor step alone (Theorem 3.1), note that in the bound on $\varepsilon$ , we obtain the improved rate of the corrector step as in Theorem 2.1; this is because the predictor step only needs to track the actual distribution in $\chi ^ { 2 }$ -divergence with error $O ( 1 )$ , and the final corrector steps are responsible for decreasing the error to $\varepsilon _ { \mathrm { T V } }$ . In comparison to the Annealed Langevin sampler (Algorithm 1, Theorem 2.2), which can be viewed as using the corrector step alone, adding a predictor step provides a better warm start for the distribution at the next smaller noise level, resulting in better dependence on parameters. Thus the predictor-corrector algorithm combines the strengths of the predictor and corrector steps. For realworld data, it can be challenging to estimate TV-distance between distributions given only samples, and hence difficult to check consistency with empirical observations. However, our claim that using a corrector can improve the convergence rate of DDPM/SMLD is consistent with the simulation results in Section 4.2 of $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ .
180
+
181
+ # 4 Theoretical framework and proof sketches
182
+
183
+ The main idea of our analysis framework is to convert a $L ^ { 2 }$ error guarantee to a $L ^ { \infty }$ error guarantee by excluding a bad set, formalized in the following theorem.
184
+
185
+ Theorem 4.1. Let $( \Omega , \mathcal { F } , \mathbb { P } )$ be a probability space and $\{ \mathcal { F } _ { n } \}$ be a filtration of the sigma field $\mathcal { F }$ Suppose $X _ { n } \sim p _ { n }$ , $Z _ { n } \sim q _ { n } ,$ , and $\overline { { Z } } _ { n } \sim \overline { { q } } _ { n }$ are ${ \mathcal { F } } _ { n }$ -adapted random processes taking values in $\Omega$ and $B _ { n } \subseteq \Omega$ are sets such that the following hold for every $n \in { \mathbb { N } } _ { 0 }$ .
186
+
187
+ 2. $\chi ^ { 2 } ( \overline { { q } } _ { n } | | p _ { n } ) \leq D _ { n } ^ { 2 }$ .
188
+
189
+ 3. $\mathbb { P } ( X _ { n } \in B _ { n } ) \le \delta _ { n }$
190
+
191
+ Then the following hold.
192
+
193
+ $$
194
+ \mathrm { T V } ( q _ { n } , \overline { { q } } _ { n } ) \leq \sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \delta _ { k } ^ { 1 / 2 } \qquad \mathrm { T V } ( p _ { n } , q _ { n } ) \leq D _ { n } + \sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \delta _ { k } ^ { 1 / 2 }
195
+ $$
196
+
197
+ For our setting, we will take the “bad sets” $B _ { n }$ to be the set of $x$ where $\| s _ { \theta } ( x ) - \nabla \ln p \|$ is large, $q _ { n }$ to be the discretized process with estimated score, and $\overline { { q } } _ { n }$ to be the discretized process with estimated score except in $B _ { n }$ where the error is large. Because $\overline { { q } } _ { n }$ uses an $L ^ { \infty }$ -accurate score estimate, we can use existing techniques for analyzing Langevin Monte Carlo [VW19; EHZ21; Che+21] to bound $\chi ^ { 2 } ( \overline { { q } } _ { n } | | p _ { n } ) \ :$ .
198
+
199
+ Proof. We bound using condition 1 and Cauchy-Schwarz:
200
+
201
+ $$
202
+ \begin{array} { r l } & { \displaystyle ^ { \mathfrak { n } } \big ( Z _ { n } \ne \overline { { Z } } _ { n } \big ) \le \mathbb { P } \left( \bigcup _ { k = 1 } ^ { n - 1 } \big \{ Z _ { k } \in B _ { k } \big \} \right) \le \sum _ { k = 0 } ^ { n - 1 } \mathbb { P } \left( Z _ { k } \in B _ { k } \right) = \sum _ { k = 0 } ^ { n - 1 } \mathbb { E } _ { q _ { k } } \mathbb { 1 } _ { B _ { k } } } \\ & { \qquad \le \displaystyle \sum _ { k = 0 } ^ { n - 1 } \left( \mathbb { E } _ { p _ { k } } \left( \frac { q _ { k } } { p _ { k } } \right) ^ { 2 } \right) ^ { 1 / 2 } ( \mathbb { E } _ { p _ { k } } \mathbb { 1 } _ { B _ { k } } ) ^ { 1 / 2 } = \sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \delta _ { k } ^ { 1 } } \end{array}
203
+ $$
204
+
205
+ The second inequality then follows from the triangle inequality and Cauchy-Schwarz:
206
+
207
+ $$
208
+ \begin{array} { r l r } { { \mathrm { T V } ( p _ { n } , q _ { n } ) \leq \mathrm { T V } ( p _ { n } , \overline { { q } } _ { n } ) + \mathrm { T V } ( \overline { { q } } _ { n } , q _ { n } ) } } \\ & { } & \\ & { } & { \leq \sqrt { \chi ^ { 2 } ( \overline { { q } } _ { n } | | p _ { n } ) } + \mathrm { T V } ( \overline { { q } } _ { n } , q _ { n } ) \leq D _ { n } + \displaystyle \sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \delta _ { k } ^ { 1 / 2 } . } \end{array}
209
+ $$
210
+
211
+ It now remains to give $\chi ^ { 2 }$ convergence bounds under $L ^ { \infty }$ -accurate score estimate. The following theorem may be of independent interest.
212
+
213
+ Theorem 4.2 (LMC under $L ^ { \infty }$ bound on gradient error). Let $p : \mathbb { R } ^ { d } \mathbb { R }$ be a probability density satisfying Assumption $I ( I , 2 )$ and $s : \mathbb { R } ^ { d } \mathbb { R } ^ { d }$ be a score estimate $s$ with error bounded in $L ^ { \infty }$ : for some ε1 ≤ q $\begin{array} { r } { \varepsilon _ { 1 } \leq \sqrt { \frac { 1 } { 4 8 C _ { \mathrm { L S } } } } } \end{array}$ ,
214
+
215
+ $$
216
+ \| \nabla \ln p - s \| _ { \infty } = \operatorname* { m a x } _ { x \in \mathbb { R } ^ { d } } \| \nabla \ln p ( x ) - s ( x ) \| \| \leq \varepsilon _ { 1 } .
217
+ $$
218
+
219
+ Let $N \in { \mathbb { N } } _ { 0 }$ and $\begin{array} { r } { 0 < h \leq \frac { 1 } { 4 3 9 2 d C _ { \mathrm { L S } } L ^ { 2 } } } \end{array}$ , and assume $L \geq 1$ . Let $q _ { n h }$ denote the nth iterate of LMC with step size $h$ score estimate s. Then
220
+
221
+ $$
222
+ \chi ^ { 2 } ( q _ { ( k + 1 ) h } | | p ) \leq \exp \left( - \frac { h } { 4 C _ { \mathrm { L S } } } \right) \chi ^ { 2 } ( q _ { k h } | | p ) + 1 7 0 d L ^ { 2 } h ^ { 2 } + 5 \varepsilon _ { 1 } ^ { 2 } h
223
+ $$
224
+
225
+ and
226
+
227
+ $$
228
+ { \chi ^ { 2 } } ( q _ { N h } | | p ) \leq \exp \left( - \frac { N h } { 4 C _ { \mathrm { L S } } } \right) \chi ^ { 2 } ( q _ { 0 } | | p ) + 6 8 0 d L ^ { 2 } h C _ { \mathrm { L S } } + 2 0 \varepsilon _ { 1 } ^ { 2 } C _ { \mathrm { L S } } \leq \exp \left( - \frac { N h } { 4 C _ { \mathrm { L S } } } \right) \chi ^ { 2 } ( q _ { 0 } | | p ) + 1
229
+ $$
230
+
231
+ Following $[ \mathrm { C h e } + 2 1 ]$ , we prove this by first defining a continuous-time interpolation $q _ { t }$ of the discrete process, and then deriving a differential inequality for $\chi ^ { 2 } ( q _ { t } | | p )$ using the log-Sobolev inequality for $p$ . Compared to $[ \mathrm { C h e } + 2 1 ]$ , we incur an extra error term arising from the inaccurate gradient.
232
+
233
+ This allows us to sketch the proof of Theorem 2.1; a complete proof is in Section B.
234
+
235
+ Proof sketch of Theorem 2.1. We first define the bad set where the error in the score estimate is large,
236
+
237
+ $$
238
+ B : = \{ \| \nabla \ln p ( x ) - s ( x ) \| > \varepsilon _ { 1 } \}
239
+ $$
240
+
241
+ for some $\varepsilon _ { 1 }$ to be chosen. Then by Chebyshev’s inequality, $\begin{array} { r } { P ( B ) \leq \left( \frac { \varepsilon } { \varepsilon _ { 1 } } \right) ^ { 2 } = : \delta } \end{array}$ . Let $\overline { { q } } _ { n h }$ be the discretized process, but where the score estimate is set to be equal to $\nabla \ln p$ on $B$ ; note it agrees with $q _ { n h }$ as long as it has not hit $B$ . Because $\overline { { q } } _ { n h }$ uses a score estimate that has $L ^ { \infty }$ -error $\varepsilon _ { 1 }$ , Theorem 4.2 gives a bound for $\chi ^ { 2 } ( \overline { { q } } _ { N h } | | p )$ . Then Theorem 4.1 gives
242
+
243
+ $$
244
+ { \operatorname { F V } } ( q _ { n h } , \overline { { q } } _ { n h } ) \le \sum _ { k = 0 } ^ { n - 1 } ( \chi ^ { 2 } ( \overline { { q } } _ { k h } \| p ) + 1 ) ^ { 1 / 2 } P ( B ) ^ { 1 / 2 } \le \sum _ { k = 0 } ^ { n - 1 } \left( \exp \left( - \frac { k h } { 8 C _ { \mathrm { L S } } } \right) \chi ^ { 2 } ( q _ { 0 } \| p ) ^ { 1 / 2 } + 1 \right) \delta ^ { 1 / 2 }
245
+ $$
246
+
247
+ The theorem then follows from choosing parameters so that χ2(qT ||p) ≤ ε2χ and TV(qT , qT ) ≤ $\varepsilon _ { \mathrm { T V } }$ .
248
+
249
+ We remark that the main inefficiency in the proof comes from the use of Chebyshev’s inequality, and a $L ^ { p }$ bound on the error for $p > 2$ will improve the bound.
250
+
251
+ Proof sketch of Theorem 2.2. Choosing the sequence $\sigma _ { 1 } < \cdots < \sigma _ { M }$ to be geometric with ratio $1 + \frac { 1 } { \sqrt { d } }$ ensures that the $\chi ^ { 2 }$ -divergence between successive distributions $p _ { \sigma _ { m } ^ { 2 } }$ is $O ( 1 )$ . Then, choosing $\sigma _ { M } ^ { 2 } = \Omega ( C _ { \mathrm { L S } } d )$ ensures we have a warm start for the highest noise level: $\chi ^ { 2 } ( \operatorname { \rho _ { p r i o r } } \lvert \lvert p _ { \sigma _ { M } ^ { 2 } } ) = O ( 1 )$ . This uses $\begin{array} { r } { O \left( \sqrt { d } \log \left( \frac { d C _ { \mathrm { L S } } } { \sigma _ { \mathrm { m i n } } ^ { 2 } } \right) \right) } \end{array}$ noise levels. Chebyshev’s inequality can be used to show that the distribution of the final sample $x ^ { ( m ) }$ for $p _ { \sigma _ { m } ^ { 2 } }$ is ${ \cal O } ( \varepsilon _ { \mathrm { T V } } / M )$ close to a distribution that is ${ \cal O } ( M / \varepsilon _ { \mathrm { T V } } )$ in in $\chi ^ { 2 }$ -divergence from Theorem 2.1 then $p _ { \sigma _ { m + 1 } ^ { 2 } }$ . This gives the warm st the required bound for rt parameter . Note that $K _ { \chi } = ( M / \varepsilon _ { \mathrm { T V } } ) ^ { 1 / 2 }$ ; substitutinged from each $\varepsilon$ level add to ${ \cal O } ( \varepsilon _ { \mathrm { T V } } )$ . □
252
+
253
+ To analyze the predictor-based algorithms, we also first prove convergence bounds under $L ^ { \infty }$ - accurate score estimate.
254
+
255
+ Theorem 4.3 (Predictor steps under $L ^ { \infty }$ bound on score estimate, DDPM). Let $p : \mathbb { R } ^ { d } \mathbb { R }$ be a probability density satisfying Assumption $I$ and $s ( \cdot , t ) : \mathbb { R } ^ { d } \to \mathbb { R } ^ { d }$ be a score estimate s with error bounded in $L ^ { \infty }$ for each $t \in [ 0 , T ]$ :
256
+
257
+ $$
258
+ \| \nabla \ln p - s ( \cdot , t ) \| _ { \infty } = \operatorname* { m a x } _ { x \in \mathbb { R } ^ { d } } \| \nabla \ln \widetilde { p } _ { t } ( x ) - s ( x , t ) \| \| \le \varepsilon _ { 1 } .
259
+ $$
260
+
261
+ Consider DDPM with $g \equiv 1$ , $T \geq 1 \vee \ln ( C _ { \mathrm { L S } } d ) ,$ , and $\begin{array} { r } { h = O \left( \frac { 1 } { C _ { \mathrm { L S } } ( d + C _ { \mathrm { L S } } ) ( L \vee L _ { s } ) ^ { 2 } } \right) } \end{array}$ . (Recall that $p _ { k h }$ and $q _ { k h }$ are the $k$ -th iterate of LMC with step size $h$ and true/estimated score respectively.) Then
262
+
263
+ $$
264
+ \chi ^ { 2 } ( q _ { ( k + 1 ) h } | | p _ { ( k + 1 ) h } ) \leq \chi ^ { 2 } ( q _ { k h } | | p _ { k h } ) e ^ { \left( - \frac { 1 } { 8 C _ { 1 S } } + 8 \varepsilon _ { 1 } ^ { 2 } \right) h } + O ( \varepsilon _ { 1 } ^ { 2 } h + ( L _ { s } ^ { 2 } + L ^ { 2 } d ) h ^ { 2 } )
265
+ $$
266
+
267
+ $\begin{array} { r } { \varepsilon _ { 1 } < \frac { 1 } { 1 2 8 C _ { \mathrm { L S } } } } \end{array}$
268
+
269
+ $$
270
+ \chi ^ { 2 } ( q _ { N h } | | p _ { N h } ) \leq e ^ { - \frac { N h } { 1 6 C _ { 1 S } } } \chi ^ { 2 } ( q _ { 0 } | | p _ { 0 } ) + O \left( C _ { \mathrm { L S } } \left( \varepsilon _ { 1 } ^ { 2 } + ( L _ { s } ^ { 2 } + L ^ { 2 } d ) h \right) \right) .
271
+ $$
272
+
273
+ Moreover, for $q _ { 0 } = p _ { \mathrm { p r i o r } } , \chi ^ { 2 } ( q _ { 0 } | | p _ { 0 } ) \leq e ^ { - T / 2 } C _ { \mathrm { L S } } d .$
274
+
275
+ We give a more precise statement in Section C. Note that unlike the case for LMC as in Theorem 4.2, the base density $p _ { t }$ is also evolving in time, which produces additional error terms and necessitates a more involved analysis. The additional error terms can be bounded using the Donsker-Varadhan variational principle, concentration for distributions satisfying LSI, and error bounds between $p _ { t }$ and $p _ { t + h }$ for small $h$ .
276
+
277
+ Here, we only state the result about DDPM, which has better bounds than SMLD (when $g \equiv 1$ ) because both the forward and backwards processes exhibit better mixing properties: the warm start improves exponentially rather than inversely with $T$ , and the log-Sobolev constant is uniformly bounded by that of $p _ { \mathrm { d a t a } }$ rather than increasing. However, the analysis in Section C can be directly applied to SMLD and other models as well. We also note there is a sense in which DDPM and SMLD are equivalent under a rescaling in time and space (see discussion in Section C.2).
278
+
279
+ Note that the choice of $h$ is necessary for exponential decay of error; as if $h$ is not small enough, we would get an exponential growing instead of decaying factor in the one-step error (See Section C for details). Such an $h$ may however still be a suitable choice when used in conjunction with a corrector step. Moreover, as $\varepsilon _ { 1 } \to 0$ , with appropriate choice of $T$ and $h$ , $q _ { N h }$ and $p _ { N h }$ can be made arbitrarily close.
280
+
281
+ Theorem 3.1 now follows from the $L ^ { \infty }$ result (Theorem 4.3) in the same way that Theorem 2.1 follows from Theorem 4.2.
282
+
283
+ To prove Theorem 3.2, it suffices to run the corrector steps only at the lowest noise level, that is, set $N _ { m } = 0$ for $1 \leq m < T / h$ , although we note that interleaving the predictor and corrector steps does empirically help with mixing. The proof follows from using the predictor and the corrector theorems in series: first apply Theorem 3.1 with $\varepsilon _ { \chi } = O ( 1 )$ to show that the predictor results a warm start $p _ { \mathrm { d a t a } }$ , then use Theorem 2.1 to show the corrector reduces the error to the desired $\varepsilon _ { \mathrm { T V } }$ .
284
+
285
+ # 5 Conclusion
286
+
287
+ We introduced a general framework to analyze SDE-based sampling algorithms given a $L ^ { 2 }$ -error score estimate, and used it to obtain the first convergence bounds for several score-based generative models with polynomial complexity in all parameters. Our analysis can potentially be adapted to other SDE’s and sampling algorithms beyond Langevin Monte Carlo. There is also room for improving our analysis to better use smoothing properties of the SDE’s and compare different choices of the diffusion speed $g$ .
288
+
289
+ We present several interesting further directions to explore. In addition to extending the analysis to other SGM’s and comparing their theoretical performance (relative to each other as well as other approaches to generative modeling), we propose the following.
290
+
291
+ Analysis for multimodal distributions. Our assumption of a bounded log-Sobolev constant essentially limits the analysis to distributions that are close to unimodal. However, SGM’s are empirically successful at modeling multimodal distributions [SE19], and in fact perform better with multimodal distributions than other approaches such as GAN’s. Can we analyze the convergence for simple multimodal distributions, such as a mixture of distributions each with bounded log-Sobolev constant? Positive results on sampling from multimodal distributions such as [GLR18] suggest this is possible, as the sequence of noised distributions is natural for annealing and tempering methods (see [GLR18, Remark 7.2]).
292
+
293
+ Weakening conditions on the score estimate. The assumption that we have a score estimate that is $O ( 1 )$ -accurate in $L ^ { 2 }$ , although weaker than the usual assumptions for theoretical analysis, is in fact still a strong condition in practice that seems unlikely to be satisfied (and difficult to check) when learning complex distributions such as distributions of images. What would a reasonable weaker condition be, and in what sense can we still obtain reasonable samples?
294
+
295
+ Guarantees for learning the score function. Our analysis assumes a $L ^ { 2 }$ -estimate of the score function is given, but the question remains of when we can find such an estimate. What natural conditions on distributions allow their score functions to be learned by a neural network? Various works have considered the representability of data distributions by diffusion-like processes [TR19], but the questions of optimization and generalization appear more challenging.
296
+
297
+ # Acknowledgements
298
+
299
+ We thank Andrej Risteski for helpful conversations. This work was done in part while $\mathrm { H L }$ was visiting the Simons Institute for the Theory of Computing. The work was supported in part by National Science Foundation via awards DMS-2012286 and CCF-1934964 (Duke Tripods).
300
+
301
+ # References
302
+
303
+ [ACB17] Martin Arjovsky, Soumith Chintala, and Leon Bottou. “Wasserstein generative ad- ´ versarial networks”. In: International conference on machine learning. PMLR. 2017, pp. 214–223.
304
+ [And82] Brian DO Anderson. “Reverse-time diffusion equation models”. In: Stochastic Processes and their Applications 12.3 (1982), pp. 313–326.
305
+ [BGL13] Dominique Bakry, Ivan Gentil, and Michel Ledoux. Analysis and geometry of Markov diffusion operators. Vol. 348. Springer Science & Business Media, 2013.
306
+ [BL02] Herm Jan Brascamp and Elliott H Lieb. “On extensions of the Brunn-Minkowski and Prekopa-Leindler theorems, including inequalities for log concave functions, and with ´ an application to the diffusion equation”. In: Inequalities. Springer, 2002, pp. 441–464.
307
+ [BMR20] Adam Block, Youssef Mroueh, and Alexander Rakhlin. “Generative modeling with denoising auto-encoders and Langevin sampling”. In: arXiv preprint arXiv:2002.00107 (2020).
308
+ [CB18] Xiang Cheng and Peter Bartlett. “Convergence of Langevin MCMC in KLdivergence”. In: Algorithmic Learning Theory. PMLR. 2018, pp. 186–211.
309
+ [Cha04] Djalil Chafa¨ı. “Entropies, convexity, and functional inequalities, On $\Phi$ -entropies and $\Phi$ -Sobolev inequalities”. In: Journal of Mathematics of Kyoto University 44.2 (2004), pp. 325–363.
310
+ [Che+18] Xiang Cheng, Niladri S Chatterji, Peter L Bartlett, and Michael I Jordan. “Underdamped Langevin MCMC: A non-asymptotic analysis”. In: Conference on learning theory. PMLR. 2018, pp. 300–323.
311
+ [Che+21] Sinho Chewi, Murat A Erdogdu, Mufan Bill Li, Ruoqi Shen, and Matthew Zhang. “Analysis of Langevin Monte Carlo from Poincare to Log-Sobolev”. In: ´ arXiv preprint arXiv:2112.12662 (2021).
312
+ [Dal17] Arnak S Dalalyan. “Theoretical guarantees for approximate sampling from smooth and log-concave densities”. In: Journal of the Royal Statistical Society: Series B (Statistical Methodology) 79.3 (2017), pp. 651–676.
313
+ [Dat+19] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. “Plug and play language models: A simple approach to controlled text generation”. In: arXiv preprint arXiv:1912.02164 (2019).
314
+ [De $+ 2 1 ]$ 1 Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. “Diffusion Schrodinger bridge with applications to score-based generative modeling”. In: ¨ Advances in Neural Information Processing Systems 34 (2021).
315
+ [DK19] Arnak S Dalalyan and Avetik Karagulyan. “User-friendly guarantees for the Langevin Monte Carlo with inaccurate gradient”. In: Stochastic Processes and their Applications 129.12 (2019), pp. 5278–5311.
316
+ [DM17] Alain Durmus and Eric Moulines. “Nonasymptotic convergence analysis for the unadjusted Langevin algorithm”. In: The Annals of Applied Probability 27.3 (2017), pp. 1551–1587.
317
+ [DN21] Prafulla Dhariwal and Alexander Nichol. “Diffusion models beat gans on image synthesis”. In: Advances in Neural Information Processing Systems 34 (2021).
318
+ [DSB16] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. “Density estimation using real nvp”. In: arXiv preprint arXiv:1605.08803 (2016).
319
+ [DVK21] Tim Dockhorn, Arash Vahdat, and Karsten Kreis. “Score-Based Generative Modeling with Critically-Damped Langevin Diffusion”. In: arXiv preprint arXiv:2112.07068 (2021).
320
+ [EHZ21] Murat A. Erdogdu, Rasa Hosseinzadeh, and Matthew S. Zhang. “Convergence of Langevin Monte Carlo in Chi-Squared and Renyi Divergence”. In: arXiv preprint arXiv:2007.11612 (2021).
321
+ [GLR18] Rong Ge, Holden Lee, and Andrej Risteski. “Beyond log-concavity: provable guarantees for sampling multi-modal distributions using simulated tempering langevin monte carlo”. In: Proceedings of the 32nd International Conference on Neural Information Processing Systems. 2018, pp. 7858–7867.
322
+ $[ \mathrm { G o o } { + } 1 4 ]$ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. “Generative adversarial nets”. In: Advances in neural information processing systems 27 (2014).
323
+ [Gra+19] Will Grathwohl, Kuan-Chieh Wang, Jorn-Henrik Jacobsen, David Duvenaud, Moham-¨ mad Norouzi, and Kevin Swersky. “Your classifier is secretly an energy based model and you should treat it like one”. In: arXiv preprint arXiv:1912.03263 (2019).
324
+ [Har04] Gilles Harge. “A convex/log-concave correlation inequality for Gaussian measure and ´ an application to abstract Wiener spaces”. In: Probability theory and related fields 130.3 (2004), pp. 415–440.
325
+ [HJA20] Jonathan Ho, Ajay Jain, and Pieter Abbeel. “Denoising diffusion probabilistic models”. In: Advances in Neural Information Processing Systems 33 (2020), pp. 6840–6851.
326
+ $[ \mathrm { J i n } \substack { + 2 2 } ]$ Bowen Jing, Gabriele Corso, Renato Berlinghieri, and Tommi Jaakkola. “Subspace Diffusion Generative Models”. In: arXiv preprint arXiv:2205.01490 (2022).
327
+ [KW19] Diederik P Kingma and Max Welling. “An introduction to variational autoencoders”. In: arXiv preprint arXiv:1906.02691 (2019).
328
+ [Lee+21] Holden Lee, Chirag Pabbaraju, Anish Sevekari, and Andrej Risteski. “Universal Approximation for Log-concave Distributions using Well-conditioned Normalizing Flows”. In: arXiv preprint arXiv:2107.02951 (2021).
329
+ [Men+21] Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. “SDEdit: Guided image synthesis and editing with stochastic differential equations”. In: International Conference on Learning Representations. 2021.
330
+ [MMS20] Mateusz B Majka, Aleksandar Mijatovic, and Łukasz Szpruch. “Nonasymptotic ´ bounds for sampling algorithms without log-concavity”. In: The Annals of Applied Probability 30.4 (2020), pp. 1534–1581.
331
+ [SE19] Yang Song and Stefano Ermon. “Generative Modeling by Estimating Gradients of the Data Distribution”. In: Proceedings of the 33rd Annual Conference on Neural Information Processing Systems. 2019.
332
+ [SE20] Yang Song and Stefano Ermon. “Improved techniques for training score-based generative models”. In: arXiv preprint arXiv:2006.09011 (2020).
333
+ $[ { \mathrm { S o h } } + 1 5 ]$ Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. “Deep unsupervised learning using nonequilibrium thermodynamics”. In: International Conference on Machine Learning. PMLR. 2015, pp. 2256–2265.
334
+ $[ \mathrm { S o n } { + } 2 0 \mathrm { a } ]$ Yang Song, Sahaj Garg, Jiaxin Shi, and Stefano Ermon. “Sliced score matching: A scalable approach to density and score estimation”. In: Uncertainty in Artificial Intelligence. PMLR. 2020, pp. 574–584.
335
+ $[ \mathrm { S o n } { + } 2 0 \mathrm { b } ]$ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. “Score-Based Generative Modeling through Stochastic Differential Equations”. In: International Conference on Learning Representations. 2020.
336
+ $[ \mathrm { S o n } { + } 2 1 \mathrm { a } ]$ Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. “Maximum likelihood training of score-based diffusion models”. In: Advances in Neural Information Processing Systems 34 (2021).
337
+ $[ \mathsf { S o n } { + } 2 1 \mathsf { b } ]$ Yang Song, Liyue Shen, Lei Xing, and Stefano Ermon. “Solving Inverse Problems in Medical Imaging with Score-Based Generative Models”. In: arXiv preprint arXiv:2111.08005 (2021).
338
+ [TR19] Belinda Tzen and Maxim Raginsky. “Theoretical guarantees for sampling and inference in generative models with latent diffusions”. In: Conference on Learning Theory. PMLR. 2019, pp. 3084–3114.
339
+ [VW19] Santosh Vempala and Andre Wibisono. “Rapid convergence of the unadjusted langevin algorithm: Isoperimetry suffices”. In: Advances in neural information processing systems 32 (2019), pp. 8094–8106.
340
+ [ZML16] Junbo Zhao, Michael Mathieu, and Yann LeCun. “Energy-based generative adversarial network”. In: arXiv preprint arXiv:1609.03126 (2016).
341
+
342
+ 1. For all authors...
343
+
344
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
345
+ (b) Did you describe the limitations of your work? [Yes]
346
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A]
347
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
348
+
349
+ 2. If you are including theoretical results...
350
+
351
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
352
+
353
+ 3. If you ran experiments...
354
+
355
+ (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)? [N/A]
356
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A]
357
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
358
+ (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)? [N/A]
359
+
360
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
361
+
362
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
363
+ (b) Did you mention the license of the assets? [N/A]
364
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
365
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
366
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
367
+
368
+ 5. If you used crowdsourcing or conducted research with human subjects...
369
+
370
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
371
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
372
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/dUSI4vFyMK/dUSI4vFyMK_content_list.json ADDED
@@ -0,0 +1,1615 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Convergence for score-based generative modeling with polynomial complexity ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 200,
8
+ 122,
9
+ 799,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Holden Lee Department of Applied Mathematics and Statistics Johns Hopkins University hlee283@jhu.edu ",
17
+ "bbox": [
18
+ 214,
19
+ 226,
20
+ 545,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Jianfeng Lu \nDepartment of Mathematics Duke University \njianfeng@math.duke.edu ",
28
+ "bbox": [
29
+ 593,
30
+ 227,
31
+ 784,
32
+ 281
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Yixin Tan Department of Mathematics Duke University yixin.tan@duke.edu ",
39
+ "bbox": [
40
+ 405,
41
+ 303,
42
+ 591,
43
+ 358
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 395,
54
+ 535,
55
+ 411
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Score-based generative modeling (SGM) is a highly successful approach for learning a probability distribution from data and generating further samples. We prove the first polynomial convergence guarantees for the core mechanic behind SGM: drawing samples from a probability density $p$ given a score estimate (an estimate of $\\nabla \\ln p$ ) that is accurate in $L ^ { 2 } ( p )$ . Compared to previous works, we do not incur error that grows exponentially in time or that suffers from a curse of dimensionality. Our guarantee works for any smooth distribution and depends polynomially on its log-Sobolev constant. Using our guarantee, we give a theoretical analysis of score-based generative modeling, which transforms white-noise input into samples from a learned data distribution given score estimates at different noise scales. Our analysis gives theoretical grounding to the observation that an annealed procedure is required in practice to generate good samples, as our proof depends essentially on using annealing to obtain a warm start at each step. Moreover, we show that a predictor-corrector algorithm gives better convergence than using either portion alone. ",
62
+ "bbox": [
63
+ 233,
64
+ 434,
65
+ 764,
66
+ 641
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 685,
77
+ 310,
78
+ 703
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A key task in machine learning is to learn a probability distribution from data, in a way that allows efficient generation of additional samples from the learned distribution. Score-based generative modeling (SGM) is one empirically successful approach that implicitly learns the probability distribution by learning how to transform white noise into the data distribution, and gives stateof-the-art performance for generating images and audio [SE19; Dat+19; Gra+19; SE20; $\\mathrm { S o n } { + } 2 0 \\mathrm { b }$ ; $\\mathrm { M e n } { + } 2 1$ ; $\\mathbf { S o n } { + } 2 1 \\mathbf { b }$ ; Son $+ 2 1 \\mathrm { a }$ ; $\\mathrm { J i n } { + } 2 2 ^ { \\cdot }$ ]. It also yields a conditional generation process for inverse problems [DN21]. The basic idea behind score-based generative modeling is to first estimate the score function from data $[ \\mathrm { S o n } { + } 2 0 \\mathrm { a } ]$ and then to sample the distribution based on the learned score function. Other approaches for generative modeling include generative adversarial networks (GANs) $[ \\mathrm { G o o { + } 1 4 }$ ; ACB17], normalizing flows [DSB16], variational autoencoders [KW19], and energybased models [ZML16]. While score-based generative modeling has achieved great success, its theoretical analysis is still lacking and is the focus of our work. ",
85
+ "bbox": [
86
+ 173,
87
+ 724,
88
+ 825,
89
+ 890
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "1.1 Background ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 174,
99
+ 92,
100
+ 299,
101
+ 106
102
+ ],
103
+ "page_idx": 1
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "General framework. The score function of a distribution $P$ with density $p$ is defined as the gradient of the log-pdf, $\\nabla \\ln p$ . Its significance arises from the fact that knowing the score function allows running a variety of sampling algorithms, based on discretizations of stochastic differential equations (SDE’s), to sample from $p$ . SGM consists of two steps: first, learning an estimate of the score function for a sequence of “noisy” versions of the data distribution $P _ { \\mathrm { d a t a } }$ , and second, using the score function in lieu of the gradient of the log-pdf in the chosen sampling algorithm. We now describe each of these steps more precisely. ",
108
+ "bbox": [
109
+ 173,
110
+ 117,
111
+ 825,
112
+ 215
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "First, a method of adding noise to the data distribution is fixed; this takes the form of evolving a (forward) stochastic differential equation (SDE) starting from the data distribution. We fix a sequence of noise levels $\\sigma _ { 1 } < \\cdots < \\sigma _ { N }$ . For $\\sigma \\in \\{ \\sigma _ { 1 } , \\dots , \\sigma _ { N } \\}$ , let the resulting distributions be $P _ { \\sigma ^ { 2 } }$ and the distributions conditional on the starting data point be $P _ { \\sigma ^ { 2 } } ( \\cdot | x )$ . Typically, $\\sigma _ { 1 }$ is chosen so that $P _ { \\sigma _ { 1 } ^ { 2 } } \\approx P _ { \\mathrm { d a t a } }$ and $P _ { \\sigma _ { N } ^ { 2 } }$ is close to some “prior” distribution that is easy to sample from, such as $N ( 0 , \\sigma _ { N } ^ { 2 } I _ { d } )$ . While the score $\\nabla \\ln p _ { \\sigma ^ { 2 } }$ cannot be estimated directly, it turns out that a de-noising objective that is equivalent to the score-matching objective can be calculated [SE19]. This de-noising objective can be estimated from samples $( X , { \\tilde { X } } )$ where $\\widetilde { X } \\sim P _ { \\sigma ^ { 2 } } ( \\cdot | x )$ . The objective is represented and optimized within an expressive function class, typically neural networks, to obtain a $L ^ { 2 }$ -estimate of the score, that is, $s _ { \\theta } ( x , \\overbar { \\sigma } ^ { 2 } )$ such that ",
119
+ "bbox": [
120
+ 174,
121
+ 220,
122
+ 825,
123
+ 366
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "equation",
129
+ "img_path": "images/6e0d0b091faae95c0fa7889361326e3b709d2de095522c32799c0dfb8dd064d9.jpg",
130
+ "text": "$$\n\\begin{array} { r l } { { \\mathbb { E } _ { { x } \\sim { P } _ { \\sigma ^ { 2 } } } [ \\| s _ { \\theta } ( x , \\sigma ^ { 2 } ) - \\nabla \\ln { p } _ { \\sigma ^ { 2 } } ( x ) \\| ^ { 2 } ] } \\quad } & { { } } \\end{array}\n$$",
131
+ "text_format": "latex",
132
+ "bbox": [
133
+ 374,
134
+ 373,
135
+ 624,
136
+ 393
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "text",
142
+ "text": "is small. ",
143
+ "bbox": [
144
+ 174,
145
+ 401,
146
+ 230,
147
+ 415
148
+ ],
149
+ "page_idx": 1
150
+ },
151
+ {
152
+ "type": "text",
153
+ "text": "The reason we estimate the score function $\\nabla \\ln p _ { \\sigma ^ { 2 } }$ is that there are a variety of sampling algorithms—based on simulating SDE’s—that can sample from $p$ given access to $\\nabla \\ln p$ , including Langevin Monte Carlo and Hamiltonian Monte Carlo. The second step is then to use the estimated score function $s _ { \\theta } ( x , t )$ in lieu of the exact gradient in the sampling algorithm to successively obtain samples from $p _ { \\sigma _ { N } ^ { 2 } } , \\ldots , p _ { \\sigma _ { 1 } ^ { 2 } }$ . This sequence interpolates smoothly between the prior distribution (e.g., $N ( 0 , \\sigma _ { N } ^ { 2 } I _ { d } ) )$ and the data distribution $P _ { \\mathrm { d a t a } }$ ; such an “annealing” or “homotopy” method is required in practice to generate good samples $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ . ",
154
+ "bbox": [
155
+ 173,
156
+ 421,
157
+ 825,
158
+ 523
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "Examples of SGM’s. There have been several instantiations of this general approach. [SE19] add gaussian noise to the data and then use Langevin diffusion at a discrete set of noise levels $\\sigma _ { N } > \\cdots > \\sigma _ { 1 }$ as the sampling algorithm. $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ take the continuous perspective and consider a more general framework, where the forward process can be any reasonable SDE. Then a natural reverse $S D E$ evolves the final distribution $p _ { \\sigma _ { N } ^ { 2 } }$ back to the data distribution; this process can be simulated with the estimated score. They consider methods based on two different SDE’s: score-matching Langevin diffusion (SMLD) based on adding Gaussian noise and denosing diffusion probabilistic models (DDPM) $[ \\mathrm { S o h + } 1 5$ ; HJA20], based on the Ornstein-Uhlenbeck process. Note that a difference with MCMC-based methods is that these SDE’s are evolved for a fixed amount of time, rather than until convergence. However, they can be combined with MCMC-based methods such as Langevin diffusion in the predictor-corrector approach for improved convergence. [DVK21] include Hamiltonian dynamics: they augment the state space with a velocity variable and consider a critically-damped version of the Ornstein-Uhlenbeck process. Finally, we note the work of [De $+ 2 1 ]$ , who introduce the Diffusion Schrodinger Bridge method to learn a diffusion that more quickly ¨ transforms the prior into the data distribution. ",
165
+ "bbox": [
166
+ 174,
167
+ 539,
168
+ 825,
169
+ 748
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "We will give a general analysis framework for SGM’s that applies to the algorithms in both [SE19] and $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ . ",
176
+ "bbox": [
177
+ 176,
178
+ 755,
179
+ 823,
180
+ 784
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "1.2 Prior work and challenges for theory ",
187
+ "text_level": 1,
188
+ "bbox": [
189
+ 176,
190
+ 801,
191
+ 468,
192
+ 816
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Although the literature on convergence for Langevin Monte Carlo [DM17; CB18; ${ \\mathrm { C h e } } + 1 8$ ; Dal17; DK19; MMS20; EHZ21] and related sampling algorithms is extensive, prior works mainly consider the case of exact or stochastic gradients. In contrast, by the structure of the loss function (1), the score function learned in SGM is only accurate in $L ^ { 2 } ( p )$ . This poses a significant challenge for analysis, as the stationary distribution of Langevin diffusion with $L ^ { 2 } ( p )$ -accurate gradient can be arbitrarily far from $p$ (see Appendix D). Hence, any analysis must be utilizing the short/mediumterm convergence, while overcoming the potential issue of long-term behavior of convergence to an incorrect distribution. ",
199
+ "bbox": [
200
+ 174,
201
+ 827,
202
+ 825,
203
+ 911
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "",
210
+ "bbox": [
211
+ 174,
212
+ 90,
213
+ 823,
214
+ 119
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "[BMR20] give the first theoretical analysis of SGM, and in particular, Langevin Monte Carlo with $L ^ { 2 } ( p )$ -accurate gradients. First, they show using uniform generalization bounds that optimizing the de-noising autoencoder (DAE) objective does in fact give a $L ^ { 2 } ( p )$ -accurate score function, with sample complexity depending on the complexity of the function class. They analyze convergence of LMC in Wasserstein distance. However, the error they obtain (Theorem 13) only decreases as $\\varepsilon ^ { 1 / d }$ where $\\varepsilon$ is the accuracy of the score estimate—so it suffers from the curse of dimensionality—and increases exponentially in the time that the process is run, the dimension, and the smoothness of the distribution, as in ODE/SDE discretization arguments that do not depend on contractivity. ",
221
+ "bbox": [
222
+ 173,
223
+ 125,
224
+ 825,
225
+ 238
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "[De $+ 2 1 ]$ give an analysis for $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ in TV distance that requires a $L ^ { \\infty }$ -accurate score function and depends exponentially on the amount of time the reverse SDE is run. Although exponential dependence is bad in general, it is mollified using their Diffusion Schrodinger Bridge (DSB) approach, ¨ as it allows running for a shorter, fixed amount of time, before the forward SDE converges to the prior distribution. However, this supposes that a good solution can be found for the DSB problem, and theoretical guarantees may be difficult to obtain. ",
232
+ "bbox": [
233
+ 173,
234
+ 243,
235
+ 825,
236
+ 328
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "We overcome the challenges of analysis with a $L ^ { 2 } ( p )$ -accurate gradient, and give the first analysis with only polynomial dependence on running time, dimension, and smoothness of the distribution, with rates that are a fixed power of $\\varepsilon$ . Our convergence result is in TV distance. We assume only smoothness conditions and a bounded log-Sobolev constant of the data distribution, a weaker condition than the dissipativity condition required by [BMR20]. We introduce a general framework for analysis of sampling algorithms given $L ^ { 2 }$ -accurate gradients (score function) based on constructing a “bad set” with small measure and showing convergence of the discretized process conditioned on not hitting the bad set. We use our framework to give an end-to-end analysis for both the algorithms in [SE19] and $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ , and illuminate the relative performance of different methods in practice. ",
243
+ "bbox": [
244
+ 173,
245
+ 333,
246
+ 825,
247
+ 459
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "1.3 Notation and organization ",
254
+ "text_level": 1,
255
+ "bbox": [
256
+ 174,
257
+ 474,
258
+ 395,
259
+ 489
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Through out the paper, $p ( x ) \\propto e ^ { - V ( x ) }$ denotes the target distribution in $\\mathbb { R } ^ { d }$ and $V : \\mathbb { R } ^ { d } \\mathbb { R }$ is referred to as the potential. We abuse notation by identifying a measure with its density when context allows. We write $a \\wedge b : = \\operatorname* { m i n } \\{ a , b \\}$ and $a \\vee b : = \\operatorname* { m a x } \\{ a , b \\}$ . We use $a = O ( b )$ or $b = \\Omega ( a )$ to indicate that $a \\leq C b$ for a universal constant $C > 0$ . Also, we write $a = \\Theta ( b )$ if there are universal constants $c ^ { \\prime } > c > 0$ such that $c b \\leq a \\leq c b$ , and the notation ${ \\tilde { O } } ( \\cdot )$ means it hides polylog factors in the parameters. Definite integrals without limits are taken over $\\mathbb { R } ^ { d }$ . ",
266
+ "bbox": [
267
+ 173,
268
+ 498,
269
+ 825,
270
+ 587
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "In Section 2 we explain our main results for Langevin Monte Carlo with $L ^ { 2 } ( p )$ -accurate score estimate and use it to derive convergence bounds for the annealed LMC method of [SE19]. In Section 3, we give our main results for the predictor-corrector algorithms of $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ based on simulating reverse SDE’s. Our proofs are based on a common framework which we introduce in Section 4. Full proofs are in the appendix. ",
277
+ "bbox": [
278
+ 174,
279
+ 593,
280
+ 825,
281
+ 662
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "2 Results for Langevin dynamics with estimated score ",
288
+ "text_level": 1,
289
+ "bbox": [
290
+ 174,
291
+ 681,
292
+ 637,
293
+ 699
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Let $p ( x ) \\propto e ^ { - V ( x ) }$ be a probability density on $\\mathbb { R } ^ { d }$ such that $V$ is $C ^ { 1 }$ . Langevin diffusion with stationary distribution $p$ is the stochastic process defined by the SDE ",
300
+ "bbox": [
301
+ 173,
302
+ 713,
303
+ 825,
304
+ 743
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "equation",
310
+ "img_path": "images/0455d432ab2447354b1b9b5b1b311421bc6e0546d6a6232939d8db3d9d2acb0f.jpg",
311
+ "text": "$$\nd x _ { t } = - \\nabla V ( x _ { t } ) d t + \\sqrt { 2 } d w _ { t } ,\n$$",
312
+ "text_format": "latex",
313
+ "bbox": [
314
+ 393,
315
+ 748,
316
+ 601,
317
+ 768
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "where $w _ { t }$ is a standard Brownian Motion in $\\mathbb { R } ^ { d }$ . The rate of convergence to $p$ in $\\chi ^ { 2 }$ and $\\mathrm { K L }$ divergences are given by the Poincare and log-Sobolev constants of ´ $p$ , respectively; see Section E.1. To obtain the Langevin Monte Carlo (LMC) algorithm, we take the Euler-Murayama discretization of the SDE. We define LMC with score estimate $s ( x ) \\approx - \\nabla V ( x )$ and step size $h$ by ",
324
+ "bbox": [
325
+ 173,
326
+ 775,
327
+ 825,
328
+ 833
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "equation",
334
+ "img_path": "images/c2298209ff41328c1291fe3617db39ccaf0312ee77907bcb48571b39da4876a4.jpg",
335
+ "text": "$$\nx _ { ( k + 1 ) h } = x _ { k h } + h \\cdot s ( x _ { k h } ) + \\sqrt { 2 h } \\cdot \\xi _ { k h } , \\mathrm { w h e r e } \\xi _ { k h } \\sim N ( 0 , I _ { d } ) .\n$$",
336
+ "text_format": "latex",
337
+ "bbox": [
338
+ 245,
339
+ 839,
340
+ 681,
341
+ 858
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "We make the following assumptions on the density $p$ and the score estimate $s$ , which we will use throughout this paper. ",
348
+ "bbox": [
349
+ 173,
350
+ 864,
351
+ 823,
352
+ 893
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Assumption 1. $p$ is a probability density on $\\mathbb { R } ^ { d }$ such that the following hold. ",
359
+ "bbox": [
360
+ 174,
361
+ 896,
362
+ 681,
363
+ 912
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "1. $\\ln { p }$ is $C ^ { 1 }$ and $L$ -smooth, that is, $\\nabla \\ln p$ is $L$ -Lipschitz. We assume $L \\geq 1$ . ",
370
+ "bbox": [
371
+ 210,
372
+ 90,
373
+ 715,
374
+ 107
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "2. $p$ satisfies a log-Sobolev inequality with constant $C _ { \\mathrm { L S } }$ . We assume $C _ { \\mathrm { L S } } \\geq 1$ ",
381
+ "bbox": [
382
+ 209,
383
+ 113,
384
+ 723,
385
+ 130
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "3. (Moments) $\\| \\mathbb { E } _ { p } x \\| \\leq M _ { 1 }$ and ${ \\mathbb E } _ { p } \\left\\| x \\right\\| ^ { 2 } \\le M _ { 2 }$ . ",
392
+ "bbox": [
393
+ 210,
394
+ 136,
395
+ 534,
396
+ 156
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "We note that the uniform Lipschitzness assumption (1) helps ensure a unique strong solution to the Langevin diffusion, as in [BMR20]. One special case where one can prove Lipschitzness for all $t$ is when $p _ { 0 }$ is strongly log-concave $[ \\mathrm { L e e } + 2 1$ , Lemma 28]. Although satisfying a log-Sobolev inequality (3) is a significant assumption, it is standard for analysis of Langevin Monte Carlo [VW19]. It is much weaker than assumptions in previous works [BMR20], including log-concave distributions and distributions satisfying strong dissipativity, and is stable under bounded perturbations. See Section E.1 for background on functional inequalities. ",
403
+ "bbox": [
404
+ 173,
405
+ 164,
406
+ 826,
407
+ 262
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Assumption 2. Let p be a given probability density on $\\mathbb { R } ^ { d }$ such that $\\ln { p }$ is $C ^ { 1 }$ . The score estimate $s : \\mathbb { R } ^ { d } \\overset { ^ { - } } { \\to } \\mathbb { R } ^ { d }$ satisfies the following. ",
414
+ "bbox": [
415
+ 169,
416
+ 263,
417
+ 825,
418
+ 294
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "1. s is a $C ^ { 1 }$ function that is $L _ { s }$ -Lipschitz. We assume $L _ { s } \\ge 1$ . ",
425
+ "bbox": [
426
+ 210,
427
+ 301,
428
+ 617,
429
+ 319
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "2. The error in the score estimate is bounded in $L ^ { 2 }$ ",
436
+ "bbox": [
437
+ 212,
438
+ 325,
439
+ 552,
440
+ 340
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "equation",
446
+ "img_path": "images/1455d26a1da1b759786653fd7751a1ece8a04b7db938ca8e03c8879e1b42f772.jpg",
447
+ "text": "$$\n\\begin{array} { r } { \\| \\nabla \\ln p - s \\| _ { L ^ { 2 } ( p ) } ^ { 2 } = \\mathbb { E } _ { p } [ \\| \\nabla \\ln p ( x ) - s ( x ) \\| ^ { 2 } ] \\le \\varepsilon ^ { 2 } . } \\end{array}\n$$",
448
+ "text_format": "latex",
449
+ "bbox": [
450
+ 354,
451
+ 343,
452
+ 700,
453
+ 364
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "2.1 Langevin with $L ^ { 2 }$ -accurate score estimate ",
460
+ "text_level": 1,
461
+ "bbox": [
462
+ 173,
463
+ 396,
464
+ 503,
465
+ 412
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Our first main result gives an error bound between the sampled distribution and $p$ , assuming $L ^ { 2 }$ - accurate score function estimate. ",
472
+ "bbox": [
473
+ 174,
474
+ 422,
475
+ 825,
476
+ 450
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "Theorem 2.1 (LMC with $L ^ { 2 }$ -accurate score estimate). Let $p : \\mathbb { R } ^ { d } \\mathbb { R }$ be a probability density satisfying Assumption $I ( I , 2 )$ with $L \\geq 1$ and $s : \\mathbb { R } ^ { d } \\mathbb { R } ^ { d }$ be a score estimate satisfying Assumption 2(2). Consider the accuracy requirement in TV and $\\chi ^ { 2 } \\colon 0 < \\varepsilon _ { \\mathrm { T V } } < 1 , 0 < \\varepsilon _ { \\chi } < 1$ , and suppose furthermore the starting distribution satisfies $\\chi ^ { 2 } ( p _ { 0 } | | p ) \\leq K _ { \\chi } ^ { 2 }$ . Then if ",
483
+ "bbox": [
484
+ 173,
485
+ 453,
486
+ 825,
487
+ 512
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "equation",
493
+ "img_path": "images/6bd8d37951db1a59563fb6023b7af95a66eab7690132ba320002a066f3df0666.jpg",
494
+ "text": "$$\n\\varepsilon = O \\left( \\frac { \\varepsilon _ { \\mathrm { T V } } \\varepsilon _ { \\chi } ^ { 3 } } { d L ^ { 2 } C _ { \\mathrm { L S } } ^ { 5 / 2 } ( \\ln ( 2 K _ { \\chi } / \\varepsilon _ { \\chi } ^ { 2 } ) \\vee K _ { \\chi } ) } \\right) ,\n$$",
495
+ "text_format": "latex",
496
+ "bbox": [
497
+ 357,
498
+ 517,
499
+ 638,
500
+ 560
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "then running (LMC-SE) with score estimate $s$ , step size $\\begin{array} { r } { h \\ \\mathrm { ~ = ~ } \\ \\Theta \\biggl ( \\frac { \\varepsilon _ { \\chi } ^ { 2 } } { d L ^ { 2 } C _ { \\mathrm { L S } } } \\biggr ) } \\end{array}$ and time $T =$ $\\begin{array} { r } { \\Theta \\Big ( C _ { \\mathrm { L S } } \\ln \\Big ( \\frac { 2 K _ { \\chi } } { \\varepsilon _ { \\chi } ^ { 2 } } \\Big ) \\Big ) } \\end{array}$ results in a distribution $p _ { T }$ such that $p _ { T }$ is $\\varepsilon _ { \\mathrm { T V } }$ -far in TV distance from a distribution $\\overline { { p } } _ { T }$ , where $\\overline { { p } } _ { T }$ satisfies $\\chi ^ { 2 } ( \\overline { { p } } _ { T } | | p ) \\leq \\varepsilon _ { \\chi } ^ { 2 }$ . In particular, taking $\\varepsilon _ { \\chi } = \\varepsilon _ { \\mathrm { T V } }$ , we have the error guarantee that $\\mathrm { T V } ( p _ { T } , p ) \\leq 2 \\varepsilon _ { \\mathrm { T V } }$ . ",
507
+ "bbox": [
508
+ 173,
509
+ 566,
510
+ 825,
511
+ 647
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Note that the error bound is only achieved when running LMC for a moderate time; this is consistent with the fact that the stationary distribution of LMC with a $L ^ { 2 }$ -score estimate can be arbitrarily far from $p$ . Note also that we need a warm start in $\\chi ^ { 2 }$ -divergence: to obtain fixed errors $\\varepsilon _ { \\mathrm { T V } } , \\varepsilon _ { \\chi }$ , the required accuracy for the score estimate is inversely proportional to $K _ { \\chi }$ . Intuitively, we must suffer from such a dependence because if the starting distribution is very far away, then there is no guarantee that $\\| \\nabla \\ln \\bar { p } ( x _ { t } ) - s ( x _ { t } ) \\| ^ { 2 }$ is small on average during the sampling algorithm. Finally, although we can state a result purely in terms of TV distance, we need this more precise formulation to prove a result for annealed Langevin dynamics. ",
518
+ "bbox": [
519
+ 173,
520
+ 655,
521
+ 825,
522
+ 767
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "2.2 Annealed Langevin dynamics with estimated score ",
529
+ "text_level": 1,
530
+ "bbox": [
531
+ 173,
532
+ 781,
533
+ 563,
534
+ 797
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "In light of the warm start requirement in Theorem 2.1, we typically cannot directly sample from $p _ { \\mathrm { d a t a } }$ or its approximation. Hence, [SE19] proposed using annealed Langevin dynamics: consider a sequence of noise levels $\\sigma _ { N } > \\cdots > \\sigma _ { 1 } \\approx 0$ giving rise to a sequence of distributions pσ2N , . . . , pσ21 ≈ pdata, where pσ2 = p ∗ φσ2 , φσ2 being the density of N (0, σ2Id). For large enough $\\sigma _ { N } , \\varphi _ { \\sigma _ { N } ^ { 2 } } \\approx p _ { \\sigma _ { N } ^ { 2 } }$ provides a warm start to $p _ { \\sigma _ { N } ^ { 2 } }$ . We then successively run LMC using score estimates for $p _ { \\sigma _ { k } ^ { 2 } }$ , with the approximate sample for $p _ { \\sigma _ { k } ^ { 2 } }$ giving a warm start for $p _ { \\sigma _ { k - 1 } ^ { 2 } }$ . We obtain the following algorithm and error estimate. ",
541
+ "bbox": [
542
+ 173,
543
+ 806,
544
+ 825,
545
+ 911
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "INPUT: Noise levels $0 \\leq \\sigma _ { 1 } < . . . < \\sigma _ { M }$ ; score function estimates $s ( \\cdot , \\sigma _ { m } )$ (estimates of $\\nabla \\ln ( p * \\varphi _ { \\sigma _ { m } ^ { 2 } } ) )$ , step sizes $h _ { m }$ , and number of steps $N _ { m }$ for $1 \\leq m \\leq M$ . \nDraw $x ^ { ( M + 1 ) } \\sim N ( 0 , \\sigma _ { M } ^ { 2 } I _ { d } )$ . \nfor from to 1 do ",
552
+ "bbox": [
553
+ 179,
554
+ 108,
555
+ 825,
556
+ 167
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Starting from $x _ { 0 } ^ { ( m ) } = x ^ { ( m + 1 ) }$ , run (LMC-SE) with $s ( x , \\sigma _ { m } )$ and step size $h _ { m }$ for $N _ { m }$ steps, and let the final sample be $x ^ { ( m ) }$ . ",
563
+ "bbox": [
564
+ 186,
565
+ 166,
566
+ 823,
567
+ 196
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "end for ",
574
+ "text_level": 1,
575
+ "bbox": [
576
+ 191,
577
+ 198,
578
+ 241,
579
+ 209
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "OUTPUT: Return $x ^ { ( 1 ) }$ , approximate sample from $p * \\varphi _ { \\sigma _ { 1 } ^ { 2 } }$ ",
586
+ "bbox": [
587
+ 191,
588
+ 210,
589
+ 573,
590
+ 227
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Theorem 2.2 (Annealed LMC with $L ^ { 2 }$ -accurate score estimate). Let $p : \\mathbb { R } ^ { d } \\mathbb { R }$ be a probability density satisfying Assumption 1 for $M _ { 1 } = O ( d )$ , and let $p _ { \\sigma ^ { 2 } } : = p * \\varphi _ { \\sigma ^ { 2 } }$ . Suppose furthermore that $\\nabla \\ln p _ { \\sigma ^ { 2 } }$ is $L$ -Lipschitz for every $\\sigma \\geq 0$ . Given $\\sigma _ { \\operatorname* { m i n } } > 0$ , there exists a sequence $\\sigma _ { \\mathrm { m i n } } = \\sigma _ { 1 } <$ $\\cdots < \\sigma _ { M }$ with $\\begin{array} { r } { M = O \\left( \\sqrt { d } \\log \\left( \\frac { d C _ { \\mathrm { L S } } } { \\sigma _ { \\mathrm { m i n } } ^ { 2 } } \\right) \\right) } \\end{array}$ such that for each $m$ , $i f$ ",
597
+ "bbox": [
598
+ 174,
599
+ 256,
600
+ 823,
601
+ 324
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "equation",
607
+ "img_path": "images/f02e9d024ef9601851d221596d962a4cca9274935eac15f7aa135617b4aa705a.jpg",
608
+ "text": "$$\n\\begin{array} { r l } & { \\left\\| \\nabla \\ln ( p _ { \\sigma _ { m } ^ { 2 } } ) - s ( \\cdot , \\sigma _ { m } ^ { 2 } ) \\right\\| _ { L ^ { 2 } ( p _ { \\sigma _ { m } ^ { 2 } } ) } ^ { 2 } = \\mathbb { E } _ { p _ { \\sigma _ { m } ^ { 2 } } } [ \\left\\| \\nabla \\ln p _ { \\sigma _ { m } ^ { 2 } } ( x ) - s ( x , \\sigma _ { m } ^ { 2 } ) \\right\\| ^ { 2 } ] \\leq \\varepsilon ^ { 2 } . } \\\\ & { \\qquad w i t h \\varepsilon : = \\widetilde { \\cal O } \\left( \\frac { \\varepsilon _ { \\mathrm { T V } } ^ { 4 . 5 } } { d ^ { 3 . 2 5 } L ^ { 2 } C _ { \\mathrm { L S } } ^ { 2 . 5 } } \\right) } \\end{array}\n$$",
609
+ "text_format": "latex",
610
+ "bbox": [
611
+ 241,
612
+ 329,
613
+ 754,
614
+ 395
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "then $x ^ { ( 1 ) }$ is a sample from a distribution $q$ such that $\\mathrm { T V } ( q , p _ { \\sigma _ { 1 } ^ { 2 } } ) \\leq \\varepsilon _ { \\mathrm { T V } }$ ",
621
+ "bbox": [
622
+ 176,
623
+ 400,
624
+ 645,
625
+ 417
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Note that we assume a score estimate with error $\\varepsilon$ at all noise scales; this corresponds to using an objective function that is a maximum of the score-matching objective over all noise levels, rather than an average over all noise levels as more commonly used in practice. However, these two losses are at most a factor of $M$ apart. ",
632
+ "bbox": [
633
+ 173,
634
+ 428,
635
+ 825,
636
+ 484
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "The proof shows that the noise levels $\\sigma _ { k }$ can be chosen as a geometric sequence, which matches the choice used in practice [SE20]. The additional dependence on $d$ and $\\varepsilon _ { \\mathrm { T V } }$ in Theorem 2.2 compared to Theorem 2.1 comes from requiring a sequence of $\\widetilde { O } ( \\sqrt { d } )$ noise levels and an additional factor in $\\chi ^ { 2 }$ -divergence we suffer at the beginning of each level $m$ . In the next section, we will find that using a reverse SDE to evolve the samples between the noise levels—called a predictor step—will improve the rate and time complexity. ",
643
+ "bbox": [
644
+ 173,
645
+ 489,
646
+ 825,
647
+ 575
648
+ ],
649
+ "page_idx": 4
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "3 Results for reverse SDE’s with estimated score ",
654
+ "text_level": 1,
655
+ "bbox": [
656
+ 173,
657
+ 594,
658
+ 591,
659
+ 612
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "To improve the empirical performance of score-based generative modeling, $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ consider a general framework where noise is injected into a data distribution $p _ { \\mathrm { d a t a } }$ via a forward SDE, ",
666
+ "bbox": [
667
+ 173,
668
+ 625,
669
+ 823,
670
+ 654
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "equation",
676
+ "img_path": "images/0b54d8ac992de7c4a5164169f924dd256765771a5f0147ab7cc7b21a9e4ae00b.jpg",
677
+ "text": "$$\nd \\tilde { x } _ { t } = f ( \\tilde { x } _ { t } , t ) d t + g ( t ) d w _ { t } , \\ t \\in [ 0 , T ] ,\n$$",
678
+ "text_format": "latex",
679
+ "bbox": [
680
+ 361,
681
+ 659,
682
+ 635,
683
+ 676
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "where $\\widetilde x _ { 0 } \\sim \\widetilde p _ { 0 } : = p _ { \\mathrm { d a t a } }$ . Let $\\widetilde { p } _ { t }$ denote the distribution of $\\widetilde { x } _ { t }$ $\\widetilde { p } _ { t }$ is used instead of $p _ { t }$ to distine e e e eguish with the Gaussian-convolved distribution used in Annealed Langevin dynamics as in $\\ S 2 . 2 )$ . Remarkably, $\\widetilde { x } _ { t }$ also satisfies a reverse-time SDE, ",
690
+ "bbox": [
691
+ 173,
692
+ 681,
693
+ 823,
694
+ 723
695
+ ],
696
+ "page_idx": 4
697
+ },
698
+ {
699
+ "type": "equation",
700
+ "img_path": "images/571f87a54ef733a33fa4f42d33e1c1ac4bd78b8f33f652467cbc2a3fd7a3cdfe.jpg",
701
+ "text": "$$\nd \\widetilde { \\boldsymbol { x } } _ { t } = [ f ( \\widetilde { \\boldsymbol { x } } _ { t } , t ) - g ( t ) ^ { 2 } \\nabla \\ln \\widetilde { p } _ { t } ( \\widetilde { \\boldsymbol { x } } _ { t } ) ] d t + g ( t ) d \\widetilde { \\boldsymbol { w } } _ { t } , t \\in [ 0 , T ] ,\n$$",
702
+ "text_format": "latex",
703
+ "bbox": [
704
+ 297,
705
+ 728,
706
+ 700,
707
+ 747
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "where $\\tilde { w } _ { t }$ is a backward Brownian Motion [And82]. By carefully choosing $f$ and $g$ , we can expect that $\\tilde { p } _ { T }$ is approximately equal to some prior distribution $\\tilde { q } _ { T }$ (e.g., a centered Gaussian) which we can accurately sample from. Then we hope that starting with some $\\tilde { y } _ { T } \\sim p _ { \\mathrm { p r i o r } } = \\tilde { q } _ { T } \\approx \\tilde { p } _ { T }$ and running the reverse-time process, we will get a good sample $\\tilde { y } _ { 0 } \\sim \\tilde { q } _ { 0 } \\approx p _ { \\mathrm { d a t a } }$ . ",
714
+ "bbox": [
715
+ 173,
716
+ 751,
717
+ 825,
718
+ 809
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "The case where $f \\equiv 0$ and $g \\equiv 1$ recovers the simple case of convolving with a Gaussian as used in $\\ S 2 . 2$ ; note, however that the reverse-time SDE differs from Langevin diffusion in having a larger (and time-varying) drift relative to the diffusion. $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ highlight the following two special cases. We will focus on DDPM while noting that our analysis applies more generically. ",
725
+ "bbox": [
726
+ 174,
727
+ 813,
728
+ 825,
729
+ 869
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "SMLD Score-matching Langevin diffusion: $f \\equiv 0$ . In this case, $\\widetilde { p } _ { t } \\ = \\ \\widetilde { p } _ { 0 } * \\ \\varphi _ { \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s }$ , so $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ call this a variance-exploding (VE) SDE. As is common for annealing-based algorithms, [SE19; $\\mathbf { S o n } { + } 2 0 \\mathbf { b } ]$ suggest choosing an exponential schedule, so that $g ( t ) = a b ^ { t }$ for constants $a , b$ . We take $\\begin{array} { r } { p _ { \\mathrm { p r i o r } } = N ( 0 , \\int _ { 0 } ^ { T } g ( s ) ^ { 2 } d s \\cdot I _ { d } ) } \\end{array}$ . ",
736
+ "bbox": [
737
+ 178,
738
+ 878,
739
+ 825,
740
+ 912
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "",
747
+ "bbox": [
748
+ 232,
749
+ 90,
750
+ 821,
751
+ 125
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "DDPM Denoising diffusion probabilistic modeling: $\\begin{array} { r } { f ( x , t ) = - \\frac { 1 } { 2 } g ( t ) ^ { 2 } x } \\end{array}$ . This is an OrnsteinUhlenbeck process with time rescaling, $\\begin{array} { r } { \\widetilde { p } _ { t } = M _ { - \\frac { 1 } { 2 } \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s \\sharp } \\widetilde { p } _ { 0 } \\ast \\varphi _ { 1 - e ^ { - \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s } } } \\end{array}$ , where $M _ { \\alpha } ( x ) = \\alpha x$ . $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ call this a variance-preserving (VP) SDE, as the variance converges towards $I _ { d }$ . Because it displays exponential convergence towards $N ( 0 , I _ { d } )$ , it can be run for a smaller amount of normalized time $\\textstyle \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s$ . $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ suggest the choice $g ( t ) = \\sqrt { b + \\alpha t }$ . We take $p _ { \\mathrm { p r i o r } } = N ( 0 , ( 1 - e ^ { - \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s } ) I _ { d } ) \\approx N ( 0 , I _ { d } ) .$ ",
758
+ "bbox": [
759
+ 176,
760
+ 128,
761
+ 825,
762
+ 226
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "To obtain an algorithm, we consider the following discretization and approximation of (4); note that in all cases of interest the integrals can be analytically evaluated. We reverse time so that $t$ corresponds to $T - t$ of the forward process. As we are free to rescale time in the SDE, we assume without loss of generality that the step sizes are constant. The predictor step is ",
769
+ "bbox": [
770
+ 174,
771
+ 232,
772
+ 825,
773
+ 289
774
+ ],
775
+ "page_idx": 5
776
+ },
777
+ {
778
+ "type": "equation",
779
+ "img_path": "images/859e8e18508758c705a6cd1b8fee7df09342f27fee3060b5b23654e4d318bd4f.jpg",
780
+ "text": "$$\n\\begin{array} { r l r } { { z _ { ( k + 1 ) h } = z _ { k h } - \\int _ { k h } ^ { ( k + 1 ) h } [ f ( z _ { k h } , T - t ) - g ( T - t ) ^ { 2 } \\cdot s ( z _ { k h } , T - k h ) ] d t } } \\\\ & { } & \\\\ & { } & { + \\int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) d w _ { t } , } \\end{array}\n$$",
781
+ "text_format": "latex",
782
+ "bbox": [
783
+ 187,
784
+ 292,
785
+ 787,
786
+ 366
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "where $\\begin{array} { r } { \\int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) d w _ { t } } \\end{array}$ is distributed as $\\begin{array} { r } { N ( 0 , \\int _ { k h } ^ { ( k + 1 ) h } g ( T - t ) ^ { 2 } d t \\cdot I _ { d } ) } \\end{array}$ . Following $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ , we call these predictor steps as the samples aim to track the distributions $\\widetilde { p } _ { T - k h }$ . Note that we flip the time. For simplicity of presentation, we consider the case $g \\ \\equiv \\ 1$ . We note that although the choice of the schedule does matter in practice, what really matters in our theoretical analysis is the integral $\\textstyle \\int _ { 0 } ^ { t } g ( s ) ^ { 2 } d s$ . This means that different choices of $g$ are related by only a rescaling of time, i.e., for different $g$ and $\\tilde { g }$ , we can always choose total times $T$ and $\\tilde { T }$ , such that $\\begin{array} { r } { \\int _ { 0 } ^ { T } g ( s ) ^ { 2 } d s = \\int _ { 0 } ^ { \\tilde { T } } \\tilde { g } ( s ) ^ { 2 } d s } \\end{array}$ . While it seems that choosing large $g ( t )$ could reduce the total time $T$ , in our analysis (e.g., Lemma C.15) we need the time step-size $h$ to be ${ \\cal O } ( 1 / g ( T ) ^ { 2 } )$ and hence the total computational cost, which is roughly $O ( T / h )$ , does not change significantly. ",
793
+ "bbox": [
794
+ 173,
795
+ 368,
796
+ 826,
797
+ 512
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Theorem 3.1 (Predictor with $L ^ { 2 }$ -accurate score estimate, DDPM). Let $p _ { \\mathrm { d a t a } } : \\mathbb { R } ^ { d } \\mathbb { R }$ be a probability density satisfying Assumption $^ { l }$ with $M _ { 2 } = O ( d )$ , and let $\\widetilde { p } _ { t }$ be the distribution resulting from evolving the forward $S D E$ according to DDPM with $g \\equiv 1$ e. Suppose furthermore that $\\nabla \\ln \\widetilde { p } _ { t }$ is $L$ -Lipschitz for every $t \\geq 0$ , and that each $s ( \\cdot , t )$ satisfies Assumption 2. Then if ",
804
+ "bbox": [
805
+ 173,
806
+ 513,
807
+ 825,
808
+ 571
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "equation",
814
+ "img_path": "images/c2d1763419a506c970cca4323bce1b62f1066b81c5ca3f91a361c0cfca3aa43a.jpg",
815
+ "text": "$$\n\\varepsilon = O \\left( \\frac { \\varepsilon _ { \\mathrm { T V } } ^ { 4 } } { ( C _ { \\mathrm { L S } } + d ) C _ { \\mathrm { L S } } ^ { 5 / 2 } ( L \\vee L _ { s } ) ^ { 2 } ( \\ln ( C _ { \\mathrm { L S } } d ) \\vee C _ { \\mathrm { L S } } \\ln ( 1 / \\varepsilon _ { \\mathrm { T V } } ^ { 2 } ) ) } \\right) ,\n$$",
816
+ "text_format": "latex",
817
+ "bbox": [
818
+ 277,
819
+ 571,
820
+ 718,
821
+ 614
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "running (P) starting from $p _ { \\mathrm { p r i o r } }$ for time $\\begin{array} { r } { T = \\Theta \\left( \\ln ( C _ { \\mathrm { L S } } d ) \\vee C _ { \\mathrm { L S } } \\ln \\left( \\frac { 1 } { \\varepsilon _ { \\mathrm { T V } } } \\right) \\right) } \\end{array}$ and step size $h \\ =$ $\\begin{array} { r } { \\Theta \\left( \\frac { \\varepsilon _ { \\mathrm { T V } } ^ { 2 } } { C _ { \\mathrm { L S } } ( C _ { \\mathrm { L S } } + d ) ( L \\vee L _ { s } ) ^ { 2 } } \\right) } \\end{array}$ results in a distribution $q _ { T }$ so that $\\mathrm { T V } ( q _ { T } , p _ { \\mathrm { d a t a } } ) \\leq \\varepsilon _ { \\mathrm { T V } } .$ . ",
828
+ "bbox": [
829
+ 173,
830
+ 617,
831
+ 825,
832
+ 664
833
+ ],
834
+ "page_idx": 5
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "A more precise statement of the Theorem can be found in the Appendix. Although we state our theorem for DDPM, we describe in Appendix C how it can be adapted to other SDE’s like SMLD and the sub-VP SDE; the primary SDE-dependent bound we need is a bound on $\\begin{array} { r } { \\nabla \\ln \\frac { \\widetilde { p } _ { t } } { \\widetilde { p } _ { t + h } } } \\end{array}$ . Because the predictor is tracking a changing distribution $p _ { t }$ e, we incur more error terms and worse dependence on parameters $( C _ { \\mathrm { L S } } , L )$ than in LMC (Theorem 2.1). Motivated by this, we intersperse the predictor steps with LMC steps—called corrector steps in this context—to give additional time for the process to mix, resulting in improved dependence on parameters. ",
839
+ "bbox": [
840
+ 173,
841
+ 670,
842
+ 826,
843
+ 773
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Theorem 3.2 (Predictor-corrector with $L ^ { 2 }$ -accurate score estimate). Keep the setup of Theorem 3.1. ",
850
+ "bbox": [
851
+ 173,
852
+ 775,
853
+ 823,
854
+ 791
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "equation",
860
+ "img_path": "images/915895e23c4102ecd8d434ac5da97105c5bdd1c0d7e2594baa1ed942d03f408c.jpg",
861
+ "text": "$$\n\\varepsilon = { \\cal O } \\left( \\frac { \\varepsilon _ { \\mathrm { T V } } ^ { 4 } } { d L ^ { 2 } C _ { \\mathrm { L S } } ^ { 5 / 2 } \\ln ( 1 / \\varepsilon _ { \\chi } ^ { 2 } ) } \\right) ,\n$$",
862
+ "text_format": "latex",
863
+ "bbox": [
864
+ 395,
865
+ 815,
866
+ 601,
867
+ 858
868
+ ],
869
+ "page_idx": 5
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "then Algorithm 2 with appropriate choices of $\\begin{array} { r } { T = \\Theta \\left( \\ln ( C _ { \\mathrm { L S } } d ) \\lor C _ { \\mathrm { L S } } \\log \\left( \\frac { 1 } { \\varepsilon _ { \\mathrm { T V } } } \\right) \\right) } \\end{array}$ , $N _ { m }$ , corrector step sizes $h _ { m }$ and predictor step size $h$ , produces $a$ sample from a distribution $q _ { T }$ such that $\\mathrm { T V } ( q _ { T } , p _ { \\mathrm { d a t a } } ) < \\varepsilon _ { \\mathrm { T V } }$ . ",
874
+ "bbox": [
875
+ 173,
876
+ 861,
877
+ 825,
878
+ 912
879
+ ],
880
+ "page_idx": 5
881
+ },
882
+ {
883
+ "type": "table",
884
+ "img_path": "images/6aa41d6e011f2d82a13c1cae1a5a9bdc7aac52578a2450e40289066271ab9ccf.jpg",
885
+ "table_caption": [],
886
+ "table_footnote": [],
887
+ "table_body": "<table><tr><td>INPUT: Time T, predictor step size h; number of corrector steps Nm per predictor step, corrector step sizeshm</td></tr><tr><td>Draw zo ~ Pprior from the prior distribution.</td></tr><tr><td></td></tr><tr><td>for m from1to T/h do (Predictor) Take a step of (P) to obtain Zmh from z(m-1)h, with f,g as in SMLD or DDPM.</td></tr><tr><td>(Corrector) Starting from 2mh,0 := 2mh, run (LMC-SE) with s(z,T - mh) and step size hm</td></tr><tr><td>for N steps,and let zmh ← zmh,N.</td></tr><tr><td>end for OUTPUT: Return zT,approximate sample from pdata·</td></tr></table>",
888
+ "bbox": [
889
+ 179,
890
+ 107,
891
+ 825,
892
+ 238
893
+ ],
894
+ "page_idx": 6
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "The assumption on $\\varepsilon _ { \\mathrm { T V } }$ is for convenience in stating our bound. In comparison to using the predictor step alone (Theorem 3.1), note that in the bound on $\\varepsilon$ , we obtain the improved rate of the corrector step as in Theorem 2.1; this is because the predictor step only needs to track the actual distribution in $\\chi ^ { 2 }$ -divergence with error $O ( 1 )$ , and the final corrector steps are responsible for decreasing the error to $\\varepsilon _ { \\mathrm { T V } }$ . In comparison to the Annealed Langevin sampler (Algorithm 1, Theorem 2.2), which can be viewed as using the corrector step alone, adding a predictor step provides a better warm start for the distribution at the next smaller noise level, resulting in better dependence on parameters. Thus the predictor-corrector algorithm combines the strengths of the predictor and corrector steps. For realworld data, it can be challenging to estimate TV-distance between distributions given only samples, and hence difficult to check consistency with empirical observations. However, our claim that using a corrector can improve the convergence rate of DDPM/SMLD is consistent with the simulation results in Section 4.2 of $[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ . ",
899
+ "bbox": [
900
+ 174,
901
+ 263,
902
+ 825,
903
+ 431
904
+ ],
905
+ "page_idx": 6
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "4 Theoretical framework and proof sketches ",
910
+ "text_level": 1,
911
+ "bbox": [
912
+ 173,
913
+ 449,
914
+ 560,
915
+ 467
916
+ ],
917
+ "page_idx": 6
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "The main idea of our analysis framework is to convert a $L ^ { 2 }$ error guarantee to a $L ^ { \\infty }$ error guarantee by excluding a bad set, formalized in the following theorem. ",
922
+ "bbox": [
923
+ 171,
924
+ 479,
925
+ 823,
926
+ 510
927
+ ],
928
+ "page_idx": 6
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Theorem 4.1. Let $( \\Omega , \\mathcal { F } , \\mathbb { P } )$ be a probability space and $\\{ \\mathcal { F } _ { n } \\}$ be a filtration of the sigma field $\\mathcal { F }$ Suppose $X _ { n } \\sim p _ { n }$ , $Z _ { n } \\sim q _ { n } ,$ , and $\\overline { { Z } } _ { n } \\sim \\overline { { q } } _ { n }$ are ${ \\mathcal { F } } _ { n }$ -adapted random processes taking values in $\\Omega$ and $B _ { n } \\subseteq \\Omega$ are sets such that the following hold for every $n \\in { \\mathbb { N } } _ { 0 }$ . ",
933
+ "bbox": [
934
+ 174,
935
+ 512,
936
+ 821,
937
+ 558
938
+ ],
939
+ "page_idx": 6
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "2. $\\chi ^ { 2 } ( \\overline { { q } } _ { n } | | p _ { n } ) \\leq D _ { n } ^ { 2 }$ . ",
944
+ "bbox": [
945
+ 212,
946
+ 590,
947
+ 356,
948
+ 609
949
+ ],
950
+ "page_idx": 6
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "3. $\\mathbb { P } ( X _ { n } \\in B _ { n } ) \\le \\delta _ { n }$ ",
955
+ "bbox": [
956
+ 210,
957
+ 614,
958
+ 361,
959
+ 632
960
+ ],
961
+ "page_idx": 6
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Then the following hold. ",
966
+ "bbox": [
967
+ 174,
968
+ 641,
969
+ 334,
970
+ 656
971
+ ],
972
+ "page_idx": 6
973
+ },
974
+ {
975
+ "type": "equation",
976
+ "img_path": "images/3d70b9f48f8c1326232d3071aa0dc3c9739c5bb6134a99ff3405e20247805862.jpg",
977
+ "text": "$$\n\\mathrm { T V } ( q _ { n } , \\overline { { q } } _ { n } ) \\leq \\sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \\delta _ { k } ^ { 1 / 2 } \\qquad \\mathrm { T V } ( p _ { n } , q _ { n } ) \\leq D _ { n } + \\sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \\delta _ { k } ^ { 1 / 2 }\n$$",
978
+ "text_format": "latex",
979
+ "bbox": [
980
+ 217,
981
+ 661,
982
+ 779,
983
+ 705
984
+ ],
985
+ "page_idx": 6
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "For our setting, we will take the “bad sets” $B _ { n }$ to be the set of $x$ where $\\| s _ { \\theta } ( x ) - \\nabla \\ln p \\|$ is large, $q _ { n }$ to be the discretized process with estimated score, and $\\overline { { q } } _ { n }$ to be the discretized process with estimated score except in $B _ { n }$ where the error is large. Because $\\overline { { q } } _ { n }$ uses an $L ^ { \\infty }$ -accurate score estimate, we can use existing techniques for analyzing Langevin Monte Carlo [VW19; EHZ21; Che+21] to bound $\\chi ^ { 2 } ( \\overline { { q } } _ { n } | | p _ { n } ) \\ :$ . ",
990
+ "bbox": [
991
+ 173,
992
+ 718,
993
+ 826,
994
+ 789
995
+ ],
996
+ "page_idx": 6
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Proof. We bound using condition 1 and Cauchy-Schwarz: ",
1001
+ "bbox": [
1002
+ 173,
1003
+ 801,
1004
+ 555,
1005
+ 818
1006
+ ],
1007
+ "page_idx": 6
1008
+ },
1009
+ {
1010
+ "type": "equation",
1011
+ "img_path": "images/8a243c91a43ae09d14deea126b46c7754e0fbd3a11a8ce2bb3af4cb92297fd9f.jpg",
1012
+ "text": "$$\n\\begin{array} { r l } & { \\displaystyle ^ { \\mathfrak { n } } \\big ( Z _ { n } \\ne \\overline { { Z } } _ { n } \\big ) \\le \\mathbb { P } \\left( \\bigcup _ { k = 1 } ^ { n - 1 } \\big \\{ Z _ { k } \\in B _ { k } \\big \\} \\right) \\le \\sum _ { k = 0 } ^ { n - 1 } \\mathbb { P } \\left( Z _ { k } \\in B _ { k } \\right) = \\sum _ { k = 0 } ^ { n - 1 } \\mathbb { E } _ { q _ { k } } \\mathbb { 1 } _ { B _ { k } } } \\\\ & { \\qquad \\le \\displaystyle \\sum _ { k = 0 } ^ { n - 1 } \\left( \\mathbb { E } _ { p _ { k } } \\left( \\frac { q _ { k } } { p _ { k } } \\right) ^ { 2 } \\right) ^ { 1 / 2 } ( \\mathbb { E } _ { p _ { k } } \\mathbb { 1 } _ { B _ { k } } ) ^ { 1 / 2 } = \\sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \\delta _ { k } ^ { 1 } } \\end{array}\n$$",
1013
+ "text_format": "latex",
1014
+ "bbox": [
1015
+ 181,
1016
+ 823,
1017
+ 839,
1018
+ 916
1019
+ ],
1020
+ "page_idx": 6
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "The second inequality then follows from the triangle inequality and Cauchy-Schwarz: ",
1025
+ "bbox": [
1026
+ 171,
1027
+ 90,
1028
+ 735,
1029
+ 107
1030
+ ],
1031
+ "page_idx": 7
1032
+ },
1033
+ {
1034
+ "type": "equation",
1035
+ "img_path": "images/f222f2ae3e0a161e47790f46b26c9d141d15cf53d436b2a19517527250d2606e.jpg",
1036
+ "text": "$$\n\\begin{array} { r l r } { { \\mathrm { T V } ( p _ { n } , q _ { n } ) \\leq \\mathrm { T V } ( p _ { n } , \\overline { { q } } _ { n } ) + \\mathrm { T V } ( \\overline { { q } } _ { n } , q _ { n } ) } } \\\\ & { } & \\\\ & { } & { \\leq \\sqrt { \\chi ^ { 2 } ( \\overline { { q } } _ { n } | | p _ { n } ) } + \\mathrm { T V } ( \\overline { { q } } _ { n } , q _ { n } ) \\leq D _ { n } + \\displaystyle \\sum _ { k = 0 } ^ { n - 1 } ( D _ { k } ^ { 2 } + 1 ) ^ { 1 / 2 } \\delta _ { k } ^ { 1 / 2 } . } \\end{array}\n$$",
1037
+ "text_format": "latex",
1038
+ "bbox": [
1039
+ 250,
1040
+ 108,
1041
+ 745,
1042
+ 172
1043
+ ],
1044
+ "page_idx": 7
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "It now remains to give $\\chi ^ { 2 }$ convergence bounds under $L ^ { \\infty }$ -accurate score estimate. The following theorem may be of independent interest. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 183,
1052
+ 825,
1053
+ 213
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Theorem 4.2 (LMC under $L ^ { \\infty }$ bound on gradient error). Let $p : \\mathbb { R } ^ { d } \\mathbb { R }$ be a probability density satisfying Assumption $I ( I , 2 )$ and $s : \\mathbb { R } ^ { d } \\mathbb { R } ^ { d }$ be a score estimate $s$ with error bounded in $L ^ { \\infty }$ : for some ε1 ≤ q $\\begin{array} { r } { \\varepsilon _ { 1 } \\leq \\sqrt { \\frac { 1 } { 4 8 C _ { \\mathrm { L S } } } } } \\end{array}$ , ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 215,
1063
+ 826,
1064
+ 267
1065
+ ],
1066
+ "page_idx": 7
1067
+ },
1068
+ {
1069
+ "type": "equation",
1070
+ "img_path": "images/650199748822cc205f371e7b76f98a4cbcfa9a6edf655fc6e2adef8d31b6dc55.jpg",
1071
+ "text": "$$\n\\| \\nabla \\ln p - s \\| _ { \\infty } = \\operatorname* { m a x } _ { x \\in \\mathbb { R } ^ { d } } \\| \\nabla \\ln p ( x ) - s ( x ) \\| \\| \\leq \\varepsilon _ { 1 } .\n$$",
1072
+ "text_format": "latex",
1073
+ "bbox": [
1074
+ 331,
1075
+ 272,
1076
+ 665,
1077
+ 296
1078
+ ],
1079
+ "page_idx": 7
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Let $N \\in { \\mathbb { N } } _ { 0 }$ and $\\begin{array} { r } { 0 < h \\leq \\frac { 1 } { 4 3 9 2 d C _ { \\mathrm { L S } } L ^ { 2 } } } \\end{array}$ , and assume $L \\geq 1$ . Let $q _ { n h }$ denote the nth iterate of LMC with step size $h$ score estimate s. Then ",
1084
+ "bbox": [
1085
+ 173,
1086
+ 301,
1087
+ 823,
1088
+ 332
1089
+ ],
1090
+ "page_idx": 7
1091
+ },
1092
+ {
1093
+ "type": "equation",
1094
+ "img_path": "images/9cdd3981138383853091f2ca7f639e78aafbbcc5c61723bd956f0dc1e3ec7f1b.jpg",
1095
+ "text": "$$\n\\chi ^ { 2 } ( q _ { ( k + 1 ) h } | | p ) \\leq \\exp \\left( - \\frac { h } { 4 C _ { \\mathrm { L S } } } \\right) \\chi ^ { 2 } ( q _ { k h } | | p ) + 1 7 0 d L ^ { 2 } h ^ { 2 } + 5 \\varepsilon _ { 1 } ^ { 2 } h\n$$",
1096
+ "text_format": "latex",
1097
+ "bbox": [
1098
+ 279,
1099
+ 337,
1100
+ 717,
1101
+ 372
1102
+ ],
1103
+ "page_idx": 7
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "and ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 376,
1111
+ 202,
1112
+ 388
1113
+ ],
1114
+ "page_idx": 7
1115
+ },
1116
+ {
1117
+ "type": "equation",
1118
+ "img_path": "images/1b3ce30010f4b02028710d00431540bae759ae13340219c1a57e98cbe1491644.jpg",
1119
+ "text": "$$\n{ \\chi ^ { 2 } } ( q _ { N h } | | p ) \\leq \\exp \\left( - \\frac { N h } { 4 C _ { \\mathrm { L S } } } \\right) \\chi ^ { 2 } ( q _ { 0 } | | p ) + 6 8 0 d L ^ { 2 } h C _ { \\mathrm { L S } } + 2 0 \\varepsilon _ { 1 } ^ { 2 } C _ { \\mathrm { L S } } \\leq \\exp \\left( - \\frac { N h } { 4 C _ { \\mathrm { L S } } } \\right) \\chi ^ { 2 } ( q _ { 0 } | | p ) + 1\n$$",
1120
+ "text_format": "latex",
1121
+ "bbox": [
1122
+ 181,
1123
+ 390,
1124
+ 838,
1125
+ 426
1126
+ ],
1127
+ "page_idx": 7
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Following $[ \\mathrm { C h e } + 2 1 ]$ , we prove this by first defining a continuous-time interpolation $q _ { t }$ of the discrete process, and then deriving a differential inequality for $\\chi ^ { 2 } ( q _ { t } | | p )$ using the log-Sobolev inequality for $p$ . Compared to $[ \\mathrm { C h e } + 2 1 ]$ , we incur an extra error term arising from the inaccurate gradient. ",
1132
+ "bbox": [
1133
+ 173,
1134
+ 435,
1135
+ 828,
1136
+ 478
1137
+ ],
1138
+ "page_idx": 7
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "This allows us to sketch the proof of Theorem 2.1; a complete proof is in Section B. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 483,
1146
+ 723,
1147
+ 500
1148
+ ],
1149
+ "page_idx": 7
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Proof sketch of Theorem 2.1. We first define the bad set where the error in the score estimate is large, ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 512,
1157
+ 825,
1158
+ 542
1159
+ ],
1160
+ "page_idx": 7
1161
+ },
1162
+ {
1163
+ "type": "equation",
1164
+ "img_path": "images/ff89cc60a95dfdfa8c7458c50621f331d2ab3b1e866432e8ba21a7e6d8e28a29.jpg",
1165
+ "text": "$$\nB : = \\{ \\| \\nabla \\ln p ( x ) - s ( x ) \\| > \\varepsilon _ { 1 } \\}\n$$",
1166
+ "text_format": "latex",
1167
+ "bbox": [
1168
+ 383,
1169
+ 546,
1170
+ 614,
1171
+ 564
1172
+ ],
1173
+ "page_idx": 7
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "for some $\\varepsilon _ { 1 }$ to be chosen. Then by Chebyshev’s inequality, $\\begin{array} { r } { P ( B ) \\leq \\left( \\frac { \\varepsilon } { \\varepsilon _ { 1 } } \\right) ^ { 2 } = : \\delta } \\end{array}$ . Let $\\overline { { q } } _ { n h }$ be the discretized process, but where the score estimate is set to be equal to $\\nabla \\ln p$ on $B$ ; note it agrees with $q _ { n h }$ as long as it has not hit $B$ . Because $\\overline { { q } } _ { n h }$ uses a score estimate that has $L ^ { \\infty }$ -error $\\varepsilon _ { 1 }$ , Theorem 4.2 gives a bound for $\\chi ^ { 2 } ( \\overline { { q } } _ { N h } | | p )$ . Then Theorem 4.1 gives ",
1178
+ "bbox": [
1179
+ 173,
1180
+ 570,
1181
+ 826,
1182
+ 637
1183
+ ],
1184
+ "page_idx": 7
1185
+ },
1186
+ {
1187
+ "type": "equation",
1188
+ "img_path": "images/212ac7809f0e91eb857a5bfece128260e5e06c2abfc644e83f8e723996835b8c.jpg",
1189
+ "text": "$$\n { \\operatorname { F V } } ( q _ { n h } , \\overline { { q } } _ { n h } ) \\le \\sum _ { k = 0 } ^ { n - 1 } ( \\chi ^ { 2 } ( \\overline { { q } } _ { k h } \\| p ) + 1 ) ^ { 1 / 2 } P ( B ) ^ { 1 / 2 } \\le \\sum _ { k = 0 } ^ { n - 1 } \\left( \\exp \\left( - \\frac { k h } { 8 C _ { \\mathrm { L S } } } \\right) \\chi ^ { 2 } ( q _ { 0 } \\| p ) ^ { 1 / 2 } + 1 \\right) \\delta ^ { 1 / 2 }\n$$",
1190
+ "text_format": "latex",
1191
+ "bbox": [
1192
+ 181,
1193
+ 640,
1194
+ 828,
1195
+ 684
1196
+ ],
1197
+ "page_idx": 7
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "The theorem then follows from choosing parameters so that χ2(qT ||p) ≤ ε2χ and TV(qT , qT ) ≤ $\\varepsilon _ { \\mathrm { T V } }$ . ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 688,
1205
+ 825,
1206
+ 718
1207
+ ],
1208
+ "page_idx": 7
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "We remark that the main inefficiency in the proof comes from the use of Chebyshev’s inequality, and a $L ^ { p }$ bound on the error for $p > 2$ will improve the bound. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 731,
1216
+ 821,
1217
+ 761
1218
+ ],
1219
+ "page_idx": 7
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Proof sketch of Theorem 2.2. Choosing the sequence $\\sigma _ { 1 } < \\cdots < \\sigma _ { M }$ to be geometric with ratio $1 + \\frac { 1 } { \\sqrt { d } }$ ensures that the $\\chi ^ { 2 }$ -divergence between successive distributions $p _ { \\sigma _ { m } ^ { 2 } }$ is $O ( 1 )$ . Then, choosing $\\sigma _ { M } ^ { 2 } = \\Omega ( C _ { \\mathrm { L S } } d )$ ensures we have a warm start for the highest noise level: $\\chi ^ { 2 } ( \\operatorname { \\rho _ { p r i o r } } \\lvert \\lvert p _ { \\sigma _ { M } ^ { 2 } } ) = O ( 1 )$ . This uses $\\begin{array} { r } { O \\left( \\sqrt { d } \\log \\left( \\frac { d C _ { \\mathrm { L S } } } { \\sigma _ { \\mathrm { m i n } } ^ { 2 } } \\right) \\right) } \\end{array}$ noise levels. Chebyshev’s inequality can be used to show that the distribution of the final sample $x ^ { ( m ) }$ for $p _ { \\sigma _ { m } ^ { 2 } }$ is ${ \\cal O } ( \\varepsilon _ { \\mathrm { T V } } / M )$ close to a distribution that is ${ \\cal O } ( M / \\varepsilon _ { \\mathrm { T V } } )$ in in $\\chi ^ { 2 }$ -divergence from Theorem 2.1 then $p _ { \\sigma _ { m + 1 } ^ { 2 } }$ . This gives the warm st the required bound for rt parameter . Note that $K _ { \\chi } = ( M / \\varepsilon _ { \\mathrm { T V } } ) ^ { 1 / 2 }$ ; substitutinged from each $\\varepsilon$ level add to ${ \\cal O } ( \\varepsilon _ { \\mathrm { T V } } )$ . □ ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 773,
1227
+ 826,
1228
+ 912
1229
+ ],
1230
+ "page_idx": 7
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "To analyze the predictor-based algorithms, we also first prove convergence bounds under $L ^ { \\infty }$ - accurate score estimate. ",
1235
+ "bbox": [
1236
+ 173,
1237
+ 90,
1238
+ 823,
1239
+ 119
1240
+ ],
1241
+ "page_idx": 8
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Theorem 4.3 (Predictor steps under $L ^ { \\infty }$ bound on score estimate, DDPM). Let $p : \\mathbb { R } ^ { d } \\mathbb { R }$ be a probability density satisfying Assumption $I$ and $s ( \\cdot , t ) : \\mathbb { R } ^ { d } \\to \\mathbb { R } ^ { d }$ be a score estimate s with error bounded in $L ^ { \\infty }$ for each $t \\in [ 0 , T ]$ : ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 125,
1249
+ 826,
1250
+ 167
1251
+ ],
1252
+ "page_idx": 8
1253
+ },
1254
+ {
1255
+ "type": "equation",
1256
+ "img_path": "images/09ebd58037967c1f147d8da57a99c4b4ff414e60c4c603a610c6c82d29b86fe6.jpg",
1257
+ "text": "$$\n\\| \\nabla \\ln p - s ( \\cdot , t ) \\| _ { \\infty } = \\operatorname* { m a x } _ { x \\in \\mathbb { R } ^ { d } } \\| \\nabla \\ln \\widetilde { p } _ { t } ( x ) - s ( x , t ) \\| \\| \\le \\varepsilon _ { 1 } .\n$$",
1258
+ "text_format": "latex",
1259
+ "bbox": [
1260
+ 308,
1261
+ 175,
1262
+ 689,
1263
+ 200
1264
+ ],
1265
+ "page_idx": 8
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Consider DDPM with $g \\equiv 1$ , $T \\geq 1 \\vee \\ln ( C _ { \\mathrm { L S } } d ) ,$ , and $\\begin{array} { r } { h = O \\left( \\frac { 1 } { C _ { \\mathrm { L S } } ( d + C _ { \\mathrm { L S } } ) ( L \\vee L _ { s } ) ^ { 2 } } \\right) } \\end{array}$ . (Recall that $p _ { k h }$ and $q _ { k h }$ are the $k$ -th iterate of LMC with step size $h$ and true/estimated score respectively.) Then ",
1270
+ "bbox": [
1271
+ 174,
1272
+ 210,
1273
+ 825,
1274
+ 248
1275
+ ],
1276
+ "page_idx": 8
1277
+ },
1278
+ {
1279
+ "type": "equation",
1280
+ "img_path": "images/22799b1ee3cba73ec393362a5205ecfb56caf7acbb5a7558ab2c3c15d96b132f.jpg",
1281
+ "text": "$$\n\\chi ^ { 2 } ( q _ { ( k + 1 ) h } | | p _ { ( k + 1 ) h } ) \\leq \\chi ^ { 2 } ( q _ { k h } | | p _ { k h } ) e ^ { \\left( - \\frac { 1 } { 8 C _ { 1 S } } + 8 \\varepsilon _ { 1 } ^ { 2 } \\right) h } + O ( \\varepsilon _ { 1 } ^ { 2 } h + ( L _ { s } ^ { 2 } + L ^ { 2 } d ) h ^ { 2 } )\n$$",
1282
+ "text_format": "latex",
1283
+ "bbox": [
1284
+ 232,
1285
+ 257,
1286
+ 764,
1287
+ 282
1288
+ ],
1289
+ "page_idx": 8
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "$\\begin{array} { r } { \\varepsilon _ { 1 } < \\frac { 1 } { 1 2 8 C _ { \\mathrm { L S } } } } \\end{array}$ ",
1294
+ "bbox": [
1295
+ 173,
1296
+ 291,
1297
+ 302,
1298
+ 310
1299
+ ],
1300
+ "page_idx": 8
1301
+ },
1302
+ {
1303
+ "type": "equation",
1304
+ "img_path": "images/d5958db694bf8230a9f4cb81c03356619c7e48bdd141ec19f0ef46e6130d16a4.jpg",
1305
+ "text": "$$\n\\chi ^ { 2 } ( q _ { N h } | | p _ { N h } ) \\leq e ^ { - \\frac { N h } { 1 6 C _ { 1 S } } } \\chi ^ { 2 } ( q _ { 0 } | | p _ { 0 } ) + O \\left( C _ { \\mathrm { L S } } \\left( \\varepsilon _ { 1 } ^ { 2 } + ( L _ { s } ^ { 2 } + L ^ { 2 } d ) h \\right) \\right) .\n$$",
1306
+ "text_format": "latex",
1307
+ "bbox": [
1308
+ 266,
1309
+ 319,
1310
+ 730,
1311
+ 342
1312
+ ],
1313
+ "page_idx": 8
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Moreover, for $q _ { 0 } = p _ { \\mathrm { p r i o r } } , \\chi ^ { 2 } ( q _ { 0 } | | p _ { 0 } ) \\leq e ^ { - T / 2 } C _ { \\mathrm { L S } } d .$ ",
1318
+ "bbox": [
1319
+ 174,
1320
+ 352,
1321
+ 514,
1322
+ 369
1323
+ ],
1324
+ "page_idx": 8
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "We give a more precise statement in Section C. Note that unlike the case for LMC as in Theorem 4.2, the base density $p _ { t }$ is also evolving in time, which produces additional error terms and necessitates a more involved analysis. The additional error terms can be bounded using the Donsker-Varadhan variational principle, concentration for distributions satisfying LSI, and error bounds between $p _ { t }$ and $p _ { t + h }$ for small $h$ . ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 378,
1332
+ 825,
1333
+ 449
1334
+ ],
1335
+ "page_idx": 8
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Here, we only state the result about DDPM, which has better bounds than SMLD (when $g \\equiv 1$ ) because both the forward and backwards processes exhibit better mixing properties: the warm start improves exponentially rather than inversely with $T$ , and the log-Sobolev constant is uniformly bounded by that of $p _ { \\mathrm { d a t a } }$ rather than increasing. However, the analysis in Section C can be directly applied to SMLD and other models as well. We also note there is a sense in which DDPM and SMLD are equivalent under a rescaling in time and space (see discussion in Section C.2). ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 454,
1343
+ 825,
1344
+ 539
1345
+ ],
1346
+ "page_idx": 8
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Note that the choice of $h$ is necessary for exponential decay of error; as if $h$ is not small enough, we would get an exponential growing instead of decaying factor in the one-step error (See Section C for details). Such an $h$ may however still be a suitable choice when used in conjunction with a corrector step. Moreover, as $\\varepsilon _ { 1 } \\to 0$ , with appropriate choice of $T$ and $h$ , $q _ { N h }$ and $p _ { N h }$ can be made arbitrarily close. ",
1351
+ "bbox": [
1352
+ 174,
1353
+ 545,
1354
+ 825,
1355
+ 614
1356
+ ],
1357
+ "page_idx": 8
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Theorem 3.1 now follows from the $L ^ { \\infty }$ result (Theorem 4.3) in the same way that Theorem 2.1 follows from Theorem 4.2. ",
1362
+ "bbox": [
1363
+ 176,
1364
+ 619,
1365
+ 821,
1366
+ 648
1367
+ ],
1368
+ "page_idx": 8
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "To prove Theorem 3.2, it suffices to run the corrector steps only at the lowest noise level, that is, set $N _ { m } = 0$ for $1 \\leq m < T / h$ , although we note that interleaving the predictor and corrector steps does empirically help with mixing. The proof follows from using the predictor and the corrector theorems in series: first apply Theorem 3.1 with $\\varepsilon _ { \\chi } = O ( 1 )$ to show that the predictor results a warm start $p _ { \\mathrm { d a t a } }$ , then use Theorem 2.1 to show the corrector reduces the error to the desired $\\varepsilon _ { \\mathrm { T V } }$ . ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 655,
1376
+ 825,
1377
+ 724
1378
+ ],
1379
+ "page_idx": 8
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "5 Conclusion ",
1384
+ "text_level": 1,
1385
+ "bbox": [
1386
+ 174,
1387
+ 747,
1388
+ 299,
1389
+ 763
1390
+ ],
1391
+ "page_idx": 8
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "We introduced a general framework to analyze SDE-based sampling algorithms given a $L ^ { 2 }$ -error score estimate, and used it to obtain the first convergence bounds for several score-based generative models with polynomial complexity in all parameters. Our analysis can potentially be adapted to other SDE’s and sampling algorithms beyond Langevin Monte Carlo. There is also room for improving our analysis to better use smoothing properties of the SDE’s and compare different choices of the diffusion speed $g$ . ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 779,
1399
+ 825,
1400
+ 863
1401
+ ],
1402
+ "page_idx": 8
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "We present several interesting further directions to explore. In addition to extending the analysis to other SGM’s and comparing their theoretical performance (relative to each other as well as other approaches to generative modeling), we propose the following. ",
1407
+ "bbox": [
1408
+ 176,
1409
+ 869,
1410
+ 825,
1411
+ 911
1412
+ ],
1413
+ "page_idx": 8
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Analysis for multimodal distributions. Our assumption of a bounded log-Sobolev constant essentially limits the analysis to distributions that are close to unimodal. However, SGM’s are empirically successful at modeling multimodal distributions [SE19], and in fact perform better with multimodal distributions than other approaches such as GAN’s. Can we analyze the convergence for simple multimodal distributions, such as a mixture of distributions each with bounded log-Sobolev constant? Positive results on sampling from multimodal distributions such as [GLR18] suggest this is possible, as the sequence of noised distributions is natural for annealing and tempering methods (see [GLR18, Remark 7.2]). ",
1418
+ "bbox": [
1419
+ 174,
1420
+ 92,
1421
+ 825,
1422
+ 202
1423
+ ],
1424
+ "page_idx": 9
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Weakening conditions on the score estimate. The assumption that we have a score estimate that is $O ( 1 )$ -accurate in $L ^ { 2 }$ , although weaker than the usual assumptions for theoretical analysis, is in fact still a strong condition in practice that seems unlikely to be satisfied (and difficult to check) when learning complex distributions such as distributions of images. What would a reasonable weaker condition be, and in what sense can we still obtain reasonable samples? ",
1429
+ "bbox": [
1430
+ 174,
1431
+ 217,
1432
+ 825,
1433
+ 286
1434
+ ],
1435
+ "page_idx": 9
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "Guarantees for learning the score function. Our analysis assumes a $L ^ { 2 }$ -estimate of the score function is given, but the question remains of when we can find such an estimate. What natural conditions on distributions allow their score functions to be learned by a neural network? Various works have considered the representability of data distributions by diffusion-like processes [TR19], but the questions of optimization and generalization appear more challenging. ",
1440
+ "bbox": [
1441
+ 174,
1442
+ 301,
1443
+ 823,
1444
+ 371
1445
+ ],
1446
+ "page_idx": 9
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "Acknowledgements ",
1451
+ "text_level": 1,
1452
+ "bbox": [
1453
+ 176,
1454
+ 387,
1455
+ 310,
1456
+ 401
1457
+ ],
1458
+ "page_idx": 9
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "We thank Andrej Risteski for helpful conversations. This work was done in part while $\\mathrm { H L }$ was visiting the Simons Institute for the Theory of Computing. The work was supported in part by National Science Foundation via awards DMS-2012286 and CCF-1934964 (Duke Tripods). ",
1463
+ "bbox": [
1464
+ 176,
1465
+ 412,
1466
+ 823,
1467
+ 454
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "References ",
1474
+ "text_level": 1,
1475
+ "bbox": [
1476
+ 174,
1477
+ 90,
1478
+ 266,
1479
+ 106
1480
+ ],
1481
+ "page_idx": 10
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "[ACB17] Martin Arjovsky, Soumith Chintala, and Leon Bottou. “Wasserstein generative ad- ´ versarial networks”. In: International conference on machine learning. PMLR. 2017, pp. 214–223. \n[And82] Brian DO Anderson. “Reverse-time diffusion equation models”. In: Stochastic Processes and their Applications 12.3 (1982), pp. 313–326. \n[BGL13] Dominique Bakry, Ivan Gentil, and Michel Ledoux. Analysis and geometry of Markov diffusion operators. Vol. 348. Springer Science & Business Media, 2013. \n[BL02] Herm Jan Brascamp and Elliott H Lieb. “On extensions of the Brunn-Minkowski and Prekopa-Leindler theorems, including inequalities for log concave functions, and with ´ an application to the diffusion equation”. In: Inequalities. Springer, 2002, pp. 441–464. \n[BMR20] Adam Block, Youssef Mroueh, and Alexander Rakhlin. “Generative modeling with denoising auto-encoders and Langevin sampling”. In: arXiv preprint arXiv:2002.00107 (2020). \n[CB18] Xiang Cheng and Peter Bartlett. “Convergence of Langevin MCMC in KLdivergence”. In: Algorithmic Learning Theory. PMLR. 2018, pp. 186–211. \n[Cha04] Djalil Chafa¨ı. “Entropies, convexity, and functional inequalities, On $\\Phi$ -entropies and $\\Phi$ -Sobolev inequalities”. In: Journal of Mathematics of Kyoto University 44.2 (2004), pp. 325–363. \n[Che+18] Xiang Cheng, Niladri S Chatterji, Peter L Bartlett, and Michael I Jordan. “Underdamped Langevin MCMC: A non-asymptotic analysis”. In: Conference on learning theory. PMLR. 2018, pp. 300–323. \n[Che+21] Sinho Chewi, Murat A Erdogdu, Mufan Bill Li, Ruoqi Shen, and Matthew Zhang. “Analysis of Langevin Monte Carlo from Poincare to Log-Sobolev”. In: ´ arXiv preprint arXiv:2112.12662 (2021). \n[Dal17] Arnak S Dalalyan. “Theoretical guarantees for approximate sampling from smooth and log-concave densities”. In: Journal of the Royal Statistical Society: Series B (Statistical Methodology) 79.3 (2017), pp. 651–676. \n[Dat+19] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. “Plug and play language models: A simple approach to controlled text generation”. In: arXiv preprint arXiv:1912.02164 (2019). \n[De $+ 2 1 ]$ 1 Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. “Diffusion Schrodinger bridge with applications to score-based generative modeling”. In: ¨ Advances in Neural Information Processing Systems 34 (2021). \n[DK19] Arnak S Dalalyan and Avetik Karagulyan. “User-friendly guarantees for the Langevin Monte Carlo with inaccurate gradient”. In: Stochastic Processes and their Applications 129.12 (2019), pp. 5278–5311. \n[DM17] Alain Durmus and Eric Moulines. “Nonasymptotic convergence analysis for the unadjusted Langevin algorithm”. In: The Annals of Applied Probability 27.3 (2017), pp. 1551–1587. \n[DN21] Prafulla Dhariwal and Alexander Nichol. “Diffusion models beat gans on image synthesis”. In: Advances in Neural Information Processing Systems 34 (2021). \n[DSB16] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. “Density estimation using real nvp”. In: arXiv preprint arXiv:1605.08803 (2016). \n[DVK21] Tim Dockhorn, Arash Vahdat, and Karsten Kreis. “Score-Based Generative Modeling with Critically-Damped Langevin Diffusion”. In: arXiv preprint arXiv:2112.07068 (2021). \n[EHZ21] Murat A. Erdogdu, Rasa Hosseinzadeh, and Matthew S. Zhang. “Convergence of Langevin Monte Carlo in Chi-Squared and Renyi Divergence”. In: arXiv preprint arXiv:2007.11612 (2021). \n[GLR18] Rong Ge, Holden Lee, and Andrej Risteski. “Beyond log-concavity: provable guarantees for sampling multi-modal distributions using simulated tempering langevin monte carlo”. In: Proceedings of the 32nd International Conference on Neural Information Processing Systems. 2018, pp. 7858–7867. \n$[ \\mathrm { G o o } { + } 1 4 ]$ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. “Generative adversarial nets”. In: Advances in neural information processing systems 27 (2014). \n[Gra+19] Will Grathwohl, Kuan-Chieh Wang, Jorn-Henrik Jacobsen, David Duvenaud, Moham-¨ mad Norouzi, and Kevin Swersky. “Your classifier is secretly an energy based model and you should treat it like one”. In: arXiv preprint arXiv:1912.03263 (2019). \n[Har04] Gilles Harge. “A convex/log-concave correlation inequality for Gaussian measure and ´ an application to abstract Wiener spaces”. In: Probability theory and related fields 130.3 (2004), pp. 415–440. \n[HJA20] Jonathan Ho, Ajay Jain, and Pieter Abbeel. “Denoising diffusion probabilistic models”. In: Advances in Neural Information Processing Systems 33 (2020), pp. 6840–6851. \n$[ \\mathrm { J i n } \\substack { + 2 2 } ]$ Bowen Jing, Gabriele Corso, Renato Berlinghieri, and Tommi Jaakkola. “Subspace Diffusion Generative Models”. In: arXiv preprint arXiv:2205.01490 (2022). \n[KW19] Diederik P Kingma and Max Welling. “An introduction to variational autoencoders”. In: arXiv preprint arXiv:1906.02691 (2019). \n[Lee+21] Holden Lee, Chirag Pabbaraju, Anish Sevekari, and Andrej Risteski. “Universal Approximation for Log-concave Distributions using Well-conditioned Normalizing Flows”. In: arXiv preprint arXiv:2107.02951 (2021). \n[Men+21] Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. “SDEdit: Guided image synthesis and editing with stochastic differential equations”. In: International Conference on Learning Representations. 2021. \n[MMS20] Mateusz B Majka, Aleksandar Mijatovic, and Łukasz Szpruch. “Nonasymptotic ´ bounds for sampling algorithms without log-concavity”. In: The Annals of Applied Probability 30.4 (2020), pp. 1534–1581. \n[SE19] Yang Song and Stefano Ermon. “Generative Modeling by Estimating Gradients of the Data Distribution”. In: Proceedings of the 33rd Annual Conference on Neural Information Processing Systems. 2019. \n[SE20] Yang Song and Stefano Ermon. “Improved techniques for training score-based generative models”. In: arXiv preprint arXiv:2006.09011 (2020). \n$[ { \\mathrm { S o h } } + 1 5 ]$ Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. “Deep unsupervised learning using nonequilibrium thermodynamics”. In: International Conference on Machine Learning. PMLR. 2015, pp. 2256–2265. \n$[ \\mathrm { S o n } { + } 2 0 \\mathrm { a } ]$ Yang Song, Sahaj Garg, Jiaxin Shi, and Stefano Ermon. “Sliced score matching: A scalable approach to density and score estimation”. In: Uncertainty in Artificial Intelligence. PMLR. 2020, pp. 574–584. \n$[ \\mathrm { S o n } { + } 2 0 \\mathrm { b } ]$ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. “Score-Based Generative Modeling through Stochastic Differential Equations”. In: International Conference on Learning Representations. 2020. \n$[ \\mathrm { S o n } { + } 2 1 \\mathrm { a } ]$ Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. “Maximum likelihood training of score-based diffusion models”. In: Advances in Neural Information Processing Systems 34 (2021). \n$[ \\mathsf { S o n } { + } 2 1 \\mathsf { b } ]$ Yang Song, Liyue Shen, Lei Xing, and Stefano Ermon. “Solving Inverse Problems in Medical Imaging with Score-Based Generative Models”. In: arXiv preprint arXiv:2111.08005 (2021). \n[TR19] Belinda Tzen and Maxim Raginsky. “Theoretical guarantees for sampling and inference in generative models with latent diffusions”. In: Conference on Learning Theory. PMLR. 2019, pp. 3084–3114. \n[VW19] Santosh Vempala and Andre Wibisono. “Rapid convergence of the unadjusted langevin algorithm: Isoperimetry suffices”. In: Advances in neural information processing systems 32 (2019), pp. 8094–8106. \n[ZML16] Junbo Zhao, Michael Mathieu, and Yann LeCun. “Energy-based generative adversarial network”. In: arXiv preprint arXiv:1609.03126 (2016). ",
1486
+ "bbox": [
1487
+ 173,
1488
+ 121,
1489
+ 828,
1490
+ 893
1491
+ ],
1492
+ "page_idx": 10
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "",
1497
+ "bbox": [
1498
+ 171,
1499
+ 94,
1500
+ 828,
1501
+ 857
1502
+ ],
1503
+ "page_idx": 11
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "1. For all authors... ",
1508
+ "bbox": [
1509
+ 214,
1510
+ 92,
1511
+ 339,
1512
+ 106
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] \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
+ 109,
1522
+ 825,
1523
+ 202
1524
+ ],
1525
+ "page_idx": 12
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "2. If you are including theoretical results... ",
1530
+ "bbox": [
1531
+ 214,
1532
+ 205,
1533
+ 493,
1534
+ 220
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] (b) Did you include complete proofs of all theoretical results? [Yes] ",
1541
+ "bbox": [
1542
+ 236,
1543
+ 224,
1544
+ 735,
1545
+ 256
1546
+ ],
1547
+ "page_idx": 12
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "3. If you ran experiments... ",
1552
+ "bbox": [
1553
+ 212,
1554
+ 260,
1555
+ 393,
1556
+ 273
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)? [N/A] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \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)? [N/A] ",
1563
+ "bbox": [
1564
+ 238,
1565
+ 279,
1566
+ 825,
1567
+ 397
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
+ 401,
1577
+ 823,
1578
+ 416
1579
+ ],
1580
+ "page_idx": 12
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1585
+ "bbox": [
1586
+ 238,
1587
+ 420,
1588
+ 825,
1589
+ 541
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
+ 545,
1599
+ 705,
1600
+ 560
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
+ 564,
1610
+ 825,
1611
+ 654
1612
+ ],
1613
+ "page_idx": 12
1614
+ }
1615
+ ]
parse/dev/dUSI4vFyMK/dUSI4vFyMK_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/dz79MhQXWvg/dz79MhQXWvg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/luEG3j9LW5-/luEG3j9LW5-.md ADDED
@@ -0,0 +1,432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BIDIRECTIONAL LEARNING FOR OFFLINE MODELBASED BIOLOGICAL SEQUENCE DESIGN
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Offline model-based optimization aims to maximize a black-box objective function with a static dataset of designs and their scores. In this paper, we focus on biological sequence design to maximize some sequence score. A recent approach employs bidirectional learning, combining a forward mapping for exploitation and a backward mapping for constraint, and it relies on the neural tangent kernel (NTK) of an infinitely wide network to build a proxy model. Though effective, the NTK cannot learn features because of its parametrization, and its use prevents the incorporation of powerful pre-trained Language Models (LMs) that can capture the rich biophysical information in millions of biological sequences. We adopt an alternative proxy model, adding a linear head to a pre-trained LM, and propose a linearization scheme. This yields a closed-form loss and also takes into account the biophysical information in the pre-trained LM. In addition, the forward mapping and the backward mapping play different roles and thus deserve different weights during sequence optimization. To achieve this, we train an auxiliary model and leverage its weak supervision signal via a bi-level optimization framework to effectively learn how to balance the two mappings. Further, by extending the framework, we develop the first learning rate adaptation module Adaptive- $\eta$ , which is compatible with all gradient-based algorithms for offline model-based optimization. Experimental results on DNA/protein sequence design tasks verify the effectiveness of our algorithm. Our code is available here.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Offline model-based optimization aims to maximize a black-box objective function with a static dataset of designs and their scores. This offline setting is realistic since in many real-world scenarios we do not have interactive access to the ground-truth evaluation. The design tasks of interest include material, aircraft, and biological sequence (Trabucco et al., 2021). In this paper, we focus on biological sequence design, including DNA sequence and protein sequence, with the goal of maximizing some specified property of these sequences.
12
+
13
+ A wide variety of methods have been proposed for biological sequence design, including evolutionary algorithms (Sinai et al., 2020; Ren et al., 2022), reinforcement learning methods (Angermueller et al., 2019), Bayesian optimization (Terayama et al., 2021), search/sampling using generative models (Brookes et al., 2019; Chan et al., 2021), and GFlowNets (Jain et al., 2022). Recently, gradient-based techniques have emerged as an effective alternative (Trabucco et al., 2021). These approaches first train a deep neural network (DNN) on the static dataset as a proxy and then obtain the new designs by directly performing gradient ascent steps on the existing designs. Such methods have been widely used in biological sequence design (Norn et al., 2021; Tischer et al., 2020; Linder & Seelig, 2020). One obstacle is the out-of-distribution issue, where the trained proxy model is inaccurate for the newly generated sequences.
14
+
15
+ To mitigate the out-of-distribution issue, recent work proposes regularization of the model (Trabucco et al., 2021; Yu et al., 2021; Fu & Levine, 2021) or the design itself (Chen et al., 2022). The first category focuses on training a better proxy by introducing inductive biases such as robustness (Yu et al., 2021). The second category introduces bidirectional learning (Chen et al., 2022), which consists of a forward mapping and a backward mapping, to optimize the design directly. Specifically, the backward mapping leverages the high-scoring design to predict the static dataset and vice versa for the forward mapping, which distills the information of the static dataset into the high-scoring design. This approach achieves state-of-the-art performances on a variety of tasks. Though effective, the proposed bidirectional learning relies on the neural tangent kernel (NTK) of an infinite-width model to yield a closed-form loss, which is a key component of its successful operation. The NTK cannot learn features due to its parameterization (Yang & Hu, 2021) and thus the bidirectional learning cannot incorporate the wealth of biophysical information from Language Models (LMs) pre-trained over a vast corpus of unlabelled sequences (Elnaggar et al., 2021; Ji et al., 2021).
16
+
17
+ To solve this issue, we construct a proxy model by combining a finite-width pre-trained LM with an additional layer. We then linearize the resultant proxy model, inspired by the recent progress in deep linearization (Achille et al., 2021; Dukler et al., 2022). This scheme not only yields a closed-form loss but also exploits the rich biophysical information that has been distilled in the pre-trained LM. In addition, the forward mapping encourages exploitation in the sequence space and the backward mapping serves as a constraint to mitigate the out-of-distribution issue. It is important to maintain an appropriate balance between exploitation and constraint, and this can vary across design tasks as well as during the optimization process. We introduce a hyperparameter $\gamma$ to control the balance, and develop a bi-level optimization framework Adaptive- $\gamma$ . In this framework, we train an auxiliary model and leverage its weak supervision signal to effectively update $\gamma$ . To sum up, we propose BIdirectional learning for model-based Biological sequence design (BIB). Last but not least, since the offline nature prohibits standard cross-validation strategies for hyperparameter tuning, all gradient-based offline model-based algorithms preset the learning rate $\eta$ . There is a danger of a poor selection, and to address this, we propose to extend Adaptive- $\gamma$ to Adaptive- $\eta$ , which effectively adapts the learning rate $\eta$ via the weak supervision signal from the trained auxiliary model. To the best of our knowledge, Adaptive- $\eta$ is the first learning rate adaptation module for gradient-based algorithms on offline model-based optimization. Experiments on DNA and protein sequence design tasks verify the effectiveness of BIB and Adaptive- $\eta$ .
18
+
19
+ To summarize, our contributions are three-fold:
20
+
21
+ • Instead of adopting the NTK, we propose to construct a proxy model by combining a pre-trained biological LM with an additional trainable layer. We then linearize the proxy model, leveraging the recent progress on deep linearization. This yields a closed-form loss computation in bidirectional learning and allows us to exploit the rich biophysical information distilled into the LM via pretraining over millions of biological sequences.
22
+ • We propose a bi-level optimization framework Adaptive- $\gamma$ where we leverage weak signals from an auxiliary model to achieve a satisfactory trade-off between exploitation and constraint.
23
+ • We further extend this bi-level optimization framework to Adaptive- $\eta$ . As the first learning rate tuning scheme in offline model-based optimization, Adaptive- $\eta$ allows learning rate adaptation for any gradient-based algorithm.
24
+
25
+ # 2 PRELIMINARIES
26
+
27
+ # 2.1 OFFLINE MODEL-BASED OPTIMIZATION
28
+
29
+ Offline model-based optimization aims to find a design $\boldsymbol { X }$ to maximize some unknown objective $f ( X )$ . This can be formally written as,
30
+
31
+ $$
32
+ X ^ { * } = \arg \operatorname* { m a x } _ { X } f ( X ) ,
33
+ $$
34
+
35
+ where we have access to a size- $N$ dataset $\mathcal { D } = \{ ( \boldsymbol { X } _ { 1 } , \boldsymbol { y } _ { 1 } ) \} , \cdot \cdot \cdot , \{ ( \boldsymbol { X } _ { N } , \boldsymbol { y } _ { N } ) \}$ with $X _ { i }$ representing a certain design and $y _ { i }$ denoting the design score. In this paper, $X _ { i }$ represents a biological sequence design, including DNA and protein sequences, and $y _ { i }$ represents a property of the biological sequence such as the fluorescence level of the green fluorescent protein (Sarkisyan et al., 2016).
36
+
37
+ # 2.2 BIOLOGICAL SEQUENCE REPRESENTATION
38
+
39
+ Following (Norn et al., 2021; Killoran et al., 2017; Linder & Seelig, 2021), we adopt the positionspecific scoring matrix to represent a length- $L$ protein sequence as $\breve { X } \in \mathbb { R } ^ { L \times 2 0 }$ , where 20 represents 20 different kinds of amino acids. For a real-world protein sequence, $X [ l , : ] \ : ( 0 \leq l \leq L - 1 )$ i s a
40
+
41
+ ![](images/ab7fe875504c0ffd085415039d1827d692d3613f1222a79b03fb1845c8795018.jpg)
42
+ Figure 1: Illustration of bidirectional learning Chen et al. (2022) where $( X _ { l } , y _ { l } )$ denotes the static dataset, $y _ { h }$ is a large predefined target score and $X _ { h }$ is the high-scoring design we aim to find.
43
+
44
+ one-hot vector denoting one kind of amino acid. During optimization, $X [ l , : ]$ is a continuous vector and $s o f t m a x ( X [ l , : ] )$ represents the probability distribution of all 20 amino acids in the position $l$ . Similarly, for a DNA sequence, we have $\pmb { X } \in \tilde { \mathbb { R } ^ { L \times 4 } }$ where 4 represents 4 different DNA bases.
45
+
46
+ The protein sequence $\boldsymbol { X }$ is fed into the embedding layer of the LM, which produces the embedding,
47
+
48
+ $$
49
+ \pmb { e } = E M B ( s o f t m a x ( \pmb { X } ) ) .
50
+ $$
51
+
52
+ The main block of the LM takes $e$ as input and outputs biophysical features. The DNA LM, which adopts the $k$ -mer representation, is a little different from protein LMs. See Appendix A.1 for details.
53
+
54
+ # 2.3 GRADIENT ASCENT ON SEQUENCE
55
+
56
+ A common approach to the posed offline model-based optimization problem is to train a proxy $f _ { \pmb { \theta } } ( \pmb { X } )$ on the offline dataset,
57
+
58
+ $$
59
+ \pmb { \theta } ^ { * } = \arg \operatorname* { m i n } _ { \pmb { \theta } } \frac { 1 } { N } \sum _ { i = 1 } ^ { N } ( f _ { \pmb { \theta } } ( X _ { i } ) - y _ { i } ) ^ { 2 } .
60
+ $$
61
+
62
+ Then we can obtain the high-scoring design $X _ { h }$ by $T$ gradient ascent steps:
63
+
64
+ $$
65
+ { \mathbf { } } X _ { t + 1 } = X _ { t } + \eta \nabla _ { { \mathbf { } } X } f _ { \theta ^ { * } } ( X ) | _ { X = X _ { t } } , \quad { \mathrm { f o r ~ } } t \in [ 0 , T - 1 ] ,
66
+ $$
67
+
68
+ where the high-scoring design $X _ { h }$ can be obtained as $X _ { T }$ .
69
+
70
+ Considering the discrete nature of biological sequences, the input of $f _ { \theta } ( \cdot )$ should be discrete one-hot vectors. Following (Norn et al., 2021), we can perform the conversion and predict the score via:
71
+
72
+ $$
73
+ \begin{array} { r l } & { \hat { X } _ { i } = s o f t m a x ( { X } _ { i } ) , } \\ & { \quad { Z } _ { i } = o n e h o t ( a r g m a x ( \hat { X } _ { i } ) ) , } \\ & { \quad \hat { y } = f _ { \pmb { \theta } } ( { Z } _ { i } ) . } \end{array}
74
+ $$
75
+
76
+ Then the gradient regarding $X _ { i }$ can be approximated as,
77
+
78
+ $$
79
+ \frac { d f _ { \pmb \theta } ( Z _ { i } ) } { d { \pmb x } _ { i } } \approx \frac { d f _ { \pmb \theta } ( Z _ { i } ) } { d z _ { i } } \frac { d \hat { \pmb x } _ { i } } { d { \pmb x } _ { i } } ,
80
+ $$
81
+
82
+ where we unroll the matrices $X _ { i } , \hat { X } _ { i }$ and $\boldsymbol { Z } _ { i }$ as vectors $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ , $\hat { \mathbf { x } } _ { i }$ and $z _ { i }$ for notational convenience. This approximation allows us to use backpropagation directly from the proxy to the sequence design $X _ { i }$ . For brevity, we will still use $f _ { \pmb { \theta } } ( \pmb { X } _ { i } )$ to represent the proxy.
83
+
84
+ # 2.4 BIDIRECTIONAL LEARNING
85
+
86
+ As shown in Figure 1, bidirectional learning (Chen et al., 2022), consists of two mappings: the forward mapping leverages the static dataset $\cdot$ to predict the score $\cdot$ of the high-scoring
87
+
88
+ design $\cdot$ , and the backward mapping leverages the high-scoring design data $( X _ { h } , y _ { h } )$ to predict the static dataset $( X _ { l } , y _ { l } )$ . The forward mapping loss can be written as
89
+
90
+ $$
91
+ \mathcal { L } _ { l 2 h } ( \boldsymbol { X } _ { h } ) = \| \boldsymbol { y } _ { h } - \boldsymbol { f } _ { \theta ^ { * } } ^ { l } ( \boldsymbol { X } _ { h } ) \| ^ { 2 } ,
92
+ $$
93
+
94
+ where $\cdot$ is given by
95
+
96
+ $$
97
+ -
98
+ $$
99
+
100
+ where $\cdot$ is a regularization parameter. The backward mapping loss can be written as
101
+
102
+ $$
103
+ \mathcal { L } _ { h 2 l } ( \boldsymbol { X } _ { h } ) = \| \boldsymbol { y } _ { l } - f _ { \theta ^ { * } ( \boldsymbol { X } _ { h } ) } ^ { h } ( \boldsymbol { X } _ { l } ) \| ^ { 2 } ,
104
+ $$
105
+
106
+ where $\cdot$ is given by
107
+
108
+ $$
109
+ -
110
+ $$
111
+
112
+ The high-scoring design $\cdot$ can be optimized by minimizing the bidirectional learning loss $\mathcal { L } ( X _ { h } ) =$ $\mathcal { L } _ { l 2 h } ( X _ { h } ) + \mathcal { L } _ { h 2 l } ( X _ { h } )$ .
113
+
114
+ # 3 METHOD
115
+
116
+ In this section, we first illustrate how to leverage deep linearization to compute the bidirectional learning loss in a closed form. Subsequently, we introduce a hyperparameter $\gamma$ to control the balance between the forward mapping and the backward mapping. We then develop a novel bi-level optimization framework Adaptive- $\gamma$ , which leverages a weak supervision signal from an auxiliary model to effectively update $\gamma$ . Last but not least, we extend this framework to Adaptive- $\eta$ , which enables us to adapt the learning rate $\eta$ for all gradient-based offline model-based algorithms. We summarize our method in Algorithm 1.
117
+
118
+ # 3.1 DEEP LINEARIZATION FOR BIDIRECTIONAL LEARNING
119
+
120
+ In bidirectional learning, the backward mapping loss is intractable for a finite neural network, so Chen et al. (2022) employ a neural network with infinite width, which yields a closed-form loss via the NTK. This however makes it impossible to incorporate the rich biophysical information that has been distilled into a pre-trained LM (Yang & Hu, 2021). Considering this, we construct a proxy model by combining a finite-width pre-trained LM with an additional layer. We then linearize the resultant proxy model, inspired by the recent progress in deep linearization which has established that an overparameterized DNN model is close to its linearization (Achille et al., 2021; Dukler et al., 2022).
121
+
122
+ Denote by $\pmb { \theta _ { 0 } } = ( \pmb { \theta _ { p t } } , \pmb { \theta _ { i n i t } ^ { l i n } } ) \in \mathcal { R } ^ { D \times 1 }$ the proxy model parameters derived by combining the parameters of the pre-trainedpaper, we adopt the pre-traine $\operatorname { L M } \theta _ { p t }$ and a random initialization of the linear layer ERT (Ji et al., 2021) and Prot-BERT (Elnagga $\theta _ { i n i t } ^ { l i n }$ . In thisl., 2021) models, and compute the average of token embeddings as the extracted feature, which is fed into the linear layer to build the proxy. Then we can construct a linear approximation for the proxy model:
123
+
124
+ $$
125
+ f _ { \pmb \theta } ( \pmb X ) \approx f _ { \pmb \theta _ { 0 } } ( \pmb X ) + \nabla \pmb \theta \ = f _ { \pmb \theta _ { 0 } } ( \pmb X ) \cdot ( \pmb \theta - \pmb \theta _ { 0 } ) ,
126
+ $$
127
+
128
+ where $f _ { \theta } ( X ) , f _ { \theta _ { 0 } } ( X ) \in \mathcal { R } , \bigtriangledown _ { \theta } f _ { \theta _ { 0 } } ( X ) \in \mathcal { R } ^ { 1 \times L }$ and $\_$ . Intuitively, if the fine-tuning does not significantly change $\pmb { \theta _ { 0 } }$ , then this linearization is a good approximation. By leveraging this linearization, we can obtain a closed-form solution for Eq.(12) as:
129
+
130
+ $$
131
+ \pmb { \theta } ^ { \ast } ( \pmb { X } _ { h } ) = ( \nabla \theta f _ { \theta _ { 0 } } ( \pmb { X } _ { h } ) ^ { \top } \nabla \theta ~ f _ { \theta _ { 0 } } ( \pmb { X } _ { h } ) + \beta \pmb { I } ) ^ { - 1 } \nabla \theta ~ f _ { \theta _ { 0 } } ( \pmb { X } _ { h } ) \top ( y _ { h } - f _ { \theta _ { 0 } } ( \pmb { X } _ { h } ) ) + \theta _ { 0 } .
132
+ $$
133
+
134
+ Building on this result, we can compute the bidirectional learning loss as:
135
+
136
+ $$
137
+ \begin{array} { l } { \displaystyle \mathcal { L } _ { b i } ( \pmb { X } _ { h } ) = \frac { 1 } { 2 } ( \| y _ { h } - \pmb { K } _ { X _ { h } X _ { l } } ( \pmb { K } _ { X _ { l } X _ { l } } + \beta \pmb { I } ) ^ { - 1 } ( y _ { l } - f _ { \pmb { \theta _ { 0 } } } ( \pmb { X } _ { l } ) ) \| ^ { 2 } } \\ { \displaystyle + \| y _ { l } - \pmb { K } _ { X _ { l } X _ { h } } ( \pmb { K } _ { X _ { h } X _ { h } } + \beta \pmb { I } ) ^ { - 1 } ( y _ { h } - f _ { \pmb { \theta _ { 0 } } } ( \pmb { X } _ { h } ) ) \| ^ { 2 } ) , } \end{array}
138
+ $$
139
+
140
+ where $K ( X _ { i } , X _ { j } ) = \bigtriangledown \theta \ f _ { \theta _ { 0 } } ( X _ { i } ) \top \bigtriangledown \theta \ f _ { \theta _ { 0 } } ( X _ { j } )$ . Following (Dukler et al., 2022), we can also only linearize the last layer of the network for simplicity, which defines the following kernel,
141
+
142
+ $$
143
+ \begin{array} { r } { K ( X _ { i } , X _ { j } ) = B E R T ( X _ { i } ) ^ { \top } B E R T ( X _ { j } ) , } \end{array}
144
+ $$
145
+
146
+ where $B E R T ( \pmb { X } )$ denotes the feature of the sequence $\boldsymbol { X }$ extracted by BERT. Its kernel nature makes this approach suitable for small-data tasks (Arora et al., 2020), especially in drug discovery where the labeling cost of DNA/proteins is high.
147
+
148
+ Algorithm 1 Bidirectional Learning for Offline Model-based Biological Sequence Design
149
+
150
+ <table><tr><td>Input: Static dataset D =(Xt, yt),predefined target score yh = 1O, # of iterations T, pre-trained biological LM parameterized by 0o,auxiliary model faux(*),regularization /β. Output: High-scoring design X*.</td></tr><tr><td>1: Initialize Xo as the sequence with the highest score in D</td></tr><tr><td>2: forT←0toT-1do</td></tr><tr><td>3: Leverage Adaptive-γ in Sec 3.2 to update the balance γ by Eq. (21)</td></tr><tr><td>4: if Adapt learning rate then</td></tr><tr><td>5: Leverage Adaptive-n in Sec 3.3 to update the learning rate η by Eq. (23)</td></tr><tr><td>6: Optimize X by minimizing the bidirectional learning loss Lbi(X,,γ) in Eq. (17): 7:</td></tr><tr><td>Xr+1= X,-nOPT(VxLbi(X.,γ)) 8: Return X* = XT</td></tr></table>
151
+
152
+ # 3.2 ADAPTIVE- $\gamma$
153
+
154
+ The forward mapping and the backward mapping play different roles in the sequence optimization process: the forward mapping encourages the high-scoring sequence to search for a higher target score (exploitation) and the backward mapping serves as a constraint. Since different sequences require different degrees of constraint, we introduce an extra hyperparameter $\gamma \in [ 0 , 1 ]$ to control the balance between the corresponding terms in the loss function:
155
+
156
+ $$
157
+ \mathcal { L } _ { b i } ( \boldsymbol { X } _ { h } , \gamma ) = \gamma \mathcal { L } _ { l 2 h } ( \boldsymbol { X } _ { h } ) + ( 1 - \gamma ) \mathcal { L } _ { h 2 l } ( \boldsymbol { X } _ { h } ) .
158
+ $$
159
+
160
+ Thus $\gamma = 1 . 0$ corresponds to the forward mapping alone, $\gamma = 0$ results in backward mapping, and $\gamma = 0 . 5$ leads to the bidirectional loss of (Chen et al., 2022).
161
+
162
+ It is non-trivial to determine the most suitable value for $\gamma$ since we do not know the ground-truth score for a new design. One possible solution is to train an auxiliary $f _ { a u x } ( \cdot )$ to serve as a proxy evaluation. A reasonable auxiliary is a simple regression model fitted to the offline dataset. Although this auxiliary model cannot yield ground-truth scores, it can provide weak supervision signals to update $\gamma$ , since the auxiliary model and the bidirectional learning provide complementary information. This is similar to co-teaching (Han et al., 2018) where two models leverage each other’s view.
163
+
164
+ Formally, we introduce the Adaptive- $\gamma$ framework. Given a good choice of $\gamma$ , the produced $X _ { h }$ is expected to have a high score $f _ { a u x } ( \pmb { X } _ { h } )$ , based on which we can choose $\gamma$ . To make the search for $\gamma$ more efficient, we can formulate this process as a bi-level optimization problem:
165
+
166
+ $$
167
+ \begin{array} { r } { \gamma ^ { * } = \underset { \gamma } { \arg \operatorname* { m a x } } f _ { a u x } \big ( X _ { h } ^ { * } ( \gamma ) \big ) , \ } \\ { \mathrm { s . t . } \quad X _ { h } ^ { * } ( \gamma ) = \underset { X _ { h } } { \arg \operatorname* { m i n } } \mathcal { L } _ { b i } \big ( X _ { h } , \gamma \big ) . \ } \end{array}
168
+ $$
169
+
170
+ We can then use the hyper-gradient $\frac { \partial f _ { a u x } ( \pmb { X } _ { h } ^ { * } ( \gamma ) ) } { \partial \gamma }$ to update $\gamma$ . Specifically, the inner level solution can be approximated via a gradient descent step with a learning rate $\eta$ :
171
+
172
+ $$
173
+ \mathbf { } X _ { h } ^ { * } ( \gamma ) = X _ { h } - \eta \frac { d \mathcal { L } _ { b i } ( X _ { h } , \gamma ) } { d X _ { h } ^ { \top } } .
174
+ $$
175
+
176
+ For the outer level, we update $\gamma$ by hyper-gradient ascent:
177
+
178
+ $$
179
+ \gamma = \gamma + \eta ^ { ' } \frac { d f _ { a u x } ( \pmb { X } _ { h } ^ { * } ( \gamma ) ) } { d \gamma } = \gamma + \eta ^ { ' } \frac { d f _ { a u x } ( \pmb { X } _ { h } ) } { d \pmb { x } _ { h } } \frac { d \mathcal { L } _ { b i } ( \pmb { X } _ { h } , \gamma ) } { d \pmb { x } _ { h } ^ { \top } } ,
180
+ $$
181
+
182
+ where we unroll the matrix $X _ { h }$ as a vector $\scriptstyle { \mathbf { 2 } } \mathbf { } \boldsymbol { { k } } _ { h }$ for better illustration.
183
+
184
+ # 3.3 ADAPTIVE- $\eta$
185
+
186
+ We now extend the Adaptive- $\gamma$ framework to Adaptive- $\eta$ . As the first learning rate adaptation module for offline model-based optimization, Adaptive- $\eta$ is compatible with all gradient-based algorithms and can effectively finetune the learning rate $\eta$ via the auxiliary model’s weak supervision signal. All gradient-based methods that maximize $\mathcal { L } _ { \boldsymbol { \theta } } ( X )$ with respect to $\boldsymbol { X }$ have the following general form:
187
+
188
+ $$
189
+ X _ { t + 1 } = X _ { t } + \eta O P T ( \nabla _ { X } \mathcal { L } _ { \theta } ( X ) | _ { X = X _ { t } } ) , \quad \mathrm { f o r } t \in [ 0 , \mathrm { T } - 1 ] ,
190
+ $$
191
+
192
+ where $\eta$ represents the learning rate of the optimizer. For methods such as simple gradient ascent (Grad), COMs (Trabucco et al., 2021), ROMA ( $\mathrm { Y u }$ et al., 2021) and NEMO (Fu & Levine, 2021), $\mathcal { L } _ { \boldsymbol { \theta } } ( \cdot )$ is related to the proxy model $f _ { \theta } ( \cdot )$ ; for BDI Chen et al. (2022) and our proposed method, BIB, $\mathcal { L } _ { \boldsymbol { \theta } } ( \cdot )$ is the negative of the bidirectional learning loss, i.e., $\mathcal { L } _ { \theta } = - \mathcal { L } _ { b i }$ .
193
+
194
+ Though the learning rate $\eta$ can be adapted in some optimizers such as Adam (Kingma & Ba, 2015), these adaptations rely on only the past optimization history and do not consider the weak supervision signal from the auxiliary model. Our Adaptive- $\eta$ optimizes $\eta$ by solving:
195
+
196
+ $$
197
+ \eta ^ { * } = \arg \operatorname* { m a x } _ { \eta } f _ { a u x } ( X _ { h } ^ { * } ( \eta ) ) ,
198
+ $$
199
+
200
+ where $\eta$ can be updated via gradient ascent methods. Considering the sequence optimization procedure is highly sensitive to the learning rate $\eta$ , we reset $\eta$ to $\eta _ { 0 }$ at each iteration and update $\eta$ from $\eta _ { 0 }$ ,
201
+
202
+ $$
203
+ \eta = \eta _ { 0 } - \eta ^ { ' } \frac { d f _ { a u x } ( X _ { h } ^ { * } ( \eta ) ) } { d \eta } .
204
+ $$
205
+
206
+ In general, this serves to stabilize the optimization procedure.
207
+
208
+ # 4 EXPERIMENTS
209
+
210
+ We conduct extensive experiments on DNA and protein design tasks, and aim to answer three research questions: (1) How does BIB compare with state-of-the-art algorithms? (2) Is every design component necessary in BIB? (3) Does the Adaptive- $\eta$ module improve gradient-based methods?
211
+
212
+ # 4.1 BENCHMARK
213
+
214
+ We conduct experiments on two DNA tasks: TFBind8(r) and TFBind10(r), following (Chen et al., 2022) and three protein tasks: avGFP, AAV and E4B, in (Ren et al., 2022) which have the most data points. See See Appendix A.2 for details.
215
+
216
+ Following (Trabucco et al., 2021), we select the top $N = 1 2 8$ most promising sequences for each comparison method. Among these sequences, we report the maximum normalized ground truth score as the evaluation metric following (Ren et al., 2022).
217
+
218
+ # 4.2 COMPARISON METHODS
219
+
220
+ We compare BIB with two groups of baselines: the gradient-based methods and the non-gradientbased methods. For a fair comparison, the pre-trained LM is used for all methods involving a proxy and we don’t finetune the LM. The gradient-based methods include: 1) Grad: gradient ascent on existing sequences to obtain new sequences; 2) COMs (Trabucco et al., 2021): lower bounds the DNN model by the ground-truth values and then applies gradient ascent; 3) ROMA (Yu et al., 2021): incorporates a smoothness prior into the DNN model before gradient ascent steps; 4) NEMO (Fu & Levine, 2021): leverages the normalized maximum-likelihood estimator to bound the distance between the DNN model and the ground-truth values; 5) BDI (Chen et al., 2022): adopts the infinitely wide neural network and its NTK to yield a closed-form bidirectional learning loss.
221
+
222
+ The non-gradient-based methods include: 1) BO-qEI (Wilson et al., 2017): builds an acquisition function for sequence exploration; 2) CMA-ES (Hansen, 2006): estimates the covariance matrix to adjust the sequence distribution towards the high-scoring region; 3) AdaLead (Sinai et al., 2020): performs a hill-climbing search on the proxy and then queries the sequences with high predictions; 4) CbAS (Brookes et al., 2019): builds a generative model for sequences above a property threshold and gradually adapts the distribution by increasing the threshold; 5) PEX (Ren et al., 2022): prioritizes the evolutionary search for protein sequences with low mutation counts; 6) GENH (Chan et al., 2021): enhances the score through a learned latent space.
223
+
224
+ # 4.3 TRAINING DETAILS
225
+
226
+ We follow the training setting in (Chen et al., 2022) if not specified. We choose $O P T$ as the Adam optimizer (Kingma & Ba, 2015) for all gradient-based methods. We implement the auxiliary model
227
+
228
+ Table 1: Experimental results (maximum normalized ground truth score) for comparison.
229
+
230
+ <table><tr><td>Method</td><td>TFBind8(r)</td><td>TFBind10(r)</td><td>avGFP</td><td>AAV</td><td>E4B</td><td>RankMean</td><td>RankMedian</td></tr><tr><td>D(best)</td><td>0.242</td><td>0.248</td><td>0.742</td><td>0.452</td><td>0.224</td><td></td><td></td></tr><tr><td>BO-qEI</td><td>0.940 ±0.032</td><td>0.595 ±0.028</td><td>1.700 ± 0.020</td><td>0.591 ± 0.002</td><td>0.436±0.004</td><td>6.0/12</td><td>7.0/12</td></tr><tr><td>CMA-ES</td><td>0.930 ±0.034</td><td>0.617±0.031</td><td>5.488 ± 0.056</td><td>0.470±0.006</td><td>0.748 ± 0.009</td><td>6.0/12</td><td>6.0/12</td></tr><tr><td>AdaLead</td><td>0.941 ± 0.032</td><td>0.602±0.028</td><td>1.611 ± 0.009</td><td>0.581 ± 0.002</td><td>0.433 ± 0.003</td><td>6.2/12</td><td>8.0/12</td></tr><tr><td>CbAS</td><td>0.878± 0.049</td><td>0.610 ±0.035</td><td>1.371 ± 0.016</td><td>0.543± 0.002</td><td>0.349 ± 0.003</td><td>8.6/12</td><td>10.0/12</td></tr><tr><td>PEX</td><td>0.924 ± 0.041</td><td>0.612 ± 0.026</td><td>1.546 ± 0.019</td><td>0.588±0.002</td><td>0.397 ± 0.004</td><td>7.2/12</td><td>8.0/12</td></tr><tr><td>GENH</td><td>0.323 ± 0.000</td><td>0.448 ±0.000</td><td>0.835 ±0.000</td><td>0.452 ± 0.000</td><td>0.228 ±0.000</td><td>11.4/12</td><td>11.0/12</td></tr><tr><td>Grad</td><td>0.941±0.026</td><td>0.630±0.029</td><td>4.869± 0.042</td><td>0.463±0.005</td><td>1.219 ± 0.061</td><td>4.8/12</td><td>4.0/12</td></tr><tr><td>COMs</td><td>0.921 ± 0.039</td><td>0.637 ± 0.065</td><td>3.873±0.080</td><td>0.511 ± 0.005</td><td>0.829 ± 0.026</td><td>5.6/12</td><td>5.0/12</td></tr><tr><td>ROMA</td><td>0.926 ± 0.032</td><td>0.634±0.061</td><td>5.621 ± 0.143</td><td>0.471 ± 0.005</td><td>1.198 ± 0.042</td><td>4.8/12</td><td>4.0/12</td></tr><tr><td>NEMO</td><td>0.930 ±0.038</td><td>0.632 ±0.024</td><td>4.624 ± 0.087</td><td>0.505 ± 0.005</td><td>1.036 ± 0.046</td><td>5.0/12</td><td>5.0/12</td></tr><tr><td>BDI</td><td>0.823 ± 0.000</td><td>0.678 ±0.000</td><td>0.742 ± 0.000</td><td>0.452 ±0.000</td><td>0.224 ± 0.000</td><td>9.4/12</td><td>11.0/12</td></tr><tr><td>BIB(ours)</td><td>0.952±0.033</td><td>0.639±0.032</td><td>8.084±0.224</td><td>0.501±0.007</td><td>1.255 ± 0.029</td><td>2.4/12</td><td>1.0/12</td></tr></table>
231
+
232
+ as a linear layer with the feature from the pre-trained LM. We set the number of iterations $T$ as 25 for all experiments following (Norn et al., 2021) and $\eta _ { 0 }$ as 0.1 following (Chen et al., 2022). We run every setting over 16 trials and report the average score. See Appendix A.3 for other details.
233
+
234
+ # 4.4 RESULTS AND ANALYSIS
235
+
236
+ We report all experimental results in Table 1 and plot the ranking statistics in Figure 2. We make the following observations. (1) As shown in Table 1, BIB consistently outperforms the Grad method on all tasks, which demonstrates that our BIB can effectively mitigate the out-of-distribution issue. (2) Furthermore, BIB outperforms BDI on 4 out of 5 tasks, which demonstrates the effectiveness of the pre-trained biological LM over NTK. The reason why BDI outperforms BIB on TFBind10(r) may be that short sequences do not rely much on the rich sequential information from the pre-trained LM. (3) As shown in Figure 2, the gradient-based methods generally perform better than the non-gradient-based methods, as also observed by Trabucco et al. (2021). (4) The gradient-based methods are inferior for the AAV task.
237
+
238
+ One possible reason is that the design space of AAV $( 2 0 ^ { 2 8 } )$ is much smaller than those of avGFP $( 2 0 ^ { \overline { { 2 3 9 } } } )$ and E4B $( 2 0 ^ { 1 0 2 } )$ ), which makes the generative modeling and evolutionary algorithms more suitable. (5) This conjecture is also supported by the experimental results on two DNA design tasks. We compute the average ranking of gradient-based methods and non-grad-based methods on TFBind10(r) as 3.5 and 9.5, respectively, and the average ranking of gradient-based methods and non-grad-based methods on TFBind8(r) as 5.8 and 6.8, respectively. The advantage of gradient-based methods are larger $\_$ ) in TFBind10(r) than that $( 6 . 8 - 5 . 8 = 1 . 0 $ ) in TFBind8(r). (6) The generative modeling methods CbAS and GENH yield poor results on all tasks, probably because the high-dimensional data distribution is very hard to model. (7) Overall, BIB attains the best performance in 3 out of 5 tasks and achieves the best ranking results as shown in Table 1 and Figure 2.
239
+
240
+ ![](images/bdf247aebf8807d352520357212f8e27815284c3bf54c3eec97bfd414aa78b80.jpg)
241
+ Figure 2: Rank minima and maxima are represented by whiskers; vertical lines and black triangles denote medians and means.
242
+
243
+ We also visualize the trend of performance (the maximum normalized ground truth score) and tradeoff $\gamma$ as a function of $T$ on TFBind8(r) in Figure 3(a) and avGFP in Figure 3(b). The performance generally increases with the time step $T$ and then stabilizes, which demonstrates the effectiveness and robustness of BIB. Furthermore, we find that the $\gamma$ values of TFBind8(r) and avGFP generally increase at first. This means that BIB reduces the impact of the constraint to encourage a more aggressive search for a high target value during the initial phase. Then $\gamma$ of TFBind8(r) continues to increase while the $\gamma$ of avGFP decreases. We conjecture that the difference is caused by the sequence length. Small mutations of a biological sequence are enough to yield a good candidate (Ren et al., 2022). For the length-239 protein in avGFP, dramatic mutations 1) are not necessary and 2) can easily lead to out-of-distribution points. The weak supervision signal from the auxiliary model therefore encourages a tighter constraint towards the static dataset. By contrast, the DNA sequence is relatively short and a more widespread search of the sequence space can yield better results. To investigate this conjecture, we further visualize the trend of E4B in Figure 3(c). E4B also has long sequences (102) and we can observe its similar first-increase-then-decrease trend, although it is not as pronounced.
244
+
245
+ ![](images/7d142864a62a1b851f634fc7127f7a819602f9745b5146073217ada0d9fac99a.jpg)
246
+ Figure 3: Trend of performance and trade-off $\gamma$ as a function of $T$ .
247
+
248
+ Table 2: Ablation studies on BIB components.
249
+
250
+ <table><tr><td>Task</td><td>γ=0.0</td><td>γ=1.0</td><td>γ=0.5</td><td>γ=0.5+Joint</td><td>BIB</td><td>BIB +Ada-n</td></tr><tr><td>TFBind8(r)</td><td>0.936</td><td>0.933</td><td>0.947</td><td>0.935</td><td>0.952</td><td>0.956</td></tr><tr><td>TFBind10(r)</td><td>0.611</td><td>0.637</td><td>0.616</td><td>0.622</td><td>0.639</td><td>0.639</td></tr><tr><td>avGFP</td><td>6.051</td><td>7.588</td><td>7.940</td><td>7.920</td><td>8.084</td><td>8.197</td></tr><tr><td>AAV</td><td>0.449</td><td>0.458</td><td>0.480</td><td>0.420</td><td>0.501</td><td>0.525</td></tr><tr><td>E4B</td><td>0.778</td><td>0.903</td><td>1.198</td><td>1.176</td><td>1.255</td><td>1.301</td></tr></table>
251
+
252
+ # 4.5 ABLATION STUDIES
253
+
254
+ In this subsection, we conduct ablation studies to verify the effectiveness of the forward mapping, the backward mapping, and the Adaptive- $\gamma$ module of BIB. We report the experimental results in Table 2.
255
+
256
+ Forward mapping & Backward mapping. We can observe that bidirectional learning $( \gamma = 0 . 5 )$ performs better than both forward mapping $( \gamma = 1 . 0 $ ) and backward mapping $( \gamma = 0 . 0 $ ) alone in most tasks, which demonstrates the effectiveness of forward mapping and backward mapping. The advantage of bidirectional mappings over the forward mapping is larger in the long-sequence tasks like avGFP (238) and E4B (102) compared with the short-sequence tasks. A possible explanation is that the constraint is more important for long sequence tasks than short sequence design since the search space is large and many mutations can easily go out of distribution.
257
+
258
+ Adaptive- $\gamma$ . BIB learns $\gamma$ and this leads to improvements over bidirectional mappings $( \gamma = 0 . 5 )$ for all tasks, verifying the effectiveness of Adaptive- $\gamma$ . We also consider the following variant,
259
+
260
+ $$
261
+ X ^ { \ast } = \arg \operatorname* { m i n } _ { X _ { h } } \mathcal { L } _ { b i } ( X _ { h } , 0 . 5 ) - f _ { a u x } ( X _ { h } ) ,
262
+ $$
263
+
264
+ which jointly optimizes the bidirectional learning loss $\mathcal { L } _ { b i } ( X _ { h } , 0 . 5 )$ and the auxiliary term $f _ { a u x } ( \pmb { X } _ { h } )$ We found this yields similar or even worse results than pure bidirectional learning. The reason may be that the weak supervision signal from $f _ { a u x } ( \pmb { X } _ { h } )$ can serve as a guide to update the scalar $\gamma$ but not as a component of the main optimization objective that directly updates the sequence.
265
+
266
+ In the final column of Table 2, we examine the performance of the Adaptive- $\eta$ module. Adding this module leads to improvements on all five tasks, which demonstrates its effectiveness.
267
+
268
+ # 4.6 ADAPTIVE- $\eta$
269
+
270
+ In this subsection, we aim to further demonstrate the effectiveness of the Adaptive- $\eta$ module on all six gradient-based methods. We conduct experiments on two tasks: TFBind8(r) and avGFP. Since the use of the infinitely wide neural network leads to poor performance for BDI, we modify its implementation via deep linearization so that it can make use of the pre-trained LM.
271
+
272
+ As shown in Table 3, Adaptive- $\eta$ provides a consistent gain for all scenarios, which demonstrates the widespread applicability and effectiveness of the module. Furthermore, Adaptive- $\eta$ leads to a maximum improvement of $1 . 4 \%$ in TFBind8(r) and $1 2 . 5 \%$ in avGFP. ROMA is the algorithm that benefits the most. One possible explanation is that ROMA incorporates a local smoothness prior that leads to more stable gradients, with which Adaptive- $\eta$ can be more effective. Similar to Sec 4.5, we
273
+
274
+ Table 3: Adaptive- $\eta$ on all gradient-based methods.
275
+
276
+ <table><tr><td rowspan="2">Method</td><td colspan="6">TFBind8(r)</td><td colspan="6">avGFP</td></tr><tr><td>Grad</td><td>COMs</td><td>ROMA</td><td>NEMO</td><td>BDI</td><td>BIB</td><td>Grad</td><td>COMs</td><td>ROMA</td><td>NEMO</td><td>BDI</td><td>BIB</td></tr><tr><td>Normal</td><td>0.941</td><td>0.921</td><td>0.926</td><td>0.930</td><td>0.947</td><td>0.952</td><td>4.869</td><td>3.873</td><td>5.621</td><td>4.624</td><td>7.940</td><td>8.084</td></tr><tr><td>Joint</td><td>0.941</td><td>0.921</td><td>0.931</td><td>0.932</td><td>0.935</td><td>0.925</td><td>4.869</td><td>3.836</td><td>6.438</td><td>3.078</td><td>7.920</td><td>7.823</td></tr><tr><td>Gain</td><td>0.000</td><td>0.000</td><td>0.005</td><td>0.002</td><td>-0.008</td><td>-0.027</td><td>0.000</td><td>-0.037</td><td>0.116</td><td>-1.546</td><td>-0.020</td><td>-0.261</td></tr><tr><td>Ada-n</td><td>0.941</td><td>0.928</td><td>0.939</td><td>0.935</td><td>0.951</td><td>0.956</td><td>5.235</td><td>4.027</td><td>6.322</td><td>4.658</td><td>7.966</td><td>8.197</td></tr><tr><td>Gain</td><td>0.000</td><td>0.007</td><td>0.013</td><td>0.005</td><td>0.004</td><td>0.004</td><td>0.366</td><td>0.154</td><td>0.701</td><td>0.034</td><td>0.026</td><td>0.113</td></tr></table>
277
+
278
+ consider the following variant,
279
+
280
+ $$
281
+ \boldsymbol { X } ^ { * } = \arg \operatorname* { m a x } _ { \boldsymbol { X } _ { h } } \mathcal { L } _ { \boldsymbol { \theta } } ( \boldsymbol { X } _ { h } ) + f _ { a u x } ( \boldsymbol { X } _ { h } ) ,
282
+ $$
283
+
284
+ which performs joint optimization instead of bi-level optimization on two objectives. As shown in Table 3, joint optimization generally deteriorates the performance. This again verifies that the auxiliary model can only serve as a guide instead of contributing to the main objective.
285
+
286
+ # 5 RELATED WORK
287
+
288
+ Biological sequence design. There has been a wide range of algorithms for biological sequence design. Evolutionary algorithms (Sinai et al., 2020; Ren et al., 2022) leverage the learned surrogate model to provide evolution guidance towards the high-scoring region. Angermueller et al. (2019) propose a flexible reinforcement learning framework where sequence design is a sequential decisionmaking problem. Bayesian optimization methods propose candidate solutions via an acquisition function (Terayama et al., 2021). Deep generative model methods design sequences in the latent space (Chan et al., 2021) or gradually adapt the distribution towards the high-scoring region (Brookes et al., 2019). GFlowNets (Jain et al., 2022) amortize the cost of search over learning and encourage diversity. Gradient-based methods leverage a surrogate model and its gradient information to maximize the desired property (Chen et al., 2022; Norn et al., 2021; Tischer et al., 2020; Linder & Seelig, 2020). Our proposed BIB belongs to the last category and leverages the rich biophysical information (Ji et al., 2021; Elnaggar et al., 2021) to directly optimize the biological sequence.
289
+
290
+ Offline model-based optimization. A majority of sequence design algorithms (Angermueller et al., 2019; Sinai et al., 2020; Ren et al., 2022) focus on the online setting where wet-lab experimental results in the current round are analyzed to propose candidates in the next round. The problem of this setting is that wet-lab experiments are often very expensive, and thus a pure data-driven, offline approach is attractive and has received substantial research attention recently (Trabucco et al., 2022; Kolli et al., 2022). Gradient-based methods have proven to be effective (Trabucco et al., 2021; Yu et al., 2021; Fu & Levine, 2021; Chen et al., 2022). Among these algorithms, Chen et al. (2022) propose bidirectional mappings to distill information from the static dataset into a high-scoring design, which achieves state-of-the-art performances on a variety of tasks. However, this bidirectional learning is designed for general tasks, like robot and material design, and the rich biophysical information in millions of biological sequences is ignored. In this paper, we leverage recent advances in deep linearization to incorporate the rich biophysical information into bidirectional learning.
291
+
292
+ # 6 CONCLUSION
293
+
294
+ In this paper, we propose bidirectional learning for offline model-based biological sequence. Our work is built on the recently proposed bidirectional learning approach (Chen et al., 2022), which is designed for general inputs and relies on the NTK of an infinitely wide network to yield a closed-form loss computation. Though effective, the NTK cannot learn features. We build a proxy model using the pre-trained LM model with a linear head and apply the deep linearization scheme to the proxy, which can yield a closed-form loss and incorporate the wealth of biophysical information at the same time. In addition, we propose Adaptive- $\gamma$ to maintain a proper balance between the forward mapping and the backward mapping by leveraging the weak supervision signal from an auxiliary model. Based on this framework, we further propose Adaptive- $\eta$ , the first learning rate adaptation strategy compatible with all gradient-based offline model-based algorithms. Experimental results on DNA and protein sequence design tasks verify the effectiveness of BIB and Adaptive- $\eta$ .
295
+
296
+ # 7 ETHICS STATEMENT
297
+
298
+ Protein sequence design aims to find a protein sequence with a particular biological function, which has a broad application scope. This can lead to improved drugs that are highly beneficial to society. For instance, designing the antibody protein for SARS-COV-2 can potentially save millions of human lives (Kumar et al., 2021) and designing novel anti-microbial peptides (short protein sequences) is central to tackling the growing public health risks caused by anti-microbial resistance (Murray et al., 2022). Unfortunately, it is possible to direct the research results towards harmful purposes such as the design of biochemical weapons. As researchers, we believe that we must be aware of the potential harm of any research outcomes, and carefully consider whether the possible benefits outweigh the risks of harmful consequences. We also must recognize that we cannot control how the research may be used. In the case of this paper, we are confident that there is a much greater chance that the research outcomes will have a beneficial effect. We do not consider that there are any immediate ethical concerns with the research endeavour.
299
+
300
+ # 8 REPRODUCIBILITY STATEMENT
301
+
302
+ We provide the code implementation of BIB and Adaptive- $\eta$ here and we also attach the code in the supplementary material. We describe the DNA/protein benchmarks in Sec. 4.1 and the training details in Sec. 4.3. We also explain how to obtain the sequence embedding from the pre-trained LM and how to perform gradient ascent steps on the sequence in Sec. 2.
303
+
304
+ # REFERENCES
305
+
306
+ Alessandro Achille, Aditya Golatkar, Avinash Ravichandran, Marzia Polito, and Stefano Soatto. Lqf: linear quadratic fine-tuning. In Proc. Comp. Vision. Pattern. Rec.(CVPR), 2021.
307
+
308
+ Christof Angermueller, David Dohan, David Belanger, Ramya Deshpande, Kevin Murphy, and Lucy Colwell. Model-based reinforcement learning for biological sequence design. In Proc. Int. Conf. Learning Rep. (ICLR), 2019.
309
+
310
+ Sanjeev Arora, Simon S. Du, Zhiyuan Li, Ruslan Salakhutdinov, Ruosong Wang, and Dingli Yu. Harnessing the power of infinitely wide deep nets on small-data tasks. In Proc. Int. Conf. Learning Rep. (ICLR), 2020.
311
+
312
+ Luis A Barrera et al. Survey of variation in human transcription factors reveals prevalent DNA binding changes. Science, 2016.
313
+
314
+ David Brookes, Hahnbeom Park, and Jennifer Listgarten. Conditioning by adaptive sampling for robust design. In Proc. Int. Conf. Machine Learning (ICML), 2019.
315
+
316
+ Drew H Bryant, Ali Bashir, Sam Sinai, Nina K Jain, Pierce J Ogden, Patrick F Riley, George M Church, Lucy J Colwell, and Eric D Kelsic. Deep diversification of an AAV capsid protein by machine learning. Nature Biotechnology, 2021.
317
+
318
+ Alvin Chan, Ali Madani, Ben Krause, and Nikhil Naik. Deep extrapolation for attribute-enhanced generation. Proc. Adv. Neur. Inf. Proc. Syst (NeurIPS), 2021.
319
+
320
+ Can Chen, Yingxue Zhang, Jie Fu, Xue Liu, and Mark Coates. Bidirectional learning for offline infinite-width model-based optimization. Proc. Adv. Neur. Inf. Proc. Syst (NeurIPS), 2022.
321
+
322
+ Yonatan Dukler, Alessandro Achille, Giovanni Paolini, Avinash Ravichandran, Marzia Polito, and Stefano Soatto. DIVA: Dataset derivative of a learning task. In Proc. Int. Conf. Learning Rep. (ICLR), 2022.
323
+
324
+ Ahmed Elnaggar, Michael Heinzinger, Christian Dallago, Ghalia Rehawi, Yu Wang, Llion Jones, Tom Gibbs, Tamas Feher, Christoph Angerer, Martin Steinegger, et al. ProtTrans: towards cracking the language of lifes code through self-supervised deep learning and high performance computing. IEEE Trans. Pattern Analysis and Machine Intelligence, 2021.
325
+
326
+ Justin Fu and Sergey Levine. Offline model-based optimization via normalized maximum likelihood estimation. Proc. Int. Conf. Learning Rep. (ICLR), 2021.
327
+
328
+ Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: robust training of deep neural networks with extremely noisy labels. Proc. Adv. Neur. Inf. Proc. Syst (NeurIPS), 2018.
329
+
330
+ Nikolaus Hansen. The CMA evolution strategy: a comparing review. Towards A New Evolutionary Computation, 2006.
331
+
332
+ Moksh Jain, Emmanuel Bengio, Alex Hernandez-Garcia, Jarrid Rector-Brooks, Bonaventure FP Dossou, Chanakya Ajit Ekbote, Jie Fu, Tianyu Zhang, Michael Kilgour, Dinghuai Zhang, et al. Biological sequence design with GFlowNets. In Proc. Int. Conf. Machine Learning (ICML), 2022.
333
+
334
+ Yanrong Ji, Zhihan Zhou, Han Liu, and Ramana V Davuluri. DNABERT: pre-trained bidirectional encoder representations from transformers model for DNA-language in genome. Bioinformatics, 2021.
335
+
336
+ Nathan Killoran, Leo J Lee, Andrew Delong, David Duvenaud, and Brendan J Frey. Generating and designing DNA with deep generative models. arXiv preprint arXiv:1712.06148, 2017.
337
+
338
+ Diederik P Kingma and Jimmy Ba. Adam: a method for stochastic optimization. In Proc. Int. Conf. Learning Rep. (ICLR), 2015.
339
+
340
+ Sathvik Kolli, Amy X. Lu, Xinyang Geng, Aviral Kumar, and Sergey Levine. Data-driven optimization for protein design: workflows, algorithms and metrics. In ICLR2022 Machine Learning for Drug Discovery, 2022.
341
+
342
+ Vikash Kumar, Haiguang Liu, and Chun Wu. Drug repurposing against SARS-CoV-2 receptor binding domain using ensemble-based virtual screening and molecular dynamics simulations. Computers in Biology and Medicine, 2021.
343
+
344
+ Johannes Linder and Georg Seelig. Fast differentiable DNA and protein sequence optimization for molecular design. arXiv preprint arXiv:2005.11275, 2020.
345
+
346
+ Johannes Linder and Georg Seelig. Fast activation maximization for molecular sequence design. BMC Bioinformatics, 2021.
347
+
348
+ Christopher JL Murray, Kevin Shunji Ikuta, Fablina Sharara, Lucien Swetschinski, Gisela Robles Aguilar, Authia Gray, Chieh Han, Catherine Bisignano, Puja Rao, Eve Wool, et al. Global burden of bacterial antimicrobial resistance in 2019: a systematic analysis. The Lancet, 2022.
349
+
350
+ Christoffer Norn, Basile IM Wicky, David Juergens, Sirui Liu, David Kim, Doug Tischer, Brian Koepnick, Ivan Anishchenko, David Baker, and Sergey Ovchinnikov. Protein sequence design by conformational landscape optimization. Proceedings of the National Academy of Sciences, 2021.
351
+
352
+ Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: an imperative style, high-performance deep learning library. Proc. Adv. Neur. Inf. Proc. Syst (NeurIPS), 2019.
353
+
354
+ Zhizhou Ren, Jiahan Li, Fan Ding, Yuan Zhou, Jianzhu Ma, and Jian Peng. Proximal exploration for model-guided protein sequence design. Proc. Int. Conf. Machine Learning (ICML), 2022.
355
+
356
+ Karen S Sarkisyan et al. Local fitness landscape of the green fluorescent protein. Nature, 2016.
357
+
358
+ Sam Sinai, Richard Wang, Alexander Whatley, Stewart Slocum, Elina Locane, and Eric D Kelsic. Adalead: a simple and robust adaptive greedy search algorithm for sequence design. arXiv preprint arXiv:2010.02141, 2020.
359
+
360
+ Lea M Starita, Jonathan N Pruneda, Russell S Lo, Douglas M Fowler, Helen J Kim, Joseph B Hiatt, Jay Shendure, Peter S Brzovic, Stanley Fields, and Rachel E Klevit. Activity-enhancing mutations in an E3 ubiquitin ligase identified by high-throughput mutagenesis. Proceedings of the National Academy of Sciences, 2013.
361
+
362
+ Kei Terayama, Masato Sumita, Ryo Tamura, and Koji Tsuda. Black-box optimization for automated discovery. Accounts of Chemical Research, 2021.
363
+
364
+ Doug Tischer, Sidney Lisanza, Jue Wang, Runze Dong, Ivan Anishchenko, Lukas F Milles, Sergey Ovchinnikov, and David Baker. Design of proteins presenting discontinuous functional sites using deep learning. Biorxiv, 2020.
365
+
366
+ Brandon Trabucco, Aviral Kumar, Xinyang Geng, and Sergey Levine. Conservative objective models for effective offline model-based optimization. In Proc. Int. Conf. Machine Learning (ICML), 2021.
367
+
368
+ Brandon Trabucco, Xinyang Geng, Aviral Kumar, and Sergey Levine. Design-Bench: benchmarks for data-driven offline model-based optimization. arXiv preprint arXiv:2202.08450, 2022.
369
+
370
+ James T Wilson, Riccardo Moriconi, Frank Hutter, and Marc Peter Deisenroth. The reparameterization trick for acquisition functions. arXiv preprint arXiv:1712.00424, 2017.
371
+
372
+ Greg Yang and Edward J Hu. Tensor programs iv: feature learning in infinite-width neural networks. In Proc. Int. Conf. Machine Learning (ICML), 2021.
373
+
374
+ Sihyun Yu, Sungsoo Ahn, Le Song, and Jinwoo Shin. Roma: robust model adaptation for offline model-based optimization. Proc. Adv. Neur. Inf. Proc. Syst (NeurIPS), 2021.
375
+
376
+ # A APPENDIX
377
+
378
+ # A.1 DNA EMBEDDING
379
+
380
+ To incorporate richer contextual information, the DNA LM Ji et al. (2021) adopts the $k$ -mer sequence representation, which is widely used in DNA sequence analysis. For example, the sequence AT GGCT has its 3-mer representation as $\{ A T G , T G G , G G C , G { \dot { C } } T \}$ . In this paper, we adopt its 3-mer representation and compute the probability of the 3-mer token by multiplying the probabilities of the three individual bases. The 3-mer representation is then sent to the pre-trained DNA LM.
381
+
382
+ # A.2 DATASET DETAILS
383
+
384
+ We conduct experiments on two DNA tasks following (Chen et al., 2022) and three protein tasks in (Ren et al., 2022) which have the most data points. We report the dataset details in Table 4.
385
+
386
+ DNA Task 1 TFBind8(r). The goal is to find a length-8 DNA sequence to maximize the binding activity score with a particular transcription factor, SIX6REFR1 (Barrera et al., 2016). We sample 5000 data points for the offline algorithms following (Chen et al., 2022).
387
+
388
+ DNA Task 2 TFBind10(r). The task TFBind10(r) is the same as TFBind8(r) except that the goal is to find a length-10 DNA sequence. Both DNA tasks measure the entire search space and we adopt these measurements as the approximate ground-truth evaluation.
389
+
390
+ Protein Task 1 avGFP. This task aims to find a protein sequence with approximately 239 amino acids to maximize the fluorescence level of Green Fluorescent Proteins (Sarkisyan et al., 2016). The task oracle is constructed by using the full unobserved dataset (around 52,000 points) following (Ren et al., 2022). The oracle passes the average of the residue embeddings from the pre-trained Prot-T5 (Elnaggar et al., 2021) into a linear layer and then fits the dataset. The following two task oracles take the same form. The offline algorithms can only access the lowest-scoring 26,000 data points.
391
+
392
+ Protein Task 2 AAV. The goal is to engineer a 28-amino acid segment (positions 561–588) of the VP1 protein to remain viable for gene therapy (Bryant et al., 2021). We use the entire 284, 000 data points to build the oracle and the lowest-scoring 142, 000 points for the offline algorithms.
393
+
394
+ Protein Task 3 E4B. This task aims to design a protein (around 102 amino acids) to maximize the ubiquitination rate to the target protein (Starita et al., 2013). The full dataset consisting of around 100, 000 points is used to build the oracle and the bottom half is used for the offline algorithms.
395
+
396
+ The parameterization of the oracle is different from that of the regression model from two aspects: 1) model architecture; 2) pre-trained information source. First, the oracle adopts the Prot-T5 model which consists of an encoder and a decoder, while the regression model adopts the Prot-BERT model which only has an encoder. Second, Prot-T5 is trained on the BFD and UniRef100 datasets and ProtBert is trained on the UniRef50 dataset. These two points demonstrate that the oracle and the regression model are different function classes. We choose the Prot-T5 model as the oracle because this is the state-of-the-art protein LM to extract features and recent work Elnaggar et al. (2021) has demonstrated its effectiveness. In order to test how related the Prot-T5 (oracle)/Prot-BERT(proxy) models are, we trained them on a sampled training dataset and compared the test predictions of the testing set. By evaluating the Pearson correlation coefficient (PCC) between the two prediction errors PCC(ProtT5 predictions - test labels, ProtBERT predictions -test labels), we obtain $- 0 . 0 0 5 3$ on avGFP, $- 0 . 0 0 0 5$ on AAV, and $\cdot$ on E4B. These results suggest that the two models are not strongly related in terms of the predictions they form.
397
+
398
+ Table 4: Dataset details.
399
+
400
+ <table><tr><td>Task</td><td>Metric</td><td>Min of D</td><td>Max of D</td><td>Min of Dentire</td><td>Max of Dentire</td></tr><tr><td>TFBind8(r)</td><td>binding activity</td><td>0.000</td><td>0.242</td><td>0.000</td><td>1.000</td></tr><tr><td>TFBind10(r)</td><td>binding activity</td><td>-1.859</td><td>-0.869</td><td>-1.859</td><td>2.129</td></tr><tr><td>avGFP</td><td>fluorescence level</td><td>1.283</td><td>3.553</td><td>1.283</td><td>4.123</td></tr><tr><td>AAV</td><td>viruses viability</td><td>-11.176</td><td>-1.399</td><td>-11.176</td><td>9.536</td></tr><tr><td>E4B</td><td>ubiquitination rate</td><td>-3.589</td><td>-0.984</td><td>-3.589</td><td>8.998</td></tr></table>
401
+
402
+ Table 5: Experimental results on different pre-trained LMs for comparison.
403
+
404
+ <table><tr><td>Pre-trainedLM</td><td>avGFP</td><td>AAV</td><td>E4B</td></tr><tr><td>ProtAlbert</td><td>3.567±0.456</td><td>0.478±0.004</td><td>0.552±0.023</td></tr><tr><td>ProtBert(adopted)</td><td>8.084±0.224</td><td>0.501 ± 0.007</td><td>1.255 ± 0.029</td></tr><tr><td>ProtBert-BFD</td><td>8.240±0.094</td><td>0.549 ± 0.009</td><td>1.880 ± 0.054</td></tr></table>
405
+
406
+ Following (Trabucco et al., 2021), we select the top $\cdot$ most promising sequences for each comparison method. Among these sequences, we report the maximum normalized ground truth score as the evaluation metric following (Ren et al., 2022).
407
+
408
+ # A.3 TRAINING DETAILS
409
+
410
+ We use Pytorch (Paszke et al., 2019) to run all experiments on one V100 GPU. Following the setting in Norn et al. (2021), we introduce a length- $L$ protein sequence as a continuous random matrix $\pmb { X } _ { h } \in R ^ { L \times 2 0 }$ ( $\mathbf { \bar { X } } _ { h } \in R ^ { L \times 4 }$ for DNA), initialized using a normal distribution with the mean 0 and the standard deviation of 0.01. To make this sequence correspond correctly to the candidate sequence, we exchange the largest value in $X [ l , : ]$ with the value in the amino acid index.
411
+
412
+ # A.4 DIFFERENT PRETRAINED LMS
413
+
414
+ As shown in Table 5, we have tested the ProtBERT, ProtAlbert, and ProtBert-BFD models and found that better-quality models generally work better. The publicly available pre-trained DNA models are limited and thus we only perform experiments on the protein tasks. Elnaggar et al. (2021) demonstrate that the language model performances follow the ordering: ProtBert-BFD $\cdot$ ProtBert $>$ ProtAlbert. We can see that the performance ranks over the three protein tasks avGFP, AAV, and E4B are the same.
415
+
416
+ # A.5 DIFFERENT DATASET SIZE
417
+
418
+ As shown in Table 6, we have tested the performance of BDI as a function of dataset size $\mathrm { N } = \mathrm { 2 0 }$ , 40, 60, 80, 100) in TFBind8(r) and TFBind10(r) since they have exact oracle evaluations. We see that performance is already good for $\cdot$ for TFBind8(r) and $\Nu { = } 4 0$ for TFBind10(r).
419
+
420
+ # A.6 RANKING PERFORMANCE
421
+
422
+ As for prediction performances, the rank should be: a $\cdot$ linearized pre-trained $\mathrm { L M } > \mathrm { N T K }$ . We have conducted experiments to verify this. We sample half of the data, train a model to predict another
423
+
424
+ Table 6: Experimental results on different size datasets for comparison.
425
+
426
+ <table><tr><td>Dataset size</td><td>20</td><td>40</td><td>60</td><td>80</td><td>100</td></tr><tr><td>TFBind8(r)</td><td>0.849± 0.027</td><td>0.883± 0.036</td><td>0.890± 0.033</td><td>0.911 ± 0.042</td><td>0.923± 0.049</td></tr><tr><td>TFBind10(r)</td><td>0.248±0.000</td><td>0.596±0.035</td><td>0.602±0.023</td><td>0.616±0.024</td><td>0.632±0.036</td></tr></table>
427
+
428
+ Table 7: Mean squared prediction losses for comparison.
429
+
430
+ <table><tr><td>Method</td><td>TFBind8(r)</td><td>TFBind10(r)</td><td>avGFP</td><td>AAV</td><td>E4B</td></tr><tr><td>Finetuned NN</td><td>0.101±0.001</td><td>1.130 ± 0.041</td><td>0.411± 0.197</td><td>5.148± 0.074</td><td>0.683±0.012</td></tr><tr><td>Linearized NN</td><td>0.107±0.000</td><td>1.618 ± 0.000</td><td>0.735 ± 0.000</td><td>23.041±0.000</td><td>1.050 ± 0.000</td></tr><tr><td>NTK</td><td>0.111± 0.000</td><td>1.840 ± 0.000</td><td>0.807± 0.000</td><td>24.451 ± 0.000</td><td>1.075 ± 0.000</td></tr></table>
431
+
432
+ half data, and report the mean squared loss here and in Appendix A.6 Table 7. A small mean squared loss indicates a good prediction performance; thus, we have verified the above ranking order.
parse/dev/luEG3j9LW5-/luEG3j9LW5-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/ucASPPD9GKN/ucASPPD9GKN_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/xnuN2vGmZA0/xnuN2vGmZA0_content_list.json ADDED
@@ -0,0 +1,1079 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VITA: Video Instance Segmentation via Object Token Association ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 285,
8
+ 122,
9
+ 712,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Miran Heo⇤ Yonsei University ",
17
+ "bbox": [
18
+ 310,
19
+ 227,
20
+ 428,
21
+ 253
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Sukjun Hwang⇤ Yonsei University ",
28
+ "bbox": [
29
+ 570,
30
+ 227,
31
+ 687,
32
+ 253
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Seoung Wug Oh Adobe Research ",
39
+ "bbox": [
40
+ 246,
41
+ 267,
42
+ 361,
43
+ 295
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Joon-Young Lee Adobe Research ",
50
+ "bbox": [
51
+ 439,
52
+ 267,
53
+ 555,
54
+ 295
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Seon Joo Kim Yonsei University ",
61
+ "bbox": [
62
+ 633,
63
+ 268,
64
+ 750,
65
+ 295
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "{miran, sj.hwang, seonjookim}@yonsei.ac.kr ",
72
+ "bbox": [
73
+ 202,
74
+ 306,
75
+ 560,
76
+ 320
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "{seoh, jolee}@adobe.com ",
83
+ "bbox": [
84
+ 599,
85
+ 306,
86
+ 797,
87
+ 320
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "Abstract ",
94
+ "text_level": 1,
95
+ "bbox": [
96
+ 462,
97
+ 356,
98
+ 535,
99
+ 372
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "We introduce a novel paradigm for offline Video Instance Segmentation (VIS), based on the hypothesis that explicit object-oriented information can be a strong clue for understanding the context of the entire sequence. To this end, we propose VITA, a simple structure built on top of an off-the-shelf Transformer-based image instance segmentation model. Specifically, we use an image object detector as a means of distilling object-specific contexts into object tokens. VITA accomplishes video-level understanding by associating frame-level object tokens without using spatio-temporal backbone features. By effectively building relationships between objects using the condensed information, VITA achieves the state-of-the-art on VIS benchmarks with a ResNet-50 backbone: 49.8 AP, 45.7 AP on YouTube-VIS 2019 & 2021, and 19.6 AP on OVIS. Moreover, thanks to its object token-based structure that is disjoint from the backbone features, VITA shows several practical advantages that previous offline VIS methods have not explored - handling long and highresolution videos with a common GPU, and freezing a frame-level detector trained on image domain. Code is available at https://github.com/sukjunhwang/ VITA. ",
106
+ "bbox": [
107
+ 232,
108
+ 387,
109
+ 766,
110
+ 608
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "1 Introduction ",
117
+ "text_level": 1,
118
+ "bbox": [
119
+ 174,
120
+ 632,
121
+ 310,
122
+ 650
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "The goal of Video Instance Segmentation (VIS) is to predict both mask trajectories and categories of each object belonging to a set of predefined categories. Numerous studies have attained the goal in a variety of ways, but a notable innovation in terms of accuracy has been achieved by Transformer-based $\\mathbb { \\left| \\left[ 2 \\right] \\right| }$ architectures. Extending DETR [5] to the video domain, VisTR $\\left. \\boldsymbol { \\widetilde { 2 8 } } \\right.$ made the first attempt to design an end-to-end model that jointly predicts object trajectories with their corresponding segmentation masks. By adopting this paradigm, subsequent studies [15, 30, 6, 34] also tackle the problem in a complete-offline manner: video-in and video-out. ",
129
+ "bbox": [
130
+ 174,
131
+ 664,
132
+ 825,
133
+ 761
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "The key message from the follow-up approaches [15, 30, 6, 34] is to effectively design core interactions between frames. In parallel with recent studies [11, 25, 37, 7, 22] that improve the accuracy in various tasks by localizing the attention scope of Transformer layers, the subsequent VIS methods suggest bounding the attention scope in the encoder [15, 34] or the decoder $\\lVert \\rVert ^ { 3 0 \\mathrm { j } }$ . Specifically, they decompose the global attention by iteratively mixing two phases: intra-frame attention and inter-frame communication. Interestingly, the temporal interactions between frames are commonly achieved with only a small number of tokens, e.g., memory tokens [15, 34], messenger tokens $\\dot { \\mathbb { B } } \\dot { \\mathcal { 4 } } \\mathbb { I }$ , and instance queries $\\textcircled { \\lvert 3 0 \\rvert }$ . As a result, the question arises: “what information is important to understand a video?” ",
140
+ "bbox": [
141
+ 174,
142
+ 767,
143
+ 825,
144
+ 878
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/2a10ec60f693aa19e1442cf2309858092a50f3587492cdaec6eac605e5ff8fd7.jpg",
151
+ "image_caption": [
152
+ "Figure 1: (a) Early-stage VIS methods divide the problem into two components, detection and association. (b) To alleviate the context-limited structure, complete-offline methods jointly track and segment instances in an end-to-end manner by employing dense spatio-temporal features. (c) On the other hand, our VITA is a new paradigm that directly leverages object queries for offline VIS. "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 179,
157
+ 89,
158
+ 818,
159
+ 191
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "In this paper, we introduce Video Instance Segmentation via Object Token Association (VITA), a new offline VIS paradigm which suggests that a video can be effectively understood from a collection of object-centric tokens. Existing offline methods [28, 15, 30, 6, 34] (Fig. 1 (b)) localize objects in multiple frames by iteratively referring to dense spatio-temporal backbone features. However, such methods show difficulties in handling long sequences as the myriad of dense reference features hinders the Transformer layers from retrieving relevant information. With the motivation to devise an effective method for the long-range understanding, we obtain clues from the traditional trackingby-detection paradigm (Fig. 1 (a)) and make two hypotheses: 1) an image object detector can fully embody the context of an object into a feature vector (or a token); and 2) a video can be represented by the relationship between the objects. ",
166
+ "bbox": [
167
+ 173,
168
+ 280,
169
+ 825,
170
+ 419
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "In this regard, VITA aims to parse an input video from the collection of object tokens without the necessity of referencing dense spatio-temporal backbone (Fig. 1 (c)). Given the compactness of the token representation, VITA can collect the object tokens over the whole video and directly analyzes the collection using Transformer layers. This unique design enables the complete-offline inference (i.e., video-in and video-out) even for extremely long videos. This also facilitates building relationships between every detected object and successfully achieves global video understanding. As a result, VITA achieves state-of-the-art performance on various VIS benchmarks. ",
177
+ "bbox": [
178
+ 174,
179
+ 426,
180
+ 825,
181
+ 522
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "We evaluate VITA on three popular VIS benchmarks, YouTube-VIS 2019 & 2021 $\\lVert \\overline { { 3 2 } } \\rVert$ and OVIS $\\mathbb { [ 2 4 ] }$ . With ResNet-50 [14] backbone, VITA achieves the new state-of-the-arts of 49.8 AP & 45.7 AP on YouTube-VIS 2019 & 2021, and 19.6 AP on OVIS. Above all, VITA outperforms the previous best approaches by 5.1 AP for YouTube-VIS 2021, which contains more complicated and long sequences than YouTube-VIS 2019. VITA is the first offline method that presents the results on OVIS benchmark that consists of long videos (the longest video has 292 frames) using a single 12GB GPU. ",
188
+ "bbox": [
189
+ 174,
190
+ 529,
191
+ 825,
192
+ 612
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "In addition to the performance, the design of VITA have several practical advantages over the previous offline VIS methods. It can handle long and high-resolution videos so it does not require heuristics for associating clip-level results. VITA can process 1392 frames at once regardless of video resolution using a single 12GB GPU which is 11 times longer than IFC $\\mathbb { \\lVert \\rVert \\cdot \\rVert }$ . Moreover, VITA can be trained on top of a parameter-frozen image object detector without sacrificing the performance much. This property is especially useful for the applications that cannot afford to store separated image and video instance segmentation models. VITA takes only $6 \\%$ additional parameters to extend the Swin-L detector. ",
199
+ "bbox": [
200
+ 174,
201
+ 618,
202
+ 825,
203
+ 729
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 Related Works ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 176,
213
+ 748,
214
+ 330,
215
+ 765
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Online VIS approaches first predict individual tracklets within a local range window consisting of a single or a few frames. After obtaining results from adjacent windows, they associate individual tracklets of same identities by a hand-crafted or a learnable matching algorithm. MaskTrack RCNN $\\mathbb { \\lVert 3 2 \\rVert }$ sets the groundwork for VIS research by proposing a simple tracking branch added on a two-stage image instance segmentation model $[ \\overbrace { 1 . 3 } ]$ . The methods [4, 33, 21] that follow the tracking-by-detection paradigm (Fig. 1 (a)) measure the similarities between per-frame predictions, then employ an association algorithm. ",
222
+ "bbox": [
223
+ 173,
224
+ 779,
225
+ 825,
226
+ 877
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "To deploy temporal context from multiple frames, per-clip methods [1, 2] design an architecture of predicting tracklets within a local window and stitching the tracklets sequentially in a nearonline manner. Propagation-based methods [10, 17, 12] devise a paradigm that conjugates rich previous information stored in memories to facilitate online applications. EfficientVIS $\\mathbb { \\left[ \\left[ 2 9 \\right] \\right. }$ introduces correspondence learning between adjacent tracklet features and successfully runs in a cascaded manner which eliminates the hand-crafted tracklet association. ",
233
+ "bbox": [
234
+ 173,
235
+ 882,
236
+ 820,
237
+ 911
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "image",
243
+ "img_path": "images/4c5a0455007405b700347ad0d2d544991469e632d1c0c996f6aebca1d53573ef.jpg",
244
+ "image_caption": [
245
+ "Figure 2: VITA takes only mask features and frame queries that are independently decoded by the frame-level detector for entire video sequence. By directly constructing temporal interactions between frame queries that encapsulate rich object-aware knowledge in spatial scenes, VITA yields mask trajectories with corresponding categories in an end-to-end manner. "
246
+ ],
247
+ "image_footnote": [],
248
+ "bbox": [
249
+ 173,
250
+ 88,
251
+ 821,
252
+ 246
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "",
259
+ "bbox": [
260
+ 174,
261
+ 333,
262
+ 825,
263
+ 390
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Offline VIS architectures are proposed with the motivation of predicting mask trajectories through a whole video sequence at once. VisTR $\\pmb { \\left. 2 8 \\right. }$ successfully extends DETR $\\pmb { \\Vert 5 \\Vert }$ to the VIS domain, introducing a new paradigm of jointly tracking and segmenting instances. However, its dense selfattention over the spatio-temporal inputs leads to explosive computations and memories. With the motivation of relaxing the heavy computation of VisTR, IFC $[ \\bar { 1 } 5 ]$ adopts memory tokens to the Transformer encoder and decodes clip-level object queries. By setting the frame-level encoder to be independent and adopting the decoder of IFC, Mask2Former-VIS $\\pmb { \\mathbb { H } }$ records considerable performance on benchmarks by taking the advantage of its mask-oriented representation [7]. TeViT [34] proposes a new backbone that efficiently exchanges temporal information internally based on Vision Transformers $\\pmb { \\mathbb { Q } } \\Vert$ instead of the frame-wise CNN backbone. SeqFormer $\\textcircled { \\vert 3 0 \\vert }$ decomposes the decoder to be frame-independent, while building communication between different frames using instance queries that are used for frame-wise detection. All these studies achieve promising performance by referring to dense backbone features (Fig. 1 (b)). On the other hand, our VITA suggests a new offline VIS paradigm that directly interprets a video from the collection of object tokens (Fig. 1 (c)). ",
270
+ "bbox": [
271
+ 174,
272
+ 396,
273
+ 825,
274
+ 590
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "Global trackers that aim to associate frame-level predictions across an entire sequence as a whole are studied in the Multiple Object Tracking (MOT) community. Conventional approaches formulate the problem as a graph optimization – interpreting each detection as a node and considering the edges as possible connections between the nodes [35, 26, 3, 8]. Different from existing methods, GTR $[ \\breve { \\left| 3 6 \\right| }$ introduces a Transformer-based architecture that receives queries, then explicitly searches for the predictions with the same identities. Similarly, a recent method [16] proposes a set classifier that classifies the category of each tracklet by globally aggregating information from multiple frames. ",
281
+ "bbox": [
282
+ 174,
283
+ 595,
284
+ 825,
285
+ 694
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "3 Method ",
292
+ "text_level": 1,
293
+ "bbox": [
294
+ 174,
295
+ 712,
296
+ 271,
297
+ 728
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "In this section, we first give a brief overview of Mask2Former $ { \\mathbb { I } } ^ { \\| \\ b { 7 } \\| }$ , a frame-level detector for VITA. \nThen, we introduce the architecture of our proposed VITA, which is built on top of Mask2Former. \nFinally, we describe how VITA handles extremely long videos in a complete-offline manner. ",
304
+ "bbox": [
305
+ 174,
306
+ 742,
307
+ 825,
308
+ 785
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "3.1 Frame-level Detector ",
315
+ "text_level": 1,
316
+ "bbox": [
317
+ 174,
318
+ 801,
319
+ 357,
320
+ 815
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "In this paper, we adopt Mask2Former $\\mathbb { H }$ for the frame-level detector which directly localizes instances using masks without the necessity of bounding boxes. Following the set prediction mechanism of DETR $\\mathbb { \\left[ 5 \\right] }$ , the frame-level detector parse an input image $H \\times W$ using $N _ { f }$ object queries, which we call frame queries $( f \\in \\mathbb { R } ^ { C \\times N _ { f } } )$ throughout this paper. Having the spatially encoded features to be decoded by the frame queries through a Transformer decoder, each object in the image gets represented as a $C$ -dimensional vector. Then, the frame queries are used for both classifying and segmenting their matched objects where the predictions are also used for auxiliary supervision for VITA. Specifically, the frame-level detector generates two features for the frame-level predictions: 1) dynamic $1 \\times 1$ convolutional weight from the frame queries; 2) per-pixel embeddings $\\begin{array} { r } { \\dot { \\mathcal { M } } \\in \\mathbb { R } ^ { C \\times \\frac { H } { S } \\times \\frac { W } { S } } } \\end{array}$ from the pixel decoder, where $S$ is the stride of the feature map. Finally, the detector segments objects by applying a simple dot product between the two embeddings. ",
327
+ "bbox": [
328
+ 174,
329
+ 825,
330
+ 825,
331
+ 911
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "",
338
+ "bbox": [
339
+ 174,
340
+ 90,
341
+ 825,
342
+ 162
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "3.2 VITA ",
349
+ "text_level": 1,
350
+ "bbox": [
351
+ 174,
352
+ 183,
353
+ 251,
354
+ 196
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "We now propose the novel end-to-end video instance segmentation method VITA, which can be largely divided into three phases (Fig. 2). First, VITA operates on top of the frame-level detector [7] in a complete frame-independent manner; no inter-computation between frames is involved. Then, the frame queries that hold object-centric information are collected throughout the whole video and they embed video-level information by building communications between different frames using Object Encoder. Finally, Object Decoder aggregates information from the frame queries to video queries, which are eventually used for predicting categories and masks of objects in videos at once. ",
361
+ "bbox": [
362
+ 173,
363
+ 210,
364
+ 825,
365
+ 308
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Input of VITA. Given an input video of $T$ frames, the frame-level detector executes frame-by-frame as previously explained. Among a number of intermediate embeddings that are generated by the detector, the only features that are used by VITA are 1) frame queries $\\bar { \\{ f ^ { t } \\} } _ { t = 1 } ^ { T } \\in \\bar { \\mathbb { R } } ^ { C \\times T \\times N _ { f } }$ which hold object-centric information; and 2) per-pixel embeddings $\\{ \\mathcal { M } ^ { t } \\} _ { t = 1 } ^ { T } \\in \\mathbb { R } ^ { C \\times T \\times \\frac { H } { S } \\times \\frac { W } { S } }$ from the pixel decoder. ",
372
+ "bbox": [
373
+ 173,
374
+ 325,
375
+ 825,
376
+ 398
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Object Encoder. After the frame-wise detector distills the object-wise context into the frame queries, Object Encoder aims to build temporal communication by employing self-attention along the temporal axis. First, Object Encoder gathers frame queries from all frames and converts them to object tokens through a linear layer. However, a naive self-attention over the whole $T N _ { f }$ object tokens is not applicable when processing long videos due to the quadratic computational overhead of Transformers. Inspired by Swin Transformer $[ [ 2 2 ] ]$ , we adopt window-based self-attention layers that shift along the temporal dimension. As illustrated in Fig. $\\begin{array} { r } { \\bigtriangledown , } \\end{array}$ Object Encoder initially partitions object tokens $\\{ \\overline { { f } } ^ { t } \\} _ { t = 1 } ^ { T }$ to the temporal axis with local windows of size $W$ without an overlap. By alternatively shifting the windows, object tokens from different frames can exchange object-wise information which allows VITA to both effectively and efficiently handle long sequences. ",
383
+ "bbox": [
384
+ 174,
385
+ 416,
386
+ 517,
387
+ 595
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "image",
393
+ "img_path": "images/fa5d52f3a170a262b27941e6c562c36a9a45b91f3815da8d94459c21454260b3.jpg",
394
+ "image_caption": [
395
+ "Figure 3: Illustration of an Object Encoder layer. Blocks with dashed line are local windows, and indicates an object token. "
396
+ ],
397
+ "image_footnote": [],
398
+ "bbox": [
399
+ 537,
400
+ 419,
401
+ 816,
402
+ 547
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "",
409
+ "bbox": [
410
+ 173,
411
+ 597,
412
+ 826,
413
+ 637
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "Object Decoder and Output heads. Two limitations of previous offline VIS methods [28, 15, 6] are the ineffectiveness in handling dynamic scenes and the inability of processing long videos. For example, such methods obtain high accuracy when dealing with static and short videos (YouTubeVIS 2019 $\\mathbb { [ 3 2 ] } )$ , but struggle to track objects or executes end-to-end on benchmarks with dynamic and long videos (YouTube-VIS 2021 $\\lVert \\dot { 3 } 2 \\rVert$ and OVIS $\\pm \\mathbb { Z } 4 \\mathbb { I } )$ . Both limitations are mainly caused by the decoder, which parses object contexts directly from dense spatio-temporal features. As recent studies [11, 25, 37] suggest, typical Transformer decoders show difficulties in retrieving relevant information from global context. In the video domain, the number of backbone features being referred to proportionally increases with the number of frames. Therefore, when handling extremely long videos, the countless reference tokens result in both imprecise information retrieval and intractable peak memories. ",
420
+ "bbox": [
421
+ 173,
422
+ 655,
423
+ 825,
424
+ 808
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "For the solution to the problem, we suggest Object Decoder which extracts information from the object tokens, not the spatio-temporal backbone features. Implicitly embedding the context of objects, object tokens can provide sufficient instance-specific information without the interference of dense backbone features. Specifically, we employ $N _ { v }$ trainable video queries $\\boldsymbol { v } \\in \\mathbb { R } ^ { C \\times N _ { v } }$ to decode objectwise information from all object tokens $\\{ f ^ { t } \\} _ { t = 1 } ^ { T }$ that are collected from all $T$ frames. Receiving much condensed input over naively taking dense spatio-temporal features, Object Decoder effectively captures video contexts and aggregates relevant information into the video queries. As a result, Object ",
431
+ "bbox": [
432
+ 174,
433
+ 814,
434
+ 825,
435
+ 911
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Decoder shows fast convergence speed while achieving high accuracy. Furthermore, the compact input greatly saves memories, thus facilitates processing long and high-resolution videos. ",
442
+ "bbox": [
443
+ 173,
444
+ 90,
445
+ 823,
446
+ 119
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "From the decoded video queries $v$ , VITA returns final predictions $z = \\{ ( p _ { i } , m _ { i } ) \\} _ { i = 1 } ^ { N _ { v } }$ using two output heads similar to IFC ; the class head and the mask head. The class head is a single linear classifier, which directly predicts class probabilities $p \\in \\mathbb R ^ { N _ { v } \\times ( K + 1 ) }$ of each video query, where $K + 1$ is the number of categories including an auxiliary label “no object” $( \\emptyset )$ . The mask head dynamically generates mask embeddings $\\boldsymbol { w _ { v } } ^ { \\prime } \\in \\mathbb { R } ^ { C \\times N _ { v } }$ per a video query, which corresponds to the tracklet of an instance over all frames. Finally, the predicted mask logits $m \\in \\mathbb { R } ^ { N _ { v } \\times T \\times \\dot { H } \\times W }$ can be obtained from a matrix multiplication between $w _ { v }$ and $\\{ \\mathcal { M } ^ { t } \\} _ { t = 1 } ^ { T }$ . ",
453
+ "bbox": [
454
+ 173,
455
+ 127,
456
+ 825,
457
+ 227
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "3.3 Clip-wise losses ",
464
+ "text_level": 1,
465
+ "bbox": [
466
+ 174,
467
+ 244,
468
+ 321,
469
+ 258
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Instance matching. We search for optimal pair indices between the predictions from VITA and $G _ { v }$ ground-truth to remove postprocessing heuristics such as NMS. First, we calculate costs from all possible pairs using the cost function of Mask2Former $\\mathbb { H }$ with a simple extension of mask-related costs to the temporal axis $\\mathbb { \\left[ 1 5 \\right] }$ . Then, from $N _ { v } { \\times } G _ { v }$ costs of pairs, we follow DETR $\\pmb { \\Vert 5 \\Vert }$ and use Hungarian algorithm $\\pm \\textcircled { 1 1 8 } \\textcircled { 1 }$ for the optimal matching as shown in Fig. 4 (b). ",
476
+ "bbox": [
477
+ 173,
478
+ 270,
479
+ 464,
480
+ 424
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Similarity loss. Inspired by the initial VIS approach (MaskTrack R-CNN $[ \\left| 3 2 \\right| ]$ where the similarity loss is adopted to track instances at different frames, we train video queries and frame queries to be clustered in the latent space by their identities. As shown in Fig. $\\textcircled { 4 }$ (a), our adopted frame-level detector $\\mathbb { [ [ \\big ] ] }$ also searches for paired indices be",
487
+ "bbox": [
488
+ 173,
489
+ 439,
490
+ 464,
491
+ 550
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "image",
497
+ "img_path": "images/5e870e090cce93a3b6d22172969a474ad37916df0a8f3cef649500e89c6fd361.jpg",
498
+ "image_caption": [
499
+ "Figure 4: Similarity loss. $\\bigcirc$ and $\\sqcap$ indicate video query and frame query, respectively. Same color represents same GT instance ID. "
500
+ ],
501
+ "image_footnote": [],
502
+ "bbox": [
503
+ 478,
504
+ 267,
505
+ 820,
506
+ 492
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "tween $N _ { f }$ frame-wise predictions and $G _ { f } ^ { t }$ ground-truth objects at each $t ^ { \\mathrm { { t h } } }$ frame. The frame queries and the video queries that are matched to ground-truths get collected and we embed the collection through a linear layer. Then, we measure the similarity of all possible pairs using a simple matrix multiplication. Finally, as shown in Fig. $\\boxed { 4 }$ (c), binary cross entropy is used to compute $\\mathcal { L } _ { s i m }$ between the predicted similarities and the ground-truth where annotated to 1 for pairs of equal identities and 0 for vice-versa. ",
513
+ "bbox": [
514
+ 173,
515
+ 550,
516
+ 825,
517
+ 633
518
+ ],
519
+ "page_idx": 4
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Total loss. We attach the proposed module VITA on top of the frame-level detector, and all components of the model get trained end-to-end. Note that not only video-level outputs from VITA are used for the loss computation, but also per-frame outputs from the frame-level detector get involved. Specifically, we use $\\mathcal { L } _ { f }$ from $\\mathbb { I } \\mathbb { I }$ to calculate loss from the per-frame outputs to frame-wise ground-truth. Extending the loss function of $\\mathbb { [ [ \\big ] ] }$ to the temporal axis as similar to $\\bar { \\mathbb { E } } \\bar { \\ b { 5 } } \\|$ , we use outputs from VITA $z$ to calculate the video-level loss $\\mathcal { L } _ { v }$ . Finally, we integrate all losses together as follows: $\\mathcal { L } _ { t o t a l } = \\lambda _ { v } \\mathcal { L } _ { v } + \\lambda _ { f } \\mathcal { L } _ { f } + \\lambda _ { s i m } \\mathcal { L } _ { s i m }$ . ",
524
+ "bbox": [
525
+ 173,
526
+ 650,
527
+ 825,
528
+ 750
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "4 Experiments ",
535
+ "text_level": 1,
536
+ "bbox": [
537
+ 174,
538
+ 768,
539
+ 312,
540
+ 786
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "4.1 Datasets ",
547
+ "text_level": 1,
548
+ "bbox": [
549
+ 174,
550
+ 801,
551
+ 272,
552
+ 815
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "YouTube-VIS 2019. YouTube-VIS 2019 $\\pmb { \\mathbb { B 2 } }$ is the first dataset proposed for VIS and contains 40 semantic categories. Mostly originated from Video Object Segmentation (VOS) datasets, the VIS benchmark has a small number of unique instances (average 1.7 per video for the train set) and the categories of instances appearing in the same video are different in general. Also, the average length of videos in the valid set is short (27.4 frames), which enables existing complete-offline approaches to load a whole video and infer the benchmark at once. ",
559
+ "bbox": [
560
+ 174,
561
+ 827,
562
+ 825,
563
+ 911
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "table",
569
+ "img_path": "images/e5006bc144c727896e1acee36583b649232296e1901cc1c00e6760c45a1a4a0a.jpg",
570
+ "table_caption": [
571
+ "Table 1: Comparisons on YouTube-VIS 2019. "
572
+ ],
573
+ "table_footnote": [],
574
+ "table_body": "<table><tr><td rowspan=1 colspan=3>Method Backbone</td><td rowspan=1 colspan=1>AP AP50 AP75 AR1 AR10</td></tr><tr><td rowspan=9 colspan=1>NNTai (rer)</td><td rowspan=9 colspan=1>MaskTrackR-CNNB2MaskTrackR-CNN32Cross VIS [33]Cross VIS [33]PCAN日PCAN日EfficientVIS四EfficientVIS29VISOLO四</td><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>30.3 51.1 32.6 31.0 35.5</td></tr><tr><td rowspan=1 colspan=1>ResNet-101</td><td rowspan=1 colspan=1>31.8 53.0 33.6 33.2 37.6</td></tr><tr><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>36.3 56.8 38.9 35.6 40.7</td></tr><tr><td rowspan=6 colspan=1>ResNet-101ResNet-50ResNet-101ResNet-50ResNet-101ResNet-50</td><td rowspan=1 colspan=1>36.6 57.3 39.7 36.0 42.0</td></tr><tr><td rowspan=1 colspan=1>36.1 54.9 39.4 36.3 41.6</td></tr><tr><td rowspan=1 colspan=1>37.6 57.2 41.3 37.2 43.9</td></tr><tr><td rowspan=1 colspan=1>37.9 59.7 43.0 40.3 46.6</td></tr><tr><td rowspan=1 colspan=1>39.8 61.8 44.7 42.1 49.8</td></tr><tr><td rowspan=1 colspan=1>38.6 56.3 43.7 35.7 42.5</td></tr><tr><td rowspan=13 colspan=1>Ouiiii</td><td rowspan=10 colspan=1>VisTR[28]VisTR [28]IFC因IFC园TeViT [34]SeqFormer四SeqFormer四SeqFormer四Mask2Former-VIS回Mask2Former-VIS回Mask2Former-VIS回</td><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>35.6 56.8 37.0 35.2 40.2</td></tr><tr><td rowspan=1 colspan=1>ResNet-101</td><td rowspan=1 colspan=1>38.6 61.3 42.3 37.6 44.2</td></tr><tr><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>41.2 65.1 44.6 42.3 49.6</td></tr><tr><td rowspan=1 colspan=1>ResNet-101</td><td rowspan=1 colspan=1>42.6 66.6 46.3 43.5 51.4</td></tr><tr><td rowspan=6 colspan=1>MsgShifTResNet-50ResNet-101Swin-LResNet-50ResNet-101Swin-L</td><td rowspan=1 colspan=1>46.6 71.3 51.6 44.9 54.3</td></tr><tr><td rowspan=1 colspan=1>47.4 69.8 51.8 45.5 54.8</td></tr><tr><td rowspan=1 colspan=1>49.0 71.1 55.7 46.8 56.9</td></tr><tr><td rowspan=1 colspan=1>59.3 82.1 66.4 51.7 64.4</td></tr><tr><td rowspan=1 colspan=1>46.4 68.0 50.0 1 1</td></tr><tr><td rowspan=1 colspan=1>49.2 72.8 54.2 = =60.4 84.4 67.0 = =</td></tr><tr><td rowspan=3 colspan=1>VITA (Ours)</td><td rowspan=3 colspan=1>ResNet-50ResNet-101Swin-L</td><td rowspan=1 colspan=1>49.8 72.6 54.5 49.4 61.0</td></tr><tr><td rowspan=1 colspan=1>51.9 75.4 57.0 49.6 59.1</td></tr><tr><td rowspan=1 colspan=1>63.0 86.9 67.9 56.3 68.1</td></tr></table>",
575
+ "bbox": [
576
+ 207,
577
+ 114,
578
+ 785,
579
+ 474
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "YouTube-VIS 2021. In order to address more difficult scenarios, additional videos are included in YouTube-VIS2021 (794 videos for training and 129 videos for validation). In particular, a greater number of objects with confusing trajectories has been added (average 3.4 per video for the additional videos in the train set). However, the average length of the additional validation videos is still 39.7 frames, which is not significantly increased compared to YouTube-VIS 2019. ",
586
+ "bbox": [
587
+ 174,
588
+ 506,
589
+ 825,
590
+ 575
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "OVIS. Under the same definition as YouTube-VIS, OVIS $\\pmb { \\Vert 2 4 \\Vert }$ specifically aims to tackle objects with heavy occlusions that are belonging to 25 semantic categories. In addition to the heavily occluded situation, OVIS has three challenging characteristics that are distinct from the YouTube-VIS datasets. First, although it has fewer categories than YouTube-VIS, much more instances appear in a single video (average 5.9 per video for the train set). Second, the instances with the same categories in the same video have almost similar appearances, thus approaches that rely heavily on visual cues often struggle to predict accurate trajectories. Finally, the average length of videos for the valid set is 62.7 frames (the longest video has 292 frames) which is much longer than that of YouTube-VIS. Therefore, not only do previous approaches show relatively low accuracy, but all existing complete-offline VIS methods are not feasible to infer OVIS without hand-crafted association algorithms. ",
597
+ "bbox": [
598
+ 174,
599
+ 595,
600
+ 826,
601
+ 736
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "4.2 Implementation Details ",
608
+ "text_level": 1,
609
+ "bbox": [
610
+ 176,
611
+ 758,
612
+ 375,
613
+ 773
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Our method is implemented on top of detectron2 $\\textcircled { \\scriptsize { 1 3 1 } }$ . All hyper-parameters regarding the framelevel detector are equal to the defaults of Mask2Former [7]. The total loss $\\mathcal { L } _ { t o t a l }$ is balanced with $\\lambda _ { v }$ $\\lambda _ { f }$ , and $\\lambda _ { s i m }$ where 1.0, 1.0, and 0.5, respectively. By default, Object Encoder is composed of three layers with the window size $W = 6$ , and Object Decoder employs six layers with $N _ { v } = 1 0 0$ video queries. Having VITA built on top of Mask2Former, we first train our model on the COCO $\\left[ \\left[ 2 0 \\right] \\right]$ dataset following Mask2Former. Then, we train our method on the VIS datasets $\\pm \\pm \\pm \\pm \\pm \\pm$ simultaneously with pseudo videos generated from images $\\left[ \\left[ 2 0 \\right] \\right]$ following the details of SeqFormer $\\textcircled { \\lvert 3 0 \\rvert }$ . During inference, each frame is resized to a shorter edge size of 360 and 448 pixels when using ResNet [14] and Swin $[ [ 2 2 ] ]$ backbones, respectively. Note that all reported scores in main results and ablation studies are the mean of five runs, and we use the standard ResNet-50 [14] for the backbone unless specified. ",
620
+ "bbox": [
621
+ 174,
622
+ 786,
623
+ 825,
624
+ 911
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "table",
630
+ "img_path": "images/605f17e50123edfae4f8dc9647be327e9a988562588ce54209422c73b966d54b.jpg",
631
+ "table_caption": [
632
+ "Table 2: Comparisons with ResNet-50 backbone on YouTube-VIS 2021 and OVIS. $\\dagger$ indicates using MsgShifT backbone. $\\ddagger$ indicates using Swin-L $[ [ 2 2 ] ]$ backbone. "
633
+ ],
634
+ "table_footnote": [],
635
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">YouTube-VIS 2021</td><td colspan=\"5\">OVIS</td></tr><tr><td>AP</td><td>AP50</td><td>AP75</td><td>AR1</td><td>AR10</td><td>AP</td><td>AP50</td><td>AP75</td><td>AR1</td><td>AR10</td></tr><tr><td>MaskTrack R-CNN 32]</td><td>28.6</td><td>48.9</td><td>29.6</td><td>26.5</td><td>33.8</td><td>10.8</td><td>25.3</td><td>8.5</td><td>7.9</td><td>14.9</td></tr><tr><td>CMaskTrack R-CNN [23]</td><td>-</td><td>=</td><td>=</td><td>=</td><td>-</td><td>15.4</td><td>33.9</td><td>13.1</td><td>9.3</td><td>20.0</td></tr><tr><td>STMask [19]</td><td>31.1</td><td>50.4</td><td>33.5</td><td>26.9</td><td>35.6</td><td>15.4</td><td>33.8</td><td>12.5</td><td>8.9</td><td>21.3</td></tr><tr><td>Cross VIS [33]</td><td>34.2</td><td>54.4</td><td>37.9</td><td>30.4</td><td>38.2</td><td>14.9</td><td>32.7</td><td>12.1</td><td>10.3</td><td>19.8</td></tr><tr><td>IFC [5]</td><td>35.2</td><td>55.9</td><td>37.7</td><td>32.6</td><td>42.9</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>VISOLO [12]</td><td>36.9</td><td>54.7</td><td>40.2</td><td>30.6</td><td>40.9</td><td>15.3</td><td>31.0</td><td>13.8</td><td>11.1</td><td>21.7</td></tr><tr><td>TeViTt B4]</td><td>37.9</td><td>61.2</td><td>42.1</td><td>35.1</td><td>44.6</td><td>17.4</td><td>34.9</td><td>15.0</td><td>11.2</td><td>21.8</td></tr><tr><td>SeqFormer[ 眉</td><td>40.5</td><td>62.4</td><td>43.7</td><td>36.1</td><td>48.1</td><td>-</td><td>1</td><td>1</td><td>-</td><td>1</td></tr><tr><td>Mask2Former-VIS 回</td><td>40.6</td><td>60.9</td><td>41.8</td><td>-</td><td>1</td><td>1</td><td>-</td><td>1</td><td>1</td><td>1</td></tr><tr><td>VITA (Ours)</td><td>45.7</td><td>67.4</td><td>49.5</td><td>40.9</td><td>53.6</td><td>19.6</td><td>41.2</td><td>17.4</td><td>11.7</td><td>26.0</td></tr><tr><td>SeqFormert [30]</td><td>51.8</td><td>74.6</td><td>58.2</td><td>42.8</td><td>58.1</td><td>-</td><td>1</td><td>1</td><td>1</td><td>-</td></tr><tr><td>Mask2Former-VIS‡ 回</td><td>52.6</td><td>76.4</td><td>57.2</td><td>-</td><td>-</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>VITA (Ours)‡</td><td>57.5</td><td>80.6</td><td>61.0</td><td>47.7</td><td>62.6</td><td>27.7</td><td>51.9</td><td>24.9</td><td>14.9</td><td>33.0</td></tr></table>",
636
+ "bbox": [
637
+ 176,
638
+ 126,
639
+ 823,
640
+ 358
641
+ ],
642
+ "page_idx": 6
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "",
647
+ "bbox": [
648
+ 176,
649
+ 392,
650
+ 823,
651
+ 421
652
+ ],
653
+ "page_idx": 6
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "4.3 Main Results ",
658
+ "text_level": 1,
659
+ "bbox": [
660
+ 174,
661
+ 448,
662
+ 305,
663
+ 463
664
+ ],
665
+ "page_idx": 6
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Using the popular VIS benchmarks – YouTube-VIS 2019 & 2021 $\\pmb { \\Vert 3 2 } \\Vert$ and OVIS [24] – we compare VITA with state-of-the-art approaches following the standard evaluation metric [32]. ",
670
+ "bbox": [
671
+ 176,
672
+ 477,
673
+ 823,
674
+ 506
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "YouTube-VIS 2019. Tab. 1 shows the comparison on YouTube-VIS 2019 dataset with backbones of both CNN-based (ResNet-50 and 101 [14]) and Transformer-based (Swin-L $\\pmb { \\mathbb { L 2 } } \\mathbf { \\mathbb { I } }$ ). Offline methods can take two advantages over (near) online approaches: 1) they have a greater receptive field to the temporal axis, and 2) they can avoid error propagation derived from hand-crafted association algorithms. As a result, the tendency of offline methods with higher accuracy is clearly shown in the table. Among the competitive offline models, our VITA sets a new state-of-the-art of 49.8 AP and 51.7 AP using CNN backbones, ResNet-50 and ResNet-101 respectively. In addition, with Swin-L backbone, VITA achieves 63.0 AP outperforming all existing VIS methods. ",
681
+ "bbox": [
682
+ 173,
683
+ 529,
684
+ 825,
685
+ 641
686
+ ],
687
+ "page_idx": 6
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "YouTube-VIS 2021. We compare VITA with state-of-the-art methods on YouTube-VIS 2021 benchmark in Tab. 2. Note that the longest video in the valid set has 84 frames, thus previous offline methods [15, 30, 6] can infer videos at once with GPUs with large memories. Above all, VITA achieves the highest accuracy, 45.7 AP, which outperforms the previous state-of-the-art approach [6] with a huge margin of 5.1 AP. Considering the accuracy gap on YouTube-VIS 2019, the results demonstrate that VITA can effectively handle tricky scenarios, e.g., numerous unique instances with confusing trajectories. We hypothesize that the object-oriented design of VITA is more effective than typical dense Transformer decoders in addressing such challenging scenes. ",
692
+ "bbox": [
693
+ 174,
694
+ 665,
695
+ 825,
696
+ 776
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "OVIS. In Tab. 2, we demonstrate the competitiveness of VITA on the challenging OVIS benchmark. Due to the considerable lengths of videos – the longest video has 292 frames – existing offline approaches [28, 15, 34, 30, 6] cannot process OVIS benchmark in their original design: video-in and video-out. To the best of our knowledge, VITA is the first complete-offline approach to evaluate on OVIS valid set. Thanks to its object token-based structure which is disjoint from backbone features, VITA can process the benchmark without any hand-crafted association algorithm. Moreover, VITA sets a new state-of-the-art performance of 19.6 AP, demonstrating the potential of the complete-offline pipeline in long and complicated scenes. ",
703
+ "bbox": [
704
+ 174,
705
+ 799,
706
+ 825,
707
+ 911
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "table",
713
+ "img_path": "images/f95c8f0b2792128b3f51f679566f1ed20ec9352cd9179349a4b48fe8b9d69c8e.jpg",
714
+ "table_caption": [
715
+ "Table 3: Impact of local windows of varying sizes in Object Encoder. "
716
+ ],
717
+ "table_footnote": [],
718
+ "table_body": "<table><tr><td>W</td><td>AP</td><td>AP50</td><td>AP75</td><td>AR1</td><td>AR10</td></tr><tr><td>3</td><td>49.4</td><td>72.2</td><td>54.4</td><td>48.6</td><td>60.9</td></tr><tr><td>6</td><td>49.8</td><td>72.6</td><td>54.5</td><td>49.4</td><td>61.0</td></tr><tr><td>12</td><td>50.0</td><td>73.0</td><td>54.7</td><td>49.0</td><td>60.8</td></tr><tr><td>All</td><td>50.1</td><td>72.4</td><td>54.7</td><td>49.0</td><td>60.6</td></tr></table>",
719
+ "bbox": [
720
+ 179,
721
+ 126,
722
+ 473,
723
+ 213
724
+ ],
725
+ "page_idx": 7
726
+ },
727
+ {
728
+ "type": "table",
729
+ "img_path": "images/a5f039243eb197c2c92dad86d3355103ad65c141f09df66f0d175f23bdbd2c13.jpg",
730
+ "table_caption": [
731
+ "Table 5: Use of different heuristic association algorithms on OVIS valid set. "
732
+ ],
733
+ "table_footnote": [],
734
+ "table_body": "<table><tr><td>Length</td><td>Algorithm</td><td>AP</td><td>AP50</td><td>AP75</td></tr><tr><td>36</td><td>Greedy Hungarian</td><td>18.8 18.4</td><td>39.4 38.9</td><td>17.1 16.3</td></tr><tr><td>48</td><td>Greedy Hungarian</td><td>18.8 19.1</td><td>39.0 39.1</td><td>17.1 17.4</td></tr><tr><td>All</td><td>None</td><td>19.6</td><td>41.2</td><td>17.4</td></tr></table>",
735
+ "bbox": [
736
+ 179,
737
+ 252,
738
+ 475,
739
+ 366
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "table",
745
+ "img_path": "images/0c99c2a2d80106df2153df0b439e10cca91c2162b2cd91251438b66b9634c33b.jpg",
746
+ "table_caption": [
747
+ "Table 4: Maximum number of frames that can be processed at once using a single Titan XP. "
748
+ ],
749
+ "table_footnote": [],
750
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Max Frames360 × 640 720×1280</td></tr><tr><td rowspan=1 colspan=1>VisTR [28]IFC园Mask2Former-VIS回</td><td rowspan=1 colspan=1>46 12123 3881 20</td></tr><tr><td rowspan=1 colspan=1>W=3VITA(Ours) W=6W = 12</td><td rowspan=1 colspan=1>26771392741</td></tr></table>",
751
+ "bbox": [
752
+ 509,
753
+ 126,
754
+ 816,
755
+ 246
756
+ ],
757
+ "page_idx": 7
758
+ },
759
+ {
760
+ "type": "table",
761
+ "img_path": "images/877f40b55fc7d59a1eee35ee375fdb81ad4b6a2e203eef3704e1cd13fa209a55.jpg",
762
+ "table_caption": [
763
+ "Table 6: Pruning tokens by different ratios $r$ "
764
+ ],
765
+ "table_footnote": [],
766
+ "table_body": "<table><tr><td>r</td><td>一 AP</td><td>AP50</td><td>AP75</td><td>AR1</td><td>AR10</td></tr><tr><td>1.0</td><td>49.8</td><td>72.6</td><td>54.5</td><td>49.4</td><td>61.0</td></tr><tr><td>0.75</td><td>49.7</td><td>72.5</td><td>54.4</td><td>48.7</td><td>61.0</td></tr><tr><td>0.5</td><td>48.9</td><td>72.1</td><td>52.0</td><td>48.3</td><td>60.9</td></tr><tr><td>0.25</td><td>48.1</td><td>71.6</td><td>51.6</td><td>47.4</td><td>59.8</td></tr></table>",
767
+ "bbox": [
768
+ 514,
769
+ 279,
770
+ 808,
771
+ 366
772
+ ],
773
+ "page_idx": 7
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "4.4 Ablation Studies ",
778
+ "text_level": 1,
779
+ "bbox": [
780
+ 174,
781
+ 392,
782
+ 328,
783
+ 407
784
+ ],
785
+ "page_idx": 7
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "We provide a series of ablation studies using a ResNet-50 [14] backbone. All experiments are conducted on YouTube-VIS 2019 $\\pmb { \\mathbb { \\left[ \\left| 3 2 \\right| \\right] } }$ valid set except for Tab. 5 with OVIS [24] valid set. ",
790
+ "bbox": [
791
+ 173,
792
+ 417,
793
+ 823,
794
+ 446
795
+ ],
796
+ "page_idx": 7
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Attention window size. Tab. $\\bigstar$ shows the performance of VITA with varying sizes of shifted attention window $W$ in Object Encoder during inference. The larger the window, the greater the receptive field for the temporal axis in Object Encoder. The results suggest that larger window sizes utilize information from multiple frames, which helps Object Encoder understand the context of objects in videos. We set $W = 6$ considering a trade-off between performance and inference scalability. ",
801
+ "bbox": [
802
+ 174,
803
+ 462,
804
+ 825,
805
+ 545
806
+ ],
807
+ "page_idx": 7
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Maximum number of frames. In Tab. $\\boxed { 4 }$ we calculate the maximum number of frames that VITA can handle with respect to the various window sizes $W$ , and compare it with existing complete-offline VIS methods. To take into account the general environment, all results are computed using a single 12GB Titan XP GPU. As shown in results, existing methods have limitations in processing long videos in a video-in and video-out manner. Clearly, the bottleneck of VisTR $\\pmb { \\left. 2 8 \\right. }$ is the encoder, where the full spatio-temporal self-attention leads to a tremendous memory usage. IFC $\\mathbb { \\left. \\overline { { \\Omega } } \\right. }$ alleviates the computation of VisTR $\\pmb { \\left. 2 8 \\right. }$ , achieving a higher number of input frames. However, IFC makes use of a typical Transformer decoder that visits all dense spatio-temporal features. Therefore, IFC cannot infer the OVIS $ { \\mathbb { 1 2 4 } }$ benchmark at once which contains a video of 292 frames. The problem gets aggravated in Mask2Former-VIS $\\pmb { \\mathbb { H } }$ as the scope of the decoder is extended to multiple feature levels $\\textcircled { 7 }$ . On the other hand, VITA presents considerable frame numbers that can be inferred completely offline. Furthermore, VITA is independent from input frame resolutions as each frame gets summarized into compact object tokens. With input resolution of $3 6 0 \\times 6 4 0$ and $W = 6$ , the maximum length of sequence that VITA is able to process in complete-offline is about $I I \\times$ longer than IFC [15]. ",
812
+ "bbox": [
813
+ 173,
814
+ 560,
815
+ 825,
816
+ 755
817
+ ],
818
+ "page_idx": 7
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Heuristic clip association. Tab. $\\boxed { 5 }$ shows the results on OVIS valid set of splitting a video into shorter clips and associating clip-wise predictions through heuristic matching. The length of the clip is set to be less than the average length of videos of OVIS valid set (62.7). Then, we associate outputs from different clips using mask IoU score as the matching cost. We test with two matching algorithms: Greedy and Hungarian. As shown in Tab. $\\boxed { 5 }$ VITA demonstrates the best performance on the complete-offline inference that use all the video frames at once. ",
823
+ "bbox": [
824
+ 174,
825
+ 770,
826
+ 825,
827
+ 853
828
+ ],
829
+ "page_idx": 7
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "Pruning Tokens. In Tab. $^ { 6 , }$ we investigate the effects of removing redundant frame queries. From a collection of frame queries, VITA understands the overall context of the given clip. As only a small portion of the collection is matched to foreground objects, the number of total input frame queries can be reduced. First, for each frame, we sort frame queries in ascending order by the “no object” $( \\emptyset )$ probability. Then, we keep only top $r N _ { f }$ queries from the sorted list where $r$ is the ratio, and discard the rest. The accuracy with respect to the ratio $r$ is as shown in Tab. 6. ",
834
+ "bbox": [
835
+ 174,
836
+ 868,
837
+ 823,
838
+ 911
839
+ ],
840
+ "page_idx": 7
841
+ },
842
+ {
843
+ "type": "image",
844
+ "img_path": "images/a20c516e7af8587e691546677cd729656012ba339b14588ff8929605737d74b6.jpg",
845
+ "image_caption": [
846
+ "Figure 5: Train speed comparison with Mask2Former-VIS $\\textcircled { 6 }$ . $\\dagger$ indicates the same training setup with VITA. "
847
+ ],
848
+ "image_footnote": [],
849
+ "bbox": [
850
+ 173,
851
+ 87,
852
+ 449,
853
+ 244
854
+ ],
855
+ "page_idx": 8
856
+ },
857
+ {
858
+ "type": "table",
859
+ "img_path": "images/1282629e21e439b2480d18e485bda570d33d70101db933a0db0f71e3301e8d62.jpg",
860
+ "table_caption": [
861
+ "Table 7: Results on YouTube-VIS 2019 with freezing detector pretrained on COCO. "
862
+ ],
863
+ "table_footnote": [],
864
+ "table_body": "<table><tr><td>Backbone</td><td>Freeze</td><td>AP</td><td>AP50</td><td>AP75</td><td>AR1</td><td>AR10</td></tr><tr><td>ResNet-50</td><td>厂</td><td>49.8 40.9</td><td>72.6 61.9</td><td>54.5 44.6</td><td>49.4 43.1</td><td>61.0 53.1</td></tr><tr><td>ResNet-101</td><td></td><td>51.9</td><td>75.4</td><td>57.0</td><td>49.6</td><td>59.1</td></tr><tr><td></td><td>1</td><td>43.2</td><td>64.4</td><td>48.7</td><td>46.1</td><td>55.9</td></tr><tr><td>Swin-L</td><td></td><td>63.0</td><td>86.9</td><td>67.9</td><td>56.3</td><td>68.1</td></tr><tr><td></td><td>1</td><td>53.4</td><td>75.9</td><td>58.7</td><td>51.9</td><td>64.3</td></tr></table>",
865
+ "bbox": [
866
+ 462,
867
+ 155,
868
+ 816,
869
+ 266
870
+ ],
871
+ "page_idx": 8
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "",
876
+ "bbox": [
877
+ 173,
878
+ 297,
879
+ 826,
880
+ 340
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "By setting the ratio $r = 0 . 7 5$ , the accuracy of VITA shows only a marginal degradation in the accuracy $( - 0 . 1$ AP). This signifies that VITA focuses more on the foreground contexts that are embedded in the frame queries. Meanwhile, as the quadratic computation in Clip Encoder can be alleviated, VITA can process a much greater number of frames; using the ratio $r = 0 . 7 5$ , the maximum frame number increases from 1392 (Tab. 4) to 2635. ",
887
+ "bbox": [
888
+ 174,
889
+ 347,
890
+ 825,
891
+ 416
892
+ ],
893
+ "page_idx": 8
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Convergence speed and Similarity loss. Fig. $5$ validates our claim of the faster convergence speed and the effectiveness of the proposed Similarity loss. For a fair comparison, we report average scores and standard deviations of five runs, each trained without pseudo videos, same as Mask2FormerVIS [6]. Thanks to its object-centric design, VITA shows faster convergence than Mask2Former-VIS. Furthermore, the use of Similarity loss leads to an additional accuracy gain of 1.8 AP. The results demonstrate that the loss mitigates the discrepancies between the embeddings of equal identities, leading to better performance. ",
898
+ "bbox": [
899
+ 174,
900
+ 430,
901
+ 826,
902
+ 529
903
+ ],
904
+ "page_idx": 8
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "Frozen frame-level detector. In Tab. $\\bigstar$ we demonstrate the performance of VITA where the frame-level detector is completely frozen. Specifically, while VITA gets trained on YouTube-VIS 2019, the frame-level detector $\\dot { \\bigtriangledown } \\mathbb { I }$ does not get updated from pretrained weights on COCO $\\left[ \\left[ 2 0 \\right] \\right]$ . Note that among 40 categories in YouTube-VIS 2019 dataset, only 20 categories overlap with the categories of COCO. Interestingly, though the frame-level detector remains completely frozen, VITA achieves compelling results with various backbones. As shown in Tab. 1 and Tab. $\\textcircled { 7 }$ VITA presents a huge practicality as it surpasses all online approaches on top of the ResNet-50 backbone. This strategy can be beneficial in various scenarios: 1) when the accuracy of image instance segmentation should be kept while extending the network to the video domain, and 2) when having limited time and GPUs to train models. The strategy can be especially useful in mobile applications that have scarce storage for keeping two separate network parameters for image instance segmentation and video instance segmentation. With additional $6 \\%$ parameters, VITA successfully extends the frozen Swin-L based frame-level detector to the video domain and it achieves great accuracy. ",
909
+ "bbox": [
910
+ 174,
911
+ 542,
912
+ 825,
913
+ 723
914
+ ],
915
+ "page_idx": 8
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "We also provide a brief discussion of our understanding for the large gap in AP. Compared to COCO, we observe that YouTube-VIS dataset is annotated with only a few salient objects as foregrounds. Having weights of the frame-level detector frozen to COCO, the detector cannot adapt to the YouTubeVIS domain and it embeds and interprets more objects in scenes as foregrounds. Therefore, VITA outputs more predictions as a foreground category even if such predictions are not labeled as groundtruths in YouTube-VIS. As a result, it leads to a lower average precision as it comes out with more false positive predictions. On the contrary, the more false positive predictions only slightly affect AR. ",
920
+ "bbox": [
921
+ 173,
922
+ 729,
923
+ 825,
924
+ 827
925
+ ],
926
+ "page_idx": 8
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "Qualitative Results. We provide some visualizations of the predictions from VITA and frame-level detector in Fig. $6 .$ The qualitative results show that VITA leads to better video instance segmentation qualities compared to the frame-level detector. Specifically, the frame-level detector mistakenly interprets in to recognize either category or mask of instances that have been largely occluded, while our method successfully recovers it by leveraging the temporal information. ",
931
+ "bbox": [
932
+ 174,
933
+ 842,
934
+ 823,
935
+ 911
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "image",
941
+ "img_path": "images/fc3f2f6949a57be07b4d2af0e448b02f2f9984aae5d3bcbeb52f506608216b01.jpg",
942
+ "image_caption": [
943
+ "Figure 6: Visualization of predictions from the frame-level detector and VITA. Instances with the same identity are displayed in the same color. "
944
+ ],
945
+ "image_footnote": [],
946
+ "bbox": [
947
+ 179,
948
+ 88,
949
+ 823,
950
+ 273
951
+ ],
952
+ "page_idx": 9
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "5 Limitations ",
957
+ "text_level": 1,
958
+ "bbox": [
959
+ 174,
960
+ 330,
961
+ 302,
962
+ 347
963
+ ],
964
+ "page_idx": 9
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "VITA has achieved high performance in the complete-offline paradigm while dramatically improving the number of input frames that can be processed at once. However, there are two major limitations for the ultimate long video understanding. First, the current architecture still has limitations in processing an infinite number of frames. In addition, since object tokens do not explicitly utilize temporal information, they may have difficulties in identifying complex behaviors that span over very long sequences. We believe that devising explicit designs to address these issues will be a promising future direction. ",
969
+ "bbox": [
970
+ 174,
971
+ 361,
972
+ 825,
973
+ 458
974
+ ],
975
+ "page_idx": 9
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "6 Conclusion ",
980
+ "text_level": 1,
981
+ "bbox": [
982
+ 174,
983
+ 477,
984
+ 299,
985
+ 493
986
+ ],
987
+ "page_idx": 9
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "In this paper, we proposed VITA for offline Video Instance Segmentation. VITA is a simple model built on top of the off-the-shelf image instance segmentation model [7]. Unlike existing offline methods, VITA directly leverages object queries decoded by independent frame-level detectors. We demonstrated that deploying object-oriented information is not only effective in improving performance, but also has robust practicality for processing long and high-resolution videos - setting state-of-the-art on popular VIS benchmarks, e.g., YouTubeVIS-2019 & 2021 and OVIS. Moreover, since VITA is designed to absorb spatial knowledge purely from image object detector, it shows fast convergence and demonstrates competitive performance even if trained on frozen detectors. We hope that our method extends the scope of offline VIS research beyond benchmarks to real-world applications. ",
992
+ "bbox": [
993
+ 174,
994
+ 507,
995
+ 825,
996
+ 645
997
+ ],
998
+ "page_idx": 9
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Acknowledgements ",
1003
+ "text_level": 1,
1004
+ "bbox": [
1005
+ 176,
1006
+ 664,
1007
+ 338,
1008
+ 681
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "This work has partly supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (NRF2022R1A2C2004509) and by Institute of Information communications Technology Planning Evaluation (IITP) grant funded by the Korea government (MSIT) (No. 2022-0-00113, Developing a Sustainable Collaborative Multi-modal Lifelong Learning Framework), and Artificial Intelligence Graduate School Program under Grant 2020-0-01361. ",
1015
+ "bbox": [
1016
+ 174,
1017
+ 694,
1018
+ 826,
1019
+ 763
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Broader Impact ",
1026
+ "text_level": 1,
1027
+ "bbox": [
1028
+ 174,
1029
+ 782,
1030
+ 310,
1031
+ 800
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "VITA is designed for the VIS task and focuses on processing long and high-resolution videos in an end-to-end manner while achieving the state-of-the-art performance. We hope that VITA can have a positive impact on many industrial areas such as video editing applications. We would like to note that research on VIS must be aware of potential misuse that violates personal privacy. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 813,
1041
+ 825,
1042
+ 868
1043
+ ],
1044
+ "page_idx": 9
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Licenses of COCO $[ \\pmb { \\big | 2 0 } ]$ , YouTube-VIS [32], OVIS [24], and detectron2 [31]: Attribution 4.0 International, CC BY 4.0, CC BY-NC-SA 4.0, and Apache-2.0, respectively. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 882,
1052
+ 821,
1053
+ 911
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "References \n[1] Ali Athar, Sabarinath Mahadevan, Aljoša Ošep, Laura Leal-Taixé, and Bastianan Leibe. Stemseg: Spatio-temporal embeddings for instance segmentation in videos. In ECCV, 2020. \n[2] Gedas Bertasius and Lorenzo Torresani. Classifying, segmenting, and tracking object instances in video with mask propagation. In CVPR, 2020. \n[3] Guillem Brasó and Laura Leal-Taixé. Learning a neural solver for multiple object tracking. In CVPR, 2020. \n[4] Jiale Cao, Rao Muhammad Anwer, Hisham Cholakkal, Fahad Shahbaz Khan, Yanwei Pang, and Ling Shao. Sipmask: Spatial information preservation for fast image and video instance segmentation. In ECCV, 2020. \n[5] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020. \n[6] Bowen Cheng, Anwesa Choudhuri, Ishan Misra, Alexander Kirillov, Rohit Girdhar, and Alexander G Schwing. Mask2former for video instance segmentation. arXiv preprint arXiv:2112.10764, 2021. \n[7] Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. In CVPR, 2022. \n[8] Peng Dai, Renliang Weng, Wongun Choi, Changshui Zhang, Zhangping He, and Wei Ding. Learning a proposal classifier for multiple object tracking. In CVPR, 2021. \n[9] 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. In ICLR, 2021. \n[10] Yang Fu, Linjie Yang, Ding Liu, Thomas S Huang, and Humphrey Shi. Compfeat: Comprehensive feature aggregation for video instance segmentation. In AAAI, 2021. \n[11] Peng Gao, Minghang Zheng, Xiaogang Wang, Jifeng Dai, and Hongsheng Li. Fast convergence of detr with spatially modulated co-attention. In ICCV, 2021. \n[12] Su Ho Han, Sukjun Hwang, Seoung Wug Oh, Yeonchool Park, Hyunwoo Kim, Min-Jung Kim, and Seon Joo Kim. Visolo: Grid-based space-time aggregation for efficient online video instance segmentation. In CVPR, 2022. \n[13] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. \n[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. \n[15] Sukjun Hwang, Miran Heo, Seoung Wug Oh, and Seon Joo Kim. Video instance segmentation using inter-frame communication transformers. In NeurIPS, 2021. \n[16] Sukjun Hwang, Miran Heo, Seoung Wug Oh, and Seon Joo Kim. Cannot see the forest for the trees: Aggregating multiple viewpoints to better classify objects in videos. In CVPR, 2022. \n[17] Lei Ke, Xia Li, Martin Danelljan, Yu-Wing Tai, Chi-Keung Tang, and Fisher Yu. Prototypical cross-attention networks for multiple object tracking and segmentation. In NeurIPS, 2021. \n[18] Harold W Kuhn. The hungarian method for the assignment problem. In Naval research logistics quarterly, 1955. \n[19] Minghan Li, Shuai Li, Lida Li, and Lei Zhang. Spatial feature calibration and temporal fusion for effective one-stage video instance segmentation. In CVPR, 2021. \n[20] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. \n[21] Dongfang Liu, Yiming Cui, Wenbo Tan, and Yingjie Chen. Sg-net: Spatial granularity network for one-stage video instance segmentation. In CVPR, 2021. \n[22] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In ICCV, 2021. \n[23] Jiyang Qi, Yan Gao, Yao Hu, Xinggang Wang, Xiaoyu Liu, Xiang Bai, Serge Belongie, Alan Yuille, Philip HS Torr, and Song Bai. Occluded video instance segmentation. arXiv preprint arXiv:2102.01558, 2021. \n[24] Jiyang Qi, Yan Gao, Yao Hu, Xinggang Wang, Xiaoyu Liu, Xiang Bai, Serge Belongie, Alan Yuille, Philip HS Torr, and Song Bai. Occluded video instance segmentation: Dataset and iccv 2021 challenge. In NeurIPS Track on Datasets and Benchmarks, 2021. \n[25] Zhiqing Sun, Shengcao Cao, Yiming Yang, and Kris M Kitani. Rethinking transformer-based set prediction for object detection. In ICCV, 2021. \n[26] Siyu Tang, Mykhaylo Andriluka, Bjoern Andres, and Bernt Schiele. Multiple people tracking by lifted multicut and person re-identification. In CVPR, 2017. \n[27] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. \n[28] Yuqing Wang, Zhaoliang Xu, Xinlong Wang, Chunhua Shen, Baoshan Cheng, Hao Shen, and Huaxia Xia. End-to-end video instance segmentation with transformers. In CVPR, 2020. \n[29] Jialian Wu, Sudhir Yarram, Hui Liang, Tian Lan, Junsong Yuan, Jayan Eledath, and Gerard Medioni. Efficient video instance segmentation via tracklet query and proposal. In CVPR, 2022. \n[30] Junfeng Wu, Yi Jiang, Wenqing Zhang, Xiang Bai, and Song Bai. Seqformer: a frustratingly simple model for video instance segmentation. In ECCV, 2022. \n[31] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detectron2. https://github.com/facebookresearch/detectron2, 2019. \n[32] Linjie Yang, Yuchen Fan, and Ning Xu. Video instance segmentation. In ICCV, 2019. \n[33] Shusheng Yang, Yuxin Fang, Xinggang Wang, Yu Li, Chen Fang, Ying Shan, Bin Feng, and Wenyu Liu. Crossover learning for fast online video instance segmentation. In ICCV, 2021. \n[34] Shusheng Yang, Xinggang Wang, Yu Li, Yuxin Fang, Jiemin Fang, Wenyu Liu, Xun Zhao, and Ying Shan. Temporally efficient vision transformer for video instance segmentation. In CVPR, 2022. \n[35] Li Zhang, Yuan Li, and Ramakant Nevatia. Global data association for multi-object tracking using network flows. In CVPR, 2008. \n[36] Xingyi Zhou, Tianwei Yin, Vladlen Koltun, and Phillip Krähenbühl. Global tracking transformers. In CVPR, 2022. \n[37] Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable detr: Deformable transformers for end-to-end object detection. In ICLR, 2021. ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 90,
1063
+ 828,
1064
+ 917
1065
+ ],
1066
+ "page_idx": 10
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "",
1071
+ "bbox": [
1072
+ 171,
1073
+ 90,
1074
+ 828,
1075
+ 751
1076
+ ],
1077
+ "page_idx": 11
1078
+ }
1079
+ ]
parse/dev/yb3HOXO3lX2/yb3HOXO3lX2_content_list.json ADDED
@@ -0,0 +1,1220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Defining and Characterizing Reward Hacking ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 217,
8
+ 122,
9
+ 779,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Joar Skalse∗ University of Oxford ",
17
+ "bbox": [
18
+ 207,
19
+ 200,
20
+ 348,
21
+ 228
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Nikolaus H. R. Howe Mila, Université de Montréal ",
28
+ "bbox": [
29
+ 387,
30
+ 200,
31
+ 578,
32
+ 228
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Dmitrii Krasheninnikov University of Cambridge ",
39
+ "bbox": [
40
+ 620,
41
+ 200,
42
+ 789,
43
+ 229
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "David Krueger∗ University of Cambridge ",
50
+ "bbox": [
51
+ 416,
52
+ 250,
53
+ 580,
54
+ 279
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 314,
65
+ 535,
66
+ 330
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "We provide the first formal definition of reward hacking, a phenomenon where optimizing an imperfect proxy reward function, $\\tilde { \\mathcal { R } }$ , leads to poor performance according to the true reward function, $\\mathcal { R }$ . We say that a proxy is unhackable if increasing the expected proxy return can never decrease the expected true return. Intuitively, it might be possible to create an unhackable proxy by leaving some terms out of the reward function (making it “narrower”) or overlooking fine-grained distinctions between roughly equivalent outcomes, but we show this is usually not the case. A key insight is that the linearity of reward (in state-action visit counts) makes unhackability a very strong condition. In particular, for the set of all stochastic policies, two reward functions can only be unhackable if one of them is constant. We thus turn our attention to deterministic policies and finite sets of stochastic policies, where non-trivial unhackable pairs always exist, and establish necessary and sufficient conditions for the existence of simplifications, an important special case of unhackability. Our results reveal a tension between using reward functions to specify narrow tasks and aligning AI systems with human values. ",
73
+ "bbox": [
74
+ 233,
75
+ 347,
76
+ 766,
77
+ 555
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 582,
88
+ 310,
89
+ 598
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "It is well known that optimising a proxy can lead to unintended outcomes: a boat spins in circles collecting “powerups” instead of following the race track in a racing game (Clark and Amodei, 2016); an evolved circuit listens in on radio signals from nearby computers’ oscillators instead of building its own (Bird and Layzell, 2002); universities reject the most qualified applicants in order to appear more selective and boost their ratings (Golden, 2001). In the context of reinforcement learning (RL), such failures are called reward hacking. ",
96
+ "bbox": [
97
+ 174,
98
+ 613,
99
+ 825,
100
+ 696
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "For AI systems that take actions in safety-critical real world environments such as autonomous vehicles, algorithmic trading, or content recommendation systems, these unintended outcomes can be catastrophic. This makes it crucial to align autonomous AI systems with their users’ intentions. Precisely specifying which behaviours are or are not desirable is challenging, however. One approach to this specification problem is to learn an approximation of the true reward function $\\mathrm { N g }$ et al., 2000; Ziebart, 2010; Leike et al., 2018). Optimizing a learned proxy reward can be dangerous, however; for instance, it might overlook side-effects (Krakovna et al., 2018; Turner et al., 2019) or encourage power-seeking (Turner et al., 2021) behavior. This raises the question motivating our work: When is it safe to optimise a proxy? ",
107
+ "bbox": [
108
+ 174,
109
+ 703,
110
+ 825,
111
+ 828
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "To begin to answer this question, we consider a somewhat simpler one: When could optimising a proxy lead to worse behaviour? “Optimising”, in this context, does not refer to finding a global, or even local, optimum, but rather running a search process, such as stochastic gradient descent (SGD), that yields a sequence of candidate policies, and tends to move towards policies with higher (proxy) reward. We make no assumptions about the path through policy space that optimisation takes.1 Instead, we ask whether there is any way in which improving a policy according to the proxy could make the policy worse according to the true reward; this is equivalent to asking if there exists a pair of policies $\\pi _ { 1 } , \\pi _ { 2 }$ where the proxy prefers $\\pi _ { 1 }$ , but the true reward function prefers $\\pi _ { 2 }$ . When this is the case, we refer to this pair of true reward function and proxy reward function as hackable. ",
118
+ "bbox": [
119
+ 176,
120
+ 834,
121
+ 825,
122
+ 876
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 173,
131
+ 90,
132
+ 825,
133
+ 174
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Given the strictness of our definition, it is not immediately apparent that any non-trivial examples of unhackable reward function pairs exist. And indeed, if we consider the set of all stochastic policies, they do not (Section 5.1). However, restricting ourselves to any finite set of policies guarantees at least one non-trivial unhackable pair (Section 5.2). ",
140
+ "bbox": [
141
+ 174,
142
+ 181,
143
+ 825,
144
+ 237
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Intuitively, we might expect the proxy to be a “simpler” version of the true reward function. Noting that the definition of unhackability is symmetric, we introduce the asymmetric special case of simplification, and arrive at similar theoretical results for this notion.2 In the process, and through examples, we show that seemingly natural ways of simplifying reward functions often fail to produce simplifications in our formal sense, and in fact fail to rule out the potential for reward hacking. ",
151
+ "bbox": [
152
+ 174,
153
+ 242,
154
+ 825,
155
+ 313
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We conclude with a discussion of the implications and limitations of our work. Briefly, our work suggests that a proxy reward function must satisfy demanding standards in order for it to be safe to optimize. This in turn implies that the reward functions learned by methods such as reward modeling and inverse RL are perhaps best viewed as auxiliaries to policy learning, rather than specifications that should be optimized. This conclusion is weakened, however, by the conservativeness of our chosen definitions; future work should explore when hackable proxies can be shown to be safe in a probabilistic or approximate sense, or when subject to only limited optimization. ",
162
+ "bbox": [
163
+ 173,
164
+ 319,
165
+ 825,
166
+ 416
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 Example: Cleaning Robot ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 176,
176
+ 439,
177
+ 423,
178
+ 457
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Consider a household robot tasked with cleaning a house with three rooms: Attic , Bedroom , and Kitchen . The robot’s (deterministic) policy is a vector indicating which rooms it cleans: $\\pi = [ \\pi _ { 1 } , \\pi _ { 2 } , \\pi _ { 3 } ] \\in \\{ 0 , 1 \\} ^ { 3 }$ . The robot receives a (non-negative) reward of $r _ { 1 } , r _ { 2 } , r _ { 3 }$ for cleaning the attic, bedroom, and kitchen, respectively, and the total reward is given by $J ( \\pi ) = \\pi \\cdot r$ . For example, if $r = [ 1 , 2 , 3 ]$ and the robot cleans the attic and the kitchen, it receives a reward of $1 + 3 = 4$ . ",
185
+ "bbox": [
186
+ 173,
187
+ 472,
188
+ 826,
189
+ 541
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/2a5f0e758cee8782cce498bb9938b27dbbee3e5a66d2693a4acc5b08165ab7ec.jpg",
196
+ "image_caption": [
197
+ "Figure 1: An illustration of hackable and unhackable proxy rewards arising from overlooking rewarding features. A human wants their house cleaned. In (a), the robot draws an incorrect conclusion because of the proxy; this could lead to hacking. In (b), no such hacking can occur: the proxy is unhackable. "
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 254,
202
+ 555,
203
+ 743,
204
+ 666
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "At least two ideas come to mind when thinking about “simplifying” a reward function. The first one is overlooking rewarding features: suppose the true reward is equal for all the rooms, $r _ { \\mathrm { t r u e } } = [ 1 , 1 , 1 ]$ , but we only ask the robot to clean the attic and bedroom, $r _ { \\mathrm { p r o x y } } = [ 1 , 1 , 0 ]$ . In this case, $r _ { \\mathrm { p r o x y } }$ and $r _ { \\mathrm { t r u e } }$ are unhackable. However, if we ask the robot to only clean the attic, $r _ { \\mathrm { p r o x y } } = [ 1 , 0 , 0 ]$ , this is hackable with respect to $r _ { \\mathrm { t r u e } }$ . To see this, note that according to $r _ { \\mathrm { p r o x y } }$ cleaning the attic $\\begin{array} { r } { J _ { \\mathrm { p r o x y } } = 1 } \\end{array}$ ) is better than cleaning the bedroom and the kitchen $\\mathbf { \\nabla } _ { J _ { \\mathrm { p r o x y } } } = 0 _ { \\cdot } ^ { \\cdot }$ . Yet, $r _ { \\mathrm { t r u e } }$ says that cleaning the attic $J _ { \\mathrm { t r u e } } = 1 )$ is worse than cleaning the bedroom and the kitchen $J _ { \\mathrm { t r u e } } = 2$ ). This situation is illustrated in Figure 1. ",
211
+ "bbox": [
212
+ 173,
213
+ 743,
214
+ 825,
215
+ 854
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "The second seemingly natural way to simplify a reward function is overlooking fine details: suppose $r _ { \\mathrm { t r u e } } = [ 1 , 1 . 5 , 2 ]$ , and we ask the robot to clean all the rooms, $r _ { \\mathrm { p r o x y } } = [ 1 , 1 , 1 ]$ . For these values, the proxy and true reward are unhackable. However, with a slightly less balanced true reward function such as $r _ { \\mathrm { t r u e } } = [ 1 , 1 . 5 , 3 ]$ the proxy does lead to hacking, since the robot would falsely calculate that it’s better to clean the attic and the bedroom than the kitchen alone. ",
222
+ "bbox": [
223
+ 174,
224
+ 90,
225
+ 825,
226
+ 160
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "These two examples illustrate that while simplification of reward functions is sometimes possible, attempts at simplification can easily lead to reward hacking. Intuitively, omitting/overlooking details is okay so long as all these details are not as important together as any of the details that we do share. In general, it is not obvious what the proxy must look like to avoid reward hacking, suggesting we should take great care when using proxies. For this specific environment, a proxy and a true reward are hackable exactly when there are two sets of rooms $S _ { 1 } , S _ { 2 }$ such that the true reward gives strictly higher value to cleaning $S _ { 1 }$ than it does to cleaning $S _ { 2 }$ , and the proxy says the opposite: $J _ { 1 } ( S _ { 1 } ) > J _ { 1 } ( S _ { 2 } )$ & $J _ { 2 } ( S _ { 1 } ) < J _ { 2 } ( S _ { 2 } )$ . For a proof of this statement, see Appendix D.2.1. ",
233
+ "bbox": [
234
+ 174,
235
+ 166,
236
+ 825,
237
+ 279
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "3 Related Work ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 296,
248
+ 321,
249
+ 314
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "While we are the first to define hackability, we are far from the first to study specification hacking. The observation that optimizing proxy metrics tends to lead to perverse instantiations is often called “Goodhart’s Law”, and is attributed to Goodhart (1975). Manheim and Garrabrant (2018) provide a list of four mechanisms underlying this observation. ",
256
+ "bbox": [
257
+ 174,
258
+ 328,
259
+ 637,
260
+ 398
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Examples of such unintended behavior abound in both RL and other areas of AI; Krakovna et al. (2020) provide an extensive list. Notable recent instances include a robot positioning itself between the camera and the object it is supposed to grasp in a way that tricks the reward model (Amodei et al., 2017), the previously mentioned boat race example (Clark and Amodei, 2016), and a multitude of examples of reward model hacking in Atari (Ibarz et al., 2018). Reward hacking can occur suddenly. Ibarz et al. (2018) and Pan et al. (2022) showcase plots similar to one in Figure 2, where optimizing the proxy (either a learned reward model or a hand-specified reward function) first leads to both proxy and true rewards increasing, and then to a sudden phase transition where the true reward collapses while the proxy continues going up. ",
267
+ "bbox": [
268
+ 174,
269
+ 404,
270
+ 635,
271
+ 570
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "image",
277
+ "img_path": "images/91122212aa3faa9f5a3fd2b3142b3468096faf9fec6bf16d8fc4971e765a5ce8.jpg",
278
+ "image_caption": [
279
+ "Figure 2: An illustration of reward hacking when optimizing a hackable proxy. The true reward first increases and then drops off, while the proxy reward continues to increase. "
280
+ ],
281
+ "image_footnote": [],
282
+ "bbox": [
283
+ 656,
284
+ 334,
285
+ 818,
286
+ 431
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Note that not all of these examples correspond to optimal behavior according to the proxy. Indeed, convergence to suboptimal policies is a well-known issue in RL (Thrun and Schwartz, 1993). As a consequence, improving optimization often leads to unexpected, qualitative changes in behavior. For instance, Zhang et al. (2021) demonstrate a novel cartwheeling behavior in the widely studied Half-Cheetah environment that exceeds previous performance so greatly that it breaks the simulator. The unpredictability of RL optimization is a key motivation for our definition of hackability, since we cannot assume that agents will find an optimal policy. Neither can we rule out the possibility of sudden improvements in proxy reward and corresponding qualitative changes in behavior. Unhackability could provide confidence that reward hacking will not occur despite these challenges. ",
293
+ "bbox": [
294
+ 173,
295
+ 577,
296
+ 825,
297
+ 702
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Despite the prevalence and potential severity of reward hacking, to our knowledge Pan et al. (2022) provide the first peer-reviewed work that focuses specifically on it, although Everitt et al. (2017) tackle the closely related issue of reward corruption. The work of Pan et al. (2022) is purely empirical; they manually construct proxy rewards for several diverse environments, and evaluate whether optimizing these proxies leads to reward hacking; in 5 out of 9 of their settings, it does. In another closely related work, Zhuang and Hadfield-Menell (2020) examine what happens when the proxy reward function depends on a strict subset of features relevant for the true reward. They show that optimizing the proxy reward can lead to arbitrarily low true reward under suitable assumptions. This can be seen as a seemingly valid simplification of the true reward that turns out to be (highly) hackable. While their result only applies to environments with decreasing marginal utility and increasing opportunity cost, we demonstrate hackability is an issue in arbitrary MDPs. ",
304
+ "bbox": [
305
+ 174,
306
+ 707,
307
+ 825,
308
+ 859
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Hackability is particularly concerning given arguments that reward optimizing behavior tends to be power-seeking (Turner et al., 2021). But Leike et al. (2018) establish that any desired behavior (power-seeking or not) can in principle be specified as optimal via a reward function.3 However, unlike us, they do not consider the entire policy preference ordering. Meanwhile, Abel et al. (2021) note that Markov reward functions cannot specify arbitrary orderings over policies or trajectories, although they do not consider hackability. Previous works consider reward functions to be equivalent if they preserve the ordering over policies (Ng et al., 1999, 2000). Unhackability relaxes this, allowing equalities to be refined to inequalities, and vice versa. Unhackability provides a notion of what it means to be “aligned enough”; Brown et al. (2020b) provide an alternative. They say a policy is $\\varepsilon$ -value aligned if its value at every state is close enough to optimal (according to the true reward function). Neither notion implies the other. ",
315
+ "bbox": [
316
+ 174,
317
+ 90,
318
+ 825,
319
+ 243
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "Reward tampering (Everitt et al., 2017; Kumar et al., 2020; Uesato et al., 2020; Everitt et al., 2021) can be viewed as a special case of reward hacking, and refers to an agent corrupting the process generating reward signals, e.g. by tampering with sensors, memory registers storing the reward signal, or other hardware. Everitt et al. (2017) introduce the Corrupt Reward MDP (CRMDP), to model this possibility. A CRMDP distinguishes corrupted and uncorrupted rewards; these are exactly analogous to the proxy and true reward discussed in our work and others. Leike et al. (2018) distinguish reward tampering from reward gaming, where an agent achieves inappropriately high reward without tampering. However, in principle, a reward function could prohibit all forms of tampering if the effects of tampering are captured in the state. So this distinction is somewhat imprecise, and the CRMDP framework is general enough to cover both forms of hacking. ",
326
+ "bbox": [
327
+ 174,
328
+ 250,
329
+ 825,
330
+ 388
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Our notion of simplification bears a close resemblance to quantilization (Taylor, 2016). Quantilization returns a random policy from the top $\\mathrm { n } \\%$ best policies. This is similar to equating the values of those policies, but a simplification may also equate the values of the bottom/middle $\\mathrm { n } \\%$ , etc. Thus simplification may achieve a similar effect to quantilization without assuming that we are free to choose from among the best policies. ",
337
+ "bbox": [
338
+ 174,
339
+ 393,
340
+ 825,
341
+ 464
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "4 Preliminaries ",
348
+ "text_level": 1,
349
+ "bbox": [
350
+ 174,
351
+ 483,
352
+ 318,
353
+ 500
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "We begin with an overview of reinforcement learning (RL) to establish our notation and terminology. \nSection 4.2 introduces our novel definitions of hackability and simplification. ",
360
+ "bbox": [
361
+ 176,
362
+ 515,
363
+ 823,
364
+ 542
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "4.1 Reinforcement Learning ",
371
+ "text_level": 1,
372
+ "bbox": [
373
+ 174,
374
+ 559,
375
+ 383,
376
+ 574
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "We expect readers to be familiar with the basics of RL, which can be found in Sutton and Barto (2018). RL methods attempt to solve a sequential decision problem, typically formalised as a Markov decision process (MDP) , which is a tuple $( S , A , T , I , \\mathcal { R } , \\gamma )$ where $S$ is a set of states, $A$ is a set of actions, $T : S \\times A \\to \\Delta ( S )$ is a transition function, $I \\in \\Delta ( S )$ is an initial state distribution, $\\mathcal { R }$ is a reward function, the most general form of which is $\\mathcal { R } : S \\times A \\times S \\Delta ( \\mathbb { R } )$ , and $\\gamma \\in [ 0 , 1 ]$ is the discount factor. Here $\\Delta ( X )$ is the set of all distributions over $X$ . A stationary policy is a function $\\pi : S \\to \\Delta ( A )$ that specifies a distribution over actions in each state, and a non-stationary policy is a function $\\vec { \\pi } : ( S \\times \\bar { A } ) ^ { * } \\times S \\Delta ( A )$ , where $^ *$ is the Kleene star. A trajectory $\\tau$ is a path $s _ { 0 } , a _ { 0 } , r _ { 0 } , \\ldots$ through the MDP tnted sum of rewards ding to , and th $T , I ,$ , and ue of $\\mathcal { R }$ . The return of a trajectorypolicy is the expected return $\\begin{array} { r } { G ( \\tau ) \\dot { = } \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r _ { t } } \\end{array}$ \n$J ( \\pi ) \\doteq \\mathbb { E } _ { \\tau \\sim \\pi } [ G ( \\tau ) ]$ . We derive policy (preference) orderings from reward functions by ordering policies according to their value. In this paper, we assume that $S$ and $A$ are finite, that $| { \\cal A } | > 1$ , that all states are reachable, and that $\\mathcal { R } ( s , a , s ^ { \\prime } )$ has finite mean for all $s , a , s ^ { \\prime }$ . ",
383
+ "bbox": [
384
+ 173,
385
+ 584,
386
+ 825,
387
+ 765
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "In our work, we consider various reward functions for a given environment, which is then formally a Markov decision process without reward $M D P \\setminus \\overline { { \\mathcal { R } } } \\doteq ( S , A , T , I , \\_ , \\gamma )$ . Having fixed an $M D P \\setminus \\mathcal { R }$ , any reward function can be viewed as a function of only the current state and action by marginalizing over transitions: $\\begin{array} { r } { \\mathcal { R } ( s , a ) \\doteq \\sum _ { s ^ { \\prime } \\sim T ( s ^ { \\prime } \\mid s , a ) } \\mathcal { R } ( s , a , s ^ { \\prime } ) } \\end{array}$ , we adopt this view from here on. We define the (discounted) visit counts of a policy as $\\begin{array} { r } { \\mathcal { F } ^ { \\pi } ( s , a ) \\doteq \\mathbb { E } _ { \\tau \\sim \\pi } [ \\sum _ { i = 0 } ^ { \\infty } \\gamma ^ { i } \\mathbb { 1 } ( s _ { i } = s , a _ { i } = a ) ] } \\end{array}$ Note that $\\begin{array} { r } { J ( \\pi ) = \\sum _ { s , a } \\mathcal { R } ( s , a ) \\mathcal { F } ^ { \\pi } ( s , a ) } \\end{array}$ , which we also write as $\\langle \\mathcal { R } , \\mathcal { F } ^ { \\pi } \\rangle$ . When considering multiple reward functions in an $M D P \\setminus \\mathcal { R }$ , we define $J _ { \\mathcal { R } } ( \\pi ) \\doteq \\langle \\mathcal { R } , \\mathcal { F } ^ { \\pi } \\rangle$ and sometimes use ",
394
+ "bbox": [
395
+ 173,
396
+ 770,
397
+ 826,
398
+ 876
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "$J _ { i } ( \\pi ) \\doteq \\langle { \\mathcal { R } } _ { i } , { \\mathcal { F } } ^ { \\pi } \\rangle$ as shorthand. We also use $\\mathcal { F } : \\Pi \\mathbb { R } ^ { | S | | A | }$ to denote the embedding of policies into Euclidean space via their visit counts, and define $\\mathcal { F } ( \\dot { \\Pi } ) \\doteq \\{ \\mathcal { F } ( \\pi : \\pi \\in \\dot { \\Pi } ) \\}$ for any $\\dot { \\Pi }$ . Moreover, we also use a second way to embed policies into Euclidean space; let $\\mathcal { G } ( \\pi )$ be the $| S | | A |$ -dimensional vector where $\\mathcal { G } ( \\pi ) [ s , a ] = \\pi ( a \\mid s )$ , and let $\\mathcal { G } ( \\dot { \\Pi } ) \\doteq \\{ \\mathcal { G } ( \\pi : \\pi \\in \\dot { \\Pi } ) \\}$ . ",
405
+ "bbox": [
406
+ 173,
407
+ 89,
408
+ 826,
409
+ 154
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "4.2 Definitions and Basic Properties of Hackability and Simplification ",
416
+ "text_level": 1,
417
+ "bbox": [
418
+ 174,
419
+ 166,
420
+ 671,
421
+ 183
422
+ ],
423
+ "page_idx": 4
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "Here, we formally define hackability as a binary relation between reward functions. ",
428
+ "bbox": [
429
+ 178,
430
+ 193,
431
+ 725,
432
+ 208
433
+ ],
434
+ "page_idx": 4
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Definition 1. A pair of reward functions $\\mathcal { R } _ { 1 } , \\mathcal { R } _ { 2 }$ are hackable relative to policy set $\\Pi$ and an environment $( S , A , T , I , \\_ , \\gamma )$ if there exist $\\pi , \\pi ^ { \\prime } \\in \\Pi$ such that ",
439
+ "bbox": [
440
+ 176,
441
+ 210,
442
+ 825,
443
+ 238
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/2e3cbcc610975f3504f8f59a3392b69e997c26274b5fba90ab7251feb4fe1eb3.jpg",
450
+ "text": "$$\nJ _ { 1 } ( \\pi ) < J _ { 1 } ( \\pi ^ { \\prime } ) \\& J _ { 2 } ( \\pi ) > J _ { 2 } ( \\pi ^ { \\prime } ) ,\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 374,
454
+ 243,
455
+ 620,
456
+ 261
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "else they are unhackable. ",
463
+ "bbox": [
464
+ 174,
465
+ 265,
466
+ 346,
467
+ 280
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Note that an unhackable reward pair can have $J _ { 1 } ( \\pi ) < J _ { 1 } ( \\pi ^ { \\prime } ) \\& J _ { 2 } ( \\pi ) = J _ { 2 } ( \\pi ^ { \\prime } )$ or vice versa. Unhackability is symmetric; this can be seen be swapping $\\pi$ and $\\pi ^ { \\prime }$ in Definition 1. It is not transitive, however. In particular, the constant reward function is unhackable with respect to any other reward function, so if it were transitive, any pair of policies would be unhackable. Additionally, we say that $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are equivalent on a set of policies $\\Pi$ if $J _ { 1 }$ and $J _ { 2 }$ induce the same ordering of $\\Pi$ , and that $\\mathcal { R }$ is trivial on $\\Pi$ if $J ( \\pi ) = J ( \\pi ^ { \\prime } )$ for all $\\pi , \\pi ^ { \\prime } \\in \\Pi$ . It is clear that $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are unhackable whenever they are equivalent, or one of them is trivial, but this is relatively uninteresting. Our central question is if and when there are other unhackable reward pairs. ",
474
+ "bbox": [
475
+ 173,
476
+ 287,
477
+ 825,
478
+ 401
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "The symmetric nature of this definition is counter-intuitive, given that our motivation distinguishes the proxy and true reward functions. We might break this symmetry by only considering policy sequences that monotonically increase the proxy, however, this is equivalent to our original definition of hackability: think of $\\mathcal { R } _ { 1 }$ as the proxy, and consider the sequence $\\pi , \\pi ^ { \\prime }$ . We could also restrict ourselves to policies that are approximately optimal according to the proxy; Corollary 2 shows that Theorem 1 applies regardless of this restriction. Finally, we define simplification as an asymmetric special-case of unhackability; Theorem 3 shows this is in fact a more demanding condition. ",
485
+ "bbox": [
486
+ 173,
487
+ 406,
488
+ 825,
489
+ 505
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "Definition 2. $\\mathcal { R } _ { 2 }$ is a simplification of $\\mathcal { R } _ { 1 }$ relative to policy set $\\Pi$ if for all $\\pi , \\pi ^ { \\prime } \\in \\Pi$ , ",
496
+ "bbox": [
497
+ 184,
498
+ 507,
499
+ 743,
500
+ 522
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "equation",
506
+ "img_path": "images/8932e3cee9b07e72ecd6885bb8c5b772780c9d31d4f837c6c33ea7d39d593422.jpg",
507
+ "text": "$$\nJ _ { 1 } ( \\pi ) < J _ { 1 } ( \\pi ^ { \\prime } ) \\implies J _ { 2 } ( \\pi ) \\le J _ { 2 } ( \\pi ^ { \\prime } ) \\ \\& \\ J _ { 1 } ( \\pi ) = J _ { 1 } ( \\pi ^ { \\prime } ) \\implies J _ { 2 } ( \\pi ) = J _ { 2 } ( \\pi ^ { \\prime } )\n$$",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 228,
511
+ 526,
512
+ 767,
513
+ 542
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "and there exist $\\pi , \\pi ^ { \\prime } \\in \\Pi$ such that $J _ { 2 } ( \\pi ) = J _ { 2 } ( \\pi ^ { \\prime } )$ but $J _ { 1 } ( \\pi ) \\ne J _ { 1 } ( \\pi ^ { \\prime } )$ . Moreover, if $\\mathcal { R } _ { 2 }$ is trivial then we say that this is a trivial simplification. ",
520
+ "bbox": [
521
+ 174,
522
+ 546,
523
+ 825,
524
+ 577
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Intuitively, while unhackability allows replacing inequality with equality – or vice versa – a simplification can only replace inequalities with equality, collapsing distinctions between policies. When $\\mathcal { R } _ { 1 }$ is a simplification of $\\mathcal { R } _ { 2 }$ , we also say that $\\mathcal { R } _ { 2 }$ is a refinement of $\\mathcal { R } _ { 1 }$ . We denote this relationship as $\\mathcal { R } _ { 1 } \\leq \\mathcal { R } _ { 2 }$ or $\\mathcal { R } _ { 2 } \\ \\trianglerighteq { \\mathcal { R } _ { 1 } }$ ; the narrowing of the triangle at $R _ { 1 }$ represents the collapsing of distinctions between policies. If $\\mathcal { R } _ { 1 } \\overset { \\vartriangle } { \\ v u } \\overset { \\vartriangle } { \\ v u } \\mathcal { R } _ { 2 } \\overset { \\vartriangle } { \\ v u } \\geq \\mathcal { R } _ { 3 }$ , then we have that $\\mathcal { R } _ { 1 } , \\mathcal { R } _ { 3 }$ are unhackable,4 but if $\\mathcal { R } _ { 1 } \\trianglerighteq { 2 } \\mathcal { R } _ { 2 } \\triangleleft \\mathscr { R } _ { 3 }$ , then this is not necessarily the case.5 ",
531
+ "bbox": [
532
+ 173,
533
+ 585,
534
+ 826,
535
+ 670
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Note that these definitions are given relative to some $M D P \\setminus \\mathcal { R }$ , although we often assume the environment in question is clear from context and suppress this dependence. The dependence on the policy set $\\Pi$ , on the other hand, plays a critical role in our results. ",
542
+ "bbox": [
543
+ 173,
544
+ 675,
545
+ 825,
546
+ 718
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "5 Results ",
553
+ "text_level": 1,
554
+ "bbox": [
555
+ 173,
556
+ 736,
557
+ 266,
558
+ 753
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Our results are aimed at understanding when it is possible to have an unhackable proxy reward function. We first establish (in Section 5.1) that (non-trivial) unhackability is impossible when considering the set of all policies. We might imagine that restricting ourselves to a set of sufficiently good (according to the proxy) policies would remove this limitation, but we show that this is not the case. We then analyze finite policy sets (with deterministic policies as a special case), and establish necessary and sufficient conditions for unhackability and simplification. Finally, we demonstrate via example that non-trivial simplifications are also possible for some infinite policy sets in Section 5.3. ",
565
+ "bbox": [
566
+ 173,
567
+ 767,
568
+ 826,
569
+ 866
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "5.1 Non-trivial Unhackability Requires Restricting the Policy Set ",
576
+ "text_level": 1,
577
+ "bbox": [
578
+ 173,
579
+ 90,
580
+ 637,
581
+ 106
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "We start with a motivating example. Consider the setting shown in Figure 3, where the agent can move left/stay-still/right and gets a reward depending on its state. Let the Gaussian (blue) be the true reward $\\mathcal { R } _ { 1 }$ and the step function (orange) be the proxy $\\mathcal { R } _ { 2 }$ . These are hackable. To see this, consider being at state $B$ . Let $\\pi ( B )$ travel to $A$ or $C$ with 50/50 chance, and compare with the policy $\\pi ^ { \\prime }$ that stays at $B$ . Then we have that $J _ { 1 } ( \\pi ) > J _ { 1 } ( \\overline { { \\pi } } ^ { \\prime } )$ and $J _ { 2 } ( \\pi ) \\overline { { { < } } } \\bar { J _ { 2 } } ( \\pi ^ { \\prime } )$ . ",
588
+ "bbox": [
589
+ 174,
590
+ 116,
591
+ 642,
592
+ 215
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Generally, we might hope that some environments allow for unhackable reward pairs that are not equivalent or trivial. Here we show that this is not the case, unless we impose restrictions on the set of policies we consider. ",
599
+ "bbox": [
600
+ 173,
601
+ 219,
602
+ 642,
603
+ 275
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "image",
609
+ "img_path": "images/5234b4a4432b360ef8b7946b12af0f0e0429536d1319dd4425ab384954c852fe.jpg",
610
+ "image_caption": [
611
+ "Figure 3: Two reward functions. While the step function may seem like a simplification of the Gaussian, these reward functions are hackable. "
612
+ ],
613
+ "image_footnote": [],
614
+ "bbox": [
615
+ 661,
616
+ 93,
617
+ 815,
618
+ 181
619
+ ],
620
+ "page_idx": 5
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "First note that if we consider non-stationary policies, this result is relatively straightforward. Suppose $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are unhackable and non-trivial on the set $\\Pi ^ { N }$ of all non-stationary policies, and let $\\pi ^ { \\star }$ be a policy that maximises $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ ) reward, and $\\pi _ { \\perp }$ be a policy that minimises $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ ) reward. Then the policy $\\pi _ { \\lambda }$ that plays $\\pi ^ { \\star }$ with probability $\\lambda$ and $\\pi _ { \\perp }$ with probability $1 - \\lambda$ is a policy in $\\Pi ^ { N }$ . Moreover, for any $\\pi$ there are two unique $\\alpha , \\beta \\in [ 0 , 1 ]$ such that $J _ { 1 } ( \\pi ) = J _ { 1 } ( \\pi _ { \\alpha } )$ and $J _ { 2 } ( \\pi ) = J _ { 2 } ( \\pi _ { \\beta } )$ . Now, if $\\alpha \\neq \\beta$ , then either $J _ { 1 } ( \\pi ) < J _ { 1 } ( \\pi _ { \\delta } )$ and ${ \\bf \\dot { \\cal J } } _ { 2 } ( \\pi ) > { \\cal J } _ { 2 } ( \\pi _ { \\delta } )$ , or vice versa, for $\\delta = ( \\alpha + \\beta ) / 2$ . If $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are unhackable then this cannot happen, so it must be that $\\alpha = \\beta$ This, in turn, implies that $J _ { 1 } ( \\pi ) = J _ { 1 } ( \\pi ^ { \\prime } )$ iff $J _ { 2 } ( \\pi ) = J _ { 2 } ( \\pi ^ { \\prime } )$ , and so $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are equivalent. This means that no interesting unhackability can occur on the set of all non-stationary policies. ",
625
+ "bbox": [
626
+ 173,
627
+ 281,
628
+ 825,
629
+ 406
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "The same argument cannot be applied to the set of stationary policies, because $\\pi _ { \\lambda }$ is typically not stationary, and mixing stationary policies’ action probabilities does not have the same effect. For instance, consider a hallway environment where an agent can either move left or right. Mixing the “always go left” and “always go right” policies corresponds to picking a direction and sticking with it, whereas mixing their action probabilities corresponds to choosing to go left or right independently at every time-step. However, we will see that there still cannot be any interesting unhackability on this policy set, and, more generally, that there cannot be any interesting unhackability on any set of policies which contains an open subset. Formally, a set of (stationary) policies $\\dot { \\Pi }$ is open if $\\mathcal { G } ( \\dot { \\Pi } )$ is open in the smallest affine space that contains $\\mathcal { G } ( \\Pi )$ , for the set of all stationary policies $\\Pi$ . We will use the following lemma: ",
636
+ "bbox": [
637
+ 173,
638
+ 412,
639
+ 825,
640
+ 553
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Lemma 1. In any $M D P \\setminus \\mathcal { R } ,$ if Π˙ is an open set of policies, then $\\mathcal { F } ( \\dot { \\Pi } )$ is open in $\\mathbb { R } ^ { | S | ( | A | - 1 ) }$ , and $\\mathcal { F }$ is a homeomorphism between $\\mathcal { G } ( \\dot { \\Pi } )$ and $\\mathcal { F } ( \\dot { \\Pi } )$ . ",
647
+ "bbox": [
648
+ 173,
649
+ 558,
650
+ 821,
651
+ 590
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "Using this lemma, we can show that interesting unhackability is impossible on any set of stationary policies $\\hat { \\Pi }$ which contains an open subset $\\dot { \\Pi }$ . Roughly, if $\\mathcal { F } ( \\dot { \\Pi } )$ is open, and $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are non-trivial and unhackable on $\\dot { \\Pi }$ , then the fact that $J _ { 1 }$ and $J _ { 2 }$ have a linear structure on $\\mathcal { F } ( \\hat { \\Pi } )$ implies that $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ must be equivalent on $\\dot { \\Pi }$ . From this, and the fact that $\\mathcal { F } ( \\dot { \\Pi } )$ is open, it follows that $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are equivalent everywhere. ",
658
+ "bbox": [
659
+ 174,
660
+ 601,
661
+ 825,
662
+ 678
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "Theorem 1. In any $M D P \\setminus { \\mathcal { R } } ,$ if Πˆ contains an open set, then any pair of reward functions that are unhackable and non-trivial on $\\hat { \\Pi }$ are equivalent on $\\hat { \\Pi }$ . ",
669
+ "bbox": [
670
+ 173,
671
+ 683,
672
+ 820,
673
+ 714
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "Since simplification is a special case of unhackability, this also implies that non-trivial simplification is impossible for any such policy set. Also note that Theorem 1 makes no assumptions about the transition function, etc. From this result, we can show that interesting unhackability always is impossible on the set $\\Pi$ of all (stationary) policies. In particular, note that the set $\\tilde { \\Pi }$ of all policies that always take each action with positive probability is an open set, and that $\\tilde { \\Pi } \\subset \\Pi$ . ",
680
+ "bbox": [
681
+ 174,
682
+ 724,
683
+ 825,
684
+ 799
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "Corollary 1. In any $M D P \\backslash \\mathcal { R } ,$ , any pair of reward functions that are unhackable and non-trivial on the set of all (stationary) policies Π are equivalent on Π. ",
691
+ "bbox": [
692
+ 173,
693
+ 803,
694
+ 823,
695
+ 832
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Theorem 1 can also be applied to many other policy sets. For example, we might not care about the hackability resulting from policies with low proxy reward, as we would not expect a sufficiently good learning algorithm to learn such policies. This leads us to consider the following definition: ",
702
+ "bbox": [
703
+ 174,
704
+ 843,
705
+ 823,
706
+ 885
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Definition 3. A (stationary) policy $\\pi$ is $\\varepsilon$ -suboptimal if $J ( \\pi ) \\geq J ( \\pi ^ { \\star } ) - \\varepsilon$ ",
713
+ "bbox": [
714
+ 173,
715
+ 90,
716
+ 668,
717
+ 107
718
+ ],
719
+ "page_idx": 6
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "Alternatively, if the learning algorithm always uses a policy that is “nearly” deterministic (but with some probability of exploration), then we might not care about hackability resulting from very stochastic policies, leading us to consider the following definition: ",
724
+ "bbox": [
725
+ 174,
726
+ 116,
727
+ 823,
728
+ 157
729
+ ],
730
+ "page_idx": 6
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "Definition 4. A (stationary) policy $\\pi$ is $\\delta$ -deterministic if $\\forall s \\in S \\exists a \\in A : \\mathbb { P } ( \\pi ( s ) = a ) \\geq \\delta .$ ",
735
+ "bbox": [
736
+ 171,
737
+ 160,
738
+ 787,
739
+ 176
740
+ ],
741
+ "page_idx": 6
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Unfortunately, both of these sets contain open subsets, which means they are subject to Theorem 1. ",
746
+ "bbox": [
747
+ 171,
748
+ 185,
749
+ 818,
750
+ 200
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Corollary 2. In any $M D P \\setminus \\mathcal { R } ,$ any pair of reward functions that are unhackable and non-trivial on the set of all $\\varepsilon$ -suboptimal policies $\\mathit { \\Omega } ^ { \\prime } \\varepsilon > 0 \\mathit { \\Omega } .$ ) $\\Pi ^ { \\varepsilon }$ are equivalent on $\\Pi ^ { \\varepsilon }$ , and any pair of reward functions that are unhackable and non-trivial on the set of all $\\delta$ -deterministic policies $\\delta < 1$ ) $\\Pi ^ { \\delta }$ are equivalent on Πδ. ",
757
+ "bbox": [
758
+ 173,
759
+ 203,
760
+ 825,
761
+ 258
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Intuitively, Theorem 1 can be applied to any policy set with “volume” in policy space. ",
768
+ "bbox": [
769
+ 174,
770
+ 268,
771
+ 735,
772
+ 284
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "5.2 Finite Policy Sets ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 174,
782
+ 299,
783
+ 333,
784
+ 314
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Having established that interesting unhackability is impossible relative to the set of all policies, we now turn our attention to the case of finite policy sets. Note that this includes the set of all deterministic policies, since we restrict our analysis to finite MDPs. Surprisingly, here we find that non-trivial non-equivalent unhackable reward pairs always exist. ",
791
+ "bbox": [
792
+ 173,
793
+ 324,
794
+ 826,
795
+ 381
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Theorem 2. For any $M D P \\setminus \\mathcal R$ , any finite set of policies Πˆ containing at least two $\\pi , \\pi ^ { \\prime }$ such that $\\mathcal { F } ( \\pi ) \\neq \\mathcal { F } ( \\pi ^ { \\prime } )$ , and any reward function $\\mathcal { R } _ { 1 }$ , there is a non-trivial reward function $\\mathcal { R } _ { 2 }$ such that $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ are unhackable but not equivalent. ",
802
+ "bbox": [
803
+ 174,
804
+ 385,
805
+ 825,
806
+ 428
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "This proof proceeds by finding a path from $\\mathcal { R } _ { 1 }$ to another reward function $\\mathcal { R } _ { 3 }$ that is hackable with respect to $\\mathcal { R } _ { 1 }$ . Along the way to reversing one of $\\mathcal { R } _ { 1 }$ ’s inequalities, we must encounter a reward function $\\mathcal { R } _ { 2 }$ that instead replaces it with equality. In the case that $\\mathrm { d i m } ( \\hat { \\Pi } ) = 3$ , we can visualize moving along this path as rotating the contour lines of a reward function defined on the space containing the policies’ discounted state-action occupancies, see Figure 4. This path can be constructed so as to avoid any reward functions that produce trivial policy orderings, thus guaranteeing $\\mathcal { R } _ { 2 }$ is non-trivial. For a simplification to exist, we require some further conditions, as established by the following theorem: ",
813
+ "bbox": [
814
+ 174,
815
+ 438,
816
+ 504,
817
+ 646
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Theorem 3. Let $\\hat { \\Pi }$ be a finite set of policies, and $\\mathcal { R } _ { 1 }$ a reward function. The following procedure determines if there exists a non-trivial simplification of $\\mathcal { R } _ { 1 }$ in a given $M D P \\setminus \\mathcal R$ : ",
824
+ "bbox": [
825
+ 173,
826
+ 650,
827
+ 504,
828
+ 707
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "image",
834
+ "img_path": "images/c97da9abdc8efafcb631520baa4346efc32862725dd3fc4b70c12bbe8730b6ae.jpg",
835
+ "image_caption": [
836
+ "Figure 4: An illustration of the state-action ocRotating the reward to make V(π3) equal V(π4) first sets V(π1) equal V(π2) cupancy space with a reward function defined over it. Points correspond to policies’ stateaction occupancies. Shading intensity indicates expected reward. Rotating the reward function to make $J ( \\pi _ { 3 } ) > J ( \\pi _ { 4 } )$ passes through a reward function that sets $\\dot { J ( \\pi _ { 1 } ) } = J ( \\pi _ { 2 } ) \\dot { }$ . Solid black lines are contour lines of the original reward function, dotted blue lines are contour lines of the rotated reward function. "
837
+ ],
838
+ "image_footnote": [],
839
+ "bbox": [
840
+ 517,
841
+ 453,
842
+ 826,
843
+ 539
844
+ ],
845
+ "page_idx": 6
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "1. Let $E _ { 1 } \\ldots E _ { m }$ be the partition of $\\hat { \\Pi }$ where $\\pi , \\pi ^ { \\prime }$ belong to the same set iff $J ( \\pi ) = J ( \\pi ^ { \\prime } )$ . ",
850
+ "bbox": [
851
+ 207,
852
+ 717,
853
+ 810,
854
+ 734
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "2. For each such set $E _ { i }$ , select a policy $\\pi _ { i } \\in E _ { i }$ and let $Z _ { i }$ be the set of vectors that is obtained by subtracting $\\mathcal { F } ( \\pi _ { i } )$ from each element of $\\mathcal { F } ( E _ { i } )$ . ",
861
+ "bbox": [
862
+ 209,
863
+ 741,
864
+ 823,
865
+ 771
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Then there is a non-trivial simplification of $\\mathcal { R }$ iff $\\dim ( Z _ { 1 } \\cup \\dotsb \\cup Z _ { m } ) \\leq \\dim ( { \\mathcal { F } } ( { \\hat { \\Pi } } ) ) - 2$ , where $\\mathrm { d i m } ( S )$ is the number of linearly independent vectors in $S$ . ",
872
+ "bbox": [
873
+ 173,
874
+ 781,
875
+ 821,
876
+ 811
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "The proof proceeds similarly to Theorem 2. However, in Theorem 2 it was sufficient to show that there are no trivial reward functions along the path from $\\mathcal { R } _ { 1 }$ to $\\mathcal { R } _ { 3 }$ , whereas here we additionally need that if $J ( \\pi ) = J ( \\pi ^ { \\prime } )$ then $J ^ { \\prime } ( \\pi ) = \\bar { J } ^ { \\prime } ( \\pi ^ { \\prime } )$ for all functions $\\mathcal { R } _ { 2 }$ on the path — this is what the extra conditions ensure. ",
883
+ "bbox": [
884
+ 174,
885
+ 820,
886
+ 825,
887
+ 877
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Theorem 3 is opaque, but intuitively, the cases where $\\mathcal { R } _ { 1 }$ cannot be simplified are those where $\\mathcal { R } _ { 1 }$ imposes many different equality constraints that are difficult to satisfy simultaneously. We can think of $\\dim ( { \\mathcal { F } } ( \\Pi ) )$ as measuring how diverse the behaviours of policies in policy set $\\Pi$ are. Having a less diverse policy set means that a given policy ordering imposes fewer constraints on the reward function, creating more potential for simplification. The technical conditions of this proof determine when the diversity of $\\Pi$ is or is not sufficient to prohibit simplification, as measured by $\\dim ( Z _ { 1 } \\cup \\dots \\cup Z _ { m } )$ . ",
894
+ "bbox": [
895
+ 174,
896
+ 882,
897
+ 821,
898
+ 911
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "",
905
+ "bbox": [
906
+ 174,
907
+ 90,
908
+ 825,
909
+ 147
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "Projecting $E _ { i }$ to $Z _ { i }$ simply moves these spaces to the origin, so that we can compare the directions in which they vary (i.e. their span). By assumption, $E _ { i } \\cap E _ { j } = \\{ \\}$ , but $\\operatorname { s p a n } ( Z _ { i } ) \\cap \\operatorname { s p a n } ( Z _ { j } )$ will include the origin, and may also contain linear subspaces of dimension greater than 0. This is the case exactly when there are a pair of policies in $E _ { i }$ and a pair of policies in $E _ { j }$ that differ by the same visit counts, for example, when the environment contains an obstacle that could be circumnavigated in several different ways (with an impact on visit counts, but no impact on reward), and the policies in $E _ { i }$ and $E _ { j }$ both need to circumnavigate it before doing something else. Roughly speaking, $\\mathrm { d i m } ( Z _ { 1 } \\cup \\dots \\cup Z _ { m } )$ is large when either (i) we have very large and diverse sets of policies in $\\hat { \\Pi }$ that get the same reward according to $\\mathcal { R }$ , or (ii) we have a large number of different sets of policies that get the same reward according to $\\mathcal { R }$ , and where there are different kinds of diversity in the behaviour of the policies in each set. There are also intuitive special cases of Theorem 3. For example, as noted before, if $E _ { i }$ is a singleton then $Z _ { i }$ has no impact on $\\dim ( Z _ { 1 } \\cup \\dotsb \\cup Z _ { m } )$ . This implies the following corollary: ",
916
+ "bbox": [
917
+ 173,
918
+ 154,
919
+ 825,
920
+ 321
921
+ ],
922
+ "page_idx": 7
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "Corollary 3. For any finite set of policies $\\hat { \\Pi } ,$ , any environment, and any reward function $\\mathcal { R } , i f | \\hat { \\Pi } | \\geq 2$ and $J ( \\pi ) \\ne J ( \\pi ^ { \\prime } )$ for all $\\pi , \\pi ^ { \\prime } \\in \\hat { \\Pi }$ then there is a non-trivial simplification of $\\mathcal { R }$ . ",
927
+ "bbox": [
928
+ 174,
929
+ 333,
930
+ 821,
931
+ 366
932
+ ],
933
+ "page_idx": 7
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "A natural question is whether any reward function is guaranteed to have a non-trivial simplification on the set of all deterministic policies. As it turns out, this is not the case. For concreteness, and to build intuition for this result, we examine the set of deterministic policies in a simple $M D P \\setminus \\mathcal R$ with $S = \\{ 0 , 1 \\} , A = \\{ 0 , 1 \\} , T ( s , a ) = a , I = \\{ 0 : 0 . 5 , 1 : 0 . 5 \\} , \\gamma = 0 . 5 .$ Denote $\\pi _ { i j }$ the policy that takes action $i$ from state 0 and action $j$ from state 1. There are exactly four deterministic policies. We find that of the $4 ! = 2 4$ possible policy orderings, 12 are realizable via some reward function. In each of those 12 orderings, exactly two policies (of the six available pairs of policies in the ordering) can be set to equal value without resulting in the trivial reward function (which pair can be equated depends on the ordering in consideration). Attempting to set three policies equal always results in the trivial reward simplification. ",
938
+ "bbox": [
939
+ 173,
940
+ 382,
941
+ 825,
942
+ 521
943
+ ],
944
+ "page_idx": 7
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "For example, given the ordering $\\pi _ { 0 0 } \\leq \\pi _ { 0 1 } \\leq \\pi _ { 1 1 } \\leq \\pi _ { 1 0 }$ , the simplification $\\pi _ { 0 0 } = \\pi _ { 0 1 } < \\pi _ { 1 1 } < \\pi _ { 1 0 }$ is represented by $R = \\left[ { \\begin{array} { l l } { 0 \\ 3 } \\\\ { 2 \\ 1 } \\end{array} } \\right]$ , where $\\begin{array} { r } { \\mathcal { R } ( s , a ) = R [ s , a ] } \\end{array}$ : for example, here taking action 1 from state 0 gives reward $\\mathcal { R } ( 0 , 1 ) = \\mathbf { \\bar { 3 } }$ . But there is no reward function representing a non-trivial simplification of this ordering with $\\pi _ { 0 1 } = \\pi _ { 1 1 }$ . We develop and release a software suite to compute these results. Given an environment and a set of policies, it can calculate all policy orderings represented by some reward function. Also, for a given policy ordering, it can calculate all nontrivial simplifications and reward functions that represent them. For a link to the repository, as well as a full exploration of these policies, orderings, and simplifications, see Appendix D.3. ",
949
+ "bbox": [
950
+ 173,
951
+ 527,
952
+ 826,
953
+ 638
954
+ ],
955
+ "page_idx": 7
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "5.3 Unhackability in Infinite Policy Sets ",
960
+ "text_level": 1,
961
+ "bbox": [
962
+ 176,
963
+ 667,
964
+ 462,
965
+ 683
966
+ ],
967
+ "page_idx": 7
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "The results in Section 5.1 do not characterize unhackability for infinite policy sets that do not contain open sets. Here, we provide two examples of such policy sets; one of them admits unhackable reward pairs and the other does not. Consider policies $A , B , C$ , and reward functions $\\mathcal { R } _ { 1 }$ with $J _ { 1 } ( C ) \\overset { = } { < } J _ { 1 } ( B ) < J _ { 1 } ( A )$ and $\\mathcal { R } _ { 2 }$ with $J _ { 2 } ( C ) = J _ { 2 } ( B ) < J _ { 2 } ( A )$ . Policy sets $\\Pi _ { a } = \\{ A \\} \\cup \\{ \\lambda B +$ $( 1 - \\lambda ) C : \\lambda \\in [ 0 , 1 ] \\}$ and $\\Pi _ { b } = \\{ A \\} \\cup \\{ \\lambda B + ( 1 - \\lambda ) C : \\lambda \\in [ 0 , 1 ] \\}$ are depicted in Figure 5; the vertical axis represents policies’ values according to $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ . For $\\Pi _ { a }$ , $\\mathcal { R } _ { 2 }$ is a simplification of $\\mathcal { R } _ { 1 }$ , but for $\\Pi _ { b }$ , it is not, since $J _ { 1 } ( X ) < J _ { 1 } ( Y )$ and $J _ { 2 } ( X ) > J _ { 2 } ( Y )$ . ",
972
+ "bbox": [
973
+ 173,
974
+ 699,
975
+ 825,
976
+ 797
977
+ ],
978
+ "page_idx": 7
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "6 Discussion ",
983
+ "text_level": 1,
984
+ "bbox": [
985
+ 173,
986
+ 829,
987
+ 292,
988
+ 847
989
+ ],
990
+ "page_idx": 7
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "We reflect on our results and identify limitations in Section 6.1. In Section 6.2, we discuss how our work can inform discussions about the appropriateness, potential risks, and limitations of using of reward functions as specifications of desired behavior. ",
995
+ "bbox": [
996
+ 174,
997
+ 869,
998
+ 825,
999
+ 911
1000
+ ],
1001
+ "page_idx": 7
1002
+ },
1003
+ {
1004
+ "type": "image",
1005
+ "img_path": "images/f62db4fe01a9fa8f5dd35fad9cc6dec7fa797c354b23c721b7f0c7373245af2a.jpg",
1006
+ "image_caption": [
1007
+ "Figure 5: Infinite policy sets that do not contain open sets sometimes allow simplification (a), but not always (b). Points A, B, C represent deterministic policies, while the bold lines between them represent stochastic policies. The y-axis gives the values of the policies according to reward functions $\\mathcal { R } _ { 1 }$ and $\\mathcal { R } _ { 2 }$ . We attempt to simplify $\\mathcal { R } _ { 1 }$ by rotating the reward function such that $J _ { 2 } ( B ) = J _ { 2 } ( C )$ ; in the figure, we instead (equivalently) rotate the triangle along the AB axis, leading to the red triangle. In (a), $\\mathcal { R } _ { 2 }$ simplifies $\\mathcal { R } _ { 1 }$ , setting all policies along the BC segment equal in value (but still lower than A). In (b), $\\mathcal { R } _ { 2 }$ swaps the relative value of policies $\\mathbf { X }$ and $\\mathbf { Y }$ $\\begin{array} { r } { J _ { 1 } ( X ) < J _ { 1 } ( Y ) = J _ { 2 } ( Y ) < J _ { 2 } ( X ) ) } \\end{array}$ and so does not simplify $\\mathcal { R } _ { 1 }$ . "
1008
+ ],
1009
+ "image_footnote": [],
1010
+ "bbox": [
1011
+ 271,
1012
+ 85,
1013
+ 727,
1014
+ 273
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "6.1 Limitations ",
1021
+ "text_level": 1,
1022
+ "bbox": [
1023
+ 173,
1024
+ 424,
1025
+ 294,
1026
+ 438
1027
+ ],
1028
+ "page_idx": 8
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Our work has a number of limitations. We have only considered finite MDPs and Markov reward functions, leaving more general environments for future work. While we characterized hackability and simplification for finite policy sets, the conditions for simplification are somewhat opaque, and our characterization of infinite policy sets remains incomplete. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 450,
1036
+ 825,
1037
+ 506
1038
+ ],
1039
+ "page_idx": 8
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "As previously discussed, our definition of hackability is strict, arguably too strict. Nonetheless, we believe that understanding the consequences of this strict definition is an important starting point for further theoretical work in this area. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 512,
1047
+ 825,
1048
+ 554
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "The main issue with the strictness of our definition has to do with the symmetric nature of hackability. The existence of complex behaviors that yield low proxy reward and high true reward is much less concerning than the reverse, as these behaviors are unlikely to be discovered while optimizing the proxy. For example, it is very unlikely that our agent would solve climate change in the course of learning how to wash dishes. Note that the existence of simple behaviors with low proxy reward and high true reward is concerning; these could arise early in training, leading us to trust the proxy, only to later see the true reward decrease as the proxy is further optimized. To account for this issue, future work should explore more realistic assumptions about the probability of encountering a given sequence of policies when optimizing the proxy, and measure hackability in proportion to this probability. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 560,
1058
+ 825,
1059
+ 699
1060
+ ],
1061
+ "page_idx": 8
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "We could allow for approximate unhackability by only considering pairs of policies ranked differently by the true and proxy reward functions as evidence of hacking iff their value according to the true reward function differs by more than some $\\varepsilon$ . Probabilistic unhackability could be defined by looking at the number of misordered policies; this would seem to require making assumptions about the probability of encountering a given policy when optimizing the proxy. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 705,
1069
+ 825,
1070
+ 775
1071
+ ],
1072
+ "page_idx": 8
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Finally, while unhackability is a guarantee that no hacking will occur, hackability is far from a guarantee of hacking. Extensive empirical work is necessary to better understand the factors that influence the occurrence and severity of reward hacking in practice. ",
1077
+ "bbox": [
1078
+ 176,
1079
+ 780,
1080
+ 823,
1081
+ 823
1082
+ ],
1083
+ "page_idx": 8
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "6.2 Implications ",
1088
+ "text_level": 1,
1089
+ "bbox": [
1090
+ 174,
1091
+ 842,
1092
+ 299,
1093
+ 857
1094
+ ],
1095
+ "page_idx": 8
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "How should we specify our preferences for AI systems’ behavior? And how detailed a specification is required to achieve a good outcome? In reinforcement learning, the goal of maximizing (some) reward function is often taken for granted, but a number of authors have expressed reservations about this approach (Gabriel, 2020; Dobbe et al., 2021; Hadfield-Menell et al., 2016b, 2017; Bostrom, 2014). Our work has several implications for this discussion, although we caution against drawing any strong conclusions due to the limitations mentioned in Section 6.1. ",
1100
+ "bbox": [
1101
+ 176,
1102
+ 869,
1103
+ 825,
1104
+ 911
1105
+ ],
1106
+ "page_idx": 8
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "",
1111
+ "bbox": [
1112
+ 174,
1113
+ 90,
1114
+ 823,
1115
+ 132
1116
+ ],
1117
+ "page_idx": 9
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "One source of confusion and disagreement is the role of the reward function; it is variously considered as a means of specifying a task (Leike et al., 2018) or encoding broad human values (Dewey, 2011); such distinctions are discussed by Christiano (2019) and Gabriel (2020). We might hope to use Markov reward functions to specify narrow tasks without risking behavior that goes against our broad values. However, if we consider the “narrow task” reward function as a proxy for the true “broad values” reward function, our results indicate that this is not possible: these two reward functions will invariably be hackable. Such reasoning suggests that reward functions must instead encode broad human values, or risk being hacked. This seems challenging, perhaps intractably so, indicating that alternatives to reward optimization may be more promising. Potential alternatives include imitation learning (Ross et al., 2011), constrained RL (Szepesvári, 2020), quantilizers (Taylor, 2016), and incentive management (Everitt et al., 2019). ",
1122
+ "bbox": [
1123
+ 174,
1124
+ 140,
1125
+ 825,
1126
+ 291
1127
+ ],
1128
+ "page_idx": 9
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Scholars have also criticized the assumption that human values can be encoded as rewards (Dobbe et al., 2021), and challenged the use of metrics more broadly (O’Neil, 2016; Thomas and Uminsky, 2022), citing Goodhart’s Law (Manheim and Garrabrant, 2018; Goodhart, 1975). A concern more specific to the optimization of reward functions is power-seeking (Turner et al., 2021; Bostrom, 2012; Omohundro, 2008). Turner et al. (2021) prove that optimal policies tend to seek power in most MDPs and for most reward functions. Such behavior could lead to human disempowerment; for instance, an AI system might disable its off-switch (Hadfield-Menell et al., 2016a). Bostrom (2014) and others have argued that power-seeking makes even slight misspecification of rewards potentially catastrophic, although this has yet to be rigorously established. ",
1133
+ "bbox": [
1134
+ 174,
1135
+ 297,
1136
+ 825,
1137
+ 422
1138
+ ],
1139
+ "page_idx": 9
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Despite such concerns, approaches to specification based on learning reward functions remain popular (Fu et al., 2017; Stiennon et al., 2020; Nakano et al., 2021). So far, reward hacking has usually been avoidable in practice, although some care must be taken (Stiennon et al., 2020). Proponents of such approaches have emphasized the importance of learning a reward model in order to exceed human performance and generalize to new settings (Brown et al., 2020a; Leike et al., 2018). But our work indicates that such learned rewards are almost certainly hackable, and so cannot be safely optimized. Thus we recommend viewing such approaches as a means of learning a policy in a safe and controlled setting, which should then be validated before being deployed. ",
1144
+ "bbox": [
1145
+ 173,
1146
+ 429,
1147
+ 825,
1148
+ 540
1149
+ ],
1150
+ "page_idx": 9
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "7 Conclusion ",
1155
+ "text_level": 1,
1156
+ "bbox": [
1157
+ 174,
1158
+ 560,
1159
+ 299,
1160
+ 577
1161
+ ],
1162
+ "page_idx": 9
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Our work begins the formal study of reward hacking in reinforcement learning. We formally define hackability and simplification of reward functions, and show conditions for the (non-)existence of non-trivial examples of each. We find that unhackability is quite a strict condition, as the set of all policies never contains non-trivial unhackable pairs of reward functions. Thus in practice, reward hacking must be prevented by limiting the set of possible policies, or controlling (e.g. limiting) optimization. Alternatively, we could pursue approaches not based on optimizing reward functions. ",
1167
+ "bbox": [
1168
+ 174,
1169
+ 593,
1170
+ 825,
1171
+ 676
1172
+ ],
1173
+ "page_idx": 9
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "References ",
1178
+ "text_level": 1,
1179
+ "bbox": [
1180
+ 174,
1181
+ 696,
1182
+ 266,
1183
+ 713
1184
+ ],
1185
+ "page_idx": 9
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Abel, D., Dabney, W., Harutyunyan, A., Ho, M. K., Littman, M., Precup, D., and Singh, S. (2021). On the Expressivity of Markov Reward. Advances in Neural Information Processing Systems, 34. \nAmodei, D., Christiano, P., and Ray, A. (2017). Learning from Human Preferences. OpenAI https: //openai.com/blog/deep-reinforcement-learning-from-human-preferences/. \nBird, J. and Layzell, P. (2002). The evolved radio and its implications for modelling the evolution of novel sensors. In Proceedings of the 2002 Congress on Evolutionary Computation. CEC’02 (Cat. No. 02TH8600), volume 2, pages 1836–1841. IEEE. \nBostrom, N. (2012). The superintelligent will: Motivation and instrumental rationality in advanced artificial agents. Minds and Machines, 22(2):71–85. \nBostrom, N. (2014). Superintelligence: Paths, Dangers, Strategies. \nBrown, D. S., Goo, W., and Niekum, S. (2020a). Better-than-demonstrator imitation learning via automatically-ranked demonstrations. In Conference on robot learning, pages 330–359. PMLR. \nBrown, D. S., Schneider, J., Dragan, A. D., and Niekum, S. (2020b). Value Alignment Verification. CoRR, abs/2012.01557. \nChristiano, P. (2019). Ambitious vs. narrow value learning. AI Alignment Forum. https://www.alignmentforum.org/posts/SvuLhtREMy8wRBzpC/ ambitious-vs-narrow-value-learning. \nClark, J. and Amodei, D. (2016). Faulty Reward Functions in the Wild. OpenAI Codex https: //openai.com/blog/faulty-reward-functions/. \nDewey, D. (2011). Learning What to Value. In Schmidhuber, J., Thórisson, K. R., and Looks, M., editors, Artificial General Intelligence: 4th International Conference, AGI 2011, pages 309–314, Berlin, Heidelberg. Springer Berlin Heidelberg. \nDobbe, R., Gilbert, T. K., and Mintz, Y. (2021). Hard Choices in Artificial Intelligence. CoRR, abs/2106.11022. \nEveritt, T., Hutter, M., Kumar, R., and Krakovna, V. (2021). Reward tampering problems and solutions in reinforcement learning: A causal influence diagram perspective. Synthese, 198(27):6435–6467. \nEveritt, T., Krakovna, V., Orseau, L., Hutter, M., and Legg, S. (2017). Reinforcement learning with a corrupted reward channel. arXiv preprint arXiv:1705.08417. \nEveritt, T., Ortega, P. A., Barnes, E., and Legg, S. (2019). Understanding agent incentives using causal influence diagrams. Part I: Single action settings. arXiv preprint arXiv:1902.09980. \nFu, J., Luo, K., and Levine, S. (2017). Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248. \nGabriel, I. (2020). Artificial intelligence, values, and alignment. Minds and machines, 30(3):411–437. \nGolden, D. (2001). Glass Floor: Colleges Reject Top Applicants, Accepting Only the Students Likely to Enroll. The Wall Street Journal. https://www.wsj.com/articles/ SB991083160294634500. \nGoodhart, C. A. (1975). Problems of monetary management: the UK experience. In of Australia, R. B., editor, Papers in monetary economics. Reserve Bank of Australia. \nHadfield-Menell, D., Dragan, A., Abbeel, P., and Russell, S. (2016a). The Off-Switch Game. CoRR, abs/1611.08219. \nHadfield-Menell, D., Dragan, A. D., Abbeel, P., and Russell, S. J. (2016b). Cooperative Inverse Reinforcement Learning. CoRR, abs/1606.03137. \nHadfield-Menell, D., Milli, S., Abbeel, P., Russell, S. J., and Dragan, A. (2017). Inverse reward design. Advances in neural information processing systems, 30. \nIbarz, B., Leike, J., Pohlen, T., Irving, G., Legg, S., and Amodei, D. (2018). Reward learning from human preferences and demonstrations in atari. Advances in neural information processing systems, 31. \nKrakovna, V., Orseau, L., Kumar, R., Martic, M., and Legg, S. (2018). Penalizing side effects using stepwise relative reachability. CoRR, abs/1806.01186. \nKrakovna, V., Uesato, J., Mikulik, V., Rahtz, M., Everitt, T., Kumar, R., Kenton, Z., Leike, J., and Legg, S. (2020). Specification gaming: the flip side of AI ingenuity. \nKumar, R., Uesato, J., Ngo, R., Everitt, T., Krakovna, V., and Legg, S. (2020). Realab: An embedded perspective on tampering. arXiv preprint arXiv:2011.08820. \nLeike, J., Krueger, D., Everitt, T., Martic, M., Maini, V., and Legg, S. (2018). Scalable agent alignment via reward modeling: a research direction. CoRR, abs/1811.07871. \nManheim, D. and Garrabrant, S. (2018). Categorizing Variants of Goodhart’s Law. CoRR, abs/1803.04585. \nNakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. (2021). WebGPT: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332. \nNg, A. Y., Harada, D., and Russell, S. (1999). Policy invariance under reward transformations: Theory and application to reward shaping. In Icml, volume 99, pages 278–287. \nNg, A. Y., Russell, S. J., et al. (2000). Algorithms for inverse reinforcement learning. In Icml, volume 1, page 2. \nOmohundro, S. M. (2008). The basic AI drives. \nO’Neil, C. (2016). Weapons of math destruction: How big data increases inequality and threatens democracy. Crown Publishing Group. \nPan, A., Bhatia, K., and Steinhardt, J. (2022). The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Models. arXiv preprint arXiv:2201.03544. \nRoss, S., Gordon, G., and Bagnell, D. (2011). A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 627–635. JMLR Workshop and Conference Proceedings. \nStiennon, N., Ouyang, L., Wu, J., Ziegler, D., Lowe, R., Voss, C., Radford, A., Amodei, D., and Christiano, P. F. (2020). Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008–3021. \nSutton, R. S. and Barto, A. G. (2018). Reinforcement learning: An introduction. MIT press. \nSzepesvári, C. (2020). Constrained MDPs and the reward hypothesis. http://readingsml. blogspot.com/2020/03/constrained-mdps-and-reward-hypothesis.html. \nTaylor, J. (2016). Quantilizers: A safer alternative to maximizers for limited optimization. In Workshops at the Thirtieth AAAI Conference on Artificial Intelligence. \nThomas, R. L. and Uminsky, D. (2022). Reliance on metrics is a fundamental challenge for AI. Patterns, 3(5):100476. \nThrun, S. and Schwartz, A. (1993). Issues in using function approximation for reinforcement learning. In Proceedings of the 1993 Connectionist Models Summer School Hillsdale, NJ. Lawrence Erlbaum, volume 6. \nTurner, A. M., Hadfield-Menell, D., and Tadepalli, P. (2019). Conservative Agency via Attainable Utility Preservation. CoRR, abs/1902.09725. \nTurner, A. M., Smith, L., Shah, R., Critch, A., and Tadepalli, P. (2021). Optimal Policies Tend to Seek Power. Advances in Neural Information Processing Systems. \nUesato, J., Kumar, R., Krakovna, V., Everitt, T., Ngo, R., and Legg, S. (2020). Avoiding tampering incentives in deep rl via decoupled approval. arXiv preprint arXiv:2011.08827. \nZhang, B., Rajan, R., Pineda, L., Lambert, N., Biedenkapp, A., Chua, K., Hutter, F., and Calandra, R. (2021). On the Importance of Hyperparameter Optimization for Model-based Reinforcement Learning. CoRR, abs/2102.13651. \nZhuang, S. and Hadfield-Menell, D. (2020). Consequences of misaligned AI. Advances in Neural Information Processing Systems, 33:15763–15773. \nZiebart, B. D. (2010). Modeling purposeful adaptive behavior with the principle of maximum causal entropy. Carnegie Mellon University. ",
1190
+ "bbox": [
1191
+ 173,
1192
+ 722,
1193
+ 828,
1194
+ 912
1195
+ ],
1196
+ "page_idx": 9
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "",
1201
+ "bbox": [
1202
+ 171,
1203
+ 80,
1204
+ 830,
1205
+ 917
1206
+ ],
1207
+ "page_idx": 10
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "",
1212
+ "bbox": [
1213
+ 171,
1214
+ 20,
1215
+ 830,
1216
+ 885
1217
+ ],
1218
+ "page_idx": 11
1219
+ }
1220
+ ]
parse/dev/yb3HOXO3lX2/yb3HOXO3lX2_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/yb3HOXO3lX2/yb3HOXO3lX2_model.json ADDED
The diff for this file is too large to render. See raw diff