Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/Hkx6hANtwH/Hkx6hANtwH.md +266 -0
- parse/train/Hkx6hANtwH/Hkx6hANtwH_content_list.json +1367 -0
- parse/train/Hkx6hANtwH/Hkx6hANtwH_middle.json +0 -0
- parse/train/Hkx6hANtwH/Hkx6hANtwH_model.json +0 -0
- parse/train/LJjC6DmSkgT/LJjC6DmSkgT.md +302 -0
- parse/train/LJjC6DmSkgT/LJjC6DmSkgT_content_list.json +1134 -0
- parse/train/LJjC6DmSkgT/LJjC6DmSkgT_middle.json +0 -0
- parse/train/LJjC6DmSkgT/LJjC6DmSkgT_model.json +0 -0
- parse/train/jSz59N8NvUP/jSz59N8NvUP.md +267 -0
- parse/train/jSz59N8NvUP/jSz59N8NvUP_content_list.json +1085 -0
- parse/train/jSz59N8NvUP/jSz59N8NvUP_middle.json +0 -0
- parse/train/jSz59N8NvUP/jSz59N8NvUP_model.json +0 -0
- parse/train/rJeKjwvclx/rJeKjwvclx.md +406 -0
- parse/train/rJeKjwvclx/rJeKjwvclx_content_list.json +2188 -0
- parse/train/rJeKjwvclx/rJeKjwvclx_middle.json +0 -0
- parse/train/rJeKjwvclx/rJeKjwvclx_model.json +0 -0
- parse/train/tUeeRzMXJZ/tUeeRzMXJZ.md +333 -0
- parse/train/tUeeRzMXJZ/tUeeRzMXJZ_content_list.json +1367 -0
- parse/train/tUeeRzMXJZ/tUeeRzMXJZ_middle.json +0 -0
- parse/train/tUeeRzMXJZ/tUeeRzMXJZ_model.json +0 -0
parse/train/Hkx6hANtwH/Hkx6hANtwH.md
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LAMBDANET: PROBABILISTIC TYPE INFERENCE USING GRAPH NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Jiayi Wei, Maruth Goyal, Greg Durrett, Isil Dillig
|
| 4 |
+
|
| 5 |
+
Department of Computer Science
|
| 6 |
+
University of Texas at Austin
|
| 7 |
+
{jiayi, maruth, gdurrett, isil}@cs.utexas.edu
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
As gradual typing becomes increasingly popular in languages like Python and TypeScript, there is a growing need to infer type annotations automatically. While type annotations help with tasks like code completion and static error catching, these annotations cannot be fully determined by compilers and are tedious to annotate by hand. This paper proposes a probabilistic type inference scheme for TypeScript based on a graph neural network. Our approach first uses lightweight source code analysis to generate a program abstraction called a type dependency graph, which links type variables with logical constraints as well as name and usage information. Given this program abstraction, we then use a graph neural network to propagate information between related type variables and eventually make type predictions. Our neural architecture can predict both standard types, like number or string, as well as user-defined types that have not been encountered during training. Our experimental results show that our approach outperforms prior work in this space by $1 4 \%$ (absolute) on library types, while having the ability to make type predictions that are out of scope for existing techniques.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Dynamically typed languages like Python, Ruby, and Javascript have gained enormous popularity over the last decade, yet their lack of a static type system comes with certain disadvantages in terms of maintainability (Hanenberg et al., 2013), the ability to catch errors at compile time, and code completion support (Gao et al., 2017). Gradual typing can address these shortcomings: program variables have optional type annotations so that the type system can perform static type checking whenever possible (Siek & Taha, 2007; Chung et al., 2018). Support for gradual typing now exists in many popular programming languages (Bierman et al., 2014; Vitousek et al., 2014), but due to their heavy use of dynamic language constructs and the absence of principal types (Ancona & Zucca, 2004), compilers cannot perform type inference using standard algorithms from the programming languages community (Bierman et al., 2014; Traytel et al., 2011; Pierce & Turner, 2000), and manually adding type annotations to existing codebases is a tedious and error-prone task. As a result, legacy programs in these languages do not reap all the benefits of gradual typing.
|
| 16 |
+
|
| 17 |
+
To reduce the human effort involved in transitioning from untyped to statically typed code, this work focuses on a learning-based approach to automatically inferring likely type annotations for untyped (or partially typed) codebases. Specifically, we target TypeScript, a gradually-typed variant of Javascript for which plenty of training data is available in terms of type-annotated programs. While there has been some prior work on inferring type annotations for TypeScript using machine learning (Hellendoorn et al., 2018; Raychev et al., 2015), prior work in this space has several shortcomings. First, inference is restricted to a finite dictionary of types that have been observed during training time—i.e., they cannot predict any user-defined data types. Second, even without considering user-defined types, the accuracy of these systems is relatively low, with the current state-of-theart achieving $5 6 . 9 \%$ accuracy for primitive/library types (Hellendoorn et al., 2018). Finally, these techniques can produce inconsistent results in that they may predict different types for different token-level occurrences of the same variable.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: A motivating example: Given an unannotated version of this TypeScript program, a traditional rule-based type inference algorithm cannot soundly deduce the true type annotations (shown in green).
|
| 21 |
+
|
| 22 |
+
In this paper, we propose a new probabilistic type inference algorithm for TypeScript to address these shortcomings using a graph neural network architecture (GNN) (Velickovi ˇ c et al., 2018; Li et al., ´ 2016; Mou et al., 2016). Our method uses lightweight source code analysis to transform the program into a new representation called a type dependency graph, where nodes represent type variables and labeled hyperedges encode relationships between them. In addition to expressing logical constraints (e.g., subtyping relations) as in traditional type inference, a type dependency graph also incorporates contextual hints involving naming and variable usage.
|
| 23 |
+
|
| 24 |
+
Given such a type dependency graph, our approach uses a GNN to compute a vector embedding for each type variable and then performs type prediction using a pointer-network-like architecture (Vinyals et al., 2015). The graph neural network itself requires handling a variety of hyperedge types—some with variable numbers of arguments—for which we define appropriate graph propagation operators. Our prediction layer compares the vector embedding of a type variable with vector representations of candidate types, allowing us to flexibly handle user-defined types that have not been observed during training. Moreover, our model predicts consistent type assignments by construction because it makes variable-level rather than token-level predictions.
|
| 25 |
+
|
| 26 |
+
We implemented our new architecture as a tool called LAMBDANET and evaluated its performance on real-world TypeScript projects from Github. When only predicting library types, LAMBDANET has a top1 accuracy of $7 5 . 6 \%$ , achieving a significant improvement over DeepTyper $( 6 1 . 5 \% )$ . In terms of overall accuracy (including user-defined types), LAMBDANET achieves a top1 accuracy of around $6 4 . 2 \%$ , which is $5 5 . 2 \%$ (absolute) higher than the TypeScript compiler.
|
| 27 |
+
|
| 28 |
+
Contributions. This paper makes the following contributions: (1) We propose a probabilistic type inference algorithm for TypeScript that uses deep learning to make predictions from the type dependency graph representation of the program. (2) We describe a technique for computing vector embeddings of type variables using GNNs and propose a pointer-network-like method to predict user-defined types. (3) We experimentally evaluate our approach on hundreds of real-world TypeScript projects and show that our method significantly improves upon prior work.
|
| 29 |
+
|
| 30 |
+
# 2 MOTIVATING EXAMPLE AND PROBLEM SETTING
|
| 31 |
+
|
| 32 |
+
Figure 1 shows a (type-annotated) TypeScript program. Our goal in this work is to infer the types shown in the figure, given an unannotated version of this code. We now justify various aspects of our solution using this example.
|
| 33 |
+
|
| 34 |
+
Typing constraints. The use of certain functions/operators in Figure 1 imposes hard constraints on the types that can be assigned to program variables. For example, in the forward function, variables $_ \textrm { x }$ , y must be assigned a type that supports a concat operation; hence, x, y could have types like string, array, or Tensor, but not, for example, boolean. This observation motivates us to incorporate typing constraints into our model.
|
| 35 |
+
|
| 36 |
+
Contextual hints. Typing constraints are not always sufficient for determining the intended type of a variable. For example, for variable network in function restore, the typing constraints require network’s type to be a class with a field called time, but there can be many classes that have such an attribute (e.g., Date). However, the similarity between the variable name network
|
| 37 |
+
|
| 38 |
+
1 var c1: $\tau _ { 8 } =$ class MyNetwork {
|
| 39 |
+
2 name: τ1; time: $\tau _ { 2 }$ ;
|
| 40 |
+
3 var m1: $\begin{array} { r l } { \tau _ { 9 } } & { { } = } \end{array}$ function forward(x: $\tau _ { 3 }$ , $y : \ \tau _ { 4 } ) : \tau _ { 5 }$ {
|
| 41 |
+
4 var v1: $\tau _ { 1 0 } ~ = ~ \mathrm { ~ x ~ }$ .concat; var v2: $\tau _ { 1 1 } ~ = ~ \mathrm { { v } 1 }$ (y);
|
| 42 |
+
5 var v3: $\tau _ { 1 2 } =$ v2.TIMES_OP; var v4: $\tau _ { 1 3 } ~ = ~ \mathrm { ~ v ~ } 3$ (NUMBER);
|
| 43 |
+
6 return v4;
|
| 44 |
+
7 }
|
| 45 |
+
8 // more classes..
|
| 46 |
+
9 var $\pm 1 : \tau _ { 1 4 } =$ function restore (network: $\tau _ { 6 } ) : \tau _ { 7 }$ {
|
| 47 |
+
10 var v3: $\tau _ { 1 5 } ~ =$ network.time;
|
| 48 |
+
11 var v4: $\tau _ { 1 6 } ~ =$ readNumber(STRING);
|
| 49 |
+
12 network.time $\qquad = \quad \mathtt { v 4 }$ ; // more code...
|
| 50 |
+
13 }
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: An intermediate representation of the (unannotated version) program from Figure 1. The $\tau _ { i }$ represent type variables, among which $\tau _ { 8 } - \tau _ { 1 6 }$ are newly introduced for intermediate expressions.
|
| 54 |
+
Figure 3: Example hyperedges for Figure 2. Edge labels in gray (resp. red) are positional arguments (resp. identifiers). (A) The return statement at line 6 induces a subtype relationship between $\tau _ { 1 3 }$ and $\tau _ { 5 }$ . $\mathbf { ( B ) }$ MyNetwork $\tau _ { 8 }$ declares attributes name $\tau _ { 1 }$ and time $\tau _ { 2 }$ and method forward $\tau _ { 9 }$ . (C) $\tau _ { 1 4 }$ is associated with a variable whose named is restore. $\mathbf { \eta } ^ { ( \mathbf { D } ) }$ Usage hyperedge for line 10 connects $\tau _ { 6 }$ and $\tau _ { 1 5 }$ to all classes with a time attribute.
|
| 55 |
+
|
| 56 |
+
and the class name MyNetwork hints that network might have type MyNetwork. Based on this belief, we can further propagate the return type of the library function readNumber (assuming we know it is number) to infer that the type of the time field in MyNetwork is likely to be number.
|
| 57 |
+
|
| 58 |
+
Need for type dependency graph. There are many ways to view programs—e.g., as token sequences, abstract syntax trees, control flow graphs, etc. However, none of these representations is particularly helpful for inferring the most likely type annotations. Thus, our method uses static analysis to infer a set of predicates that are relevant to the type inference problem and represents these predicates using a program abstraction called the type dependency graph.
|
| 59 |
+
|
| 60 |
+
Handling user-defined types. As mentioned in Section 1, prior techniques can only predict types seen during training. However, the code from Figure 1 defines its own class called MyNetwork and later uses a variables of type MyNetwork in the restore method. A successful model for this task therefore must dynamically make inferences about user-defined types based on their definitions.
|
| 61 |
+
|
| 62 |
+
# 2.1 PROBLEM SETTING
|
| 63 |
+
|
| 64 |
+
Our goal is to train a type inference model that can take as input an entirely (or partially) unannotated TypeScript project $g$ and output a probability distribution of types for each missing annotation. The prediction space is $\mathcal { V } ( g ) = \mathcal { V } _ { \mathrm { l i b } } \cup \mathcal { V } _ { \mathrm { u s e r } } ( g )$ , where $\mathcal { V } _ { \mathrm { u s e r } } ( g )$ is the set of all user-defined types (classes/interfaces) declared within $g$ , and ${ \mathcal { N } } _ { \mathrm { l i b } }$ is a fixed set of commonly-used library types.
|
| 65 |
+
|
| 66 |
+
Following prior work in this space (Hellendoorn et al., 2018; Raychev et al., 2015; Xu et al., 2016), we limit the scope of our prediction to non-polymorphic and non-function types. That is, we do not distinguish between types such as List<T>, List<number>, List<string> etc., and consider them all to be of type List. Similarly, we also collapse function types like number string and string string into a single type called Function. We leave the extension of predicting structured types as future work.
|
| 67 |
+
|
| 68 |
+
Table 1: Different types of hyperedges used in a type dependency graph.
|
| 69 |
+
|
| 70 |
+
<table><tr><td>Type</td><td>Edge</td><td>Description</td></tr><tr><td colspan="2">Logical α is used as boolean</td></tr><tr><td>FIXED</td><td>Bool(α)</td></tr><tr><td>FIXED</td><td>Subtype(α, β) α is a subtype of β</td></tr><tr><td>FIXED</td><td>Assign(α, β)t β is assigned to α α=(β1,...,βk)→β*</td></tr><tr><td>NARY NARY</td><td>Function(α,βi,...,βk, β*)</td></tr><tr><td>NARY</td><td>Call(a,β*,β1,..., βk) α=β*(β1,...,βk)</td></tr><tr><td>FIXED</td><td>Object.,(α,βi,...,βk)) α={l1:β1,...,lk :βk} Accesst(a,β) α= β.l</td></tr><tr><td colspan="2">αhas name l</td></tr><tr><td>FIXED</td><td>Contextual</td></tr><tr><td>Namet(α) FIXED</td><td>NameSimilar(α, β) α,βhave similar names</td></tr></table>
|
| 71 |
+
|
| 72 |
+
† Although assignment is a special case of a subtype constraint, we differentiate them because these edges appear in different contexts and having uncoupled parameters for these two edge types is beneficial.
|
| 73 |
+
|
| 74 |
+
# 3 TYPE DEPENDENCY GRAPH
|
| 75 |
+
|
| 76 |
+
A type dependency graph $\mathcal { G } = ( N , E )$ is a hypergraph where nodes $N$ represent type variables and labeled hyperedges $E$ encode relationships between them. We extract the type dependency graph of a given TypeScript program by performing static analysis on an intermediate representation of its source code, which allows us to associate a unique variable with each program sub-expression. As an illustration, Figure 2 shows the intermediate representation of the code from Figure 1.
|
| 77 |
+
|
| 78 |
+
Intuitively, a type dependency graph encodes properties of type variables as well as relationships between them. Each hyperedge corresponds to one of the predicates shown in Table 1. We partition our predicates (i.e., hyperedges) into two classes, namely Logical and Contextual, where the former category can be viewed as imposing hard constraints on type variables and the latter category encodes useful hints extracted from names of variables, functions, and classes.
|
| 79 |
+
|
| 80 |
+
Figure 3 shows some of the hyperedges in the type dependency graph $\mathcal { G }$ extracted from the intermediate representation in Figure 2. As shown in Figure 3(A), our analysis extracts a predicate Subtype $( \tau _ { 1 3 } , \tau _ { 5 } )$ from this code because the type variable associated with the returned expression $\mathtt { v 4 }$ must be a subtype of the enclosing function’s return type. Similarly, as shown in Figure 3(B), our analysis extracts a predicate $\mathrm { O b j e c t } _ { \mathrm { n a m e , t i m e , f o r w a r d } } ( \tau _ { 8 } , \tau _ { 1 } , \tau _ { 2 } , \tau _ { 9 } )$ because $\tau _ { 8 }$ is an object type whose name, time, and forward members are associated with type variables $\tau _ { 1 } , \tau _ { 2 } , \tau _ { 9 }$ , respectively.
|
| 81 |
+
|
| 82 |
+
In contrast to the Subtype and Object predicates that impose hard constraints on type variables, the next two hyperedges shown in Figure 3 encode contextual clues obtained from variable names. Figure 3(C) indicates that type variable $\tau _ { 1 4 }$ is associated with an expression named restore. While this kind of naming information is invisible to TypeScript’s structural type system (?), it serves as a useful input feature for our GNN architecture described in Section 4.
|
| 83 |
+
|
| 84 |
+
In addition to storing the unique variable name associated with each type variable, the type dependency graph also encodes similarity between variable and class names. The names of many program variables mimic their types: for example, instances of a class called MyNetwork might often be called network or network1. To capture this correspondence, our type dependency graph also contains a hyperedge called NameSimilar that connects type variables $\alpha$ and $\beta$ if their corresponding tokenized names have a non-empty intersection.1
|
| 85 |
+
|
| 86 |
+
As shown in Table 1, there is a final type of hyperedge called Usage that facilitates type inference of object types. In particular, if there is an object access var $\mathrm { ~ y ~ } = \mathrm { ~ x ~ . ~ } \bot$ , we extract the predicate $\operatorname { U s a g e } _ { l } ( ( \tau _ { x } , \tau _ { y } ) , ( \alpha _ { 1 } , \beta _ { 1 } ) , \dots , ( \alpha _ { k } , \beta _ { k } ) )$ to connect $_ \textrm { x }$ and y’s type variables with all classes $\alpha _ { i }$ that contain an attribute/method $\beta _ { i }$ whose name is l. Figure 3 shows a Usage hyperedge extracted from the code in Figure 2. As we will see in the next section, our GNN architecture utilizes a special attention mechanism to pass information along these usage edges.
|
| 87 |
+
|
| 88 |
+
# 4 NEURAL ARCHITECTURE
|
| 89 |
+
|
| 90 |
+
Our neural architecture for making type predictions consists of two main parts. First, a graph neural network passes information along the type dependency graph to produce a vector-valued embedding for each type variable based on its neighbors. Second, a pointer network compares each variable’s type embedding to the embedding vectors of candidate types (both computed from the previous phase) to place a distribution over possible type assignments.
|
| 91 |
+
|
| 92 |
+
Given a type dependency graph $\mathcal { G } = ( N , E )$ , we first to compute a vector embedding $\mathbf { v } _ { n }$ for each $n \in N$ such that these vectors implicitly encode type information. Because our program abstraction is a graph, a natural choice is to use a graph neural network architecture. From a high level, this architecture takes in initial vectors $ { \mathbf { v } } _ { n } ^ { 0 }$ for each node $n$ , performs $K$ rounds of message-passing in the graph neural network, and returns the final representation for each type variable.
|
| 93 |
+
|
| 94 |
+
In more detail, let $\mathbf { v } _ { n } ^ { t }$ denote the vector representation of node $n$ at the tth step, where each round consists of a message passing and an aggregation step. The message passing step computes a vectorvalued update to send to the $j$ th argument of each hyper-edge $e \in E$ connecting nodes $p _ { 1 } , \ldots , p _ { a }$ . Then, once all the messages have been computed, the aggregation step computes a new embedding $\mathbf { v } _ { n } ^ { t }$ for each $n$ by combining all messages sent to $n$ :
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\begin{array} { r } { \mathbf { m } _ { e , p _ { j } } ^ { t } = \mathrm { M s g } _ { e , j } \bigl ( \mathbf { v } _ { p _ { 1 } } ^ { t - 1 } , \ldots , \mathbf { v } _ { p _ { a } } ^ { t - 1 } \bigr ) \quad \mathbf { v } _ { n } ^ { t } = \mathrm { A g g r } ( \mathbf { v } _ { n } ^ { t - 1 } , \{ \mathbf { m } _ { e , n } ^ { t } | e \in \mathcal { N } ( n ) \} ) } \end{array}
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
Here, $\mathcal { N }$ is the neighborhood function, and $\mathrm { M s g } _ { e }$ denotes a particular neural operation that depends on the type of the edge (FIXED, NARY, or NPAIRS), which we will describe later.
|
| 101 |
+
|
| 102 |
+
Initialization. In our GNN, nodes correspond to type variables and each type variable is associated either with a program variable or a constant. We refer to nodes representing constants (resp. variables) as constant (resp. variable) nodes, and our initialization procedure works differently depending on whether or not $n$ is a constant node. Since the types of each constant are known, we set the initial embedding for each constant node of type $\tau$ (e.g., string) to be a trainable vector $\mathbf { c } _ { \tau }$ and do not update it during GNN iterations (i.e., $\forall t , \mathbf { v } _ { n } ^ { t } = \mathbf { c } _ { \tau } )$ ). On the other hand, if $n$ is a variable node, then we have no information about its type during initialization; hence, we initialize all variable nodes using a generic trainable initial vector (i.e., they are initialized to the same vector but updated to different values during GNN iterations).
|
| 103 |
+
|
| 104 |
+
Message passing. Our Msg operator depends on the category of edge it corresponds to (see Table 1); however, weights are shared between all instances of the same hyperedge type. In what follows, we describe the neural layer that is used to compute messages for each type of hyperedge:
|
| 105 |
+
|
| 106 |
+
• FIXED: Since these edges correspond to fixed arity predicates (and the position of each argument matters), we compute the message of the $j$ th argument by first concatenating the embedding vector of all arguments and then feed the result vector to a 2-layer MLP for the $j$ th argument. In addition, since hyperedges of type Access have an identifier, we also embed the identifier as a vector and treat it as an extra argument. (We describe the details of identifier embedding later in this section.) • NARY: Since NARY edges connect a variable number of nodes, we need an architecture that can deal with this challenge. In our current implementation of LAMBDANET, we use a simple architecture that is amenable to batching. Specifically, given an NARY edge $E _ { l _ { 1 } , \dots , l _ { k } } ( \alpha , \beta _ { 1 } , \dots , \beta _ { k } )$ (for Function and $C a l l$ , the labels $l _ { j }$ are argument positions), the set of messages for $\alpha$ is computed as $\{ \mathrm { M L P } _ { \alpha } ( \mathbf { v } _ { l _ { j } } \| \mathbf { v } _ { \beta _ { j } } ) \vert j = 1 \dots k \}$ , and the message for each $\beta _ { j }$ is computed as $\mathrm { M L P } _ { \beta } ( \mathbf { v } _ { l _ { j } } \| \mathbf { v } _ { \alpha } )$ . Observe that we compute $k$ different messages for $\alpha$ , and the message for each $\beta _ { j }$ only depends on the vector embedding of $\alpha$ and its position $j$ , but not the vector embeddings of other $\beta _ { j }$ ’s.2 • NPAIRS: This is a special category associated with $\operatorname { U s a g e } _ { l } ( ( \alpha ^ { * } , \beta ^ { * } ) , ( \alpha _ { 1 } , \beta _ { 1 } ) , \dots , ( \alpha _ { k } , \beta _ { k } ) )$ . Recall that this kind of edge arises from expressions of the form $b = a . l$ and is used to connect $a$ and $b$ ’s type variables with all classes $\alpha _ { i }$ that contain an attribute/method $\beta _ { i }$ with label $l$ . Intuitively, if $a$ ’s type embedding is very similar to a type $C$ , then $b$ ’s type will likely be the same as $C . l$ ’s type. Following this reasoning, we use dot-product based attention to compute the messages for $\alpha ^ { * }$ and $\beta ^ { * }$ . Specifically, we use $\alpha ^ { * }$ and $\alpha _ { j }$ ’s as attention keys and $\beta _ { j }$ ’s as attention values to compute the message for $\beta ^ { * }$ (and switch the key-value roles to compute the message for $\alpha ^ { * }$ ):
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\mathbf { m } _ { e , \beta ^ { * } } ^ { t } = \sum _ { j } w _ { j } \mathbf { v } _ { \beta _ { j } } ^ { t - 1 } \quad \quad \mathbf { w } = \mathrm { s o f t m a x } ( \mathbf { a } ) \quad \quad a _ { j } = \mathbf { v } _ { \alpha _ { j } } \cdot \mathbf { v } _ { \alpha ^ { * } }
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
Aggregation. Recall that the aggregation step combines all messages sent to node $n$ to compute the new embedding $\boldsymbol { v } _ { n } ^ { t }$ . To achieve this goal, we use a variant of the attention-based aggregation operator proposed in graph attention networks (Velickovi ˇ c et al., 2018). ´
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
v _ { n } ^ { t } = \operatorname { A g g r } ( v _ { n } ^ { t - 1 } , \{ m _ { e , n } ^ { t } | e \in \mathcal { N } ( n ) \} ) = v _ { n } ^ { t - 1 } + \sum _ { e \in \mathcal { N } ( n ) } w _ { e } \mathbf { M } _ { 1 } m _ { e , n } ^ { t }
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $w _ { e }$ is the attention weight for the message coming from edge $e$ . Specifically, the weights $w _ { e }$ are computed as softmax(a), where $a _ { e } = \mathrm { L e a k y R e L } \mathbf { \bar { u } } ( v _ { n } ^ { t - 1 } \cdot \bar { \mathbf { M } } _ { 2 } m _ { e , n } ^ { t } )$ , and ${ { \bf { M } } _ { 1 } }$ and $\mathbf { M } _ { 2 }$ are trainable matrices. Similar to the original GAT architecture, we set the slope of the LeakyReLu to be 0.2, but we use dot-product to compute the attention weights instead of a linear model.
|
| 119 |
+
|
| 120 |
+
Identifier embedding. Like in Allamanis et al. (2017), we break variable names into word tokens according to camel case and underscore rules and assign a trainable vector for all word tokens that appear more than once in the training set. For all other tokens, unlike Allamanis et al. (2017), which maps them all into one single <Unknown $>$ token, we randomly mapped them into one of the <Unknown $- \dot { \textrm { \scriptsize 1 } } >$ tokens, where $i$ ranges from 0 to 50 in our current implementation. This mapping is randomly constructed every time we run the GNN and hence helps our neural networks to distinguish different tokens even if they are rare tokens. We train these identifier embeddings end-to-end along with the rest of our architecture.
|
| 121 |
+
|
| 122 |
+
Prediction Layer. For each type variable $n$ and each candidate type $c \in \mathcal { V } ( g )$ , we use a MLP to compute a compatibility score $s _ { n , c } = \mathrm { M L P } ( \mathbf { v } _ { n } , \mathbf { u } _ { c } )$ , where $\mathbf { u } _ { c }$ is the embedding vector for $c$ . If $c \in \mathcal { V } _ { \mathrm { l i b } }$ , ${ \bf v } _ { c }$ is a trainable vector for each library type $c$ ; if $c \in \mathcal { V } _ { \mathrm { u s e r } } ( g )$ , then it corresponds to a node $n _ { c }$ in the type dependency graph of $g$ , so we just use the embedding vector for $n _ { c }$ and set $\mathbf { u } _ { c } = \mathbf { v } _ { n _ { c } }$ . Formally, this approach looks like a pointer network (Vinyals et al., 2015), where we use the embeddings computed during the forward pass to predict “pointers” to those types.
|
| 123 |
+
|
| 124 |
+
Given these compatibility scores, we apply a softmax layer to turn them into a probability distribution. i.e., $\begin{array} { r } { P _ { n } ( c | g ) = \exp ( s _ { n , c } ) / \sum _ { c ^ { \prime } } \exp ( s _ { n , c ^ { \prime } } ) } \end{array}$ . During test time, we max over the probabilities to compute the most likely (or top-N) type assignments.
|
| 125 |
+
|
| 126 |
+
# 5 EVALUATION
|
| 127 |
+
|
| 128 |
+
In this section, we describe the results of our experimental evaluation, which is designed to answer the following questions: (1) How does our approach compare to previous work? (2) How well can our model predict user-defined types? (3) How useful is each of our model’s components?
|
| 129 |
+
|
| 130 |
+
Dataset. Similar to Hellendoorn et al. (2018), we train and evaluate our model on popular opensource TypeScript projects taken from Github. Specifically, we collect 300 popular TypeScript projects from Github that contain between 500 to 10, 000 lines of code and where at least $1 0 \%$ of type annotations are user-defined types. Note that each project typically contains hundreds to thousands of type variables to predict, and these projects in total contain about 1.2 million lines of TypeScript code. Among these 300 projects, we use 60 for testing, 40 for validation, and the remainder for training.
|
| 131 |
+
|
| 132 |
+
Code Duplication. We ran jscpd3 on our entire data set and found that only $2 . 7 \%$ of the code is duplicated. Furthermore, most of these duplicates are intra-project. Thus, we believe that code duplication is not a severe problem in our dataset.
|
| 133 |
+
|
| 134 |
+
Preprocessing. Because some of the projects in our benchmark suite are only sparsely type annotated, we augment our labeled training data by using the forward type inference functionality provided by the TypeScript compiler.4 The compiler cannot infer the type of every variable and leaves many labeled as any during failed inference; thus, we exclude any labels in our data set.
|
| 135 |
+
|
| 136 |
+
Furthermore, at test time, we evaluate our technique only on annotations that are manually added by developers. This is the same methodology used by Hellendoorn et al. (2018), and, since developers often add annotations where code is most unclear, this constitutes a challenging setting for type prediction.
|
| 137 |
+
|
| 138 |
+
Prediction Space. As mentioned in Section 2.1, our approach takes an entire TypeScript project $g$ as its input, and the corresponding type prediction space is $\mathcal { V } ( g ) = \mathcal { V } _ { \mathrm { l i b } } \cup \mathcal { V } _ { \mathrm { u s e r } } ( g )$ . In our experiments, we set $\mathcal { V } _ { \mathrm { u s e r } } ( g )$ to be all classes/interfaces defined in $g$ (except when comparing with DeepTyper, where we set $\mathcal { V } _ { \mathrm { u s e r } } ( g )$ to be empty), and for ${ \mathcal { N } } _ { \mathrm { l i b } }$ , we select the top-100 most common types in our training set. Note that this covers $9 8 \%$ (resp. $9 7 . 5 \%$ ) of the non-any annotations for the training (resp. test) set.
|
| 139 |
+
|
| 140 |
+
Hyperparameters We selected hyperparameters by tuning on a validation set as we were developing our model. We use 32-dimensional type embedding vectors, and all MLP transformations in our model use one hidden layer of 32 units, except the MLP for computing scores in the prediction layer, which uses three hidden layers of sizes 32,16, and 8 (and size 1 for output). GNN message-passing layers from different time steps have independent weights.
|
| 141 |
+
|
| 142 |
+
We train our model using Adam (Kingma & Ba, 2014) with default parameters ( $\alpha = 0 . 9$ , $\beta = 0 . 9 9 9 \mathrm { \Omega }$ ) and set the learning rate to be $1 0 ^ { - 3 }$ initially but linearly decrease it to $1 0 ^ { - 4 }$ until the 30th epoch. We use a weight decay of $1 0 ^ { - 4 }$ for regularization and stop the training once the loss on validation set starts to increase (which usually happens around 30 epochs). We use the type annotations from a single project as a minibatch and limit the maximal batch size (via downsampling) to be the median of our training set to prevent any single project from having too much influence.
|
| 143 |
+
|
| 144 |
+
Implementation Details. We implemented LAMBDANET in Scala, building on top of the Java high-performance Tensor library Nd4j(nd4), and used a custom automatic differentiation library to implement our GNN. Our GNN implementation does not use an adjacency matrix to represent GNN layers; instead, we build the hyperedge connections directly from our type dependency graph and perform batching when computing the messages for all hyperedges of the same type.
|
| 145 |
+
|
| 146 |
+
Code Repository. We have made our code publicly available on Github.5
|
| 147 |
+
|
| 148 |
+
# 5.1 COMPARISON WITH DEEPTYPER
|
| 149 |
+
|
| 150 |
+
In this experiment, we compare LAMBDANET’s performance with DeepTyper (Hellendoorn et al., 2018), which treats programs as sequences of tokens and uses a bidirectional RNN to make type predictions. Since DeepTyper can only predict types from a fixed vocabulary, we fix both LAMBDANET and DeepTyper’s prediction space to ${ \mathcal { N } } _ { \mathrm { l i b } }$ and measure their corresponding top-1 accuracy.
|
| 151 |
+
|
| 152 |
+
The original DeepTyper model makes predictions for each variable occurrence rather than declaration. In order to conduct a meaningful comparison between DeepTyper and LAMBDANET, we implemented a variant of DeepTyper that makes a single prediction for each variable (by averaging over the RNN internal states of all occurrences of the same variable before making the prediction). Moreover, for a fair comparison, we made sure both DeepTyper and LAMBDANET are using the same improved naming feature that splits words into tokens.
|
| 153 |
+
|
| 154 |
+
Our main results are summarized below, where the Declaration (resp. Occurrence) column shows accuracy per variable declaration (resp. token-level occurrence). Note that we obtain occurrence-level accuracy from declaration-level accuracy by weighting each variable by its number of occurrences.
|
| 155 |
+
|
| 156 |
+
<table><tr><td>Model</td><td colspan="2">Top1 Accuracy (%) Declaration Occurrence</td></tr><tr><td>DeepTyper</td><td>61.5</td><td>67.4</td></tr><tr><td>LAMBDANETlib (K=6)</td><td>75.6</td><td>77.0</td></tr></table>
|
| 157 |
+
|
| 158 |
+
program. Instead, they only need to annotate some key places (e.g., function parameters and return types, class members) and let the forward inference algorithm to figure out the rest of the types. Therefore, in our training set, we can keep the user annotations on these key places and run the TS compiler to recover these implicitly specified types as additional labels.
|
| 159 |
+
|
| 160 |
+
Table 2: Accuracy when predicting all types.
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Model</td><td colspan="3">Top1 Accuracy (%)</td><td colspan="3">Top5 Accuracy (%)</td></tr><tr><td></td><td>Yuser</td><td>Vlib</td><td>Overall</td><td>Vuser</td><td>Vlib</td><td>Overall</td></tr><tr><td>TS COMPILER</td><td>2.66</td><td>14.39</td><td>8.98</td><td>=</td><td>1</td><td>=</td></tr><tr><td>SIMILARNAME</td><td>24.1</td><td>0.78</td><td>15.7</td><td>42.5</td><td>3.19</td><td>28.4</td></tr><tr><td>LAMBDANET (K=6)</td><td>53.4</td><td>66.9</td><td>64.2</td><td>77.7</td><td>86.2</td><td>84.5</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Table 3: Performance of different GNN iterations (left) and ablations (right).
|
| 165 |
+
|
| 166 |
+
<table><tr><td>K</td><td colspan="2">Top1 Accuracy (%) Yuser Vlib</td></tr><tr><td>6</td><td>53.4</td><td>Overall 64.2</td></tr><tr><td>4</td><td>48.4</td><td>66.9 65.5 62.0</td></tr><tr><td>2</td><td>47.3 61.7</td><td>58.8</td></tr><tr><td>1</td><td>16.8 48.2</td><td>41.9</td></tr><tr><td>0</td><td>0.0 17.0</td><td>13.6</td></tr></table>
|
| 167 |
+
|
| 168 |
+
<table><tr><td>Ablation (K= 4)</td><td colspan="2">Top1 Accuracy (%) Vuser Ylib Overall</td></tr><tr><td>LAMBDANET</td><td>48.4 65.5</td><td>62.0</td></tr><tr><td>No Attention in NPAIR</td><td>44.1</td><td>57.6 54.9</td></tr><tr><td>No Contextual</td><td>27.2</td><td>52.6 47.5</td></tr><tr><td>No Logical*</td><td>24.7</td><td>36.2</td></tr><tr><td>Simple Aggregation</td><td>40.2</td><td>61.5</td></tr></table>
|
| 169 |
+
|
| 170 |
+
∗ Training was unstable and experienced gradient explosion.
|
| 171 |
+
|
| 172 |
+
As we can see from the table, LAMBDANET achieves significantly better results compared to DeepTyper. In particular, LAMBDANET outperforms DeepTyper by $1 4 . 1 \%$ (absolute) for declarationlevel accuracy and by $9 . 6 \%$ for occurrence-level accuracy.
|
| 173 |
+
|
| 174 |
+
Note that the accuracy we report for DeepTyper $( 6 7 . 4 \% )$ is not directly comparable to the original accuracy reported in Hellendoorn et al. (2018) $( 5 6 . 9 \% )$ for the following reasons. While we perform static analysis and have a strict distinction of library vs. user-defined types and only evaluate both tools on library type annotations in this experiment, their implementation treat types as tokens and does not have this distinctions. Hence, their model also considers a much larger prediction space consisting of many user-defined types—most of which are never used outside of the project in which they are defined—and is also evaluated on a different set of annotations than ours.
|
| 175 |
+
|
| 176 |
+
# 5.2 PREDICTING USER-DEFINED TYPES
|
| 177 |
+
|
| 178 |
+
As mentioned earlier, our approach differs from prior work in that it is capable of predicting userdefined types; thus, in our second experiment, we extend LAMBDANET’s prediction space to also include user-defined types. However, since such types are not in the prediction space of prior work (Hellendoorn et al., 2018), we implemented two simpler baselines that can be used to calibrate our model’s performance. Our first baseline is the type inference performed by the TypeScript compiler, which is sound but incomplete (i.e., if it infers a type, it is guaranteed to be correct, but it infers type any for most variables).6 Our second baseline, called SIMILARNAME, is inspired by the similarity between variable names and their corresponding types; it predicts the type of each variable $v$ to be the type whose name shares the most number of common word tokens with $v$ .
|
| 179 |
+
|
| 180 |
+
The results of this experiment are shown in Table 2, which shows the top-1 and top-5 accuracy for both user-defined and library types individually as well as overall accuracy. In terms of overall prediction accuracy, LAMBDANET achieves $6 4 . 2 \%$ for top-1 and $8 4 . 5 \%$ for top-5, significantly outperforming both baselines. Our results suggest that our fusion of logical and contextual information to predict types is far more effective than rule-based incorporation of these in isolation.
|
| 181 |
+
|
| 182 |
+
# 5.3 ABLATION STUDY
|
| 183 |
+
|
| 184 |
+
Table 3 shows the results of an ablation study in which (a) we vary the number of message-passing iterations (left) and (b) disable various features of our architecture design (right). As we can see from the left table, accuracy continues to improve as we increase the number of message passing iterations as high as 6; this gain indicates that our network learns to perform inference over long distances. The right table shows the impact of several of our design choices on the overall result.
|
| 185 |
+
|
| 186 |
+
For example, if we do not use Contextual edges (resp. Logical edges), overall accuracy drops by $1 4 . 5 \%$ (resp. $2 5 . 8 \%$ ). These drops indicate that both kinds of predicates are crucial for achieving good accuracy. We also see that the attention layer for NPAIR makes a significant difference for both library and user-defined types. Finally, Simple Aggregation is a variant of LAMBDANET that uses a simpler aggregation operation which replaces the attention-based weighed sum in $\mathrm { E q ~ } 1$ with a simple average. As indicated by the last row of Table 3 (right), attention-based aggregation makes a substantial difference for user-defined types.
|
| 187 |
+
|
| 188 |
+
# 5.4 COMPARISON WITH JSNICE
|
| 189 |
+
|
| 190 |
+
Since JSNice (Raychev et al., 2015) cannot properly handle class definitions and user-defined types, for a meaningful comparison, we compared both tools’ performance on top-level functions randomly sampled from our test set. We filtered out functions whose parameters are not library types and manually ensured that all all the dependency definitions are also included. In this way, we constructed a small benchmark suite consisting of 41 functions. Among the 107 function parameter and return type annotations, LAMBDANET correctly predicted 77 of them, while JSNice only got 48 of them right. These results suggest that LAMBDANET outperforms JSNice, even when evaluated only on the places where JSNice is applicable.
|
| 191 |
+
|
| 192 |
+
# 6 RELATED WORK
|
| 193 |
+
|
| 194 |
+
Type Inference using Statistical Methods. There are several previous works on predicting likely type annotations for dynamically typed languages: Raychev et al. (2015) and Xu et al. (2016) use structured inference models for Javascript and Python, but their approaches do not take advantage of deep learning and are limited to a very restricted prediction space. Hellendoorn et al. (2018) and Jangda & Anand (2019) model programs as sequences and AST trees and apply deep learning models (RRNs and Tree-RNNs) for TypeScript and Python programs. Malik et al. (2019) make use of a different source of information and take documentation strings as part of their input. However, all these previous works are limited to predicting types from a fixed vocabulary.
|
| 195 |
+
|
| 196 |
+
Graph Embedding of Programs. Allamanis et al. (2017) are the first to use GNNs to obtain deep embedding of programs, but they focus on predicting variable names and misuses for $C ^ { \sharp }$ and rely on static type information to construct the program graph. Wang et al. (2017) use GNNs to encode mathematical formulas for premise selection in automated theorem proving. The way we encode types has some similarity to how they encode quantified formulas, but while their focus is on higherorder formulas, our problem requires encoding object types. Velickovi ˇ c et al. (2018) are the first to ´ use an attention mechanism in GNNs. While they use attention to compute node embeddings from messages, we use attention to compute certain messages from node embeddings.
|
| 197 |
+
|
| 198 |
+
Predicting from an Open Vocabulary. Predicting unseen labels at test time poses a challenge for traditional machine learning methods. For computer vision applications, solutions might involve looking at object attributes (Farhadi et al., 2017) or label similarity Wang et al. (2018); for natural language, similar techniques are applied to generalize across semantic properties of utterances (Dauphin et al., 2013), entities (Eshel et al., 2017), or labels (Ren et al., 2016). Formally, most of these approaches compare an embedding of an input to some embedding of the label; what makes our approach a pointer network (Vinyals et al., 2015) is that our type encodings are derived during the forward pass on the input, similar to unknown words for machine translation (Gulcehre et al., 2016).
|
| 199 |
+
|
| 200 |
+
# 7 CONCLUSIONS
|
| 201 |
+
|
| 202 |
+
We have presented LAMBDANET, a neural architecture for type inference that combines the strength of explicit program analysis with graph neural networks. LAMBDANET not only outperforms other state-of-the-art tools when predicting library types, but can also effectively predict user-defined types that have not been encountered during training. Our ablation studies demonstrate the usefulness of our proposed logical and contextual hyperedges.
|
| 203 |
+
|
| 204 |
+
For future work, there are several potential improvements and extensions to our current system. One limitation of our current architecture is the simplified treatment of function types and generic types (i.e., collapsing them into their non-generic counterparts). Extending the prediction space to also include structured types would allow us to make full use of the rich type systems many modern languages such as TypeScript provide. Another important direction is to enforce hard constraints during inference such that the resulting type assignments are guaranteed to be consistent.
|
| 205 |
+
|
| 206 |
+
# ACKNOWLEDGMENTS
|
| 207 |
+
|
| 208 |
+
We would like to thank DeepTyper authors, Vincent J. Hellendoorn, Christian Bird, Earl T. Barr, and Miltiadis Allamanis, for sharing their data set and helping us set up our experimental comparisons. We also thank the ICLR reviewers for their insightful comments and constructive suggestions. Finally, we would also like to thank Shankara Pailoor, Yuepeng Wang, Jocelyn Chen, and other UToPiA group members for their kind support and useful feedback. This project was supported in part by NSF grant CCF-1762299.
|
| 209 |
+
|
| 210 |
+
# REFERENCES
|
| 211 |
+
|
| 212 |
+
Deeplearning4j. https://github.com/eclipse/deeplearning4j. Accessed: 2019- 09-24.
|
| 213 |
+
|
| 214 |
+
Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. ICLR, 2017.
|
| 215 |
+
|
| 216 |
+
Davide Ancona and Elena Zucca. Principal typings for java-like languages. In ACM SIGPLAN Notices, volume 39, pp. 306–317. ACM, 2004.
|
| 217 |
+
|
| 218 |
+
Gavin Bierman, Mart´ın Abadi, and Mads Torgersen. Understanding typescript. In Richard Jones (ed.), ECOOP 2014 – Object-Oriented Programming, pp. 257–281, Berlin, Heidelberg, 2014. Springer Berlin Heidelberg. ISBN 978-3-662-44202-9.
|
| 219 |
+
|
| 220 |
+
Benjamin Chung, Paley Li, Francesco Zappa Nardelli, and Jan Vitek. Kafka: Gradual typing for objects. In ECOOP 2018-2018 European Conference on Object-Oriented Programming, 2018.
|
| 221 |
+
|
| 222 |
+
Yann Dauphin, Gokhan Tur, Dilek Z. Hakkani-Tur, and Larry P. Heck. Zero-shot learning for semantic utterance classification. In ICLR, 2013.
|
| 223 |
+
|
| 224 |
+
Yotam Eshel, Noam Cohen, Kira Radinsky, Shaul Markovitch, Ikuya Yamada, and Omer Levy. Named entity disambiguation for noisy text. In CoNLL, 2017.
|
| 225 |
+
|
| 226 |
+
Ali Farhadi, Ian Endres, Derek Hoiem, and David Forsyth. Describing objects by their attributes. In CVPR, 2017.
|
| 227 |
+
|
| 228 |
+
Zheng Gao, Christian Bird, and Earl T. Barr. To type or not to type: Quantifying detectable bugs in javascript. In Proceedings of the 39th International Conference on Software Engineering, ICSE ’17, pp. 758–769, Piscataway, NJ, USA, 2017. IEEE Press. ISBN 978-1-5386-3868-2. doi: 10.1109/ICSE.2017.75. URL https://doi.org/10.1109/ICSE.2017.75.
|
| 229 |
+
|
| 230 |
+
Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. In Proceedings of the ACL, 2016.
|
| 231 |
+
|
| 232 |
+
Stefan Hanenberg, Sebastian Kleinschmager, Romain Robbes, Eric Tanter, and Andreas Stefik. An ´ empirical study on the impact of static typing on software maintainability. Empirical Software Engineering, 19:1335–1382, 2013.
|
| 233 |
+
|
| 234 |
+
Vincent J. Hellendoorn, Christian Bird, Earl T. Barr, and Miltiadis Allamanis. Deep learning type inference. In Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2018, pp. 152–162, New York, NY, USA, 2018. ACM. ISBN 978-1-4503-5573-5. doi: 10.1145/3236024. 3236051. URL http://doi.acm.org/10.1145/3236024.3236051.
|
| 235 |
+
|
| 236 |
+
Abhinav Jangda and Gaurav Anand. Predicting variable types in dynamically typed programming languages. arXiv preprint arXiv:1901.05138, 2019.
|
| 237 |
+
|
| 238 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014.
|
| 239 |
+
|
| 240 |
+
Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated graph sequence neural networks. ICLR, abs/1511.05493, 2016.
|
| 241 |
+
|
| 242 |
+
Rabee Sohail Malik, Jibesh Patra, and Michael Pradel. Nl2type: inferring javascript function types from natural language information. In Proceedings of the 41st International Conference on Software Engineering, pp. 304–315. IEEE Press, 2019.
|
| 243 |
+
|
| 244 |
+
Lili Mou, Ge Li, Lu Zhang, Tao Wang, and Zhi Jin. Convolutional neural networks over tree structures for programming language processing. In AAAI, volume 2, pp. 4, 2016.
|
| 245 |
+
|
| 246 |
+
Benjamin C Pierce and David N Turner. Local type inference. ACM Transactions on Programming Languages and Systems (TOPLAS), 22(1):1–44, 2000.
|
| 247 |
+
|
| 248 |
+
Veselin Raychev, Martin Vechev, and Andreas Krause. Predicting program properties from ”big code”. In Proceedings of the 42Nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL ’15, pp. 111–124, New York, NY, USA, 2015. ACM.
|
| 249 |
+
|
| 250 |
+
Xiang Ren, Wenqi He, Meng Qu, Clare R Voss, Heng Ji, and Jiawei Han. Label noise reduction in entity typing by heterogeneous partial-label embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1825–1834. ACM, 2016.
|
| 251 |
+
|
| 252 |
+
Jeremy G. Siek and Walid Taha. Gradual typing for objects. In ECOOP, 2007.
|
| 253 |
+
|
| 254 |
+
Dmitriy Traytel, Stefan Berghofer, and Tobias Nipkow. Extending hindley-milner type inference with coercive structural subtyping. In Asian Symposium on Programming Languages and Systems, pp. 89–104. Springer, 2011.
|
| 255 |
+
|
| 256 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \` Bengio. Graph Attention Networks. International Conference on Learning Representations, 2018. accepted as poster.
|
| 257 |
+
|
| 258 |
+
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NeurIPS, 2015.
|
| 259 |
+
|
| 260 |
+
Michael M Vitousek, Andrew M Kent, Jeremy G Siek, and Jim Baker. Design and evaluation of gradual typing for python. In ACM SIGPLAN Notices, volume 50, pp. 45–56. ACM, 2014.
|
| 261 |
+
|
| 262 |
+
Mingzhe Wang, Yihe Tang, Jian Wang, and Jia Deng. Premise selection for theorem proving by deep graph embedding. In Advances in Neural Information Processing Systems, pp. 2786–2796, 2017.
|
| 263 |
+
|
| 264 |
+
Xiaolong Wang, Yufei Ye, and Abhinav Gupta. Zero-shot recognition via semantic embeddings and knowledge graphs. In CVPR, 2018.
|
| 265 |
+
|
| 266 |
+
Zhaogui Xu, Xiangyu Zhang, Lin Chen, Kexin Pei, and Baowen Xu. Python probabilistic type inference with natural language support. In Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 607–618. ACM, 2016.
|
parse/train/Hkx6hANtwH/Hkx6hANtwH_content_list.json
ADDED
|
@@ -0,0 +1,1367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LAMBDANET: PROBABILISTIC TYPE INFERENCE USING GRAPH NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
758,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jiayi Wei, Maruth Goyal, Greg Durrett, Isil Dillig ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
169,
|
| 20 |
+
532,
|
| 21 |
+
184
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Department of Computer Science \nUniversity of Texas at Austin \n{jiayi, maruth, gdurrett, isil}@cs.utexas.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
185,
|
| 31 |
+
619,
|
| 32 |
+
226
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
262,
|
| 43 |
+
544,
|
| 44 |
+
277
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "As gradual typing becomes increasingly popular in languages like Python and TypeScript, there is a growing need to infer type annotations automatically. While type annotations help with tasks like code completion and static error catching, these annotations cannot be fully determined by compilers and are tedious to annotate by hand. This paper proposes a probabilistic type inference scheme for TypeScript based on a graph neural network. Our approach first uses lightweight source code analysis to generate a program abstraction called a type dependency graph, which links type variables with logical constraints as well as name and usage information. Given this program abstraction, we then use a graph neural network to propagate information between related type variables and eventually make type predictions. Our neural architecture can predict both standard types, like number or string, as well as user-defined types that have not been encountered during training. Our experimental results show that our approach outperforms prior work in this space by $1 4 \\%$ (absolute) on library types, while having the ability to make type predictions that are out of scope for existing techniques. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
299,
|
| 54 |
+
764,
|
| 55 |
+
507
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
547,
|
| 66 |
+
334,
|
| 67 |
+
563
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Dynamically typed languages like Python, Ruby, and Javascript have gained enormous popularity over the last decade, yet their lack of a static type system comes with certain disadvantages in terms of maintainability (Hanenberg et al., 2013), the ability to catch errors at compile time, and code completion support (Gao et al., 2017). Gradual typing can address these shortcomings: program variables have optional type annotations so that the type system can perform static type checking whenever possible (Siek & Taha, 2007; Chung et al., 2018). Support for gradual typing now exists in many popular programming languages (Bierman et al., 2014; Vitousek et al., 2014), but due to their heavy use of dynamic language constructs and the absence of principal types (Ancona & Zucca, 2004), compilers cannot perform type inference using standard algorithms from the programming languages community (Bierman et al., 2014; Traytel et al., 2011; Pierce & Turner, 2000), and manually adding type annotations to existing codebases is a tedious and error-prone task. As a result, legacy programs in these languages do not reap all the benefits of gradual typing. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
583,
|
| 77 |
+
825,
|
| 78 |
+
750
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To reduce the human effort involved in transitioning from untyped to statically typed code, this work focuses on a learning-based approach to automatically inferring likely type annotations for untyped (or partially typed) codebases. Specifically, we target TypeScript, a gradually-typed variant of Javascript for which plenty of training data is available in terms of type-annotated programs. While there has been some prior work on inferring type annotations for TypeScript using machine learning (Hellendoorn et al., 2018; Raychev et al., 2015), prior work in this space has several shortcomings. First, inference is restricted to a finite dictionary of types that have been observed during training time—i.e., they cannot predict any user-defined data types. Second, even without considering user-defined types, the accuracy of these systems is relatively low, with the current state-of-theart achieving $5 6 . 9 \\%$ accuracy for primitive/library types (Hellendoorn et al., 2018). Finally, these techniques can produce inconsistent results in that they may predict different types for different token-level occurrences of the same variable. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
757,
|
| 88 |
+
825,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/76a4914e3ed97a06eaeb1df44f451c9eadd1a690c6cdf2fa9da57ca02985eee1.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: A motivating example: Given an unannotated version of this TypeScript program, a traditional rule-based type inference algorithm cannot soundly deduce the true type annotations (shown in green). "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
209,
|
| 102 |
+
80,
|
| 103 |
+
691,
|
| 104 |
+
219
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In this paper, we propose a new probabilistic type inference algorithm for TypeScript to address these shortcomings using a graph neural network architecture (GNN) (Velickovi ˇ c et al., 2018; Li et al., ´ 2016; Mou et al., 2016). Our method uses lightweight source code analysis to transform the program into a new representation called a type dependency graph, where nodes represent type variables and labeled hyperedges encode relationships between them. In addition to expressing logical constraints (e.g., subtyping relations) as in traditional type inference, a type dependency graph also incorporates contextual hints involving naming and variable usage. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
301,
|
| 114 |
+
825,
|
| 115 |
+
400
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Given such a type dependency graph, our approach uses a GNN to compute a vector embedding for each type variable and then performs type prediction using a pointer-network-like architecture (Vinyals et al., 2015). The graph neural network itself requires handling a variety of hyperedge types—some with variable numbers of arguments—for which we define appropriate graph propagation operators. Our prediction layer compares the vector embedding of a type variable with vector representations of candidate types, allowing us to flexibly handle user-defined types that have not been observed during training. Moreover, our model predicts consistent type assignments by construction because it makes variable-level rather than token-level predictions. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
406,
|
| 125 |
+
825,
|
| 126 |
+
518
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "We implemented our new architecture as a tool called LAMBDANET and evaluated its performance on real-world TypeScript projects from Github. When only predicting library types, LAMBDANET has a top1 accuracy of $7 5 . 6 \\%$ , achieving a significant improvement over DeepTyper $( 6 1 . 5 \\% )$ . In terms of overall accuracy (including user-defined types), LAMBDANET achieves a top1 accuracy of around $6 4 . 2 \\%$ , which is $5 5 . 2 \\%$ (absolute) higher than the TypeScript compiler. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
525,
|
| 136 |
+
825,
|
| 137 |
+
594
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Contributions. This paper makes the following contributions: (1) We propose a probabilistic type inference algorithm for TypeScript that uses deep learning to make predictions from the type dependency graph representation of the program. (2) We describe a technique for computing vector embeddings of type variables using GNNs and propose a pointer-network-like method to predict user-defined types. (3) We experimentally evaluate our approach on hundreds of real-world TypeScript projects and show that our method significantly improves upon prior work. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
602,
|
| 147 |
+
825,
|
| 148 |
+
685
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 MOTIVATING EXAMPLE AND PROBLEM SETTING",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
708,
|
| 159 |
+
611,
|
| 160 |
+
724
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Figure 1 shows a (type-annotated) TypeScript program. Our goal in this work is to infer the types shown in the figure, given an unannotated version of this code. We now justify various aspects of our solution using this example. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
741,
|
| 170 |
+
823,
|
| 171 |
+
784
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Typing constraints. The use of certain functions/operators in Figure 1 imposes hard constraints on the types that can be assigned to program variables. For example, in the forward function, variables $_ \\textrm { x }$ , y must be assigned a type that supports a concat operation; hence, x, y could have types like string, array, or Tensor, but not, for example, boolean. This observation motivates us to incorporate typing constraints into our model. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
791,
|
| 181 |
+
825,
|
| 182 |
+
861
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Contextual hints. Typing constraints are not always sufficient for determining the intended type of a variable. For example, for variable network in function restore, the typing constraints require network’s type to be a class with a field called time, but there can be many classes that have such an attribute (e.g., Date). However, the similarity between the variable name network ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
867,
|
| 192 |
+
823,
|
| 193 |
+
924
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "1 var c1: $\\tau _ { 8 } =$ class MyNetwork { \n2 name: τ1; time: $\\tau _ { 2 }$ ; \n3 var m1: $\\begin{array} { r l } { \\tau _ { 9 } } & { { } = } \\end{array}$ function forward(x: $\\tau _ { 3 }$ , $y : \\ \\tau _ { 4 } ) : \\tau _ { 5 }$ { \n4 var v1: $\\tau _ { 1 0 } ~ = ~ \\mathrm { ~ x ~ }$ .concat; var v2: $\\tau _ { 1 1 } ~ = ~ \\mathrm { { v } 1 }$ (y); \n5 var v3: $\\tau _ { 1 2 } =$ v2.TIMES_OP; var v4: $\\tau _ { 1 3 } ~ = ~ \\mathrm { ~ v ~ } 3$ (NUMBER); \n6 return v4; \n7 } \n8 // more classes.. \n9 var $\\pm 1 : \\tau _ { 1 4 } =$ function restore (network: $\\tau _ { 6 } ) : \\tau _ { 7 }$ { \n10 var v3: $\\tau _ { 1 5 } ~ =$ network.time; \n11 var v4: $\\tau _ { 1 6 } ~ =$ readNumber(STRING); \n12 network.time $\\qquad = \\quad \\mathtt { v 4 }$ ; // more code... \n13 } ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
243,
|
| 202 |
+
74,
|
| 203 |
+
805,
|
| 204 |
+
238
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "image",
|
| 210 |
+
"img_path": "images/c379e43ee1c078f294bc4ea605359a81dff643be05acb373a176d554360d5b82.jpg",
|
| 211 |
+
"image_caption": [
|
| 212 |
+
"Figure 2: An intermediate representation of the (unannotated version) program from Figure 1. The $\\tau _ { i }$ represent type variables, among which $\\tau _ { 8 } - \\tau _ { 1 6 }$ are newly introduced for intermediate expressions. ",
|
| 213 |
+
"Figure 3: Example hyperedges for Figure 2. Edge labels in gray (resp. red) are positional arguments (resp. identifiers). (A) The return statement at line 6 induces a subtype relationship between $\\tau _ { 1 3 }$ and $\\tau _ { 5 }$ . $\\mathbf { ( B ) }$ MyNetwork $\\tau _ { 8 }$ declares attributes name $\\tau _ { 1 }$ and time $\\tau _ { 2 }$ and method forward $\\tau _ { 9 }$ . (C) $\\tau _ { 1 4 }$ is associated with a variable whose named is restore. $\\mathbf { \\eta } ^ { ( \\mathbf { D } ) }$ Usage hyperedge for line 10 connects $\\tau _ { 6 }$ and $\\tau _ { 1 5 }$ to all classes with a time attribute. "
|
| 214 |
+
],
|
| 215 |
+
"image_footnote": [],
|
| 216 |
+
"bbox": [
|
| 217 |
+
209,
|
| 218 |
+
308,
|
| 219 |
+
784,
|
| 220 |
+
411
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "and the class name MyNetwork hints that network might have type MyNetwork. Based on this belief, we can further propagate the return type of the library function readNumber (assuming we know it is number) to infer that the type of the time field in MyNetwork is likely to be number. ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
526,
|
| 230 |
+
825,
|
| 231 |
+
568
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "Need for type dependency graph. There are many ways to view programs—e.g., as token sequences, abstract syntax trees, control flow graphs, etc. However, none of these representations is particularly helpful for inferring the most likely type annotations. Thus, our method uses static analysis to infer a set of predicates that are relevant to the type inference problem and represents these predicates using a program abstraction called the type dependency graph. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
574,
|
| 241 |
+
823,
|
| 242 |
+
645
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "Handling user-defined types. As mentioned in Section 1, prior techniques can only predict types seen during training. However, the code from Figure 1 defines its own class called MyNetwork and later uses a variables of type MyNetwork in the restore method. A successful model for this task therefore must dynamically make inferences about user-defined types based on their definitions. ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
651,
|
| 252 |
+
825,
|
| 253 |
+
708
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "2.1 PROBLEM SETTING ",
|
| 260 |
+
"text_level": 1,
|
| 261 |
+
"bbox": [
|
| 262 |
+
176,
|
| 263 |
+
743,
|
| 264 |
+
348,
|
| 265 |
+
757
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "Our goal is to train a type inference model that can take as input an entirely (or partially) unannotated TypeScript project $g$ and output a probability distribution of types for each missing annotation. The prediction space is $\\mathcal { V } ( g ) = \\mathcal { V } _ { \\mathrm { l i b } } \\cup \\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ , where $\\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ is the set of all user-defined types (classes/interfaces) declared within $g$ , and ${ \\mathcal { N } } _ { \\mathrm { l i b } }$ is a fixed set of commonly-used library types. ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
174,
|
| 274 |
+
776,
|
| 275 |
+
825,
|
| 276 |
+
833
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "Following prior work in this space (Hellendoorn et al., 2018; Raychev et al., 2015; Xu et al., 2016), we limit the scope of our prediction to non-polymorphic and non-function types. That is, we do not distinguish between types such as List<T>, List<number>, List<string> etc., and consider them all to be of type List. Similarly, we also collapse function types like number string and string string into a single type called Function. We leave the extension of predicting structured types as future work. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
173,
|
| 285 |
+
840,
|
| 286 |
+
825,
|
| 287 |
+
924
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "table",
|
| 293 |
+
"img_path": "images/adcd764ac59db7fadd7cdac465302b9dd68de82aa6212801e6625211229c7a48.jpg",
|
| 294 |
+
"table_caption": [
|
| 295 |
+
"Table 1: Different types of hyperedges used in a type dependency graph. "
|
| 296 |
+
],
|
| 297 |
+
"table_footnote": [
|
| 298 |
+
"† Although assignment is a special case of a subtype constraint, we differentiate them because these edges appear in different contexts and having uncoupled parameters for these two edge types is beneficial. "
|
| 299 |
+
],
|
| 300 |
+
"table_body": "<table><tr><td>Type</td><td>Edge</td><td>Description</td></tr><tr><td colspan=\"2\">Logical α is used as boolean</td></tr><tr><td>FIXED</td><td>Bool(α)</td></tr><tr><td>FIXED</td><td>Subtype(α, β) α is a subtype of β</td></tr><tr><td>FIXED</td><td>Assign(α, β)t β is assigned to α α=(β1,...,βk)→β*</td></tr><tr><td>NARY NARY</td><td>Function(α,βi,...,βk, β*)</td></tr><tr><td>NARY</td><td>Call(a,β*,β1,..., βk) α=β*(β1,...,βk)</td></tr><tr><td>FIXED</td><td>Object.,(α,βi,...,βk)) α={l1:β1,...,lk :βk} Accesst(a,β) α= β.l</td></tr><tr><td colspan=\"2\">αhas name l</td></tr><tr><td>FIXED</td><td>Contextual</td></tr><tr><td>Namet(α) FIXED</td><td>NameSimilar(α, β) α,βhave similar names</td></tr></table>",
|
| 301 |
+
"bbox": [
|
| 302 |
+
227,
|
| 303 |
+
119,
|
| 304 |
+
772,
|
| 305 |
+
297
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "3 TYPE DEPENDENCY GRAPH ",
|
| 312 |
+
"text_level": 1,
|
| 313 |
+
"bbox": [
|
| 314 |
+
176,
|
| 315 |
+
358,
|
| 316 |
+
437,
|
| 317 |
+
375
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "A type dependency graph $\\mathcal { G } = ( N , E )$ is a hypergraph where nodes $N$ represent type variables and labeled hyperedges $E$ encode relationships between them. We extract the type dependency graph of a given TypeScript program by performing static analysis on an intermediate representation of its source code, which allows us to associate a unique variable with each program sub-expression. As an illustration, Figure 2 shows the intermediate representation of the code from Figure 1. ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
390,
|
| 327 |
+
825,
|
| 328 |
+
460
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "Intuitively, a type dependency graph encodes properties of type variables as well as relationships between them. Each hyperedge corresponds to one of the predicates shown in Table 1. We partition our predicates (i.e., hyperedges) into two classes, namely Logical and Contextual, where the former category can be viewed as imposing hard constraints on type variables and the latter category encodes useful hints extracted from names of variables, functions, and classes. ",
|
| 335 |
+
"bbox": [
|
| 336 |
+
174,
|
| 337 |
+
467,
|
| 338 |
+
823,
|
| 339 |
+
536
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 3
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "Figure 3 shows some of the hyperedges in the type dependency graph $\\mathcal { G }$ extracted from the intermediate representation in Figure 2. As shown in Figure 3(A), our analysis extracts a predicate Subtype $( \\tau _ { 1 3 } , \\tau _ { 5 } )$ from this code because the type variable associated with the returned expression $\\mathtt { v 4 }$ must be a subtype of the enclosing function’s return type. Similarly, as shown in Figure 3(B), our analysis extracts a predicate $\\mathrm { O b j e c t } _ { \\mathrm { n a m e , t i m e , f o r w a r d } } ( \\tau _ { 8 } , \\tau _ { 1 } , \\tau _ { 2 } , \\tau _ { 9 } )$ because $\\tau _ { 8 }$ is an object type whose name, time, and forward members are associated with type variables $\\tau _ { 1 } , \\tau _ { 2 } , \\tau _ { 9 }$ , respectively. ",
|
| 346 |
+
"bbox": [
|
| 347 |
+
173,
|
| 348 |
+
544,
|
| 349 |
+
825,
|
| 350 |
+
627
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "In contrast to the Subtype and Object predicates that impose hard constraints on type variables, the next two hyperedges shown in Figure 3 encode contextual clues obtained from variable names. Figure 3(C) indicates that type variable $\\tau _ { 1 4 }$ is associated with an expression named restore. While this kind of naming information is invisible to TypeScript’s structural type system (?), it serves as a useful input feature for our GNN architecture described in Section 4. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
174,
|
| 359 |
+
635,
|
| 360 |
+
825,
|
| 361 |
+
704
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "In addition to storing the unique variable name associated with each type variable, the type dependency graph also encodes similarity between variable and class names. The names of many program variables mimic their types: for example, instances of a class called MyNetwork might often be called network or network1. To capture this correspondence, our type dependency graph also contains a hyperedge called NameSimilar that connects type variables $\\alpha$ and $\\beta$ if their corresponding tokenized names have a non-empty intersection.1 ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
712,
|
| 371 |
+
825,
|
| 372 |
+
795
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "As shown in Table 1, there is a final type of hyperedge called Usage that facilitates type inference of object types. In particular, if there is an object access var $\\mathrm { ~ y ~ } = \\mathrm { ~ x ~ . ~ } \\bot$ , we extract the predicate $\\operatorname { U s a g e } _ { l } ( ( \\tau _ { x } , \\tau _ { y } ) , ( \\alpha _ { 1 } , \\beta _ { 1 } ) , \\dots , ( \\alpha _ { k } , \\beta _ { k } ) )$ to connect $_ \\textrm { x }$ and y’s type variables with all classes $\\alpha _ { i }$ that contain an attribute/method $\\beta _ { i }$ whose name is l. Figure 3 shows a Usage hyperedge extracted from the code in Figure 2. As we will see in the next section, our GNN architecture utilizes a special attention mechanism to pass information along these usage edges. ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
801,
|
| 382 |
+
825,
|
| 383 |
+
886
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "4 NEURAL ARCHITECTURE ",
|
| 390 |
+
"text_level": 1,
|
| 391 |
+
"bbox": [
|
| 392 |
+
176,
|
| 393 |
+
102,
|
| 394 |
+
416,
|
| 395 |
+
118
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 4
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "Our neural architecture for making type predictions consists of two main parts. First, a graph neural network passes information along the type dependency graph to produce a vector-valued embedding for each type variable based on its neighbors. Second, a pointer network compares each variable’s type embedding to the embedding vectors of candidate types (both computed from the previous phase) to place a distribution over possible type assignments. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
173,
|
| 404 |
+
133,
|
| 405 |
+
825,
|
| 406 |
+
204
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 4
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "Given a type dependency graph $\\mathcal { G } = ( N , E )$ , we first to compute a vector embedding $\\mathbf { v } _ { n }$ for each $n \\in N$ such that these vectors implicitly encode type information. Because our program abstraction is a graph, a natural choice is to use a graph neural network architecture. From a high level, this architecture takes in initial vectors $ { \\mathbf { v } } _ { n } ^ { 0 }$ for each node $n$ , performs $K$ rounds of message-passing in the graph neural network, and returns the final representation for each type variable. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
210,
|
| 416 |
+
825,
|
| 417 |
+
281
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 4
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "In more detail, let $\\mathbf { v } _ { n } ^ { t }$ denote the vector representation of node $n$ at the tth step, where each round consists of a message passing and an aggregation step. The message passing step computes a vectorvalued update to send to the $j$ th argument of each hyper-edge $e \\in E$ connecting nodes $p _ { 1 } , \\ldots , p _ { a }$ . Then, once all the messages have been computed, the aggregation step computes a new embedding $\\mathbf { v } _ { n } ^ { t }$ for each $n$ by combining all messages sent to $n$ : ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
174,
|
| 426 |
+
287,
|
| 427 |
+
825,
|
| 428 |
+
358
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "equation",
|
| 434 |
+
"img_path": "images/0704bc0c7e8c893792ec823fb48f17a51aad7e1fc559005791ffd19d40365088.jpg",
|
| 435 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { m } _ { e , p _ { j } } ^ { t } = \\mathrm { M s g } _ { e , j } \\bigl ( \\mathbf { v } _ { p _ { 1 } } ^ { t - 1 } , \\ldots , \\mathbf { v } _ { p _ { a } } ^ { t - 1 } \\bigr ) \\quad \\mathbf { v } _ { n } ^ { t } = \\mathrm { A g g r } ( \\mathbf { v } _ { n } ^ { t - 1 } , \\{ \\mathbf { m } _ { e , n } ^ { t } | e \\in \\mathcal { N } ( n ) \\} ) } \\end{array}\n$$",
|
| 436 |
+
"text_format": "latex",
|
| 437 |
+
"bbox": [
|
| 438 |
+
251,
|
| 439 |
+
366,
|
| 440 |
+
745,
|
| 441 |
+
387
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 4
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "Here, $\\mathcal { N }$ is the neighborhood function, and $\\mathrm { M s g } _ { e }$ denotes a particular neural operation that depends on the type of the edge (FIXED, NARY, or NPAIRS), which we will describe later. ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
173,
|
| 450 |
+
395,
|
| 451 |
+
821,
|
| 452 |
+
422
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "Initialization. In our GNN, nodes correspond to type variables and each type variable is associated either with a program variable or a constant. We refer to nodes representing constants (resp. variables) as constant (resp. variable) nodes, and our initialization procedure works differently depending on whether or not $n$ is a constant node. Since the types of each constant are known, we set the initial embedding for each constant node of type $\\tau$ (e.g., string) to be a trainable vector $\\mathbf { c } _ { \\tau }$ and do not update it during GNN iterations (i.e., $\\forall t , \\mathbf { v } _ { n } ^ { t } = \\mathbf { c } _ { \\tau } )$ ). On the other hand, if $n$ is a variable node, then we have no information about its type during initialization; hence, we initialize all variable nodes using a generic trainable initial vector (i.e., they are initialized to the same vector but updated to different values during GNN iterations). ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
173,
|
| 461 |
+
429,
|
| 462 |
+
825,
|
| 463 |
+
556
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "Message passing. Our Msg operator depends on the category of edge it corresponds to (see Table 1); however, weights are shared between all instances of the same hyperedge type. In what follows, we describe the neural layer that is used to compute messages for each type of hyperedge: ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
174,
|
| 472 |
+
563,
|
| 473 |
+
825,
|
| 474 |
+
604
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "• FIXED: Since these edges correspond to fixed arity predicates (and the position of each argument matters), we compute the message of the $j$ th argument by first concatenating the embedding vector of all arguments and then feed the result vector to a 2-layer MLP for the $j$ th argument. In addition, since hyperedges of type Access have an identifier, we also embed the identifier as a vector and treat it as an extra argument. (We describe the details of identifier embedding later in this section.) • NARY: Since NARY edges connect a variable number of nodes, we need an architecture that can deal with this challenge. In our current implementation of LAMBDANET, we use a simple architecture that is amenable to batching. Specifically, given an NARY edge $E _ { l _ { 1 } , \\dots , l _ { k } } ( \\alpha , \\beta _ { 1 } , \\dots , \\beta _ { k } )$ (for Function and $C a l l$ , the labels $l _ { j }$ are argument positions), the set of messages for $\\alpha$ is computed as $\\{ \\mathrm { M L P } _ { \\alpha } ( \\mathbf { v } _ { l _ { j } } \\| \\mathbf { v } _ { \\beta _ { j } } ) \\vert j = 1 \\dots k \\}$ , and the message for each $\\beta _ { j }$ is computed as $\\mathrm { M L P } _ { \\beta } ( \\mathbf { v } _ { l _ { j } } \\| \\mathbf { v } _ { \\alpha } )$ . Observe that we compute $k$ different messages for $\\alpha$ , and the message for each $\\beta _ { j }$ only depends on the vector embedding of $\\alpha$ and its position $j$ , but not the vector embeddings of other $\\beta _ { j }$ ’s.2 • NPAIRS: This is a special category associated with $\\operatorname { U s a g e } _ { l } ( ( \\alpha ^ { * } , \\beta ^ { * } ) , ( \\alpha _ { 1 } , \\beta _ { 1 } ) , \\dots , ( \\alpha _ { k } , \\beta _ { k } ) )$ . Recall that this kind of edge arises from expressions of the form $b = a . l$ and is used to connect $a$ and $b$ ’s type variables with all classes $\\alpha _ { i }$ that contain an attribute/method $\\beta _ { i }$ with label $l$ . Intuitively, if $a$ ’s type embedding is very similar to a type $C$ , then $b$ ’s type will likely be the same as $C . l$ ’s type. Following this reasoning, we use dot-product based attention to compute the messages for $\\alpha ^ { * }$ and $\\beta ^ { * }$ . Specifically, we use $\\alpha ^ { * }$ and $\\alpha _ { j }$ ’s as attention keys and $\\beta _ { j }$ ’s as attention values to compute the message for $\\beta ^ { * }$ (and switch the key-value roles to compute the message for $\\alpha ^ { * }$ ): ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
173,
|
| 483 |
+
618,
|
| 484 |
+
825,
|
| 485 |
+
883
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "",
|
| 492 |
+
"bbox": [
|
| 493 |
+
186,
|
| 494 |
+
103,
|
| 495 |
+
710,
|
| 496 |
+
118
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 5
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/b74803a52c6327a0394255bf6d75a77a568af1f66436189ff151a0ca70cb8ef8.jpg",
|
| 503 |
+
"text": "$$\n\\mathbf { m } _ { e , \\beta ^ { * } } ^ { t } = \\sum _ { j } w _ { j } \\mathbf { v } _ { \\beta _ { j } } ^ { t - 1 } \\quad \\quad \\mathbf { w } = \\mathrm { s o f t m a x } ( \\mathbf { a } ) \\quad \\quad a _ { j } = \\mathbf { v } _ { \\alpha _ { j } } \\cdot \\mathbf { v } _ { \\alpha ^ { * } }\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
297,
|
| 507 |
+
123,
|
| 508 |
+
714,
|
| 509 |
+
159
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 5
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "Aggregation. Recall that the aggregation step combines all messages sent to node $n$ to compute the new embedding $\\boldsymbol { v } _ { n } ^ { t }$ . To achieve this goal, we use a variant of the attention-based aggregation operator proposed in graph attention networks (Velickovi ˇ c et al., 2018). ´ ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
164,
|
| 519 |
+
825,
|
| 520 |
+
207
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 5
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "equation",
|
| 526 |
+
"img_path": "images/8b366af6a97aff66356802892132639cec7f2785168c58d8368fa5d044531487.jpg",
|
| 527 |
+
"text": "$$\nv _ { n } ^ { t } = \\operatorname { A g g r } ( v _ { n } ^ { t - 1 } , \\{ m _ { e , n } ^ { t } | e \\in \\mathcal { N } ( n ) \\} ) = v _ { n } ^ { t - 1 } + \\sum _ { e \\in \\mathcal { N } ( n ) } w _ { e } \\mathbf { M } _ { 1 } m _ { e , n } ^ { t }\n$$",
|
| 528 |
+
"text_format": "latex",
|
| 529 |
+
"bbox": [
|
| 530 |
+
290,
|
| 531 |
+
212,
|
| 532 |
+
705,
|
| 533 |
+
244
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 5
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "where $w _ { e }$ is the attention weight for the message coming from edge $e$ . Specifically, the weights $w _ { e }$ are computed as softmax(a), where $a _ { e } = \\mathrm { L e a k y R e L } \\mathbf { \\bar { u } } ( v _ { n } ^ { t - 1 } \\cdot \\bar { \\mathbf { M } } _ { 2 } m _ { e , n } ^ { t } )$ , and ${ { \\bf { M } } _ { 1 } }$ and $\\mathbf { M } _ { 2 }$ are trainable matrices. Similar to the original GAT architecture, we set the slope of the LeakyReLu to be 0.2, but we use dot-product to compute the attention weights instead of a linear model. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
250,
|
| 543 |
+
825,
|
| 544 |
+
306
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 5
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Identifier embedding. Like in Allamanis et al. (2017), we break variable names into word tokens according to camel case and underscore rules and assign a trainable vector for all word tokens that appear more than once in the training set. For all other tokens, unlike Allamanis et al. (2017), which maps them all into one single <Unknown $>$ token, we randomly mapped them into one of the <Unknown $- \\dot { \\textrm { \\scriptsize 1 } } >$ tokens, where $i$ ranges from 0 to 50 in our current implementation. This mapping is randomly constructed every time we run the GNN and hence helps our neural networks to distinguish different tokens even if they are rare tokens. We train these identifier embeddings end-to-end along with the rest of our architecture. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
311,
|
| 554 |
+
825,
|
| 555 |
+
424
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 5
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Prediction Layer. For each type variable $n$ and each candidate type $c \\in \\mathcal { V } ( g )$ , we use a MLP to compute a compatibility score $s _ { n , c } = \\mathrm { M L P } ( \\mathbf { v } _ { n } , \\mathbf { u } _ { c } )$ , where $\\mathbf { u } _ { c }$ is the embedding vector for $c$ . If $c \\in \\mathcal { V } _ { \\mathrm { l i b } }$ , ${ \\bf v } _ { c }$ is a trainable vector for each library type $c$ ; if $c \\in \\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ , then it corresponds to a node $n _ { c }$ in the type dependency graph of $g$ , so we just use the embedding vector for $n _ { c }$ and set $\\mathbf { u } _ { c } = \\mathbf { v } _ { n _ { c } }$ . Formally, this approach looks like a pointer network (Vinyals et al., 2015), where we use the embeddings computed during the forward pass to predict “pointers” to those types. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
173,
|
| 564 |
+
431,
|
| 565 |
+
825,
|
| 566 |
+
515
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 5
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Given these compatibility scores, we apply a softmax layer to turn them into a probability distribution. i.e., $\\begin{array} { r } { P _ { n } ( c | g ) = \\exp ( s _ { n , c } ) / \\sum _ { c ^ { \\prime } } \\exp ( s _ { n , c ^ { \\prime } } ) } \\end{array}$ . During test time, we max over the probabilities to compute the most likely (or top-N) type assignments. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
174,
|
| 575 |
+
522,
|
| 576 |
+
825,
|
| 577 |
+
564
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 5
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "5 EVALUATION ",
|
| 584 |
+
"text_level": 1,
|
| 585 |
+
"bbox": [
|
| 586 |
+
176,
|
| 587 |
+
584,
|
| 588 |
+
315,
|
| 589 |
+
601
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 5
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "In this section, we describe the results of our experimental evaluation, which is designed to answer the following questions: (1) How does our approach compare to previous work? (2) How well can our model predict user-defined types? (3) How useful is each of our model’s components? ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
176,
|
| 598 |
+
614,
|
| 599 |
+
821,
|
| 600 |
+
657
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Dataset. Similar to Hellendoorn et al. (2018), we train and evaluate our model on popular opensource TypeScript projects taken from Github. Specifically, we collect 300 popular TypeScript projects from Github that contain between 500 to 10, 000 lines of code and where at least $1 0 \\%$ of type annotations are user-defined types. Note that each project typically contains hundreds to thousands of type variables to predict, and these projects in total contain about 1.2 million lines of TypeScript code. Among these 300 projects, we use 60 for testing, 40 for validation, and the remainder for training. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
174,
|
| 609 |
+
664,
|
| 610 |
+
825,
|
| 611 |
+
762
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Code Duplication. We ran jscpd3 on our entire data set and found that only $2 . 7 \\%$ of the code is duplicated. Furthermore, most of these duplicates are intra-project. Thus, we believe that code duplication is not a severe problem in our dataset. ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
768,
|
| 621 |
+
825,
|
| 622 |
+
810
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Preprocessing. Because some of the projects in our benchmark suite are only sparsely type annotated, we augment our labeled training data by using the forward type inference functionality provided by the TypeScript compiler.4 The compiler cannot infer the type of every variable and leaves many labeled as any during failed inference; thus, we exclude any labels in our data set. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
174,
|
| 631 |
+
818,
|
| 632 |
+
825,
|
| 633 |
+
875
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Furthermore, at test time, we evaluate our technique only on annotations that are manually added by developers. This is the same methodology used by Hellendoorn et al. (2018), and, since developers often add annotations where code is most unclear, this constitutes a challenging setting for type prediction. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
103,
|
| 643 |
+
823,
|
| 644 |
+
159
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "Prediction Space. As mentioned in Section 2.1, our approach takes an entire TypeScript project $g$ as its input, and the corresponding type prediction space is $\\mathcal { V } ( g ) = \\mathcal { V } _ { \\mathrm { l i b } } \\cup \\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ . In our experiments, we set $\\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ to be all classes/interfaces defined in $g$ (except when comparing with DeepTyper, where we set $\\mathcal { V } _ { \\mathrm { u s e r } } ( g )$ to be empty), and for ${ \\mathcal { N } } _ { \\mathrm { l i b } }$ , we select the top-100 most common types in our training set. Note that this covers $9 8 \\%$ (resp. $9 7 . 5 \\%$ ) of the non-any annotations for the training (resp. test) set. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
173,
|
| 653 |
+
166,
|
| 654 |
+
825,
|
| 655 |
+
250
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "Hyperparameters We selected hyperparameters by tuning on a validation set as we were developing our model. We use 32-dimensional type embedding vectors, and all MLP transformations in our model use one hidden layer of 32 units, except the MLP for computing scores in the prediction layer, which uses three hidden layers of sizes 32,16, and 8 (and size 1 for output). GNN message-passing layers from different time steps have independent weights. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
257,
|
| 665 |
+
825,
|
| 666 |
+
327
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "We train our model using Adam (Kingma & Ba, 2014) with default parameters ( $\\alpha = 0 . 9$ , $\\beta = 0 . 9 9 9 \\mathrm { \\Omega }$ ) and set the learning rate to be $1 0 ^ { - 3 }$ initially but linearly decrease it to $1 0 ^ { - 4 }$ until the 30th epoch. We use a weight decay of $1 0 ^ { - 4 }$ for regularization and stop the training once the loss on validation set starts to increase (which usually happens around 30 epochs). We use the type annotations from a single project as a minibatch and limit the maximal batch size (via downsampling) to be the median of our training set to prevent any single project from having too much influence. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
333,
|
| 676 |
+
825,
|
| 677 |
+
417
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Implementation Details. We implemented LAMBDANET in Scala, building on top of the Java high-performance Tensor library Nd4j(nd4), and used a custom automatic differentiation library to implement our GNN. Our GNN implementation does not use an adjacency matrix to represent GNN layers; instead, we build the hyperedge connections directly from our type dependency graph and perform batching when computing the messages for all hyperedges of the same type. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
424,
|
| 687 |
+
825,
|
| 688 |
+
494
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Code Repository. We have made our code publicly available on Github.5 ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
501,
|
| 698 |
+
663,
|
| 699 |
+
515
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "5.1 COMPARISON WITH DEEPTYPER ",
|
| 706 |
+
"text_level": 1,
|
| 707 |
+
"bbox": [
|
| 708 |
+
176,
|
| 709 |
+
537,
|
| 710 |
+
439,
|
| 711 |
+
553
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 6
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "In this experiment, we compare LAMBDANET’s performance with DeepTyper (Hellendoorn et al., 2018), which treats programs as sequences of tokens and uses a bidirectional RNN to make type predictions. Since DeepTyper can only predict types from a fixed vocabulary, we fix both LAMBDANET and DeepTyper’s prediction space to ${ \\mathcal { N } } _ { \\mathrm { l i b } }$ and measure their corresponding top-1 accuracy. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
566,
|
| 721 |
+
825,
|
| 722 |
+
622
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "The original DeepTyper model makes predictions for each variable occurrence rather than declaration. In order to conduct a meaningful comparison between DeepTyper and LAMBDANET, we implemented a variant of DeepTyper that makes a single prediction for each variable (by averaging over the RNN internal states of all occurrences of the same variable before making the prediction). Moreover, for a fair comparison, we made sure both DeepTyper and LAMBDANET are using the same improved naming feature that splits words into tokens. ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
628,
|
| 732 |
+
825,
|
| 733 |
+
713
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 6
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "Our main results are summarized below, where the Declaration (resp. Occurrence) column shows accuracy per variable declaration (resp. token-level occurrence). Note that we obtain occurrence-level accuracy from declaration-level accuracy by weighting each variable by its number of occurrences. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
176,
|
| 742 |
+
719,
|
| 743 |
+
823,
|
| 744 |
+
762
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 6
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "table",
|
| 750 |
+
"img_path": "images/31c68df64eb2110e4109736d455d3ea9cdaa31a6f60c0b757ace4acc03bab5d8.jpg",
|
| 751 |
+
"table_caption": [],
|
| 752 |
+
"table_footnote": [],
|
| 753 |
+
"table_body": "<table><tr><td>Model</td><td colspan=\"2\">Top1 Accuracy (%) Declaration Occurrence</td></tr><tr><td>DeepTyper</td><td>61.5</td><td>67.4</td></tr><tr><td>LAMBDANETlib (K=6)</td><td>75.6</td><td>77.0</td></tr></table>",
|
| 754 |
+
"bbox": [
|
| 755 |
+
315,
|
| 756 |
+
768,
|
| 757 |
+
681,
|
| 758 |
+
840
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "program. Instead, they only need to annotate some key places (e.g., function parameters and return types, class members) and let the forward inference algorithm to figure out the rest of the types. Therefore, in our training set, we can keep the user annotations on these key places and run the TS compiler to recover these implicitly specified types as additional labels. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
859,
|
| 768 |
+
823,
|
| 769 |
+
910
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "table",
|
| 775 |
+
"img_path": "images/9c0591eac7853e28eaa2e94a9188412913e417de04594be75f5393ad2cb70643.jpg",
|
| 776 |
+
"table_caption": [
|
| 777 |
+
"Table 2: Accuracy when predicting all types. "
|
| 778 |
+
],
|
| 779 |
+
"table_footnote": [],
|
| 780 |
+
"table_body": "<table><tr><td>Model</td><td colspan=\"3\">Top1 Accuracy (%)</td><td colspan=\"3\">Top5 Accuracy (%)</td></tr><tr><td></td><td>Yuser</td><td>Vlib</td><td>Overall</td><td>Vuser</td><td>Vlib</td><td>Overall</td></tr><tr><td>TS COMPILER</td><td>2.66</td><td>14.39</td><td>8.98</td><td>=</td><td>1</td><td>=</td></tr><tr><td>SIMILARNAME</td><td>24.1</td><td>0.78</td><td>15.7</td><td>42.5</td><td>3.19</td><td>28.4</td></tr><tr><td>LAMBDANET (K=6)</td><td>53.4</td><td>66.9</td><td>64.2</td><td>77.7</td><td>86.2</td><td>84.5</td></tr></table>",
|
| 781 |
+
"bbox": [
|
| 782 |
+
246,
|
| 783 |
+
114,
|
| 784 |
+
751,
|
| 785 |
+
200
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 7
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "table",
|
| 791 |
+
"img_path": "images/c050fe5203c0a63cdaa3b27dd12048cc5c4310fdfaf2384df0fc2667797885f5.jpg",
|
| 792 |
+
"table_caption": [
|
| 793 |
+
"Table 3: Performance of different GNN iterations (left) and ablations (right). "
|
| 794 |
+
],
|
| 795 |
+
"table_footnote": [],
|
| 796 |
+
"table_body": "<table><tr><td>K</td><td colspan=\"2\">Top1 Accuracy (%) Yuser Vlib</td></tr><tr><td>6</td><td>53.4</td><td>Overall 64.2</td></tr><tr><td>4</td><td>48.4</td><td>66.9 65.5 62.0</td></tr><tr><td>2</td><td>47.3 61.7</td><td>58.8</td></tr><tr><td>1</td><td>16.8 48.2</td><td>41.9</td></tr><tr><td>0</td><td>0.0 17.0</td><td>13.6</td></tr></table>",
|
| 797 |
+
"bbox": [
|
| 798 |
+
215,
|
| 799 |
+
238,
|
| 800 |
+
419,
|
| 801 |
+
352
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 7
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "table",
|
| 807 |
+
"img_path": "images/867f9b5b9beb63cf9bb4e93c830c897a5e7d7f696a1ca14d863c872dea0aa122.jpg",
|
| 808 |
+
"table_caption": [],
|
| 809 |
+
"table_footnote": [
|
| 810 |
+
"∗ Training was unstable and experienced gradient explosion. "
|
| 811 |
+
],
|
| 812 |
+
"table_body": "<table><tr><td>Ablation (K= 4)</td><td colspan=\"2\">Top1 Accuracy (%) Vuser Ylib Overall</td></tr><tr><td>LAMBDANET</td><td>48.4 65.5</td><td>62.0</td></tr><tr><td>No Attention in NPAIR</td><td>44.1</td><td>57.6 54.9</td></tr><tr><td>No Contextual</td><td>27.2</td><td>52.6 47.5</td></tr><tr><td>No Logical*</td><td>24.7</td><td>36.2</td></tr><tr><td>Simple Aggregation</td><td>40.2</td><td>61.5</td></tr></table>",
|
| 813 |
+
"bbox": [
|
| 814 |
+
439,
|
| 815 |
+
239,
|
| 816 |
+
782,
|
| 817 |
+
353
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "As we can see from the table, LAMBDANET achieves significantly better results compared to DeepTyper. In particular, LAMBDANET outperforms DeepTyper by $1 4 . 1 \\%$ (absolute) for declarationlevel accuracy and by $9 . 6 \\%$ for occurrence-level accuracy. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
383,
|
| 827 |
+
823,
|
| 828 |
+
425
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "Note that the accuracy we report for DeepTyper $( 6 7 . 4 \\% )$ is not directly comparable to the original accuracy reported in Hellendoorn et al. (2018) $( 5 6 . 9 \\% )$ for the following reasons. While we perform static analysis and have a strict distinction of library vs. user-defined types and only evaluate both tools on library type annotations in this experiment, their implementation treat types as tokens and does not have this distinctions. Hence, their model also considers a much larger prediction space consisting of many user-defined types—most of which are never used outside of the project in which they are defined—and is also evaluated on a different set of annotations than ours. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
431,
|
| 838 |
+
825,
|
| 839 |
+
530
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 7
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "5.2 PREDICTING USER-DEFINED TYPES ",
|
| 846 |
+
"text_level": 1,
|
| 847 |
+
"bbox": [
|
| 848 |
+
176,
|
| 849 |
+
546,
|
| 850 |
+
464,
|
| 851 |
+
560
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "As mentioned earlier, our approach differs from prior work in that it is capable of predicting userdefined types; thus, in our second experiment, we extend LAMBDANET’s prediction space to also include user-defined types. However, since such types are not in the prediction space of prior work (Hellendoorn et al., 2018), we implemented two simpler baselines that can be used to calibrate our model’s performance. Our first baseline is the type inference performed by the TypeScript compiler, which is sound but incomplete (i.e., if it infers a type, it is guaranteed to be correct, but it infers type any for most variables).6 Our second baseline, called SIMILARNAME, is inspired by the similarity between variable names and their corresponding types; it predicts the type of each variable $v$ to be the type whose name shares the most number of common word tokens with $v$ . ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
174,
|
| 860 |
+
571,
|
| 861 |
+
825,
|
| 862 |
+
698
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 7
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "The results of this experiment are shown in Table 2, which shows the top-1 and top-5 accuracy for both user-defined and library types individually as well as overall accuracy. In terms of overall prediction accuracy, LAMBDANET achieves $6 4 . 2 \\%$ for top-1 and $8 4 . 5 \\%$ for top-5, significantly outperforming both baselines. Our results suggest that our fusion of logical and contextual information to predict types is far more effective than rule-based incorporation of these in isolation. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
705,
|
| 872 |
+
823,
|
| 873 |
+
775
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 7
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "5.3 ABLATION STUDY ",
|
| 880 |
+
"text_level": 1,
|
| 881 |
+
"bbox": [
|
| 882 |
+
176,
|
| 883 |
+
791,
|
| 884 |
+
341,
|
| 885 |
+
806
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 7
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "Table 3 shows the results of an ablation study in which (a) we vary the number of message-passing iterations (left) and (b) disable various features of our architecture design (right). As we can see from the left table, accuracy continues to improve as we increase the number of message passing iterations as high as 6; this gain indicates that our network learns to perform inference over long distances. The right table shows the impact of several of our design choices on the overall result. ",
|
| 892 |
+
"bbox": [
|
| 893 |
+
174,
|
| 894 |
+
818,
|
| 895 |
+
825,
|
| 896 |
+
887
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 7
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "For example, if we do not use Contextual edges (resp. Logical edges), overall accuracy drops by $1 4 . 5 \\%$ (resp. $2 5 . 8 \\%$ ). These drops indicate that both kinds of predicates are crucial for achieving good accuracy. We also see that the attention layer for NPAIR makes a significant difference for both library and user-defined types. Finally, Simple Aggregation is a variant of LAMBDANET that uses a simpler aggregation operation which replaces the attention-based weighed sum in $\\mathrm { E q ~ } 1$ with a simple average. As indicated by the last row of Table 3 (right), attention-based aggregation makes a substantial difference for user-defined types. ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
174,
|
| 905 |
+
103,
|
| 906 |
+
825,
|
| 907 |
+
202
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "5.4 COMPARISON WITH JSNICE ",
|
| 914 |
+
"text_level": 1,
|
| 915 |
+
"bbox": [
|
| 916 |
+
176,
|
| 917 |
+
217,
|
| 918 |
+
406,
|
| 919 |
+
232
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Since JSNice (Raychev et al., 2015) cannot properly handle class definitions and user-defined types, for a meaningful comparison, we compared both tools’ performance on top-level functions randomly sampled from our test set. We filtered out functions whose parameters are not library types and manually ensured that all all the dependency definitions are also included. In this way, we constructed a small benchmark suite consisting of 41 functions. Among the 107 function parameter and return type annotations, LAMBDANET correctly predicted 77 of them, while JSNice only got 48 of them right. These results suggest that LAMBDANET outperforms JSNice, even when evaluated only on the places where JSNice is applicable. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
243,
|
| 929 |
+
825,
|
| 930 |
+
354
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "6 RELATED WORK ",
|
| 937 |
+
"text_level": 1,
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
375,
|
| 941 |
+
343,
|
| 942 |
+
391
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 8
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Type Inference using Statistical Methods. There are several previous works on predicting likely type annotations for dynamically typed languages: Raychev et al. (2015) and Xu et al. (2016) use structured inference models for Javascript and Python, but their approaches do not take advantage of deep learning and are limited to a very restricted prediction space. Hellendoorn et al. (2018) and Jangda & Anand (2019) model programs as sequences and AST trees and apply deep learning models (RRNs and Tree-RNNs) for TypeScript and Python programs. Malik et al. (2019) make use of a different source of information and take documentation strings as part of their input. However, all these previous works are limited to predicting types from a fixed vocabulary. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
174,
|
| 951 |
+
405,
|
| 952 |
+
825,
|
| 953 |
+
517
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 8
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "Graph Embedding of Programs. Allamanis et al. (2017) are the first to use GNNs to obtain deep embedding of programs, but they focus on predicting variable names and misuses for $C ^ { \\sharp }$ and rely on static type information to construct the program graph. Wang et al. (2017) use GNNs to encode mathematical formulas for premise selection in automated theorem proving. The way we encode types has some similarity to how they encode quantified formulas, but while their focus is on higherorder formulas, our problem requires encoding object types. Velickovi ˇ c et al. (2018) are the first to ´ use an attention mechanism in GNNs. While they use attention to compute node embeddings from messages, we use attention to compute certain messages from node embeddings. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
174,
|
| 962 |
+
523,
|
| 963 |
+
825,
|
| 964 |
+
636
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 8
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "Predicting from an Open Vocabulary. Predicting unseen labels at test time poses a challenge for traditional machine learning methods. For computer vision applications, solutions might involve looking at object attributes (Farhadi et al., 2017) or label similarity Wang et al. (2018); for natural language, similar techniques are applied to generalize across semantic properties of utterances (Dauphin et al., 2013), entities (Eshel et al., 2017), or labels (Ren et al., 2016). Formally, most of these approaches compare an embedding of an input to some embedding of the label; what makes our approach a pointer network (Vinyals et al., 2015) is that our type encodings are derived during the forward pass on the input, similar to unknown words for machine translation (Gulcehre et al., 2016). ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
174,
|
| 973 |
+
642,
|
| 974 |
+
825,
|
| 975 |
+
767
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 8
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "7 CONCLUSIONS ",
|
| 982 |
+
"text_level": 1,
|
| 983 |
+
"bbox": [
|
| 984 |
+
176,
|
| 985 |
+
787,
|
| 986 |
+
328,
|
| 987 |
+
804
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "We have presented LAMBDANET, a neural architecture for type inference that combines the strength of explicit program analysis with graph neural networks. LAMBDANET not only outperforms other state-of-the-art tools when predicting library types, but can also effectively predict user-defined types that have not been encountered during training. Our ablation studies demonstrate the usefulness of our proposed logical and contextual hyperedges. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
174,
|
| 996 |
+
819,
|
| 997 |
+
825,
|
| 998 |
+
888
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 8
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "For future work, there are several potential improvements and extensions to our current system. One limitation of our current architecture is the simplified treatment of function types and generic types (i.e., collapsing them into their non-generic counterparts). Extending the prediction space to also include structured types would allow us to make full use of the rich type systems many modern languages such as TypeScript provide. Another important direction is to enforce hard constraints during inference such that the resulting type assignments are guaranteed to be consistent. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
174,
|
| 1007 |
+
895,
|
| 1008 |
+
823,
|
| 1009 |
+
924
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 8
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
103,
|
| 1019 |
+
823,
|
| 1020 |
+
160
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1027 |
+
"text_level": 1,
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
176,
|
| 1030 |
+
181,
|
| 1031 |
+
356,
|
| 1032 |
+
195
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 9
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "We would like to thank DeepTyper authors, Vincent J. Hellendoorn, Christian Bird, Earl T. Barr, and Miltiadis Allamanis, for sharing their data set and helping us set up our experimental comparisons. We also thank the ICLR reviewers for their insightful comments and constructive suggestions. Finally, we would also like to thank Shankara Pailoor, Yuepeng Wang, Jocelyn Chen, and other UToPiA group members for their kind support and useful feedback. This project was supported in part by NSF grant CCF-1762299. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
212,
|
| 1042 |
+
825,
|
| 1043 |
+
295
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 9
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "REFERENCES ",
|
| 1050 |
+
"text_level": 1,
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
316,
|
| 1054 |
+
285,
|
| 1055 |
+
332
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Deeplearning4j. https://github.com/eclipse/deeplearning4j. Accessed: 2019- 09-24. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
340,
|
| 1065 |
+
821,
|
| 1066 |
+
369
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 9
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. ICLR, 2017. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
377,
|
| 1076 |
+
823,
|
| 1077 |
+
406
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 9
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Davide Ancona and Elena Zucca. Principal typings for java-like languages. In ACM SIGPLAN Notices, volume 39, pp. 306–317. ACM, 2004. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
173,
|
| 1086 |
+
416,
|
| 1087 |
+
825,
|
| 1088 |
+
445
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 9
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Gavin Bierman, Mart´ın Abadi, and Mads Torgersen. Understanding typescript. In Richard Jones (ed.), ECOOP 2014 �� Object-Oriented Programming, pp. 257–281, Berlin, Heidelberg, 2014. Springer Berlin Heidelberg. ISBN 978-3-662-44202-9. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
178,
|
| 1097 |
+
454,
|
| 1098 |
+
823,
|
| 1099 |
+
497
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 9
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Benjamin Chung, Paley Li, Francesco Zappa Nardelli, and Jan Vitek. Kafka: Gradual typing for objects. In ECOOP 2018-2018 European Conference on Object-Oriented Programming, 2018. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
173,
|
| 1108 |
+
506,
|
| 1109 |
+
823,
|
| 1110 |
+
535
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 9
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Yann Dauphin, Gokhan Tur, Dilek Z. Hakkani-Tur, and Larry P. Heck. Zero-shot learning for semantic utterance classification. In ICLR, 2013. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
544,
|
| 1120 |
+
823,
|
| 1121 |
+
573
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 9
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Yotam Eshel, Noam Cohen, Kira Radinsky, Shaul Markovitch, Ikuya Yamada, and Omer Levy. Named entity disambiguation for noisy text. In CoNLL, 2017. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
174,
|
| 1130 |
+
582,
|
| 1131 |
+
821,
|
| 1132 |
+
611
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 9
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Ali Farhadi, Ian Endres, Derek Hoiem, and David Forsyth. Describing objects by their attributes. In CVPR, 2017. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
174,
|
| 1141 |
+
619,
|
| 1142 |
+
823,
|
| 1143 |
+
648
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 9
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Zheng Gao, Christian Bird, and Earl T. Barr. To type or not to type: Quantifying detectable bugs in javascript. In Proceedings of the 39th International Conference on Software Engineering, ICSE ’17, pp. 758–769, Piscataway, NJ, USA, 2017. IEEE Press. ISBN 978-1-5386-3868-2. doi: 10.1109/ICSE.2017.75. URL https://doi.org/10.1109/ICSE.2017.75. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
173,
|
| 1152 |
+
657,
|
| 1153 |
+
825,
|
| 1154 |
+
715
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 9
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. In Proceedings of the ACL, 2016. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
724,
|
| 1164 |
+
823,
|
| 1165 |
+
753
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 9
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Stefan Hanenberg, Sebastian Kleinschmager, Romain Robbes, Eric Tanter, and Andreas Stefik. An ´ empirical study on the impact of static typing on software maintainability. Empirical Software Engineering, 19:1335–1382, 2013. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
763,
|
| 1175 |
+
825,
|
| 1176 |
+
806
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 9
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Vincent J. Hellendoorn, Christian Bird, Earl T. Barr, and Miltiadis Allamanis. Deep learning type inference. In Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2018, pp. 152–162, New York, NY, USA, 2018. ACM. ISBN 978-1-4503-5573-5. doi: 10.1145/3236024. 3236051. URL http://doi.acm.org/10.1145/3236024.3236051. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
174,
|
| 1185 |
+
815,
|
| 1186 |
+
825,
|
| 1187 |
+
886
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Abhinav Jangda and Gaurav Anand. Predicting variable types in dynamically typed programming languages. arXiv preprint arXiv:1901.05138, 2019. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
174,
|
| 1196 |
+
895,
|
| 1197 |
+
821,
|
| 1198 |
+
924
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 9
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
168,
|
| 1207 |
+
103,
|
| 1208 |
+
812,
|
| 1209 |
+
119
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 10
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated graph sequence neural networks. ICLR, abs/1511.05493, 2016. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
169,
|
| 1218 |
+
127,
|
| 1219 |
+
821,
|
| 1220 |
+
156
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 10
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Rabee Sohail Malik, Jibesh Patra, and Michael Pradel. Nl2type: inferring javascript function types from natural language information. In Proceedings of the 41st International Conference on Software Engineering, pp. 304–315. IEEE Press, 2019. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
173,
|
| 1229 |
+
165,
|
| 1230 |
+
821,
|
| 1231 |
+
208
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 10
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Lili Mou, Ge Li, Lu Zhang, Tao Wang, and Zhi Jin. Convolutional neural networks over tree structures for programming language processing. In AAAI, volume 2, pp. 4, 2016. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
171,
|
| 1240 |
+
215,
|
| 1241 |
+
823,
|
| 1242 |
+
246
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Benjamin C Pierce and David N Turner. Local type inference. ACM Transactions on Programming Languages and Systems (TOPLAS), 22(1):1–44, 2000. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
171,
|
| 1251 |
+
253,
|
| 1252 |
+
823,
|
| 1253 |
+
284
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 10
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Veselin Raychev, Martin Vechev, and Andreas Krause. Predicting program properties from ”big code”. In Proceedings of the 42Nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL ’15, pp. 111–124, New York, NY, USA, 2015. ACM. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
176,
|
| 1262 |
+
291,
|
| 1263 |
+
825,
|
| 1264 |
+
335
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 10
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Xiang Ren, Wenqi He, Meng Qu, Clare R Voss, Heng Ji, and Jiawei Han. Label noise reduction in entity typing by heterogeneous partial-label embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1825–1834. ACM, 2016. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
173,
|
| 1273 |
+
343,
|
| 1274 |
+
826,
|
| 1275 |
+
400
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 10
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Jeremy G. Siek and Walid Taha. Gradual typing for objects. In ECOOP, 2007. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
171,
|
| 1284 |
+
409,
|
| 1285 |
+
691,
|
| 1286 |
+
425
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 10
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Dmitriy Traytel, Stefan Berghofer, and Tobias Nipkow. Extending hindley-milner type inference with coercive structural subtyping. In Asian Symposium on Programming Languages and Systems, pp. 89–104. Springer, 2011. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
174,
|
| 1295 |
+
433,
|
| 1296 |
+
826,
|
| 1297 |
+
476
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 10
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \\` Bengio. Graph Attention Networks. International Conference on Learning Representations, 2018. accepted as poster. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
484,
|
| 1307 |
+
825,
|
| 1308 |
+
527
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 10
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NeurIPS, 2015. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
171,
|
| 1317 |
+
535,
|
| 1318 |
+
759,
|
| 1319 |
+
551
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 10
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Michael M Vitousek, Andrew M Kent, Jeremy G Siek, and Jim Baker. Design and evaluation of gradual typing for python. In ACM SIGPLAN Notices, volume 50, pp. 45–56. ACM, 2014. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
559,
|
| 1329 |
+
825,
|
| 1330 |
+
589
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 10
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Mingzhe Wang, Yihe Tang, Jian Wang, and Jia Deng. Premise selection for theorem proving by deep graph embedding. In Advances in Neural Information Processing Systems, pp. 2786–2796, 2017. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
173,
|
| 1339 |
+
597,
|
| 1340 |
+
825,
|
| 1341 |
+
640
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 10
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Xiaolong Wang, Yufei Ye, and Abhinav Gupta. Zero-shot recognition via semantic embeddings and knowledge graphs. In CVPR, 2018. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
173,
|
| 1350 |
+
648,
|
| 1351 |
+
823,
|
| 1352 |
+
679
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Zhaogui Xu, Xiangyu Zhang, Lin Chen, Kexin Pei, and Baowen Xu. Python probabilistic type inference with natural language support. In Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 607–618. ACM, 2016. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
174,
|
| 1361 |
+
686,
|
| 1362 |
+
825,
|
| 1363 |
+
731
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
}
|
| 1367 |
+
]
|
parse/train/Hkx6hANtwH/Hkx6hANtwH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hkx6hANtwH/Hkx6hANtwH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LJjC6DmSkgT/LJjC6DmSkgT.md
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Continual Learning via Local Module Composition
|
| 2 |
+
|
| 3 |
+
Oleksiy Ostapenko12 Pau Rodríguez3 Massimo Caccia123 Laurent Charlin145 1Mila - Quebec AI Institute, 2Université de Montréal, 3ServiceNow, 4HEC Montréal, 5Canada CIFAR AI Chair
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Modularity is a compelling solution to continual learning (CL), the problem of modeling sequences of related tasks. Learning and then composing modules to solve different tasks provides an abstraction to address the principal challenges of CL including catastrophic forgetting, backward and forward transfer across tasks, and sub-linear model growth. We introduce local module composition (LMC), an approach to modular CL where each module is provided a local structural component that estimates a module’s relevance to the input. Dynamic module composition is performed layer-wise based on local relevance scores. We demonstrate that agnosticity to task identities (IDs) arises from (local) structural learning that is module-specific as opposed to the task- and/or model-specific as in previous works, making LMC applicable to more CL settings compared to previous works. In addition, LMC also tracks statistics about the input distribution and adds new modules when outlier samples are detected. In the first set of experiments, LMC performs favorably compared to existing methods on the recent Continual Transfer-learning Benchmark without requiring task identities. In another study, we show that the locality of structural learning allows LMC to interpolate to related but unseen tasks (OOD), as well as to compose modular networks trained independently on different task sequences into a third modular network without any fine-tuning. Finally, in search for limitations of LMC we study it on more challenging sequences of 30 and 100 tasks, demonstrating that local module selection becomes much more challenging in presence of a large number of candidate modules. In this setting best performing LMC spawns much fewer modules compared to an oracle based baseline, however it reaches a lower overall accuracy. The codebase is available under https://github.com/oleksost/LMC.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
The goal of continual learning (CL) is to learn efficiently from a non-stationary stream of tasks without (catastrophically) forgetting previous tasks [62]. CL is often modeled as a trade-off between knowledge retention (stability) and knowledge expansion (plasticity) [26, 64]. Parameter sharing can provide control over this trade-off. For example, learning a single model shared across tasks results in better knowledge transfer and faster learning at the expense of forgetting [46, 57]. Conversely, learning a separate model per task eliminates forgetting but minimizes transfer and data efficiency [2, 41].
|
| 12 |
+
|
| 13 |
+
Modular learning aims at balancing transfer and forgetting by learning a set of specialized modules that can be recomposed to solve (new) tasks while only updating a subset of relevant modules or adding new modules [6, 47, 27]. In principle, a modular learner capable of composing modules in meaningful structures can provide additional benefits including (i) computational gains due to only executing modules that are relevant to a task [47, 4]; (ii) memory gains due to instantiating a sub-linear number of modules w.r.t. the number of tasks; (iii) systematic [8] and out-of-distribution (OOD) generalization [18] through knowledge recombination; and (iv) biological plausibility [91, 90, 96].
|
| 14 |
+
|
| 15 |
+
Designing modular methods for CL comes with two main challenges. The first is how and when to add new modules to ensure sufficient plasticity to learn new tasks. Existing modular methods use greedy search variants, expanding the model when it improves validation performance [92, 63]. The second challenge is how to compose that is, retrieve task-specific structural knowledge given a new task (previously seen or not).
|
| 16 |
+
|
| 17 |
+
Existing methods rely on a task’s identifier (ID) to retrieve task-specific structural knowledge, which comes either in the form of an optimal module layout [92] or as a model- and task-specific controller network that generates modular layouts [63]. Unfortunately, in many realistic CL scenarios task identities are unavailable at test time [23, 35, 14]. Lifting this limitation is challenging since standard mechanisms for task inference, for example, leveraging a task-inference model, could be subject to forgetting themselves.
|
| 18 |
+
|
| 19 |
+
To address both challenges, we equip each module with a local structural component that predicts a score indicating how relevant the module is for a given input. In-distribution inputs result in high scores, while out-of-distribution inputs result in low scores. In other words, modules self-determine their relevance given an input.
|
| 20 |
+
|
| 21 |
+
This local component is used for composing modules: for each datum, modules are combined at each layer according to their normalized scores without requiring a task’s ID (§3). The local component is also used for module expansion: a new module is instantiated if all the current modules flag their input as being locally out-of-distribution (§3.1). Further, new shallow modules (i.e. closer to the input) are first trained in a projection phase to maximize the relatedness scores of subsequent, deeper, modules (§3.2). This process projects the output of new modules into the representation space expected by the subsequent modules and ensures the compatibility between low- and high-level modules.
|
| 22 |
+
|
| 23 |
+
In a set of studies, we explore the performance and versatility of our local structural approach, which we call Local Module Composer (LMC). First, we show that LMC reaches superior or comparable performance to existing modular and non-modular methods without requiring task IDs at test time using the Continual Transfer Learning (CTrL) benchmark, designed to evaluate transfer and forgetting in CL [92] (§4.1). Then, we demonstrate how LMC, relying on its projection phase, can solve out-ofdistribution (OOD) tasks not seen during the continual training (§4.2). We also show it is possible to combine modules from independently trained models into a new model to solve tasks seen by each of the independent models without any finetuning (§4.3). Finally, an analysis of longer task sequences (30 and 100 tasks) reveals that LMC tends to spawn much fewer modules to reach good performance than the fully task-aware MNTDP [92] counterpart. However, LMC reaches slightly lower accuracy on longer sequences than MNTDP, which highlights the difficulty of automatic task-ID agnostic module selection in the presence of a large number of candidate modules. In Appendix F we demonstrate the applicability of LMC in the meta-continual learning (meta-CL) setting, a task-agnostic setting by nature.
|
| 24 |
+
|
| 25 |
+
We highlight that by relying on a local (per-module) structural component, LMC offers a modular CL approach that i) does not require task IDs during test in the standard task incremental settings; ii) balances parameter sharing to yield strong CL performances compared to baselines that require access to the task ID; iii) in our experiments instantiates a sub-linear number of modules; iv) permits recombination of modules at test time enabling OOD generalization as well as (v) the ability to combine independently trained models in a third model without fine-tuning. Notably, the OOD generalization is only possible if the agent is task-agnostic in the module selection process, since OOD tasks were not observed at training, the learner has to interpolate between the learned tasks, and a (categorial) task ID is of no use.
|
| 26 |
+
|
| 27 |
+
# 2 Background: Modular Continual Learning
|
| 28 |
+
|
| 29 |
+
Let $\mathcal { F } ( x ; \theta ) : \mathcal { X } \mathcal { Y }$ be a learner parametrized with a set of parameters $\theta$ . In task-incremental CL, the learner is exposed to a sequence of tasks. Each task is composed of a training set $D _ { t }$ of $( x , y )$ pairs and a task identifier (ID) $t$ [92, 46]. The goal is to learn an optimal $\theta ^ { * }$ that minimizes the loss $\mathcal { L }$ for all observed tasks:
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\theta ^ { * } = \underset { \theta } { \arg \operatorname* { m i n } } \sum _ { t = 1 } ^ { T } \mathbb { E } _ { ( x , y ) \sim D _ { t } } [ \mathcal { L } ( \mathcal { F } ( x ; \theta ) , y ) ] .
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: Modular Layer Scheme. Each black rectangle is a module. Inside each module, the functional component receives the input $x ^ { ( l - 1 ) }$ and feeds its output to the structural component . m The output of the structural component is used to calculate the importance score $\gamma _ { m } ^ { ( l ) }$ using Eq. 5, which are normalized to obtain the attention vector . The layer output is the weighted sum of the functional outputs of each module. $\mu$ and $\sigma$ are the running mean and variance of the scores $\gamma _ { m } ^ { ( l ) }$ used to detect outlier inputs and to trigger module addition.
|
| 37 |
+
|
| 38 |
+
The parameter sharing trade-off between tasks can be addressed through different architectural design choices for $\mathcal { F }$ . For example, $\mathcal { F }$ can be a monolithic network that shares parameters $\theta$ across all tasks. Most existing task incremental CL methods use a task-specific output head, requiring the task ID to select the output head corresponding to the task at hand [46, 87, 1].
|
| 39 |
+
|
| 40 |
+
At the other end of the spectrum are the expert based solutions that learn an independent model, a.k.a.
|
| 41 |
+
expert, for each task [2, 83]. In this case, each expert trains task-specific parameters $\boldsymbol { \theta } = \{ \boldsymbol { \theta } ^ { ( t ) } \} _ { t = 1 } ^ { T }$ .
|
| 42 |
+
|
| 43 |
+
To balance parameter sharing and transfer, modular methods organize their parameters in a series of modules $M = \{ m _ { k } ^ { ( l ) } \}$ with parameters $\boldsymbol { \theta } = \{ \boldsymbol { \theta } _ { k } ^ { ( l ) } \}$ , where $\theta _ { k } ^ { ( l ) }$ denotes the parameters of module at layer in $\mathcal { F }$ . In general, a module can be any parametric function. In our experiments, unless otherwise stated, a module consists of a single convolutional layer followed by batch-norm, ReLU activation, and a max-pooling operation.
|
| 44 |
+
|
| 45 |
+
Modules can be composed conditioned on a sample, a batch of samples, or a task. Let $\psi$ denote a specific composition of modules that gives rise to a distinct prediction function; we make this dependence explicit: $\mathcal { F } ( x ; \theta , \psi )$ . Importantly, sharing modules across tasks should lead to desirable transfer properties.
|
| 46 |
+
|
| 47 |
+
Veniat et al. [92] frames modular CL as finding an optimal layout $\psi ^ { ( t ) }$ for each task, where each layout selects a single module per layer per task (hard selection):
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\theta ^ { * } , \Psi ^ { * } = \underset { \theta , \Psi } { \arg \operatorname* { m i n } } \sum _ { t = 1 } ^ { T } \mathbb { E } _ { ( x , y ) \sim D _ { t } } [ \mathcal { L } ( \mathcal { F } ( x ; \theta , \psi ^ { ( t ) } ) , y ) ] .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
In this case the set of layouts $\Psi = \{ \psi ^ { ( t ) } \}$ grows with the number of tasks, while modules can be reused across different task-specific layouts resulting in sub-linear growth pattern. They design a method called MNTDP to search the exponentially large space of modular layouts by only considering layouts resulting from adding a new module per layer to the best prior path (past task’s path with the highest nearest neighbor accuracy on a new task) starting at the top layer. This solution relies on task IDs to retrieve $\psi ^ { ( t ) }$ at test time.
|
| 54 |
+
|
| 55 |
+
Another way of composing modules uses dynamic routing [63, 82, 47, 65]. The module layout is generated by a structural function $\psi = s ( x )$ , hence different inputs take different routes through $\mathcal { F }$ . It is standard to approximate the structural function using a neural network $\psi = s ( x ; \phi )$ with structural parameters $\phi$ . This framework has been applied to CL in [63] by learning a separate structural function per task $\psi ^ { ( t ) } = s ( x ; \phi ^ { ( t ) } )$ . The task IDs are used to retrieve the correct structural function:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\theta ^ { * } , \Phi ^ { * } = \underset { \theta , \Phi } { \arg \operatorname* { m i n } } \sum _ { t = 1 } ^ { T } \mathbb { E } _ { ( x , y ) \sim D _ { t } } [ \mathcal { L } ( \mathcal { F } ( x ; \theta , s ( x ; \phi ^ { ( t ) } ) ) , y ) ] ,
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
where $\Phi = \{ \phi ^ { ( t ) } \}$ is the set of structural parameters for all tasks.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Two-phase training. Each module contains a functional (rectangle) and structural (trapezoid) component. Their color intensity denotes the strength of their activation. Components with dashed contours are trained, solid contours represent fixed components, arrows show the gradient flow: black arrow — functional signal, pink — structural signal. (A) All modules are trained on task 0. (B) Task 1 arrives, a new module is added at layer 1, which is first trained to project its output into the representation of the modules above via the structural signal (the functional signal is optional). No module addition is allowed during the projection phase. (C) Module addition is allowed again, both signals are used for training. (D) As task 3 arrives, a new module is added at layer 1 again, projection phase is triggered. (E) A new module is added at the layer 2, both new modules are now trained in the second projection phase. (F) Both new modules are trained using both signals.
|
| 65 |
+
|
| 66 |
+
The above methods require task IDs at both training and testing time. Next we introduce our modular CL approach that only relies on task IDs during training.
|
| 67 |
+
|
| 68 |
+
# 3 Local Module Composer (LMC)
|
| 69 |
+
|
| 70 |
+
We propose LMC, a modular approach where each module consists of a functional component $f ( x ; \theta _ { m } ^ { ( \bar { l } ) } )$ and a structural component $s ( x ; \phi _ { m } ^ { ( l ) } )$ , see Figure 1. The functional components are responsible for learning to solve the prediction task and are trained via the usual task loss $\mathcal { L }$ (e.g. cross-entropy loss for classification). The structural components receive the corresponding functional output as their input (see Figure 1) and are responsible for dynamic routing through $\mathcal { F }$ . Structural parameters $\phi$ are trained using a structural loss $\bar { \mathcal { L } } ^ { ( s t . ) }$ computed locally at each module.
|
| 71 |
+
|
| 72 |
+
Intuitively, the structural component of a module should serve as a density estimator of the outputs of the functional component. The module’s contribution to the layer’s output is proportional to the likelihood of the input sample under the estimated density. In our instantiation, the structural component produces a relatedness score: a lower score for inputs that are more likely to belong to the distribution on which a given module was trained, and a higher score for inputs that are out-of-distribution for the given module. Hence, the likelihood of the input sample is approximated by the negative relatedness score.
|
| 73 |
+
|
| 74 |
+
Given an input data sample $x ^ { ( 0 ) } = x$ , the output $x ^ { ( l ) }$ of a layer $l$ is defined as the weighted sum of the functional outputs of all $| M ^ { ( l ) } |$ local modules and used as input to the subsequent layer $l + 1$ :
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\boldsymbol { x } ^ { ( l ) } = \sum _ { m = 1 } ^ { | M ^ { ( l ) } | } w _ { m } ^ { ( l ) } \cdot f ( \boldsymbol { x } ^ { ( l - 1 ) } ; \boldsymbol { \theta } _ { m } ^ { ( l ) } ) .
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
The functional output of the network is equal to the output of the final layer: $\mathcal { F } ( x ; \theta , \phi ) = x ^ { ( L ) }$ . In the last layer $\mathcal { F }$ implements a single output-head per task. At training time, the task ID is available and we update only the output-head corresponding to the currently learned task. At test time, the task ID is not available and we select the output head with the highest activation weight $w _ { m } ^ { ( L ) }$ , i.e., the last layer performs hard module selection.
|
| 81 |
+
|
| 82 |
+
The module activation weights $w _ { m } ^ { ( l ) }$ are computed by normalizing the vector of local relatedness scores $\gamma ^ { ( l ) } \in \mathbb { R } ^ { | M ^ { ( l ) } | }$ . Each element of $\gamma ^ { ( l ) }$ is obtained from the negative structural loss which approximates the likelihood of each module:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r l } & { \gamma _ { m } ^ { ( l ) } = - \mathcal { L } ^ { ( s t . ) } \Bigl ( s \bigl [ f ( x ^ { ( l - 1 ) } ; \theta _ { m } ^ { ( l ) } ) ; \phi _ { m } ^ { ( l ) } \bigr ] \Bigr ) , } \\ & { w _ { m } ^ { ( l ) } = \mathrm { s o f t m a x } ( \gamma ^ { ( l ) } ) _ { m } . } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
Modules with lower structural loss get higher activation weights. Note that in practice, it can be useful to bias the module selection towards the expected module selection in a batch, assuming that samples within a batch are likely to belong to the same task. We discuss this point further in $\ S \operatorname { A . 1 }$ .
|
| 89 |
+
|
| 90 |
+
Instead of using the softmax function, it is possible perform hard selection taking the module with the highest score [82], or alternatively selecting top-k modules [88]. In both cases, LMC’s structural parameters stay differentiable due to the local nature of structural learning. Note that in the case of global structural objective, hard module selection would require applying tools for non-differentiable learning such as Expectation Maximization [47] or reinforcement-learning based methods [82, 5].
|
| 91 |
+
|
| 92 |
+
The overall LMC objective consists of optimizing both functional and structural losses:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\theta ^ { * } , \phi ^ { * } = \underset { \theta , \phi } { \operatorname { a r g m i n } } \sum _ { t = 1 } ^ { T } \mathbb { E } _ { ( x , y ) \sim D _ { t } } \Big [ \mathcal { L } \big ( \mathcal { F } ( x ; \theta , \phi ) , y \big ) + \sum _ { l = 0 } ^ { L } \sum _ { m = 0 } ^ { | M ^ { ( l ) } | } \mathcal { L } _ { m } ^ { ( s t . ) } \big ( s [ f ( x ^ { ( l - 1 ) } ; \theta _ { m } ^ { ( l ) } ) ; \phi _ { m } ^ { ( l ) } ] \big ) \Big ] .
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
As in [92], learning is performed w.r.t. only newly introduced modules to prevent forgetting.
|
| 99 |
+
|
| 100 |
+
Structural component. We test two instantiations of the structural component $s$ and loss $\mathcal { L } _ { m } ^ { ( s t . ) }$ . In the first one, $s$ is an invertible neural network [80]. Here we use the invertible architecture proposed by Dinh et al. [21]. As shown by Hocquet et al. [37], for this invertible architecture the structural objective can be defined as from collapsing to an all-ze $\mathcal { L } _ { m } ^ { ( s t . ) } ( x ) = | | x | | _ { 2 }$ . Intuitively, an invertible architecture prevents $\mathcal { L } _ { m } ^ { ( s t . ) }$
|
| 101 |
+
|
| 102 |
+
In the second instantiation, $s$ and $f$ form an autoencoder and $\mathcal { L } _ { m } ^ { ( s t . ) } ( x ) = | | x ^ { ( l - 1 ) } - x | | ^ { 2 }$ is the reconstruction error with respect to the module’s input $x ^ { ( l - 1 ) }$ . Aljundi et al. [2] used a similar idea was for selecting the most relevant expert network conditioned on a task. Unless stated otherwise, modules in the feature extractor use the autoencoder as their structural component, while output heads use invertible $s$ — these combinations worked well in practice.
|
| 103 |
+
|
| 104 |
+
# 3.1 Expansion strategy
|
| 105 |
+
|
| 106 |
+
It is necessary to expand $\mathcal { F }$ as new tasks arrive to acquire new knowledge. A new module is added to a layer when all modules in this layer detect an outlier input. To this end, we track the running statistics of the relatedness score $\gamma$ for each module — mean $\mu$ and variance $\sigma$ (see Figure 1), and calculate a z-score for each sample in the batch and each module at a layer:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
z _ { m } = \frac { w _ { m } - \mu _ { m } } { \sigma _ { m } } .
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
An input is considered an outlier if its $\mathbf { Z }$ -score is larger than a predefined threshold $z ^ { \prime }$ (see Appendix B.6 for an ablation study of $z ^ { \prime }$ values). The expansion decision can be made on the per-sample (i.e., if an outlier sample is detected) or a per-batch basis (i.e., $z$ is averaged over the mini-batch). Unless stated otherwise, in our experiments, the decision was made on a per-batch basis. Additionally, at training the parameters of existing modules are fixed once the task changes. If during a forward pass through $\mathcal { F }$ module addition is triggered at multiple layers, we start adding modules at the layer closest to the input.
|
| 113 |
+
|
| 114 |
+
# 3.2 Training
|
| 115 |
+
|
| 116 |
+
Each module in LMC receives two types of learning signal: a structural signal resulting from minimizing $\mathcal { L } _ { m } ^ { ( s t . ) }$ , and a functional signal resulting from minimizing the global functional loss $\mathcal { L }$ All structural components $s$ are trained only with the structural signal that is calculated locally to each module.
|
| 117 |
+
|
| 118 |
+
The training of functional components proceeds in two phases: projection and accumulation. Whenever the expansion strategy triggers the addition of a new module (i.e., $z _ { m } > z ^ { \prime } \forall m \in$ $\{ 0 , \ldots , | M ^ { ( l ) } | \} )$ , starting with layers closest to the input, LMC initiates the projection phase. During this phase, the new module is trained to minimize the structural loss from all the layers above and no new-module addition is allowed. This procedure makes the representation of new modules compatible with subsequent modules and enables their composition. This procedure “encourages” already-learned modules to be reused, preventing over-spawning new modules. The functional signal is optional during projection (we kept it in all experiments unless otherwise stated).
|
| 119 |
+
|
| 120 |
+
Table 1: CTrL results: we report accuracy $( \uparrow \mathcal { A } )$ , forgetting $( \uparrow \mathcal { F } )$ with standard deviations calculated over 6 different runs. We report the mean number of modules (M) over these runs, where ∗ marks methods with fixed capacity. The first block comprises a set of standard CL baselines including regularization and replay based methods. The second block are the modular methods, third – modular and replay based methods that are task ID agnostic (A), and the last block are the two finetuning baselines. (H) indicates hard module selection. (S) indicates single-head as detailed in the main text.
|
| 121 |
+
|
| 122 |
+
<table><tr><td></td><td colspan="3">si</td><td colspan="3">S+</td><td colspan="3">Sin</td><td colspan="3">Sout</td><td colspan="3">Spl</td></tr><tr><td>MODEL</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td></tr><tr><td>HAT[87]</td><td>63.7±0.7</td><td>-1.3±0.6</td><td>24*</td><td>61.4±0.5</td><td>-0.2±0.2</td><td>24*</td><td>50.1±0.8</td><td>0.0±0.1</td><td>24*</td><td>61.9±1.3</td><td>-3.2±1.3</td><td>24*</td><td>61.2±0.7</td><td>-0.1±0.2</td><td>20*</td></tr><tr><td>EWC[46]</td><td>62.7±0.7</td><td>-3.6±0.9</td><td>24*</td><td>53.4±1.8</td><td>-2.3±0.4</td><td>24*</td><td>56.3±2.5</td><td>-9.1±3.3</td><td>24*</td><td>62.5±0.9</td><td>-3.6±0.9</td><td>24*</td><td>54.2±3.1</td><td>-4.2±2.7</td><td>20*</td></tr><tr><td>O-EWC[85]</td><td>62.0±0.7</td><td>-3.2±0.7</td><td>24*</td><td>54.6±0.7</td><td>-1.3±1.0</td><td>24*</td><td>54.2±3.1</td><td>-10.8±3.1</td><td>24*</td><td>62.4±0.6</td><td>-3.0±0.9</td><td>24*</td><td>52.3±1.4</td><td>-5.7±1.3</td><td>20*</td></tr><tr><td>ER[81,16]</td><td>60.6±0.7</td><td>-2.1±0.9</td><td>4*</td><td>63.0±0.6</td><td>3.8±0.8</td><td>4*</td><td>63.8±1.4</td><td>-1.9±0.6</td><td>4*</td><td>60.7±1.0</td><td>-1.5±0.5</td><td>4*</td><td>60.5±1.0</td><td>0.5±0.9</td><td>4*</td></tr><tr><td>EXPERTS</td><td>62.7±0.9</td><td>0.0</td><td>24</td><td>63.2±0.8</td><td>0.0</td><td>24</td><td>63.1±0.7</td><td>0.0</td><td>24</td><td>63.1±0.7</td><td>0.0</td><td>24</td><td>63.9±0.5</td><td>0.0</td><td>20</td></tr><tr><td>MNTDP[92]</td><td>66.3±0.8</td><td>0.0</td><td>13.7</td><td>62.6±0.7</td><td>0.0</td><td>21.0</td><td>67.9±0.9</td><td>0.0</td><td>16.0</td><td>65.8±0.9</td><td>0.0</td><td>15.0</td><td>64.0±0.2</td><td>0.0</td><td>17.2</td></tr><tr><td>SG-F[63]</td><td>63.6±1.5</td><td>0.0</td><td>14.7</td><td>61.5±0.6</td><td>0.0</td><td>20.8</td><td>65.5±1.8</td><td>0.0</td><td>17.5</td><td>64.1±1.3</td><td>0.0</td><td>16.2</td><td>62.0±1.3</td><td>0.0</td><td>16.0</td></tr><tr><td>LMC(- A)</td><td>66.6±1.5 -0.0±0.1</td><td></td><td>15.3</td><td>60.1±2.7</td><td>-1.4±2.4</td><td>21.3</td><td>69.5±1.0</td><td>0.0±0.1</td><td>20.0</td><td>66.7±2.2</td><td>-0.1±0.1</td><td>15.5</td><td>61.6±4.8</td><td>-3.5±3.1</td><td>18.2</td></tr><tr><td>MNTDP(A)</td><td>41.9±2.5</td><td>-2.8±0.6</td><td>14.8</td><td>43.2±1.3-10.8±2.020.7|3</td><td></td><td></td><td></td><td>|32.7±13.6-15.2±13.2]</td><td>17.2</td><td>37.9±2.7</td><td>-5.8±3.5</td><td>13.3</td><td>35.1±3.6</td><td>5-16.4±4.6 15.8</td><td></td></tr><tr><td>LMC(A)</td><td>67.2±1.5</td><td>-0.5±0.4</td><td>15.7</td><td>62.2±4.5</td><td>2.3±1.6</td><td>22.3</td><td>68.5±1.7</td><td>-0.1±0.1</td><td>19.7</td><td>55.1±3.4</td><td>-7.1±4.0</td><td>15.5</td><td>63.5±1.9</td><td>-1.0±1.5</td><td>19.0</td></tr><tr><td>LMC(A,H)</td><td>64.9±1.5 -0.2±0.2</td><td></td><td>16.2</td><td>55.8±2.5</td><td>-0.3±1.2</td><td>15.3</td><td>67.6±2.7</td><td>-0.8±1.0</td><td>21.5</td><td>54.2±3.6</td><td>-2.9±2.0</td><td>15.9</td><td>53.8��5.7</td><td>3.1±5.5</td><td>10.8</td></tr><tr><td>SG-F(A)</td><td>29.5±3.5 -35.3±4.0 14.3</td><td></td><td></td><td>20.4±4.4</td><td>-39.3±6.716.0</td><td></td><td>24.4±5.6</td><td>-38.7±4.0</td><td>18.7</td><td>30.5±4.5</td><td>-34.0±5.512.2</td><td></td><td>19.4±1.0</td><td>-41.8±1.6</td><td>15.5</td></tr><tr><td>ER(A,S)[81,16]</td><td>60.4±1.0 -0.5±0.7</td><td></td><td>4*</td><td>65.3±0.9</td><td>6.0±1.0</td><td>4*</td><td>58.8±3.2</td><td>-4.2±3.7</td><td>4*</td><td>47.6±1.5</td><td>-7.6±1.6</td><td>4*</td><td>58.6±1.3</td><td>-1.2±1.5</td><td>4*</td></tr><tr><td>FINETUNE</td><td>47.5±1.5 -14.9±1.4</td><td></td><td>4*</td><td>31.4±3.7 -29.3±3.84*</td><td></td><td></td><td>39.7±5.0</td><td>-23.9±5.7</td><td>4*</td><td>45.4±4.0 -15.5±3.7</td><td></td><td>4*</td><td>29.1±3.1 - 29.2±3.2</td><td></td><td>4*</td></tr><tr><td>FINETUNE L</td><td>52.1±1.4 -15.7±1.7 24*</td><td></td><td></td><td>38.2±3.2</td><td>2-25.8±3.324*</td><td></td><td>49.3±2.0</td><td>-18.4±2.0</td><td>24*</td><td>49.3±2.1</td><td>-18.4±2.0</td><td>24*</td><td>37.1±2.1</td><td>-26.0±2.2</td><td>20*</td></tr></table>
|
| 123 |
+
|
| 124 |
+
In the accumulation phase, new module addition is allowed again and all non-frozen modules are trained with both signals. The functional components of new modules still receive a signal from the structural components of modules above. The two-phase training is explained schematically in Figure 2 and implementation details are provided in Appendix A.
|
| 125 |
+
|
| 126 |
+
# 4 Experiments
|
| 127 |
+
|
| 128 |
+
We now evaluate the performance, empirical capabilities, and properties of LMC in four different CL settings. First, in $\ S 4 . 1$ we study a standard task-incremental CL setting (task-ID agnostic and aware) using the Continual Transfer Learning Benchmark (CTrL) [92]. Next, we explore the properties of LMC through other CL settings. In $\ S 4 . 2$ we evaluate the continual OOD generalization ability of the proposed LMC. In $\ S 4 . 3$ we show the ability of LMC to combine modules form independently trained models. In Appendix F, we evaluate LMC in the Continual Meta-Learning setting.
|
| 129 |
+
|
| 130 |
+
# 4.1 Continual transfer learning using the CTrL benchmark
|
| 131 |
+
|
| 132 |
+
The CTrL benchmark was proposed to systematically evaluate properties of CL methods with a focus on modular architectures [92]. It consists of 5 streams of visual image classification tasks. The first stream $S ^ { - } = ( t _ { 1 } ^ { + } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } )$ consists of a sequence of 6 tasks, where the first and last task are the same except the first has an order of magnitude more training samples $( ^ { 6 6 + 7 9 } )$ than other tasks. This stream is designed to evaluate the direct transfer ability of models, i.e. a modular learner should be able to reuse the first task’s modules for the last task. The $S ^ { + } = ( t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { + } )$ stream is similar to $S ^ { - }$ , but now the last task comes with more data than the other tasks (including the first one). Here, the modular learner should be able to update its knowledge, i.e. performance on the first task should improve after learning the last task. In the $S ^ { i n } = ( t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { \prime } )$ stream the first $t _ { 1 }$ and the last $t _ { 1 } ^ { \prime }$ tasks are similar, with a slight input distribution change (e.g. different background color). In the $S ^ { o u t } = ( t _ { 1 } ^ { + } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { \prime \prime } )$ stream the first task $t _ { 1 }$ and the last task $t _ { 1 } ^ { \prime \prime }$ differ in the amount of training data and the output distribution, i.e. the labels of the last task are randomly permuted. The plasticity stream $S ^ { p l } = \mathsf { \bar { ( } } t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } )$ evaluates the ability to learn a stream of unrelated and potentially interfering tasks, i.e., transfer from unrelated tasks can harm performance. Descriptive statistics for all datasets are in Appendix B.1.
|
| 133 |
+
|
| 134 |
+
We compare to several baselines. Finetune: trains a single model (wider model marked with L) for all tasks. Experts: trains a model per task. We also compare with the several recently proposed modular CL baselines, which achieve competitive results in CTrL and require task IDs at test time. MNTDP [92]: a recent search-based module selection approach described in more detail in $\ S 2$ . MNTDP requires the task ID to retrieve the previously found best structure for each test task. $\mathbf { M N T D P ( A ) }$ : a task ID agnostic version of MNTDP we created, which selects the path with the lowest entropy in the output distribution. SG-F [63]: Soft-gating with fixed modules, a modular method mentioned in $\ S 2$ . It relies on a task-specific structural network that generates soft-gating vectors for each layer of the modular learner and fixes learned modules when new tasks arrive. We slightly adapted the original expansion strategy of SG-F in order to conform to our experimental setup; details are in Appendix B.2. SG- $\mathbf { F } _ { \left( \mathbf { A } \right) }$ : a version of SG-F with a single structural network shared across tasks. HAT[87]: learns attention masks for activations that gate the gradients to prevent forgetting. The task ID is used to select a task-specific attention mask for inference.
|
| 135 |
+
|
| 136 |
+
We also compare to several standard CL methods. EWC [46]: trains a single model for all tasks while applying parameter-regularization to minimize forgetting. O-EWC:[85] online version of EWC that does not require storing a separate approximation of the Fisher information matrix per task. ER [16]: trains a single model while replaying samples from previously seen tasks. The size of the replay buffer corresponds to the memory size of the LMC assuming the worse case linear growth pattern (i.e., LMC with 24 modules on a 6-task sequence). ER(A,S): task ID agnostic version of ER that uses a single output head to classify all classes from all tasks: i.e. after learning stream $S ^ { - }$ the output head has 50 output neurons and the output classes of the last task are considered the same as the ones of the first task.
|
| 137 |
+
|
| 138 |
+
We use several versions of LMC. $\mathbf { L M C } _ { ( \lnot \mathbf { A } ) }$ a version of LMC that uses the task ID for output head selection (not module selection as MNTDP). LMC(A): the default version of LMC. It equips output heads with structural components and is therefore task ID agnostic at test time. LMC(A,H): a version of task ID agnostic LMC that performs hard module selection, i.e., taking the module with the highest relevance score per layer. All methods use the same architecture (described in Appendix A.4) together with the Adam [44] optimizer. HAT is the only method that uses SGD.
|
| 139 |
+
|
| 140 |
+
Similar to Veniat et al. [92], we use the following evaluation metrics: $( \mathcal { A } )$ average accuracy on all seen tasks at the end of CL training; Forgetting $( \mathcal { F } )$ — difference between accuracy at the end of the training and accuracy after learning the task averaged across tasks [60]; Number of modules (M) at the end of the continual training procedure. Formal definitions of all metrics are in Appendix B.3.
|
| 141 |
+
|
| 142 |
+
Table 1 reports performance using the CTrL benchmark. Overall, modular methods tend to outperform ER and the regularization based methods (HAT and EWC). Among the modular methods, soft-gating SG-F(A,F) with a single controller shared among all the tasks performed the worst. This baseline showcases the problem of forgetting in the global structural component (a.k.a. controller) of dynamic routing methods such as the one proposed by Mendez and Eaton [63]. A version of LMC performs the best on the $S ^ { - }$ , $S ^ { i n }$ and $S ^ { o u t }$ streams.
|
| 143 |
+
|
| 144 |
+
Notably, $\mathrm { L M C } _ { ( \mathrm { A } ) }$ , which does not rely on task IDs at test time, outperformed all other task ID agnostic methods such as $\mathbf { M N T D P _ { ( A ) } }$ and ER(A,S) on all streams but $S ^ { + }$ , and always performed on par with task ID aware methods. On the $S ^ { o u t }$ stream low performance is expected for task-ID agnostic methods due to output distribution shift: i.e., at test time we notice that LMC correctly assigns samples from the last task $t _ { 1 } ^ { \prime \prime }$ to the first task’s $t _ { 1 } ^ { + }$ output head. However, the resulting classification accuracy is low because the labels of the last task are randomly permuted in this stream.
|
| 145 |
+
|
| 146 |
+
The task ID agnostic $\mathrm { L M C } _ { ( \mathrm { A } ) }$ outperforms task ID aware LMC on the $S ^ { - }$ and $S ^ { + }$ streams. Here, LMC(A) selects modules (and the output head) which were predominantly trained on the task that provided more training data (e.g. $t _ { 1 } ^ { + }$ in $S ^ { - }$ stream), hence transferring knowledge between the first and the last tasks. In contrast, $\mathbf { L M C } _ { ( \neg \mathbf { A } ) }$ when tested on the last task $t _ { 1 }$ is forced to select the output head belonging to this task, which was trained on less data than the output head of $t _ { 1 } ^ { + }$ task, leading to lower accuracy. In addition, we observed that versions of LMC often exhibit high variance (e.g. see $S ^ { + }$ , $S ^ { o u t }$ and $S ^ { p l }$ streams). This may be caused by the larger amount of trainable parameters compared to other models and relatively small amount of training data. Finally, low performance of
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 3: Continual OOD-generalization: matrices show test accuracy on seen and unseen tasks (onand off-diagonal tasks respectively). In each sub-figure $\mathbf { X }$ -axis shows the MNIST class-combination used to build the task, y-axis gives the foreground-background colors. Only diagonal tasks are learned continually. While non-modular EWC (a) and modular MNTDP (b) can prevent forgetting, $\mathbf { L M C _ { ( \neg A ) } }$ (c) is able to generalize to OOD tasks as well. $\mathrm { L M C } _ { \left( \lnot \mathbf { A } \right) }$ without projection phase performs poorly as shown in (d).
|
| 150 |
+
|
| 151 |
+
LMC(A,H) emphasizes the importance of soft modular attention for LMC. Additional results, including a transfer metric [92], are in Appendix B.4.
|
| 152 |
+
|
| 153 |
+
# 4.2 Compositional OOD generalization
|
| 154 |
+
|
| 155 |
+
This second study tests the ability of LMC to recombine modules for OOD generalization. We use a colored-MNIST dataset — a variation of the standard MNIST dataset of hand-written digits from 0 to 9 [43] in which digits are colorized. We design a simple sequence of tasks as follows. First, we define two high-level features: the foreground-background color combination (using the colors red, black, green, blue) and the class (0–9). Then, we create five non-overlapping tasks of two (digit) classes each: $\left\{ 0 - 1 , \quad \ldots , \quad 8 - 9 \right\}$ . At training time the model is continually trained using a sequence of these tasks, however, each task is only seen in one of five different foreground-background combinations {red-black, green-black, blue-black, black-red, black-green}. At test time we measure the generalization ability to seen and unseen combinations of classes and colors.
|
| 156 |
+
|
| 157 |
+
In Figure 3 we present the accuracy matrices for different learners when tested on all 25 combinations of colors and classes after it has been trained only on the 5 tasks on the diagonal.
|
| 158 |
+
|
| 159 |
+
We compare the performance of $\mathbf { L M C } _ { ( \neg \mathbf { A } ) }$ with EWC [46], MNTDP [92], and an ablated version of LMC without the projection phase. We observe that the OOD accuracy attained by LMC is significantly higher than EWC and MNTDP. Since the model trained with EWC is monolithic, the digit-background color combinations are entangled with the digits’ shape for each task, hindering OOD generalization. In contrast, modular approaches such as MNTDP and LMC learn a different module combination for each task. In contrast to MNTDP, LMC’s module selection does not rely on task identifiers and each module is selected in a local manner based on its compatibility with the current input. This allows LMC to interpolate between previously seen tasks being able to dynamically compose existing modules to adapt to tasks that have not been seen at training. Because MNTDP’s module selection relies on a database of task-specific structures found to be optimal for the corresponding task at training, this method must reuse the predefined module compositions based on task IDs. This forces MNTDP to use modules that were trained using a different color combination, and results in e.g. a $2 4 \%$ accuracy drop with respect to LMC on [0,1] when the foreground and background colors are inverted w.r.t. the seen combination.
|
| 160 |
+
|
| 161 |
+
In Figure 3d we report results for LMC without applying the projection phase. The projection phase adapts the representation of newly introduced modules to match the distribution expected by the subsequent modules. As expected, we found that skipping it severely degrades performance. This result validates the usefulness of the projection phase to achieve an efficient local module selection. In Appendix E we plot the average module selection for all 25 test tasks, showing how modules are reused for the OOD tasks.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 5: Results on $S ^ { l o n g }$ and $S ^ { l o n g 3 0 }$ sequences for different hyperparameter values (we select only runs with reasonably good performance, i.e. $4 \%$ ), same plots plots for all conducted runs can be found in Appendix C).
|
| 165 |
+
|
| 166 |
+
# 4.3 Combining modular learners
|
| 167 |
+
|
| 168 |
+
In earlier sections we show cross-task reusability of modules, here we test the cross-model reusability. We motivate the practical importance of this kind of reusability with a federated learning example: a privacy preserving training might be required for LMC1 and LMC2, trained on the premises of customers 1 and 2, after which their modules can be combined in a single central entity — LMC3, located on premises of the cloud service provider. LMC3 is required to perform tasks seen by both independent LMCs but can not be finetuned as it has no access to the original training data distributions.
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Performance of combining independently trained LMC1 and LMC2 into LMC3.
|
| 172 |
+
|
| 173 |
+
In Figure 4 we test the ability of LMC to preserve and transfer knowledge in such setting. To this end, we design the following tasks: fMNIST $^ +$ and fMNIST-. Both are sampled from the fashion-MNIST dataset [98] but the latter comes with an order of magnitude less training data. cMNIST-r is a variant of the colored-MNIST dataset where the background of $9 5 \%$ of the training samples is colored in red and $5 \%$ in green. For the cMNIST-g dataset these proportions are inverted and $9 5 \%$ of the training samples is colored in green. The test set contains $50 \%$ of samples with green and $50 \%$ with red background. We trained LMC1 continually on MNIST, fMNIST $^ +$ , and cMNIST-r tasks. We trained LMC2 on fMNIST-, cMNIST- $\mathbf { g }$ , and SVHN. We then combined the modules of both LMCs layer-wise to obtain LMC3.
|
| 174 |
+
|
| 175 |
+
We observed positive transfer for both cMNIST and fMNIST- tasks with LMC3. We found that LMC3 selects different modules originating from different LMCs conditioned on test samples with different background colors — LMC1’s modules were specialized on red background while LMC2’s on green (selected paths presented in Appendix D). Notably, cross-model reusability without fine-tuning is novel to LMC and can be attributed to the local nature of the structural component. Using a global structural component as in [63] would require tuning a separate structural component specifically for LMC3. In case of task-specific routing of proposed for MNTDP [92], additional search would be needed to discover task-specific paths through the consolidated LMC3 model. In both cases the access to the orinal training data distributions would be required and privacy would not be preserved.
|
| 176 |
+
|
| 177 |
+
# 4.4 Longer task sequences
|
| 178 |
+
|
| 179 |
+
Here we study the performance LMC on longer task sequences consisting of $3 0 - S ^ { l o n g 3 0 }$ , and $1 0 0 -$ $S ^ { l o n g }$ tasks. The $S ^ { \bar { l } o n g }$ sequence corresponds to the one proposed by Veniat et al. [92] as part of the CTrL benchmark. $S ^ { l o n g 3 0 }$ is a 30-tasks subset of $S ^ { l o n g }$ (see Appendix B.1 for details).
|
| 180 |
+
|
| 181 |
+
We first report the average test accuracy $( \mathcal { A } )$ and the total number of modules (M) of the models selected through cross-validation. $S ^ { l o n j 3 0 }$ : MNTDP $\scriptstyle A = 6 4 . 5 8$ , $\scriptstyle \mathbf { M } = 6 4$ ; LMC(¬A): $\scriptstyle A = 6 2 . 4 4$ , ${ \bf M } { = } 5 0$ $S ^ { l o n g }$ : MNTDP $\scriptstyle A = 6 8 . 9 2$ , $\mathbf { M } { = } 1 4 2$ ; $\mathbf { L M C _ { ( \neg A ) } }$ : $\scriptstyle A = 6 3 . 8 8$ , $\mathbf { M } = 3 2$ . While the gap between the accuracy of LMC and MNTDP on $S ^ { l o n g 3 0 }$ is only $1 . 8 6 \%$ -points, in the case of $S ^ { l o n g }$ this gap grows to $6 . 5 8 \%$ - points. It is important to highlight that in contrast to LMC, MNTDP’s module selection is performed by a task ID aware oracle. We further analyze the trade-off between the number of modules and accuracy in Figure 5, where we plot the number of modules (M) against average test accuracy $( \mathcal { A } )$ for models that resulted from training with different hyperparameters. For both streams, we observe that LMC tends to spawn much fewer modules than MNTDP. However, MNTDP shines in the presence of large number of modules and achieves higher overall test accuracy on these streams. Interestingly, as can be clearly observed on the $S ^ { l o n g }$ stream, LMC reaches higher accuracy with smaller number of modules: e.g. ${ \sim } 6 4 \%$ with 32 modules, while adding modules leads to lower accuracy: e.g. ${ \sim } 6 1 \%$ with 98 modules. This result suggests that local task ID agnostic module selection becomes more challenging for LMC in presence of a large number of modules.
|
| 182 |
+
|
| 183 |
+
# 5 Related work
|
| 184 |
+
|
| 185 |
+
Modularity in neural networks is studied in the context of scalability [9], and more recently as a way to achieve compositionality and systematic generalization [6, 47, 15, 8, 27, 19] as well as for multi-task learning [65, 82]. From the causal point of view, a data generation process could be thought as a composition of independent causal modules [75]. Researchers model these kinds of systems using a set of independent modules, where each module is invariant to changes in the other modules induced by e.g. distribution shifts [84, 76]. This idea is crystallized by Parascandolo et al. [74], who propose a way to learn a set of causal independent mechanisms as mixture-of-experts. Building up on this ideas, others show evidence of compositional OOD generalization [61]. Recently, [66] argue for a more wholistic view on CL including OOD generalization as an important desiderata.
|
| 186 |
+
|
| 187 |
+
Continual learning methods typically address the problem of forgetting through parameter regularization [46, 70, 99], replay [89, 78, 3, 73, 54, 12, 97, 39, 81, 13] or dynamic architectures (and MoEs) [83, 87, 52, 85, 53, 41]. Our work falls under the umbrella of the latter and shares its advantage of having the capacity to adapt to a large number of related tasks. Our focus is on improving modular CL approaches, which despite their advantages, have only recently been studied in the CL literature [63, 92]. The main difference with our work is that we use a local composition mechanism instead of a global one. We detail this difference in $\ S 2$ and also compare to these methods in $\ S 4 . 1$ .
|
| 188 |
+
|
| 189 |
+
Continual-meta learning focuses on fast learning and remembering [25, 35, 33, 41], often emphasising the online performance on OOD tasks [14]. As argued by Jerfel et al. [41] modularity can be useful in this setting to minimize interference between tasks. They proposed a way to train a MoE model, with each expert focusing on a cluster of tasks leveraging Bayesian nonparametrics. LMC aims at decomposing knowledge into layer-wise composable modules further reducing modular granularity. Continual-meta learning is often confused with its counterpart meta-continual learning [40, 11, 93], in which algorithm are learning to continually learn.
|
| 190 |
+
|
| 191 |
+
The rapid growth of continual learning has lead researchers to work on empirical studies [20, 58, 56], surveys [32, 42, 55, 66, 67] as well as CL-specific software [72, 22, 59].
|
| 192 |
+
|
| 193 |
+
# 6 Conclusion
|
| 194 |
+
|
| 195 |
+
We develop LMC, a method to learn and compose a series of modules on a continual stream of tasks fulfilling some of the basic desiderata of modular CL such as module specialization, avoidance of collapse, and sublinear growth. In LMC, structural information is learned and stored locally for each module. It is the locality of the structural component that enables generalization to related but unseen tasks, and that permits combining different LMCs without fine-tuning.
|
| 196 |
+
|
| 197 |
+
Future work could focus on achieving more efficient sub-linear model growth through OOD generalization and reusability of modules. Additionally, while the benefits of modularity for CL are well understood, the implications of the CL regime on modularity and compositionality have not been studied extensively. It is possible that providing knowledge to the learner in incremental chunks results in the implicit supervision needed to better disentangle it into specialized and composable modules. Another promising direction is removing the need for task boundaries during training and developing more robust architectures for the local structural component (related discussions are in Appendix A.3, and limitations in Appendix G).
|
| 198 |
+
|
| 199 |
+
References
|
| 200 |
+
[1] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. CoRR, abs/1711.09601, 2017.
|
| 201 |
+
[2] Rahaf Aljundi, Punarjay Chakravarty, and Tinne Tuytelaars. Expert gate: Lifelong learning with a network of experts. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3366–3375, 2017.
|
| 202 |
+
[3] Rahaf Aljundi, Lucas Caccia, Eugene Belilovsky, Massimo Caccia, Min Lin, Laurent Charlin, and Tinne Tuytelaars. Online continual learning with maximal interfered retrieval. In Advances in Neural Information Processing Systems 32, pages 11849–11860. Curran Associates, Inc., 2019.
|
| 203 |
+
[4] Mohammed Amer and Tomás Maul. A review of modularization techniques in artificial neural networks. Artificial Intelligence Review, 52(1):527–561, 2019.
|
| 204 |
+
[5] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Learning to compose neural networks for question answering. arXiv preprint arXiv:1601.01705, 2016.
|
| 205 |
+
[6] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 39–48, 2016.
|
| 206 |
+
[7] Antreas Antoniou, Harrison Edwards, and Amos Storkey. How to train your maml. arXiv preprint arXiv:1810.09502, 2018.
|
| 207 |
+
[8] Dzmitry Bahdanau, Shikhar Murty, Michael Noukhovitch, Thien Huu Nguyen, Harm de Vries, and Aaron Courville. Systematic generalization: What is required and can it be learned? In International Conference on Learning Representations, 2018.
|
| 208 |
+
[9] Dana H Ballard. Modular learning in neural networks. In AAAI, pages 279–284, 1987.
|
| 209 |
+
[10] Jens Behrmann, Will Grathwohl, Ricky TQ Chen, David Duvenaud, and Jörn-Henrik Jacobsen. Invertible residual networks. In International Conference on Machine Learning, pages 573–582. PMLR, 2019.
|
| 210 |
+
[11] Lucas Caccia and Joelle Pineau. Special: Self-supervised pretraining for continual learning. arXiv preprint arXiv:2106.09065, 2021.
|
| 211 |
+
[12] Lucas Caccia, Eugene Belilovsky, Massimo Caccia, and Joelle Pineau. Online learned continual compression with stacked quantization module. ArXiv, abs/1911.08019, 2019.
|
| 212 |
+
[13] Lucas Caccia, Rahaf Aljundi, Tinne Tuytelaars, Joelle Pineau, and Eugene Belilovsky. Reducing representation drift in online continual learning. arXiv preprint arXiv:2104.05025, 2021.
|
| 213 |
+
[14] Massimo Caccia, Pau Rodriguez, Oleksiy Ostapenko, Fabrice Normandin, Min Lin, Lucas Caccia, Issam Laradji, Irina Rish, Alexande Lacoste, David Vazquez, et al. Online fast adaptation and knowledge accumulation: a new approach to continual learning. arXiv preprint arXiv:2003.05856, 2020.
|
| 214 |
+
[15] Michael Chang, Abhishek Gupta, Sergey Levine, and Thomas L Griffiths. Automatically composing representation transformations as a means for generalization. In International Conference on Learning Representations, 2018.
|
| 215 |
+
[16] Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K Dokania, Philip HS Torr, and M Ranzato. Continual learning with tiny episodic memories. 2019.
|
| 216 |
+
[17] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, , and A. Vedaldi. Describing textures in the wild. In Proceedings of the IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2014.
|
| 217 |
+
[18] Rodolfo Corona, Daniel Fried, Coline Devin, Dan Klein, and Trevor Darrell. Modularity improves out-of-domain instruction following. arXiv preprint arXiv:2010.12764, 2020.
|
| 218 |
+
[19] Róbert Csordás, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Are neural nets modular? inspecting functional modularity through differentiable weight masks. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $= ^ { \prime }$ 7uVcpu-gMD.
|
| 219 |
+
[20] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. Continual learning: A comparative study on how to defy forgetting in classification tasks. arXiv preprint arXiv:1909.08383, 2019.
|
| 220 |
+
[21] Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014.
|
| 221 |
+
[22] Arthur Douillard and Timothée Lesort. Continuum: Simple management of complex continual learning scenarios. ArXiv, abs/2102.06253, 2021.
|
| 222 |
+
[23] Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. arXiv preprint arXiv:1805.09733, 2018.
|
| 223 |
+
[24] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning (ICML), 2017.
|
| 224 |
+
[25] Chelsea Finn, Aravind Rajeswaran, Sham Kakade, and Sergey Levine. Online meta-learning. In International Conference on Machine Learning, pages 1920–1930. PMLR, 2019.
|
| 225 |
+
[26] Robert M French. Pseudo-recurrent connectionist networks: An approach to the’sensitivitystability’dilemma. Connection Science, 9(4):353–380, 1997.
|
| 226 |
+
[27] Anirudh Goyal, Alex Lamb, Jordan Hoffmann, Shagun Sodhani, Sergey Levine, Yoshua Bengio, and Bernhard Schölkopf. Recurrent independent mechanisms. arXiv preprint arXiv:1909.10893, 2019.
|
| 227 |
+
[28] Anirudh Goyal, Aniket Didolkar, Alex Lamb, Kartikeya Badola, Nan Rosemary Ke, Nasim Rahaman, Jonathan Binas, Charles Blundell, Michael Mozer, and Yoshua Bengio. Coordination among neural modules through a shared global workspace. arXiv preprint arXiv:2103.01197, 2021.
|
| 228 |
+
[29] Erin Grant, Chelsea Finn, Sergey Levine, Trevor Darrell, and Thomas Griffiths. Recasting gradient-based meta-learning as hierarchical bayes. arXiv preprint arXiv:1801.08930, 2018.
|
| 229 |
+
[30] Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020.
|
| 230 |
+
[31] Sharut Gupta, Praveer Singh, Ken Chang, Mehak Aggarwal, Nishanth Arun, Liangqiong Qu, Katharina Hoebel, Jay Patel, Mishka Gidwani, Ashwin Vaswani, et al. The unreasonable effectiveness of batch-norm statistics in addressing catastrophic forgetting across medical institutions. arXiv preprint arXiv:2011.08096, 2020.
|
| 231 |
+
[32] Raia Hadsell, Dushyant Rao, Andrei A Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 2020.
|
| 232 |
+
[33] James Harrison, Apoorva Sharma, Chelsea Finn, and Marco Pavone. Continuous meta-learning without tasks. arXiv preprint arXiv:1912.08866, 2019.
|
| 233 |
+
[34] Xu He, Jakub Sygnowski, Alexandre Galashov, Andrei A. Rusu, Yee Whye Teh, and Razvan Pascanu. Task agnostic continual learning via meta learning. ArXiv, abs/1906.05201, 2019.
|
| 234 |
+
[35] Xu He, Jakub Sygnowski, Alexandre Galashov, Andrei A Rusu, Yee Whye Teh, and Razvan Pascanu. Task agnostic continual learning via meta learning. arXiv preprint arXiv:1906.05201, 2019.
|
| 235 |
+
[36] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. arXiv preprint arXiv:1812.04606, 2018.
|
| 236 |
+
[37] Guillaume Hocquet, Olivier Bichler, and Damien Querlioz. Ova-inn: Continual learning with invertible neural networks. arXiv preprint arXiv:2006.13772, 2020.
|
| 237 |
+
[38] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pages 448–456. PMLR, 2015.
|
| 238 |
+
[39] David Isele and Akansel Cosgun. Selective experience replay for lifelong learning. In AAAI conference on artificial intelligence, 2018.
|
| 239 |
+
[40] Khurram Javed and Martha White. Meta-learning representations for continual learning. In Advances in Neural Information Processing Systems 32, pages 1820– 1830. Curran Associates, Inc., 2019. URL http://papers.nips.cc/paper/ 8458-meta-learning-representations-for-continual-learning.pdf.
|
| 240 |
+
[41] Ghassen Jerfel, Erin Grant, Tom Griffiths, and Katherine A Heller. Reconciling meta-learning and continual learning with online mixtures of tasks. In Advances in Neural Information Processing Systems, pages 9122–9133, 2019.
|
| 241 |
+
[42] Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives, 2020.
|
| 242 |
+
[43] Byungju Kim, Hyunwoo Kim, Kyungsu Kim, Sungjin Kim, and Junmo Kim. Learning not to learn: Training deep neural networks with biased data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9012–9020, 2019.
|
| 243 |
+
[44] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/ abs/1412.6980.
|
| 244 |
+
[45] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 245 |
+
[46] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
|
| 246 |
+
[47] Louis Kirsch, Julius Kunze, and David Barber. Modular networks: Learning to decompose neural computation. Advances in Neural Information Processing Systems, 31:2408–2418, 2018.
|
| 247 |
+
[48] Ivan Kobyzev, Simon Prince, and Marcus Brubaker. Normalizing flows: An introduction and review of current methods. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
|
| 248 |
+
[49] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 249 |
+
[50] Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015.
|
| 250 |
+
[51] Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/.
|
| 251 |
+
[52] Jeongtae Lee, Jaehong Yoon, Eunho Yang, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. CoRR, abs/1708.01547, 2017.
|
| 252 |
+
[53] Soochan Lee, Junsoo Ha, Dongsu Zhang, and Gunhee Kim. A neural dirichlet process mixture model for task-free continual learning. arXiv preprint arXiv:2001.00689, 2020.
|
| 253 |
+
[54] Timothée Lesort, Hugo Caselles-Dupré, Michael Garcia-Ortiz, Jean-François Goudou, and David Filliat. Generative Models from the perspective of Continual Learning. In International Joint Conference on Neural Networks (IJCNN), 2019.
|
| 254 |
+
[55] Timothée Lesort, Massimo Caccia, and Irina Rish. Understanding continual learning settings with data distribution drift analysis, 2021.
|
| 255 |
+
[56] Timothée Lesort, Thomas George, and Irina Rish. Continual learning in deep networks: an analysis of the last layer, 2021.
|
| 256 |
+
[57] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
|
| 257 |
+
[58] Vincenzo Lomonaco, Lorenzo Pellegrini, Pau Rodríguez, Massimo Caccia, Qi She, Yu Chen, Quentin Jodelet, Ruiping Wang, Zheda Mai, David Vázquez, German Ignacio Parisi, Nikhil Churamani, Marc Pickett, Issam H. Laradji, and Davide Maltoni. Cvpr 2020 continual learning in computer vision competition: Approaches, results, current challenges and future directions. ArXiv, abs/2009.09929, 2020.
|
| 258 |
+
[59] Vincenzo Lomonaco, Lorenzo Pellegrini, Andrea Cossu, Antonio Carta, Gabriele Graffieti, Tyler L. Hayes, Matthias De Lange, Marc Masana, Jary Pomponi, Gido van de Ven, Martin Mundt, Qi She, Keiland Cooper, Jeremy Forest, Eden Belouadah, Simone Calderara, German I. Parisi, Fabio Cuzzolin, Andreas Tolias, Simone Scardapane, Luca Antiga, Subutai Amhad, Adrian Popescu, Christopher Kanan, Joost van de Weijer, Tinne Tuytelaars, Davide Bacciu, and Davide Maltoni. Avalanche: an end-to-end library for continual learning. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, 2nd Continual Learning in Computer Vision Workshop, 2021.
|
| 259 |
+
[60] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pages 6467–6476, 2017.
|
| 260 |
+
[61] Kanika Madan, Nan Rosemary Ke, Anirudh Goyal, Bernhard Schölkopf, and Yoshua Bengio. Fast and slow learning of recurrent independent mechanisms. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=Lc28QAB4ypz.
|
| 261 |
+
[62] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier, 1989.
|
| 262 |
+
[63] Jorge A Mendez and Eric Eaton. Lifelong learning of compositional structures. arXiv preprint arXiv:2007.07732, 2020.
|
| 263 |
+
[64] Martial Mermillod, Aurélia Bugaiska, and Patrick Bonin. The stability-plasticity dilemma: Investigating the continuum from catastrophic forgetting to age-limited learning effects. Frontiers in psychology, 4:504, 2013.
|
| 264 |
+
[65] Elliot Meyerson and Risto Miikkulainen. Beyond shared hierarchies: Deep multitask learning through soft layer ordering. arXiv preprint arXiv:1711.00108, 2017.
|
| 265 |
+
[66] Martin Mundt, Yong Won Hong, Iuliia Pliushch, and Visvanathan Ramesh. A wholistic view of continual learning with deep neural networks: Forgotten lessons and the bridge to active and open world learning, 2020.
|
| 266 |
+
[67] Martin Mundt, Steven Lang, Quentin Delfosse, and Kristian Kersting. Cleva-compass: A continual learning evaluation assessment compass to promote research transparency and comparability, 2021.
|
| 267 |
+
[68] Eric Nalisnick, Akihiro Matsukawa, Yee Whye Teh, Dilan Gorur, and Balaji Lakshminarayanan. Do deep generative models know what they don’t know? arXiv preprint arXiv:1810.09136, 2018.
|
| 268 |
+
[69] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 269 |
+
[70] Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational continual learning. In International Conference on Learning Representations (ICLR), 2018.
|
| 270 |
+
[71] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018.
|
| 271 |
+
[72] Fabrice Normandin, Florian Golemo, Oleksiy Ostapenko, Pau Rodriguez, Matthew D Riemer, Julio Hurtado, Khimya Khetarpal, Dominic Zhao, Ryan Lindeborg, Timothée Lesort, Laurent Charlin, Irina Rish, and Massimo Caccia. Sequoia: A software framework to unify continual learning research, 2021.
|
| 272 |
+
[73] Oleksiy Ostapenko, Mihai Puscas, Tassilo Klein, Patrick Jahnichen, and Moin Nabi. Learning to remember: A synaptic plasticity driven framework for continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11321–11329, 2019.
|
| 273 |
+
[74] Giambattista Parascandolo, Niki Kilbertus, Mateo Rojas-Carulla, and Bernhard Schölkopf. Learning independent causal mechanisms. In International Conference on Machine Learning, pages 4036–4044. PMLR, 2018.
|
| 274 |
+
[75] Judea Pearl. Causality. Cambridge university press, 2009.
|
| 275 |
+
[76] Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference: foundations and learning algorithms. The MIT Press, 2017.
|
| 276 |
+
[77] Mohammad Pezeshki, Sékou-Oumar Kaba, Yoshua Bengio, Aaron Courville, Doina Precup, and Guillaume Lajoie. Gradient starvation: A learning proclivity in neural networks. arXiv preprint arXiv:2011.09468, 2020.
|
| 277 |
+
[78] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 278 |
+
[79] Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. arXiv preprint arXiv:1803.00676, 2018.
|
| 279 |
+
[80] Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International conference on machine learning, pages 1530–1538. PMLR, 2015.
|
| 280 |
+
[81] David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy Lillicrap, and Gregory Wayne. Experience replay for continual learning. In Advances in Neural Information Processing Systems, 2019.
|
| 281 |
+
[82] Clemens Rosenbaum, Ignacio Cases, Matthew Riemer, and Tim Klinger. Routing networks and the challenges of modular and compositional computation. arXiv preprint arXiv:1904.12774, 2019.
|
| 282 |
+
[83] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
|
| 283 |
+
[84] B Schölkopf, D Janzing, J Peters, E Sgouritsa, K Zhang, and J Mooij. On causal and anticausal learning. In 29th International Conference on Machine Learning (ICML 2012), pages 1255–1262. International Machine Learning Society, 2012.
|
| 284 |
+
[85] Jonathan Schwarz, Jelena Luketina, Wojciech M Czarnecki, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. arXiv preprint arXiv:1805.06370, 2018.
|
| 285 |
+
[86] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. International Conference on Machine Learning (ICML), 2018.
|
| 286 |
+
[87] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In International Conference on Machine Learning, pages 4548–4557. PMLR, 2018.
|
| 287 |
+
[88] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer, 2017.
|
| 288 |
+
[89] Andrea Soltoggio. Short-term plasticity as cause–effect hypothesis testing in distal reward learning. Biological cybernetics, 109(1):75–94, 2015.
|
| 289 |
+
[90] Olaf Sporns and Richard F Betzel. Modular brain networks. Annual review of psychology, 67:613–640, 2016.
|
| 290 |
+
[91] Saul Sternberg. Modular processes in mind and brain. Cognitive neuropsychology, 28(3-4):156–208, 2011.
|
| 291 |
+
[92] Tom Veniat, Ludovic Denoyer, and Marc’Aurelio Ranzato. Efficient continual learning with modular networks and task-driven priors. arXiv preprint arXiv:2012.12631, 2020.
|
| 292 |
+
[93] Johannes von Oswald, Dominic Zhao, Seijin Kobayashi, Simon Schug, Massimo Caccia, Nicolas Zucchet, and João Sacramento. Learning where to learn: Gradient sparsity in meta and continual learning. NeurIPS 2021, 2021.
|
| 293 |
+
[94] Yaqing Wang, Quanming Yao, James T Kwok, and Lionel M Ni. Generalizing from a few examples: A survey on few-shot learning. ACM Computing Surveys (CSUR), 53(3):1��34, 2020.
|
| 294 |
+
[95] Ziyu Wang, Bin Dai, David Wipf, and Jun Zhu. Further analysis of outlier detection with deep generative models. arXiv preprint arXiv:2010.13064, 2020.
|
| 295 |
+
[96] James CR Whittington and Rafal Bogacz. An approximation of the error backpropagation algorithm in a predictive coding network with local hebbian synaptic plasticity. Neural computation, 29(5):1229–1262, 2017.
|
| 296 |
+
[97] Chenshen Wu, Luis Herranz, Xialei Liu, Joost van de Weijer, Bogdan Raducanu, et al. Memory replay gans: Learning to generate new categories without forgetting. Advances in Neural Information Processing Systems, 31:5962–5972, 2018.
|
| 297 |
+
[98] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
|
| 298 |
+
[99] Chen Zeno, Itay Golan, Elad Hoffer, and Daniel Soudry. Task agnostic continual learning using online variational bayes, 2018.
|
| 299 |
+
|
| 300 |
+
# Acknowledgments and Disclosure of Funding
|
| 301 |
+
|
| 302 |
+
Laurent Charlin holds a CIFAR AI Chair Program and acknowledges support from Samsung Electronics Co., Ldt., Google, and NSERC. Massimo Caccia was supported through MITACS during his part time employment with Element AI the ServiceNow company. Massimo Caccia was also supported by Amazon, during his part time employment there. We would like to thank Mila and Compute Canada for providing computational resources. We also would like to thank Irina Rish for useful discussions.
|
parse/train/LJjC6DmSkgT/LJjC6DmSkgT_content_list.json
ADDED
|
@@ -0,0 +1,1134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Continual Learning via Local Module Composition ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
186,
|
| 8 |
+
122,
|
| 9 |
+
808,
|
| 10 |
+
148
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Oleksiy Ostapenko12 Pau Rodríguez3 Massimo Caccia123 Laurent Charlin145 1Mila - Quebec AI Institute, 2Université de Montréal, 3ServiceNow, 4HEC Montréal, 5Canada CIFAR AI Chair ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
205,
|
| 19 |
+
199,
|
| 20 |
+
792,
|
| 21 |
+
243
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
280,
|
| 32 |
+
535,
|
| 33 |
+
296
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Modularity is a compelling solution to continual learning (CL), the problem of modeling sequences of related tasks. Learning and then composing modules to solve different tasks provides an abstraction to address the principal challenges of CL including catastrophic forgetting, backward and forward transfer across tasks, and sub-linear model growth. We introduce local module composition (LMC), an approach to modular CL where each module is provided a local structural component that estimates a module’s relevance to the input. Dynamic module composition is performed layer-wise based on local relevance scores. We demonstrate that agnosticity to task identities (IDs) arises from (local) structural learning that is module-specific as opposed to the task- and/or model-specific as in previous works, making LMC applicable to more CL settings compared to previous works. In addition, LMC also tracks statistics about the input distribution and adds new modules when outlier samples are detected. In the first set of experiments, LMC performs favorably compared to existing methods on the recent Continual Transfer-learning Benchmark without requiring task identities. In another study, we show that the locality of structural learning allows LMC to interpolate to related but unseen tasks (OOD), as well as to compose modular networks trained independently on different task sequences into a third modular network without any fine-tuning. Finally, in search for limitations of LMC we study it on more challenging sequences of 30 and 100 tasks, demonstrating that local module selection becomes much more challenging in presence of a large number of candidate modules. In this setting best performing LMC spawns much fewer modules compared to an oracle based baseline, however it reaches a lower overall accuracy. The codebase is available under https://github.com/oleksost/LMC. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
309,
|
| 43 |
+
766,
|
| 44 |
+
640
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
664,
|
| 55 |
+
310,
|
| 56 |
+
681
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The goal of continual learning (CL) is to learn efficiently from a non-stationary stream of tasks without (catastrophically) forgetting previous tasks [62]. CL is often modeled as a trade-off between knowledge retention (stability) and knowledge expansion (plasticity) [26, 64]. Parameter sharing can provide control over this trade-off. For example, learning a single model shared across tasks results in better knowledge transfer and faster learning at the expense of forgetting [46, 57]. Conversely, learning a separate model per task eliminates forgetting but minimizes transfer and data efficiency [2, 41]. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
694,
|
| 66 |
+
825,
|
| 67 |
+
779
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Modular learning aims at balancing transfer and forgetting by learning a set of specialized modules that can be recomposed to solve (new) tasks while only updating a subset of relevant modules or adding new modules [6, 47, 27]. In principle, a modular learner capable of composing modules in meaningful structures can provide additional benefits including (i) computational gains due to only executing modules that are relevant to a task [47, 4]; (ii) memory gains due to instantiating a sub-linear number of modules w.r.t. the number of tasks; (iii) systematic [8] and out-of-distribution (OOD) generalization [18] through knowledge recombination; and (iv) biological plausibility [91, 90, 96]. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
785,
|
| 77 |
+
825,
|
| 78 |
+
882
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Designing modular methods for CL comes with two main challenges. The first is how and when to add new modules to ensure sufficient plasticity to learn new tasks. Existing modular methods use greedy search variants, expanding the model when it improves validation performance [92, 63]. The second challenge is how to compose that is, retrieve task-specific structural knowledge given a new task (previously seen or not). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
90,
|
| 88 |
+
825,
|
| 89 |
+
161
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Existing methods rely on a task’s identifier (ID) to retrieve task-specific structural knowledge, which comes either in the form of an optimal module layout [92] or as a model- and task-specific controller network that generates modular layouts [63]. Unfortunately, in many realistic CL scenarios task identities are unavailable at test time [23, 35, 14]. Lifting this limitation is challenging since standard mechanisms for task inference, for example, leveraging a task-inference model, could be subject to forgetting themselves. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
166,
|
| 99 |
+
825,
|
| 100 |
+
251
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To address both challenges, we equip each module with a local structural component that predicts a score indicating how relevant the module is for a given input. In-distribution inputs result in high scores, while out-of-distribution inputs result in low scores. In other words, modules self-determine their relevance given an input. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
256,
|
| 110 |
+
825,
|
| 111 |
+
313
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "This local component is used for composing modules: for each datum, modules are combined at each layer according to their normalized scores without requiring a task’s ID (§3). The local component is also used for module expansion: a new module is instantiated if all the current modules flag their input as being locally out-of-distribution (§3.1). Further, new shallow modules (i.e. closer to the input) are first trained in a projection phase to maximize the relatedness scores of subsequent, deeper, modules (§3.2). This process projects the output of new modules into the representation space expected by the subsequent modules and ensures the compatibility between low- and high-level modules. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
319,
|
| 121 |
+
825,
|
| 122 |
+
416
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In a set of studies, we explore the performance and versatility of our local structural approach, which we call Local Module Composer (LMC). First, we show that LMC reaches superior or comparable performance to existing modular and non-modular methods without requiring task IDs at test time using the Continual Transfer Learning (CTrL) benchmark, designed to evaluate transfer and forgetting in CL [92] (§4.1). Then, we demonstrate how LMC, relying on its projection phase, can solve out-ofdistribution (OOD) tasks not seen during the continual training (§4.2). We also show it is possible to combine modules from independently trained models into a new model to solve tasks seen by each of the independent models without any finetuning (§4.3). Finally, an analysis of longer task sequences (30 and 100 tasks) reveals that LMC tends to spawn much fewer modules to reach good performance than the fully task-aware MNTDP [92] counterpart. However, LMC reaches slightly lower accuracy on longer sequences than MNTDP, which highlights the difficulty of automatic task-ID agnostic module selection in the presence of a large number of candidate modules. In Appendix F we demonstrate the applicability of LMC in the meta-continual learning (meta-CL) setting, a task-agnostic setting by nature. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
421,
|
| 132 |
+
825,
|
| 133 |
+
616
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "We highlight that by relying on a local (per-module) structural component, LMC offers a modular CL approach that i) does not require task IDs during test in the standard task incremental settings; ii) balances parameter sharing to yield strong CL performances compared to baselines that require access to the task ID; iii) in our experiments instantiates a sub-linear number of modules; iv) permits recombination of modules at test time enabling OOD generalization as well as (v) the ability to combine independently trained models in a third model without fine-tuning. Notably, the OOD generalization is only possible if the agent is task-agnostic in the module selection process, since OOD tasks were not observed at training, the learner has to interpolate between the learned tasks, and a (categorial) task ID is of no use. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
173,
|
| 142 |
+
621,
|
| 143 |
+
825,
|
| 144 |
+
746
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 Background: Modular Continual Learning ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
768,
|
| 155 |
+
565,
|
| 156 |
+
787
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Let $\\mathcal { F } ( x ; \\theta ) : \\mathcal { X } \\mathcal { Y }$ be a learner parametrized with a set of parameters $\\theta$ . In task-incremental CL, the learner is exposed to a sequence of tasks. Each task is composed of a training set $D _ { t }$ of $( x , y )$ pairs and a task identifier (ID) $t$ [92, 46]. The goal is to learn an optimal $\\theta ^ { * }$ that minimizes the loss $\\mathcal { L }$ for all observed tasks: ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
803,
|
| 166 |
+
825,
|
| 167 |
+
858
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "equation",
|
| 173 |
+
"img_path": "images/17e4a056bfa4a79f052b0fa9a2bda2d98a0218cf22b906687e416b47a2b6930a.jpg",
|
| 174 |
+
"text": "$$\n\\theta ^ { * } = \\underset { \\theta } { \\arg \\operatorname* { m i n } } \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { ( x , y ) \\sim D _ { t } } [ \\mathcal { L } ( \\mathcal { F } ( x ; \\theta ) , y ) ] .\n$$",
|
| 175 |
+
"text_format": "latex",
|
| 176 |
+
"bbox": [
|
| 177 |
+
352,
|
| 178 |
+
866,
|
| 179 |
+
645,
|
| 180 |
+
909
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "image",
|
| 186 |
+
"img_path": "images/79e5610f1b14f8153e55f838afeb9202b2b770be5adfa97cac2fc32f449df0f7.jpg",
|
| 187 |
+
"image_caption": [
|
| 188 |
+
"Figure 1: Modular Layer Scheme. Each black rectangle is a module. Inside each module, the functional component receives the input $x ^ { ( l - 1 ) }$ and feeds its output to the structural component . m The output of the structural component is used to calculate the importance score $\\gamma _ { m } ^ { ( l ) }$ using Eq. 5, which are normalized to obtain the attention vector . The layer output is the weighted sum of the functional outputs of each module. $\\mu$ and $\\sigma$ are the running mean and variance of the scores $\\gamma _ { m } ^ { ( l ) }$ used to detect outlier inputs and to trigger module addition. "
|
| 189 |
+
],
|
| 190 |
+
"image_footnote": [],
|
| 191 |
+
"bbox": [
|
| 192 |
+
228,
|
| 193 |
+
87,
|
| 194 |
+
771,
|
| 195 |
+
238
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "The parameter sharing trade-off between tasks can be addressed through different architectural design choices for $\\mathcal { F }$ . For example, $\\mathcal { F }$ can be a monolithic network that shares parameters $\\theta$ across all tasks. Most existing task incremental CL methods use a task-specific output head, requiring the task ID to select the output head corresponding to the task at hand [46, 87, 1]. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
359,
|
| 205 |
+
826,
|
| 206 |
+
417
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "At the other end of the spectrum are the expert based solutions that learn an independent model, a.k.a. \nexpert, for each task [2, 83]. In this case, each expert trains task-specific parameters $\\boldsymbol { \\theta } = \\{ \\boldsymbol { \\theta } ^ { ( t ) } \\} _ { t = 1 } ^ { T }$ . ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
422,
|
| 216 |
+
823,
|
| 217 |
+
453
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "To balance parameter sharing and transfer, modular methods organize their parameters in a series of modules $M = \\{ m _ { k } ^ { ( l ) } \\}$ with parameters $\\boldsymbol { \\theta } = \\{ \\boldsymbol { \\theta } _ { k } ^ { ( l ) } \\}$ , where $\\theta _ { k } ^ { ( l ) }$ denotes the parameters of module at layer in $\\mathcal { F }$ . In general, a module can be any parametric function. In our experiments, unless otherwise stated, a module consists of a single convolutional layer followed by batch-norm, ReLU activation, and a max-pooling operation. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
458,
|
| 227 |
+
825,
|
| 228 |
+
532
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Modules can be composed conditioned on a sample, a batch of samples, or a task. Let $\\psi$ denote a specific composition of modules that gives rise to a distinct prediction function; we make this dependence explicit: $\\mathcal { F } ( x ; \\theta , \\psi )$ . Importantly, sharing modules across tasks should lead to desirable transfer properties. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
537,
|
| 238 |
+
825,
|
| 239 |
+
594
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Veniat et al. [92] frames modular CL as finding an optimal layout $\\psi ^ { ( t ) }$ for each task, where each layout selects a single module per layer per task (hard selection): ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
601,
|
| 249 |
+
821,
|
| 250 |
+
630
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "equation",
|
| 256 |
+
"img_path": "images/33a49ca74a1f9f86d0a220ac3ac14cbacf032abb693e719e68854815f2c8c6a9.jpg",
|
| 257 |
+
"text": "$$\n\\theta ^ { * } , \\Psi ^ { * } = \\underset { \\theta , \\Psi } { \\arg \\operatorname* { m i n } } \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { ( x , y ) \\sim D _ { t } } [ \\mathcal { L } ( \\mathcal { F } ( x ; \\theta , \\psi ^ { ( t ) } ) , y ) ] .\n$$",
|
| 258 |
+
"text_format": "latex",
|
| 259 |
+
"bbox": [
|
| 260 |
+
321,
|
| 261 |
+
633,
|
| 262 |
+
676,
|
| 263 |
+
676
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "In this case the set of layouts $\\Psi = \\{ \\psi ^ { ( t ) } \\}$ grows with the number of tasks, while modules can be reused across different task-specific layouts resulting in sub-linear growth pattern. They design a method called MNTDP to search the exponentially large space of modular layouts by only considering layouts resulting from adding a new module per layer to the best prior path (past task’s path with the highest nearest neighbor accuracy on a new task) starting at the top layer. This solution relies on task IDs to retrieve $\\psi ^ { ( t ) }$ at test time. ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
173,
|
| 272 |
+
680,
|
| 273 |
+
825,
|
| 274 |
+
767
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Another way of composing modules uses dynamic routing [63, 82, 47, 65]. The module layout is generated by a structural function $\\psi = s ( x )$ , hence different inputs take different routes through $\\mathcal { F }$ . It is standard to approximate the structural function using a neural network $\\psi = s ( x ; \\phi )$ with structural parameters $\\phi$ . This framework has been applied to CL in [63] by learning a separate structural function per task $\\psi ^ { ( t ) } = s ( x ; \\phi ^ { ( t ) } )$ . The task IDs are used to retrieve the correct structural function: ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
772,
|
| 284 |
+
825,
|
| 285 |
+
844
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "equation",
|
| 291 |
+
"img_path": "images/8867454a7883ef58e59dde60ff69c591f6b66f78c2f2ac5b4e2b6f4612a905dc.jpg",
|
| 292 |
+
"text": "$$\n\\theta ^ { * } , \\Phi ^ { * } = \\underset { \\theta , \\Phi } { \\arg \\operatorname* { m i n } } \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { ( x , y ) \\sim D _ { t } } [ \\mathcal { L } ( \\mathcal { F } ( x ; \\theta , s ( x ; \\phi ^ { ( t ) } ) ) , y ) ] ,\n$$",
|
| 293 |
+
"text_format": "latex",
|
| 294 |
+
"bbox": [
|
| 295 |
+
303,
|
| 296 |
+
848,
|
| 297 |
+
692,
|
| 298 |
+
891
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "where $\\Phi = \\{ \\phi ^ { ( t ) } \\}$ is the set of structural parameters for all tasks. ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
173,
|
| 307 |
+
896,
|
| 308 |
+
598,
|
| 309 |
+
912
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "image",
|
| 315 |
+
"img_path": "images/637696b9b75108d43c64f5d8d33137e3bcbb1fc4d129dee043a64ee8e9ade9f4.jpg",
|
| 316 |
+
"image_caption": [
|
| 317 |
+
"Figure 2: Two-phase training. Each module contains a functional (rectangle) and structural (trapezoid) component. Their color intensity denotes the strength of their activation. Components with dashed contours are trained, solid contours represent fixed components, arrows show the gradient flow: black arrow — functional signal, pink — structural signal. (A) All modules are trained on task 0. (B) Task 1 arrives, a new module is added at layer 1, which is first trained to project its output into the representation of the modules above via the structural signal (the functional signal is optional). No module addition is allowed during the projection phase. (C) Module addition is allowed again, both signals are used for training. (D) As task 3 arrives, a new module is added at layer 1 again, projection phase is triggered. (E) A new module is added at the layer 2, both new modules are now trained in the second projection phase. (F) Both new modules are trained using both signals. "
|
| 318 |
+
],
|
| 319 |
+
"image_footnote": [],
|
| 320 |
+
"bbox": [
|
| 321 |
+
179,
|
| 322 |
+
87,
|
| 323 |
+
823,
|
| 324 |
+
185
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "The above methods require task IDs at both training and testing time. Next we introduce our modular CL approach that only relies on task IDs during training. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
358,
|
| 334 |
+
823,
|
| 335 |
+
387
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "3 Local Module Composer (LMC) ",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
174,
|
| 345 |
+
405,
|
| 346 |
+
475,
|
| 347 |
+
424
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 3
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "We propose LMC, a modular approach where each module consists of a functional component $f ( x ; \\theta _ { m } ^ { ( \\bar { l } ) } )$ and a structural component $s ( x ; \\phi _ { m } ^ { ( l ) } )$ , see Figure 1. The functional components are responsible for learning to solve the prediction task and are trained via the usual task loss $\\mathcal { L }$ (e.g. cross-entropy loss for classification). The structural components receive the corresponding functional output as their input (see Figure 1) and are responsible for dynamic routing through $\\mathcal { F }$ . Structural parameters $\\phi$ are trained using a structural loss $\\bar { \\mathcal { L } } ^ { ( s t . ) }$ computed locally at each module. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
173,
|
| 356 |
+
436,
|
| 357 |
+
825,
|
| 358 |
+
525
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "Intuitively, the structural component of a module should serve as a density estimator of the outputs of the functional component. The module’s contribution to the layer’s output is proportional to the likelihood of the input sample under the estimated density. In our instantiation, the structural component produces a relatedness score: a lower score for inputs that are more likely to belong to the distribution on which a given module was trained, and a higher score for inputs that are out-of-distribution for the given module. Hence, the likelihood of the input sample is approximated by the negative relatedness score. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
173,
|
| 367 |
+
531,
|
| 368 |
+
825,
|
| 369 |
+
628
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Given an input data sample $x ^ { ( 0 ) } = x$ , the output $x ^ { ( l ) }$ of a layer $l$ is defined as the weighted sum of the functional outputs of all $| M ^ { ( l ) } |$ local modules and used as input to the subsequent layer $l + 1$ : ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
174,
|
| 378 |
+
633,
|
| 379 |
+
823,
|
| 380 |
+
666
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "equation",
|
| 386 |
+
"img_path": "images/15e7c403758902bb5ea5868ea8692568be4f804673d45808fabf30d3b81f2ef4.jpg",
|
| 387 |
+
"text": "$$\n\\boldsymbol { x } ^ { ( l ) } = \\sum _ { m = 1 } ^ { | M ^ { ( l ) } | } w _ { m } ^ { ( l ) } \\cdot f ( \\boldsymbol { x } ^ { ( l - 1 ) } ; \\boldsymbol { \\theta } _ { m } ^ { ( l ) } ) .\n$$",
|
| 388 |
+
"text_format": "latex",
|
| 389 |
+
"bbox": [
|
| 390 |
+
385,
|
| 391 |
+
670,
|
| 392 |
+
612,
|
| 393 |
+
717
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "The functional output of the network is equal to the output of the final layer: $\\mathcal { F } ( x ; \\theta , \\phi ) = x ^ { ( L ) }$ . In the last layer $\\mathcal { F }$ implements a single output-head per task. At training time, the task ID is available and we update only the output-head corresponding to the currently learned task. At test time, the task ID is not available and we select the output head with the highest activation weight $w _ { m } ^ { ( L ) }$ , i.e., the last layer performs hard module selection. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
728,
|
| 403 |
+
825,
|
| 404 |
+
803
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "The module activation weights $w _ { m } ^ { ( l ) }$ are computed by normalizing the vector of local relatedness scores $\\gamma ^ { ( l ) } \\in \\mathbb { R } ^ { | M ^ { ( l ) } | }$ . Each element of $\\gamma ^ { ( l ) }$ is obtained from the negative structural loss which approximates the likelihood of each module: ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
809,
|
| 414 |
+
825,
|
| 415 |
+
858
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "equation",
|
| 421 |
+
"img_path": "images/c54db01831735e8c0e806f91a31128c9c5a56951978e8b26f9c6c8a513e8e144.jpg",
|
| 422 |
+
"text": "$$\n\\begin{array} { r l } & { \\gamma _ { m } ^ { ( l ) } = - \\mathcal { L } ^ { ( s t . ) } \\Bigl ( s \\bigl [ f ( x ^ { ( l - 1 ) } ; \\theta _ { m } ^ { ( l ) } ) ; \\phi _ { m } ^ { ( l ) } \\bigr ] \\Bigr ) , } \\\\ & { w _ { m } ^ { ( l ) } = \\mathrm { s o f t m a x } ( \\gamma ^ { ( l ) } ) _ { m } . } \\end{array}\n$$",
|
| 423 |
+
"text_format": "latex",
|
| 424 |
+
"bbox": [
|
| 425 |
+
362,
|
| 426 |
+
861,
|
| 427 |
+
635,
|
| 428 |
+
911
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "Modules with lower structural loss get higher activation weights. Note that in practice, it can be useful to bias the module selection towards the expected module selection in a batch, assuming that samples within a batch are likely to belong to the same task. We discuss this point further in $\\ S \\operatorname { A . 1 }$ . ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
90,
|
| 438 |
+
823,
|
| 439 |
+
133
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "Instead of using the softmax function, it is possible perform hard selection taking the module with the highest score [82], or alternatively selecting top-k modules [88]. In both cases, LMC’s structural parameters stay differentiable due to the local nature of structural learning. Note that in the case of global structural objective, hard module selection would require applying tools for non-differentiable learning such as Expectation Maximization [47] or reinforcement-learning based methods [82, 5]. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
138,
|
| 449 |
+
825,
|
| 450 |
+
210
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "The overall LMC objective consists of optimizing both functional and structural losses: ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
215,
|
| 460 |
+
745,
|
| 461 |
+
231
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 4
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "equation",
|
| 467 |
+
"img_path": "images/cee7ef3efed08b2b5b6c43a2e93b94d054c7453ba4a529fb6d49724686ed0844.jpg",
|
| 468 |
+
"text": "$$\n\\theta ^ { * } , \\phi ^ { * } = \\underset { \\theta , \\phi } { \\operatorname { a r g m i n } } \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { ( x , y ) \\sim D _ { t } } \\Big [ \\mathcal { L } \\big ( \\mathcal { F } ( x ; \\theta , \\phi ) , y \\big ) + \\sum _ { l = 0 } ^ { L } \\sum _ { m = 0 } ^ { | M ^ { ( l ) } | } \\mathcal { L } _ { m } ^ { ( s t . ) } \\big ( s [ f ( x ^ { ( l - 1 ) } ; \\theta _ { m } ^ { ( l ) } ) ; \\phi _ { m } ^ { ( l ) } ] \\big ) \\Big ] .\n$$",
|
| 469 |
+
"text_format": "latex",
|
| 470 |
+
"bbox": [
|
| 471 |
+
187,
|
| 472 |
+
236,
|
| 473 |
+
810,
|
| 474 |
+
284
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "As in [92], learning is performed w.r.t. only newly introduced modules to prevent forgetting. ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
171,
|
| 483 |
+
309,
|
| 484 |
+
777,
|
| 485 |
+
325
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Structural component. We test two instantiations of the structural component $s$ and loss $\\mathcal { L } _ { m } ^ { ( s t . ) }$ . In the first one, $s$ is an invertible neural network [80]. Here we use the invertible architecture proposed by Dinh et al. [21]. As shown by Hocquet et al. [37], for this invertible architecture the structural objective can be defined as from collapsing to an all-ze $\\mathcal { L } _ { m } ^ { ( s t . ) } ( x ) = | | x | | _ { 2 }$ . Intuitively, an invertible architecture prevents $\\mathcal { L } _ { m } ^ { ( s t . ) }$ ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
342,
|
| 495 |
+
825,
|
| 496 |
+
416
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "In the second instantiation, $s$ and $f$ form an autoencoder and $\\mathcal { L } _ { m } ^ { ( s t . ) } ( x ) = | | x ^ { ( l - 1 ) } - x | | ^ { 2 }$ is the reconstruction error with respect to the module’s input $x ^ { ( l - 1 ) }$ . Aljundi et al. [2] used a similar idea was for selecting the most relevant expert network conditioned on a task. Unless stated otherwise, modules in the feature extractor use the autoencoder as their structural component, while output heads use invertible $s$ — these combinations worked well in practice. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
421,
|
| 506 |
+
825,
|
| 507 |
+
496
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "3.1 Expansion strategy ",
|
| 514 |
+
"text_level": 1,
|
| 515 |
+
"bbox": [
|
| 516 |
+
174,
|
| 517 |
+
512,
|
| 518 |
+
346,
|
| 519 |
+
527
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 4
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "It is necessary to expand $\\mathcal { F }$ as new tasks arrive to acquire new knowledge. A new module is added to a layer when all modules in this layer detect an outlier input. To this end, we track the running statistics of the relatedness score $\\gamma$ for each module — mean $\\mu$ and variance $\\sigma$ (see Figure 1), and calculate a z-score for each sample in the batch and each module at a layer: ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
174,
|
| 528 |
+
537,
|
| 529 |
+
825,
|
| 530 |
+
593
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 4
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "equation",
|
| 536 |
+
"img_path": "images/367b2877a665e3be00acd4276a4e3836222c4f9175a235dad79236f82ab43ec4.jpg",
|
| 537 |
+
"text": "$$\nz _ { m } = \\frac { w _ { m } - \\mu _ { m } } { \\sigma _ { m } } .\n$$",
|
| 538 |
+
"text_format": "latex",
|
| 539 |
+
"bbox": [
|
| 540 |
+
437,
|
| 541 |
+
599,
|
| 542 |
+
560,
|
| 543 |
+
631
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 4
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "An input is considered an outlier if its $\\mathbf { Z }$ -score is larger than a predefined threshold $z ^ { \\prime }$ (see Appendix B.6 for an ablation study of $z ^ { \\prime }$ values). The expansion decision can be made on the per-sample (i.e., if an outlier sample is detected) or a per-batch basis (i.e., $z$ is averaged over the mini-batch). Unless stated otherwise, in our experiments, the decision was made on a per-batch basis. Additionally, at training the parameters of existing modules are fixed once the task changes. If during a forward pass through $\\mathcal { F }$ module addition is triggered at multiple layers, we start adding modules at the layer closest to the input. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
173,
|
| 552 |
+
636,
|
| 553 |
+
826,
|
| 554 |
+
734
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "3.2 Training ",
|
| 561 |
+
"text_level": 1,
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
750,
|
| 565 |
+
274,
|
| 566 |
+
763
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Each module in LMC receives two types of learning signal: a structural signal resulting from minimizing $\\mathcal { L } _ { m } ^ { ( s t . ) }$ , and a functional signal resulting from minimizing the global functional loss $\\mathcal { L }$ All structural components $s$ are trained only with the structural signal that is calculated locally to each module. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
173,
|
| 575 |
+
773,
|
| 576 |
+
825,
|
| 577 |
+
834
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "The training of functional components proceeds in two phases: projection and accumulation. Whenever the expansion strategy triggers the addition of a new module (i.e., $z _ { m } > z ^ { \\prime } \\forall m \\in$ $\\{ 0 , \\ldots , | M ^ { ( l ) } | \\} )$ , starting with layers closest to the input, LMC initiates the projection phase. During this phase, the new module is trained to minimize the structural loss from all the layers above and no new-module addition is allowed. This procedure makes the representation of new modules compatible with subsequent modules and enables their composition. This procedure “encourages” already-learned modules to be reused, preventing over-spawning new modules. The functional signal is optional during projection (we kept it in all experiments unless otherwise stated). ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
174,
|
| 586 |
+
840,
|
| 587 |
+
825,
|
| 588 |
+
911
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "table",
|
| 594 |
+
"img_path": "images/0f0345f61ac65711d6d305b1481ef67eeec525b956f9ba83de24ca2b119153a6.jpg",
|
| 595 |
+
"table_caption": [
|
| 596 |
+
"Table 1: CTrL results: we report accuracy $( \\uparrow \\mathcal { A } )$ , forgetting $( \\uparrow \\mathcal { F } )$ with standard deviations calculated over 6 different runs. We report the mean number of modules (M) over these runs, where ∗ marks methods with fixed capacity. The first block comprises a set of standard CL baselines including regularization and replay based methods. The second block are the modular methods, third – modular and replay based methods that are task ID agnostic (A), and the last block are the two finetuning baselines. (H) indicates hard module selection. (S) indicates single-head as detailed in the main text. "
|
| 597 |
+
],
|
| 598 |
+
"table_footnote": [],
|
| 599 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">si</td><td colspan=\"3\">S+</td><td colspan=\"3\">Sin</td><td colspan=\"3\">Sout</td><td colspan=\"3\">Spl</td></tr><tr><td>MODEL</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td><td>A</td><td>F</td><td>M</td></tr><tr><td>HAT[87]</td><td>63.7±0.7</td><td>-1.3±0.6</td><td>24*</td><td>61.4±0.5</td><td>-0.2±0.2</td><td>24*</td><td>50.1±0.8</td><td>0.0±0.1</td><td>24*</td><td>61.9±1.3</td><td>-3.2±1.3</td><td>24*</td><td>61.2±0.7</td><td>-0.1±0.2</td><td>20*</td></tr><tr><td>EWC[46]</td><td>62.7±0.7</td><td>-3.6±0.9</td><td>24*</td><td>53.4±1.8</td><td>-2.3±0.4</td><td>24*</td><td>56.3±2.5</td><td>-9.1±3.3</td><td>24*</td><td>62.5±0.9</td><td>-3.6±0.9</td><td>24*</td><td>54.2±3.1</td><td>-4.2±2.7</td><td>20*</td></tr><tr><td>O-EWC[85]</td><td>62.0±0.7</td><td>-3.2±0.7</td><td>24*</td><td>54.6±0.7</td><td>-1.3±1.0</td><td>24*</td><td>54.2±3.1</td><td>-10.8±3.1</td><td>24*</td><td>62.4±0.6</td><td>-3.0±0.9</td><td>24*</td><td>52.3±1.4</td><td>-5.7±1.3</td><td>20*</td></tr><tr><td>ER[81,16]</td><td>60.6±0.7</td><td>-2.1±0.9</td><td>4*</td><td>63.0±0.6</td><td>3.8±0.8</td><td>4*</td><td>63.8±1.4</td><td>-1.9±0.6</td><td>4*</td><td>60.7±1.0</td><td>-1.5±0.5</td><td>4*</td><td>60.5±1.0</td><td>0.5±0.9</td><td>4*</td></tr><tr><td>EXPERTS</td><td>62.7±0.9</td><td>0.0</td><td>24</td><td>63.2±0.8</td><td>0.0</td><td>24</td><td>63.1±0.7</td><td>0.0</td><td>24</td><td>63.1±0.7</td><td>0.0</td><td>24</td><td>63.9±0.5</td><td>0.0</td><td>20</td></tr><tr><td>MNTDP[92]</td><td>66.3±0.8</td><td>0.0</td><td>13.7</td><td>62.6±0.7</td><td>0.0</td><td>21.0</td><td>67.9±0.9</td><td>0.0</td><td>16.0</td><td>65.8±0.9</td><td>0.0</td><td>15.0</td><td>64.0±0.2</td><td>0.0</td><td>17.2</td></tr><tr><td>SG-F[63]</td><td>63.6±1.5</td><td>0.0</td><td>14.7</td><td>61.5±0.6</td><td>0.0</td><td>20.8</td><td>65.5±1.8</td><td>0.0</td><td>17.5</td><td>64.1±1.3</td><td>0.0</td><td>16.2</td><td>62.0±1.3</td><td>0.0</td><td>16.0</td></tr><tr><td>LMC(- A)</td><td>66.6±1.5 -0.0±0.1</td><td></td><td>15.3</td><td>60.1±2.7</td><td>-1.4±2.4</td><td>21.3</td><td>69.5±1.0</td><td>0.0±0.1</td><td>20.0</td><td>66.7±2.2</td><td>-0.1±0.1</td><td>15.5</td><td>61.6±4.8</td><td>-3.5±3.1</td><td>18.2</td></tr><tr><td>MNTDP(A)</td><td>41.9±2.5</td><td>-2.8±0.6</td><td>14.8</td><td>43.2±1.3-10.8±2.020.7|3</td><td></td><td></td><td></td><td>|32.7±13.6-15.2±13.2]</td><td>17.2</td><td>37.9±2.7</td><td>-5.8±3.5</td><td>13.3</td><td>35.1±3.6</td><td>5-16.4±4.6 15.8</td><td></td></tr><tr><td>LMC(A)</td><td>67.2±1.5</td><td>-0.5±0.4</td><td>15.7</td><td>62.2±4.5</td><td>2.3±1.6</td><td>22.3</td><td>68.5±1.7</td><td>-0.1±0.1</td><td>19.7</td><td>55.1±3.4</td><td>-7.1±4.0</td><td>15.5</td><td>63.5±1.9</td><td>-1.0±1.5</td><td>19.0</td></tr><tr><td>LMC(A,H)</td><td>64.9±1.5 -0.2±0.2</td><td></td><td>16.2</td><td>55.8±2.5</td><td>-0.3±1.2</td><td>15.3</td><td>67.6±2.7</td><td>-0.8±1.0</td><td>21.5</td><td>54.2±3.6</td><td>-2.9±2.0</td><td>15.9</td><td>53.8±5.7</td><td>3.1±5.5</td><td>10.8</td></tr><tr><td>SG-F(A)</td><td>29.5±3.5 -35.3±4.0 14.3</td><td></td><td></td><td>20.4±4.4</td><td>-39.3±6.716.0</td><td></td><td>24.4±5.6</td><td>-38.7±4.0</td><td>18.7</td><td>30.5±4.5</td><td>-34.0±5.512.2</td><td></td><td>19.4±1.0</td><td>-41.8±1.6</td><td>15.5</td></tr><tr><td>ER(A,S)[81,16]</td><td>60.4±1.0 -0.5±0.7</td><td></td><td>4*</td><td>65.3±0.9</td><td>6.0±1.0</td><td>4*</td><td>58.8±3.2</td><td>-4.2±3.7</td><td>4*</td><td>47.6±1.5</td><td>-7.6±1.6</td><td>4*</td><td>58.6±1.3</td><td>-1.2±1.5</td><td>4*</td></tr><tr><td>FINETUNE</td><td>47.5±1.5 -14.9±1.4</td><td></td><td>4*</td><td>31.4±3.7 -29.3±3.84*</td><td></td><td></td><td>39.7±5.0</td><td>-23.9±5.7</td><td>4*</td><td>45.4±4.0 -15.5±3.7</td><td></td><td>4*</td><td>29.1±3.1 - 29.2±3.2</td><td></td><td>4*</td></tr><tr><td>FINETUNE L</td><td>52.1±1.4 -15.7±1.7 24*</td><td></td><td></td><td>38.2±3.2</td><td>2-25.8±3.324*</td><td></td><td>49.3±2.0</td><td>-18.4±2.0</td><td>24*</td><td>49.3±2.1</td><td>-18.4±2.0</td><td>24*</td><td>37.1±2.1</td><td>-26.0±2.2</td><td>20*</td></tr></table>",
|
| 600 |
+
"bbox": [
|
| 601 |
+
158,
|
| 602 |
+
89,
|
| 603 |
+
843,
|
| 604 |
+
328
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "",
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
449,
|
| 614 |
+
826,
|
| 615 |
+
491
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "In the accumulation phase, new module addition is allowed again and all non-frozen modules are trained with both signals. The functional components of new modules still receive a signal from the structural components of modules above. The two-phase training is explained schematically in Figure 2 and implementation details are provided in Appendix A. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
497,
|
| 625 |
+
825,
|
| 626 |
+
554
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "4 Experiments ",
|
| 633 |
+
"text_level": 1,
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
573,
|
| 637 |
+
312,
|
| 638 |
+
590
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "We now evaluate the performance, empirical capabilities, and properties of LMC in four different CL settings. First, in $\\ S 4 . 1$ we study a standard task-incremental CL setting (task-ID agnostic and aware) using the Continual Transfer Learning Benchmark (CTrL) [92]. Next, we explore the properties of LMC through other CL settings. In $\\ S 4 . 2$ we evaluate the continual OOD generalization ability of the proposed LMC. In $\\ S 4 . 3$ we show the ability of LMC to combine modules form independently trained models. In Appendix F, we evaluate LMC in the Continual Meta-Learning setting. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
604,
|
| 648 |
+
825,
|
| 649 |
+
688
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "4.1 Continual transfer learning using the CTrL benchmark ",
|
| 656 |
+
"text_level": 1,
|
| 657 |
+
"bbox": [
|
| 658 |
+
174,
|
| 659 |
+
704,
|
| 660 |
+
599,
|
| 661 |
+
719
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 5
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "The CTrL benchmark was proposed to systematically evaluate properties of CL methods with a focus on modular architectures [92]. It consists of 5 streams of visual image classification tasks. The first stream $S ^ { - } = ( t _ { 1 } ^ { + } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } )$ consists of a sequence of 6 tasks, where the first and last task are the same except the first has an order of magnitude more training samples $( ^ { 6 6 + 7 9 } )$ than other tasks. This stream is designed to evaluate the direct transfer ability of models, i.e. a modular learner should be able to reuse the first task’s modules for the last task. The $S ^ { + } = ( t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { + } )$ stream is similar to $S ^ { - }$ , but now the last task comes with more data than the other tasks (including the first one). Here, the modular learner should be able to update its knowledge, i.e. performance on the first task should improve after learning the last task. In the $S ^ { i n } = ( t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { \\prime } )$ stream the first $t _ { 1 }$ and the last $t _ { 1 } ^ { \\prime }$ tasks are similar, with a slight input distribution change (e.g. different background color). In the $S ^ { o u t } = ( t _ { 1 } ^ { + } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } , t _ { 1 } ^ { \\prime \\prime } )$ stream the first task $t _ { 1 }$ and the last task $t _ { 1 } ^ { \\prime \\prime }$ differ in the amount of training data and the output distribution, i.e. the labels of the last task are randomly permuted. The plasticity stream $S ^ { p l } = \\mathsf { \\bar { ( } } t _ { 1 } , t _ { 2 } , t _ { 3 } , t _ { 4 } , t _ { 5 } )$ evaluates the ability to learn a stream of unrelated and potentially interfering tasks, i.e., transfer from unrelated tasks can harm performance. Descriptive statistics for all datasets are in Appendix B.1. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
173,
|
| 670 |
+
729,
|
| 671 |
+
826,
|
| 672 |
+
912
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "",
|
| 679 |
+
"bbox": [
|
| 680 |
+
173,
|
| 681 |
+
92,
|
| 682 |
+
823,
|
| 683 |
+
119
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 6
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "We compare to several baselines. Finetune: trains a single model (wider model marked with L) for all tasks. Experts: trains a model per task. We also compare with the several recently proposed modular CL baselines, which achieve competitive results in CTrL and require task IDs at test time. MNTDP [92]: a recent search-based module selection approach described in more detail in $\\ S 2$ . MNTDP requires the task ID to retrieve the previously found best structure for each test task. $\\mathbf { M N T D P ( A ) }$ : a task ID agnostic version of MNTDP we created, which selects the path with the lowest entropy in the output distribution. SG-F [63]: Soft-gating with fixed modules, a modular method mentioned in $\\ S 2$ . It relies on a task-specific structural network that generates soft-gating vectors for each layer of the modular learner and fixes learned modules when new tasks arrive. We slightly adapted the original expansion strategy of SG-F in order to conform to our experimental setup; details are in Appendix B.2. SG- $\\mathbf { F } _ { \\left( \\mathbf { A } \\right) }$ : a version of SG-F with a single structural network shared across tasks. HAT[87]: learns attention masks for activations that gate the gradients to prevent forgetting. The task ID is used to select a task-specific attention mask for inference. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
174,
|
| 692 |
+
126,
|
| 693 |
+
825,
|
| 694 |
+
304
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 6
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "We also compare to several standard CL methods. EWC [46]: trains a single model for all tasks while applying parameter-regularization to minimize forgetting. O-EWC:[85] online version of EWC that does not require storing a separate approximation of the Fisher information matrix per task. ER [16]: trains a single model while replaying samples from previously seen tasks. The size of the replay buffer corresponds to the memory size of the LMC assuming the worse case linear growth pattern (i.e., LMC with 24 modules on a 6-task sequence). ER(A,S): task ID agnostic version of ER that uses a single output head to classify all classes from all tasks: i.e. after learning stream $S ^ { - }$ the output head has 50 output neurons and the output classes of the last task are considered the same as the ones of the first task. ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
311,
|
| 704 |
+
825,
|
| 705 |
+
436
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 6
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "We use several versions of LMC. $\\mathbf { L M C } _ { ( \\lnot \\mathbf { A } ) }$ a version of LMC that uses the task ID for output head selection (not module selection as MNTDP). LMC(A): the default version of LMC. It equips output heads with structural components and is therefore task ID agnostic at test time. LMC(A,H): a version of task ID agnostic LMC that performs hard module selection, i.e., taking the module with the highest relevance score per layer. All methods use the same architecture (described in Appendix A.4) together with the Adam [44] optimizer. HAT is the only method that uses SGD. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
174,
|
| 714 |
+
443,
|
| 715 |
+
825,
|
| 716 |
+
525
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 6
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Similar to Veniat et al. [92], we use the following evaluation metrics: $( \\mathcal { A } )$ average accuracy on all seen tasks at the end of CL training; Forgetting $( \\mathcal { F } )$ — difference between accuracy at the end of the training and accuracy after learning the task averaged across tasks [60]; Number of modules (M) at the end of the continual training procedure. Formal definitions of all metrics are in Appendix B.3. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
174,
|
| 725 |
+
532,
|
| 726 |
+
823,
|
| 727 |
+
588
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "Table 1 reports performance using the CTrL benchmark. Overall, modular methods tend to outperform ER and the regularization based methods (HAT and EWC). Among the modular methods, soft-gating SG-F(A,F) with a single controller shared among all the tasks performed the worst. This baseline showcases the problem of forgetting in the global structural component (a.k.a. controller) of dynamic routing methods such as the one proposed by Mendez and Eaton [63]. A version of LMC performs the best on the $S ^ { - }$ , $S ^ { i n }$ and $S ^ { o u t }$ streams. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
594,
|
| 737 |
+
825,
|
| 738 |
+
678
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "Notably, $\\mathrm { L M C } _ { ( \\mathrm { A } ) }$ , which does not rely on task IDs at test time, outperformed all other task ID agnostic methods such as $\\mathbf { M N T D P _ { ( A ) } }$ and ER(A,S) on all streams but $S ^ { + }$ , and always performed on par with task ID aware methods. On the $S ^ { o u t }$ stream low performance is expected for task-ID agnostic methods due to output distribution shift: i.e., at test time we notice that LMC correctly assigns samples from the last task $t _ { 1 } ^ { \\prime \\prime }$ to the first task’s $t _ { 1 } ^ { + }$ output head. However, the resulting classification accuracy is low because the labels of the last task are randomly permuted in this stream. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
684,
|
| 748 |
+
825,
|
| 749 |
+
767
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 6
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "The task ID agnostic $\\mathrm { L M C } _ { ( \\mathrm { A } ) }$ outperforms task ID aware LMC on the $S ^ { - }$ and $S ^ { + }$ streams. Here, LMC(A) selects modules (and the output head) which were predominantly trained on the task that provided more training data (e.g. $t _ { 1 } ^ { + }$ in $S ^ { - }$ stream), hence transferring knowledge between the first and the last tasks. In contrast, $\\mathbf { L M C } _ { ( \\neg \\mathbf { A } ) }$ when tested on the last task $t _ { 1 }$ is forced to select the output head belonging to this task, which was trained on less data than the output head of $t _ { 1 } ^ { + }$ task, leading to lower accuracy. In addition, we observed that versions of LMC often exhibit high variance (e.g. see $S ^ { + }$ , $S ^ { o u t }$ and $S ^ { p l }$ streams). This may be caused by the larger amount of trainable parameters compared to other models and relatively small amount of training data. Finally, low performance of ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
173,
|
| 758 |
+
772,
|
| 759 |
+
825,
|
| 760 |
+
885
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 6
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "image",
|
| 766 |
+
"img_path": "images/0ac0839a77314eef3f415108a944bbd40d71d498bce0e862bb483ebc1931b9d5.jpg",
|
| 767 |
+
"image_caption": [
|
| 768 |
+
"Figure 3: Continual OOD-generalization: matrices show test accuracy on seen and unseen tasks (onand off-diagonal tasks respectively). In each sub-figure $\\mathbf { X }$ -axis shows the MNIST class-combination used to build the task, y-axis gives the foreground-background colors. Only diagonal tasks are learned continually. While non-modular EWC (a) and modular MNTDP (b) can prevent forgetting, $\\mathbf { L M C _ { ( \\neg A ) } }$ (c) is able to generalize to OOD tasks as well. $\\mathrm { L M C } _ { \\left( \\lnot \\mathbf { A } \\right) }$ without projection phase performs poorly as shown in (d). "
|
| 769 |
+
],
|
| 770 |
+
"image_footnote": [],
|
| 771 |
+
"bbox": [
|
| 772 |
+
178,
|
| 773 |
+
88,
|
| 774 |
+
825,
|
| 775 |
+
239
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "LMC(A,H) emphasizes the importance of soft modular attention for LMC. Additional results, including a transfer metric [92], are in Appendix B.4. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
373,
|
| 785 |
+
823,
|
| 786 |
+
401
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "4.2 Compositional OOD generalization ",
|
| 793 |
+
"text_level": 1,
|
| 794 |
+
"bbox": [
|
| 795 |
+
176,
|
| 796 |
+
431,
|
| 797 |
+
457,
|
| 798 |
+
446
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 7
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "This second study tests the ability of LMC to recombine modules for OOD generalization. We use a colored-MNIST dataset — a variation of the standard MNIST dataset of hand-written digits from 0 to 9 [43] in which digits are colorized. We design a simple sequence of tasks as follows. First, we define two high-level features: the foreground-background color combination (using the colors red, black, green, blue) and the class (0–9). Then, we create five non-overlapping tasks of two (digit) classes each: $\\left\\{ 0 - 1 , \\quad \\ldots , \\quad 8 - 9 \\right\\}$ . At training time the model is continually trained using a sequence of these tasks, however, each task is only seen in one of five different foreground-background combinations {red-black, green-black, blue-black, black-red, black-green}. At test time we measure the generalization ability to seen and unseen combinations of classes and colors. ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
462,
|
| 808 |
+
825,
|
| 809 |
+
588
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 7
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "text",
|
| 815 |
+
"text": "In Figure 3 we present the accuracy matrices for different learners when tested on all 25 combinations of colors and classes after it has been trained only on the 5 tasks on the diagonal. ",
|
| 816 |
+
"bbox": [
|
| 817 |
+
176,
|
| 818 |
+
593,
|
| 819 |
+
823,
|
| 820 |
+
622
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "We compare the performance of $\\mathbf { L M C } _ { ( \\neg \\mathbf { A } ) }$ with EWC [46], MNTDP [92], and an ablated version of LMC without the projection phase. We observe that the OOD accuracy attained by LMC is significantly higher than EWC and MNTDP. Since the model trained with EWC is monolithic, the digit-background color combinations are entangled with the digits’ shape for each task, hindering OOD generalization. In contrast, modular approaches such as MNTDP and LMC learn a different module combination for each task. In contrast to MNTDP, LMC’s module selection does not rely on task identifiers and each module is selected in a local manner based on its compatibility with the current input. This allows LMC to interpolate between previously seen tasks being able to dynamically compose existing modules to adapt to tasks that have not been seen at training. Because MNTDP’s module selection relies on a database of task-specific structures found to be optimal for the corresponding task at training, this method must reuse the predefined module compositions based on task IDs. This forces MNTDP to use modules that were trained using a different color combination, and results in e.g. a $2 4 \\%$ accuracy drop with respect to LMC on [0,1] when the foreground and background colors are inverted w.r.t. the seen combination. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
627,
|
| 830 |
+
825,
|
| 831 |
+
821
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "In Figure 3d we report results for LMC without applying the projection phase. The projection phase adapts the representation of newly introduced modules to match the distribution expected by the subsequent modules. As expected, we found that skipping it severely degrades performance. This result validates the usefulness of the projection phase to achieve an efficient local module selection. In Appendix E we plot the average module selection for all 25 test tasks, showing how modules are reused for the OOD tasks. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
174,
|
| 840 |
+
828,
|
| 841 |
+
825,
|
| 842 |
+
911
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 7
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "image",
|
| 848 |
+
"img_path": "images/02bf370265e6243b99d3e16eb7c0b1722e28c196e9ddfc5d32fc62f7c3c014e1.jpg",
|
| 849 |
+
"image_caption": [
|
| 850 |
+
"Figure 5: Results on $S ^ { l o n g }$ and $S ^ { l o n g 3 0 }$ sequences for different hyperparameter values (we select only runs with reasonably good performance, i.e. $4 \\%$ ), same plots plots for all conducted runs can be found in Appendix C). "
|
| 851 |
+
],
|
| 852 |
+
"image_footnote": [],
|
| 853 |
+
"bbox": [
|
| 854 |
+
196,
|
| 855 |
+
89,
|
| 856 |
+
802,
|
| 857 |
+
222
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 8
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "4.3 Combining modular learners ",
|
| 864 |
+
"text_level": 1,
|
| 865 |
+
"bbox": [
|
| 866 |
+
176,
|
| 867 |
+
306,
|
| 868 |
+
415,
|
| 869 |
+
320
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 8
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "In earlier sections we show cross-task reusability of modules, here we test the cross-model reusability. We motivate the practical importance of this kind of reusability with a federated learning example: a privacy preserving training might be required for LMC1 and LMC2, trained on the premises of customers 1 and 2, after which their modules can be combined in a single central entity — LMC3, located on premises of the cloud service provider. LMC3 is required to perform tasks seen by both independent LMCs but can not be finetuned as it has no access to the original training data distributions. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
333,
|
| 879 |
+
485,
|
| 880 |
+
512
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 8
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "image",
|
| 886 |
+
"img_path": "images/13b03e1aec38cbde4911d46835b11fd8b31a69fd07dffdd977f563adc068d68c.jpg",
|
| 887 |
+
"image_caption": [
|
| 888 |
+
"Figure 4: Performance of combining independently trained LMC1 and LMC2 into LMC3. "
|
| 889 |
+
],
|
| 890 |
+
"image_footnote": [],
|
| 891 |
+
"bbox": [
|
| 892 |
+
504,
|
| 893 |
+
353,
|
| 894 |
+
816,
|
| 895 |
+
460
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 8
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "In Figure 4 we test the ability of LMC to preserve and transfer knowledge in such setting. To this end, we design the following tasks: fMNIST $^ +$ and fMNIST-. Both are sampled from the fashion-MNIST dataset [98] but the latter comes with an order of magnitude less training data. cMNIST-r is a variant of the colored-MNIST dataset where the background of $9 5 \\%$ of the training samples is colored in red and $5 \\%$ in green. For the cMNIST-g dataset these proportions are inverted and $9 5 \\%$ of the training samples is colored in green. The test set contains $50 \\%$ of samples with green and $50 \\%$ with red background. We trained LMC1 continually on MNIST, fMNIST $^ +$ , and cMNIST-r tasks. We trained LMC2 on fMNIST-, cMNIST- $\\mathbf { g }$ , and SVHN. We then combined the modules of both LMCs layer-wise to obtain LMC3. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
518,
|
| 905 |
+
826,
|
| 906 |
+
643
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "We observed positive transfer for both cMNIST and fMNIST- tasks with LMC3. We found that LMC3 selects different modules originating from different LMCs conditioned on test samples with different background colors — LMC1’s modules were specialized on red background while LMC2’s on green (selected paths presented in Appendix D). Notably, cross-model reusability without fine-tuning is novel to LMC and can be attributed to the local nature of the structural component. Using a global structural component as in [63] would require tuning a separate structural component specifically for LMC3. In case of task-specific routing of proposed for MNTDP [92], additional search would be needed to discover task-specific paths through the consolidated LMC3 model. In both cases the access to the orinal training data distributions would be required and privacy would not be preserved. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
173,
|
| 915 |
+
648,
|
| 916 |
+
825,
|
| 917 |
+
773
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "4.4 Longer task sequences ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
174,
|
| 927 |
+
795,
|
| 928 |
+
369,
|
| 929 |
+
809
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Here we study the performance LMC on longer task sequences consisting of $3 0 - S ^ { l o n g 3 0 }$ , and $1 0 0 -$ $S ^ { l o n g }$ tasks. The $S ^ { \\bar { l } o n g }$ sequence corresponds to the one proposed by Veniat et al. [92] as part of the CTrL benchmark. $S ^ { l o n g 3 0 }$ is a 30-tasks subset of $S ^ { l o n g }$ (see Appendix B.1 for details). ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
176,
|
| 938 |
+
820,
|
| 939 |
+
825,
|
| 940 |
+
863
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "We first report the average test accuracy $( \\mathcal { A } )$ and the total number of modules (M) of the models selected through cross-validation. $S ^ { l o n j 3 0 }$ : MNTDP $\\scriptstyle A = 6 4 . 5 8$ , $\\scriptstyle \\mathbf { M } = 6 4$ ; LMC(¬A): $\\scriptstyle A = 6 2 . 4 4$ , ${ \\bf M } { = } 5 0$ $S ^ { l o n g }$ : MNTDP $\\scriptstyle A = 6 8 . 9 2$ , $\\mathbf { M } { = } 1 4 2$ ; $\\mathbf { L M C _ { ( \\neg A ) } }$ : $\\scriptstyle A = 6 3 . 8 8$ , $\\mathbf { M } = 3 2$ . While the gap between the accuracy of LMC and MNTDP on $S ^ { l o n g 3 0 }$ is only $1 . 8 6 \\%$ -points, in the case of $S ^ { l o n g }$ this gap grows to $6 . 5 8 \\%$ - points. It is important to highlight that in contrast to LMC, MNTDP’s module selection is performed by a task ID aware oracle. We further analyze the trade-off between the number of modules and accuracy in Figure 5, where we plot the number of modules (M) against average test accuracy $( \\mathcal { A } )$ for models that resulted from training with different hyperparameters. For both streams, we observe that LMC tends to spawn much fewer modules than MNTDP. However, MNTDP shines in the presence of large number of modules and achieves higher overall test accuracy on these streams. Interestingly, as can be clearly observed on the $S ^ { l o n g }$ stream, LMC reaches higher accuracy with smaller number of modules: e.g. ${ \\sim } 6 4 \\%$ with 32 modules, while adding modules leads to lower accuracy: e.g. ${ \\sim } 6 1 \\%$ with 98 modules. This result suggests that local task ID agnostic module selection becomes more challenging for LMC in presence of a large number of modules. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
176,
|
| 949 |
+
869,
|
| 950 |
+
825,
|
| 951 |
+
911
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "",
|
| 958 |
+
"bbox": [
|
| 959 |
+
174,
|
| 960 |
+
90,
|
| 961 |
+
825,
|
| 962 |
+
243
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 9
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "5 Related work ",
|
| 969 |
+
"text_level": 1,
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
267,
|
| 973 |
+
316,
|
| 974 |
+
284
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Modularity in neural networks is studied in the context of scalability [9], and more recently as a way to achieve compositionality and systematic generalization [6, 47, 15, 8, 27, 19] as well as for multi-task learning [65, 82]. From the causal point of view, a data generation process could be thought as a composition of independent causal modules [75]. Researchers model these kinds of systems using a set of independent modules, where each module is invariant to changes in the other modules induced by e.g. distribution shifts [84, 76]. This idea is crystallized by Parascandolo et al. [74], who propose a way to learn a set of causal independent mechanisms as mixture-of-experts. Building up on this ideas, others show evidence of compositional OOD generalization [61]. Recently, [66] argue for a more wholistic view on CL including OOD generalization as an important desiderata. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
300,
|
| 984 |
+
825,
|
| 985 |
+
426
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 9
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Continual learning methods typically address the problem of forgetting through parameter regularization [46, 70, 99], replay [89, 78, 3, 73, 54, 12, 97, 39, 81, 13] or dynamic architectures (and MoEs) [83, 87, 52, 85, 53, 41]. Our work falls under the umbrella of the latter and shares its advantage of having the capacity to adapt to a large number of related tasks. Our focus is on improving modular CL approaches, which despite their advantages, have only recently been studied in the CL literature [63, 92]. The main difference with our work is that we use a local composition mechanism instead of a global one. We detail this difference in $\\ S 2$ and also compare to these methods in $\\ S 4 . 1$ . ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
174,
|
| 994 |
+
431,
|
| 995 |
+
825,
|
| 996 |
+
529
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 9
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Continual-meta learning focuses on fast learning and remembering [25, 35, 33, 41], often emphasising the online performance on OOD tasks [14]. As argued by Jerfel et al. [41] modularity can be useful in this setting to minimize interference between tasks. They proposed a way to train a MoE model, with each expert focusing on a cluster of tasks leveraging Bayesian nonparametrics. LMC aims at decomposing knowledge into layer-wise composable modules further reducing modular granularity. Continual-meta learning is often confused with its counterpart meta-continual learning [40, 11, 93], in which algorithm are learning to continually learn. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
535,
|
| 1006 |
+
825,
|
| 1007 |
+
632
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 9
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "The rapid growth of continual learning has lead researchers to work on empirical studies [20, 58, 56], surveys [32, 42, 55, 66, 67] as well as CL-specific software [72, 22, 59]. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
638,
|
| 1017 |
+
825,
|
| 1018 |
+
666
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 9
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "6 Conclusion ",
|
| 1025 |
+
"text_level": 1,
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
174,
|
| 1028 |
+
690,
|
| 1029 |
+
299,
|
| 1030 |
+
708
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 9
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "We develop LMC, a method to learn and compose a series of modules on a continual stream of tasks fulfilling some of the basic desiderata of modular CL such as module specialization, avoidance of collapse, and sublinear growth. In LMC, structural information is learned and stored locally for each module. It is the locality of the structural component that enables generalization to related but unseen tasks, and that permits combining different LMCs without fine-tuning. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
174,
|
| 1039 |
+
724,
|
| 1040 |
+
825,
|
| 1041 |
+
794
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 9
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Future work could focus on achieving more efficient sub-linear model growth through OOD generalization and reusability of modules. Additionally, while the benefits of modularity for CL are well understood, the implications of the CL regime on modularity and compositionality have not been studied extensively. It is possible that providing knowledge to the learner in incremental chunks results in the implicit supervision needed to better disentangle it into specialized and composable modules. Another promising direction is removing the need for task boundaries during training and developing more robust architectures for the local structural component (related discussions are in Appendix A.3, and limitations in Appendix G). ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
174,
|
| 1050 |
+
800,
|
| 1051 |
+
825,
|
| 1052 |
+
911
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 9
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "References \n[1] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. CoRR, abs/1711.09601, 2017. \n[2] Rahaf Aljundi, Punarjay Chakravarty, and Tinne Tuytelaars. Expert gate: Lifelong learning with a network of experts. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3366–3375, 2017. \n[3] Rahaf Aljundi, Lucas Caccia, Eugene Belilovsky, Massimo Caccia, Min Lin, Laurent Charlin, and Tinne Tuytelaars. Online continual learning with maximal interfered retrieval. In Advances in Neural Information Processing Systems 32, pages 11849–11860. Curran Associates, Inc., 2019. \n[4] Mohammed Amer and Tomás Maul. A review of modularization techniques in artificial neural networks. Artificial Intelligence Review, 52(1):527–561, 2019. \n[5] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Learning to compose neural networks for question answering. arXiv preprint arXiv:1601.01705, 2016. \n[6] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 39–48, 2016. \n[7] Antreas Antoniou, Harrison Edwards, and Amos Storkey. How to train your maml. arXiv preprint arXiv:1810.09502, 2018. \n[8] Dzmitry Bahdanau, Shikhar Murty, Michael Noukhovitch, Thien Huu Nguyen, Harm de Vries, and Aaron Courville. Systematic generalization: What is required and can it be learned? In International Conference on Learning Representations, 2018. \n[9] Dana H Ballard. Modular learning in neural networks. In AAAI, pages 279–284, 1987. \n[10] Jens Behrmann, Will Grathwohl, Ricky TQ Chen, David Duvenaud, and Jörn-Henrik Jacobsen. Invertible residual networks. In International Conference on Machine Learning, pages 573–582. PMLR, 2019. \n[11] Lucas Caccia and Joelle Pineau. Special: Self-supervised pretraining for continual learning. arXiv preprint arXiv:2106.09065, 2021. \n[12] Lucas Caccia, Eugene Belilovsky, Massimo Caccia, and Joelle Pineau. Online learned continual compression with stacked quantization module. ArXiv, abs/1911.08019, 2019. \n[13] Lucas Caccia, Rahaf Aljundi, Tinne Tuytelaars, Joelle Pineau, and Eugene Belilovsky. Reducing representation drift in online continual learning. arXiv preprint arXiv:2104.05025, 2021. \n[14] Massimo Caccia, Pau Rodriguez, Oleksiy Ostapenko, Fabrice Normandin, Min Lin, Lucas Caccia, Issam Laradji, Irina Rish, Alexande Lacoste, David Vazquez, et al. Online fast adaptation and knowledge accumulation: a new approach to continual learning. arXiv preprint arXiv:2003.05856, 2020. \n[15] Michael Chang, Abhishek Gupta, Sergey Levine, and Thomas L Griffiths. Automatically composing representation transformations as a means for generalization. In International Conference on Learning Representations, 2018. \n[16] Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K Dokania, Philip HS Torr, and M Ranzato. Continual learning with tiny episodic memories. 2019. \n[17] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, , and A. Vedaldi. Describing textures in the wild. In Proceedings of the IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2014. \n[18] Rodolfo Corona, Daniel Fried, Coline Devin, Dan Klein, and Trevor Darrell. Modularity improves out-of-domain instruction following. arXiv preprint arXiv:2010.12764, 2020. \n[19] Róbert Csordás, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Are neural nets modular? inspecting functional modularity through differentiable weight masks. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $= ^ { \\prime }$ 7uVcpu-gMD. \n[20] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. Continual learning: A comparative study on how to defy forgetting in classification tasks. arXiv preprint arXiv:1909.08383, 2019. \n[21] Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014. \n[22] Arthur Douillard and Timothée Lesort. Continuum: Simple management of complex continual learning scenarios. ArXiv, abs/2102.06253, 2021. \n[23] Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. arXiv preprint arXiv:1805.09733, 2018. \n[24] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning (ICML), 2017. \n[25] Chelsea Finn, Aravind Rajeswaran, Sham Kakade, and Sergey Levine. Online meta-learning. In International Conference on Machine Learning, pages 1920–1930. PMLR, 2019. \n[26] Robert M French. Pseudo-recurrent connectionist networks: An approach to the’sensitivitystability’dilemma. Connection Science, 9(4):353–380, 1997. \n[27] Anirudh Goyal, Alex Lamb, Jordan Hoffmann, Shagun Sodhani, Sergey Levine, Yoshua Bengio, and Bernhard Schölkopf. Recurrent independent mechanisms. arXiv preprint arXiv:1909.10893, 2019. \n[28] Anirudh Goyal, Aniket Didolkar, Alex Lamb, Kartikeya Badola, Nan Rosemary Ke, Nasim Rahaman, Jonathan Binas, Charles Blundell, Michael Mozer, and Yoshua Bengio. Coordination among neural modules through a shared global workspace. arXiv preprint arXiv:2103.01197, 2021. \n[29] Erin Grant, Chelsea Finn, Sergey Levine, Trevor Darrell, and Thomas Griffiths. Recasting gradient-based meta-learning as hierarchical bayes. arXiv preprint arXiv:1801.08930, 2018. \n[30] Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020. \n[31] Sharut Gupta, Praveer Singh, Ken Chang, Mehak Aggarwal, Nishanth Arun, Liangqiong Qu, Katharina Hoebel, Jay Patel, Mishka Gidwani, Ashwin Vaswani, et al. The unreasonable effectiveness of batch-norm statistics in addressing catastrophic forgetting across medical institutions. arXiv preprint arXiv:2011.08096, 2020. \n[32] Raia Hadsell, Dushyant Rao, Andrei A Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 2020. \n[33] James Harrison, Apoorva Sharma, Chelsea Finn, and Marco Pavone. Continuous meta-learning without tasks. arXiv preprint arXiv:1912.08866, 2019. \n[34] Xu He, Jakub Sygnowski, Alexandre Galashov, Andrei A. Rusu, Yee Whye Teh, and Razvan Pascanu. Task agnostic continual learning via meta learning. ArXiv, abs/1906.05201, 2019. \n[35] Xu He, Jakub Sygnowski, Alexandre Galashov, Andrei A Rusu, Yee Whye Teh, and Razvan Pascanu. Task agnostic continual learning via meta learning. arXiv preprint arXiv:1906.05201, 2019. \n[36] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. arXiv preprint arXiv:1812.04606, 2018. \n[37] Guillaume Hocquet, Olivier Bichler, and Damien Querlioz. Ova-inn: Continual learning with invertible neural networks. arXiv preprint arXiv:2006.13772, 2020. \n[38] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pages 448–456. PMLR, 2015. \n[39] David Isele and Akansel Cosgun. Selective experience replay for lifelong learning. In AAAI conference on artificial intelligence, 2018. \n[40] Khurram Javed and Martha White. Meta-learning representations for continual learning. In Advances in Neural Information Processing Systems 32, pages 1820– 1830. Curran Associates, Inc., 2019. URL http://papers.nips.cc/paper/ 8458-meta-learning-representations-for-continual-learning.pdf. \n[41] Ghassen Jerfel, Erin Grant, Tom Griffiths, and Katherine A Heller. Reconciling meta-learning and continual learning with online mixtures of tasks. In Advances in Neural Information Processing Systems, pages 9122–9133, 2019. \n[42] Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives, 2020. \n[43] Byungju Kim, Hyunwoo Kim, Kyungsu Kim, Sungjin Kim, and Junmo Kim. Learning not to learn: Training deep neural networks with biased data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9012–9020, 2019. \n[44] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/ abs/1412.6980. \n[45] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. \n[46] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017. \n[47] Louis Kirsch, Julius Kunze, and David Barber. Modular networks: Learning to decompose neural computation. Advances in Neural Information Processing Systems, 31:2408–2418, 2018. \n[48] Ivan Kobyzev, Simon Prince, and Marcus Brubaker. Normalizing flows: An introduction and review of current methods. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. \n[49] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. \n[50] Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015. \n[51] Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/. \n[52] Jeongtae Lee, Jaehong Yoon, Eunho Yang, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. CoRR, abs/1708.01547, 2017. \n[53] Soochan Lee, Junsoo Ha, Dongsu Zhang, and Gunhee Kim. A neural dirichlet process mixture model for task-free continual learning. arXiv preprint arXiv:2001.00689, 2020. \n[54] Timothée Lesort, Hugo Caselles-Dupré, Michael Garcia-Ortiz, Jean-François Goudou, and David Filliat. Generative Models from the perspective of Continual Learning. In International Joint Conference on Neural Networks (IJCNN), 2019. \n[55] Timothée Lesort, Massimo Caccia, and Irina Rish. Understanding continual learning settings with data distribution drift analysis, 2021. \n[56] Timothée Lesort, Thomas George, and Irina Rish. Continual learning in deep networks: an analysis of the last layer, 2021. \n[57] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017. \n[58] Vincenzo Lomonaco, Lorenzo Pellegrini, Pau Rodríguez, Massimo Caccia, Qi She, Yu Chen, Quentin Jodelet, Ruiping Wang, Zheda Mai, David Vázquez, German Ignacio Parisi, Nikhil Churamani, Marc Pickett, Issam H. Laradji, and Davide Maltoni. Cvpr 2020 continual learning in computer vision competition: Approaches, results, current challenges and future directions. ArXiv, abs/2009.09929, 2020. \n[59] Vincenzo Lomonaco, Lorenzo Pellegrini, Andrea Cossu, Antonio Carta, Gabriele Graffieti, Tyler L. Hayes, Matthias De Lange, Marc Masana, Jary Pomponi, Gido van de Ven, Martin Mundt, Qi She, Keiland Cooper, Jeremy Forest, Eden Belouadah, Simone Calderara, German I. Parisi, Fabio Cuzzolin, Andreas Tolias, Simone Scardapane, Luca Antiga, Subutai Amhad, Adrian Popescu, Christopher Kanan, Joost van de Weijer, Tinne Tuytelaars, Davide Bacciu, and Davide Maltoni. Avalanche: an end-to-end library for continual learning. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, 2nd Continual Learning in Computer Vision Workshop, 2021. \n[60] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pages 6467–6476, 2017. \n[61] Kanika Madan, Nan Rosemary Ke, Anirudh Goyal, Bernhard Schölkopf, and Yoshua Bengio. Fast and slow learning of recurrent independent mechanisms. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=Lc28QAB4ypz. \n[62] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier, 1989. \n[63] Jorge A Mendez and Eric Eaton. Lifelong learning of compositional structures. arXiv preprint arXiv:2007.07732, 2020. \n[64] Martial Mermillod, Aurélia Bugaiska, and Patrick Bonin. The stability-plasticity dilemma: Investigating the continuum from catastrophic forgetting to age-limited learning effects. Frontiers in psychology, 4:504, 2013. \n[65] Elliot Meyerson and Risto Miikkulainen. Beyond shared hierarchies: Deep multitask learning through soft layer ordering. arXiv preprint arXiv:1711.00108, 2017. \n[66] Martin Mundt, Yong Won Hong, Iuliia Pliushch, and Visvanathan Ramesh. A wholistic view of continual learning with deep neural networks: Forgotten lessons and the bridge to active and open world learning, 2020. \n[67] Martin Mundt, Steven Lang, Quentin Delfosse, and Kristian Kersting. Cleva-compass: A continual learning evaluation assessment compass to promote research transparency and comparability, 2021. \n[68] Eric Nalisnick, Akihiro Matsukawa, Yee Whye Teh, Dilan Gorur, and Balaji Lakshminarayanan. Do deep generative models know what they don’t know? arXiv preprint arXiv:1810.09136, 2018. \n[69] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011. \n[70] Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational continual learning. In International Conference on Learning Representations (ICLR), 2018. \n[71] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018. \n[72] Fabrice Normandin, Florian Golemo, Oleksiy Ostapenko, Pau Rodriguez, Matthew D Riemer, Julio Hurtado, Khimya Khetarpal, Dominic Zhao, Ryan Lindeborg, Timothée Lesort, Laurent Charlin, Irina Rish, and Massimo Caccia. Sequoia: A software framework to unify continual learning research, 2021. \n[73] Oleksiy Ostapenko, Mihai Puscas, Tassilo Klein, Patrick Jahnichen, and Moin Nabi. Learning to remember: A synaptic plasticity driven framework for continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11321–11329, 2019. \n[74] Giambattista Parascandolo, Niki Kilbertus, Mateo Rojas-Carulla, and Bernhard Schölkopf. Learning independent causal mechanisms. In International Conference on Machine Learning, pages 4036–4044. PMLR, 2018. \n[75] Judea Pearl. Causality. Cambridge university press, 2009. \n[76] Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference: foundations and learning algorithms. The MIT Press, 2017. \n[77] Mohammad Pezeshki, Sékou-Oumar Kaba, Yoshua Bengio, Aaron Courville, Doina Precup, and Guillaume Lajoie. Gradient starvation: A learning proclivity in neural networks. arXiv preprint arXiv:2011.09468, 2020. \n[78] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Computer Vision and Pattern Recognition (CVPR), 2017. \n[79] Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. arXiv preprint arXiv:1803.00676, 2018. \n[80] Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International conference on machine learning, pages 1530–1538. PMLR, 2015. \n[81] David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy Lillicrap, and Gregory Wayne. Experience replay for continual learning. In Advances in Neural Information Processing Systems, 2019. \n[82] Clemens Rosenbaum, Ignacio Cases, Matthew Riemer, and Tim Klinger. Routing networks and the challenges of modular and compositional computation. arXiv preprint arXiv:1904.12774, 2019. \n[83] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. \n[84] B Schölkopf, D Janzing, J Peters, E Sgouritsa, K Zhang, and J Mooij. On causal and anticausal learning. In 29th International Conference on Machine Learning (ICML 2012), pages 1255–1262. International Machine Learning Society, 2012. \n[85] Jonathan Schwarz, Jelena Luketina, Wojciech M Czarnecki, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. arXiv preprint arXiv:1805.06370, 2018. \n[86] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. International Conference on Machine Learning (ICML), 2018. \n[87] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In International Conference on Machine Learning, pages 4548–4557. PMLR, 2018. \n[88] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer, 2017. \n[89] Andrea Soltoggio. Short-term plasticity as cause–effect hypothesis testing in distal reward learning. Biological cybernetics, 109(1):75–94, 2015. \n[90] Olaf Sporns and Richard F Betzel. Modular brain networks. Annual review of psychology, 67:613–640, 2016. \n[91] Saul Sternberg. Modular processes in mind and brain. Cognitive neuropsychology, 28(3-4):156–208, 2011. \n[92] Tom Veniat, Ludovic Denoyer, and Marc’Aurelio Ranzato. Efficient continual learning with modular networks and task-driven priors. arXiv preprint arXiv:2012.12631, 2020. \n[93] Johannes von Oswald, Dominic Zhao, Seijin Kobayashi, Simon Schug, Massimo Caccia, Nicolas Zucchet, and João Sacramento. Learning where to learn: Gradient sparsity in meta and continual learning. NeurIPS 2021, 2021. \n[94] Yaqing Wang, Quanming Yao, James T Kwok, and Lionel M Ni. Generalizing from a few examples: A survey on few-shot learning. ACM Computing Surveys (CSUR), 53(3):1–34, 2020. \n[95] Ziyu Wang, Bin Dai, David Wipf, and Jun Zhu. Further analysis of outlier detection with deep generative models. arXiv preprint arXiv:2010.13064, 2020. \n[96] James CR Whittington and Rafal Bogacz. An approximation of the error backpropagation algorithm in a predictive coding network with local hebbian synaptic plasticity. Neural computation, 29(5):1229–1262, 2017. \n[97] Chenshen Wu, Luis Herranz, Xialei Liu, Joost van de Weijer, Bogdan Raducanu, et al. Memory replay gans: Learning to generate new categories without forgetting. Advances in Neural Information Processing Systems, 31:5962–5972, 2018. \n[98] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. \n[99] Chen Zeno, Itay Golan, Elad Hoffer, and Daniel Soudry. Task agnostic continual learning using online variational bayes, 2018. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
171,
|
| 1061 |
+
83,
|
| 1062 |
+
828,
|
| 1063 |
+
916
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 10
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
171,
|
| 1072 |
+
56,
|
| 1073 |
+
828,
|
| 1074 |
+
920
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 11
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
171,
|
| 1083 |
+
84,
|
| 1084 |
+
828,
|
| 1085 |
+
914
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 12
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
171,
|
| 1094 |
+
66,
|
| 1095 |
+
828,
|
| 1096 |
+
921
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 13
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
171,
|
| 1105 |
+
92,
|
| 1106 |
+
828,
|
| 1107 |
+
770
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 14
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1114 |
+
"text_level": 1,
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
174,
|
| 1117 |
+
782,
|
| 1118 |
+
553,
|
| 1119 |
+
800
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 14
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Laurent Charlin holds a CIFAR AI Chair Program and acknowledges support from Samsung Electronics Co., Ldt., Google, and NSERC. Massimo Caccia was supported through MITACS during his part time employment with Element AI the ServiceNow company. Massimo Caccia was also supported by Amazon, during his part time employment there. We would like to thank Mila and Compute Canada for providing computational resources. We also would like to thank Irina Rish for useful discussions. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
174,
|
| 1128 |
+
814,
|
| 1129 |
+
826,
|
| 1130 |
+
883
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 14
|
| 1133 |
+
}
|
| 1134 |
+
]
|
parse/train/LJjC6DmSkgT/LJjC6DmSkgT_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LJjC6DmSkgT/LJjC6DmSkgT_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/jSz59N8NvUP/jSz59N8NvUP.md
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RETRIEVE: Coreset Selection for Efficient and Robust Semi-Supervised Learning
|
| 2 |
+
|
| 3 |
+
Krishnateja Killamsetty Xujiang Zhao Feng Chen Rishabh Iyer
|
| 4 |
+
|
| 5 |
+
Department of Computer Science The University of Texas at Dallas Richardson, Texas, USA
|
| 6 |
+
|
| 7 |
+
{krishnateja.killamsetty,xujiang.zhao,feng.chen,rishabh.iyer}@utdallas.edu
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Semi-supervised learning (SSL) algorithms have had great success in recent years in limited labeled data regimes. However, the current state-of-the-art SSL algorithms are computationally expensive and entail significant compute time and energy requirements. This can prove to be a huge limitation for many smaller companies and academic groups. Our main insight is that training on a subset of unlabeled data instead of entire unlabeled data enables the current SSL algorithms to converge faster, significantly reducing computational costs. In this work, we propose RETRIEVE1, a coreset selection framework for efficient and robust semi-supervised learning. RETRIEVE selects the coreset by solving a mixed discrete-continuous bi-level optimization problem such that the selected coreset minimizes the labeled set loss. We use a one-step gradient approximation and show that the discrete optimization problem is approximately submodular, enabling simple greedy algorithms to obtain the coreset. We empirically demonstrate on several real-world datasets that existing SSL algorithms like VAT, Mean-Teacher, FixMatch, when used with RETRIEVE, achieve a) faster training times, b) better performance when unlabeled data consists of Out-of-Distribution (OOD) data and imbalance. More specifically, we show that with minimal accuracy degradation, RETRIEVE achieves a speedup of around $3 \times$ in the traditional SSL setting and achieves a speedup of $5 \times$ compared to state-of-the-art (SOTA) robust SSL algorithms in the case of imbalance and OOD data. RETRIEVE is available as a part of the CORDS toolkit: https://github.com/decile-team/cords.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Deep learning algorithms have had great success over the past few years, often achieving human or superhuman performance in various tasks like computer vision [10], speech recognition [18], natural language processing [5], and video games [45]. One of the significant factors attributing to the recent success of deep learning is the availability of large amounts of labeled data [55]. However, creating large labeled datasets is often time-consuming and expensive in terms of costs. Moreover, some domains like medical imaging require a domain expert for labeling, making it nearly impossible to create a large labeled set. In order to reduce the dependency on the availability of labeled data, semi-supervised learning (SSL) algorithms [7] were proposed to train models using large amounts of unlabeled data along with the available labeled data. Recent works [42, 56, 4, 53] show that semi-supervised learning algorithms can achieve similar performance to standard supervised learning using significantly fewer labeled data instances.
|
| 16 |
+
|
| 17 |
+
However, the current SOTA SSL algorithms are compute-intensive with large training times. For example, from our personal experience, training a WideResNet model [60] on a CIFAR10 [27] dataset with 4000 labels using the SOTA FixMatch algorithm [53] for 500000 iterations takes around four days on a single RTX2080Ti GPU. This also implies increased energy consumption and an associated carbon footprint [54]. Furthermore, it is common to tune these
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: (a )Unlabeled set with the same distribution as the labeled set, (b) Unlabeled set containing OOD instances, (c) Unlabeled set where the class distribution is imbalanced
|
| 21 |
+
|
| 22 |
+
SSL algorithms over a large set of hyper-parameters, which means that the training needs to be done hundreds and sometimes thousands of times. For example, [44] performed hyperparameter tuning by running 1000 trails of Gaussian Process-based Blackbox optimization[16] for each SSL algorithm (which runs for 500000 iterations). This process implies significantly higher experimental turnaround times, energy consumption, and CO2 emissions. Furthermore, this is not something that can be done at most universities and smaller companies. The first problem we try to address in this work is: Can we efficiently train a semi-supervised learning model on coresets of unlabeled data to achieve faster convergence and reduction in training time?
|
| 23 |
+
|
| 24 |
+
Despite demonstrating encouraging results on standard and clean datasets, current SSL algorithms perform poorly when OOD data or class imbalance is present in the unlabeled set [44, 8]. This performance degradation can be attributed to the fact that the current SSL algorithms assume that both the labeled set and unlabeled set are sampled from the same distribution. A visualization of OOD data and class imbalance in the unlabeled set is shown in Figure 1. Several recent works [59, 8, 17] were proposed to mitigate the effect of OOD in unlabeled data, in turn improving the performance of SSL algorithms. However, the current SOTA robust SSL method [17] is 3X slower than the standard SSL algorithms, further increasing the training times, energy costs, and CO2 emissions. The second problem we try to address in this work is: In the case where OOD data or class imbalance exists in the unlabeled set, can we robustly train an SSL model on coresets of unlabeled data to achieve similar performance to existing robust SSL methods while being significantly faster?
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 2: Comparison of RETRIEVE with VAT, FixMatch, and MT on CIFAR-10 and SVHN: We contrast the accuracy degradation with speedup compared to the base SSL or robust SSL (DS3L) approach. We observe speedups of $3 \times$ in standard SSL case with $0 . 7 \%$ accuracy drop and $2 \times$ speedup with no accuracy drop. In the robust SSL case, we observe $5 \times$ speedup compared to DS3L [17] while outperforming it in terms of accuracy.
|
| 28 |
+
|
| 29 |
+
To this end, we propose RETRIEVE, a coreset selection framework that enables faster convergence and robust training of SSL algorithms. RETRIEVE selects coreset of the unlabeled data resulting in minimum labeled set loss when trained upon in a semi-supervised manner. Intuitively, RETRIEVE tries to achieve faster convergence by selecting data instances from the unlabeled set whose gradients are aligned with the labeled set gradients. Furthermore, RETRIEVE also achieves distribution matching by selecting a coreset from the unlabeled set with similar gradients to the labeled set.
|
| 30 |
+
|
| 31 |
+
# 1.1 Our Contributions
|
| 32 |
+
|
| 33 |
+
The contributions are our work can be summarized as follows:
|
| 34 |
+
|
| 35 |
+
• RETRIEVE Framework: We propose a coreset selection algorithm RETRIEVE for efficient and robust semi-supervised learning. RETRIEVE poses the coreset selection as a discrete-continuous bi-level optimization problem and solves it efficiently using an online approximation of single-step gradient updates. Essentially, RETRIEVE selects a coreset of the unlabeled set, which, when trained using the combination of the labeled set and the specific unlabeled data coreset, minimizes the model loss on the labeled dataset. We also discuss several implementation tricks to speed up the coreset selection step significantly $\cdot { c . f . }$ , Section 3.3, Section 3.4)
|
| 36 |
+
|
| 37 |
+
• RETRIEVE in Traditional SSL: We empirically demonstrate the effectiveness of RETRIEVE in conjunction with several SOTA SSL algorithms like VAT, Mean-Teacher, and FixMatch. The speedups obtained by RETRIEVE are shown in Figure 2a. Specifically, we see that RETRIEVE consistently achieves close to $3 \times$ speedup with accuracy degradation of around $0 . 7 \%$ . RETRIEVE also achieves more than $4 . 2 \times$ speedup with a slightly higher accuracy degradation. Furthermore, when RETRIEVE is trained for more iterations, RETRIEVE can match the performance of VAT while having a $2 \times$ speedup (see VAT Extended bar plot in Figure 2a). RETRIEVE also consistently outperforms simple baselines like early stopping and random sampling.
|
| 38 |
+
|
| 39 |
+
• RETRIEVE in Robust SSL: We further demonstrate the utility of RETRIEVE for robust SSL in the presence of OOD data and imbalance in the unlabeled set. We observe that with the VAT SSL algorithm, RETRIEVE outperforms SOTA robust SSL method DS3L [17] (with VAT) while being around $5 \times$ faster. RETRIEVE also significantly outperforms just VAT and random sampling.
|
| 40 |
+
|
| 41 |
+
# 1.2 Related Work
|
| 42 |
+
|
| 43 |
+
Semi-supervised learning: Several papers have been proposed for semi-supervised learning over the past few years. Due to space constraints, we do not talk about generative [50, 48, 26, 11, 19, 30, 3] and graph-based [62, 33] methods for SSL in this work. We instead focus on the main components of the existing SOTA SSL algorithms, viz., a) consistency regularization and b) entropy minimization. The consistency regularization component forces the model to have consistent prediction given an unlabeled data point and its perturbed (or augmented) version. The Entropy-minimization component forces the model instances to have low-entropy predictions on unlabeled data instances to ensure that the classes are well separated. One can achieve entropy minimization by directly adding the entropy loss component on the unlabeled class prediction or using methods like Pseudo-Labeling to enforce it implicitly. Mean-Teacher [56] approach uses a consistency regularization component that forces the predictions of the exponential moving average of the model to be the same as the model prediction of the augmented unlabeled images. VAT [42] instead computes the perturbation of the unlabeled data point that changes the prediction distribution the most and enforces the model to have the same prediction on both unlabeled data instance and unlabeled data instance with computed perturbation as a form of consistency regularization. MixMatch [4] uses $K$ standard image augmentations for consistency regularization and enforces entropy minimization by using a sharpening function on the average predicted distribution of $K$ augmentations of unlabeled data instances. FixMatch [53] induces consistency regularization by forcing the model to have the same prediction on a weakly augmented and strongly augmented image instance. Furthermore, FixMatch [53] also employs confidence thresholding to mask unlabeled data instances on which the model’s prediction confidence is below a threshold from being used in consistency loss.
|
| 44 |
+
|
| 45 |
+
Robust Semi-supervised learning: Several methods have been proposed to make the existing semi-supervised learning algorithms robust to label noise in labeled data and robust to OOD data in the unlabeled set. A popular approach [49, 52] to deal with label noises and class imbalance in a supervised learning setting is by reweighing each data instance and jointly learning these weights along with the model parameters. Safe-SSL (DS3L) [17] is a recently proposed SOTA method for robust SSL learning. DS3L is similar to the reweighting in the supervised case and adopts a reweighting approach to deal with OOD data in the unlabeled set. Safe-SSL uses a neural network to predict the weight parameters of unlabeled instances that result in maximum labeled set performance, making it a bi-level optimization problem. In this regard, both RETRIEVE and Safe-SSL approach solves a bi-level optimization problem, except that RETRIEVE solves a discrete optimization problem at the outer level, thereby enabling significant speedup compared to SSL algorithms and an even more considerable speedup compared to safe-SSL (which itself is $3 \times$ slower than SSL algorithms). In contrast to safe-SSL and other robust SSL approaches, RETRIEVE achieves both efficiency and robustness. Other approaches for robust SSL include UASD [9] uses an Uncertainty aware self-distillation with OOD filtering to achieve robust performance and a distributionally robust model to deal with OOD [8].
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 3: Flowchart of RETRIEVE framework, where coreset selection is performed every $R$ epochs and the model is trained on the selected coreset.
|
| 49 |
+
|
| 50 |
+
Coreset and subset selection methods: Coresets [13] are small and informative weighted data subsets that approximate original data. Several works [57, 39, 24, 23] have studied coresets for efficient training of deep learning models in the supervised learning scenarios. CRAIG [39] selects representative coresets of the training data that closely estimates the full training gradient. Another approach, GLISTER [24] posed the coreset selection as optimizing the validation set loss for efficient learning focused on generalization. Another approach, GRAD-MATCH [23] select subsets that approximately match the full training loss or validation loss gradient using orthogonal matching pursuit. Similarly, coreset selection methods [57, 51, 2, 24] were also used for active learning scenario, where a subset of data instances from the unlabeled set is selected to be labeled. Finally, several recent works have used submodular functions for finding diverse and representative subsets for data subset selection [34, 21, 57, 58].
|
| 51 |
+
|
| 52 |
+
# 2 Preliminaries
|
| 53 |
+
|
| 54 |
+
Notation: Denote to be the unlabele $\mathcal { D } = \{ x _ { i } , y _ { i } \} _ { i = 1 } ^ { n }$ to be the la points. Let eled set with be the class $n$ labeled data points, aer model parameters, $\mathcal { U } = \{ x _ { j } \} _ { j = 1 } ^ { m }$ $m$ $\theta$ $l _ { s }$ set loss function (such as cross-entropy loss) and $l _ { u }$ be the unlabeled set loss, e.g. consistencyregularization loss, entropy loss, etc.. Denote $L _ { S } ( \mathcal D , \theta ) = \sum _ { i \in \mathcal D } l _ { s } ( \theta , x _ { i } , y _ { i } )$ and $\bar { L } _ { U } ( \mathcal { U } , \theta , m ) \stackrel { \cdot } { = }$ $\sum _ { j \in \mathcal { U } } m _ { i } l _ { u } ( x _ { j } , \theta )$ where $m \in \{ 0 , 1 \} ^ { m }$ is the binary mask vector for unlabeled set. For notational convenience, we denote $l _ { s i } ( \theta ) = l _ { s } ( x _ { i } , y _ { i } , \theta )$ and denote $l _ { u j } ( \theta ) = l _ { u } ( x _ { j } , \theta )$ .
|
| 55 |
+
|
| 56 |
+
Semi-supervised loss: Following the above notations, the loss function for many existing SSL algorithms can be written as $L _ { S } ( \bar { D } , \theta ) + \lambda L _ { U } ( \mathcal { U } , \theta , m )$ , where $\lambda$ is the regularization coefficient for the unlabeled set loss. For Mean Teacher [56], VAT[42], MixMatch [4], the mask vector $_ { \mathbf { \nabla } } \mathbf { m }$ is made up entirely of ones, whereas for FixMatch [53], $_ { m }$ is confidence-thresholded binary vector, indicating whether to include an unlabeled data instance or not. Usually, $L _ { S }$ is a cross-entropy loss for classification experiments and squared loss for regression experiments. A detailed formulation of the loss function $L _ { U }$ used in different SSL algorithms is given in Appendix C
|
| 57 |
+
|
| 58 |
+
Robust Semi-supervised loss: However, for robust semi-supervised loss, the mask vector $_ { m }$ is replaced with a weight vector ${ \pmb w } \in \mathbb { R } ^ { m }$ denoting the contribution of data instances in the unlabeled set. The weight vector $\pmb { w }$ is unknown and needs to be learned. The weighted SSL loss is: $L _ { S } ( \mathcal { D } , \theta ) +$ $\lambda L _ { U } ( \mathcal { U } , \boldsymbol { \theta } , { \boldsymbol { w } } )$ , where $\lambda$ is the regularization coefficient for the unlabeled set loss.
|
| 59 |
+
|
| 60 |
+
The state-of-the-art robust SSL method, Safe-SSL [17] poses the learning problem as:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\overbrace { \pmb { w } ^ { * } = \operatorname { a r g m i n } _ { \pmb { w } } L _ { S } ( \mathcal { D } , \underbrace { \mathrm { a r g m i n } \left( L _ { S } ( \mathcal { D } , \theta ) + \lambda L _ { U } ( \mathcal { U } , \theta , w ) \right) } _ { \theta } ) } ^ { o u t e r - l e v e l }
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
In order to solve the problem at the inner level efficiently, Safe-SSL [17] method uses a single-gradient step approximation to estimate the inner problem solution. The weight vector learning problem after the one-step approximation is: $\pmb { w } ^ { * } = \mathrm { a r g m i n } ~ L _ { S } ( \mathcal { D } , \pmb { \theta } - \alpha \nabla _ { \theta } L _ { S } ( \bar { \mathcal { D } } , \theta ) - \alpha \lambda \nabla _ { \theta } L _ { U } ( \bar { \mathcal { U } } , \theta , w )$
|
| 67 |
+
|
| 68 |
+
Safe-SSL also uses a single-step gradient approximation to solve the outer level problem as well. As discussed before, the optimization problem of the Safe-SSL [17] algorithm involves continuous optimization at both inner and outer levels, whereas for RETRIEVE, the outer level involves a discrete optimization problem which makes it significantly faster than Safe-SSL.
|
| 69 |
+
|
| 70 |
+
# 3 RETRIEVE framework
|
| 71 |
+
|
| 72 |
+
In RETRIEVE, the coreset selection and classifier model learning on the selected coreset is performed in conjunction. As shown in the Figure 3, RETRIEVE trains the classifier model on the previously selected coreset for $R$ epochs in a semi-supervised manner, and every $R ^ { t h }$ epoch, a new coreset is selected, and the process is repeated until the classifier model reaches convergence, or the required number of epochs is reached. The vital feature of RETRIEVE is that the coresets selected are adapted with the training. Let $\theta _ { t }$ be the classifier model parameters and the $S _ { t }$ be the coreset at time step $t$ . Since coreset selection is done every $R$ epochs, we have ${ S } _ { t } = { S } _ { \lfloor t / R \rfloor }$ , or in other words, the subsets change only after $R$ epochs. The SSL loss function on the selected coreset at iteration $t$ is as follows:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
L _ { S } ( \mathcal { D } , \boldsymbol { \theta } _ { t } ) + \lambda _ { t } \sum _ { j \in \mathcal { S } _ { t } } m _ { j t } l _ { u } ( x _ { j } , \boldsymbol { \theta } _ { t } )
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\mathbf { \nabla } m _ { j t }$ is the mask binary value associated with the $j ^ { t h }$ point based on model parameters $\theta _ { t }$ and $\lambda _ { t }$ is the unlabeled loss coefficient at iteration $t$ . Note that objective function given in Equation (2) is dependent on the SSL algorithm used in RETRIEVE framework. If gradient descent is used for learning, the parameter update step from time step $t$ to $t + 1$ is as follows:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\theta _ { t + 1 } = \theta _ { t } - \alpha _ { t } \nabla _ { \theta } L _ { S } ( \mathcal { D } , \theta _ { t } ) - \alpha _ { t } \lambda _ { t } \sum _ { j \in S _ { t } } m _ { j t } \nabla _ { \theta } l _ { u } ( x _ { j } , \theta _ { t } )
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $\alpha _ { t }$ is the learning rate at iteration $t$ . The update step for mini-batch SGD is similar, just that it does the above on minibatches of the dataset.
|
| 85 |
+
|
| 86 |
+
# 3.1 Problem Formulation
|
| 87 |
+
|
| 88 |
+
The coreset selection problem of RETRIEVE at timestep $t$ is as follows:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\overbrace { S _ { t } = \underbrace { \mathrm { \ a r g m i n } \ L _ { S } \Big ( \mathcal { D } , \underbrace { \mathrm { a r g m i n } \left( L _ { S } ( \mathcal { D } , \theta _ { t } ) + \lambda _ { t } \sum _ { j \in S } m _ { j t } l _ { u } ( x _ { j } , \theta _ { t } ) \right) } _ { i n n e r - l e v e l } } \Big ) } ^ { o u t e r - l e v e l } \mathrm { ~ , ~ }
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $k$ is the size of the coreset and $\mathbf { \nabla } m _ { j t }$ is the binary value associated with the $j ^ { t h }$ instance based on model parameters $\theta _ { t }$ . $k$ is a fraction of the entire dataset (e.g. $20 \%$ or $30 \%$ ), and the goal is to select the best subset of the unlabeled set, which maximizes the labeled loss based. The outer level of the above optimization problem is a discrete subset selection problem. However, solving the inner-optimization problem naively is computationally intractable, and, we need to make some approximations.
|
| 95 |
+
|
| 96 |
+
# 3.2 One-Step Gradient Approximation
|
| 97 |
+
|
| 98 |
+
To solve the inner optimization problem efficiently, RETRIEVE adopts a one-step gradient approximation based optimization method similar to [14, 49]. More specifically, RETRIEVE approximates the solution to the inner level problem by taking a single gradient step towards the descent direction of the loss function. The idea here is to jointly optimize the model parameters and the subset as the learning proceeds. After this approximation, the coreset selection optimization problem becomes:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
{ \mathcal { S } } _ { t } = \operatorname * { a r g m i n } _ { S \subseteq { \mathcal { U } } : | S | \leq k } L _ { S } ( { \mathcal { D } } , \theta _ { t } - \alpha _ { t } \nabla _ { \theta } L _ { S } ( { \mathcal { D } } , \theta _ { t } ) - \alpha _ { t } \lambda _ { t } \sum _ { j \in S } m _ { j t } \nabla _ { \theta } l _ { u } ( x _ { j } , \theta _ { t } ) )
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
However, even after this approximation, the above optimization problem (Equation (5)) is NP-hard.
|
| 105 |
+
|
| 106 |
+
Theorem 1 Optimization problem (Equation (5)) is NP hard, even if $\mathit { l } _ { s }$ is a convex loss function. If the labeled set loss function $l _ { s }$ is cross-entropy loss, then the optimization problem give in the Equation (5) can be converted into an instance of cardinality constrained weakly submodular maximization.
|
| 107 |
+
|
| 108 |
+
The proof is given in Appendix B. The given Theorem 1 holds as long as $l _ { s }$ is a cross-entropy loss irrespective of the form of $l _ { u }$ . Further, Theorem 1 implies that the optimization problem given in Equation (5) can be solved efficiently using greedy algorithms [37, 38] with approximation guarantees. RETRIEVE uses stochastic-greedy algorithm [22, 38] to solve the optimization problem Equation (5) with an approximation guarantee of $1 - 1 / e ^ { \beta } - \epsilon$ in $\mathcal { O } ( m \log ( 1 / \epsilon ) )$ iterations where $m$ is the unlabeled set size and $\beta$ is the weak submodularity coefficient (see Appendix B). And the set function used in stochastic greedy algorithm is as follows:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
f ( \theta _ { t } , S ) = - L _ { S } ( \mathcal { D } , \theta _ { t } - \alpha _ { t } \nabla _ { \theta } L _ { S } ( \mathcal { D } , \theta _ { t } ) - \alpha _ { t } \lambda _ { t } \sum _ { j \in S } m _ { j t } \nabla _ { \theta } l _ { u } ( x _ { j } , \theta _ { t } ) )
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
Notice that during each greedy iteration, we need to compute the set function value $f ( \theta _ { t } , S \cup e )$ to find the maximal gain element $e$ that can be added to the set $s$ . This implies that the loss over the entire labeled set needs to be computed multiple times for each greedy iteration, making the entire greedy selection algorithm computationally expensive.
|
| 115 |
+
|
| 116 |
+
# 3.3 RETRIEVE Algorithm
|
| 117 |
+
|
| 118 |
+
To make the greedy selection algorithm efficient, we approximate the set function value $f ( \theta _ { t } , S \cup e )$ with the first two terms of it’s Taylor-series expansion Let, $\theta ^ { S } \ = \ \theta _ { t } \ - \ \alpha _ { t } \nabla _ { \theta } \bar { L _ { S } } ( { \mathcal D } , \theta _ { t } ) \ -$ $\alpha _ { t } \lambda _ { t } \sum _ { j \in S } m _ { j t } \nabla _ { \theta } l _ { u } ( x _ { j } , \theta _ { t } )$ . The modified set function value with Taylor-series approximation is as follows:
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\hat { f } ( \theta _ { t } , S \cup e ) = - L _ { S } ( \mathcal { D } , \theta ^ { S } ) + \alpha _ { t } \lambda _ { t } \nabla _ { \theta } L _ { S } \big ( \mathcal { D } , \theta ^ { S } \big ) ^ { T } m _ { e t } \nabla _ { \theta } l _ { u } \big ( x _ { e } , \theta _ { t } \big )
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where ${ \mathbf { } } m _ { e t }$ is the binary mask value associated with element $e$ . Note that the term $m _ { e t } \nabla _ { \boldsymbol { \theta } } l _ { \underline { { u } } } ( x _ { e } , \theta _ { t } )$ can be precomputed at the start of the greedy selection algorithm, and the term $\nabla _ { \theta } L _ { S } ( \mathcal { D } , \theta ^ { S } )$ needs to be computed only once every greedy iteration, thereby reducing the computational complexity of the greedy algorithm.
|
| 125 |
+
|
| 126 |
+
A detailed pseudo-code of the RETRIEVE algorithm is given in Algorithm 1. RETRIEVE uses a greedy selection algorithm for coreset selection, and the detailed pseudo-code of the greedy algorithm is given in Algorithm 2. RETRIEVE can be easily implemented with popular deep learning frameworks [47, 1] that provide auto differentiation functionalities. In all our experiments, we set $R = 2 0$ , i.e., we update the coreset every 20 epochs.
|
| 127 |
+
|
| 128 |
+
# Algorithm 1: RETRIEVE Algorithm
|
| 129 |
+
|
| 130 |
+
# 3.4 Additional Implementation Details:
|
| 131 |
+
|
| 132 |
+
In this subsection, we discuss additional implementational and practical tricks to make RETRIEVE scalable and efficient.
|
| 133 |
+
|
| 134 |
+
Input: Labeled Set: $\left\{ \lambda _ { t } \right\} _ { t = 0 } ^ { t = T - 1 }$ $\mathcal { D }$ , Learning rates: , Unlabeled Set: $\{ \alpha _ { t } \} _ { t = 0 } ^ { t = T - 1 }$ $\boldsymbol { u }$ , Reg. Coefficients:
|
| 135 |
+
Input: Total no of epochs: , Epoch interval for subset selection: $R$ , Size of the coreset: $k$
|
| 136 |
+
Set $t = 0$ ; Randomly initialize model parameters $\theta _ { 0 }$ and coreset
|
| 137 |
+
$S _ { 0 } \subseteq \mathcal { U } : | S _ { 0 } | = k$ ;
|
| 138 |
+
repeat if ( $t \% R = = 0$ ) ∧ $( t > 0 )$ ) then St = GreedySelectio $( \mathcal { D } , \mathcal { U } , \theta _ { t } , \lambda _ { t } , \alpha _ { t } , k )$ else $\_ S { _ t } = S _ { { t - 1 } }$ Compute batches $\mathcal { D } _ { b } = ( ( x _ { b } , y _ { b } ) ; b \in ( 1 \cdot \cdot \cdot B ) )$ from $\mathcal { D }$ Compute batches $S _ { t b } = ( ( x _ { b } ) ; b \in ( 1 \cdot \cdot \cdot B ) )$ from $s$ $^ { * * }$ Mini-batch SGD \*\*\* Set $\theta _ { t 0 } = \theta _ { t }$ for $b = 1$ to $B$ do Compute mask $^ { m _ { t } }$ on $\boldsymbol { S } _ { t b }$ from current model parameters $\theta _ { t ( b - 1 ) }$ $\begin{array} { r } { \boldsymbol { \theta } _ { t b } ^ { \ast } = \boldsymbol { \theta } _ { t ( b - 1 ) } - \alpha _ { t } \nabla _ { \theta } L _ { S } ( \mathcal { D } _ { b } , \boldsymbol { \theta } _ { t } ) - } \end{array}$ αtλt P mjt∇θlu(xj , θt(b − 1)) j∈Stb Set θt+1 = θtB t = t + 1
|
| 139 |
+
until t ≥ T
|
| 140 |
+
return θT , ST
|
| 141 |
+
|
| 142 |
+
Last-layer gradients. Computing the gradients over deep models is time-consuming due to an enormous number of parameters in the model. To address this issue, we adopt a last-layer gradient approximation similar to [2, 39, 24, 23] by
|
| 143 |
+
|
| 144 |
+
only considering the last classification layer gradients of the classifier model in RETRIEVE. By simply using the last-layer gradients, we achieve significant speedups in RETRIEVE.
|
| 145 |
+
|
| 146 |
+
Warm-starting data selection: We warm start the classifier model by training it on the entire unlabeled dataset for a few epochs similar to [23]. Warm starting allows the classifier model to have a good starting point to provide informative loss gradients used for coreset selection. More specifically, we train the classifier model on the entire unlabeled set for $\begin{array} { r } { T _ { w } = \frac { \kappa T k } { m } } \end{array}$ epochs where $k$ is coreset size, $T$ is the total number of epochs, $\kappa$ is the fraction of warm start, and $m$ is the size of the unlabeled set. To be fair, we consider all baselines in the standard SSL setting with the same warm start.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 4: A comparison of RETRIEVE with baselines (RANDOM, CRAIG, FULL, and FULLEARLYSTOP in the traditional SSL setting. SpeedUp vs Accuracy Degradation, both compared to SSL for (a) VAT on CIFAR-10, (b) VAT on SVHN, (c) FixMatch on CIFAR-10, (d) MT on CIFAR-10, and (e) MT on SVHN. We observe that RETRIEVE significantly outperforms existing baselines in terms of accuracy degradation and speedup tradeoff compared to SSL. Plot (f) also compares the CO2 emissions among the different approaches on FixMatch, showing again that RETRIEVE achieves the best energy-accuracy tradeoff. Plots (g) and (h) are the convergence results comparing accuracy with the time taken. Again, we see that RETRIEVE achieves much faster convergence than all baselines and full training.
|
| 150 |
+
|
| 151 |
+
# 3.5 Epochs vs. Iterations
|
| 152 |
+
|
| 153 |
+
Most of the existing SSL algorithms are trained using a fixed number of iterations instead of epochs. However, for easier comprehension of the RETRIEVE algorithm, we use the epoch notation in our work. A single epoch here meant a pass over random mini-batches of data points, such that the total number of data points encountered is equal to the size of the coreset of the unlabeled data. For example, if the unlabeled set size is 50000 and the unlabeled batch size is 50, then a single epoch over $100 \%$ , $50 \%$ , and $30 \%$ subsets are equivalent to 1000, 500, and 300 iterations, respectively.
|
| 154 |
+
|
| 155 |
+
# Algorithm 2: GreedySelection
|
| 156 |
+
|
| 157 |
+
Input: Labeled Set: $\mathcal { D }$ , Unlabeled Set: $\boldsymbol { u }$ , Model Parameters: $\theta _ { t }$ , Learning rate: $\alpha _ { t }$
|
| 158 |
+
Input: Regularization Coefficient: $\lambda _ { t }$ , Budget: $k$
|
| 159 |
+
Initialize $s _ { t } = \emptyset$
|
| 160 |
+
Set $m = | \mathcal { U } |$
|
| 161 |
+
Compute mask values $_ { \pmb { m } }$ based on current model parameters $\theta _ { t }$
|
| 162 |
+
for $e \in { \mathcal { U } }$ do
|
| 163 |
+
Compute $\theta _ { e } = m _ { e } \nabla _ { \theta } l _ { u } \big ( x _ { e } , \theta _ { t } \big )$
|
| 164 |
+
for $i = 1$ to $k$ do Compute $\theta ^ { S } =$ $\boldsymbol { \theta } _ { t } ^ { \star } - \alpha _ { t } \nabla _ { \theta } L _ { S } ( \mathcal { D } , \boldsymbol { \theta } _ { t } ) - \alpha _ { t } \lambda _ { t } \sum _ { j \in S } \boldsymbol { m } _ { j t } \nabla _ { \theta } l _ { u } ( x _ { j } , \boldsymbol { \theta } _ { t } )$ Compute $\nabla _ { \theta } L _ { S } ( \mathcal { D } , \theta ^ { S } )$ $V \sim$ Sample $\lceil m l o g ( 1 / \epsilon ) \rceil$ instances from $\boldsymbol { u }$ be $s t - g a i n = - \infty$ for $e \in V$ do Compute gain ${ \hat { g } } ( e ) =$ $\alpha _ { t } \lambda _ { t } \nabla _ { \theta } L _ { S } { \left( \mathcal { D } , \theta ^ { S } \right) } ^ { T } \mathbf { m } _ { e } \nabla _ { \theta } l _ { u } { \left( x _ { e } , \theta _ { t } \right) }$ if gˆ(e) > best − gain then Set s = e Set best − gain = ˆg(e) St = St ∪ s U = U \ s
|
| 165 |
+
return $s _ { t }$
|
| 166 |
+
|
| 167 |
+
# 4 Experiments
|
| 168 |
+
|
| 169 |
+
Our experimental section aims to verify the efficiency and effectiveness of RETRIEVE by evalu
|
| 170 |
+
|
| 171 |
+
ating RETRIEVE through three semi-supervised learning scenarios a) traditional SSL scenario with clean data, b) robust SSL with OOD, and c) robust SSL with class imbalance, to demonstrate the efficiency and the robustness of RETRIEVE. Furthermore, our work’s experimental scenarios are very relevant in terms of research and real-world applications. We have implemented the RETRIEVE algorithmic framework using PyTorch [46]. We repeat the same experiment for three runs with different initialization and report the mean test accuracies in our plots. A detailed table with both mean test accuracy and the standard deviations was given in Appendix (G, H). For a fair comparison, we use the same random seed in each trial for all methods. We explain implementation details, datasets, and baselines used in each scenario in the following subsections.
|
| 172 |
+
|
| 173 |
+
Baselines in each setting. In this section, we discuss baselines that are used in all the scenarios considered. We begin with the traditional SSL scenario. In this setting, we run RETRIEVE (and all baselines) with warm-start. We incorporate RETRIEVE with three representative SSL methods, including Mean Teacher (MT) [56], Virtual Adversarial Training (VAT) [42] and FixMatch [53]. The baselines considered are RANDOM (where we just randomly select a subset of unlabeled data points of the same size as RETRIEVE), CRAIG [39, 23] and FULL-EARLYSTOP. CRAIG [39, 23] was actually proposed in the supervised learning scenario. We adapt it to SSL by choosing a representative subset of unlabeled points such that the gradients are similar to the unlabeled loss gradients. We run the per-batch variant of CRAIG proposed in [23], where we select a subset of mini-batches instead of data instances for efficiency and scalability. Similarly, we use the per-batch version of GRADMATCH proposed in [23] adapted to SSL setting as another baseline. For more information on the formulation of CRAIG and GRADMATCH in the SSL case, see Appendix D, E. Again, we emphasize that RANDOM, CRAIG, and GRADMATCH are run with early stopping for the same duration as RETRIEVE. In FULL-EARLYSTOP baseline, we train the model on the entire unlabeled set for the time taken by RETRIEVE and report the test accuracy. In the traditional SSL scenario, we use warm variants of RETRIEVE, RANDOM, CRAIG for SSL training because warm variants are better in accuracy and efficiency compared to not performing warm start – see Appendix G for a careful comparison of both. Robust SSL with OOD and Imbalance: In the robust learning scenario for both OOD and imbalance, we analyze the performance of RETRIEVE with the VAT [42] algorithm. Note that for the Robust SSL scenario, we do not warm start the model by training for a few iterations on the full unlabeled set because training on an entire unlabeled set(containing OOD or class imbalance) creates a biased model due to a distribution mismatch between labeled set and unlabeled set. We empirically compare not warm starting the model with warm starting in Appendix H. In the robust SSL case, we compare RETRIEVE with two robust SSL algorithms DS3L [17] and L2RW [49]. DS3L (also called Safe-SSL) is a robust learning approach using a meta-weight network proposed specifically for robust SSL. We adapt L2RW(Learning to Reweight), originally proposed for robust supervised learning, to the SSL case and use it as a baseline. Similarly, we adapt the robust coreset selection method CRUST [40] originally proposed to tackle noisy labels scenario in supervised learning to SSL setting and use it as a baseline in Robust SSL scenario.
|
| 174 |
+
|
| 175 |
+
Datasets, Model architecture and Experimental Setup: We begin by providing details common across the three scenarios. We perform experiments on the following image classification datasets: CIFAR-10 [28] (60000 instances), SVHN [43] (99289 instances) and the following sentiment analysis datasets: IMDB $[ 3 6 ] ^ { 2 }$ (10000 instances), and ELEC $[ 2 0 ] ^ { 3 }$ (246714 instances) datasets. We use a modified version of the ELEC dataset where the duplicate sentences are removed. For CIFAR-10, we use a labeled set of 4000 instances with 400 instances from each class, an unlabeled set of 50000 instances, a test set of 10000 instances. For SVHN, we used a labeled set of
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Figure 5: Performance comparison of RETRIEVE vs Bayesian Coreset using VAT for $20 \%$ and $30 \%$ CIFAR10 subsets
|
| 179 |
+
|
| 180 |
+
1000 instances with 100 instances from each class, an unlabeled set of 73257 instances, a test set of 26032 instances. For IMDB and ELEC datasets, we use the labeled and unlabeled splits following the work [41]. For CIFAR10 and SVHN datasets, we use the Wide-ResNet-28-2 [60] model that is commonly used in SSL [44, 53]. For MNIST, we use a variant of LeNet [31] (see Appendix F for details). For IMDB and ELEC datasets, we use a model comprising of Word Embedding layer, LSTM model, and two-layer MLP model following the architecture given in the work [41]. Similar to the work [41], we initialize the embedding matrix and LSTM model weights using a pretrained recurrent language model using both the labeled and unlabeled data. For Image datasets, with RETRIEVE(and baselines like RANDOM, GRADMATCH and CRAIG), we use the Nesterov’s accelerated SGD optimizer with a learning rate of 0.03, weight decay of 5e-4, the momentum of 0.9, and a cosine annealing [35] learning rate scheduler for all the experiments. For the FULL and FULLEARLYSTOP, we use the Adam optimizer [25] and follow the experimental setting from the SSL papers [53, 42, 56].
|
| 181 |
+
|
| 182 |
+
For Text datasets, with RETRIEVE(and baselines like RANDOM, GRADMATCH and CRAIG), we set the hyperparameter values following the work [41]. Similarly, for the robust SSL baselines, we use the settings from the corresponding papers [17]. For all our experiments using image datasets, we use a batch size of 50 for labeled and unlabeled sets. Next, we discuss the specific settings for the traditional SSL scenario. For CIFAR10, we train the model for 500 epochs, and for SVHN, we train the model for 340 epochs on an unlabeled set. Note that we mention the epochs here because the number of iterations depends on the size of the unlabeled sets since that would determine the number of mini-batches. For a fair comparison, we train all algorithms for a fixed number of epochs. Next, we look at robust SSL for OOD. In this scenario, we consider the presence of OOD in the unlabeled set. We introduce OOD into CIFAR-10 following [44], by adapting it to a 6-class dataset, with 400 labels per class (from the 6 animal classes) as ID and rest of the classes as OOD (ID classes are: "bird", "cat", "deer", "dog", "frog", "horse", and OOD data are from classes: "airline", "automobile", "ship", "truck"). Similarly, we adapt MNIST [32] to a 6-class dataset, with classes 1-6 as ID and classes 7-10 as OOD. We denote the OOD rat $\scriptstyle \mathrm { i o } = { \mathcal { U } } _ { o o d } / ( { \mathcal { U } } _ { o o d } + { \mathcal { U } } _ { i n } )$ where $\mathcal { U } _ { i n }$ is ID unlabeled set, $\mathcal { U } _ { o o d }$ is OOD unlabeled set. For CIFAR10, we use a labeled set of 2400 instances and an unlabeled set of 20000 instances, and for MNIST, we use a labeled set of 60 instances and an unlabeled set of 30000 instances. Finally, for robust SSL for class imbalance, we consider imbalance both in the labeled set and unlabeled set. We introduce imbalance into the CIFAR-10 dataset by considering classes 1-5 as imbalanced classes and a class imbalance ratio. The class imbalance ratio is defined as the ratio of instances from classes 1-5 and the number of instances from classes 6-10. For CIFAR-10, we use a labeled set of 2400 and an unlabeled set of 20000 instances.
|
| 183 |
+
|
| 184 |
+
Traditional SSL Results: The results comparing the accuracyefficiency tradeoff between the different subset selection approaches are shown in Figure 4. We compare the performance for different subset sizes of the unlabeled data: $10 \%$ , $20 \%$ , and $30 \%$ and three representative SSL algorithms VAT, Mean-Teacher, and FixMatch. For warm-start, we set kappa value to $\kappa \ : \ : = \ : \ : 0 . 5$ (i.e., training for $50 \%$ epochs on the entire unlabeled set and $50 \%$ using coresets). Our experiments use a $R$ value of 20 (i.e., coreset selection every 20 epochs). Sub-figures(4a, 4b, 4d, 4e,
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 6: A comparison of RETRIEVE with baselines (RANDOM, CRAIG, GRADMATCH, FULL, and FULLEARLYSTOP in the traditional SSL setting for text datasets. SpeedUp vs Accuracy Degradation, both compared to SSL for (a) VAT on $30 \%$ IMDB, (b) VAT on $30 \%$ ELEC.
|
| 188 |
+
|
| 189 |
+
4c) shows the plots of relative error vs speedup, both w.r.t full training (i.e., original SSL algorithm). Sub-figure 4f shows the plot of relative error vs CO2 emissions efficiency, both w.r.t full training. CO2 emissions were estimated based on the total compute time using the Machine Learning Impact calculator presented in [29]. From the results, it is evident that RETRIEVE achieved the best speedup vs. accuracy tradeoff and is environmentally friendly based on CO2 emissions compared to other baselines (including CRAIG and FULLEARLYSTOP). In particular, RETRIEVE achieves speedup gains of $2 . 7 \mathbf { x }$ and $4 . 4 \times$ with a performance loss of $0 . 7 \%$ and $0 . 3 \%$ using VAT on CIFAR10 and SVHN datasets. Further, RETRIEVE achieves speedup gains of $2 . 9 \mathbf { x }$ , $3 . 2 \mathrm { x }$ with a performance loss of $0 . 0 2 \%$ and $0 . 5 \%$ using Mean-Teacher on CIFAR10 and SVHN datasets. Additionally, RETRIEVE achieves a speedup of $3 . 8 \mathrm { x }$ with a performance loss of $0 . 7 \%$ using FixMatch on the CIFAR10 dataset. Sub-figures(6a, 6b) shows the plots of relative error vs speedup both w.r.t full training (i.e., original SSL algorithm) on IMDB and ELEC datasets for $30 \%$ subset size. In particular, RETRIEVE achieves speedup gains of $2 . 6 8 \mathrm { x }$ and $2 . 5 \mathrm { x }$ with a performance loss of $0 . 5 \%$ and $0 . 6 \%$ for $30 \%$ subset of IMDB and ELEC datasets. Figure 5 shows the results comparing the BAYESIANCORESET method [6], adapted to the SSL setting with RETRIEVE using the VAT algorithm for $20 \%$ and $30 \%$ CIFAR10 subsets. The results show that RETRIEVE achieves better performance than the SSL extension of the BAYESIANCORESET selection method in terms of model performance and speedup. One possible explanation for it is that the BAYESIANCORESET approach was not developed for efficient learning but instead was developed to capture coresets that try to represent the log-likelihood of the entire dataset that MCMC methods can further use. We would also like to point out that we used the original code implementation of BAYESIANCORESET that is not meant for GPU usage in our experiments. Hence the speedups of the BAYESIANCORESET approach can be further improved with efficient code implementation. Subfigure 4h shows that RETRIEVE achieves faster convergence compared to all other methods on CIFAR10 for $30 \%$ subset with Mean-Teacher. Subfigure $4 \mathrm { g }$ shows the extended convergence of RETRIEVE on CIFAR10 for $20 \%$ and $30 \%$ subsets using VAT, where the RETRIEVE is allowed to train for larger epochs to achieve comparable accuracy with Full training at the cost of losing some efficiency. Note that the points marked by \* in subfigure $4 \mathrm { g }$ denote the actual training endpoint, i.e. the usual number of epochs/iterations used to obtain points in subfigures (4a, 4b, 4d, 4e, 4c). We observe that RETRIEVE matches the performance of VAT while being close to $2 \times$ faster in running times (and correspondingly energy efficiency). We repeat this experiment with MT in the Appendix G. Also, more detailed results with additional convergence plots and tradeoff curves are in Appendix G.
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 7: Subfigures (a) to (c) compare the performance of RETRIEVE with baselines (including DS3L and L2RW) for different OOD ratios (a,b) and imbalance ratios (c). We see that RETRIEVE outperforms both baselines in most of the cases. Furthermore, RETRIEVE achieves this while being close to $2 \times$ faster than VAT (the SSL algorithm) and $5 \times$ faster than the robust SSL algorithms (DS3L and L2RW).
|
| 193 |
+
|
| 194 |
+
Robust SSL Results: We test the performance of RETRIEVE on CIFAR10 and MNIST datasets with OOD in the unlabeled set and CIFAR10 dataset with the class imbalance in both labeled and unlabeled sets. sub-figures 7a, 7b shows the accuracy plots of RETRIEVE for different OOD ratios of $2 5 \%$ , $50 \%$ and $7 5 \%$ . The results show that RETRIEVE with VAT outperforms all other baselines, including DS3L [17], a state-of-the-art robust SSL baseline in the OOD scenario. Next, sub-figure 7c shows the accuracy plots of RETRIEVE for different class imbalance ratios of $10 \%$ , $30 \%$ and $50 \%$ on CIFAR10 dataset. The results show that RETRIEVE with VAT outperforms all other baselines, including DS3L [17] (also run with VAT) in the class imbalance scenario as well. In particular, RETRIEVE outperforms other baselines by at least $1 . 5 \%$ on the CIFAR-10 with imbalance. Sub-figure 7d shows the time taken by different algorithms on the CIFAR10 dataset with a $50 \%$ class imbalance ratio. The results show that CRUST did not perform well in terms of accuracy and speedups achieved compared to RETRIEVE. Except for MixUP, CRUST is similar to CRAIG, which did not perform well compared to RETRIEVE in a traditional SSL setting. Furthermore, the performance gain due to MixUP for coreset selection in the SSL setting is minimal. The minimal gain can be attributed to the fact that the hypothesized labels used for MixUP in the earlier stages of training are noisy. Furthermore, as stated earlier, CRUST was developed to tackle noisy labels in a supervised learning setting and is not developed to deal with OOD or Class Imbalance in general. The results show that RETRIEVE is more efficient compared to the other baselines. In particular, RETRIEVE is $5 \mathbf { x }$ times faster compared to DS3L method. Other detailed results (tradeoff curves and convergence curves) are in Appendix $_ \mathrm { H }$ .
|
| 195 |
+
|
| 196 |
+
# 5 Conclusion and Broader Impacts
|
| 197 |
+
|
| 198 |
+
We introduce RETRIEVE, a discrete-continuous bi-level optimization based coreset selection method for efficient and robust semi-supervised learning. We show connections with weak-submodularity, which enables the coreset selection in RETRIEVE to be solved using a scalable stochastic greedy algorithm. Empirically, we show that RETRIEVE is very effective for SSL. In particular, it achieves $3 \times$ speedup on a range of SSL approaches like VAT, MT, and FixMatch with around $0 . 7 \%$ accuracy loss and a $2 \times$ speedup with no accuracy loss. In the case of robust SSL with imbalance and OOD data, RETRIEVE outperforms existing SOTA methods while being $5 \times$ faster. We believe RETRIEVE has a significant positive societal impact by making SSL algorithms (specifically robust SSL) significantly faster and more energy-efficient, thereby reducing the CO2 emissions incurred during training.
|
| 199 |
+
|
| 200 |
+
# 6 Acknowledgments and Disclosure of Funding
|
| 201 |
+
|
| 202 |
+
We would like to thank NeurIPS area chairs and anonymous reviewers for their efforts in reviewing this paper and their constructive comments! RI and KK were funded by the National Science Foundation(NSF) under Grant Number 2106937, a startup grant from UT Dallas, and a Google and Adobe research award. FC and XZ were funded by National Science Foundation(NSF) under Grant Numbers 1815696, 1750911, and 2107449. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation, Google or Adobe.
|
| 203 |
+
|
| 204 |
+
# References
|
| 205 |
+
|
| 206 |
+
[1] M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, M. Devin, S. Ghemawat, G. Irving, M. Isard, M. Kudlur, J. Levenberg, R. Monga, S. Moore, D. G. Murray, B. Steiner, P. Tucker, V. Vasudevan, P. Warden, M. Wicke, Y. Yu, and X. Zheng. Tensorflow: A system for largescale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pages 265–283, 2016.
|
| 207 |
+
[2] J. T. Ash, C. Zhang, A. Krishnamurthy, J. Langford, and A. Agarwal. Deep batch active learning by diverse, uncertain gradient lower bounds. In International Conference on Learning Representations, 2020.
|
| 208 |
+
[3] M. Belkin and P. Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In Proceedings of the 14th International Conference on Neural Information Processing Systems: Natural and Synthetic, NIPS’01, page 585–591, Cambridge, MA, USA, 2001. MIT Press.
|
| 209 |
+
[4] D. Berthelot, N. Carlini, I. Goodfellow, N. Papernot, A. Oliver, and C. Raffel. Mixmatch: A holistic approach to semi-supervised learning, 2019.
|
| 210 |
+
[5] O. Bojar, R. Chatterjee, C. Federmann, M. Fishel, Y. Graham, B. Haddow, M. Huck, A. JimenoYepes, P. Koehn, A. Martins, C. Monz, M. Negri, A. Névéol, M. L. Neves, M. Post, M. Turchi, and K. Verspoor, editors. Proceedings of the Fourth Conference on Machine Translation, WMT 2019, Florence, Italy, August 1-2, 2019 - Volume 1: Research Papers. Association for Computational Linguistics, 2019.
|
| 211 |
+
[6] T. Campbell and T. Broderick. Bayesian coreset construction via greedy iterative geodesic ascent. In J. Dy and A. Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 698–706. PMLR, 10–15 Jul 2018.
|
| 212 |
+
[7] O. Chapelle, B. Schlkopf, and A. Zien. Semi-Supervised Learning. The MIT Press, 1st edition, 2010.
|
| 213 |
+
[8] K. Chen, L. Yao, D. Zhang, X. Chang, G. Long, and S. Wang. Distributionally robust semisupervised learning for people-centric sensing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3321–3328, 2019.
|
| 214 |
+
[9] Y. Chen, X. Zhu, W. Li, and S. Gong. Semi-supervised learning under class distribution mismatch. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04):3569–3576, Apr. 2020.
|
| 215 |
+
[10] D. Cire¸san, U. Meier, and J. Schmidhuber. Multi-column deep neural networks for image classification, 2012.
|
| 216 |
+
[11] A. Coates and A. Y. Ng. The importance of encoding versus training with sparse coding and vector quantization. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, page 921–928, Madison, WI, USA, 2011. Omnipress.
|
| 217 |
+
[12] A. Das and D. Kempe. Submodular meets spectral: Greedy algorithms for subset selection, sparse approximation and dictionary selection. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, page 1057–1064, Madison, WI, USA, 2011. Omnipress.
|
| 218 |
+
[13] D. Feldman. Core-sets: Updated survey. In Sampling Techniques for Supervised or Unsupervised Tasks, pages 23–44. Springer, 2020.
|
| 219 |
+
[14] C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135. PMLR, 2017.
|
| 220 |
+
[15] K. Gatmiry and M. Gomez-Rodriguez. On the network visibility problem. CoRR, abs/1811.07863, 2018.
|
| 221 |
+
[16] D. Golovin, B. Solnik, S. Moitra, G. Kochanski, J. E. Karro, and D. Sculley, editors. Google Vizier: A Service for Black-Box Optimization, 2017.
|
| 222 |
+
[17] L.-Z. Guo, Z.-Y. Zhang, Y. Jiang, Y.-F. Li, and Z.-H. Zhou. Safe deep semi-supervised learning for unseen-class unlabeled data. In H. D. III and A. Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3897–3906. PMLR, 13–18 Jul 2020.
|
| 223 |
+
[18] J. R. Hershey, S. J. Rennie, P. A. Olsen, and T. T. Kristjansson. Super-human multi-talker speech recognition: A graphical modeling approach. Comput. Speech Lang., 24(1):45–66, Jan. 2010.
|
| 224 |
+
[19] G. E. Hinton and R. R. Salakhutdinov. Using deep belief nets to learn covariance kernels for gaussian processes. In J. Platt, D. Koller, Y. Singer, and S. Roweis, editors, Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2008.
|
| 225 |
+
[20] R. Johnson and T. Zhang. Semi-supervised convolutional neural networks for text categorization via region embedding. Advances in neural information processing systems, 28:919–927, 2015.
|
| 226 |
+
[21] V. Kaushal, R. Iyer, S. Kothawade, R. Mahadev, K. Doctor, and G. Ramakrishnan. Learning from less data: A unified data subset selection and active learning framework for computer vision. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1289–1299. IEEE, 2019.
|
| 227 |
+
[22] R. Khanna, E. Elenberg, A. Dimakis, S. Negahban, and J. Ghosh. Scalable greedy feature selection via weak submodularity. In Artificial Intelligence and Statistics, pages 1560–1568. PMLR, 2017.
|
| 228 |
+
[23] K. Killamsetty, D. Sivasubramanian, B. Mirzasoleiman, G. Ramakrishnan, A. De, and R. Iyer. Grad-match: A gradient matching based data subset selection for efficient learning, 2021.
|
| 229 |
+
[24] K. Killamsetty, D. Sivasubramanian, G. Ramakrishnan, and R. Iyer. Glister: Generalization based data subset selection for efficient and robust learning, 2021.
|
| 230 |
+
[25] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 231 |
+
[26] D. P. Kingma, S. Mohamed, D. Jimenez Rezende, and M. Welling. Semi-supervised learning with deep generative models. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014.
|
| 232 |
+
[27] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 233 |
+
[28] A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 234 |
+
[29] A. Lacoste, A. Luccioni, V. Schmidt, and T. Dandres. Quantifying the carbon emissions of machine learning. arXiv preprint arXiv:1910.09700, 2019.
|
| 235 |
+
[30] B. Lakshminarayanan, A. Pritzel, and C. Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
|
| 236 |
+
[31] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541–551, 1989.
|
| 237 |
+
[32] Y. LeCun and C. Cortes. MNIST handwritten digit database. 2010.
|
| 238 |
+
[33] B. Liu, Z. Wu, H. Hu, and S. Lin. Deep metric transfer for label propagation with limited annotated data, 2019.
|
| 239 |
+
[34] Y. Liu, R. Iyer, K. Kirchhoff, and J. Bilmes. SVitchboard II and FiSVer I: High-quality limitedcomplexity corpora of conversational English speech. In Sixteenth Annual Conference of the International Speech Communication Association, 2015.
|
| 240 |
+
[35] I. Loshchilov and F. Hutter. SGDR: stochastic gradient descent with restarts. CoRR, abs/1608.03983, 2016.
|
| 241 |
+
[36] A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142–150, Portland, Oregon, USA, June 2011. Association for Computational Linguistics.
|
| 242 |
+
[37] M. Minoux. Accelerated greedy algorithms for maximizing submodular set functions. In Optimization techniques, pages 234–243. Springer, 1978.
|
| 243 |
+
[38] B. Mirzasoleiman, A. Badanidiyuru, A. Karbasi, J. Vondrák, and A. Krause. Lazier than lazy greedy. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, AAAI’15, page 1812–1818. AAAI Press, 2015.
|
| 244 |
+
[39] B. Mirzasoleiman, J. Bilmes, and J. Leskovec. Coresets for data-efficient training of machine learning models, 2020.
|
| 245 |
+
[40] B. Mirzasoleiman, K. Cao, and J. Leskovec. Coresets for robust training of deep neural networks against noisy labels. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 11465–11477. Curran Associates, Inc., 2020.
|
| 246 |
+
[41] T. Miyato, A. M. Dai, and I. J. Goodfellow. Adversarial training methods for semi-supervised text classification. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
|
| 247 |
+
[42] T. Miyato, S. ichi Maeda, M. Koyama, and S. Ishii. Virtual adversarial training: A regularization method for supervised and semi-supervised learning, 2018.
|
| 248 |
+
[43] Y. Netzer, T. Wang, A. Coates, A. Bissacco, B. Wu, and A. Y. Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 249 |
+
[44] A. Oliver, A. Odena, C. Raffel, E. D. Cubuk, and I. J. Goodfellow. Realistic evaluation of deep semi-supervised learning algorithms, 2019.
|
| 250 |
+
[45] OpenAI, :, C. Berner, G. Brockman, B. Chan, V. Cheung, P. D˛ebiak, C. Dennison, D. Farhi, Q. Fischer, S. Hashme, C. Hesse, R. Józefowicz, S. Gray, C. Olsson, J. Pachocki, M. Petrov, H. P. d. O. Pinto, J. Raiman, T. Salimans, J. Schlatter, J. Schneider, S. Sidor, I. Sutskever, J. Tang, F. Wolski, and S. Zhang. Dota 2 with large scale deep reinforcement learning, 2019.
|
| 251 |
+
[46] A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer. Automatic differentiation in pytorch. 2017.
|
| 252 |
+
[47] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019.
|
| 253 |
+
[48] Y. Pu, Z. Gan, R. Henao, X. Yuan, C. Li, A. Stevens, and L. Carin. Variational autoencoder for deep learning of images, labels and captions. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016.
|
| 254 |
+
[49] M. Ren, W. Zeng, B. Yang, and R. Urtasun. Learning to reweight examples for robust deep learning. In International Conference on Machine Learning, pages 4334–4343. PMLR, 2018.
|
| 255 |
+
[50] T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, X. Chen, and X. Chen. Improved techniques for training gans. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016.
|
| 256 |
+
[51] O. Sener and S. Savarese. Active learning for convolutional neural networks: A core-set approach. In International Conference on Learning Representations, 2018.
|
| 257 |
+
[52] J. Shu, Q. Xie, L. Yi, Q. Zhao, S. Zhou, Z. Xu, and D. Meng. Meta-weight-net: Learning an explicit mapping for sample weighting. In Advances in Neural Information Processing Systems, 2019.
|
| 258 |
+
[53] K. Sohn, D. Berthelot, C.-L. Li, Z. Zhang, N. Carlini, E. D. Cubuk, A. Kurakin, H. Zhang, and C. Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence, 2020.
|
| 259 |
+
[54] E. Strubell, A. Ganesh, and A. McCallum. Energy and policy considerations for deep learning in nlp, 2019.
|
| 260 |
+
[55] C. Sun, A. Shrivastava, S. Singh, and A. Gupta. Revisiting unreasonable effectiveness of data in deep learning era, 2017.
|
| 261 |
+
[56] A. Tarvainen and H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results, 2018.
|
| 262 |
+
[57] K. Wei, R. Iyer, and J. Bilmes. Submodularity in data subset selection and active learning. In International Conference on Machine Learning, pages 1954–1963, 2015.
|
| 263 |
+
[58] K. Wei, Y. Liu, K. Kirchhoff, C. Bartels, and J. Bilmes. Submodular subset selection for large-scale speech training data. In 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3311–3315. IEEE, 2014.
|
| 264 |
+
[59] Y. Yan, Z. Xu, I. W. Tsang, G. Long, and Y. Yang. Robust semi-supervised learning through label aggregation. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 265 |
+
[60] S. Zagoruyko and N. Komodakis. Wide residual networks, 2017.
|
| 266 |
+
[61] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond empirical risk minimization, 2018.
|
| 267 |
+
[62] X. Zhu, Z. Ghahramani, and J. Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the Twentieth International Conference on International Conference on Machine Learning, ICML’03, page 912–919. AAAI Press, 2003.
|
parse/train/jSz59N8NvUP/jSz59N8NvUP_content_list.json
ADDED
|
@@ -0,0 +1,1085 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "RETRIEVE: Coreset Selection for Efficient and Robust Semi-Supervised Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
218,
|
| 8 |
+
122,
|
| 9 |
+
781,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Krishnateja Killamsetty Xujiang Zhao Feng Chen Rishabh Iyer ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
254,
|
| 19 |
+
226,
|
| 20 |
+
746,
|
| 21 |
+
241
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Department of Computer Science The University of Texas at Dallas Richardson, Texas, USA ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
388,
|
| 30 |
+
242,
|
| 31 |
+
611,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{krishnateja.killamsetty,xujiang.zhao,feng.chen,rishabh.iyer}@utdallas.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
187,
|
| 41 |
+
282,
|
| 42 |
+
815,
|
| 43 |
+
296
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
462,
|
| 53 |
+
330,
|
| 54 |
+
535,
|
| 55 |
+
348
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Semi-supervised learning (SSL) algorithms have had great success in recent years in limited labeled data regimes. However, the current state-of-the-art SSL algorithms are computationally expensive and entail significant compute time and energy requirements. This can prove to be a huge limitation for many smaller companies and academic groups. Our main insight is that training on a subset of unlabeled data instead of entire unlabeled data enables the current SSL algorithms to converge faster, significantly reducing computational costs. In this work, we propose RETRIEVE1, a coreset selection framework for efficient and robust semi-supervised learning. RETRIEVE selects the coreset by solving a mixed discrete-continuous bi-level optimization problem such that the selected coreset minimizes the labeled set loss. We use a one-step gradient approximation and show that the discrete optimization problem is approximately submodular, enabling simple greedy algorithms to obtain the coreset. We empirically demonstrate on several real-world datasets that existing SSL algorithms like VAT, Mean-Teacher, FixMatch, when used with RETRIEVE, achieve a) faster training times, b) better performance when unlabeled data consists of Out-of-Distribution (OOD) data and imbalance. More specifically, we show that with minimal accuracy degradation, RETRIEVE achieves a speedup of around $3 \\times$ in the traditional SSL setting and achieves a speedup of $5 \\times$ compared to state-of-the-art (SOTA) robust SSL algorithms in the case of imbalance and OOD data. RETRIEVE is available as a part of the CORDS toolkit: https://github.com/decile-team/cords. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
364,
|
| 65 |
+
766,
|
| 66 |
+
654
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
684,
|
| 77 |
+
310,
|
| 78 |
+
700
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Deep learning algorithms have had great success over the past few years, often achieving human or superhuman performance in various tasks like computer vision [10], speech recognition [18], natural language processing [5], and video games [45]. One of the significant factors attributing to the recent success of deep learning is the availability of large amounts of labeled data [55]. However, creating large labeled datasets is often time-consuming and expensive in terms of costs. Moreover, some domains like medical imaging require a domain expert for labeling, making it nearly impossible to create a large labeled set. In order to reduce the dependency on the availability of labeled data, semi-supervised learning (SSL) algorithms [7] were proposed to train models using large amounts of unlabeled data along with the available labeled data. Recent works [42, 56, 4, 53] show that semi-supervised learning algorithms can achieve similar performance to standard supervised learning using significantly fewer labeled data instances. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
717,
|
| 88 |
+
825,
|
| 89 |
+
868
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "However, the current SOTA SSL algorithms are compute-intensive with large training times. For example, from our personal experience, training a WideResNet model [60] on a CIFAR10 [27] dataset with 4000 labels using the SOTA FixMatch algorithm [53] for 500000 iterations takes around four days on a single RTX2080Ti GPU. This also implies increased energy consumption and an associated carbon footprint [54]. Furthermore, it is common to tune these ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
92,
|
| 99 |
+
421,
|
| 100 |
+
270
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/36462717557b89b7bb6548f8dd3c22326ea43e9cf8bb2619d18e303e29ba37f0.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: (a )Unlabeled set with the same distribution as the labeled set, (b) Unlabeled set containing OOD instances, (c) Unlabeled set where the class distribution is imbalanced "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
450,
|
| 113 |
+
93,
|
| 114 |
+
805,
|
| 115 |
+
194
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "SSL algorithms over a large set of hyper-parameters, which means that the training needs to be done hundreds and sometimes thousands of times. For example, [44] performed hyperparameter tuning by running 1000 trails of Gaussian Process-based Blackbox optimization[16] for each SSL algorithm (which runs for 500000 iterations). This process implies significantly higher experimental turnaround times, energy consumption, and CO2 emissions. Furthermore, this is not something that can be done at most universities and smaller companies. The first problem we try to address in this work is: Can we efficiently train a semi-supervised learning model on coresets of unlabeled data to achieve faster convergence and reduction in training time? ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
271,
|
| 125 |
+
825,
|
| 126 |
+
381
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Despite demonstrating encouraging results on standard and clean datasets, current SSL algorithms perform poorly when OOD data or class imbalance is present in the unlabeled set [44, 8]. This performance degradation can be attributed to the fact that the current SSL algorithms assume that both the labeled set and unlabeled set are sampled from the same distribution. A visualization of OOD data and class imbalance in the unlabeled set is shown in Figure 1. Several recent works [59, 8, 17] were proposed to mitigate the effect of OOD in unlabeled data, in turn improving the performance of SSL algorithms. However, the current SOTA robust SSL method [17] is 3X slower than the standard SSL algorithms, further increasing the training times, energy costs, and CO2 emissions. The second problem we try to address in this work is: In the case where OOD data or class imbalance exists in the unlabeled set, can we robustly train an SSL model on coresets of unlabeled data to achieve similar performance to existing robust SSL methods while being significantly faster? ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
173,
|
| 135 |
+
387,
|
| 136 |
+
825,
|
| 137 |
+
540
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "image",
|
| 143 |
+
"img_path": "images/01b3a40f43eb0a3156bdfa79e1d96e28aaf5c27fd312154845a27f5978e4f461.jpg",
|
| 144 |
+
"image_caption": [
|
| 145 |
+
"Figure 2: Comparison of RETRIEVE with VAT, FixMatch, and MT on CIFAR-10 and SVHN: We contrast the accuracy degradation with speedup compared to the base SSL or robust SSL (DS3L) approach. We observe speedups of $3 \\times$ in standard SSL case with $0 . 7 \\%$ accuracy drop and $2 \\times$ speedup with no accuracy drop. In the robust SSL case, we observe $5 \\times$ speedup compared to DS3L [17] while outperforming it in terms of accuracy. "
|
| 146 |
+
],
|
| 147 |
+
"image_footnote": [],
|
| 148 |
+
"bbox": [
|
| 149 |
+
189,
|
| 150 |
+
575,
|
| 151 |
+
808,
|
| 152 |
+
727
|
| 153 |
+
],
|
| 154 |
+
"page_idx": 1
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"type": "text",
|
| 158 |
+
"text": "To this end, we propose RETRIEVE, a coreset selection framework that enables faster convergence and robust training of SSL algorithms. RETRIEVE selects coreset of the unlabeled data resulting in minimum labeled set loss when trained upon in a semi-supervised manner. Intuitively, RETRIEVE tries to achieve faster convergence by selecting data instances from the unlabeled set whose gradients are aligned with the labeled set gradients. Furthermore, RETRIEVE also achieves distribution matching by selecting a coreset from the unlabeled set with similar gradients to the labeled set. ",
|
| 159 |
+
"bbox": [
|
| 160 |
+
174,
|
| 161 |
+
827,
|
| 162 |
+
825,
|
| 163 |
+
911
|
| 164 |
+
],
|
| 165 |
+
"page_idx": 1
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"type": "text",
|
| 169 |
+
"text": "1.1 Our Contributions ",
|
| 170 |
+
"text_level": 1,
|
| 171 |
+
"bbox": [
|
| 172 |
+
174,
|
| 173 |
+
92,
|
| 174 |
+
343,
|
| 175 |
+
106
|
| 176 |
+
],
|
| 177 |
+
"page_idx": 2
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "text",
|
| 181 |
+
"text": "The contributions are our work can be summarized as follows: ",
|
| 182 |
+
"bbox": [
|
| 183 |
+
173,
|
| 184 |
+
117,
|
| 185 |
+
581,
|
| 186 |
+
132
|
| 187 |
+
],
|
| 188 |
+
"page_idx": 2
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "text",
|
| 192 |
+
"text": "• RETRIEVE Framework: We propose a coreset selection algorithm RETRIEVE for efficient and robust semi-supervised learning. RETRIEVE poses the coreset selection as a discrete-continuous bi-level optimization problem and solves it efficiently using an online approximation of single-step gradient updates. Essentially, RETRIEVE selects a coreset of the unlabeled set, which, when trained using the combination of the labeled set and the specific unlabeled data coreset, minimizes the model loss on the labeled dataset. We also discuss several implementation tricks to speed up the coreset selection step significantly $\\cdot { c . f . }$ , Section 3.3, Section 3.4) ",
|
| 193 |
+
"bbox": [
|
| 194 |
+
174,
|
| 195 |
+
143,
|
| 196 |
+
825,
|
| 197 |
+
241
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 2
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "• RETRIEVE in Traditional SSL: We empirically demonstrate the effectiveness of RETRIEVE in conjunction with several SOTA SSL algorithms like VAT, Mean-Teacher, and FixMatch. The speedups obtained by RETRIEVE are shown in Figure 2a. Specifically, we see that RETRIEVE consistently achieves close to $3 \\times$ speedup with accuracy degradation of around $0 . 7 \\%$ . RETRIEVE also achieves more than $4 . 2 \\times$ speedup with a slightly higher accuracy degradation. Furthermore, when RETRIEVE is trained for more iterations, RETRIEVE can match the performance of VAT while having a $2 \\times$ speedup (see VAT Extended bar plot in Figure 2a). RETRIEVE also consistently outperforms simple baselines like early stopping and random sampling. ",
|
| 204 |
+
"bbox": [
|
| 205 |
+
174,
|
| 206 |
+
246,
|
| 207 |
+
825,
|
| 208 |
+
358
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 2
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "• RETRIEVE in Robust SSL: We further demonstrate the utility of RETRIEVE for robust SSL in the presence of OOD data and imbalance in the unlabeled set. We observe that with the VAT SSL algorithm, RETRIEVE outperforms SOTA robust SSL method DS3L [17] (with VAT) while being around $5 \\times$ faster. RETRIEVE also significantly outperforms just VAT and random sampling. ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
363,
|
| 218 |
+
825,
|
| 219 |
+
419
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "1.2 Related Work ",
|
| 226 |
+
"text_level": 1,
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
436,
|
| 230 |
+
310,
|
| 231 |
+
450
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "Semi-supervised learning: Several papers have been proposed for semi-supervised learning over the past few years. Due to space constraints, we do not talk about generative [50, 48, 26, 11, 19, 30, 3] and graph-based [62, 33] methods for SSL in this work. We instead focus on the main components of the existing SOTA SSL algorithms, viz., a) consistency regularization and b) entropy minimization. The consistency regularization component forces the model to have consistent prediction given an unlabeled data point and its perturbed (or augmented) version. The Entropy-minimization component forces the model instances to have low-entropy predictions on unlabeled data instances to ensure that the classes are well separated. One can achieve entropy minimization by directly adding the entropy loss component on the unlabeled class prediction or using methods like Pseudo-Labeling to enforce it implicitly. Mean-Teacher [56] approach uses a consistency regularization component that forces the predictions of the exponential moving average of the model to be the same as the model prediction of the augmented unlabeled images. VAT [42] instead computes the perturbation of the unlabeled data point that changes the prediction distribution the most and enforces the model to have the same prediction on both unlabeled data instance and unlabeled data instance with computed perturbation as a form of consistency regularization. MixMatch [4] uses $K$ standard image augmentations for consistency regularization and enforces entropy minimization by using a sharpening function on the average predicted distribution of $K$ augmentations of unlabeled data instances. FixMatch [53] induces consistency regularization by forcing the model to have the same prediction on a weakly augmented and strongly augmented image instance. Furthermore, FixMatch [53] also employs confidence thresholding to mask unlabeled data instances on which the model’s prediction confidence is below a threshold from being used in consistency loss. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
462,
|
| 241 |
+
825,
|
| 242 |
+
752
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "Robust Semi-supervised learning: Several methods have been proposed to make the existing semi-supervised learning algorithms robust to label noise in labeled data and robust to OOD data in the unlabeled set. A popular approach [49, 52] to deal with label noises and class imbalance in a supervised learning setting is by reweighing each data instance and jointly learning these weights along with the model parameters. Safe-SSL (DS3L) [17] is a recently proposed SOTA method for robust SSL learning. DS3L is similar to the reweighting in the supervised case and adopts a reweighting approach to deal with OOD data in the unlabeled set. Safe-SSL uses a neural network to predict the weight parameters of unlabeled instances that result in maximum labeled set performance, making it a bi-level optimization problem. In this regard, both RETRIEVE and Safe-SSL approach solves a bi-level optimization problem, except that RETRIEVE solves a discrete optimization problem at the outer level, thereby enabling significant speedup compared to SSL algorithms and an even more considerable speedup compared to safe-SSL (which itself is $3 \\times$ slower than SSL algorithms). In contrast to safe-SSL and other robust SSL approaches, RETRIEVE achieves both efficiency and robustness. Other approaches for robust SSL include UASD [9] uses an Uncertainty aware self-distillation with OOD filtering to achieve robust performance and a distributionally robust model to deal with OOD [8]. ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
758,
|
| 252 |
+
825,
|
| 253 |
+
911
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "image",
|
| 259 |
+
"img_path": "images/8f612b06fefb8df68ce87a482eaf42ad80ea1b7a73259a95f98cd09315cd54be.jpg",
|
| 260 |
+
"image_caption": [
|
| 261 |
+
"Figure 3: Flowchart of RETRIEVE framework, where coreset selection is performed every $R$ epochs and the model is trained on the selected coreset. "
|
| 262 |
+
],
|
| 263 |
+
"image_footnote": [],
|
| 264 |
+
"bbox": [
|
| 265 |
+
194,
|
| 266 |
+
88,
|
| 267 |
+
807,
|
| 268 |
+
150
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 3
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "",
|
| 275 |
+
"bbox": [
|
| 276 |
+
174,
|
| 277 |
+
222,
|
| 278 |
+
825,
|
| 279 |
+
279
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "Coreset and subset selection methods: Coresets [13] are small and informative weighted data subsets that approximate original data. Several works [57, 39, 24, 23] have studied coresets for efficient training of deep learning models in the supervised learning scenarios. CRAIG [39] selects representative coresets of the training data that closely estimates the full training gradient. Another approach, GLISTER [24] posed the coreset selection as optimizing the validation set loss for efficient learning focused on generalization. Another approach, GRAD-MATCH [23] select subsets that approximately match the full training loss or validation loss gradient using orthogonal matching pursuit. Similarly, coreset selection methods [57, 51, 2, 24] were also used for active learning scenario, where a subset of data instances from the unlabeled set is selected to be labeled. Finally, several recent works have used submodular functions for finding diverse and representative subsets for data subset selection [34, 21, 57, 58]. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
285,
|
| 289 |
+
825,
|
| 290 |
+
438
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "2 Preliminaries ",
|
| 297 |
+
"text_level": 1,
|
| 298 |
+
"bbox": [
|
| 299 |
+
174,
|
| 300 |
+
457,
|
| 301 |
+
318,
|
| 302 |
+
474
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "Notation: Denote to be the unlabele $\\mathcal { D } = \\{ x _ { i } , y _ { i } \\} _ { i = 1 } ^ { n }$ to be the la points. Let eled set with be the class $n$ labeled data points, aer model parameters, $\\mathcal { U } = \\{ x _ { j } \\} _ { j = 1 } ^ { m }$ $m$ $\\theta$ $l _ { s }$ set loss function (such as cross-entropy loss) and $l _ { u }$ be the unlabeled set loss, e.g. consistencyregularization loss, entropy loss, etc.. Denote $L _ { S } ( \\mathcal D , \\theta ) = \\sum _ { i \\in \\mathcal D } l _ { s } ( \\theta , x _ { i } , y _ { i } )$ and $\\bar { L } _ { U } ( \\mathcal { U } , \\theta , m ) \\stackrel { \\cdot } { = }$ $\\sum _ { j \\in \\mathcal { U } } m _ { i } l _ { u } ( x _ { j } , \\theta )$ where $m \\in \\{ 0 , 1 \\} ^ { m }$ is the binary mask vector for unlabeled set. For notational convenience, we denote $l _ { s i } ( \\theta ) = l _ { s } ( x _ { i } , y _ { i } , \\theta )$ and denote $l _ { u j } ( \\theta ) = l _ { u } ( x _ { j } , \\theta )$ . ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
488,
|
| 312 |
+
826,
|
| 313 |
+
595
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Semi-supervised loss: Following the above notations, the loss function for many existing SSL algorithms can be written as $L _ { S } ( \\bar { D } , \\theta ) + \\lambda L _ { U } ( \\mathcal { U } , \\theta , m )$ , where $\\lambda$ is the regularization coefficient for the unlabeled set loss. For Mean Teacher [56], VAT[42], MixMatch [4], the mask vector $_ { \\mathbf { \\nabla } } \\mathbf { m }$ is made up entirely of ones, whereas for FixMatch [53], $_ { m }$ is confidence-thresholded binary vector, indicating whether to include an unlabeled data instance or not. Usually, $L _ { S }$ is a cross-entropy loss for classification experiments and squared loss for regression experiments. A detailed formulation of the loss function $L _ { U }$ used in different SSL algorithms is given in Appendix C ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
173,
|
| 322 |
+
599,
|
| 323 |
+
825,
|
| 324 |
+
698
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Robust Semi-supervised loss: However, for robust semi-supervised loss, the mask vector $_ { m }$ is replaced with a weight vector ${ \\pmb w } \\in \\mathbb { R } ^ { m }$ denoting the contribution of data instances in the unlabeled set. The weight vector $\\pmb { w }$ is unknown and needs to be learned. The weighted SSL loss is: $L _ { S } ( \\mathcal { D } , \\theta ) +$ $\\lambda L _ { U } ( \\mathcal { U } , \\boldsymbol { \\theta } , { \\boldsymbol { w } } )$ , where $\\lambda$ is the regularization coefficient for the unlabeled set loss. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
704,
|
| 334 |
+
826,
|
| 335 |
+
760
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "The state-of-the-art robust SSL method, Safe-SSL [17] poses the learning problem as: ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
174,
|
| 344 |
+
765,
|
| 345 |
+
736,
|
| 346 |
+
781
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "equation",
|
| 352 |
+
"img_path": "images/bc42f183690147a5522b6b07c852df22694bb03aba97adf9e552b9088e1c2c81.jpg",
|
| 353 |
+
"text": "$$\n\\overbrace { \\pmb { w } ^ { * } = \\operatorname { a r g m i n } _ { \\pmb { w } } L _ { S } ( \\mathcal { D } , \\underbrace { \\mathrm { a r g m i n } \\left( L _ { S } ( \\mathcal { D } , \\theta ) + \\lambda L _ { U } ( \\mathcal { U } , \\theta , w ) \\right) } _ { \\theta } ) } ^ { o u t e r - l e v e l }\n$$",
|
| 354 |
+
"text_format": "latex",
|
| 355 |
+
"bbox": [
|
| 356 |
+
258,
|
| 357 |
+
787,
|
| 358 |
+
656,
|
| 359 |
+
853
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "In order to solve the problem at the inner level efficiently, Safe-SSL [17] method uses a single-gradient step approximation to estimate the inner problem solution. The weight vector learning problem after the one-step approximation is: $\\pmb { w } ^ { * } = \\mathrm { a r g m i n } ~ L _ { S } ( \\mathcal { D } , \\pmb { \\theta } - \\alpha \\nabla _ { \\theta } L _ { S } ( \\bar { \\mathcal { D } } , \\theta ) - \\alpha \\lambda \\nabla _ { \\theta } L _ { U } ( \\bar { \\mathcal { U } } , \\theta , w )$ ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
176,
|
| 368 |
+
863,
|
| 369 |
+
823,
|
| 370 |
+
907
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Safe-SSL also uses a single-step gradient approximation to solve the outer level problem as well. As discussed before, the optimization problem of the Safe-SSL [17] algorithm involves continuous optimization at both inner and outer levels, whereas for RETRIEVE, the outer level involves a discrete optimization problem which makes it significantly faster than Safe-SSL. ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
90,
|
| 380 |
+
826,
|
| 381 |
+
147
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 4
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "3 RETRIEVE framework ",
|
| 388 |
+
"text_level": 1,
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
166,
|
| 392 |
+
397,
|
| 393 |
+
184
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "In RETRIEVE, the coreset selection and classifier model learning on the selected coreset is performed in conjunction. As shown in the Figure 3, RETRIEVE trains the classifier model on the previously selected coreset for $R$ epochs in a semi-supervised manner, and every $R ^ { t h }$ epoch, a new coreset is selected, and the process is repeated until the classifier model reaches convergence, or the required number of epochs is reached. The vital feature of RETRIEVE is that the coresets selected are adapted with the training. Let $\\theta _ { t }$ be the classifier model parameters and the $S _ { t }$ be the coreset at time step $t$ . Since coreset selection is done every $R$ epochs, we have ${ S } _ { t } = { S } _ { \\lfloor t / R \\rfloor }$ , or in other words, the subsets change only after $R$ epochs. The SSL loss function on the selected coreset at iteration $t$ is as follows: ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
196,
|
| 403 |
+
826,
|
| 404 |
+
309
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 4
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "equation",
|
| 410 |
+
"img_path": "images/1c8381dc1dc248d217d7d56f44e796043ced99bd5419b0a5cc891905203c9f39.jpg",
|
| 411 |
+
"text": "$$\nL _ { S } ( \\mathcal { D } , \\boldsymbol { \\theta } _ { t } ) + \\lambda _ { t } \\sum _ { j \\in \\mathcal { S } _ { t } } m _ { j t } l _ { u } ( x _ { j } , \\boldsymbol { \\theta } _ { t } )\n$$",
|
| 412 |
+
"text_format": "latex",
|
| 413 |
+
"bbox": [
|
| 414 |
+
385,
|
| 415 |
+
315,
|
| 416 |
+
612,
|
| 417 |
+
351
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 4
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "where $\\mathbf { \\nabla } m _ { j t }$ is the mask binary value associated with the $j ^ { t h }$ point based on model parameters $\\theta _ { t }$ and $\\lambda _ { t }$ is the unlabeled loss coefficient at iteration $t$ . Note that objective function given in Equation (2) is dependent on the SSL algorithm used in RETRIEVE framework. If gradient descent is used for learning, the parameter update step from time step $t$ to $t + 1$ is as follows: ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
174,
|
| 426 |
+
358,
|
| 427 |
+
825,
|
| 428 |
+
415
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "equation",
|
| 434 |
+
"img_path": "images/43786e0eb492dae93915dedb19372bd94de34c9e31336c2fa47a38e19e95aab2.jpg",
|
| 435 |
+
"text": "$$\n\\theta _ { t + 1 } = \\theta _ { t } - \\alpha _ { t } \\nabla _ { \\theta } L _ { S } ( \\mathcal { D } , \\theta _ { t } ) - \\alpha _ { t } \\lambda _ { t } \\sum _ { j \\in S _ { t } } m _ { j t } \\nabla _ { \\theta } l _ { u } ( x _ { j } , \\theta _ { t } )\n$$",
|
| 436 |
+
"text_format": "latex",
|
| 437 |
+
"bbox": [
|
| 438 |
+
305,
|
| 439 |
+
421,
|
| 440 |
+
692,
|
| 441 |
+
457
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 4
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "where $\\alpha _ { t }$ is the learning rate at iteration $t$ . The update step for mini-batch SGD is similar, just that it does the above on minibatches of the dataset. ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
173,
|
| 450 |
+
463,
|
| 451 |
+
825,
|
| 452 |
+
491
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "3.1 Problem Formulation ",
|
| 459 |
+
"text_level": 1,
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
507,
|
| 463 |
+
364,
|
| 464 |
+
522
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "The coreset selection problem of RETRIEVE at timestep $t$ is as follows: ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
173,
|
| 473 |
+
532,
|
| 474 |
+
638,
|
| 475 |
+
549
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "equation",
|
| 481 |
+
"img_path": "images/df6d6c6ea6aa3788e8bab52caac9b19f4b0fe7d1db713bae7e2c1641cba7d385.jpg",
|
| 482 |
+
"text": "$$\n\\overbrace { S _ { t } = \\underbrace { \\mathrm { \\ a r g m i n } \\ L _ { S } \\Big ( \\mathcal { D } , \\underbrace { \\mathrm { a r g m i n } \\left( L _ { S } ( \\mathcal { D } , \\theta _ { t } ) + \\lambda _ { t } \\sum _ { j \\in S } m _ { j t } l _ { u } ( x _ { j } , \\theta _ { t } ) \\right) } _ { i n n e r - l e v e l } } \\Big ) } ^ { o u t e r - l e v e l } \\mathrm { ~ , ~ }\n$$",
|
| 483 |
+
"text_format": "latex",
|
| 484 |
+
"bbox": [
|
| 485 |
+
228,
|
| 486 |
+
563,
|
| 487 |
+
687,
|
| 488 |
+
637
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "where $k$ is the size of the coreset and $\\mathbf { \\nabla } m _ { j t }$ is the binary value associated with the $j ^ { t h }$ instance based on model parameters $\\theta _ { t }$ . $k$ is a fraction of the entire dataset (e.g. $20 \\%$ or $30 \\%$ ), and the goal is to select the best subset of the unlabeled set, which maximizes the labeled loss based. The outer level of the above optimization problem is a discrete subset selection problem. However, solving the inner-optimization problem naively is computationally intractable, and, we need to make some approximations. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
173,
|
| 497 |
+
641,
|
| 498 |
+
826,
|
| 499 |
+
724
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "3.2 One-Step Gradient Approximation ",
|
| 506 |
+
"text_level": 1,
|
| 507 |
+
"bbox": [
|
| 508 |
+
174,
|
| 509 |
+
741,
|
| 510 |
+
457,
|
| 511 |
+
757
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "To solve the inner optimization problem efficiently, RETRIEVE adopts a one-step gradient approximation based optimization method similar to [14, 49]. More specifically, RETRIEVE approximates the solution to the inner level problem by taking a single gradient step towards the descent direction of the loss function. The idea here is to jointly optimize the model parameters and the subset as the learning proceeds. After this approximation, the coreset selection optimization problem becomes: ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
173,
|
| 520 |
+
766,
|
| 521 |
+
825,
|
| 522 |
+
837
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"img_path": "images/5cc90cb8da2aceaf2d07b3bee384f5c4e5bec7f2733a9bd58f550b427aba4a9c.jpg",
|
| 529 |
+
"text": "$$\n{ \\mathcal { S } } _ { t } = \\operatorname * { a r g m i n } _ { S \\subseteq { \\mathcal { U } } : | S | \\leq k } L _ { S } ( { \\mathcal { D } } , \\theta _ { t } - \\alpha _ { t } \\nabla _ { \\theta } L _ { S } ( { \\mathcal { D } } , \\theta _ { t } ) - \\alpha _ { t } \\lambda _ { t } \\sum _ { j \\in S } m _ { j t } \\nabla _ { \\theta } l _ { u } ( x _ { j } , \\theta _ { t } ) )\n$$",
|
| 530 |
+
"text_format": "latex",
|
| 531 |
+
"bbox": [
|
| 532 |
+
215,
|
| 533 |
+
852,
|
| 534 |
+
702,
|
| 535 |
+
887
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "However, even after this approximation, the above optimization problem (Equation (5)) is NP-hard. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
896,
|
| 545 |
+
821,
|
| 546 |
+
912
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Theorem 1 Optimization problem (Equation (5)) is NP hard, even if $\\mathit { l } _ { s }$ is a convex loss function. If the labeled set loss function $l _ { s }$ is cross-entropy loss, then the optimization problem give in the Equation (5) can be converted into an instance of cardinality constrained weakly submodular maximization. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
90,
|
| 556 |
+
825,
|
| 557 |
+
133
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 5
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "The proof is given in Appendix B. The given Theorem 1 holds as long as $l _ { s }$ is a cross-entropy loss irrespective of the form of $l _ { u }$ . Further, Theorem 1 implies that the optimization problem given in Equation (5) can be solved efficiently using greedy algorithms [37, 38] with approximation guarantees. RETRIEVE uses stochastic-greedy algorithm [22, 38] to solve the optimization problem Equation (5) with an approximation guarantee of $1 - 1 / e ^ { \\beta } - \\epsilon$ in $\\mathcal { O } ( m \\log ( 1 / \\epsilon ) )$ iterations where $m$ is the unlabeled set size and $\\beta$ is the weak submodularity coefficient (see Appendix B). And the set function used in stochastic greedy algorithm is as follows: ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
173,
|
| 566 |
+
145,
|
| 567 |
+
826,
|
| 568 |
+
243
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "equation",
|
| 574 |
+
"img_path": "images/58ca1d47fbcb25e7433df9e3c688bffbaadce3a4dc4009f011f43c8774c66982.jpg",
|
| 575 |
+
"text": "$$\nf ( \\theta _ { t } , S ) = - L _ { S } ( \\mathcal { D } , \\theta _ { t } - \\alpha _ { t } \\nabla _ { \\theta } L _ { S } ( \\mathcal { D } , \\theta _ { t } ) - \\alpha _ { t } \\lambda _ { t } \\sum _ { j \\in S } m _ { j t } \\nabla _ { \\theta } l _ { u } ( x _ { j } , \\theta _ { t } ) )\n$$",
|
| 576 |
+
"text_format": "latex",
|
| 577 |
+
"bbox": [
|
| 578 |
+
223,
|
| 579 |
+
250,
|
| 580 |
+
694,
|
| 581 |
+
285
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "Notice that during each greedy iteration, we need to compute the set function value $f ( \\theta _ { t } , S \\cup e )$ to find the maximal gain element $e$ that can be added to the set $s$ . This implies that the loss over the entire labeled set needs to be computed multiple times for each greedy iteration, making the entire greedy selection algorithm computationally expensive. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
173,
|
| 590 |
+
297,
|
| 591 |
+
825,
|
| 592 |
+
354
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "3.3 RETRIEVE Algorithm ",
|
| 599 |
+
"text_level": 1,
|
| 600 |
+
"bbox": [
|
| 601 |
+
174,
|
| 602 |
+
371,
|
| 603 |
+
366,
|
| 604 |
+
386
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "To make the greedy selection algorithm efficient, we approximate the set function value $f ( \\theta _ { t } , S \\cup e )$ with the first two terms of it’s Taylor-series expansion Let, $\\theta ^ { S } \\ = \\ \\theta _ { t } \\ - \\ \\alpha _ { t } \\nabla _ { \\theta } \\bar { L _ { S } } ( { \\mathcal D } , \\theta _ { t } ) \\ -$ $\\alpha _ { t } \\lambda _ { t } \\sum _ { j \\in S } m _ { j t } \\nabla _ { \\theta } l _ { u } ( x _ { j } , \\theta _ { t } )$ . The modified set function value with Taylor-series approximation is as follows: ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
173,
|
| 613 |
+
395,
|
| 614 |
+
825,
|
| 615 |
+
459
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "equation",
|
| 621 |
+
"img_path": "images/ee93cef6cc6cc2130375adef678bf9393f780300704deb29c0d593e51c4e4761.jpg",
|
| 622 |
+
"text": "$$\n\\hat { f } ( \\theta _ { t } , S \\cup e ) = - L _ { S } ( \\mathcal { D } , \\theta ^ { S } ) + \\alpha _ { t } \\lambda _ { t } \\nabla _ { \\theta } L _ { S } \\big ( \\mathcal { D } , \\theta ^ { S } \\big ) ^ { T } m _ { e t } \\nabla _ { \\theta } l _ { u } \\big ( x _ { e } , \\theta _ { t } \\big )\n$$",
|
| 623 |
+
"text_format": "latex",
|
| 624 |
+
"bbox": [
|
| 625 |
+
232,
|
| 626 |
+
465,
|
| 627 |
+
687,
|
| 628 |
+
488
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "where ${ \\mathbf { } } m _ { e t }$ is the binary mask value associated with element $e$ . Note that the term $m _ { e t } \\nabla _ { \\boldsymbol { \\theta } } l _ { \\underline { { u } } } ( x _ { e } , \\theta _ { t } )$ can be precomputed at the start of the greedy selection algorithm, and the term $\\nabla _ { \\theta } L _ { S } ( \\mathcal { D } , \\theta ^ { S } )$ needs to be computed only once every greedy iteration, thereby reducing the computational complexity of the greedy algorithm. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
173,
|
| 637 |
+
502,
|
| 638 |
+
826,
|
| 639 |
+
558
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "A detailed pseudo-code of the RETRIEVE algorithm is given in Algorithm 1. RETRIEVE uses a greedy selection algorithm for coreset selection, and the detailed pseudo-code of the greedy algorithm is given in Algorithm 2. RETRIEVE can be easily implemented with popular deep learning frameworks [47, 1] that provide auto differentiation functionalities. In all our experiments, we set $R = 2 0$ , i.e., we update the coreset every 20 epochs. ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
174,
|
| 648 |
+
564,
|
| 649 |
+
485,
|
| 650 |
+
703
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 5
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "Algorithm 1: RETRIEVE Algorithm ",
|
| 657 |
+
"text_level": 1,
|
| 658 |
+
"bbox": [
|
| 659 |
+
498,
|
| 660 |
+
555,
|
| 661 |
+
736,
|
| 662 |
+
570
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "3.4 Additional Implementation Details: ",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
176,
|
| 672 |
+
712,
|
| 673 |
+
459,
|
| 674 |
+
727
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 5
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "In this subsection, we discuss additional implementational and practical tricks to make RETRIEVE scalable and efficient. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
173,
|
| 683 |
+
738,
|
| 684 |
+
486,
|
| 685 |
+
779
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 5
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "Input: Labeled Set: $\\left\\{ \\lambda _ { t } \\right\\} _ { t = 0 } ^ { t = T - 1 }$ $\\mathcal { D }$ , Learning rates: , Unlabeled Set: $\\{ \\alpha _ { t } \\} _ { t = 0 } ^ { t = T - 1 }$ $\\boldsymbol { u }$ , Reg. Coefficients: \nInput: Total no of epochs: , Epoch interval for subset selection: $R$ , Size of the coreset: $k$ \nSet $t = 0$ ; Randomly initialize model parameters $\\theta _ { 0 }$ and coreset \n$S _ { 0 } \\subseteq \\mathcal { U } : | S _ { 0 } | = k$ ; \nrepeat if ( $t \\% R = = 0$ ) ∧ $( t > 0 )$ ) then St = GreedySelectio $( \\mathcal { D } , \\mathcal { U } , \\theta _ { t } , \\lambda _ { t } , \\alpha _ { t } , k )$ else $\\_ S { _ t } = S _ { { t - 1 } }$ Compute batches $\\mathcal { D } _ { b } = ( ( x _ { b } , y _ { b } ) ; b \\in ( 1 \\cdot \\cdot \\cdot B ) )$ from $\\mathcal { D }$ Compute batches $S _ { t b } = ( ( x _ { b } ) ; b \\in ( 1 \\cdot \\cdot \\cdot B ) )$ from $s$ $^ { * * }$ Mini-batch SGD \\*\\*\\* Set $\\theta _ { t 0 } = \\theta _ { t }$ for $b = 1$ to $B$ do Compute mask $^ { m _ { t } }$ on $\\boldsymbol { S } _ { t b }$ from current model parameters $\\theta _ { t ( b - 1 ) }$ $\\begin{array} { r } { \\boldsymbol { \\theta } _ { t b } ^ { \\ast } = \\boldsymbol { \\theta } _ { t ( b - 1 ) } - \\alpha _ { t } \\nabla _ { \\theta } L _ { S } ( \\mathcal { D } _ { b } , \\boldsymbol { \\theta } _ { t } ) - } \\end{array}$ αtλt P mjt∇θlu(xj , θt(b − 1)) j∈Stb Set θt+1 = θtB t = t + 1 \nuntil t ≥ T \nreturn θT , ST ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
498,
|
| 694 |
+
573,
|
| 695 |
+
800,
|
| 696 |
+
853
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 5
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "Last-layer gradients. Computing the gradients over deep models is time-consuming due to an enormous number of parameters in the model. To address this issue, we adopt a last-layer gradient approximation similar to [2, 39, 24, 23] by ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
173,
|
| 705 |
+
785,
|
| 706 |
+
486,
|
| 707 |
+
854
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 5
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "only considering the last classification layer gradients of the classifier model in RETRIEVE. By simply using the last-layer gradients, we achieve significant speedups in RETRIEVE. ",
|
| 714 |
+
"bbox": [
|
| 715 |
+
173,
|
| 716 |
+
854,
|
| 717 |
+
825,
|
| 718 |
+
883
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 5
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "Warm-starting data selection: We warm start the classifier model by training it on the entire unlabeled dataset for a few epochs similar to [23]. Warm starting allows the classifier model to have a good starting point to provide informative loss gradients used for coreset selection. More specifically, we train the classifier model on the entire unlabeled set for $\\begin{array} { r } { T _ { w } = \\frac { \\kappa T k } { m } } \\end{array}$ epochs where $k$ is coreset size, $T$ is the total number of epochs, $\\kappa$ is the fraction of warm start, and $m$ is the size of the unlabeled set. To be fair, we consider all baselines in the standard SSL setting with the same warm start. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
171,
|
| 727 |
+
883,
|
| 728 |
+
825,
|
| 729 |
+
911
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "image",
|
| 735 |
+
"img_path": "images/2b8bc3895048c9c9c8db1d4c6dced3334aab1aca3500f15b23687765b6a84924.jpg",
|
| 736 |
+
"image_caption": [
|
| 737 |
+
"Figure 4: A comparison of RETRIEVE with baselines (RANDOM, CRAIG, FULL, and FULLEARLYSTOP in the traditional SSL setting. SpeedUp vs Accuracy Degradation, both compared to SSL for (a) VAT on CIFAR-10, (b) VAT on SVHN, (c) FixMatch on CIFAR-10, (d) MT on CIFAR-10, and (e) MT on SVHN. We observe that RETRIEVE significantly outperforms existing baselines in terms of accuracy degradation and speedup tradeoff compared to SSL. Plot (f) also compares the CO2 emissions among the different approaches on FixMatch, showing again that RETRIEVE achieves the best energy-accuracy tradeoff. Plots (g) and (h) are the convergence results comparing accuracy with the time taken. Again, we see that RETRIEVE achieves much faster convergence than all baselines and full training. "
|
| 738 |
+
],
|
| 739 |
+
"image_footnote": [],
|
| 740 |
+
"bbox": [
|
| 741 |
+
192,
|
| 742 |
+
89,
|
| 743 |
+
805,
|
| 744 |
+
332
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 6
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
473,
|
| 754 |
+
826,
|
| 755 |
+
531
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 6
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "3.5 Epochs vs. Iterations ",
|
| 762 |
+
"text_level": 1,
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
547,
|
| 766 |
+
357,
|
| 767 |
+
563
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Most of the existing SSL algorithms are trained using a fixed number of iterations instead of epochs. However, for easier comprehension of the RETRIEVE algorithm, we use the epoch notation in our work. A single epoch here meant a pass over random mini-batches of data points, such that the total number of data points encountered is equal to the size of the coreset of the unlabeled data. For example, if the unlabeled set size is 50000 and the unlabeled batch size is 50, then a single epoch over $100 \\%$ , $50 \\%$ , and $30 \\%$ subsets are equivalent to 1000, 500, and 300 iterations, respectively. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
174,
|
| 776 |
+
574,
|
| 777 |
+
485,
|
| 778 |
+
753
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 6
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Algorithm 2: GreedySelection ",
|
| 785 |
+
"text_level": 1,
|
| 786 |
+
"bbox": [
|
| 787 |
+
498,
|
| 788 |
+
546,
|
| 789 |
+
704,
|
| 790 |
+
561
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 6
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "Input: Labeled Set: $\\mathcal { D }$ , Unlabeled Set: $\\boldsymbol { u }$ , Model Parameters: $\\theta _ { t }$ , Learning rate: $\\alpha _ { t }$ \nInput: Regularization Coefficient: $\\lambda _ { t }$ , Budget: $k$ \nInitialize $s _ { t } = \\emptyset$ \nSet $m = | \\mathcal { U } |$ \nCompute mask values $_ { \\pmb { m } }$ based on current model parameters $\\theta _ { t }$ \nfor $e \\in { \\mathcal { U } }$ do \nCompute $\\theta _ { e } = m _ { e } \\nabla _ { \\theta } l _ { u } \\big ( x _ { e } , \\theta _ { t } \\big )$ \nfor $i = 1$ to $k$ do Compute $\\theta ^ { S } =$ $\\boldsymbol { \\theta } _ { t } ^ { \\star } - \\alpha _ { t } \\nabla _ { \\theta } L _ { S } ( \\mathcal { D } , \\boldsymbol { \\theta } _ { t } ) - \\alpha _ { t } \\lambda _ { t } \\sum _ { j \\in S } \\boldsymbol { m } _ { j t } \\nabla _ { \\theta } l _ { u } ( x _ { j } , \\boldsymbol { \\theta } _ { t } )$ Compute $\\nabla _ { \\theta } L _ { S } ( \\mathcal { D } , \\theta ^ { S } )$ $V \\sim$ Sample $\\lceil m l o g ( 1 / \\epsilon ) \\rceil$ instances from $\\boldsymbol { u }$ be $s t - g a i n = - \\infty$ for $e \\in V$ do Compute gain ${ \\hat { g } } ( e ) =$ $\\alpha _ { t } \\lambda _ { t } \\nabla _ { \\theta } L _ { S } { \\left( \\mathcal { D } , \\theta ^ { S } \\right) } ^ { T } \\mathbf { m } _ { e } \\nabla _ { \\theta } l _ { u } { \\left( x _ { e } , \\theta _ { t } \\right) }$ if gˆ(e) > best − gain then Set s = e Set best − gain = ˆg(e) St = St ∪ s U = U \\ s \nreturn $s _ { t }$ ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
496,
|
| 799 |
+
564,
|
| 800 |
+
802,
|
| 801 |
+
827
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 6
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "4 Experiments ",
|
| 808 |
+
"text_level": 1,
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
768,
|
| 812 |
+
312,
|
| 813 |
+
785
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 6
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Our experimental section aims to verify the efficiency and effectiveness of RETRIEVE by evalu",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
801,
|
| 823 |
+
486,
|
| 824 |
+
828
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 6
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "ating RETRIEVE through three semi-supervised learning scenarios a) traditional SSL scenario with clean data, b) robust SSL with OOD, and c) robust SSL with class imbalance, to demonstrate the efficiency and the robustness of RETRIEVE. Furthermore, our work’s experimental scenarios are very relevant in terms of research and real-world applications. We have implemented the RETRIEVE algorithmic framework using PyTorch [46]. We repeat the same experiment for three runs with different initialization and report the mean test accuracies in our plots. A detailed table with both mean test accuracy and the standard deviations was given in Appendix (G, H). For a fair comparison, we use the same random seed in each trial for all methods. We explain implementation details, datasets, and baselines used in each scenario in the following subsections. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
829,
|
| 834 |
+
825,
|
| 835 |
+
911
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 6
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
92,
|
| 845 |
+
825,
|
| 846 |
+
132
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Baselines in each setting. In this section, we discuss baselines that are used in all the scenarios considered. We begin with the traditional SSL scenario. In this setting, we run RETRIEVE (and all baselines) with warm-start. We incorporate RETRIEVE with three representative SSL methods, including Mean Teacher (MT) [56], Virtual Adversarial Training (VAT) [42] and FixMatch [53]. The baselines considered are RANDOM (where we just randomly select a subset of unlabeled data points of the same size as RETRIEVE), CRAIG [39, 23] and FULL-EARLYSTOP. CRAIG [39, 23] was actually proposed in the supervised learning scenario. We adapt it to SSL by choosing a representative subset of unlabeled points such that the gradients are similar to the unlabeled loss gradients. We run the per-batch variant of CRAIG proposed in [23], where we select a subset of mini-batches instead of data instances for efficiency and scalability. Similarly, we use the per-batch version of GRADMATCH proposed in [23] adapted to SSL setting as another baseline. For more information on the formulation of CRAIG and GRADMATCH in the SSL case, see Appendix D, E. Again, we emphasize that RANDOM, CRAIG, and GRADMATCH are run with early stopping for the same duration as RETRIEVE. In FULL-EARLYSTOP baseline, we train the model on the entire unlabeled set for the time taken by RETRIEVE and report the test accuracy. In the traditional SSL scenario, we use warm variants of RETRIEVE, RANDOM, CRAIG for SSL training because warm variants are better in accuracy and efficiency compared to not performing warm start – see Appendix G for a careful comparison of both. Robust SSL with OOD and Imbalance: In the robust learning scenario for both OOD and imbalance, we analyze the performance of RETRIEVE with the VAT [42] algorithm. Note that for the Robust SSL scenario, we do not warm start the model by training for a few iterations on the full unlabeled set because training on an entire unlabeled set(containing OOD or class imbalance) creates a biased model due to a distribution mismatch between labeled set and unlabeled set. We empirically compare not warm starting the model with warm starting in Appendix H. In the robust SSL case, we compare RETRIEVE with two robust SSL algorithms DS3L [17] and L2RW [49]. DS3L (also called Safe-SSL) is a robust learning approach using a meta-weight network proposed specifically for robust SSL. We adapt L2RW(Learning to Reweight), originally proposed for robust supervised learning, to the SSL case and use it as a baseline. Similarly, we adapt the robust coreset selection method CRUST [40] originally proposed to tackle noisy labels scenario in supervised learning to SSL setting and use it as a baseline in Robust SSL scenario. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
140,
|
| 856 |
+
825,
|
| 857 |
+
539
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Datasets, Model architecture and Experimental Setup: We begin by providing details common across the three scenarios. We perform experiments on the following image classification datasets: CIFAR-10 [28] (60000 instances), SVHN [43] (99289 instances) and the following sentiment analysis datasets: IMDB $[ 3 6 ] ^ { 2 }$ (10000 instances), and ELEC $[ 2 0 ] ^ { 3 }$ (246714 instances) datasets. We use a modified version of the ELEC dataset where the duplicate sentences are removed. For CIFAR-10, we use a labeled set of 4000 instances with 400 instances from each class, an unlabeled set of 50000 instances, a test set of 10000 instances. For SVHN, we used a labeled set of ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
446,
|
| 866 |
+
541,
|
| 867 |
+
826,
|
| 868 |
+
705
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "image",
|
| 874 |
+
"img_path": "images/bd28cdf21835c75d0dba7b8e63b28e68453c2829ff7cffd08ea7edd112509f93.jpg",
|
| 875 |
+
"image_caption": [
|
| 876 |
+
"Figure 5: Performance comparison of RETRIEVE vs Bayesian Coreset using VAT for $20 \\%$ and $30 \\%$ CIFAR10 subsets "
|
| 877 |
+
],
|
| 878 |
+
"image_footnote": [],
|
| 879 |
+
"bbox": [
|
| 880 |
+
223,
|
| 881 |
+
559,
|
| 882 |
+
383,
|
| 883 |
+
665
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "1000 instances with 100 instances from each class, an unlabeled set of 73257 instances, a test set of 26032 instances. For IMDB and ELEC datasets, we use the labeled and unlabeled splits following the work [41]. For CIFAR10 and SVHN datasets, we use the Wide-ResNet-28-2 [60] model that is commonly used in SSL [44, 53]. For MNIST, we use a variant of LeNet [31] (see Appendix F for details). For IMDB and ELEC datasets, we use a model comprising of Word Embedding layer, LSTM model, and two-layer MLP model following the architecture given in the work [41]. Similar to the work [41], we initialize the embedding matrix and LSTM model weights using a pretrained recurrent language model using both the labeled and unlabeled data. For Image datasets, with RETRIEVE(and baselines like RANDOM, GRADMATCH and CRAIG), we use the Nesterov’s accelerated SGD optimizer with a learning rate of 0.03, weight decay of 5e-4, the momentum of 0.9, and a cosine annealing [35] learning rate scheduler for all the experiments. For the FULL and FULLEARLYSTOP, we use the Adam optimizer [25] and follow the experimental setting from the SSL papers [53, 42, 56]. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
173,
|
| 892 |
+
707,
|
| 893 |
+
826,
|
| 894 |
+
871
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "For Text datasets, with RETRIEVE(and baselines like RANDOM, GRADMATCH and CRAIG), we set the hyperparameter values following the work [41]. Similarly, for the robust SSL baselines, we use the settings from the corresponding papers [17]. For all our experiments using image datasets, we use a batch size of 50 for labeled and unlabeled sets. Next, we discuss the specific settings for the traditional SSL scenario. For CIFAR10, we train the model for 500 epochs, and for SVHN, we train the model for 340 epochs on an unlabeled set. Note that we mention the epochs here because the number of iterations depends on the size of the unlabeled sets since that would determine the number of mini-batches. For a fair comparison, we train all algorithms for a fixed number of epochs. Next, we look at robust SSL for OOD. In this scenario, we consider the presence of OOD in the unlabeled set. We introduce OOD into CIFAR-10 following [44], by adapting it to a 6-class dataset, with 400 labels per class (from the 6 animal classes) as ID and rest of the classes as OOD (ID classes are: \"bird\", \"cat\", \"deer\", \"dog\", \"frog\", \"horse\", and OOD data are from classes: \"airline\", \"automobile\", \"ship\", \"truck\"). Similarly, we adapt MNIST [32] to a 6-class dataset, with classes 1-6 as ID and classes 7-10 as OOD. We denote the OOD rat $\\scriptstyle \\mathrm { i o } = { \\mathcal { U } } _ { o o d } / ( { \\mathcal { U } } _ { o o d } + { \\mathcal { U } } _ { i n } )$ where $\\mathcal { U } _ { i n }$ is ID unlabeled set, $\\mathcal { U } _ { o o d }$ is OOD unlabeled set. For CIFAR10, we use a labeled set of 2400 instances and an unlabeled set of 20000 instances, and for MNIST, we use a labeled set of 60 instances and an unlabeled set of 30000 instances. Finally, for robust SSL for class imbalance, we consider imbalance both in the labeled set and unlabeled set. We introduce imbalance into the CIFAR-10 dataset by considering classes 1-5 as imbalanced classes and a class imbalance ratio. The class imbalance ratio is defined as the ratio of instances from classes 1-5 and the number of instances from classes 6-10. For CIFAR-10, we use a labeled set of 2400 and an unlabeled set of 20000 instances. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
173,
|
| 903 |
+
90,
|
| 904 |
+
826,
|
| 905 |
+
381
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 8
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "Traditional SSL Results: The results comparing the accuracyefficiency tradeoff between the different subset selection approaches are shown in Figure 4. We compare the performance for different subset sizes of the unlabeled data: $10 \\%$ , $20 \\%$ , and $30 \\%$ and three representative SSL algorithms VAT, Mean-Teacher, and FixMatch. For warm-start, we set kappa value to $\\kappa \\ : \\ : = \\ : \\ : 0 . 5$ (i.e., training for $50 \\%$ epochs on the entire unlabeled set and $50 \\%$ using coresets). Our experiments use a $R$ value of 20 (i.e., coreset selection every 20 epochs). Sub-figures(4a, 4b, 4d, 4e, ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
387,
|
| 915 |
+
421,
|
| 916 |
+
608
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "image",
|
| 922 |
+
"img_path": "images/ab983e7608a0cd9e8df35bcb966d3f574bdd62cc254254795b5a19f77059b08d.jpg",
|
| 923 |
+
"image_caption": [
|
| 924 |
+
"Figure 6: A comparison of RETRIEVE with baselines (RANDOM, CRAIG, GRADMATCH, FULL, and FULLEARLYSTOP in the traditional SSL setting for text datasets. SpeedUp vs Accuracy Degradation, both compared to SSL for (a) VAT on $30 \\%$ IMDB, (b) VAT on $30 \\%$ ELEC. "
|
| 925 |
+
],
|
| 926 |
+
"image_footnote": [],
|
| 927 |
+
"bbox": [
|
| 928 |
+
442,
|
| 929 |
+
405,
|
| 930 |
+
812,
|
| 931 |
+
530
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 8
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "4c) shows the plots of relative error vs speedup, both w.r.t full training (i.e., original SSL algorithm). Sub-figure 4f shows the plot of relative error vs CO2 emissions efficiency, both w.r.t full training. CO2 emissions were estimated based on the total compute time using the Machine Learning Impact calculator presented in [29]. From the results, it is evident that RETRIEVE achieved the best speedup vs. accuracy tradeoff and is environmentally friendly based on CO2 emissions compared to other baselines (including CRAIG and FULLEARLYSTOP). In particular, RETRIEVE achieves speedup gains of $2 . 7 \\mathbf { x }$ and $4 . 4 \\times$ with a performance loss of $0 . 7 \\%$ and $0 . 3 \\%$ using VAT on CIFAR10 and SVHN datasets. Further, RETRIEVE achieves speedup gains of $2 . 9 \\mathbf { x }$ , $3 . 2 \\mathrm { x }$ with a performance loss of $0 . 0 2 \\%$ and $0 . 5 \\%$ using Mean-Teacher on CIFAR10 and SVHN datasets. Additionally, RETRIEVE achieves a speedup of $3 . 8 \\mathrm { x }$ with a performance loss of $0 . 7 \\%$ using FixMatch on the CIFAR10 dataset. Sub-figures(6a, 6b) shows the plots of relative error vs speedup both w.r.t full training (i.e., original SSL algorithm) on IMDB and ELEC datasets for $30 \\%$ subset size. In particular, RETRIEVE achieves speedup gains of $2 . 6 8 \\mathrm { x }$ and $2 . 5 \\mathrm { x }$ with a performance loss of $0 . 5 \\%$ and $0 . 6 \\%$ for $30 \\%$ subset of IMDB and ELEC datasets. Figure 5 shows the results comparing the BAYESIANCORESET method [6], adapted to the SSL setting with RETRIEVE using the VAT algorithm for $20 \\%$ and $30 \\%$ CIFAR10 subsets. The results show that RETRIEVE achieves better performance than the SSL extension of the BAYESIANCORESET selection method in terms of model performance and speedup. One possible explanation for it is that the BAYESIANCORESET approach was not developed for efficient learning but instead was developed to capture coresets that try to represent the log-likelihood of the entire dataset that MCMC methods can further use. We would also like to point out that we used the original code implementation of BAYESIANCORESET that is not meant for GPU usage in our experiments. Hence the speedups of the BAYESIANCORESET approach can be further improved with efficient code implementation. Subfigure 4h shows that RETRIEVE achieves faster convergence compared to all other methods on CIFAR10 for $30 \\%$ subset with Mean-Teacher. Subfigure $4 \\mathrm { g }$ shows the extended convergence of RETRIEVE on CIFAR10 for $20 \\%$ and $30 \\%$ subsets using VAT, where the RETRIEVE is allowed to train for larger epochs to achieve comparable accuracy with Full training at the cost of losing some efficiency. Note that the points marked by \\* in subfigure $4 \\mathrm { g }$ denote the actual training endpoint, i.e. the usual number of epochs/iterations used to obtain points in subfigures (4a, 4b, 4d, 4e, 4c). We observe that RETRIEVE matches the performance of VAT while being close to $2 \\times$ faster in running times (and correspondingly energy efficiency). We repeat this experiment with MT in the Appendix G. Also, more detailed results with additional convergence plots and tradeoff curves are in Appendix G. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
173,
|
| 940 |
+
608,
|
| 941 |
+
826,
|
| 942 |
+
897
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 8
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "image",
|
| 948 |
+
"img_path": "images/40ab1abc6353dc009e6215522df2f222c2e4246b190684a7cc4f972009903ee1.jpg",
|
| 949 |
+
"image_caption": [
|
| 950 |
+
"Figure 7: Subfigures (a) to (c) compare the performance of RETRIEVE with baselines (including DS3L and L2RW) for different OOD ratios (a,b) and imbalance ratios (c). We see that RETRIEVE outperforms both baselines in most of the cases. Furthermore, RETRIEVE achieves this while being close to $2 \\times$ faster than VAT (the SSL algorithm) and $5 \\times$ faster than the robust SSL algorithms (DS3L and L2RW). "
|
| 951 |
+
],
|
| 952 |
+
"image_footnote": [],
|
| 953 |
+
"bbox": [
|
| 954 |
+
183,
|
| 955 |
+
88,
|
| 956 |
+
836,
|
| 957 |
+
226
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 9
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
303,
|
| 967 |
+
825,
|
| 968 |
+
454
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 9
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Robust SSL Results: We test the performance of RETRIEVE on CIFAR10 and MNIST datasets with OOD in the unlabeled set and CIFAR10 dataset with the class imbalance in both labeled and unlabeled sets. sub-figures 7a, 7b shows the accuracy plots of RETRIEVE for different OOD ratios of $2 5 \\%$ , $50 \\%$ and $7 5 \\%$ . The results show that RETRIEVE with VAT outperforms all other baselines, including DS3L [17], a state-of-the-art robust SSL baseline in the OOD scenario. Next, sub-figure 7c shows the accuracy plots of RETRIEVE for different class imbalance ratios of $10 \\%$ , $30 \\%$ and $50 \\%$ on CIFAR10 dataset. The results show that RETRIEVE with VAT outperforms all other baselines, including DS3L [17] (also run with VAT) in the class imbalance scenario as well. In particular, RETRIEVE outperforms other baselines by at least $1 . 5 \\%$ on the CIFAR-10 with imbalance. Sub-figure 7d shows the time taken by different algorithms on the CIFAR10 dataset with a $50 \\%$ class imbalance ratio. The results show that CRUST did not perform well in terms of accuracy and speedups achieved compared to RETRIEVE. Except for MixUP, CRUST is similar to CRAIG, which did not perform well compared to RETRIEVE in a traditional SSL setting. Furthermore, the performance gain due to MixUP for coreset selection in the SSL setting is minimal. The minimal gain can be attributed to the fact that the hypothesized labels used for MixUP in the earlier stages of training are noisy. Furthermore, as stated earlier, CRUST was developed to tackle noisy labels in a supervised learning setting and is not developed to deal with OOD or Class Imbalance in general. The results show that RETRIEVE is more efficient compared to the other baselines. In particular, RETRIEVE is $5 \\mathbf { x }$ times faster compared to DS3L method. Other detailed results (tradeoff curves and convergence curves) are in Appendix $_ \\mathrm { H }$ . ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
173,
|
| 977 |
+
459,
|
| 978 |
+
825,
|
| 979 |
+
723
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 9
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "5 Conclusion and Broader Impacts ",
|
| 986 |
+
"text_level": 1,
|
| 987 |
+
"bbox": [
|
| 988 |
+
174,
|
| 989 |
+
751,
|
| 990 |
+
482,
|
| 991 |
+
767
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 9
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "We introduce RETRIEVE, a discrete-continuous bi-level optimization based coreset selection method for efficient and robust semi-supervised learning. We show connections with weak-submodularity, which enables the coreset selection in RETRIEVE to be solved using a scalable stochastic greedy algorithm. Empirically, we show that RETRIEVE is very effective for SSL. In particular, it achieves $3 \\times$ speedup on a range of SSL approaches like VAT, MT, and FixMatch with around $0 . 7 \\%$ accuracy loss and a $2 \\times$ speedup with no accuracy loss. In the case of robust SSL with imbalance and OOD data, RETRIEVE outperforms existing SOTA methods while being $5 \\times$ faster. We believe RETRIEVE has a significant positive societal impact by making SSL algorithms (specifically robust SSL) significantly faster and more energy-efficient, thereby reducing the CO2 emissions incurred during training. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
174,
|
| 1000 |
+
786,
|
| 1001 |
+
825,
|
| 1002 |
+
911
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 9
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "6 Acknowledgments and Disclosure of Funding ",
|
| 1009 |
+
"text_level": 1,
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
88,
|
| 1013 |
+
583,
|
| 1014 |
+
107
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 10
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "We would like to thank NeurIPS area chairs and anonymous reviewers for their efforts in reviewing this paper and their constructive comments! RI and KK were funded by the National Science Foundation(NSF) under Grant Number 2106937, a startup grant from UT Dallas, and a Google and Adobe research award. FC and XZ were funded by National Science Foundation(NSF) under Grant Numbers 1815696, 1750911, and 2107449. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation, Google or Adobe. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
173,
|
| 1023 |
+
121,
|
| 1024 |
+
826,
|
| 1025 |
+
218
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 10
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "References ",
|
| 1032 |
+
"text_level": 1,
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
174,
|
| 1035 |
+
241,
|
| 1036 |
+
266,
|
| 1037 |
+
256
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 10
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "[1] M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, M. Devin, S. Ghemawat, G. Irving, M. Isard, M. Kudlur, J. Levenberg, R. Monga, S. Moore, D. G. Murray, B. Steiner, P. Tucker, V. Vasudevan, P. Warden, M. Wicke, Y. Yu, and X. Zheng. Tensorflow: A system for largescale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pages 265–283, 2016. \n[2] J. T. Ash, C. Zhang, A. Krishnamurthy, J. Langford, and A. Agarwal. Deep batch active learning by diverse, uncertain gradient lower bounds. In International Conference on Learning Representations, 2020. \n[3] M. Belkin and P. Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In Proceedings of the 14th International Conference on Neural Information Processing Systems: Natural and Synthetic, NIPS’01, page 585–591, Cambridge, MA, USA, 2001. MIT Press. \n[4] D. Berthelot, N. Carlini, I. Goodfellow, N. Papernot, A. Oliver, and C. Raffel. Mixmatch: A holistic approach to semi-supervised learning, 2019. \n[5] O. Bojar, R. Chatterjee, C. Federmann, M. Fishel, Y. Graham, B. Haddow, M. Huck, A. JimenoYepes, P. Koehn, A. Martins, C. Monz, M. Negri, A. Névéol, M. L. Neves, M. Post, M. Turchi, and K. Verspoor, editors. Proceedings of the Fourth Conference on Machine Translation, WMT 2019, Florence, Italy, August 1-2, 2019 - Volume 1: Research Papers. Association for Computational Linguistics, 2019. \n[6] T. Campbell and T. Broderick. Bayesian coreset construction via greedy iterative geodesic ascent. In J. Dy and A. Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 698–706. PMLR, 10–15 Jul 2018. \n[7] O. Chapelle, B. Schlkopf, and A. Zien. Semi-Supervised Learning. The MIT Press, 1st edition, 2010. \n[8] K. Chen, L. Yao, D. Zhang, X. Chang, G. Long, and S. Wang. Distributionally robust semisupervised learning for people-centric sensing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3321–3328, 2019. \n[9] Y. Chen, X. Zhu, W. Li, and S. Gong. Semi-supervised learning under class distribution mismatch. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04):3569–3576, Apr. 2020. \n[10] D. Cire¸san, U. Meier, and J. Schmidhuber. Multi-column deep neural networks for image classification, 2012. \n[11] A. Coates and A. Y. Ng. The importance of encoding versus training with sparse coding and vector quantization. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, page 921–928, Madison, WI, USA, 2011. Omnipress. \n[12] A. Das and D. Kempe. Submodular meets spectral: Greedy algorithms for subset selection, sparse approximation and dictionary selection. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, page 1057–1064, Madison, WI, USA, 2011. Omnipress. \n[13] D. Feldman. Core-sets: Updated survey. In Sampling Techniques for Supervised or Unsupervised Tasks, pages 23–44. Springer, 2020. \n[14] C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135. PMLR, 2017. \n[15] K. Gatmiry and M. Gomez-Rodriguez. On the network visibility problem. CoRR, abs/1811.07863, 2018. \n[16] D. Golovin, B. Solnik, S. Moitra, G. Kochanski, J. E. Karro, and D. Sculley, editors. Google Vizier: A Service for Black-Box Optimization, 2017. \n[17] L.-Z. Guo, Z.-Y. Zhang, Y. Jiang, Y.-F. Li, and Z.-H. Zhou. Safe deep semi-supervised learning for unseen-class unlabeled data. In H. D. III and A. Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3897–3906. PMLR, 13–18 Jul 2020. \n[18] J. R. Hershey, S. J. Rennie, P. A. Olsen, and T. T. Kristjansson. Super-human multi-talker speech recognition: A graphical modeling approach. Comput. Speech Lang., 24(1):45–66, Jan. 2010. \n[19] G. E. Hinton and R. R. Salakhutdinov. Using deep belief nets to learn covariance kernels for gaussian processes. In J. Platt, D. Koller, Y. Singer, and S. Roweis, editors, Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2008. \n[20] R. Johnson and T. Zhang. Semi-supervised convolutional neural networks for text categorization via region embedding. Advances in neural information processing systems, 28:919–927, 2015. \n[21] V. Kaushal, R. Iyer, S. Kothawade, R. Mahadev, K. Doctor, and G. Ramakrishnan. Learning from less data: A unified data subset selection and active learning framework for computer vision. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1289–1299. IEEE, 2019. \n[22] R. Khanna, E. Elenberg, A. Dimakis, S. Negahban, and J. Ghosh. Scalable greedy feature selection via weak submodularity. In Artificial Intelligence and Statistics, pages 1560–1568. PMLR, 2017. \n[23] K. Killamsetty, D. Sivasubramanian, B. Mirzasoleiman, G. Ramakrishnan, A. De, and R. Iyer. Grad-match: A gradient matching based data subset selection for efficient learning, 2021. \n[24] K. Killamsetty, D. Sivasubramanian, G. Ramakrishnan, and R. Iyer. Glister: Generalization based data subset selection for efficient and robust learning, 2021. \n[25] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \n[26] D. P. Kingma, S. Mohamed, D. Jimenez Rezende, and M. Welling. Semi-supervised learning with deep generative models. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014. \n[27] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. \n[28] A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. 2009. \n[29] A. Lacoste, A. Luccioni, V. Schmidt, and T. Dandres. Quantifying the carbon emissions of machine learning. arXiv preprint arXiv:1910.09700, 2019. \n[30] B. Lakshminarayanan, A. Pritzel, and C. Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. \n[31] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541–551, 1989. \n[32] Y. LeCun and C. Cortes. MNIST handwritten digit database. 2010. \n[33] B. Liu, Z. Wu, H. Hu, and S. Lin. Deep metric transfer for label propagation with limited annotated data, 2019. \n[34] Y. Liu, R. Iyer, K. Kirchhoff, and J. Bilmes. SVitchboard II and FiSVer I: High-quality limitedcomplexity corpora of conversational English speech. In Sixteenth Annual Conference of the International Speech Communication Association, 2015. \n[35] I. Loshchilov and F. Hutter. SGDR: stochastic gradient descent with restarts. CoRR, abs/1608.03983, 2016. \n[36] A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142–150, Portland, Oregon, USA, June 2011. Association for Computational Linguistics. \n[37] M. Minoux. Accelerated greedy algorithms for maximizing submodular set functions. In Optimization techniques, pages 234–243. Springer, 1978. \n[38] B. Mirzasoleiman, A. Badanidiyuru, A. Karbasi, J. Vondrák, and A. Krause. Lazier than lazy greedy. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, AAAI’15, page 1812–1818. AAAI Press, 2015. \n[39] B. Mirzasoleiman, J. Bilmes, and J. Leskovec. Coresets for data-efficient training of machine learning models, 2020. \n[40] B. Mirzasoleiman, K. Cao, and J. Leskovec. Coresets for robust training of deep neural networks against noisy labels. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 11465–11477. Curran Associates, Inc., 2020. \n[41] T. Miyato, A. M. Dai, and I. J. Goodfellow. Adversarial training methods for semi-supervised text classification. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. \n[42] T. Miyato, S. ichi Maeda, M. Koyama, and S. Ishii. Virtual adversarial training: A regularization method for supervised and semi-supervised learning, 2018. \n[43] Y. Netzer, T. Wang, A. Coates, A. Bissacco, B. Wu, and A. Y. Ng. Reading digits in natural images with unsupervised feature learning. 2011. \n[44] A. Oliver, A. Odena, C. Raffel, E. D. Cubuk, and I. J. Goodfellow. Realistic evaluation of deep semi-supervised learning algorithms, 2019. \n[45] OpenAI, :, C. Berner, G. Brockman, B. Chan, V. Cheung, P. D˛ebiak, C. Dennison, D. Farhi, Q. Fischer, S. Hashme, C. Hesse, R. Józefowicz, S. Gray, C. Olsson, J. Pachocki, M. Petrov, H. P. d. O. Pinto, J. Raiman, T. Salimans, J. Schlatter, J. Schneider, S. Sidor, I. Sutskever, J. Tang, F. Wolski, and S. Zhang. Dota 2 with large scale deep reinforcement learning, 2019. \n[46] A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer. Automatic differentiation in pytorch. 2017. \n[47] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019. \n[48] Y. Pu, Z. Gan, R. Henao, X. Yuan, C. Li, A. Stevens, and L. Carin. Variational autoencoder for deep learning of images, labels and captions. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016. \n[49] M. Ren, W. Zeng, B. Yang, and R. Urtasun. Learning to reweight examples for robust deep learning. In International Conference on Machine Learning, pages 4334–4343. PMLR, 2018. \n[50] T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, X. Chen, and X. Chen. Improved techniques for training gans. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016. \n[51] O. Sener and S. Savarese. Active learning for convolutional neural networks: A core-set approach. In International Conference on Learning Representations, 2018. \n[52] J. Shu, Q. Xie, L. Yi, Q. Zhao, S. Zhou, Z. Xu, and D. Meng. Meta-weight-net: Learning an explicit mapping for sample weighting. In Advances in Neural Information Processing Systems, 2019. \n[53] K. Sohn, D. Berthelot, C.-L. Li, Z. Zhang, N. Carlini, E. D. Cubuk, A. Kurakin, H. Zhang, and C. Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence, 2020. \n[54] E. Strubell, A. Ganesh, and A. McCallum. Energy and policy considerations for deep learning in nlp, 2019. \n[55] C. Sun, A. Shrivastava, S. Singh, and A. Gupta. Revisiting unreasonable effectiveness of data in deep learning era, 2017. \n[56] A. Tarvainen and H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results, 2018. \n[57] K. Wei, R. Iyer, and J. Bilmes. Submodularity in data subset selection and active learning. In International Conference on Machine Learning, pages 1954–1963, 2015. \n[58] K. Wei, Y. Liu, K. Kirchhoff, C. Bartels, and J. Bilmes. Submodular subset selection for large-scale speech training data. In 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3311–3315. IEEE, 2014. \n[59] Y. Yan, Z. Xu, I. W. Tsang, G. Long, and Y. Yang. Robust semi-supervised learning through label aggregation. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. \n[60] S. Zagoruyko and N. Komodakis. Wide residual networks, 2017. \n[61] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond empirical risk minimization, 2018. \n[62] X. Zhu, Z. Ghahramani, and J. Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the Twentieth International Conference on International Conference on Machine Learning, ICML’03, page 912–919. AAAI Press, 2003. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
265,
|
| 1047 |
+
828,
|
| 1048 |
+
921
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 10
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
171,
|
| 1057 |
+
60,
|
| 1058 |
+
828,
|
| 1059 |
+
915
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 11
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
171,
|
| 1068 |
+
66,
|
| 1069 |
+
828,
|
| 1070 |
+
917
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 12
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
171,
|
| 1079 |
+
77,
|
| 1080 |
+
828,
|
| 1081 |
+
842
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 13
|
| 1084 |
+
}
|
| 1085 |
+
]
|
parse/train/jSz59N8NvUP/jSz59N8NvUP_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/jSz59N8NvUP/jSz59N8NvUP_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJeKjwvclx/rJeKjwvclx.md
ADDED
|
@@ -0,0 +1,406 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Several deep learning models have been proposed for question answering. However, due to their single-pass nature, they have no way to recover from local maxima corresponding to incorrect answers. To address this problem, we introduce the Dynamic Coattention Network (DCN) for question answering. The DCN first fuses co-dependent representations of the question and the document in order to focus on relevant parts of both. Then a dynamic pointing decoder iterates over potential answer spans. This iterative procedure enables the model to recover from initial local maxima corresponding to incorrect answers. On the Stanford question answering dataset, a single DCN model improves the previous state of the art from $7 1 . 0 \%$ F1 to $7 5 . 9 \%$ , while a DCN ensemble obtains $8 0 . 4 \%$ F1.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Question answering (QA) is a crucial task in natural language processing that requires both natural language understanding and world knowledge. Previous QA datasets tend to be high in quality due to human annotation, but small in size (Berant et al., 2014; Richardson et al., 2013). Hence, they did not allow for training data-intensive, expressive models such as deep neural networks.
|
| 16 |
+
|
| 17 |
+
To address this problem, researchers have developed large-scale datasets through semi-automated techniques (Hermann et al., 2015; Hill et al., 2016). Compared to their smaller, hand-annotated counterparts, these QA datasets allow the training of more expressive models. However, it has been shown that they differ from more natural, human annotated datasets in the types of reasoning required to answer the questions (Chen et al., 2016).
|
| 18 |
+
|
| 19 |
+
Recently, Rajpurkar et al. (2016) released the Stanford Question Answering dataset (SQuAD), which is orders of magnitude larger than all previous hand-annotated datasets and has a variety of qualities that culminate in a natural QA task. SQuAD has the desirable quality that answers are spans in a reference document. This constrains answers to the space of all possible spans. However, Rajpurkar et al. (2016) show that the dataset retains a diverse set of answers and requires different forms of logical reasoning, including multi-sentence reasoning.
|
| 20 |
+
|
| 21 |
+
We introduce the Dynamic Coattention Network (DCN), illustrated in Fig. 1, an end-to-end neural network for question answering. The model consists of a coattentive encoder that captures the interactions between the question and the document, as well as a dynamic pointing decoder that alternates between estimating the start and end of the answer span. Our single model obtains an F1 of $7 5 . 9 \%$ compared to the best published result of $7 1 . 0 \%$ (Yu et al., 2016). In addition, our ensemble model obtains an F1 of $8 0 . 4 \%$ compared to the second best result of $78 . 1 \%$ on the official SQuAD leaderboard.1
|
| 22 |
+
|
| 23 |
+
# 2 DYNAMIC COATTENTION NETWORKS
|
| 24 |
+
|
| 25 |
+
Figure 1 illustrates an overview of the DCN. We first describe the encoders for the document and the question, followed by the coattention mechanism and the dynamic decoder which produces the answer span.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Overview of the Dynamic Coattention Network.
|
| 29 |
+
|
| 30 |
+
# 2.1 DOCUMENT AND QUESTION ENCODER
|
| 31 |
+
|
| 32 |
+
Let (xQ1 , xQ2 , . . denote the sequence of word vectors corresponding to words in the question and $( x _ { 1 } ^ { D } , x _ { 2 } ^ { D } , \dots , x _ { m } ^ { D } )$ denote the same for words in the document. Using an LSTM (Hochreiter & Schmidhuber, 1997), we encode the document as: $d _ { t } = \mathrm { L S T M } _ { e n c } \left( d _ { t - 1 } , x _ { t } ^ { D } \right)$ . We define the document encoding matrix as $D = [ d _ { 1 } \ . . . \ d _ { m } \ d _ { \mathcal { O } } ] \in \mathbb { R } ^ { \ell \times ( m + 1 ) }$ . We also add a sentinel vector $d _ { \mathcal { O } }$ (Merity et al., 2016), which we later show allows the model to not attend to any particular word in the input.
|
| 33 |
+
|
| 34 |
+
The question embeddings are computed with the same LSTM to share representation power: $q _ { t } =$ $\mathrm { L S T M } _ { e n c } \left( q _ { t - 1 } , x _ { t } ^ { Q } \right)$ We define an intermediate question representation $Q ^ { \prime } = [ q _ { 1 } \dots q _ { n } q _ { \emptyset } ] \in$ $\mathbb { R } ^ { \ell \times ( n + 1 ) }$ . To allow for variation between the question encoding space and the document encoding space, we introduce a non-linear projection layer on top of the question encoding. The final representation for the question becomes: $\begin{array} { r } { \dot { Q } = \operatorname { t a n h } \left( W ^ { ( Q ) } \bar { Q ^ { \prime } } + b ^ { ( Q ) } \right) \in \mathbb { R } ^ { \ell \times ( n + 1 ) } } \end{array}$ .
|
| 35 |
+
|
| 36 |
+
# 2.2 COATTENTION ENCODER
|
| 37 |
+
|
| 38 |
+
We propose a coattention mechanism that attends to the question and document simultaneously, similar to (Lu et al., 2016), and finally fuses both attention contexts. Figure 2 provides an illustration of the coattention encoder.
|
| 39 |
+
|
| 40 |
+
We first compute the affinity matrix, which contains affinity scores corresponding to all pairs of document words and question words: $L = D ^ { \top } Q \in \mathbb { R } ^ { ( m + 1 ) \times ( n + 1 ) }$ . The affinity matrix is normalized row-wise to produce the attention weights $A ^ { Q }$ across the document for each word in the question, and column-wise to produce the attention weights $A ^ { D }$ across the question for each word in the document:
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
A ^ { Q } = \operatorname { s o f t m a x } \left( L \right) \in \mathbb { R } ^ { ( m + 1 ) \times ( n + 1 ) } { \mathrm { ~ a n d ~ } } A ^ { D } = \operatorname { s o f t m a x } \left( L ^ { \top } \right) \in \mathbb { R } ^ { ( n + 1 ) \times ( m + 1 ) }
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
Next, we compute the summaries, or attention contexts, of the document in light of each word of the question.
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
C ^ { Q } = D A ^ { Q } \in \mathbb { R } ^ { \ell \times ( n + 1 ) } .
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Coattention encoder. The affinity matrix $L$ is not shown here. We instead directly show the normalized attention weights $A ^ { D }$ and $\dot { A } ^ { Q }$ .
|
| 54 |
+
|
| 55 |
+
We similarly compute the summaries $Q A ^ { D }$ of the question in light of each word of the document. Similar to Cui et al. (2016), we also compute the summaries $C ^ { \mathcal { { Q } } } A ^ { D }$ of the previous attention contexts in light of each word of the document. These two operations can be done in parallel, as is shown in Eq. 3. One possible interpretation for the operation $C ^ { Q } A ^ { D }$ is the mapping of question encoding into space of document encodings.
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
C ^ { D } = \left[ Q ; C ^ { Q } \right] A ^ { D } \in \mathbb { R } ^ { 2 \ell \times ( m + 1 ) } .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
We define $C ^ { D }$ , a co-dependent representation of the question and document, as the coattention context. We use the notation $[ a ; b ]$ for concatenating the vectors $a$ and $b$ horizontally.
|
| 62 |
+
|
| 63 |
+
The last step is the fusion of temporal information to the coattention context via a bidirectional LSTM:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\boldsymbol { u } _ { t } = \mathrm { B i - L S T M } \left( u _ { t - 1 } , u _ { t + 1 } , \left[ d _ { t } ; c _ { t } ^ { D } \right] \right) \in \mathbb { R } ^ { 2 \ell } .
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
We define $U = [ u _ { 1 } , \dots , u _ { m } ] \in \mathbb { R } ^ { 2 \ell \times m }$ , which provides a foundation for selecting which span may be the best possible answer, as the coattention encoding.
|
| 70 |
+
|
| 71 |
+
# 2.3 DYNAMIC POINTING DECODER
|
| 72 |
+
|
| 73 |
+
Due to the nature of SQuAD, an intuitive method for producing the answer span is by predicting the start and end points of the span (Wang & Jiang, 2016b). However, given a question-document pair, there may exist several intuitive answer spans within the document, each corresponding to a local maxima. We propose an iterative technique to select an answer span by alternating between predicting the start point and predicting the end point. This iterative procedure allows the model to recover from initial local maxima corresponding to incorrect answer spans.
|
| 74 |
+
|
| 75 |
+
Figure 3 provides an illustration of the Dynamic Decoder, which is similar to a state machine whose state is maintained by an LSTM-based sequential model. During each iteration, the decoder updates its state taking into account the coattention encoding corresponding to current estimates of the start and end positions, and produces, via a multilayer neural network, new estimates of the start and end positions.
|
| 76 |
+
|
| 77 |
+
Let $h _ { i } , s _ { i }$ , and $e _ { i }$ denote the hidden state of the LSTM, the estimate of the position, and the estimate of the end position during iteration $i$ . The LSTM state update is then described by Eq. 5.
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
h _ { i } = \mathrm { L S T M } _ { d e c } \left( h _ { i - 1 } , \left[ u _ { s _ { i - 1 } } ; u _ { e _ { i - 1 } } \right] \right)
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $u _ { s _ { i - 1 } }$ and $u _ { e _ { i - 1 } }$ are the representations corresponding to the previous estimate of the start and end positions in the coattention encoding $U$ .
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 3: Dynamic Decoder. Blue denotes the variables and functions related to estimating the start position whereas red denotes the variables and functions related to estimating the end position.
|
| 87 |
+
|
| 88 |
+
Given the current hidden state $h _ { i }$ , previous start position $u _ { s _ { i - 1 } }$ , and previous end position $u _ { e _ { i - 1 } }$ , we estimate the current start position and end position via Eq. 6 and Eq. 7.
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\begin{array} { c } { s _ { i } = \underset { t } { \operatorname { a r g m a x } } \left( \alpha _ { 1 } , \ldots , \alpha _ { m } \right) } \\ { \ } \\ { e _ { i } = \underset { t } { \operatorname { a r g m a x } } \left( \beta _ { 1 } , \ldots , \beta _ { m } \right) } \end{array}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $\alpha _ { t }$ and $\beta _ { t }$ represent the start score and end score corresponding to the tth word in the document. We compute $\alpha _ { t }$ and $\beta _ { t }$ with separate neural networks. These networks have the same architecture but do not share parameters.
|
| 95 |
+
|
| 96 |
+
Based on the strong empirical performance of Maxout Networks (Goodfellow et al., 2013) and Highway Networks (Srivastava et al., 2015), especially with regards to deep architectures, we propose a Highway Maxout Network (HMN) to compute $\alpha _ { t }$ as described by Eq. 8. The intuition behind using such model is that the QA task consists of multiple question types and document topics. These variations may require different models to estimate the answer span. Maxout provides a simple and effective way to pool across multiple model variations.
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\alpha _ { t } = \mathrm { H M N } _ { s t a r t } \left( u _ { t } , h _ { i } , u _ { s _ { i - 1 } } , u _ { e _ { i - 1 } } \right)
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Here, $u _ { t }$ is the coattention encoding corresponding to the $t$ th word in the document. $\mathrm { H M N } _ { s t a r t }$ is illustrated in Figure 4. The end score, $\beta _ { t }$ , is computed similarly to the start score $\alpha _ { t }$ , but using a separate $\mathrm { H M N } _ { e n d }$ .
|
| 103 |
+
|
| 104 |
+
We now describe the HMN model:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\begin{array} { r c l } { { \mathrm { H M N } \left( u _ { t } , h _ { i } , u _ { s _ { i - 1 } } , u _ { e _ { i - 1 } } \right) } } & { { = } } & { { \operatorname* { m a x } \left( W ^ { ( 3 ) } \left[ m _ { t } ^ { ( 1 ) } ; m _ { t } ^ { ( 2 ) } \right] + b ^ { ( 3 ) } \right) } } \\ { { r } } & { { = } } & { { \operatorname { t a n h } \left( W ^ { ( D ) } \left[ h _ { i } ; u _ { s _ { i - 1 } } ; u _ { e _ { i - 1 } } \right] \right) } } \\ { { m _ { t } ^ { ( 1 ) } } } & { { = } } & { { \operatorname* { m a x } \left( W ^ { ( 1 ) } \left[ u _ { t } ; r \right] + b ^ { ( 1 ) } \right) } } \\ { { m _ { t } ^ { ( 2 ) } } } & { { = } } & { { \operatorname* { m a x } \left( W ^ { ( 2 ) } m _ { t } ^ { ( 1 ) } + b ^ { ( 2 ) } \right) } } \end{array}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $r \in \mathbb { R } ^ { \ell }$ is a non-linear projection of the current state with parameters $W ^ { ( D ) } \in \mathbb { R } ^ { \ell \times 5 \ell }$ , $m _ { t } ^ { ( 1 ) }$ is the output of the first maxout layer with parameters $W ^ { ( 1 ) } \in \mathbb { R } ^ { p \times \ell \times 3 \ell }$ and $b ^ { ( 1 ) } \in \mathbb { R } ^ { p \times \ell }$ , and $m _ { t } ^ { ( 2 ) }$ is the output of the second maxout layer with parameters $W ^ { ( 2 ) } \in \mathbb { R } ^ { p \times \ell \times \ell }$ and $b ^ { ( 2 ) } \in \mathbb { R } ^ { p \times \ell }$ . $m _ { t } ^ { ( 1 ) }$ and m(2)t a re fed into the final maxout layer, which has parameters $W ^ { ( 3 ) } \in \mathbb { R } ^ { p \times 1 \times 2 \ell }$ , and $b ^ { ( 3 ) } \in \mathbb { R } ^ { p }$ . $p$ is the pooling size of each maxout layer. The max operation computes the maximum value over the first dimension of a tensor. We note that there is highway connection between the output of the first maxout layer and the last maxout layer.
|
| 111 |
+
|
| 112 |
+
To train the network, we minimize the cumulative softmax cross entropy of the start and end points across all iterations. The iterative procedure halts when both the estimate of the start position and the estimate of the end position no longer change, or when a maximum number of iterations is reached. Details can be found in Section 4.1
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 4: Highway Maxout Network. Dotted lines denote highway connections.
|
| 116 |
+
|
| 117 |
+
# 3 RELATED WORK
|
| 118 |
+
|
| 119 |
+
Statistical QA Traditional approaches to question answering typically involve rule-based algorithms or linear classifiers over hand-engineered feature sets. Richardson et al. (2013) proposed two baselines, one that uses simple lexical features such as a sliding window to match bags of words, and another that uses word-distances between words in the question and in the document. Berant et al. (2014) proposed an alternative approach in which one first learns a structured representation of the entities and relations in the document in the form of a knowledge base, then converts the question to a structured query with which to match the content of the knowledge base. Wang et al. (2015) described a statistical model using frame semantic features as well as syntactic features such as part of speech tags and dependency parses. Chen et al. (2016) proposed a competitive statistical baseline using a variety of carefully crafted lexical, syntactic, and word order features.
|
| 120 |
+
|
| 121 |
+
Neural QA Neural attention models have been widely applied for machine comprehension or question-answering in NLP. Hermann et al. (2015) proposed an AttentiveReader model with the release of the CNN/Daily Mail cloze-style question answering dataset. Hill et al. (2016) released another dataset steming from the children’s book and proposed a window-based memory network. Kadlec et al. (2016) presented a pointer-style attention mechanism but performs only one attention step. Sordoni et al. (2016) introduced an iterative neural attention model and applied it to cloze-style machine comprehension tasks.
|
| 122 |
+
|
| 123 |
+
Recently, Rajpurkar et al. (2016) released the SQuAD dataset. Different from cloze-style queries, answers include non-entities and longer phrases, and questions are more realistic. For SQuAD, Wang & Jiang (2016b) proposed an end-to-end neural network model that consists of a Match-LSTM encoder, originally introduced in Wang & Jiang (2016a), and a pointer network decoder (Vinyals et al., 2015); Yu et al. (2016) introduced a dynamic chunk reader, a neural reading comprehension model that extracts a set of answer candidates of variable lengths from the document and ranks them to answer the question.
|
| 124 |
+
|
| 125 |
+
Lu et al. (2016) proposed a hierarchical co-attention model for visual question answering, which achieved state of the art result on the COCO-VQA dataset (Antol et al., 2015). In (Lu et al., 2016), the co-attention mechanism computes a conditional representation of the image given the question, as well as a conditional representation of the question given the image.
|
| 126 |
+
|
| 127 |
+
Inspired by the above works, we propose a dynamic coattention model (DCN) that consists of a novel coattentive encoder and dynamic decoder. In our model, instead of estimating the start and end positions of the answer span in a single pass (Wang & Jiang, 2016b), we iteratively update the start and end positions in a similar fashion to the Iterative Conditional Modes algorithm (Besag, 1986).
|
| 128 |
+
|
| 129 |
+
Table 1: Leaderboard performance at the time of writing (Nov 4 2016). ∗ indicates that the model used for submission is unpublished. − indicates that the development scores were not publicly available at the time of writing.
|
| 130 |
+
|
| 131 |
+
<table><tr><td>Model</td><td>Dev EM</td><td>Dev F1</td><td>Test EM</td><td>Test F1</td></tr><tr><td>Ensemble</td><td></td><td></td><td></td><td></td></tr><tr><td>DCN (Ours)</td><td>70.3</td><td>79.4</td><td>71.2</td><td>80.4</td></tr><tr><td>Microsoft Research Asia *</td><td>一</td><td>1</td><td>69.4</td><td>78.3</td></tr><tr><td>Allen Institute *</td><td>69.2</td><td>77.8</td><td>69.9</td><td>78.1</td></tr><tr><td>Singapore Management University *</td><td>67.6</td><td>76.8</td><td>67.9</td><td>77.0</td></tr><tr><td>Google NYC *</td><td>68.2</td><td>76.7</td><td>一</td><td></td></tr><tr><td>Single model</td><td></td><td></td><td></td><td></td></tr><tr><td>DCN (Ours)</td><td>65.4</td><td>75.6</td><td>66.2</td><td>75.9</td></tr><tr><td>Microsoft Research Asia *</td><td>65.9</td><td>75.2</td><td>65.5</td><td>75.0</td></tr><tr><td>Google NYC *</td><td>66.4</td><td>74.9</td><td>1</td><td>1</td></tr><tr><td>Singapore Management University *</td><td>1</td><td>1</td><td>64.7</td><td>73.7</td></tr><tr><td>Carnegie Mellon University</td><td>1</td><td>1</td><td>62.5</td><td>73.3</td></tr><tr><td>Dynamic Chunk Reader (Yu et al., 2016)</td><td>62.5</td><td>71.2</td><td>62.5</td><td>71.0</td></tr><tr><td>Match-LSTM (Wang & Jiang,2016b)</td><td>59.1</td><td>70.0</td><td>59.5</td><td>70.3</td></tr><tr><td>Baseline (Rajpurkar et al., 2016)</td><td>40.0</td><td>51.0</td><td>40.4</td><td>51.0</td></tr><tr><td>Human (Rajpurkar et al., 2016)</td><td>81.4</td><td>91.0</td><td>82.3</td><td>91.2</td></tr></table>
|
| 132 |
+
|
| 133 |
+
# 4 EXPERIMENTS
|
| 134 |
+
|
| 135 |
+
# 4.1 IMPLEMENTATION DETAILS
|
| 136 |
+
|
| 137 |
+
We train and evaluate our model on the SQuAD dataset. To preprocess the corpus, we use the tokenizer from Stanford CoreNLP (Manning et al., 2014). We use as GloVe word vectors pretrained on the 840B Common Crawl corpus (Pennington et al., 2014). We limit the vocabulary to words that are present in the Common Crawl corpus and set embeddings for out-of-vocabulary words to zero. Empirically, we found that training the embeddings consistently led to overfitting and subpar performance, and hence only report results with fixed word embeddings.
|
| 138 |
+
|
| 139 |
+
We use a max sequence length of 600 during training and a hidden state size of 200 for all recurrent units, maxout layers, and linear layers. All LSTMs have randomly initialized parameters and an initial state of zero. Sentinel vectors are randomly initialized and optimized during training. For the dynamic decoder, we set the maximum number of iterations to 4 and use a maxout pool size of 16. We use dropout to regularize our network during training (Srivastava et al., 2014), and optimize the model using ADAM (Kingma & Ba, 2014). All models are implemented and trained with Chainer (Tokui et al., 2015).
|
| 140 |
+
|
| 141 |
+
# 4.2 RESULTS
|
| 142 |
+
|
| 143 |
+
Evaluation on the SQuAD dataset consists of two metrics. The exact match score (EM) calculates the exact string match between the predicted answer and a ground truth answer. The F1 score calculates the overlap between words in the predicted answer and a ground truth answer. Because a document-question pair may have several ground truth answers, the EM and F1 for a documentquestion pair is taken to be the maximum value across all ground truth answers. The overall metric is then computed by averaging over all document-question pairs. The offical SQuAD evaluation is hosted on CodaLab 2. The training and development sets are publicly available while the test set is withheld.
|
| 144 |
+
|
| 145 |
+
The performance of the Dynamic Coattention Network on the SQuAD dataset, compared to other submitted models on the leaderboard 3, is shown in Table 1. At the time of writing, our singlemodel DCN ranks first at $6 6 . 2 \%$ exact match and $7 5 . 9 \%$ F1 on the test data among single-model submissions. Our ensemble DCN ranks first overall at $7 1 . 6 \%$ exact match and $8 0 . 4 \%$ F1 on the test data.
|
| 146 |
+
|
| 147 |
+
The DCN has the capability to estimate the start and end points of the answer span multiple times, each time conditioned on its previous estimates. By doing so, the model is able to explore local maxima corresponding to multiple plausible answers, as is shown in Figure 5.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Question 1: Who recovered Tolbert's fumble?
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Question 3: What kind of weapons did Tesla's treatise concern?
|
| 156 |
+
Figure 5: Examples of the start and end conditional distributions produced by the dynamic decoder. Odd (blue) rows denote the start distributions and even (red) rows denote the end distributions. i indicates the iteration number of the dynamic decoder. Higher probability mass is indicated by darker regions. The offset corresponding to the word with the highest probability mass is shown on the right hand side. The predicted span is underlined in red, and a ground truth answer span is underlined in green.
|
| 157 |
+
|
| 158 |
+
For example, Question 1 in Figure 5 demonstrates an instance where the model initially guesses an incorrect start point and a correct end point. In subsequent iterations, the model adjusts the start point, ultimately arriving at the correct start point in iteration 3. Similarly, the model gradually shifts probability mass for the end point to the correct word.
|
| 159 |
+
|
| 160 |
+
Question 2 shows an example in which both the start and end estimates are initially incorrect. The model then settles on the correct answer in the next iteration.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 6: Performance of the DCN for various lengths of documents, questions, and answers. The blue dot indicates the mean F1 at given length. The vertical bar represents the standard deviation of F1s at a given length.
|
| 164 |
+
|
| 165 |
+
While the dynamic nature of the decoder allows the model to escape initial local maxima corresponding to incorrect answers, Question 3 demonstrates a case where the model is unable to decide between multiple local maxima despite several iterations. Namely, the model alternates between the answers “charged particle beam” and “particle beam weapons” indefinitely. Empirically, we observe that the model, trained with a maximum iteration of 4, takes 2.7 iterations to converge to an answer on average.
|
| 166 |
+
|
| 167 |
+
Model Ablation The performance of our model and its ablations on the SQuAD development set is shown in Table 2. On the decoder side, we experiment with various pool sizes for the HMN maxout layers, using a 2-layer MLP instead of a HMN, and forcing the HMN decoder to a single iteration. Empirically, we achieve the best performance on the development set with an iterative HMN
|
| 168 |
+
|
| 169 |
+
Table 2: Single model ablations on the development set.
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Model</td><td>Dev EM</td><td>Dev F1</td></tr><tr><td>Dynamic Coattention Network (DCN)</td><td></td><td></td></tr><tr><td>pool size 16 HMN</td><td>65.4</td><td>75.6</td></tr><tr><td>pool size 8 HMN</td><td>64.4</td><td>74.9</td></tr><tr><td>pool size 4 HMN</td><td>65.2</td><td>75.2</td></tr><tr><td>DCN with 2-layer MLP instead of HMN</td><td>63.8</td><td>74.4</td></tr><tr><td>DCN with single iteration decoder</td><td>63.7</td><td>74.0</td></tr><tr><td>DCN with Wang & Jiang (2016b) attention</td><td>63.7</td><td>73.7</td></tr></table>
|
| 172 |
+
|
| 173 |
+
with pool size 16, and find that the model consistently benefits from a deeper, iterative decoder network. The performance improves as the number of maximum allowed iterations increases, with little improvement after 4 iterations. On the encoder side, replacing the coattention mechanism with an attention mechanism similar to Wang & Jiang (2016b) by setting $C ^ { D }$ to $Q A ^ { D }$ in equation 3 results in a 1.9 point F1 drop. This suggests that, at an additional cost of a softmax computation and a dot product, the coattention mechanism provides a simple and effective means to better encode the document and question sequences. Further studies, such as performance without attention and performance on questions requiring different types of reasoning can be found in the appendix.
|
| 174 |
+
|
| 175 |
+
Performance across length One point of interest is how the performance of the DCN varies with respect to the length of document. Intuitively, we expect the model performance to deteriorate with longer examples, as is the case with neural machine translation (Luong et al., 2015). However, as in shown in Figure 6, there is no notable performance degradation for longer documents and questions contrary to our expectations. This suggests that the coattentive encoder is largely agnostic to long documents, and is able to focus on small sections of relevant text while ignoring the rest of the (potentially very long) document. We do note a performance degradation with longer answers. However, this is intuitive given the nature of the evaluation metric. Namely, it becomes increasingly challenging to compute the correct word span as the number of words increases.
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Figure 7: Performance of the DCN across question types. The height of each bar represents the mean F1 for the given question type. The lower number denotes how many instances in the dev set are of the corresponding question type.
|
| 179 |
+
|
| 180 |
+
Performance across question type Another natural way to analyze the performance of the model is to examine its performance across question types. In Figure 7, we note that the mean F1 of DCN exceeds those of previous systems (Wang & Jiang, 2016b; Yu et al., 2016) across all question types. The DCN, like other models, is adept at “when” questions and struggles with the more complex “why” questions.
|
| 181 |
+
|
| 182 |
+
Breakdown of F1 distribution Finally, we note that the DCN performance is highly bimodal. On the development set, the model perfectly predicts $100 \%$ F1) an answer for $6 2 . 2 \%$ of examples and predicts a completely wrong answer $0 \%$ F1) for $1 6 . 3 \%$ of examples. That is, the model picks out partial answers only $2 1 . 5 \%$ of the time. Upon qualitative inspections of the $0 \%$ F1 answers, some of which are shown in Appendix A.4, we observe that when the model is wrong, its mistakes tend to have the correct “answer type” (eg. person for a “who” question, method for a “how” question) and the answer boundaries encapsulate a well-defined phrase.
|
| 183 |
+
|
| 184 |
+
# 5 CONCLUSION
|
| 185 |
+
|
| 186 |
+
We proposed the Dynamic Coattention Network, an end-to-end neural network architecture for question answering. The DCN consists of a coattention encoder which learns co-dependent representations of the question and of the document, and a dynamic decoder which iteratively estimates the answer span. We showed that the iterative nature of the model allows it to recover from initial local maxima corresponding to incorrect predictions. On the SQuAD dataset, the DCN achieves the state of the art results at $7 5 . 9 \%$ F1 with a single model and $8 0 . 4 \%$ F1 with an ensemble. The DCN significantly outperforms all other models.
|
| 187 |
+
|
| 188 |
+
# ACKNOWLEDGMENTS
|
| 189 |
+
|
| 190 |
+
We thank Kazuma Hashimoto and Bryan McCann for their help and insights.
|
| 191 |
+
|
| 192 |
+
# REFERENCES
|
| 193 |
+
|
| 194 |
+
Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015.
|
| 195 |
+
|
| 196 |
+
Jonathan Berant, Vivek Srikumar, Pei-Chun Chen, Abby Vander Linden, Brittany Harding, Brad Huang, Peter Clark, and Christopher D Manning. Modeling biological processes for reading comprehension. In EMNLP, 2014.
|
| 197 |
+
|
| 198 |
+
Julian Besag. On the statistical analysis of dirty pictures. Journal of the Royal Statistical Society. Series B (Methodological), pp. 259–302, 1986.
|
| 199 |
+
|
| 200 |
+
Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Association for Computational Linguistics (ACL), 2016.
|
| 201 |
+
|
| 202 |
+
Yiming Cui, Zhipeng Chen, Si Wei, Shijin Wang, Ting Liu, and Guoping Hu. Attention-overattention neural networks for reading comprehension. arXiv preprint arXiv:1607.04423, 2016.
|
| 203 |
+
|
| 204 |
+
Ian J Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron C Courville, and Yoshua Bengio. Maxout networks. ICML (3), 28:1319–1327, 2013.
|
| 205 |
+
|
| 206 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, pp. 1693–1701, 2015.
|
| 207 |
+
|
| 208 |
+
Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The goldilocks principle: Reading children’s books with explicit memory representations. In ICLR, 2016.
|
| 209 |
+
|
| 210 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 211 |
+
|
| 212 |
+
Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. arXiv preprint arXiv:1603.01547, 2016.
|
| 213 |
+
|
| 214 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 215 |
+
|
| 216 |
+
Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. arXiv preprint arXiv:1606.00061, 2016.
|
| 217 |
+
|
| 218 |
+
Christopher D Manning, Mihai Surdeanu, John Bauer, Jenny Rose Finkel, Steven Bethard, and David McClosky. The stanford corenlp natural language processing toolkit. In ACL (System Demonstrations), pp. 55–60, 2014.
|
| 219 |
+
|
| 220 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
|
| 221 |
+
|
| 222 |
+
Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–43, 2014.
|
| 223 |
+
|
| 224 |
+
P. Rajpurkar, J. Zhang, K. Lopyrev, and P. Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. In Empirical Methods in Natural Language Processing (EMNLP), 2016.
|
| 225 |
+
|
| 226 |
+
Matthew Richardson, Christopher JC Burges, and Erin Renshaw. Mctest: A challenge dataset for the open-domain machine comprehension of text. In EMNLP, volume 3, pp. 4, 2013.
|
| 227 |
+
|
| 228 |
+
Alessandro Sordoni, Phillip Bachman, and Yoshua Bengio. Iterative alternating neural attention for machine reading. arXiv preprint arXiv:1606.02245, 2016.
|
| 229 |
+
|
| 230 |
+
Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014.
|
| 231 |
+
|
| 232 |
+
Rupesh K Srivastava, Klaus Greff, and Juergen Schmidhuber. Training very deep networks. In Advances in Neural Information Processing Systems 28, pp. 2377–2385, 2015.
|
| 233 |
+
|
| 234 |
+
Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. Chainer: a next-generation open source framework for deep learning. In Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Twenty-ninth Annual Conference on Neural Information Processing Systems (NIPS), 2015.
|
| 235 |
+
|
| 236 |
+
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015.
|
| 237 |
+
|
| 238 |
+
Hai Wang, Mohit Bansal, Kevin Gimpel, and David McAllester. Machine comprehension with syntax, frames, and semantics. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pp. 700–706. Association for Computational Linguistics, 2015.
|
| 239 |
+
|
| 240 |
+
Shuohang Wang and Jing Jiang. Learning natural language inference with LSTM. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1442–1451. Association for Computational Linguistics, 2016a.
|
| 241 |
+
|
| 242 |
+
Shuohang Wang and Jing Jiang. Machine comprehension using match-LSTM and answer pointer. arXiv preprint arXiv:1608.07905, 2016b.
|
| 243 |
+
|
| 244 |
+
Y. Yu, W. Zhang, K. Hasan, M. Yu, B. Xiang, and B. Zhou. End-to-End Reading Comprehension with Dynamic Answer Chunk Ranking. ArXiv e-prints, October 2016.
|
| 245 |
+
|
| 246 |
+
Yang Yu, Wei Zhang, Kazi Hasan, Mo Yu, Bing Xiang, and Bowen Zhou. End-to-end answer chunk extraction and ranking for reading comprehension. arXiv preprint arXiv:1610.09996v2, 2016.
|
| 247 |
+
|
| 248 |
+
# A APPENDIX
|
| 249 |
+
|
| 250 |
+
# A.1 PERFORMANCE WITHOUT ATTENTION
|
| 251 |
+
|
| 252 |
+
In our experiments, we also investigate a model without any attention mechanism. In this model, the encoder is a simple LSTM network that first ingests the question and then ingests the document. The hidden states corresponding to words in the document is then passed to the decoder. This model achieves $3 3 . 3 \%$ exact match and $4 1 . 9 \%$ F1, significantly worse than models with attention.
|
| 253 |
+
|
| 254 |
+
# A.2 SAMPLES REQUIRING DIFFERENT TYPES OF REASONING
|
| 255 |
+
|
| 256 |
+
We generate predictions for examples requiring different types of reasoning, given by Rajpurkar et al. (2016). Because this set of examples is very limited, they do not conclusively demonstrate the effectiveness of the model on different types of reasoning tasks. Nevertheless, these examples show that the DCN is a promising architecture for challenging question answering tasks including those that involve reasoning over multiple sentences.
|
| 257 |
+
|
| 258 |
+
WHAT IS THE RANKINE CYCLE SOMETIMES CALLED?
|
| 259 |
+
|
| 260 |
+
The Rankine cycle is sometimes referred to as a practical Carnot cycle because, when an efficient turbine is used, the TS diagram begins to resemble the Carnot cycle.
|
| 261 |
+
|
| 262 |
+
Type of reasoning Lexical variation (synonymy)
|
| 263 |
+
|
| 264 |
+
Ground truth practical Carnot cycle
|
| 265 |
+
|
| 266 |
+
Prediction practical Carnot cycle
|
| 267 |
+
|
| 268 |
+
WHICH TWO GOVERNING BODIES HAVE LEGISLATIVE VETO POWER?
|
| 269 |
+
|
| 270 |
+
While the Commision has a monopoly on initiating legislation, the European Parliament and the Council of the European Union have powers of amendment and veto during the legislative progress.
|
| 271 |
+
|
| 272 |
+
Type of reasoning Lexical variation (world knowledge)
|
| 273 |
+
|
| 274 |
+
Ground truth the European Parliament and the Council of the European Union
|
| 275 |
+
|
| 276 |
+
Prediction European Parliament and the Council of the European Union
|
| 277 |
+
|
| 278 |
+
WHAT SHAKESPEARE SCHOLAR IS CURRENTLY ON THE UNIVERSITYS FACULTY?
|
| 279 |
+
|
| 280 |
+
Current faculty include the anthropologist Marshall Sahlins, historian Dipesh Chakrabarty, ... Shakespeare scholar David Bevington, and renowned political scientists John Mearsheimer and Robert Pape.
|
| 281 |
+
|
| 282 |
+
Type of reasoning Syntactic variation
|
| 283 |
+
|
| 284 |
+
Ground truth David Bevington
|
| 285 |
+
|
| 286 |
+
Prediction David Bevington
|
| 287 |
+
|
| 288 |
+
WHAT COLLECTION DOES THE V&A THEATRE & PERFORMANCE GALLERIES HOLD?
|
| 289 |
+
|
| 290 |
+
The V&A Theatre & Performance galleries, formerly the Theatre Museum, opened in March 2009. The collections are stored by the V&A, and are available for research, exhibitions and other shows. They hold the UK’s biggest national collection of material about live performance in the UK since Shakespeare’s day, covering drama, dance, musical theatre, circus, music hall, rock and pop, and most other forms of live entertainment.
|
| 291 |
+
|
| 292 |
+
Type of reasoning Multiple sentence reasoning
|
| 293 |
+
|
| 294 |
+
Ground truth Material about live performance
|
| 295 |
+
|
| 296 |
+
Prediction UK’s biggest national collection of material about live performance in the UK since Shakespeare’s day
|
| 297 |
+
|
| 298 |
+
WHAT IS THE MAIN GOAL OF CRIMINAL PUNISHMENT OF CIVIL DISOBEDIENTS?
|
| 299 |
+
|
| 300 |
+
# Type of reasoning Ambiguous
|
| 301 |
+
|
| 302 |
+
Along with giving the offender his ”just deserts”, achieving crime control via incapacitation and deterrence is a major goal of crime punishment.
|
| 303 |
+
|
| 304 |
+
Ground truth achieving crime control via incapacitation and deterrence
|
| 305 |
+
|
| 306 |
+
Prediction achieving crime control via incapacitation and deterrence
|
| 307 |
+
|
| 308 |
+
A.3 SAMPLES OF CORRECT SQUAD PREDICTIONS BY THE DYNAMIC COATTENTION NETWORK
|
| 309 |
+
|
| 310 |
+
HOW DID THE MONGOLS ACQUIRE CHINESE PRINTING TECHNOLOGY?
|
| 311 |
+
|
| 312 |
+
ID: 572882242ca10214002da420
|
| 313 |
+
|
| 314 |
+
The Mongol rulers patronized the Yuan printing industry. Chinese printing technology was transferred to the Mongols through Kingdom of Qocho and Tibetan intermediaries. Some Yuan documents such as Wang Zhen’s Nong Shu were printed with earthenware movable type, a technology invented in the 12th century. However, most published works were still produced through traditional block printing techniques. The publication of a Taoist text inscribed with the name of Tregene Khatun, gedei’s wife, is one of the first printed works sponsored by the Mongols. In 1273, the Mongols created the Imperial Library Directorate, a government-sponsored printing office. The Yuan government established centers for printing throughout China. Local schools and government agencies were funded to support the publishing of books.
|
| 315 |
+
|
| 316 |
+
Ground truth through Kingdom of Qocho and Tibetan intermediaries
|
| 317 |
+
|
| 318 |
+
Prediction: through Kingdom of Qocho and Tibetan intermediaries
|
| 319 |
+
|
| 320 |
+
WHO APPOINTS ELDERS?
|
| 321 |
+
|
| 322 |
+
ID 5730d473b7151e1900c0155b
|
| 323 |
+
|
| 324 |
+
Elders are called by God, affirmed by the church, and ordained by a bishop to a ministry of Word, Sacrament, Order and Service within the church. They may be appointed to the local church, or to other valid extension ministries of the church. Elders are given the authority to preach the Word of God, administer the sacraments of the church, to provide care and counseling, and to order the life of the church for ministry and mission. Elders may also be assigned as District Superintendents, and they are eligible for election to the episcopacy. Elders serve a term of 23 years as provisional Elders prior to their ordination.
|
| 325 |
+
|
| 326 |
+
Ground truth bishop, the local church
|
| 327 |
+
|
| 328 |
+
Prediction a bishop
|
| 329 |
+
|
| 330 |
+
AN ALGORITHM FOR X WHICH REDUCES TO C WOULD ALLOW US TO DO WHAT?
|
| 331 |
+
|
| 332 |
+
ID 56e1ce08e3433e14004231a6
|
| 333 |
+
|
| 334 |
+
This motivates the concept of a problem being hard for a complexity class. A problem X is hard for a class of problems C if every problem in C can be reduced to X. Thus no problem in C is harder than X, since an algorithm for X allows us to solve any problem in C. Of course, the notion of hard problems depends on the type of reduction being used. For complexity classes larger than P, polynomial-time reductions are commonly used. In particular, the set of problems that are hard for NP is the set of NP-hard problems.
|
| 335 |
+
|
| 336 |
+
Ground truth solve any problem in C
|
| 337 |
+
|
| 338 |
+
Prediction solve any problem in C
|
| 339 |
+
|
| 340 |
+
HOW MANY GENERAL QUESTIONS ARE AVAILABLE TO OPPOSITION LEADERS?
|
| 341 |
+
|
| 342 |
+
ID 572fd7b8947a6a140053cd3e
|
| 343 |
+
|
| 344 |
+
Parliamentary time is also set aside for question periods in the debating chamber. A ”General Question Time” takes place on a Thursday between $1 1 { : } 4 0 \ \mathrm { a . m }$ . and $1 2 \ \mathrm { p . m }$ . where members can direct questions to any member of the Scottish Government. At $2 . 3 0 \mathrm { p m }$ , a 40-minute long themed ”Question Time” takes place, where members can ask questions of ministers in departments that are selected for questioning that sitting day, such as health and justice or education and transport. Between $1 2 \ \mathrm { p . m }$ . and $1 2 { : } 3 0 ~ \mathrm { p . m }$ . on Thursdays, when Parliament is sitting, First Minister’s Question Time takes place. This gives members an opportunity to question the First Minister directly on issues under their jurisdiction. Opposition leaders ask a general question of the First Minister and then supplementary questions. Such a practice enables a ”lead-in” to the questioner, who then uses their supplementary question to ask the First Minister any issue. The four general questions available to opposition leaders are:
|
| 345 |
+
|
| 346 |
+
# Ground truth four
|
| 347 |
+
|
| 348 |
+
# Prediction four
|
| 349 |
+
|
| 350 |
+
WHAT ARE SOME OF THE ACCEPTED GENERAL PRINCIPLES OF EUROPEAN UNION LAW?
|
| 351 |
+
|
| 352 |
+
ID 5726a00cf1498d1400e8e551
|
| 353 |
+
|
| 354 |
+
The principles of European Union law are rules of law which have been developed by the European Court of Justice that constitute unwritten rules which are not expressly provided for in the treaties but which affect how European Union law is interpreted and applies. In formulating these principles, the courts have drawn on a variety of sources, including: public international law and legal doctrines and principles present in the legal systems of European Union member states and in the jurisprudence of the European Court of Human Rights. Accepted general principles of European Union Law include fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity.
|
| 355 |
+
|
| 356 |
+
Ground truth fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity
|
| 357 |
+
|
| 358 |
+
Prediction fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity
|
| 359 |
+
|
| 360 |
+
WHY WAS TESLA RETURNED TO GOSPIC?
|
| 361 |
+
|
| 362 |
+
ID 56dfaa047aa994140058dfbd
|
| 363 |
+
|
| 364 |
+
On 24 March 1879, Tesla was returned to Gospi under police guard for not having a residence permit. On 17 April 1879, Milutin Tesla died at the age of 60 after contracting an unspecified illness (although some sources say that he died of a stroke). During that year, Tesla taught a large class of students in his old school, Higher Real Gymnasium, in Gospi.
|
| 365 |
+
|
| 366 |
+
Ground truth not having a residence permit
|
| 367 |
+
|
| 368 |
+
Prediction not having a residence permit
|
| 369 |
+
|
| 370 |
+
A.4 SAMPLES OF INCORRECT SQUAD PREDICTIONS BY THE DYNAMIC COATTENTION NETWORK
|
| 371 |
+
|
| 372 |
+
WHAT IS ONE SUPPLEMENTARY SOURCE OF EUROPEAN UNION LAW?
|
| 373 |
+
|
| 374 |
+
ID 5725c3a9ec44d21400f3d506
|
| 375 |
+
|
| 376 |
+
European Union law is applied by the courts of member states and the Court of Justice of the European Union. Where the laws of member states provide for lesser rights European Union law can be enforced by the courts of member states. In case of European Union law which should have been transposed into the laws of member states, such as Directives, the European Commission can take proceedings against the member state under the Treaty on the Functioning of the European Union. The European Court of Justice is the highest court able to interpret European Union law. Supplementary sources of European Union law include case law by the Court of Justice, international law and general principles of European Union law.
|
| 377 |
+
|
| 378 |
+
Ground truth international law
|
| 379 |
+
|
| 380 |
+
Prediction case law by the Court of Justice
|
| 381 |
+
|
| 382 |
+
Comment The prediction produced by the model is correct, however it was not selected by Mechanical Turk annotators.
|
| 383 |
+
|
| 384 |
+
WHO DESIGNED THE ILLUMINATION SYSTEMS THAT TESLA ELECTRIC LIGHT & MANUFACTURING INSTALLED?
|
| 385 |
+
|
| 386 |
+
# ID 56e0d6cf231d4119001ac424
|
| 387 |
+
|
| 388 |
+
After leaving Edison’s company Tesla partnered with two businessmen in 1886, Robert Lane and Benjamin Vail, who agreed to finance an electric lighting company in Tesla’s name, Tesla Electric Light & Manufacturing. The company installed electrical arc light based illumination systems designed by Tesla and also had designs for dynamo electric machine commutators, the first patents issued to Tesla in the US.
|
| 389 |
+
|
| 390 |
+
# Ground truth Tesla
|
| 391 |
+
|
| 392 |
+
Prediction Robert Lane and Benjamin Vail
|
| 393 |
+
|
| 394 |
+
Comment The model produces an incorrect prediction that corresponds to people that funded Tesla, instead of Tesla who actually designed the illumination system. Empirically, we find that most mistakes made by the model have the correct type (eg. named entity type) despite not including types as prior knowledge to the model. In this case, the incorrect response has the correct type of person.
|
| 395 |
+
|
| 396 |
+
CYDIPPID ARE TYPICALLY WHAT SHAPE?
|
| 397 |
+
|
| 398 |
+
# ID 57265746dd62a815002e821a
|
| 399 |
+
|
| 400 |
+
Cydippid ctenophores have bodies that are more or less rounded, sometimes nearly spherical and other times more cylindrical or egg-shaped; the common coastal ”sea gooseberry,” Pleurobrachia, sometimes has an egg-shaped body with the mouth at the narrow end, although some individuals are more uniformly round. From opposite sides of the body extends a pair of long, slender tentacles, each housed in a sheath into which it can be withdrawn. Some species of cydippids have bodies that are flattened to various extents, so that they are wider in the plane of the tentacles.
|
| 401 |
+
|
| 402 |
+
Ground truth more or less rounded, egg-shaped
|
| 403 |
+
|
| 404 |
+
# Prediction spherical
|
| 405 |
+
|
| 406 |
+
Comment Although the mistake is subtle, the prediction is incorrect. The statement “are more or less rounded, sometimes nearly spherical” suggests that the entity is more often “rounded” than “spherical” or “cylindrical” or “egg-shaped” (an answer given by an annotator). This suggests that the model has trouble discerning among multiple intuitive answers due to a lack of understanding of the relative severity of “more or less” versus “sometimes” and “other times”.
|
parse/train/rJeKjwvclx/rJeKjwvclx_content_list.json
ADDED
|
@@ -0,0 +1,2188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "DYNAMIC COATTENTION NETWORKS FOR QUESTION ANSWERING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
624,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Caiming Xiong∗, Victor Zhong∗, Richard Socher ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
172,
|
| 20 |
+
508,
|
| 21 |
+
188
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Salesforce Research \nPalo Alto, CA 94301, USA \n{cxiong, vzhong, rsocher}@salesforce.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
189,
|
| 31 |
+
573,
|
| 32 |
+
229
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
266,
|
| 43 |
+
544,
|
| 44 |
+
281
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Several deep learning models have been proposed for question answering. However, due to their single-pass nature, they have no way to recover from local maxima corresponding to incorrect answers. To address this problem, we introduce the Dynamic Coattention Network (DCN) for question answering. The DCN first fuses co-dependent representations of the question and the document in order to focus on relevant parts of both. Then a dynamic pointing decoder iterates over potential answer spans. This iterative procedure enables the model to recover from initial local maxima corresponding to incorrect answers. On the Stanford question answering dataset, a single DCN model improves the previous state of the art from $7 1 . 0 \\%$ F1 to $7 5 . 9 \\%$ , while a DCN ensemble obtains $8 0 . 4 \\%$ F1. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
308,
|
| 54 |
+
764,
|
| 55 |
+
445
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
496,
|
| 66 |
+
336,
|
| 67 |
+
513
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Question answering (QA) is a crucial task in natural language processing that requires both natural language understanding and world knowledge. Previous QA datasets tend to be high in quality due to human annotation, but small in size (Berant et al., 2014; Richardson et al., 2013). Hence, they did not allow for training data-intensive, expressive models such as deep neural networks. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
537,
|
| 77 |
+
823,
|
| 78 |
+
593
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To address this problem, researchers have developed large-scale datasets through semi-automated techniques (Hermann et al., 2015; Hill et al., 2016). Compared to their smaller, hand-annotated counterparts, these QA datasets allow the training of more expressive models. However, it has been shown that they differ from more natural, human annotated datasets in the types of reasoning required to answer the questions (Chen et al., 2016). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
599,
|
| 88 |
+
825,
|
| 89 |
+
670
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Recently, Rajpurkar et al. (2016) released the Stanford Question Answering dataset (SQuAD), which is orders of magnitude larger than all previous hand-annotated datasets and has a variety of qualities that culminate in a natural QA task. SQuAD has the desirable quality that answers are spans in a reference document. This constrains answers to the space of all possible spans. However, Rajpurkar et al. (2016) show that the dataset retains a diverse set of answers and requires different forms of logical reasoning, including multi-sentence reasoning. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
676,
|
| 99 |
+
825,
|
| 100 |
+
761
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "We introduce the Dynamic Coattention Network (DCN), illustrated in Fig. 1, an end-to-end neural network for question answering. The model consists of a coattentive encoder that captures the interactions between the question and the document, as well as a dynamic pointing decoder that alternates between estimating the start and end of the answer span. Our single model obtains an F1 of $7 5 . 9 \\%$ compared to the best published result of $7 1 . 0 \\%$ (Yu et al., 2016). In addition, our ensemble model obtains an F1 of $8 0 . 4 \\%$ compared to the second best result of $78 . 1 \\%$ on the official SQuAD leaderboard.1 ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
767,
|
| 110 |
+
825,
|
| 111 |
+
864
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 DYNAMIC COATTENTION NETWORKS ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
102,
|
| 122 |
+
517,
|
| 123 |
+
118
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Figure 1 illustrates an overview of the DCN. We first describe the encoders for the document and the question, followed by the coattention mechanism and the dynamic decoder which produces the answer span. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
133,
|
| 133 |
+
825,
|
| 134 |
+
178
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "image",
|
| 140 |
+
"img_path": "images/366b7e744a65a1c479359e0000da5451a5aa3e0614250d64bb4588d807625476.jpg",
|
| 141 |
+
"image_caption": [
|
| 142 |
+
"Figure 1: Overview of the Dynamic Coattention Network. "
|
| 143 |
+
],
|
| 144 |
+
"image_footnote": [],
|
| 145 |
+
"bbox": [
|
| 146 |
+
179,
|
| 147 |
+
194,
|
| 148 |
+
812,
|
| 149 |
+
381
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "2.1 DOCUMENT AND QUESTION ENCODER ",
|
| 156 |
+
"text_level": 1,
|
| 157 |
+
"bbox": [
|
| 158 |
+
176,
|
| 159 |
+
454,
|
| 160 |
+
483,
|
| 161 |
+
469
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "Let (xQ1 , xQ2 , . . denote the sequence of word vectors corresponding to words in the question and $( x _ { 1 } ^ { D } , x _ { 2 } ^ { D } , \\dots , x _ { m } ^ { D } )$ denote the same for words in the document. Using an LSTM (Hochreiter & Schmidhuber, 1997), we encode the document as: $d _ { t } = \\mathrm { L S T M } _ { e n c } \\left( d _ { t - 1 } , x _ { t } ^ { D } \\right)$ . We define the document encoding matrix as $D = [ d _ { 1 } \\ . . . \\ d _ { m } \\ d _ { \\mathcal { O } } ] \\in \\mathbb { R } ^ { \\ell \\times ( m + 1 ) }$ . We also add a sentinel vector $d _ { \\mathcal { O } }$ (Merity et al., 2016), which we later show allows the model to not attend to any particular word in the input. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
173,
|
| 170 |
+
481,
|
| 171 |
+
825,
|
| 172 |
+
573
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "The question embeddings are computed with the same LSTM to share representation power: $q _ { t } =$ $\\mathrm { L S T M } _ { e n c } \\left( q _ { t - 1 } , x _ { t } ^ { Q } \\right)$ We define an intermediate question representation $Q ^ { \\prime } = [ q _ { 1 } \\dots q _ { n } q _ { \\emptyset } ] \\in$ $\\mathbb { R } ^ { \\ell \\times ( n + 1 ) }$ . To allow for variation between the question encoding space and the document encoding space, we introduce a non-linear projection layer on top of the question encoding. The final representation for the question becomes: $\\begin{array} { r } { \\dot { Q } = \\operatorname { t a n h } \\left( W ^ { ( Q ) } \\bar { Q ^ { \\prime } } + b ^ { ( Q ) } \\right) \\in \\mathbb { R } ^ { \\ell \\times ( n + 1 ) } } \\end{array}$ . ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
173,
|
| 181 |
+
579,
|
| 182 |
+
825,
|
| 183 |
+
662
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "2.2 COATTENTION ENCODER ",
|
| 190 |
+
"text_level": 1,
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
680,
|
| 194 |
+
390,
|
| 195 |
+
695
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "We propose a coattention mechanism that attends to the question and document simultaneously, similar to (Lu et al., 2016), and finally fuses both attention contexts. Figure 2 provides an illustration of the coattention encoder. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
707,
|
| 205 |
+
825,
|
| 206 |
+
750
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "We first compute the affinity matrix, which contains affinity scores corresponding to all pairs of document words and question words: $L = D ^ { \\top } Q \\in \\mathbb { R } ^ { ( m + 1 ) \\times ( n + 1 ) }$ . The affinity matrix is normalized row-wise to produce the attention weights $A ^ { Q }$ across the document for each word in the question, and column-wise to produce the attention weights $A ^ { D }$ across the question for each word in the document: ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
756,
|
| 216 |
+
825,
|
| 217 |
+
828
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "equation",
|
| 223 |
+
"img_path": "images/0b9612fdcd62bbde420d3294715e2b488ff20e952a7bac9155fd001efebd85ca.jpg",
|
| 224 |
+
"text": "$$\nA ^ { Q } = \\operatorname { s o f t m a x } \\left( L \\right) \\in \\mathbb { R } ^ { ( m + 1 ) \\times ( n + 1 ) } { \\mathrm { ~ a n d ~ } } A ^ { D } = \\operatorname { s o f t m a x } \\left( L ^ { \\top } \\right) \\in \\mathbb { R } ^ { ( n + 1 ) \\times ( m + 1 ) }\n$$",
|
| 225 |
+
"text_format": "latex",
|
| 226 |
+
"bbox": [
|
| 227 |
+
223,
|
| 228 |
+
845,
|
| 229 |
+
771,
|
| 230 |
+
867
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 1
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "Next, we compute the summaries, or attention contexts, of the document in light of each word of the question. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
171,
|
| 239 |
+
877,
|
| 240 |
+
825,
|
| 241 |
+
905
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "equation",
|
| 247 |
+
"img_path": "images/eabde3ef2b7d5396db8ce04464bea87500de6a6fae67c536112caa5e175ec1a2.jpg",
|
| 248 |
+
"text": "$$\nC ^ { Q } = D A ^ { Q } \\in \\mathbb { R } ^ { \\ell \\times ( n + 1 ) } .\n$$",
|
| 249 |
+
"text_format": "latex",
|
| 250 |
+
"bbox": [
|
| 251 |
+
411,
|
| 252 |
+
906,
|
| 253 |
+
586,
|
| 254 |
+
922
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 1
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "image",
|
| 260 |
+
"img_path": "images/659657d3664439f5aaf2ad20059c8aff9fa095ee215405eee86563f70a315687.jpg",
|
| 261 |
+
"image_caption": [
|
| 262 |
+
"Figure 2: Coattention encoder. The affinity matrix $L$ is not shown here. We instead directly show the normalized attention weights $A ^ { D }$ and $\\dot { A } ^ { Q }$ . "
|
| 263 |
+
],
|
| 264 |
+
"image_footnote": [],
|
| 265 |
+
"bbox": [
|
| 266 |
+
183,
|
| 267 |
+
109,
|
| 268 |
+
818,
|
| 269 |
+
313
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "We similarly compute the summaries $Q A ^ { D }$ of the question in light of each word of the document. Similar to Cui et al. (2016), we also compute the summaries $C ^ { \\mathcal { { Q } } } A ^ { D }$ of the previous attention contexts in light of each word of the document. These two operations can be done in parallel, as is shown in Eq. 3. One possible interpretation for the operation $C ^ { Q } A ^ { D }$ is the mapping of question encoding into space of document encodings. ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
174,
|
| 278 |
+
383,
|
| 279 |
+
825,
|
| 280 |
+
455
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "equation",
|
| 286 |
+
"img_path": "images/e7fc356977edae75c16da08a71131bc1fe53766fbace45f59c4cafbd9da39dec.jpg",
|
| 287 |
+
"text": "$$\nC ^ { D } = \\left[ Q ; C ^ { Q } \\right] A ^ { D } \\in \\mathbb { R } ^ { 2 \\ell \\times ( m + 1 ) } .\n$$",
|
| 288 |
+
"text_format": "latex",
|
| 289 |
+
"bbox": [
|
| 290 |
+
382,
|
| 291 |
+
462,
|
| 292 |
+
616,
|
| 293 |
+
483
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "We define $C ^ { D }$ , a co-dependent representation of the question and document, as the coattention context. We use the notation $[ a ; b ]$ for concatenating the vectors $a$ and $b$ horizontally. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
497,
|
| 303 |
+
825,
|
| 304 |
+
526
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "The last step is the fusion of temporal information to the coattention context via a bidirectional LSTM: ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
168,
|
| 313 |
+
532,
|
| 314 |
+
821,
|
| 315 |
+
558
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "equation",
|
| 321 |
+
"img_path": "images/b70446b0603fb23ef8d132a24326f397cb6862b4b6496cb265c16224b89e171f.jpg",
|
| 322 |
+
"text": "$$\n\\boldsymbol { u } _ { t } = \\mathrm { B i - L S T M } \\left( u _ { t - 1 } , u _ { t + 1 } , \\left[ d _ { t } ; c _ { t } ^ { D } \\right] \\right) \\in \\mathbb { R } ^ { 2 \\ell } .\n$$",
|
| 323 |
+
"text_format": "latex",
|
| 324 |
+
"bbox": [
|
| 325 |
+
344,
|
| 326 |
+
558,
|
| 327 |
+
651,
|
| 328 |
+
577
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "We define $U = [ u _ { 1 } , \\dots , u _ { m } ] \\in \\mathbb { R } ^ { 2 \\ell \\times m }$ , which provides a foundation for selecting which span may be the best possible answer, as the coattention encoding. ",
|
| 335 |
+
"bbox": [
|
| 336 |
+
174,
|
| 337 |
+
580,
|
| 338 |
+
821,
|
| 339 |
+
611
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 2
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "2.3 DYNAMIC POINTING DECODER ",
|
| 346 |
+
"text_level": 1,
|
| 347 |
+
"bbox": [
|
| 348 |
+
176,
|
| 349 |
+
626,
|
| 350 |
+
431,
|
| 351 |
+
641
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 2
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Due to the nature of SQuAD, an intuitive method for producing the answer span is by predicting the start and end points of the span (Wang & Jiang, 2016b). However, given a question-document pair, there may exist several intuitive answer spans within the document, each corresponding to a local maxima. We propose an iterative technique to select an answer span by alternating between predicting the start point and predicting the end point. This iterative procedure allows the model to recover from initial local maxima corresponding to incorrect answer spans. ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
173,
|
| 360 |
+
651,
|
| 361 |
+
825,
|
| 362 |
+
737
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 2
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Figure 3 provides an illustration of the Dynamic Decoder, which is similar to a state machine whose state is maintained by an LSTM-based sequential model. During each iteration, the decoder updates its state taking into account the coattention encoding corresponding to current estimates of the start and end positions, and produces, via a multilayer neural network, new estimates of the start and end positions. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
742,
|
| 372 |
+
825,
|
| 373 |
+
814
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "Let $h _ { i } , s _ { i }$ , and $e _ { i }$ denote the hidden state of the LSTM, the estimate of the position, and the estimate of the end position during iteration $i$ . The LSTM state update is then described by Eq. 5. ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
173,
|
| 382 |
+
819,
|
| 383 |
+
825,
|
| 384 |
+
849
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 2
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "equation",
|
| 390 |
+
"img_path": "images/deb287d5c17e8226321ff80afd968fc83ca7761f3b9ba1ba78d6395364b0c112.jpg",
|
| 391 |
+
"text": "$$\nh _ { i } = \\mathrm { L S T M } _ { d e c } \\left( h _ { i - 1 } , \\left[ u _ { s _ { i - 1 } } ; u _ { e _ { i - 1 } } \\right] \\right)\n$$",
|
| 392 |
+
"text_format": "latex",
|
| 393 |
+
"bbox": [
|
| 394 |
+
369,
|
| 395 |
+
867,
|
| 396 |
+
627,
|
| 397 |
+
886
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 2
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "where $u _ { s _ { i - 1 } }$ and $u _ { e _ { i - 1 } }$ are the representations corresponding to the previous estimate of the start and end positions in the coattention encoding $U$ . ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
176,
|
| 406 |
+
895,
|
| 407 |
+
823,
|
| 408 |
+
924
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 2
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "image",
|
| 414 |
+
"img_path": "images/6b17096e746bf2a05c497268ea80bc69a1959ba4479008235c346ae565e33292.jpg",
|
| 415 |
+
"image_caption": [
|
| 416 |
+
"Figure 3: Dynamic Decoder. Blue denotes the variables and functions related to estimating the start position whereas red denotes the variables and functions related to estimating the end position. "
|
| 417 |
+
],
|
| 418 |
+
"image_footnote": [],
|
| 419 |
+
"bbox": [
|
| 420 |
+
179,
|
| 421 |
+
104,
|
| 422 |
+
820,
|
| 423 |
+
359
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Given the current hidden state $h _ { i }$ , previous start position $u _ { s _ { i - 1 } }$ , and previous end position $u _ { e _ { i - 1 } }$ , we estimate the current start position and end position via Eq. 6 and Eq. 7. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
433,
|
| 433 |
+
823,
|
| 434 |
+
462
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"img_path": "images/3bf21e545f3b01bf0d8cf59d0bf55537d163c353404750b88f7d6d4ee5175cbe.jpg",
|
| 441 |
+
"text": "$$\n\\begin{array} { c } { s _ { i } = \\underset { t } { \\operatorname { a r g m a x } } \\left( \\alpha _ { 1 } , \\ldots , \\alpha _ { m } \\right) } \\\\ { \\ } \\\\ { e _ { i } = \\underset { t } { \\operatorname { a r g m a x } } \\left( \\beta _ { 1 } , \\ldots , \\beta _ { m } \\right) } \\end{array}\n$$",
|
| 442 |
+
"text_format": "latex",
|
| 443 |
+
"bbox": [
|
| 444 |
+
406,
|
| 445 |
+
479,
|
| 446 |
+
591,
|
| 447 |
+
546
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "where $\\alpha _ { t }$ and $\\beta _ { t }$ represent the start score and end score corresponding to the tth word in the document. We compute $\\alpha _ { t }$ and $\\beta _ { t }$ with separate neural networks. These networks have the same architecture but do not share parameters. ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
176,
|
| 456 |
+
553,
|
| 457 |
+
823,
|
| 458 |
+
597
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "Based on the strong empirical performance of Maxout Networks (Goodfellow et al., 2013) and Highway Networks (Srivastava et al., 2015), especially with regards to deep architectures, we propose a Highway Maxout Network (HMN) to compute $\\alpha _ { t }$ as described by Eq. 8. The intuition behind using such model is that the QA task consists of multiple question types and document topics. These variations may require different models to estimate the answer span. Maxout provides a simple and effective way to pool across multiple model variations. ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
173,
|
| 467 |
+
602,
|
| 468 |
+
825,
|
| 469 |
+
686
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 3
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "equation",
|
| 475 |
+
"img_path": "images/d5fce1c08850a8d2b2699f50725885b800b1aaecba9142ff5956d772638d5843.jpg",
|
| 476 |
+
"text": "$$\n\\alpha _ { t } = \\mathrm { H M N } _ { s t a r t } \\left( u _ { t } , h _ { i } , u _ { s _ { i - 1 } } , u _ { e _ { i - 1 } } \\right)\n$$",
|
| 477 |
+
"text_format": "latex",
|
| 478 |
+
"bbox": [
|
| 479 |
+
370,
|
| 480 |
+
704,
|
| 481 |
+
625,
|
| 482 |
+
724
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "Here, $u _ { t }$ is the coattention encoding corresponding to the $t$ th word in the document. $\\mathrm { H M N } _ { s t a r t }$ is illustrated in Figure 4. The end score, $\\beta _ { t }$ , is computed similarly to the start score $\\alpha _ { t }$ , but using a separate $\\mathrm { H M N } _ { e n d }$ . ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
174,
|
| 491 |
+
731,
|
| 492 |
+
825,
|
| 493 |
+
775
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "We now describe the HMN model: ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
176,
|
| 502 |
+
780,
|
| 503 |
+
401,
|
| 504 |
+
795
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 3
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"img_path": "images/99a7b0e24a018c83940362ae014b6d290ee2bbd0ebfc0b5879e6f5bb0a803486.jpg",
|
| 511 |
+
"text": "$$\n\\begin{array} { r c l } { { \\mathrm { H M N } \\left( u _ { t } , h _ { i } , u _ { s _ { i - 1 } } , u _ { e _ { i - 1 } } \\right) } } & { { = } } & { { \\operatorname* { m a x } \\left( W ^ { ( 3 ) } \\left[ m _ { t } ^ { ( 1 ) } ; m _ { t } ^ { ( 2 ) } \\right] + b ^ { ( 3 ) } \\right) } } \\\\ { { r } } & { { = } } & { { \\operatorname { t a n h } \\left( W ^ { ( D ) } \\left[ h _ { i } ; u _ { s _ { i - 1 } } ; u _ { e _ { i - 1 } } \\right] \\right) } } \\\\ { { m _ { t } ^ { ( 1 ) } } } & { { = } } & { { \\operatorname* { m a x } \\left( W ^ { ( 1 ) } \\left[ u _ { t } ; r \\right] + b ^ { ( 1 ) } \\right) } } \\\\ { { m _ { t } ^ { ( 2 ) } } } & { { = } } & { { \\operatorname* { m a x } \\left( W ^ { ( 2 ) } m _ { t } ^ { ( 1 ) } + b ^ { ( 2 ) } \\right) } } \\end{array}\n$$",
|
| 512 |
+
"text_format": "latex",
|
| 513 |
+
"bbox": [
|
| 514 |
+
269,
|
| 515 |
+
818,
|
| 516 |
+
722,
|
| 517 |
+
931
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "where $r \\in \\mathbb { R } ^ { \\ell }$ is a non-linear projection of the current state with parameters $W ^ { ( D ) } \\in \\mathbb { R } ^ { \\ell \\times 5 \\ell }$ , $m _ { t } ^ { ( 1 ) }$ is the output of the first maxout layer with parameters $W ^ { ( 1 ) } \\in \\mathbb { R } ^ { p \\times \\ell \\times 3 \\ell }$ and $b ^ { ( 1 ) } \\in \\mathbb { R } ^ { p \\times \\ell }$ , and $m _ { t } ^ { ( 2 ) }$ is the output of the second maxout layer with parameters $W ^ { ( 2 ) } \\in \\mathbb { R } ^ { p \\times \\ell \\times \\ell }$ and $b ^ { ( 2 ) } \\in \\mathbb { R } ^ { p \\times \\ell }$ . $m _ { t } ^ { ( 1 ) }$ and m(2)t a re fed into the final maxout layer, which has parameters $W ^ { ( 3 ) } \\in \\mathbb { R } ^ { p \\times 1 \\times 2 \\ell }$ , and $b ^ { ( 3 ) } \\in \\mathbb { R } ^ { p }$ . $p$ is the pooling size of each maxout layer. The max operation computes the maximum value over the first dimension of a tensor. We note that there is highway connection between the output of the first maxout layer and the last maxout layer. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
103,
|
| 527 |
+
506,
|
| 528 |
+
299
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "To train the network, we minimize the cumulative softmax cross entropy of the start and end points across all iterations. The iterative procedure halts when both the estimate of the start position and the estimate of the end position no longer change, or when a maximum number of iterations is reached. Details can be found in Section 4.1 ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
306,
|
| 538 |
+
506,
|
| 539 |
+
402
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "image",
|
| 545 |
+
"img_path": "images/34c9b1af90d072819538f6780f37239b9e8f6a72c45b555988700cec3a94e07c.jpg",
|
| 546 |
+
"image_caption": [
|
| 547 |
+
"Figure 4: Highway Maxout Network. Dotted lines denote highway connections. "
|
| 548 |
+
],
|
| 549 |
+
"image_footnote": [],
|
| 550 |
+
"bbox": [
|
| 551 |
+
531,
|
| 552 |
+
112,
|
| 553 |
+
823,
|
| 554 |
+
349
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "3 RELATED WORK ",
|
| 561 |
+
"text_level": 1,
|
| 562 |
+
"bbox": [
|
| 563 |
+
176,
|
| 564 |
+
429,
|
| 565 |
+
343,
|
| 566 |
+
445
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Statistical QA Traditional approaches to question answering typically involve rule-based algorithms or linear classifiers over hand-engineered feature sets. Richardson et al. (2013) proposed two baselines, one that uses simple lexical features such as a sliding window to match bags of words, and another that uses word-distances between words in the question and in the document. Berant et al. (2014) proposed an alternative approach in which one first learns a structured representation of the entities and relations in the document in the form of a knowledge base, then converts the question to a structured query with which to match the content of the knowledge base. Wang et al. (2015) described a statistical model using frame semantic features as well as syntactic features such as part of speech tags and dependency parses. Chen et al. (2016) proposed a competitive statistical baseline using a variety of carefully crafted lexical, syntactic, and word order features. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
173,
|
| 575 |
+
463,
|
| 576 |
+
825,
|
| 577 |
+
603
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "Neural QA Neural attention models have been widely applied for machine comprehension or question-answering in NLP. Hermann et al. (2015) proposed an AttentiveReader model with the release of the CNN/Daily Mail cloze-style question answering dataset. Hill et al. (2016) released another dataset steming from the children’s book and proposed a window-based memory network. Kadlec et al. (2016) presented a pointer-style attention mechanism but performs only one attention step. Sordoni et al. (2016) introduced an iterative neural attention model and applied it to cloze-style machine comprehension tasks. ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
174,
|
| 586 |
+
609,
|
| 587 |
+
825,
|
| 588 |
+
707
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "Recently, Rajpurkar et al. (2016) released the SQuAD dataset. Different from cloze-style queries, answers include non-entities and longer phrases, and questions are more realistic. For SQuAD, Wang & Jiang (2016b) proposed an end-to-end neural network model that consists of a Match-LSTM encoder, originally introduced in Wang & Jiang (2016a), and a pointer network decoder (Vinyals et al., 2015); Yu et al. (2016) introduced a dynamic chunk reader, a neural reading comprehension model that extracts a set of answer candidates of variable lengths from the document and ranks them to answer the question. ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
713,
|
| 598 |
+
825,
|
| 599 |
+
811
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "Lu et al. (2016) proposed a hierarchical co-attention model for visual question answering, which achieved state of the art result on the COCO-VQA dataset (Antol et al., 2015). In (Lu et al., 2016), the co-attention mechanism computes a conditional representation of the image given the question, as well as a conditional representation of the question given the image. ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
819,
|
| 609 |
+
825,
|
| 610 |
+
875
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "Inspired by the above works, we propose a dynamic coattention model (DCN) that consists of a novel coattentive encoder and dynamic decoder. In our model, instead of estimating the start and end positions of the answer span in a single pass (Wang & Jiang, 2016b), we iteratively update the start and end positions in a similar fashion to the Iterative Conditional Modes algorithm (Besag, 1986). ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
176,
|
| 619 |
+
882,
|
| 620 |
+
823,
|
| 621 |
+
924
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "table",
|
| 627 |
+
"img_path": "images/1605164114228002420daf4077ddc6f0a8eeb0996db3932f94f49047687b88a7.jpg",
|
| 628 |
+
"table_caption": [
|
| 629 |
+
"Table 1: Leaderboard performance at the time of writing (Nov 4 2016). ∗ indicates that the model used for submission is unpublished. − indicates that the development scores were not publicly available at the time of writing. "
|
| 630 |
+
],
|
| 631 |
+
"table_footnote": [],
|
| 632 |
+
"table_body": "<table><tr><td>Model</td><td>Dev EM</td><td>Dev F1</td><td>Test EM</td><td>Test F1</td></tr><tr><td>Ensemble</td><td></td><td></td><td></td><td></td></tr><tr><td>DCN (Ours)</td><td>70.3</td><td>79.4</td><td>71.2</td><td>80.4</td></tr><tr><td>Microsoft Research Asia *</td><td>一</td><td>1</td><td>69.4</td><td>78.3</td></tr><tr><td>Allen Institute *</td><td>69.2</td><td>77.8</td><td>69.9</td><td>78.1</td></tr><tr><td>Singapore Management University *</td><td>67.6</td><td>76.8</td><td>67.9</td><td>77.0</td></tr><tr><td>Google NYC *</td><td>68.2</td><td>76.7</td><td>一</td><td></td></tr><tr><td>Single model</td><td></td><td></td><td></td><td></td></tr><tr><td>DCN (Ours)</td><td>65.4</td><td>75.6</td><td>66.2</td><td>75.9</td></tr><tr><td>Microsoft Research Asia *</td><td>65.9</td><td>75.2</td><td>65.5</td><td>75.0</td></tr><tr><td>Google NYC *</td><td>66.4</td><td>74.9</td><td>1</td><td>1</td></tr><tr><td>Singapore Management University *</td><td>1</td><td>1</td><td>64.7</td><td>73.7</td></tr><tr><td>Carnegie Mellon University</td><td>1</td><td>1</td><td>62.5</td><td>73.3</td></tr><tr><td>Dynamic Chunk Reader (Yu et al., 2016)</td><td>62.5</td><td>71.2</td><td>62.5</td><td>71.0</td></tr><tr><td>Match-LSTM (Wang & Jiang,2016b)</td><td>59.1</td><td>70.0</td><td>59.5</td><td>70.3</td></tr><tr><td>Baseline (Rajpurkar et al., 2016)</td><td>40.0</td><td>51.0</td><td>40.4</td><td>51.0</td></tr><tr><td>Human (Rajpurkar et al., 2016)</td><td>81.4</td><td>91.0</td><td>82.3</td><td>91.2</td></tr></table>",
|
| 633 |
+
"bbox": [
|
| 634 |
+
209,
|
| 635 |
+
101,
|
| 636 |
+
787,
|
| 637 |
+
364
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "",
|
| 644 |
+
"bbox": [
|
| 645 |
+
176,
|
| 646 |
+
444,
|
| 647 |
+
821,
|
| 648 |
+
473
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 5
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "4 EXPERIMENTS ",
|
| 655 |
+
"text_level": 1,
|
| 656 |
+
"bbox": [
|
| 657 |
+
176,
|
| 658 |
+
496,
|
| 659 |
+
326,
|
| 660 |
+
511
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "4.1 IMPLEMENTATION DETAILS ",
|
| 667 |
+
"text_level": 1,
|
| 668 |
+
"bbox": [
|
| 669 |
+
176,
|
| 670 |
+
527,
|
| 671 |
+
405,
|
| 672 |
+
542
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "We train and evaluate our model on the SQuAD dataset. To preprocess the corpus, we use the tokenizer from Stanford CoreNLP (Manning et al., 2014). We use as GloVe word vectors pretrained on the 840B Common Crawl corpus (Pennington et al., 2014). We limit the vocabulary to words that are present in the Common Crawl corpus and set embeddings for out-of-vocabulary words to zero. Empirically, we found that training the embeddings consistently led to overfitting and subpar performance, and hence only report results with fixed word embeddings. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
554,
|
| 682 |
+
823,
|
| 683 |
+
637
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "We use a max sequence length of 600 during training and a hidden state size of 200 for all recurrent units, maxout layers, and linear layers. All LSTMs have randomly initialized parameters and an initial state of zero. Sentinel vectors are randomly initialized and optimized during training. For the dynamic decoder, we set the maximum number of iterations to 4 and use a maxout pool size of 16. We use dropout to regularize our network during training (Srivastava et al., 2014), and optimize the model using ADAM (Kingma & Ba, 2014). All models are implemented and trained with Chainer (Tokui et al., 2015). ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
174,
|
| 692 |
+
645,
|
| 693 |
+
825,
|
| 694 |
+
742
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 5
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "4.2 RESULTS ",
|
| 701 |
+
"text_level": 1,
|
| 702 |
+
"bbox": [
|
| 703 |
+
176,
|
| 704 |
+
761,
|
| 705 |
+
277,
|
| 706 |
+
775
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Evaluation on the SQuAD dataset consists of two metrics. The exact match score (EM) calculates the exact string match between the predicted answer and a ground truth answer. The F1 score calculates the overlap between words in the predicted answer and a ground truth answer. Because a document-question pair may have several ground truth answers, the EM and F1 for a documentquestion pair is taken to be the maximum value across all ground truth answers. The overall metric is then computed by averaging over all document-question pairs. The offical SQuAD evaluation is hosted on CodaLab 2. The training and development sets are publicly available while the test set is withheld. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
787,
|
| 716 |
+
825,
|
| 717 |
+
898
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 5
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "The performance of the Dynamic Coattention Network on the SQuAD dataset, compared to other submitted models on the leaderboard 3, is shown in Table 1. At the time of writing, our singlemodel DCN ranks first at $6 6 . 2 \\%$ exact match and $7 5 . 9 \\%$ F1 on the test data among single-model submissions. Our ensemble DCN ranks first overall at $7 1 . 6 \\%$ exact match and $8 0 . 4 \\%$ F1 on the test data. ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
103,
|
| 727 |
+
825,
|
| 728 |
+
172
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 6
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "The DCN has the capability to estimate the start and end points of the answer span multiple times, each time conditioned on its previous estimates. By doing so, the model is able to explore local maxima corresponding to multiple plausible answers, as is shown in Figure 5. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
174,
|
| 737 |
+
180,
|
| 738 |
+
825,
|
| 739 |
+
223
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 6
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "image",
|
| 745 |
+
"img_path": "images/c3102bd8496d3d4cf1baf2bcf5fff89efedb6e23756c3ea7ee32a876b2887df7.jpg",
|
| 746 |
+
"image_caption": [
|
| 747 |
+
"Question 1: Who recovered Tolbert's fumble? "
|
| 748 |
+
],
|
| 749 |
+
"image_footnote": [],
|
| 750 |
+
"bbox": [
|
| 751 |
+
183,
|
| 752 |
+
257,
|
| 753 |
+
808,
|
| 754 |
+
392
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "image",
|
| 760 |
+
"img_path": "images/a845dc12bdf8267e6cba84587670144160e05035c8b5b3713d05e247bc5ea6f6.jpg",
|
| 761 |
+
"image_caption": [],
|
| 762 |
+
"image_footnote": [],
|
| 763 |
+
"bbox": [
|
| 764 |
+
184,
|
| 765 |
+
397,
|
| 766 |
+
812,
|
| 767 |
+
518
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "image",
|
| 773 |
+
"img_path": "images/085444cc5b6dcb9a4ec51b52f4a781f31f790443b465e8a01b0e5d0fd4bca99f.jpg",
|
| 774 |
+
"image_caption": [
|
| 775 |
+
"Question 3: What kind of weapons did Tesla's treatise concern? ",
|
| 776 |
+
"Figure 5: Examples of the start and end conditional distributions produced by the dynamic decoder. Odd (blue) rows denote the start distributions and even (red) rows denote the end distributions. i indicates the iteration number of the dynamic decoder. Higher probability mass is indicated by darker regions. The offset corresponding to the word with the highest probability mass is shown on the right hand side. The predicted span is underlined in red, and a ground truth answer span is underlined in green. "
|
| 777 |
+
],
|
| 778 |
+
"image_footnote": [],
|
| 779 |
+
"bbox": [
|
| 780 |
+
183,
|
| 781 |
+
534,
|
| 782 |
+
810,
|
| 783 |
+
694
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 6
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "For example, Question 1 in Figure 5 demonstrates an instance where the model initially guesses an incorrect start point and a correct end point. In subsequent iterations, the model adjusts the start point, ultimately arriving at the correct start point in iteration 3. Similarly, the model gradually shifts probability mass for the end point to the correct word. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
804,
|
| 793 |
+
825,
|
| 794 |
+
861
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 6
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Question 2 shows an example in which both the start and end estimates are initially incorrect. The model then settles on the correct answer in the next iteration. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
176,
|
| 803 |
+
867,
|
| 804 |
+
823,
|
| 805 |
+
896
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 6
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "image",
|
| 811 |
+
"img_path": "images/587fa0e39bc3021fe61bff9f3565c68bc05181a466d0bc36dfea698f3988018c.jpg",
|
| 812 |
+
"image_caption": [
|
| 813 |
+
"Figure 6: Performance of the DCN for various lengths of documents, questions, and answers. The blue dot indicates the mean F1 at given length. The vertical bar represents the standard deviation of F1s at a given length. "
|
| 814 |
+
],
|
| 815 |
+
"image_footnote": [],
|
| 816 |
+
"bbox": [
|
| 817 |
+
179,
|
| 818 |
+
106,
|
| 819 |
+
816,
|
| 820 |
+
223
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "While the dynamic nature of the decoder allows the model to escape initial local maxima corresponding to incorrect answers, Question 3 demonstrates a case where the model is unable to decide between multiple local maxima despite several iterations. Namely, the model alternates between the answers “charged particle beam” and “particle beam weapons” indefinitely. Empirically, we observe that the model, trained with a maximum iteration of 4, takes 2.7 iterations to converge to an answer on average. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
173,
|
| 829 |
+
285,
|
| 830 |
+
825,
|
| 831 |
+
369
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "Model Ablation The performance of our model and its ablations on the SQuAD development set is shown in Table 2. On the decoder side, we experiment with various pool sizes for the HMN maxout layers, using a 2-layer MLP instead of a HMN, and forcing the HMN decoder to a single iteration. Empirically, we achieve the best performance on the development set with an iterative HMN ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
173,
|
| 840 |
+
376,
|
| 841 |
+
367,
|
| 842 |
+
569
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 7
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "table",
|
| 848 |
+
"img_path": "images/d8c0c6d7af28df7f8be0568d155ae503bad0f6993110863dc8ce1aed3014439b.jpg",
|
| 849 |
+
"table_caption": [
|
| 850 |
+
"Table 2: Single model ablations on the development set. "
|
| 851 |
+
],
|
| 852 |
+
"table_footnote": [],
|
| 853 |
+
"table_body": "<table><tr><td>Model</td><td>Dev EM</td><td>Dev F1</td></tr><tr><td>Dynamic Coattention Network (DCN)</td><td></td><td></td></tr><tr><td>pool size 16 HMN</td><td>65.4</td><td>75.6</td></tr><tr><td>pool size 8 HMN</td><td>64.4</td><td>74.9</td></tr><tr><td>pool size 4 HMN</td><td>65.2</td><td>75.2</td></tr><tr><td>DCN with 2-layer MLP instead of HMN</td><td>63.8</td><td>74.4</td></tr><tr><td>DCN with single iteration decoder</td><td>63.7</td><td>74.0</td></tr><tr><td>DCN with Wang & Jiang (2016b) attention</td><td>63.7</td><td>73.7</td></tr></table>",
|
| 854 |
+
"bbox": [
|
| 855 |
+
379,
|
| 856 |
+
392,
|
| 857 |
+
826,
|
| 858 |
+
526
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "with pool size 16, and find that the model consistently benefits from a deeper, iterative decoder network. The performance improves as the number of maximum allowed iterations increases, with little improvement after 4 iterations. On the encoder side, replacing the coattention mechanism with an attention mechanism similar to Wang & Jiang (2016b) by setting $C ^ { D }$ to $Q A ^ { D }$ in equation 3 results in a 1.9 point F1 drop. This suggests that, at an additional cost of a softmax computation and a dot product, the coattention mechanism provides a simple and effective means to better encode the document and question sequences. Further studies, such as performance without attention and performance on questions requiring different types of reasoning can be found in the appendix. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
173,
|
| 867 |
+
570,
|
| 868 |
+
826,
|
| 869 |
+
681
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "Performance across length One point of interest is how the performance of the DCN varies with respect to the length of document. Intuitively, we expect the model performance to deteriorate with longer examples, as is the case with neural machine translation (Luong et al., 2015). However, as in shown in Figure 6, there is no notable performance degradation for longer documents and questions contrary to our expectations. This suggests that the coattentive encoder is largely agnostic to long documents, and is able to focus on small sections of relevant text while ignoring the rest of the (potentially very long) document. We do note a performance degradation with longer answers. However, this is intuitive given the nature of the evaluation metric. Namely, it becomes increasingly challenging to compute the correct word span as the number of words increases. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
688,
|
| 879 |
+
483,
|
| 880 |
+
924
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "image",
|
| 886 |
+
"img_path": "images/653f0cc5f5b4e69dc4ebc621a1c337abbcdd7c24b52621540fafc0ac3422a7ea.jpg",
|
| 887 |
+
"image_caption": [
|
| 888 |
+
"Figure 7: Performance of the DCN across question types. The height of each bar represents the mean F1 for the given question type. The lower number denotes how many instances in the dev set are of the corresponding question type. "
|
| 889 |
+
],
|
| 890 |
+
"image_footnote": [],
|
| 891 |
+
"bbox": [
|
| 892 |
+
503,
|
| 893 |
+
708,
|
| 894 |
+
820,
|
| 895 |
+
868
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 7
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
104,
|
| 905 |
+
483,
|
| 906 |
+
131
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Performance across question type Another natural way to analyze the performance of the model is to examine its performance across question types. In Figure 7, we note that the mean F1 of DCN exceeds those of previous systems (Wang & Jiang, 2016b; Yu et al., 2016) across all question types. The DCN, like other models, is adept at “when” questions and struggles with the more complex “why” questions. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
140,
|
| 916 |
+
825,
|
| 917 |
+
208
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Breakdown of F1 distribution Finally, we note that the DCN performance is highly bimodal. On the development set, the model perfectly predicts $100 \\%$ F1) an answer for $6 2 . 2 \\%$ of examples and predicts a completely wrong answer $0 \\%$ F1) for $1 6 . 3 \\%$ of examples. That is, the model picks out partial answers only $2 1 . 5 \\%$ of the time. Upon qualitative inspections of the $0 \\%$ F1 answers, some of which are shown in Appendix A.4, we observe that when the model is wrong, its mistakes tend to have the correct “answer type” (eg. person for a “who” question, method for a “how” question) and the answer boundaries encapsulate a well-defined phrase. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
215,
|
| 927 |
+
825,
|
| 928 |
+
313
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 8
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "5 CONCLUSION ",
|
| 935 |
+
"text_level": 1,
|
| 936 |
+
"bbox": [
|
| 937 |
+
176,
|
| 938 |
+
333,
|
| 939 |
+
318,
|
| 940 |
+
348
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "We proposed the Dynamic Coattention Network, an end-to-end neural network architecture for question answering. The DCN consists of a coattention encoder which learns co-dependent representations of the question and of the document, and a dynamic decoder which iteratively estimates the answer span. We showed that the iterative nature of the model allows it to recover from initial local maxima corresponding to incorrect predictions. On the SQuAD dataset, the DCN achieves the state of the art results at $7 5 . 9 \\%$ F1 with a single model and $8 0 . 4 \\%$ F1 with an ensemble. The DCN significantly outperforms all other models. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
364,
|
| 950 |
+
825,
|
| 951 |
+
462
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 958 |
+
"text_level": 1,
|
| 959 |
+
"bbox": [
|
| 960 |
+
176,
|
| 961 |
+
478,
|
| 962 |
+
326,
|
| 963 |
+
491
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "We thank Kazuma Hashimoto and Bryan McCann for their help and insights. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
176,
|
| 972 |
+
501,
|
| 973 |
+
676,
|
| 974 |
+
515
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "REFERENCES ",
|
| 981 |
+
"text_level": 1,
|
| 982 |
+
"bbox": [
|
| 983 |
+
176,
|
| 984 |
+
536,
|
| 985 |
+
285,
|
| 986 |
+
551
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 8
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
559,
|
| 996 |
+
823,
|
| 997 |
+
602
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 8
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "Jonathan Berant, Vivek Srikumar, Pei-Chun Chen, Abby Vander Linden, Brittany Harding, Brad Huang, Peter Clark, and Christopher D Manning. Modeling biological processes for reading comprehension. In EMNLP, 2014. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
174,
|
| 1006 |
+
609,
|
| 1007 |
+
823,
|
| 1008 |
+
651
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 8
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Julian Besag. On the statistical analysis of dirty pictures. Journal of the Royal Statistical Society. Series B (Methodological), pp. 259–302, 1986. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
173,
|
| 1017 |
+
660,
|
| 1018 |
+
820,
|
| 1019 |
+
689
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 8
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Association for Computational Linguistics (ACL), 2016. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
173,
|
| 1028 |
+
696,
|
| 1029 |
+
823,
|
| 1030 |
+
726
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 8
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "Yiming Cui, Zhipeng Chen, Si Wei, Shijin Wang, Ting Liu, and Guoping Hu. Attention-overattention neural networks for reading comprehension. arXiv preprint arXiv:1607.04423, 2016. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
173,
|
| 1039 |
+
733,
|
| 1040 |
+
821,
|
| 1041 |
+
762
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 8
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Ian J Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron C Courville, and Yoshua Bengio. Maxout networks. ICML (3), 28:1319–1327, 2013. ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
173,
|
| 1050 |
+
770,
|
| 1051 |
+
821,
|
| 1052 |
+
800
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 8
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, pp. 1693–1701, 2015. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
176,
|
| 1061 |
+
808,
|
| 1062 |
+
821,
|
| 1063 |
+
851
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 8
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The goldilocks principle: Reading children’s books with explicit memory representations. In ICLR, 2016. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
173,
|
| 1072 |
+
858,
|
| 1073 |
+
821,
|
| 1074 |
+
887
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 8
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
174,
|
| 1083 |
+
895,
|
| 1084 |
+
821,
|
| 1085 |
+
922
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 8
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. arXiv preprint arXiv:1603.01547, 2016. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
171,
|
| 1094 |
+
103,
|
| 1095 |
+
823,
|
| 1096 |
+
132
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
176,
|
| 1105 |
+
138,
|
| 1106 |
+
823,
|
| 1107 |
+
167
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. arXiv preprint arXiv:1606.00061, 2016. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
174,
|
| 1117 |
+
823,
|
| 1118 |
+
203
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 9
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Christopher D Manning, Mihai Surdeanu, John Bauer, Jenny Rose Finkel, Steven Bethard, and David McClosky. The stanford corenlp natural language processing toolkit. In ACL (System Demonstrations), pp. 55–60, 2014. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
176,
|
| 1127 |
+
272,
|
| 1128 |
+
823,
|
| 1129 |
+
315
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
173,
|
| 1138 |
+
321,
|
| 1139 |
+
821,
|
| 1140 |
+
351
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 9
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–43, 2014. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
174,
|
| 1149 |
+
357,
|
| 1150 |
+
823,
|
| 1151 |
+
387
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "P. Rajpurkar, J. Zhang, K. Lopyrev, and P. Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. In Empirical Methods in Natural Language Processing (EMNLP), 2016. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
174,
|
| 1160 |
+
392,
|
| 1161 |
+
821,
|
| 1162 |
+
422
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Matthew Richardson, Christopher JC Burges, and Erin Renshaw. Mctest: A challenge dataset for the open-domain machine comprehension of text. In EMNLP, volume 3, pp. 4, 2013. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
428,
|
| 1172 |
+
821,
|
| 1173 |
+
458
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Alessandro Sordoni, Phillip Bachman, and Yoshua Bengio. Iterative alternating neural attention for machine reading. arXiv preprint arXiv:1606.02245, 2016. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
169,
|
| 1182 |
+
463,
|
| 1183 |
+
823,
|
| 1184 |
+
492
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
174,
|
| 1193 |
+
498,
|
| 1194 |
+
821,
|
| 1195 |
+
541
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Rupesh K Srivastava, Klaus Greff, and Juergen Schmidhuber. Training very deep networks. In Advances in Neural Information Processing Systems 28, pp. 2377–2385, 2015. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
171,
|
| 1204 |
+
547,
|
| 1205 |
+
821,
|
| 1206 |
+
577
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 9
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. Chainer: a next-generation open source framework for deep learning. In Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Twenty-ninth Annual Conference on Neural Information Processing Systems (NIPS), 2015. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
174,
|
| 1215 |
+
583,
|
| 1216 |
+
823,
|
| 1217 |
+
640
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 9
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
646,
|
| 1227 |
+
821,
|
| 1228 |
+
676
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 9
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Hai Wang, Mohit Bansal, Kevin Gimpel, and David McAllester. Machine comprehension with syntax, frames, and semantics. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pp. 700–706. Association for Computational Linguistics, 2015. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
173,
|
| 1237 |
+
681,
|
| 1238 |
+
826,
|
| 1239 |
+
751
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 9
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Shuohang Wang and Jing Jiang. Learning natural language inference with LSTM. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1442–1451. Association for Computational Linguistics, 2016a. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
173,
|
| 1248 |
+
758,
|
| 1249 |
+
825,
|
| 1250 |
+
815
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 9
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "Shuohang Wang and Jing Jiang. Machine comprehension using match-LSTM and answer pointer. arXiv preprint arXiv:1608.07905, 2016b. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
173,
|
| 1259 |
+
820,
|
| 1260 |
+
820,
|
| 1261 |
+
851
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 9
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Y. Yu, W. Zhang, K. Hasan, M. Yu, B. Xiang, and B. Zhou. End-to-End Reading Comprehension with Dynamic Answer Chunk Ranking. ArXiv e-prints, October 2016. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
174,
|
| 1270 |
+
857,
|
| 1271 |
+
820,
|
| 1272 |
+
887
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 9
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Yang Yu, Wei Zhang, Kazi Hasan, Mo Yu, Bing Xiang, and Bowen Zhou. End-to-end answer chunk extraction and ranking for reading comprehension. arXiv preprint arXiv:1610.09996v2, 2016. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
892,
|
| 1282 |
+
821,
|
| 1283 |
+
921
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 9
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "A APPENDIX ",
|
| 1290 |
+
"text_level": 1,
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
176,
|
| 1293 |
+
102,
|
| 1294 |
+
297,
|
| 1295 |
+
117
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "A.1 PERFORMANCE WITHOUT ATTENTION ",
|
| 1302 |
+
"text_level": 1,
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
176,
|
| 1305 |
+
135,
|
| 1306 |
+
480,
|
| 1307 |
+
148
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 10
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "In our experiments, we also investigate a model without any attention mechanism. In this model, the encoder is a simple LSTM network that first ingests the question and then ingests the document. The hidden states corresponding to words in the document is then passed to the decoder. This model achieves $3 3 . 3 \\%$ exact match and $4 1 . 9 \\%$ F1, significantly worse than models with attention. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
174,
|
| 1316 |
+
161,
|
| 1317 |
+
825,
|
| 1318 |
+
218
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 10
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "A.2 SAMPLES REQUIRING DIFFERENT TYPES OF REASONING ",
|
| 1325 |
+
"text_level": 1,
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
174,
|
| 1328 |
+
238,
|
| 1329 |
+
606,
|
| 1330 |
+
251
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 10
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "We generate predictions for examples requiring different types of reasoning, given by Rajpurkar et al. (2016). Because this set of examples is very limited, they do not conclusively demonstrate the effectiveness of the model on different types of reasoning tasks. Nevertheless, these examples show that the DCN is a promising architecture for challenging question answering tasks including those that involve reasoning over multiple sentences. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
174,
|
| 1339 |
+
263,
|
| 1340 |
+
825,
|
| 1341 |
+
333
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 10
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "WHAT IS THE RANKINE CYCLE SOMETIMES CALLED? ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
178,
|
| 1350 |
+
353,
|
| 1351 |
+
544,
|
| 1352 |
+
367
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "The Rankine cycle is sometimes referred to as a practical Carnot cycle because, when an efficient turbine is used, the TS diagram begins to resemble the Carnot cycle. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
173,
|
| 1361 |
+
381,
|
| 1362 |
+
823,
|
| 1363 |
+
409
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Type of reasoning Lexical variation (synonymy) ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
176,
|
| 1372 |
+
416,
|
| 1373 |
+
495,
|
| 1374 |
+
430
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 10
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Ground truth practical Carnot cycle ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
176,
|
| 1383 |
+
438,
|
| 1384 |
+
419,
|
| 1385 |
+
452
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 10
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Prediction practical Carnot cycle ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
176,
|
| 1394 |
+
459,
|
| 1395 |
+
397,
|
| 1396 |
+
473
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 10
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "WHICH TWO GOVERNING BODIES HAVE LEGISLATIVE VETO POWER? ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
174,
|
| 1405 |
+
493,
|
| 1406 |
+
647,
|
| 1407 |
+
507
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 10
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "While the Commision has a monopoly on initiating legislation, the European Parliament and the Council of the European Union have powers of amendment and veto during the legislative progress. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
173,
|
| 1416 |
+
518,
|
| 1417 |
+
823,
|
| 1418 |
+
547
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 10
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Type of reasoning Lexical variation (world knowledge) ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
178,
|
| 1427 |
+
554,
|
| 1428 |
+
540,
|
| 1429 |
+
569
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 10
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Ground truth the European Parliament and the Council of the European Union ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
176,
|
| 1438 |
+
575,
|
| 1439 |
+
696,
|
| 1440 |
+
590
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 10
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Prediction European Parliament and the Council of the European Union ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
176,
|
| 1449 |
+
597,
|
| 1450 |
+
650,
|
| 1451 |
+
611
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "WHAT SHAKESPEARE SCHOLAR IS CURRENTLY ON THE UNIVERSITYS FACULTY?",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
176,
|
| 1460 |
+
632,
|
| 1461 |
+
732,
|
| 1462 |
+
645
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Current faculty include the anthropologist Marshall Sahlins, historian Dipesh Chakrabarty, ... Shakespeare scholar David Bevington, and renowned political scientists John Mearsheimer and Robert Pape. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
176,
|
| 1471 |
+
659,
|
| 1472 |
+
823,
|
| 1473 |
+
700
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Type of reasoning Syntactic variation ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
176,
|
| 1482 |
+
707,
|
| 1483 |
+
426,
|
| 1484 |
+
722
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 10
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "Ground truth David Bevington ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
174,
|
| 1493 |
+
728,
|
| 1494 |
+
387,
|
| 1495 |
+
743
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 10
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "Prediction David Bevington ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
174,
|
| 1504 |
+
750,
|
| 1505 |
+
362,
|
| 1506 |
+
765
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 10
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "WHAT COLLECTION DOES THE V&A THEATRE & PERFORMANCE GALLERIES HOLD? ",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
171,
|
| 1515 |
+
784,
|
| 1516 |
+
759,
|
| 1517 |
+
797
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 10
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "The V&A Theatre & Performance galleries, formerly the Theatre Museum, opened in March 2009. The collections are stored by the V&A, and are available for research, exhibitions and other shows. They hold the UK’s biggest national collection of material about live performance in the UK since Shakespeare’s day, covering drama, dance, musical theatre, circus, music hall, rock and pop, and most other forms of live entertainment. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
174,
|
| 1526 |
+
810,
|
| 1527 |
+
825,
|
| 1528 |
+
881
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "Type of reasoning Multiple sentence reasoning ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
176,
|
| 1537 |
+
887,
|
| 1538 |
+
486,
|
| 1539 |
+
902
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 10
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "Ground truth Material about live performance ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
174,
|
| 1548 |
+
909,
|
| 1549 |
+
485,
|
| 1550 |
+
924
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 10
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "Prediction UK’s biggest national collection of material about live performance in the UK since Shakespeare’s day ",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
173,
|
| 1559 |
+
103,
|
| 1560 |
+
823,
|
| 1561 |
+
132
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 11
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "WHAT IS THE MAIN GOAL OF CRIMINAL PUNISHMENT OF CIVIL DISOBEDIENTS? ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
174,
|
| 1570 |
+
151,
|
| 1571 |
+
727,
|
| 1572 |
+
165
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 11
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"text": "Type of reasoning Ambiguous ",
|
| 1579 |
+
"text_level": 1,
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
176,
|
| 1582 |
+
178,
|
| 1583 |
+
380,
|
| 1584 |
+
193
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 11
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "text",
|
| 1590 |
+
"text": "Along with giving the offender his ”just deserts”, achieving crime control via incapacitation and deterrence is a major goal of crime punishment. ",
|
| 1591 |
+
"bbox": [
|
| 1592 |
+
174,
|
| 1593 |
+
199,
|
| 1594 |
+
825,
|
| 1595 |
+
227
|
| 1596 |
+
],
|
| 1597 |
+
"page_idx": 11
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"type": "text",
|
| 1601 |
+
"text": "Ground truth achieving crime control via incapacitation and deterrence ",
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
176,
|
| 1604 |
+
234,
|
| 1605 |
+
648,
|
| 1606 |
+
248
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 11
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "Prediction achieving crime control via incapacitation and deterrence ",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
174,
|
| 1615 |
+
256,
|
| 1616 |
+
625,
|
| 1617 |
+
270
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 11
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "A.3 SAMPLES OF CORRECT SQUAD PREDICTIONS BY THE DYNAMIC COATTENTION NETWORK ",
|
| 1624 |
+
"bbox": [
|
| 1625 |
+
173,
|
| 1626 |
+
290,
|
| 1627 |
+
772,
|
| 1628 |
+
318
|
| 1629 |
+
],
|
| 1630 |
+
"page_idx": 11
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"type": "text",
|
| 1634 |
+
"text": "HOW DID THE MONGOLS ACQUIRE CHINESE PRINTING TECHNOLOGY?",
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
178,
|
| 1637 |
+
330,
|
| 1638 |
+
663,
|
| 1639 |
+
344
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 11
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"type": "text",
|
| 1645 |
+
"text": "ID: 572882242ca10214002da420 ",
|
| 1646 |
+
"bbox": [
|
| 1647 |
+
176,
|
| 1648 |
+
357,
|
| 1649 |
+
397,
|
| 1650 |
+
371
|
| 1651 |
+
],
|
| 1652 |
+
"page_idx": 11
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "text",
|
| 1656 |
+
"text": "The Mongol rulers patronized the Yuan printing industry. Chinese printing technology was transferred to the Mongols through Kingdom of Qocho and Tibetan intermediaries. Some Yuan documents such as Wang Zhen’s Nong Shu were printed with earthenware movable type, a technology invented in the 12th century. However, most published works were still produced through traditional block printing techniques. The publication of a Taoist text inscribed with the name of Tregene Khatun, gedei’s wife, is one of the first printed works sponsored by the Mongols. In 1273, the Mongols created the Imperial Library Directorate, a government-sponsored printing office. The Yuan government established centers for printing throughout China. Local schools and government agencies were funded to support the publishing of books. ",
|
| 1657 |
+
"bbox": [
|
| 1658 |
+
174,
|
| 1659 |
+
378,
|
| 1660 |
+
825,
|
| 1661 |
+
503
|
| 1662 |
+
],
|
| 1663 |
+
"page_idx": 11
|
| 1664 |
+
},
|
| 1665 |
+
{
|
| 1666 |
+
"type": "text",
|
| 1667 |
+
"text": "Ground truth through Kingdom of Qocho and Tibetan intermediaries ",
|
| 1668 |
+
"bbox": [
|
| 1669 |
+
176,
|
| 1670 |
+
511,
|
| 1671 |
+
635,
|
| 1672 |
+
525
|
| 1673 |
+
],
|
| 1674 |
+
"page_idx": 11
|
| 1675 |
+
},
|
| 1676 |
+
{
|
| 1677 |
+
"type": "text",
|
| 1678 |
+
"text": "Prediction: through Kingdom of Qocho and Tibetan intermediaries ",
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
174,
|
| 1681 |
+
532,
|
| 1682 |
+
619,
|
| 1683 |
+
546
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 11
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "text",
|
| 1689 |
+
"text": "WHO APPOINTS ELDERS? ",
|
| 1690 |
+
"bbox": [
|
| 1691 |
+
176,
|
| 1692 |
+
564,
|
| 1693 |
+
351,
|
| 1694 |
+
578
|
| 1695 |
+
],
|
| 1696 |
+
"page_idx": 11
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"type": "text",
|
| 1700 |
+
"text": "ID 5730d473b7151e1900c0155b ",
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
176,
|
| 1703 |
+
588,
|
| 1704 |
+
392,
|
| 1705 |
+
603
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 11
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "Elders are called by God, affirmed by the church, and ordained by a bishop to a ministry of Word, Sacrament, Order and Service within the church. They may be appointed to the local church, or to other valid extension ministries of the church. Elders are given the authority to preach the Word of God, administer the sacraments of the church, to provide care and counseling, and to order the life of the church for ministry and mission. Elders may also be assigned as District Superintendents, and they are eligible for election to the episcopacy. Elders serve a term of 23 years as provisional Elders prior to their ordination. ",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
174,
|
| 1714 |
+
611,
|
| 1715 |
+
825,
|
| 1716 |
+
708
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 11
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "text",
|
| 1722 |
+
"text": "Ground truth bishop, the local church ",
|
| 1723 |
+
"bbox": [
|
| 1724 |
+
176,
|
| 1725 |
+
715,
|
| 1726 |
+
431,
|
| 1727 |
+
729
|
| 1728 |
+
],
|
| 1729 |
+
"page_idx": 11
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"type": "text",
|
| 1733 |
+
"text": "Prediction a bishop ",
|
| 1734 |
+
"bbox": [
|
| 1735 |
+
174,
|
| 1736 |
+
737,
|
| 1737 |
+
307,
|
| 1738 |
+
751
|
| 1739 |
+
],
|
| 1740 |
+
"page_idx": 11
|
| 1741 |
+
},
|
| 1742 |
+
{
|
| 1743 |
+
"type": "text",
|
| 1744 |
+
"text": "AN ALGORITHM FOR X WHICH REDUCES TO C WOULD ALLOW US TO DO WHAT? ",
|
| 1745 |
+
"bbox": [
|
| 1746 |
+
176,
|
| 1747 |
+
770,
|
| 1748 |
+
728,
|
| 1749 |
+
785
|
| 1750 |
+
],
|
| 1751 |
+
"page_idx": 11
|
| 1752 |
+
},
|
| 1753 |
+
{
|
| 1754 |
+
"type": "text",
|
| 1755 |
+
"text": "ID 56e1ce08e3433e14004231a6 ",
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
176,
|
| 1758 |
+
796,
|
| 1759 |
+
388,
|
| 1760 |
+
810
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 11
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "text",
|
| 1766 |
+
"text": "This motivates the concept of a problem being hard for a complexity class. A problem X is hard for a class of problems C if every problem in C can be reduced to X. Thus no problem in C is harder than X, since an algorithm for X allows us to solve any problem in C. Of course, the notion of hard problems depends on the type of reduction being used. For complexity classes larger than P, polynomial-time reductions are commonly used. In particular, the set of problems that are hard for NP is the set of NP-hard problems. ",
|
| 1767 |
+
"bbox": [
|
| 1768 |
+
174,
|
| 1769 |
+
819,
|
| 1770 |
+
825,
|
| 1771 |
+
901
|
| 1772 |
+
],
|
| 1773 |
+
"page_idx": 11
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"type": "text",
|
| 1777 |
+
"text": "Ground truth solve any problem in C ",
|
| 1778 |
+
"bbox": [
|
| 1779 |
+
176,
|
| 1780 |
+
909,
|
| 1781 |
+
426,
|
| 1782 |
+
922
|
| 1783 |
+
],
|
| 1784 |
+
"page_idx": 11
|
| 1785 |
+
},
|
| 1786 |
+
{
|
| 1787 |
+
"type": "text",
|
| 1788 |
+
"text": "Prediction solve any problem in C ",
|
| 1789 |
+
"bbox": [
|
| 1790 |
+
176,
|
| 1791 |
+
103,
|
| 1792 |
+
403,
|
| 1793 |
+
117
|
| 1794 |
+
],
|
| 1795 |
+
"page_idx": 12
|
| 1796 |
+
},
|
| 1797 |
+
{
|
| 1798 |
+
"type": "text",
|
| 1799 |
+
"text": "HOW MANY GENERAL QUESTIONS ARE AVAILABLE TO OPPOSITION LEADERS? ",
|
| 1800 |
+
"bbox": [
|
| 1801 |
+
176,
|
| 1802 |
+
137,
|
| 1803 |
+
714,
|
| 1804 |
+
150
|
| 1805 |
+
],
|
| 1806 |
+
"page_idx": 12
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "text",
|
| 1810 |
+
"text": "ID 572fd7b8947a6a140053cd3e ",
|
| 1811 |
+
"bbox": [
|
| 1812 |
+
174,
|
| 1813 |
+
161,
|
| 1814 |
+
387,
|
| 1815 |
+
175
|
| 1816 |
+
],
|
| 1817 |
+
"page_idx": 12
|
| 1818 |
+
},
|
| 1819 |
+
{
|
| 1820 |
+
"type": "text",
|
| 1821 |
+
"text": "Parliamentary time is also set aside for question periods in the debating chamber. A ”General Question Time” takes place on a Thursday between $1 1 { : } 4 0 \\ \\mathrm { a . m }$ . and $1 2 \\ \\mathrm { p . m }$ . where members can direct questions to any member of the Scottish Government. At $2 . 3 0 \\mathrm { p m }$ , a 40-minute long themed ”Question Time” takes place, where members can ask questions of ministers in departments that are selected for questioning that sitting day, such as health and justice or education and transport. Between $1 2 \\ \\mathrm { p . m }$ . and $1 2 { : } 3 0 ~ \\mathrm { p . m }$ . on Thursdays, when Parliament is sitting, First Minister’s Question Time takes place. This gives members an opportunity to question the First Minister directly on issues under their jurisdiction. Opposition leaders ask a general question of the First Minister and then supplementary questions. Such a practice enables a ”lead-in” to the questioner, who then uses their supplementary question to ask the First Minister any issue. The four general questions available to opposition leaders are: ",
|
| 1822 |
+
"bbox": [
|
| 1823 |
+
174,
|
| 1824 |
+
184,
|
| 1825 |
+
825,
|
| 1826 |
+
335
|
| 1827 |
+
],
|
| 1828 |
+
"page_idx": 12
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"type": "text",
|
| 1832 |
+
"text": "Ground truth four ",
|
| 1833 |
+
"text_level": 1,
|
| 1834 |
+
"bbox": [
|
| 1835 |
+
174,
|
| 1836 |
+
343,
|
| 1837 |
+
302,
|
| 1838 |
+
357
|
| 1839 |
+
],
|
| 1840 |
+
"page_idx": 12
|
| 1841 |
+
},
|
| 1842 |
+
{
|
| 1843 |
+
"type": "text",
|
| 1844 |
+
"text": "Prediction four ",
|
| 1845 |
+
"text_level": 1,
|
| 1846 |
+
"bbox": [
|
| 1847 |
+
176,
|
| 1848 |
+
364,
|
| 1849 |
+
279,
|
| 1850 |
+
378
|
| 1851 |
+
],
|
| 1852 |
+
"page_idx": 12
|
| 1853 |
+
},
|
| 1854 |
+
{
|
| 1855 |
+
"type": "text",
|
| 1856 |
+
"text": "WHAT ARE SOME OF THE ACCEPTED GENERAL PRINCIPLES OF EUROPEAN UNION LAW? ",
|
| 1857 |
+
"bbox": [
|
| 1858 |
+
173,
|
| 1859 |
+
397,
|
| 1860 |
+
781,
|
| 1861 |
+
410
|
| 1862 |
+
],
|
| 1863 |
+
"page_idx": 12
|
| 1864 |
+
},
|
| 1865 |
+
{
|
| 1866 |
+
"type": "text",
|
| 1867 |
+
"text": "ID 5726a00cf1498d1400e8e551 ",
|
| 1868 |
+
"bbox": [
|
| 1869 |
+
176,
|
| 1870 |
+
422,
|
| 1871 |
+
387,
|
| 1872 |
+
436
|
| 1873 |
+
],
|
| 1874 |
+
"page_idx": 12
|
| 1875 |
+
},
|
| 1876 |
+
{
|
| 1877 |
+
"type": "text",
|
| 1878 |
+
"text": "The principles of European Union law are rules of law which have been developed by the European Court of Justice that constitute unwritten rules which are not expressly provided for in the treaties but which affect how European Union law is interpreted and applies. In formulating these principles, the courts have drawn on a variety of sources, including: public international law and legal doctrines and principles present in the legal systems of European Union member states and in the jurisprudence of the European Court of Human Rights. Accepted general principles of European Union Law include fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity. ",
|
| 1879 |
+
"bbox": [
|
| 1880 |
+
174,
|
| 1881 |
+
444,
|
| 1882 |
+
825,
|
| 1883 |
+
556
|
| 1884 |
+
],
|
| 1885 |
+
"page_idx": 12
|
| 1886 |
+
},
|
| 1887 |
+
{
|
| 1888 |
+
"type": "text",
|
| 1889 |
+
"text": "Ground truth fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity ",
|
| 1890 |
+
"bbox": [
|
| 1891 |
+
174,
|
| 1892 |
+
563,
|
| 1893 |
+
820,
|
| 1894 |
+
590
|
| 1895 |
+
],
|
| 1896 |
+
"page_idx": 12
|
| 1897 |
+
},
|
| 1898 |
+
{
|
| 1899 |
+
"type": "text",
|
| 1900 |
+
"text": "Prediction fundamental rights (see human rights), proportionality, legal certainty, equality before the law and subsidiarity ",
|
| 1901 |
+
"bbox": [
|
| 1902 |
+
174,
|
| 1903 |
+
598,
|
| 1904 |
+
823,
|
| 1905 |
+
626
|
| 1906 |
+
],
|
| 1907 |
+
"page_idx": 12
|
| 1908 |
+
},
|
| 1909 |
+
{
|
| 1910 |
+
"type": "text",
|
| 1911 |
+
"text": "WHY WAS TESLA RETURNED TO GOSPIC? ",
|
| 1912 |
+
"bbox": [
|
| 1913 |
+
176,
|
| 1914 |
+
643,
|
| 1915 |
+
465,
|
| 1916 |
+
657
|
| 1917 |
+
],
|
| 1918 |
+
"page_idx": 12
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"type": "text",
|
| 1922 |
+
"text": "ID 56dfaa047aa994140058dfbd ",
|
| 1923 |
+
"bbox": [
|
| 1924 |
+
176,
|
| 1925 |
+
670,
|
| 1926 |
+
385,
|
| 1927 |
+
684
|
| 1928 |
+
],
|
| 1929 |
+
"page_idx": 12
|
| 1930 |
+
},
|
| 1931 |
+
{
|
| 1932 |
+
"type": "text",
|
| 1933 |
+
"text": "On 24 March 1879, Tesla was returned to Gospi under police guard for not having a residence permit. On 17 April 1879, Milutin Tesla died at the age of 60 after contracting an unspecified illness (although some sources say that he died of a stroke). During that year, Tesla taught a large class of students in his old school, Higher Real Gymnasium, in Gospi. ",
|
| 1934 |
+
"bbox": [
|
| 1935 |
+
174,
|
| 1936 |
+
691,
|
| 1937 |
+
825,
|
| 1938 |
+
747
|
| 1939 |
+
],
|
| 1940 |
+
"page_idx": 12
|
| 1941 |
+
},
|
| 1942 |
+
{
|
| 1943 |
+
"type": "text",
|
| 1944 |
+
"text": "Ground truth not having a residence permit ",
|
| 1945 |
+
"bbox": [
|
| 1946 |
+
176,
|
| 1947 |
+
753,
|
| 1948 |
+
467,
|
| 1949 |
+
768
|
| 1950 |
+
],
|
| 1951 |
+
"page_idx": 12
|
| 1952 |
+
},
|
| 1953 |
+
{
|
| 1954 |
+
"type": "text",
|
| 1955 |
+
"text": "Prediction not having a residence permit ",
|
| 1956 |
+
"bbox": [
|
| 1957 |
+
176,
|
| 1958 |
+
775,
|
| 1959 |
+
444,
|
| 1960 |
+
790
|
| 1961 |
+
],
|
| 1962 |
+
"page_idx": 12
|
| 1963 |
+
},
|
| 1964 |
+
{
|
| 1965 |
+
"type": "text",
|
| 1966 |
+
"text": "A.4 SAMPLES OF INCORRECT SQUAD PREDICTIONS BY THE DYNAMIC COATTENTION NETWORK ",
|
| 1967 |
+
"bbox": [
|
| 1968 |
+
173,
|
| 1969 |
+
808,
|
| 1970 |
+
790,
|
| 1971 |
+
835
|
| 1972 |
+
],
|
| 1973 |
+
"page_idx": 12
|
| 1974 |
+
},
|
| 1975 |
+
{
|
| 1976 |
+
"type": "text",
|
| 1977 |
+
"text": "WHAT IS ONE SUPPLEMENTARY SOURCE OF EUROPEAN UNION LAW? ",
|
| 1978 |
+
"bbox": [
|
| 1979 |
+
176,
|
| 1980 |
+
847,
|
| 1981 |
+
653,
|
| 1982 |
+
861
|
| 1983 |
+
],
|
| 1984 |
+
"page_idx": 12
|
| 1985 |
+
},
|
| 1986 |
+
{
|
| 1987 |
+
"type": "text",
|
| 1988 |
+
"text": "ID 5725c3a9ec44d21400f3d506 ",
|
| 1989 |
+
"bbox": [
|
| 1990 |
+
176,
|
| 1991 |
+
873,
|
| 1992 |
+
388,
|
| 1993 |
+
888
|
| 1994 |
+
],
|
| 1995 |
+
"page_idx": 12
|
| 1996 |
+
},
|
| 1997 |
+
{
|
| 1998 |
+
"type": "text",
|
| 1999 |
+
"text": "European Union law is applied by the courts of member states and the Court of Justice of the European Union. Where the laws of member states provide for lesser rights European Union law can be enforced by the courts of member states. In case of European Union law which should have been transposed into the laws of member states, such as Directives, the European Commission can take proceedings against the member state under the Treaty on the Functioning of the European Union. The European Court of Justice is the highest court able to interpret European Union law. Supplementary sources of European Union law include case law by the Court of Justice, international law and general principles of European Union law. ",
|
| 2000 |
+
"bbox": [
|
| 2001 |
+
174,
|
| 2002 |
+
895,
|
| 2003 |
+
823,
|
| 2004 |
+
922
|
| 2005 |
+
],
|
| 2006 |
+
"page_idx": 12
|
| 2007 |
+
},
|
| 2008 |
+
{
|
| 2009 |
+
"type": "text",
|
| 2010 |
+
"text": "",
|
| 2011 |
+
"bbox": [
|
| 2012 |
+
174,
|
| 2013 |
+
103,
|
| 2014 |
+
825,
|
| 2015 |
+
186
|
| 2016 |
+
],
|
| 2017 |
+
"page_idx": 13
|
| 2018 |
+
},
|
| 2019 |
+
{
|
| 2020 |
+
"type": "text",
|
| 2021 |
+
"text": "Ground truth international law ",
|
| 2022 |
+
"bbox": [
|
| 2023 |
+
176,
|
| 2024 |
+
194,
|
| 2025 |
+
385,
|
| 2026 |
+
208
|
| 2027 |
+
],
|
| 2028 |
+
"page_idx": 13
|
| 2029 |
+
},
|
| 2030 |
+
{
|
| 2031 |
+
"type": "text",
|
| 2032 |
+
"text": "Prediction case law by the Court of Justice ",
|
| 2033 |
+
"bbox": [
|
| 2034 |
+
174,
|
| 2035 |
+
215,
|
| 2036 |
+
460,
|
| 2037 |
+
229
|
| 2038 |
+
],
|
| 2039 |
+
"page_idx": 13
|
| 2040 |
+
},
|
| 2041 |
+
{
|
| 2042 |
+
"type": "text",
|
| 2043 |
+
"text": "Comment The prediction produced by the model is correct, however it was not selected by Mechanical Turk annotators. ",
|
| 2044 |
+
"bbox": [
|
| 2045 |
+
173,
|
| 2046 |
+
237,
|
| 2047 |
+
821,
|
| 2048 |
+
265
|
| 2049 |
+
],
|
| 2050 |
+
"page_idx": 13
|
| 2051 |
+
},
|
| 2052 |
+
{
|
| 2053 |
+
"type": "text",
|
| 2054 |
+
"text": "WHO DESIGNED THE ILLUMINATION SYSTEMS THAT TESLA ELECTRIC LIGHT & MANUFACTURING INSTALLED? ",
|
| 2055 |
+
"bbox": [
|
| 2056 |
+
176,
|
| 2057 |
+
282,
|
| 2058 |
+
727,
|
| 2059 |
+
309
|
| 2060 |
+
],
|
| 2061 |
+
"page_idx": 13
|
| 2062 |
+
},
|
| 2063 |
+
{
|
| 2064 |
+
"type": "text",
|
| 2065 |
+
"text": "ID 56e0d6cf231d4119001ac424 ",
|
| 2066 |
+
"text_level": 1,
|
| 2067 |
+
"bbox": [
|
| 2068 |
+
174,
|
| 2069 |
+
321,
|
| 2070 |
+
388,
|
| 2071 |
+
335
|
| 2072 |
+
],
|
| 2073 |
+
"page_idx": 13
|
| 2074 |
+
},
|
| 2075 |
+
{
|
| 2076 |
+
"type": "text",
|
| 2077 |
+
"text": "After leaving Edison’s company Tesla partnered with two businessmen in 1886, Robert Lane and Benjamin Vail, who agreed to finance an electric lighting company in Tesla’s name, Tesla Electric Light & Manufacturing. The company installed electrical arc light based illumination systems designed by Tesla and also had designs for dynamo electric machine commutators, the first patents issued to Tesla in the US. ",
|
| 2078 |
+
"bbox": [
|
| 2079 |
+
174,
|
| 2080 |
+
343,
|
| 2081 |
+
825,
|
| 2082 |
+
412
|
| 2083 |
+
],
|
| 2084 |
+
"page_idx": 13
|
| 2085 |
+
},
|
| 2086 |
+
{
|
| 2087 |
+
"type": "text",
|
| 2088 |
+
"text": "Ground truth Tesla ",
|
| 2089 |
+
"text_level": 1,
|
| 2090 |
+
"bbox": [
|
| 2091 |
+
174,
|
| 2092 |
+
420,
|
| 2093 |
+
310,
|
| 2094 |
+
434
|
| 2095 |
+
],
|
| 2096 |
+
"page_idx": 13
|
| 2097 |
+
},
|
| 2098 |
+
{
|
| 2099 |
+
"type": "text",
|
| 2100 |
+
"text": "Prediction Robert Lane and Benjamin Vail ",
|
| 2101 |
+
"bbox": [
|
| 2102 |
+
176,
|
| 2103 |
+
441,
|
| 2104 |
+
459,
|
| 2105 |
+
455
|
| 2106 |
+
],
|
| 2107 |
+
"page_idx": 13
|
| 2108 |
+
},
|
| 2109 |
+
{
|
| 2110 |
+
"type": "text",
|
| 2111 |
+
"text": "Comment The model produces an incorrect prediction that corresponds to people that funded Tesla, instead of Tesla who actually designed the illumination system. Empirically, we find that most mistakes made by the model have the correct type (eg. named entity type) despite not including types as prior knowledge to the model. In this case, the incorrect response has the correct type of person. ",
|
| 2112 |
+
"bbox": [
|
| 2113 |
+
174,
|
| 2114 |
+
463,
|
| 2115 |
+
825,
|
| 2116 |
+
532
|
| 2117 |
+
],
|
| 2118 |
+
"page_idx": 13
|
| 2119 |
+
},
|
| 2120 |
+
{
|
| 2121 |
+
"type": "text",
|
| 2122 |
+
"text": "CYDIPPID ARE TYPICALLY WHAT SHAPE? ",
|
| 2123 |
+
"bbox": [
|
| 2124 |
+
176,
|
| 2125 |
+
550,
|
| 2126 |
+
462,
|
| 2127 |
+
564
|
| 2128 |
+
],
|
| 2129 |
+
"page_idx": 13
|
| 2130 |
+
},
|
| 2131 |
+
{
|
| 2132 |
+
"type": "text",
|
| 2133 |
+
"text": "ID 57265746dd62a815002e821a ",
|
| 2134 |
+
"text_level": 1,
|
| 2135 |
+
"bbox": [
|
| 2136 |
+
174,
|
| 2137 |
+
575,
|
| 2138 |
+
392,
|
| 2139 |
+
590
|
| 2140 |
+
],
|
| 2141 |
+
"page_idx": 13
|
| 2142 |
+
},
|
| 2143 |
+
{
|
| 2144 |
+
"type": "text",
|
| 2145 |
+
"text": "Cydippid ctenophores have bodies that are more or less rounded, sometimes nearly spherical and other times more cylindrical or egg-shaped; the common coastal ”sea gooseberry,” Pleurobrachia, sometimes has an egg-shaped body with the mouth at the narrow end, although some individuals are more uniformly round. From opposite sides of the body extends a pair of long, slender tentacles, each housed in a sheath into which it can be withdrawn. Some species of cydippids have bodies that are flattened to various extents, so that they are wider in the plane of the tentacles. ",
|
| 2146 |
+
"bbox": [
|
| 2147 |
+
174,
|
| 2148 |
+
597,
|
| 2149 |
+
825,
|
| 2150 |
+
680
|
| 2151 |
+
],
|
| 2152 |
+
"page_idx": 13
|
| 2153 |
+
},
|
| 2154 |
+
{
|
| 2155 |
+
"type": "text",
|
| 2156 |
+
"text": "Ground truth more or less rounded, egg-shaped ",
|
| 2157 |
+
"bbox": [
|
| 2158 |
+
174,
|
| 2159 |
+
688,
|
| 2160 |
+
495,
|
| 2161 |
+
702
|
| 2162 |
+
],
|
| 2163 |
+
"page_idx": 13
|
| 2164 |
+
},
|
| 2165 |
+
{
|
| 2166 |
+
"type": "text",
|
| 2167 |
+
"text": "Prediction spherical ",
|
| 2168 |
+
"text_level": 1,
|
| 2169 |
+
"bbox": [
|
| 2170 |
+
174,
|
| 2171 |
+
709,
|
| 2172 |
+
310,
|
| 2173 |
+
723
|
| 2174 |
+
],
|
| 2175 |
+
"page_idx": 13
|
| 2176 |
+
},
|
| 2177 |
+
{
|
| 2178 |
+
"type": "text",
|
| 2179 |
+
"text": "Comment Although the mistake is subtle, the prediction is incorrect. The statement “are more or less rounded, sometimes nearly spherical” suggests that the entity is more often “rounded” than “spherical” or “cylindrical” or “egg-shaped” (an answer given by an annotator). This suggests that the model has trouble discerning among multiple intuitive answers due to a lack of understanding of the relative severity of “more or less” versus “sometimes” and “other times”. ",
|
| 2180 |
+
"bbox": [
|
| 2181 |
+
174,
|
| 2182 |
+
731,
|
| 2183 |
+
825,
|
| 2184 |
+
800
|
| 2185 |
+
],
|
| 2186 |
+
"page_idx": 13
|
| 2187 |
+
}
|
| 2188 |
+
]
|
parse/train/rJeKjwvclx/rJeKjwvclx_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJeKjwvclx/rJeKjwvclx_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/tUeeRzMXJZ/tUeeRzMXJZ.md
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Provably Efficient Causal Reinforcement Learning with Confounded Observational Data
|
| 2 |
+
|
| 3 |
+
Lingxiao Wang Northwestern University lwang@u.northwestern.edu
|
| 4 |
+
|
| 5 |
+
Zhuoran Yang Princeton University zy6@princeton.edu
|
| 6 |
+
|
| 7 |
+
Zhaoran Wang Northwestern University zhaoranwang@gmail.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Empowered by neural networks, deep reinforcement learning (DRL) achieves tremendous empirical success. However, DRL requires a large dataset by interacting with the environment, which is unrealistic in critical scenarios such as autonomous driving and personalized medicine. In this paper, we study how to incorporate the dataset collected in the offline setting to improve the sample efficiency in the online setting. To incorporate the observational data, we face two challenges. (a) The behavior policy that generates the observational data may depend on unobserved random variables (confounders), which affect the received rewards and transition dynamics. (b) Exploration in the online setting requires quantifying the uncertainty given both the observational and interventional data. To tackle such challenges, we propose the deconfounded optimistic value iteration (DOVI) algorithm, which incorporates the confounded observational data in a provably efficient manner. DOVI explicitly adjusts for the confounding bias in the observational data, where the confounders are partially observed or unobserved. In both cases, such adjustments allow us to construct the bonus based on a notion of information gain, which takes into account the amount of information acquired from the offline setting. In particular, we prove that the regret of DOVI is smaller than the optimal regret achievable in the pure online setting when the confounded observational data are informative upon the adjustments.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Empowered by the breakthrough in neural networks, deep reinforcement learning (DRL) achieves significant empirical successes in various scenarios [19, 23, 36, 37]. Learning an expressive function approximator necessitates collecting a large dataset. Specifically, in the online setting, it requires the agent to interact with the environment for a large number of steps. For example, to learn a human-level policy for playing Atari games, the agent has to interact with a simulator for more than $1 0 ^ { 8 }$ steps [13]. However, in most scenarios, we do not have access to a simulator that allows for trial and error without any cost. Meanwhile, in critical scenarios, e.g., autonomous driving and personalized medicine, trial and error in the real world is unsafe and even unethical. As a result, it remains challenging to apply DRL to more scenarios.
|
| 16 |
+
|
| 17 |
+
To bypass such a barrier, we study how to incorporate the dataset collected offline, namely the observational data, to improve the sample efficiency of RL in the online setting [21]. In contrast to the interventional data collected online in possibly expensive ways, observational data are often abundantly available in various scenarios. For example, in autonomous driving, we have access to trajectories generated by the drivers. As another example, in personalized medicine, we have access to electronic health records from doctors. However, to incorporate the observational data in a provably efficient way, we have to address two challenges.
|
| 18 |
+
|
| 19 |
+
• The observational data are possibly confounded. Specifically, there often exist unobserved random variables, namely confounders, that causally affect the agent and the environment at the same time. In particular, the policy used to generate the observational data, namely the behavior policy, possibly depends on the confounders. Meanwhile, the confounders possibly affect the received rewards and the transition dynamics.
|
| 20 |
+
|
| 21 |
+
In the example of autonomous driving [9, 22], the drivers may be affected by complicated traffic or poor road design, resulting in traffic accidents even without misconduct. The complicated traffic and poor road design subsequently affect both the action of the drivers and the outcome. Therefore, it is unclear from the observational data whether the accidents are due to the actions adopted by the drivers. Agents trained with such observational data may be unwilling to take any actions under complicated traffic, jeopardizing the safety of passengers.
|
| 22 |
+
|
| 23 |
+
In the example of personalized medicine [8, 29], the patients may not be compliant with prescriptions and instructions, which subsequently affects both the treatment and the outcome. As another example, the doctor may prescribe medicine to patients based on patients’ socioeconomic status (which could be inferred by the doctor through interacting with the patients). Meanwhile, socioeconomic status affects the patients’ health condition and subsequently plays the role of the confounder. In both scenarios, such confounders may be unavailable due to privacy or ethical concerns. Such a confounding issue makes the observational data uninformative and even misleading for identifying and estimating the causal effect, which is crucial for decision-making in the online setting. In all the examples, it is unclear from the observational data whether the outcome is due to the actions adopted.
|
| 24 |
+
|
| 25 |
+
• Even without the confounding issue, it remains unclear how the observational data may facilitate exploration in the online setting, which is the key to the sample efficiency of RL. At the core of exploration is uncertainty quantification. Specifically, quantifying the uncertainty that remains given the dataset collected up to the current step, including the observational data and the interventional data, allows us to construct a bonus. When incorporated into the reward, such a bonus encourages the agent to explore the less visited state-action pairs with more uncertainty. In particular, constructing such a bonus requires quantifying the amount of information carried over by the observational data from the offline setting, which also plays a key role in characterizing the regret, especially how much the observational data may facilitate reducing the regret.
|
| 26 |
+
|
| 27 |
+
Uncertainty quantification becomes even more challenging when the observational data are confounded. Specifically, as the behavior policy depends on the confounders, there is a mismatch between the data generating processes in the offline setting and the online setting. As a result, it remains challenging to quantify how much information carried over from the offline setting is useful for the online setting, as the observational data are uninformative and even misleading due to the confounding issue.
|
| 28 |
+
|
| 29 |
+
Contribution. To study causal reinforcement learning, we propose a class of Markov decision processes (MDPs), namely confounded MDPs, which captures the data generating processes in both the offline setting and the online setting as well as their mismatch due to the confounding issue. In particular, we study two tractable cases of confounded MDPs in the episodic setting with linear function approximation [7, 16, 42, 43].
|
| 30 |
+
|
| 31 |
+
• In the first case, the confounders are partially observed in the observational data. Assuming that an observed subset of the confounders satisfies the backdoor criterion [32], we propose the deconfounded optimistic value iteration (DOVI) algorithm, which explicitly corrects for the confounding bias in the observational data using the backdoor adjustment. • In the second case, the confounders are unobserved in the observational data. Assuming that there exists an observed set of intermediate states that satisfies the frontdoor criterion [32], we propose an extension of DOVI, namely $\mathrm { D O V I ^ { + } }$ , which explicitly corrects for the confounding bias in the observational data using the composition of two backdoor adjustments. We remark that $\mathrm { D O V I ^ { + } }$ follows the same principle of design as DOVI and defer the discussion of $\mathrm { D O V I ^ { + } }$ to $\ S$ .
|
| 32 |
+
|
| 33 |
+
In both cases, the adjustments allow DOVI and $\mathrm { D O V I ^ { + } }$ to incorporate the observational data into the interventional data while bypassing the confounding issue. It further enables estimating the causal effect of a policy on the received rewards and the transition dynamics with enlarged effective sample size. Moreover, such adjustments allow us to construct the bonus based on a notion of information gain, which takes into account the amount of information carried over from the offline setting.
|
| 34 |
+
|
| 35 |
+
In particular, we prove that DOVI and $\mathrm { D O V I ^ { + } }$ attain the $\Delta _ { H } \cdot \sqrt { d ^ { 3 } H ^ { 3 } T }$ -regret up to logarithmic factors, where $d$ is the dimension of features, $H$ is the length of each episode, and $\bar { T _ { \mathbf { \Lambda } } } = H K$ is the number of steps taken in the online setting, where $K$ is the number of episodes. Here the multiplicative factor $\Delta _ { H } > 0$ depends on $d , H ,$ , and a notion of information gain that quantifies the amount of information obtained from the interventional data additionally when given the properly adjusted observational data. When the observational data are unavailable or uninformative upon the adjustments, √ $\Delta _ { H }$ is a logarithmic factor. Correspondingly, DOVI and $\mathrm { D O V I ^ { + } }$ attain the optimal $\sqrt { T }$ -regret achievable in the pure online setting [7, 16, 42, 43]. When the observational data are sufficiently informative upon the adjustments, $\Delta _ { H }$ decreases towards zero as the effective sample size of the observational data increases, which quantifies how much the observational data may facilitate exploration in the online setting.
|
| 36 |
+
|
| 37 |
+
Related Work. Our work is related to the study of causal bandit [20]. The goal of causal bandit is to obtain the optimal intervention in the online setting where the data generating process is described by a causal diagram. The previous study establishes causal bandit algorithms in the online setting [26, 34], the offline setting [17, 18], and a combination of both settings [11]. In contrast to this line of work, we study causal RL in a combination of the online setting and the offline setting. Causal RL is more challenging than causal bandit, which corresponds to $H = 1$ , as it involves the transition dynamics and is more challenging in exploration. See $\ S _ { \mathrm { B } }$ for a detailed literature review on causal bandit.
|
| 38 |
+
|
| 39 |
+
Our work is related to the study of causal RL considered in various settings. [45] propose a modelbased RL algorithm that solves dynamic treatment regimes (DTR), which involve a combination of the online setting and the offline setting. Their algorithm hinges on the analysis of sensitivity [3, 27, 38, 44], which constructs a set of feasible models of the transition dynamics based on the confounded observational data. Correspondingly, their algorithm achieves exploration by choosing an optimistic model of the transition dynamics from such a feasible set. In contrast, we propose a model-free RL algorithm, which achieves exploration through the bonus based on a notion of information gain. It is worth mentioning that the assumption of [45] is weaker than ours as theirs does not allow for identifying the causal effect. As a result of partial identification, the regret of their algorithm is the same as the regret in the pure online setting as $T \to + \infty$ . In contrast, our work instantiates the following framework in handling confounders for reinforcement learning. (a) First, we propose the estimation equation based on the observations, which identifies the causal effect of actions on the cumulative reward. (b) Second, we conduct point estimation and uncertainty quantification based on observations and the estimation equation. (c) Finally, we conduct exploration based on the uncertainty quantification and achieve the regret reduction in the online setting. Consequently, the regret of our algorithm is smaller than the regret in the pure online setting by a multiplicative factor for all $T$ . [25] propose a model-based RL algorithm in a combination of the online setting and the offline setting. Their algorithm uses a variational autoencoder (VAE) for estimating a structural causal model (SCM) based on the confounded observational data. In particular, their algorithm utilizes the actor-critic algorithm to obtain the optimal policy in such an SCM. However, the regret of their algorithm remains unclear. [6] propose a model-based RL algorithm in the pure online setting that learns the optimal policy in a partially observable Markov decision process (POMDP). The regret of their algorithm also remains unclear. [35] utilize generative adversarial reinforcement learning to reconstruct transition dynamics with confounder, and [40] propose a model-based approach for POMDP based on adjustment with proxy variables. [30] consider offpolicy policy evaluation under one-decision confounding and constructs worst-case bounds with theoretical guarantee. [4] utilizes states and actions as proxy variables to tackle off-policy policy evaluation with confounders. In contrast, our work utilizes backdoor and frontdoor adjustments to handle confounded observation.
|
| 40 |
+
|
| 41 |
+
# 2 Confounded Reinforcement Learning
|
| 42 |
+
|
| 43 |
+
Structural Causal Model. We denote a structural causal model (SCM) [32] by a tuple $( A , B , F , P )$ . Here $A$ is the set of exogenous (unobserved) variables, $B$ is the set of endogenous (observed) variables, $F$ is the set of structural functions capturing the causal relations, which determines an endogenous variable $v \in B$ based on the other exogenous and endogenous variables, and $P$ is the distribution of all the exogenous variables. We say that a pair of variables $Y$ and $Z$ are confounded by a variable $W$ if they are both caused by $W$ .
|
| 44 |
+
|
| 45 |
+
An intervention on a set of endogenous variables $X \subseteq B$ assigns a value $x$ to $X$ regardless of the other exogenous and endogenous variables as well as the structural functions. We denote by $\operatorname { d o } ( X \ = \ x )$ the intervention on $X$ and write $\operatorname { d o } ( x )$ if it is clear from the context. Similarly, a stochastic intervention [10, 28] on a set of endogenous variables $X \subseteq B$ assigns a distribution $p$ to $X$ regardless of the other exogenous and endogenous variables as well as the structural functions. We denote by $\mathrm { d o } ( X \sim p )$ the stochastic intervention on $X$ .
|
| 46 |
+
|
| 47 |
+
Confounded Markov Decision Process. To characterize a Markov decision process (MDP) in the offline setting with observational data, which are possibly confounded, we introduce an SCM, where the endogenous variables are the states $\{ s _ { h } \} _ { h \in [ H ] }$ , actions $\{ a _ { h } \} _ { h \in [ H ] }$ , and rewards $\{ r _ { h } \} _ { h \in [ H ] }$ . Let $\{ w _ { h } \} _ { h \in [ H ] }$ be the confounders. In $\ S 3$ , we assume that the confounders are partially observed, while in $\ S$ , we assume that they are unobserved. The set of structural functions $F$ consists of the transition of states $s _ { h + 1 } \sim \mathcal { P } _ { h } ( \cdot \mid s _ { h } , a _ { h } , w _ { h } )$ , the transition of confounders $w _ { h } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot \vert s _ { h } )$ , the behavior policy $a _ { h } \sim \nu _ { h } ( \cdot \mid s _ { h } , w _ { h } )$ , which depends on the confounder $w _ { h }$ , and the reward function $r _ { h } ( s _ { h } , a _ { h } , w _ { h } )$ . See Figure 1 for the causal diagram that describes such an SCM.
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 1: Causal diagrams of the $h$ -th step of the confounded MDP (a) in the offline setting and (b) in the online setting, respectively.
|
| 51 |
+
|
| 52 |
+
Here $a _ { h }$ and $s _ { h + 1 }$ are confounded by $w _ { h }$ in addition to $s _ { h }$ . We denote such a confounded MDP by the tuple $( S , \mathcal { A } , \mathcal { W } , H , \overline { { \mathcal { P } } } , r )$ , where $H$ is the length of an episode, $s , A$ , and $\mathcal { W }$ are the spaces of states, actions, and confounders, respectively, $\bar { r \ = \ \{ r _ { h } \} _ { h \in \{ H \} } }$ is the set of reward functions, and $\overline { { \mathcal { P } } } = \{ \mathcal { P } _ { h } , \widetilde { \mathcal { P } } _ { h } \} _ { h \in H }$ is the set of transition kernels. In the sequel, we assume without loss of generality that $r _ { h }$ takes value in $[ 0 , 1 ]$ for all $h \in [ H ]$ .
|
| 53 |
+
|
| 54 |
+
In the online setting that allows for intervention, we assume that the confounders $\{ w _ { h } \} _ { h \in [ H ] }$ are unobserved. A policy $\pi = \{ \pi _ { h } \} _ { h \in [ H ] }$ induces the stochastic intervention $\mathrm { d o } ( a _ { 1 } \sim$ $\pi _ { 1 } ( \cdot \cdot \vert s _ { 1 } ) , \ldots , a _ { H } \sim \pi _ { H } ( \cdot \vert s _ { H } ) )$ , which does not depend on the confounders. In particular, an agent interacts with the environment as follows. At the beginning of the $k$ -th episode, the environment arbitrarily selects an initial state $s _ { 1 } ^ { k }$ and the agent selects a policy $\pi ^ { k } = \mathbf { \bar { \{ } } { \pi _ { h } ^ { k } } \} _ { h \in [ H ] }$ . At the $h$ -th step of the $k$ -th episode, the agent observes the state $s _ { h } ^ { k }$ and takes the action $a _ { h } ^ { k } \sim \bar { \pi } _ { h } ^ { k } ( \cdot | s _ { h } ^ { k } )$ . The environment randomly selects the confounder $w _ { h } ^ { k } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot \vert s _ { h } ^ { k } )$ , which is unobserved, and the agent receives the reward $s _ { h + 1 } ^ { k } \sim \mathcal { P } _ { h } ( \cdot \mid s _ { h } ^ { k } , a _ { h } ^ { k } , w _ { h } ^ { k } )$ . ${ r _ { h } ^ { k } } = r _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } , w _ { h } ^ { k } )$ . The environment then transits into the next state
|
| 55 |
+
|
| 56 |
+
For a policy $\pi = \{ \pi _ { h } \} _ { h \in H }$ , which does not depend on the confounders $\{ w _ { h } \} _ { h \in [ H ] }$ , we define the value function $V ^ { \pi } = \{ V _ { h } ^ { \pi } \} _ { h \in [ H ] }$ as follows,
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
V _ { h } ^ { \pi } ( s ) = \mathbb { E } _ { \pi } \bigg [ \sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , w _ { j } ) \biggm | s _ { h } = s \bigg ] , \quad \forall h \in [ H ] ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where we denote by $\mathbb { E } _ { \pi }$ the expectation with respect to the confounders $\{ w _ { j } \} _ { j = h } ^ { H }$ and the trajectory $\{ ( s _ { j } , a _ { j } ) \} _ { j = h } ^ { H }$ , starting from the state $s _ { j } = s$ and following the policy $\pi$ . Correspondingly, we define the action-value function $Q ^ { \pi } = \{ Q _ { h } ^ { \pi } \} _ { h \in [ H ] }$ as follows,
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
Q _ { h } ^ { \pi } ( s , a ) = \mathbb { E } _ { \pi } \bigg [ \sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , w _ { j } ) \biggm | s _ { h } = s , \mathrm { d o } ( a _ { h } = a ) \bigg ] , \quad \forall h \in [ H ] .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
We assess the performance of an algorithm using the regret against the globally optimal policy $\pi ^ { * } = \{ \pi _ { h } ^ { * } \} _ { h \in [ H ] }$ in hindsight after $K$ episodes, which is defined as follows,
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\mathrm { R e g r e t } ( T ) = \operatorname* { m a x } _ { \pi } \sum _ { k = 1 } ^ { K } \bigl ( V _ { 1 } ^ { \pi } ( s _ { 1 } ^ { k } ) - V _ { 1 } ^ { \pi ^ { k } } ( s _ { 1 } ^ { k } ) \bigr ) = \sum _ { k = 1 } ^ { K } \bigl ( V _ { 1 } ^ { \pi ^ { * } } ( s _ { 1 } ^ { k } ) - V _ { 1 } ^ { \pi ^ { k } } ( s _ { 1 } ^ { k } ) \bigr ) .
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
Here $T = H K$ is the total number of steps.
|
| 75 |
+
|
| 76 |
+
Our goal is to design an algorithm that minimizes the regret defined in (2.3), where $\pi ^ { * }$ does not depend on the confounders $\{ w _ { h } \} _ { h \in [ H ] }$ . In the online setting that allows for intervention, it is well understood how to minimize such a regret [2, 14–16]. However, it remains unclear how to efficiently utilize the observational data obtained in the offline setting, which are possibly confounded. In realworld applications, e.g., autonomous driving and personalized medicine, such observational data are often abundant, whereas intervention in the online setting is often restricted. We refer to $\mathrm { \ S C }$ for a comparison between the confounded MDP and other extensions of MDP, including the dynamics treatment regime (DTR), partially observable MDP (POMDP), and contextual MDP (CMDP).
|
| 77 |
+
|
| 78 |
+
Why is Incorporating Confounded Observational Data Challenging? Straightforwardly incorporating the confounded observational data into an online algorithm possibly leads to an undesirable regret due to the mismatch between the online and offline data generating processes. In particular, due to the existence of the confounders $\{ w _ { h } \} _ { h \in [ H ] }$ , which are partially observed (§3) or unobserved $^ { ( \ S ) }$ , the conditional probability $\mathbb { P } ( s _ { h + 1 } \mid s _ { h } , a _ { h } )$ in the offline setting is different from the causal effect $\mathbb { P } ( s _ { h + 1 } \mid s _ { h } , \mathrm { d o } ( a _ { h } ) )$ in the online setting [33]. More specifically, it holds that
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array} { r l } & { \mathbb { P } \big ( s _ { h + 1 } | s _ { h } , a _ { h } \big ) = \frac { \mathbb { E } _ { w _ { h } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot | s _ { h } ) } \big [ \mathcal { P } _ { h } \big ( s _ { h + 1 } | s _ { h } , a _ { h } , w _ { h } \big ) \cdot \nu _ { h } \big ( a _ { h } | s _ { h } , w _ { h } \big ) \big ] } { \mathbb { E } _ { w _ { h } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot | s _ { h } ) } \big [ \nu _ { h } \big ( a _ { h } \big | s _ { h } , w _ { h } \big ) \big ] } , } \\ & { \mathbb { P } \big ( s _ { h + 1 } \big | s _ { h } , \mathrm { d o } ( a _ { h } ) \big ) = \mathbb { E } _ { w _ { h } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot | s _ { h } ) } \big [ \mathcal { P } _ { h } \big ( \cdot | s _ { h } , a _ { h } , w _ { h } \big ) \big ] . } \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
In other words, without proper covariate adjustments [32], the confounded observational data may be not informative for estimating the transition dynamics and the associated action-value function in the online setting. To this end, we propose an algorithm that incorporates the confounded observational data in a provably efficient manner. Moreover, our analysis quantifies the amount of information carried over by the confounded observational data from the offline setting and to what extent it helps reducing the regret in the online setting.
|
| 85 |
+
|
| 86 |
+
# 3 Algorithm and Theory for Partially Observed Confounder
|
| 87 |
+
|
| 88 |
+
In this section, we propose the Deconfounded Optimistic Value Iteration (DOVI) algorithm. DOVI handles the case where the confounders are unobserved in the online setting but are partially observed in the offline setting. We then characterize the regret of DOVI. We defer the extension of DOVI, namely $\mathrm { D O V I + }$ , to $\ S \mathrm { A }$ which handles the case where the confounders are unobserved in both the online setting and the offline setting.
|
| 89 |
+
|
| 90 |
+
# 3.1 Algorithm
|
| 91 |
+
|
| 92 |
+
Backdoor Adjustment. In the online setting that allows for intervention, the causal effect of $a _ { h }$ on $s _ { h + 1 }$ given $s _ { h }$ , that is, $\mathbb { P } \big ( s _ { h + 1 } | s _ { h } , \mathrm { d o } ( a _ { h } ) \big ) \big )$ , plays a key role in the estimation of the action-value function. Meanwhile, the confounded observational data may not allow us to identify the causal effect $\mathbb { P } \big ( s _ { h + 1 } | s _ { h } , \mathrm { d o } ( a _ { h } ) \big )$ if the confounder $w _ { h }$ is unobserved. However, if the confounder $w _ { h }$ is partially observed in the offline setting, the observed subset $u _ { h }$ of $w _ { h }$ allows us to identify the causal effect $\bar { \mathbb { P } } ( s _ { h + 1 } \mid s _ { h } , \mathrm { d o } ( a _ { h } ) )$ , as long as $u _ { h }$ satisfies the following backdoor criterion.
|
| 93 |
+
|
| 94 |
+
Assumption 3.1 (Backdoor Criterion [32, 33]). In the SCM defined in $\ S$ and its induced directed acyclic graph (DAG), for all $h \in [ H ]$ , there exists an observed subset $u _ { h }$ of $w _ { h }$ that satisfies the backdoor criterion, that is,
|
| 95 |
+
|
| 96 |
+
• the elements of $u _ { h }$ are not the descendants of $a _ { h }$ , and
|
| 97 |
+
• conditioning on $s _ { h }$ , the elements of $u _ { h }$ $d$ -separate every path between $a _ { h }$ and $s _ { h + 1 } , r _ { h }$ that has an incoming arrow into $a _ { h }$ .
|
| 98 |
+
|
| 99 |
+
See Figure 2 for an example that satisfies the backdoor criterion. In particular, we identify the causal effect $\bar { \mathbb { P } } ( s _ { h + 1 } \mid s _ { h } , \mathrm { d o } ( a _ { h } \bar { ) } )$ as follows.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 2: An illustration of the backdoor criterion modified from [32]. The causal diagram corresponds to the $h$ -th step of the confounded MDP conditioning on $s _ { h }$ . Here $w _ { h } = \{ w _ { 1 , h } , w _ { 2 , h } , w _ { 3 , h } \}$ is the unobserved confounders and the subset $u _ { h } = \left\{ u _ { 1 , h } , u _ { 2 , h } \right\}$ satisfies the backdoor criterion.
|
| 103 |
+
|
| 104 |
+
Proposition 3.2 (Backdoor Adjustment [32]). Under Assumption 3.1, it holds for all $h \in [ H ]$ that
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\begin{array} { r l } & { \mathbb { P } \big ( s _ { h + 1 } \mid s _ { h } , \mathrm { d o } ( a _ { h } ) \big ) = \mathbb { E } _ { u _ { h } \sim \mathbb { P } ( \cdot \mid s _ { h } ) } \left[ \mathbb { P } ( s _ { h + 1 } \mid s _ { h } , a _ { h } , u _ { h } ) \right] , } \\ & { \mathbb { E } \big [ r _ { h } ( s _ { h } , a _ { h } , w _ { h } ) \big \mid s _ { h } , \mathrm { d o } ( a _ { h } ) \big ] = \mathbb { E } _ { u _ { h } \sim \mathbb { P } ( \cdot \mid s _ { h } ) } \Big [ \mathbb { E } \big [ r _ { h } ( s _ { h } , a _ { h } , w _ { h } ) \big \mid s _ { h } , a _ { h } , u _ { h } \big ] \Big ] . } \end{array}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
Here $( s _ { h + 1 } , s _ { h } , a _ { h } , u _ { h } )$ follows the SCM defined in $\ S 2$ , which generates the confounded observational data.
|
| 111 |
+
|
| 112 |
+
Proof. See [32] for a detailed proof.
|
| 113 |
+
|
| 114 |
+
With a slight abuse of notation, we write $\mathbb { P } ( s _ { h + 1 } \mid s _ { h } , a _ { h } , u _ { h } )$ as $\mathcal { P } _ { h } ( s _ { h + 1 } \mid s _ { h } , a _ { h } , u _ { h } )$ and $\mathbb { P } ( u _ { h } \mid s _ { h } )$ as $\mathcal { \widetilde { P } } _ { h } ( u _ { h } \vert s _ { h } )$ , since they are induced by the SCM defined in $\ S 2$ . In the sequel, we define $\mathcal { U }$ the space of observed state $u _ { h }$ and write $r _ { h } = r _ { h } ( s _ { h } , a _ { h } , w _ { h } )$ for notational simplicity.
|
| 115 |
+
|
| 116 |
+
Backdoor-Adjusted Bellman Equation. We now formulate the Bellman equation for the confounded MDP. It holds for all $( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A }$ that
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
Q _ { h } ^ { \pi } ( s _ { h } , a _ { h } ) = \mathbb { E } _ { \pi } \left[ \sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , u _ { j } ) \middle | s _ { h } , \mathrm { d o } ( a _ { h } ) \right] = \mathbb { E } \left[ r _ { h } \middle | s _ { h } , \mathrm { d o } ( a _ { h } ) \right] + \mathbb { E } _ { s _ { h + 1 } } \left[ V _ { h + 1 } ^ { \pi } ( s _ { h + 1 } ) \right] ,
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
where Esh+1 denotes the expectation with respect to $\begin{array} { r l r } { s _ { h + 1 } } & { { } \sim } & { \mathbb { P } ( \cdot \mid s _ { h } , \mathrm { d o } ( a _ { h } ) ) } \end{array}$ . Here $\mathbb { E } [ r _ { h } \vert s _ { h } , \mathrm { d o } ( a _ { h } ) ]$ and $\mathbb { P } ( \cdot \mid s _ { h } , \mathrm { d o } ( a _ { h } ) )$ are characterized in Proposition 3.2. In the sequel, we define the following transition operator and counterfactual reward function,
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\begin{array} { r l } & { ( \mathbb { P } _ { h } V ) ( s _ { h } , a _ { h } ) = \mathbb { E } _ { s _ { h + 1 } \sim \mathbb { P } ( \cdot \mid s _ { h } , \mathrm { d o } ( a _ { h } ) ) } \bigl [ V ( s _ { h + 1 } ) \bigr ] , \quad \forall V : \mathcal { S } \mapsto \mathbb { R } , ( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A } , } \\ & { \quad R _ { h } ( s _ { h } , a _ { h } ) = \mathbb { E } \bigl [ r _ { h } \mid s _ { h } , \mathrm { d o } ( a _ { h } ) \bigr ] , \quad \forall ( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A } . } \end{array}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
We have the following Bellman equation,
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\begin{array} { r } { Q _ { h } ^ { \pi } ( s _ { h } , a _ { h } ) = R _ { h } ( s _ { h } , a _ { h } ) + ( \mathbb { P } _ { h } V _ { h + 1 } ^ { \pi } ) ( s _ { h } , a _ { h } ) , \quad \forall h \in [ H ] , ( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A } . } \end{array}
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
Correspondingly, the Bellman optimality equation takes the following form,
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
Q _ { h } ^ { * } ( s _ { h } , a _ { h } ) = R _ { h } ( s _ { h } , a _ { h } ) + ( { \mathbb { P } } _ { h } V _ { h + 1 } ^ { * } ) ( s _ { h } , a _ { h } ) , \quad V _ { h } ^ { * } ( s _ { h } ) = \operatorname* { m a x } _ { a _ { h } \in \mathcal { A } } Q _ { h } ^ { * } ( s _ { h } , a _ { h } ) ,
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
which holds for all $h \in [ H ]$ and $( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A }$ . Such a Bellman optimality equation allows us to adapt the least-squares value iteration (LSVI) algorithm [2, 5, 14, 16, 31].
|
| 141 |
+
|
| 142 |
+
Linear Function Approximation. We focus on the following setting with linear transition kernels and reward functions [7, 16, 42, 43], which corresponds to a linear SCM [33].
|
| 143 |
+
|
| 144 |
+
Assumption 3.3 (Linear Confounded MDP). We assume that $\begin{array} { r } { \mathcal { P } _ { h } \big ( s _ { h + 1 } \big | s _ { h } , a _ { h } , u _ { h } \big ) = \big \langle \phi _ { h } \big ( s _ { h } , a _ { h } , u _ { h } \big ) , \mu _ { h } \big ( s _ { h + 1 } \big ) \big \rangle , \quad \forall h \in [ H ] , ( s _ { h + 1 } , s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { S } \times \mathcal { A } , } \end{array}$ where $\phi _ { h } ( \cdot , \cdot , \cdot )$ and $\boldsymbol { \mu } _ { h } ( \cdot ) = ( \mu _ { 1 , h } ( \cdot ) , \ldots , \mu _ { d , h } ( \cdot ) ) ^ { \top }$ are $\mathbb { R } ^ { d }$ -valued functions. We assume that $\begin{array} { r } { \sum _ { i = 1 } ^ { d } \| \mu _ { i , h } \| _ { 1 } ^ { 2 } \leq d } \end{array}$ and $\| \phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) \| _ { 2 } \le 1$ for all $h \in [ H ]$ and $( s _ { h } , a _ { h } , u _ { h } ) \in \mathcal S \times \mathcal A \times \mathcal U$ Meanwhile, we assume that
|
| 145 |
+
|
| 146 |
+
$\begin{array} { r } { \mathbb { E } [ r _ { h } | s _ { h } , a _ { h } , u _ { h } ] = \phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) ^ { \top } \theta _ { h } , \quad \forall h \in [ H ] , ( s _ { h } , a _ { h } , u _ { h } ) \in \mathcal { S } \times \mathcal { A } \times \mathcal { U } , } \end{array}$ where $\theta _ { h } \in \mathbb { R } ^ { d }$ and $\| \theta _ { h } \| _ { 2 } \leq \sqrt { d }$ for all $h \in [ H ]$ .
|
| 147 |
+
|
| 148 |
+
Such a linear setting generalizes the tabular setting where $s , A .$ , and $\mathcal { U }$ are finite.
|
| 149 |
+
|
| 150 |
+
Proposition 3.4. We define the backdoor-adjusted feature as follows,
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\begin{array} { r } { \psi _ { h } ( s _ { h } , a _ { h } ) = \mathbb { E } _ { a _ { h } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot \mid s _ { h } ) } \big [ \phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) \big ] , \quad \forall h \in [ H ] , ( s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { A } . } \end{array}
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
Under Assumption 3.1, it holds that
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
\mathbb { P } ( s _ { h + 1 } | s _ { h } , \mathrm { d o } ( a _ { h } ) ) = \langle \psi _ { h } ( s _ { h } , a _ { h } ) , \mu _ { h } ( s _ { h + 1 } ) \rangle , \quad \forall h \in [ H ] , ( s _ { h + 1 } , s _ { h } , a _ { h } ) \in \mathcal { S } \times \mathcal { S } \times \mathcal { A } .
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
Moreover, the action-value functions $Q _ { h } ^ { \pi }$ and $Q _ { h } ^ { * }$ are linear in the backdoor-adjusted feature $\psi _ { h }$ for all $\pi$ .
|
| 163 |
+
|
| 164 |
+
Proof. See $\mathrm { \ S F . 1 }$ for a detailed proof.
|
| 165 |
+
|
| 166 |
+
Such an observation allows us to estimate the action-value function based on the backdoor-adjusted features $\{ \psi _ { h } \} _ { h \in [ H ] }$ in the online setting. See $\ S$ for a detailed discussion. In the sequel, we assume that either the density of $\{ \widetilde { \mathcal { P } } _ { h } ( \cdot \vert s _ { h } ) \} _ { h \in [ H ] }$ is known or the backdoor-adjusted feature $\{ \psi _ { h } \} _ { h \in [ H ] }$ is known.
|
| 167 |
+
|
| 168 |
+
In the sequel, we introduce the DOVI algorithm (Algorithm 1). Each iteration of DOVI consists of two components, namely point estimation, where we estimate $Q _ { h } ^ { * }$ based on the confounded observational data and the interventional data, and uncertainty quantification, where we construct the upper confidence bound (UCB) of the point estimator.
|
| 169 |
+
|
| 170 |
+
# Algorithm 1 Deconfounded Optimistic Value Iteration (DOVI) for Confounded MDP
|
| 171 |
+
|
| 172 |
+
Require: Observational data $\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \} _ { i \in [ n ] , h \in [ H ] }$ , tuning parameters $\lambda , \beta > 0$ , backdooradjusted feature $\{ \psi _ { h } \} _ { h \in [ H ] }$ , which is defined in (3.6).
|
| 173 |
+
1: Initialization: Set $\{ Q _ { h } ^ { 0 } , V _ { h } ^ { 0 } \} _ { h \in [ H ] }$ as zero functions and $V _ { H + 1 } ^ { k }$ as a zero function for $k \in [ K ]$ . 2: for $k = 1 , \ldots , K$ do
|
| 174 |
+
3: for 4: S $h = H , \ldots , 1$
|
| 175 |
+
$\begin{array} { r } { \omega _ { h } ^ { k } { \stackrel { } { \sim } } \operatorname { a r g m i n } _ { \omega \in \mathbb { R } ^ { d } } \sum _ { \tau = 1 } ^ { k - 1 } ( r _ { h } ^ { \tau } + V _ { h + 1 } ^ { \tau } ( s _ { h + 1 } ^ { \tau } ) - \omega ^ { \top } \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) ) ^ { 2 } + \lambda \| \omega \| _ { 2 } ^ { 2 } + L _ { h } ^ { k } ( \omega ) , } \end{array}$ where $L _ { h } ^ { k }$ is defined in (3.8).
|
| 176 |
+
5: Set $Q _ { h } ^ { k } ( \cdot , \cdot ) \gets \operatorname* { m i n } \{ \psi _ { h } ( \cdot , \cdot ) ^ { \top } \omega _ { h } ^ { k } + \Gamma _ { h } ^ { k } ( \cdot , \cdot ) , H - h \}$ , where $\Gamma _ { h } ^ { k }$ is defined in (3.12). 6: Set $\pi _ { h } ^ { k } ( \cdot \vert s _ { h } ) \gets \mathrm { a r g m a x } _ { a _ { h } \in \mathcal { A } } Q _ { h } ^ { k } ( s _ { h } , a _ { h } )$ for all $s _ { h } \in S$ .
|
| 177 |
+
7: Set $V _ { h } ^ { k } ( \cdot ) \langle \pi _ { h } ^ { k } ( \cdot \vert \cdot ) , Q _ { h } ^ { k } ( \cdot , \cdot ) \rangle _ { \cal A }$ .
|
| 178 |
+
8: end for
|
| 179 |
+
9: Obtain $s _ { 1 } ^ { k }$ from the environment.
|
| 180 |
+
10: for $h = 1 , \ldots , H$ do
|
| 181 |
+
11: Take $a _ { h } ^ { k } \sim \pi _ { h } ^ { k } ( \cdot | s _ { h } ^ { k } )$ . Obtain $r _ { h } ^ { k } = r _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } , u _ { h } ^ { k } )$ and $s _ { h + 1 } ^ { k }$ .
|
| 182 |
+
12: end for
|
| 183 |
+
13: end for
|
| 184 |
+
|
| 185 |
+
Point Estimation. To solve the Bellman optimality equation in (3.4), we minimize the empirical mean-squared Bellman error as follows at each step,
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
\omega _ { h } ^ { k } \gets \underset { \omega \in \mathbb { R } ^ { d } } { \operatorname { a r g m i n } } \sum _ { \tau = 1 } ^ { k - 1 } \big ( r _ { h } ^ { \tau } + V _ { h + 1 } ^ { \tau } ( s _ { h + 1 } ^ { \tau } ) - \omega ^ { \top } \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) \big ) ^ { 2 } + \lambda \| \omega \| _ { 2 } ^ { 2 } + L _ { h } ^ { k } ( \omega ) , h = H , \ldots , 1 ,
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
where we set $V _ { H + 1 } ^ { k } = 0$ for all $k \in [ K ]$ and $V _ { h + 1 } ^ { \tau }$ is defined in Line 7 of Algorithm 1 for all $( \tau , h ) \in [ K ] \times [ H - 1 ]$ . Here $k$ is the index of episode, $\lambda > 0$ is a tuning parameter, and $L _ { h } ^ { k }$ is a regularizer, which is constructed based on the confounded observational data. More specifically, we define
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
L _ { h } ^ { k } ( \omega ) = \sum _ { i = 1 } ^ { n } \bigl ( r _ { h } ^ { i } + V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } ) - \omega ^ { \top } \phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \bigr ) ^ { 2 } , \quad \forall ( k , h ) \in [ K ] \times [ H ] ,
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
which corresponds to the least-squares loss for regressing $r _ { h } ^ { i } + V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } )$ against $\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } )$ for all $i \in [ n ]$ . Here $\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \} _ { ( i , h ) \in [ n ] \times [ H ] }$ are the confounded observational data, where $u _ { h } ^ { i } \sim \widetilde { \mathcal { P } } _ { h } ( \cdot | s _ { h } ^ { i } )$ , $s _ { h + 1 } ^ { i } \sim \mathcal { P } _ { h } \big ( \cdot \mid s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } \big )$ , and $a _ { h } ^ { i } \sim \nu _ { h } ( \cdot \mid s _ { h } ^ { i } , w _ { h } ^ { i } )$ with $\nu = \{ \nu _ { h } \} _ { h \in [ H ] }$ being the behavior policy. Here recall that, with a slight abuse of notation, we write $\mathbb { P } ( s _ { h + 1 } \mid s _ { h } , a _ { h } , u _ { h } )$ as $\mathcal { P } _ { h } ( s _ { h + 1 } \mid s _ { h } , a _ { h } , u _ { h } )$ and $\mathbb { P } ( u _ { h } \mid s _ { h } )$ as $\mathcal { \widetilde { P } } _ { h } ( u _ { h } \vert s _ { h } )$ , since they are induced by the SCM defined in §2.
|
| 198 |
+
|
| 199 |
+
The update in (3.7) takes the following explicit form,
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
\begin{array} { r l } & { \omega _ { h } ^ { k } \gets ( \Lambda _ { h } ^ { k } ) ^ { - 1 } \Bigg ( \displaystyle \sum _ { \tau = 1 } ^ { k - 1 } \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) \cdot \big ( V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { \tau } ) + r _ { h } ^ { \tau } \big ) } \\ & { \qquad + \displaystyle \sum _ { i = 1 } ^ { n } \phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \cdot \big ( V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } ) + r _ { h } ^ { i } \big ) \Bigg ) , } \end{array}
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
where
|
| 206 |
+
|
| 207 |
+
$$
|
| 208 |
+
\Lambda _ { h } ^ { k } = \sum _ { \tau = 1 } ^ { k - 1 } \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) ^ { \top } + \sum _ { i = 1 } ^ { n } \phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) ^ { \top } + \lambda I .
|
| 209 |
+
$$
|
| 210 |
+
|
| 211 |
+
Uncertainty Quantification. We now construct the UCB $\Gamma _ { h } ^ { k } ( \cdot , \cdot )$ of the point estimator $\psi _ { h } ( \cdot , \cdot ) ^ { \top } \omega _ { h } ^ { k }$ obtained from (3.9), which encourages the exploration of the less visited state-action pairs. To this end, we employ the following notion of information gain to motivate the UCB,
|
| 212 |
+
|
| 213 |
+
$$
|
| 214 |
+
\Gamma _ { h } ^ { k } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \propto H ( \omega _ { h } ^ { k } \mid \xi _ { k - 1 } ) - H \big ( \omega _ { h } ^ { k } \mid \xi _ { k - 1 } \cup \{ ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \} \big ) ,
|
| 215 |
+
$$
|
| 216 |
+
|
| 217 |
+
where $H ( \omega _ { h } ^ { k } \mid \xi _ { k - 1 } )$ is the differential entropy of the random variable $\omega _ { h } ^ { k }$ given the data $\xi _ { k - 1 }$ . In particular, $\ddot { \xi } _ { k - 1 } ~ = ~ \{ \big ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } \big ) \} _ { ( \tau , h ) \in [ k - 1 ] \times [ H ] } \cup \big \{ \big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \big ) \big \} _ { ( i , h ) \in [ n ] \times [ H ] }$ consists of the confounded observational data and the interventional data up to the $\left( k - 1 \right)$ -th episode. However, it is challenging to characterize the distribution of $\omega _ { h } ^ { k }$ . To this end, we consider a Bayesian counterpart of the confounded MDP, where the prior of $\omega _ { h } ^ { k }$ is $N ( 0 , I / \lambda )$ and the residual of the regression problem in (3.7) is $N ( 0 , 1 )$ . In such a “parallel” confounded MDP, the posterior of $\omega _ { h } ^ { k }$ follows $N ( \mu _ { k , h } , ( \Lambda _ { h } ^ { k } ) ^ { - 1 } )$ , where $\Lambda _ { h } ^ { k }$ is defined in (3.10) and $\mu _ { k , h }$ coincides with the right-hand side of (3.9). Moreover, it holds for all $( s _ { h } ^ { k } , a _ { h } ^ { k } ) \in \mathcal { S } \times \mathcal { A }$ that
|
| 218 |
+
|
| 219 |
+
$$
|
| 220 |
+
\begin{array} { r l } & { H ( \omega _ { h } ^ { k } \mid \xi _ { k - 1 } ) = 1 / 2 \cdot \log \operatorname* { d e t } \bigl ( ( 2 \pi e ) ^ { d } \cdot ( \Lambda _ { h } ^ { k } ) ^ { - 1 } \bigr ) , } \\ & { H \bigl ( \omega _ { h } ^ { k } \mid \xi _ { k - 1 } \cup \{ ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \} \bigr ) = 1 / 2 \cdot \log \operatorname* { d e t } \Bigl ( ( 2 \pi e ) ^ { d } \cdot \bigl ( \Lambda _ { h } ^ { k } + \psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) ^ { \top } \bigr ) ^ { - 1 } \Bigr ) . } \end{array}
|
| 221 |
+
$$
|
| 222 |
+
|
| 223 |
+
Correspondingly, we employ the following UCB, which instantiates (3.11), that is,
|
| 224 |
+
|
| 225 |
+
$$
|
| 226 |
+
\Gamma _ { h } ^ { k } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) = \beta \cdot \Big ( \log \operatorname* { d e t } \big ( \Lambda _ { h } ^ { k } + \psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) ^ { \top } \big ) - \log \operatorname* { d e t } ( \Lambda _ { h } ^ { k } ) \Big ) ^ { 1 / 2 }
|
| 227 |
+
$$
|
| 228 |
+
|
| 229 |
+
for all $( s _ { h } ^ { k } , a _ { h } ^ { k } ) \ \in \ S \times { \mathcal { A } }$ . Here $\beta > 0$ is a tuning parameter. We highlight that, although the information gain in (3.11) relies on the “parallel” confounded MDP, the UCB in (3.12), which is used in Line 5 of Algorithm 1, does not rely on the Bayesian perspective. Also, our analysis establishes the frequentist regret.
|
| 230 |
+
|
| 231 |
+
Regularization with Observational Data: A Bayesian Perspective. In the “parallel” confounded MDP, it holds that
|
| 232 |
+
|
| 233 |
+
$$
|
| 234 |
+
\omega _ { h } ^ { k } \sim N ( 0 , I / \lambda ) , \quad \omega _ { h } ^ { k } \mid \xi _ { 0 } \sim N \big ( \mu _ { 1 , h } , ( \Lambda _ { h } ^ { 1 } ) ^ { - 1 } \big ) , \quad \omega _ { h } ^ { k } \mid \xi _ { k - 1 } \sim N \big ( \mu _ { k , h } , ( \Lambda _ { h } ^ { k } ) ^ { - 1 } \big ) ,
|
| 235 |
+
$$
|
| 236 |
+
|
| 237 |
+
where $\mu _ { k , h }$ coincides with the right-hand side of (3.9) and $\mu _ { 1 , h }$ is defined by setting $k = 1$ in $\mu _ { k , h }$ . Here $\xi _ { 0 } = \{ \big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \big ) \} _ { ( i , h ) \in [ n ] \times [ H ] }$ are the confounded observational data. Hence, the regularizer $L _ { h } ^ { k }$ in (3.8) corresponds to using $\omega _ { h } ^ { k } \mid \xi _ { 0 }$ as the prior for the Bayesian regression problem given only the interventional data $\xi _ { k - 1 } \setminus \xi _ { 0 } = \{ ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } ) \} _ { ( \tau , h ) \in [ k - 1 ] \times [ H ] } .$ .
|
| 238 |
+
|
| 239 |
+
# 3.2 Theory
|
| 240 |
+
|
| 241 |
+
The following theorem characterizes the regret of DOVI, which is defined in (2.3).
|
| 242 |
+
|
| 243 |
+
Theorem 3.5 (Regret of DOVI). Let $\beta = C d H \sqrt { \log ( d ( T + n H ) / \zeta ) }$ and $\lambda = 1$ , where $C > 0$ and $\zeta \in ( 0 , 1 ]$ are absolute constants. Under Assumptions 3.1 and 3.3, it holds with probability at least $1 - 5 \zeta / 2$ that
|
| 244 |
+
|
| 245 |
+
$$
|
| 246 |
+
\mathrm { R e g r e t } ( T ) \le C ^ { \prime } \cdot \Delta _ { H } \cdot \sqrt { d ^ { 3 } H ^ { 3 } T } \cdot \sqrt { \log \left( d ( T + n H ) / \zeta \right) } ,
|
| 247 |
+
$$
|
| 248 |
+
|
| 249 |
+
where $C ^ { \prime } > 0$ is an absolute constant and
|
| 250 |
+
|
| 251 |
+
$$
|
| 252 |
+
\Delta _ { H } = { \frac { 1 } { \sqrt { d H ^ { 2 } } } } \sum _ { h = 1 } ^ { H } \bigl ( \log \operatorname* { d e t } ( \Lambda _ { h } ^ { K + 1 } ) - \log \operatorname* { d e t } ( \Lambda _ { h } ^ { 1 } ) \bigr ) ^ { 1 / 2 } .
|
| 253 |
+
$$
|
| 254 |
+
|
| 255 |
+
Proof. See $\mathrm { \ S F } . 3$ for a detailed proof.
|
| 256 |
+
|
| 257 |
+
Note that $\Lambda _ { h } ^ { K + 1 } \preceq ( n + K + \lambda ) I$ and $\Lambda _ { h } ^ { 1 } \succeq \lambda I$ for all $h \in [ H ]$ . Hence, it holds that √ $\Delta _ { H } =$ $\mathcal { O } ( \sqrt { \log ( n + K + 1 ) } )$ in the worst case. Thus, the regret of DOVI is $\mathcal { O } ( \sqrt { d ^ { 3 } H ^ { 3 } T } )$ up to logarithmic factors, which is optimal in the total number of steps $T$ if we only consider the online setting. However, $\Delta _ { H }$ is possibly much smaller than $\mathcal { O } ( \sqrt { \log ( n + K + 1 ) } )$ , depending on the amount of information carried over by the confounded observational data from the offline setting, which is quantified in the following.
|
| 258 |
+
|
| 259 |
+
Interpretation of $\Delta _ { H }$ : An Information-Theoretic Perspective. Let $\omega _ { h } ^ { * }$ be the parameter of the globally optimal action-value function $Q _ { h } ^ { * }$ , which corresponds to $\pi ^ { * }$ in (2.3). Recall that we denote by $\xi _ { 0 }$ and $\xi _ { K }$ the confounded observational data $\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \} _ { ( i , h ) \in [ n ] \times [ H ] }$ and the union $\{ \big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \big ) \} _ { ( i , h ) \in [ n ] \times [ H ] } \cup \{ \big ( s _ { h } ^ { k } , \underline { { a } } _ { h } ^ { k } , r _ { h } ^ { k } \big ) \} _ { ( k , h ) \in [ K ] \times [ H ] }$ of the confounded observational data and the interventional data up to the $K$ -th episode, respectively. We consider the aforementioned Bayesian counterpart of the confounded MDP, where the prior of $\omega _ { h } ^ { * }$ is also $N ( 0 , I / \lambda )$ . In such a “parallel” confounded MDP, we have
|
| 260 |
+
|
| 261 |
+
$$
|
| 262 |
+
\omega _ { h } ^ { * } \sim N ( 0 , I / \lambda ) , \quad \omega _ { h } ^ { * } \mid \xi _ { 0 } \sim N \big ( \mu _ { 1 , h } ^ { * } , ( \Lambda _ { h } ^ { 1 } ) ^ { - 1 } \big ) , \quad \omega _ { h } ^ { * } \mid \xi _ { K } \sim N \big ( \mu _ { K , h } ^ { * } , ( \Lambda _ { h } ^ { K + 1 } ) ^ { - 1 } \big ) ,
|
| 263 |
+
$$
|
| 264 |
+
|
| 265 |
+
where
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
\begin{array} { r l } & { \mu _ { 1 , h } ^ { * } = ( \Lambda _ { h } ^ { 1 } ) ^ { - 1 } \displaystyle \sum _ { i = 1 } ^ { n } \phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \cdot \left( V _ { h + 1 } ^ { * } ( s _ { h + 1 } ^ { i } ) + r _ { h } ^ { i } \right) , } \\ & { \mu _ { K , h } ^ { * } = ( \Lambda _ { h } ^ { K + 1 } ) ^ { - 1 } \bigg ( \Lambda _ { h } ^ { 1 } \mu _ { 1 , h } ^ { * } + \displaystyle \sum _ { \tau = 1 } ^ { K } \psi _ { h } ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } ) \cdot \left( V _ { h + 1 } ^ { * } ( s _ { h + 1 } ^ { \tau } ) + r _ { h } ^ { \tau } \right) \bigg ) . } \end{array}
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
It then holds for the right-hand side of (3.14) that
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
1 / 2 \cdot \log \operatorname* { d e t } ( \Lambda _ { h } ^ { K + 1 } ) - 1 / 2 \cdot \log \operatorname* { d e t } ( \Lambda _ { h } ^ { 1 } ) = H ( \omega _ { h } ^ { * } \mid \xi _ { 0 } ) - H ( \omega _ { h } ^ { * } \mid \xi _ { K } ) .
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
The left-hand side of (3.16) characterizes the information gain of intervention in the online setting given the confounded observational data in the offline setting. In other words, if the confounded observational data are sufficiently informative upon the backdoor adjustment, then $\Delta _ { H }$ is small, which implies that the regret is small. More specifically, the matrices $( \Lambda _ { h } ^ { 1 } ) ^ { - 1 }$ and $( \Lambda _ { h } ^ { K + 1 } ) ^ { - 1 }$ defined in (3.10) characterize the ellipsoidal confidence sets given $\xi _ { 0 }$ and $\xi _ { K }$ , respectively. If the confounded observational data are sufficiently informative upon the backdoor adjustment, $\Lambda _ { h } ^ { K + 1 }$ is close to $\Lambda _ { h } ^ { 1 }$ . To illustrate, let $\{ \psi _ { h } \big ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } \big ) \} _ { ( \tau , h ) \in [ K ] \times [ H ] }$ and $\{ \phi _ { h } \big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } \big ) \} _ { ( i , h ) \in [ n ] \times [ H ] }$ be sampled uniformly at random from the canonical basis $\{ e _ { \ell } \} _ { \ell \in [ d ] }$ of $\mathbb { R } ^ { d }$ . It then holds that $\Lambda _ { h } ^ { K + 1 } \approx ( K + n ) I / d + \lambda I$ and $\Lambda _ { h } ^ { 1 } \approx n I / d + \lambda I$ . Hence, for $\lambda = 1$ and sufficiently large $n$ and $K$ , we have $\Delta _ { H } = \mathcal { O } ( \sqrt { \log ( 1 + K / ( n + d ) ) } ) = \mathcal { O } ( \sqrt { K / ( n + d ) } )$ . For example, for $n = \Omega ( K ^ { 2 } )$ , it holds that $\Delta _ { H } = \mathcal { O } ( n ^ { - 1 / 2 } )$ , which implies that the regret of DOVI is $\mathcal { O } ( n ^ { - 1 / 2 } \cdot \sqrt { d ^ { 3 } H ^ { 3 } T } )$ . In other words, if the confounded observational data are sufficiently informative upon the backdoor adjustment, the regret of DOVI can be arbitrarily small given a sufficiently large sample size $n$ of the confounded observational data, which is often the case in practice [8, 9, 21, 22, 29].
|
| 278 |
+
|
| 279 |
+
# 4 Conclusion
|
| 280 |
+
|
| 281 |
+
In this paper, we propose the deconfounded optimistic value iteration (DOVI) algorithm and its variant $\bar { \mathrm { D O V I } } ^ { + }$ , which incorporate the confounded observational data to the online reinforcement learning in a provably efficient manner. DOVI and $\mathrm { D O V I ^ { + } }$ explicitly adjust for the confounding bias in the observational data via the backdoor and frontdoor adjustments, respectively. In both cases, such adjustments allow us to construct the bonus based on a notion of information gain, which considers the amount of information acquired from the offline dataset. We further conduct regret analysis of DOVI and $\mathrm { D O V I ^ { + } }$ . Our analysis suggests that practitioners can tackle the confounding issue in the offline dataset by estimating the counterfactual reward for value function estimations, given that a proper adjustment such as the backdoor or frontdoor adjustment is available. In the case of backdoor and frontdoor adjustment, we prove that the regret of DOVI is smaller than the optimal regret achievable in the pure online setting when the confounded observational data are informative upon the adjustments, suggesting that one can exploit the confounded observational data in reinforcement learning upon proper adjustments. In our future study, we wish to incorporate proxy variables that are native to MDPs for the adjustments of the offline dataset, such as the variables exploited by [4, 24, 40].
|
| 282 |
+
|
| 283 |
+
# Acknolodgements
|
| 284 |
+
|
| 285 |
+
Zhaoran Wang acknowledges National Science Foundation (Awards 2048075, 2008827, 2015568, 1934931), Simons Institute (Theory of Reinforcement Learning), Amazon, J.P. Morgan, and Two Sigma for their supports. Zhuoran Yang acknowledges Simons Institute (Theory of Reinforcement Learning). The authors also thank the anonymous reviewers, whose invaluable suggestions help the authors to improve the paper.
|
| 286 |
+
|
| 287 |
+
# References
|
| 288 |
+
|
| 289 |
+
[1] Abbasi-Yadkori, Y., Pal, D. and Szepesv ´ ari, C. (2011). Improved algorithms for linear stochas- ´ tic bandits. In Advances in Neural Information Processing Systems.
|
| 290 |
+
[2] Azar, M. G., Osband, I. and Munos, R. (2017). Minimax regret bounds for reinforcement learning. In International Conference on Machine Learning.
|
| 291 |
+
[3] Balke, A. and Pearl, J. (2013). Counterfactuals and policy analysis in structural models. arXiv preprint arXiv:1302.4929.
|
| 292 |
+
[4] Bennett, A., Kallus, N., Li, L. and Mousavi, A. (2021). Off-policy evaluation in infinitehorizon reinforcement learning with latent confounders. In International Conference on Artificial Intelligence and Statistics.
|
| 293 |
+
[5] Bradtke, S. J. and Barto, A. G. (1996). Linear least-squares algorithms for temporal difference learning. Machine Learning, 22 33–57.
|
| 294 |
+
[6] Buesing, L., Weber, T., Zwols, Y., Racaniere, S., Guez, A., Lespiau, J.-B. and Heess, N. (2018). Woulda, coulda, shoulda: Counterfactually-guided policy search. arXiv preprint arXiv:1811.06272.
|
| 295 |
+
[7] Cai, Q., Yang, Z., Jin, C. and Wang, Z. (2019). Provably efficient exploration in policy optimization. arXiv preprint arXiv:1912.05830.
|
| 296 |
+
[8] Chakraborty, B. and Murphy, S. A. (2014). Dynamic treatment regimes. Annual Review of Statistics and Its Application, 1 447–464.
|
| 297 |
+
[9] de Haan, P., Jayaraman, D. and Levine, S. (2019). Causal confusion in imitation learning. In Advances in Neural Information Processing Systems.
|
| 298 |
+
[10] D´ıaz, I. and Hejazi, N. (2019). Causal mediation analysis for stochastic interventions. arXiv preprint arXiv:1901.02776.
|
| 299 |
+
[11] Forney, A., Pearl, J. and Bareinboim, E. (2017). Counterfactual data-fusion for online reinforcement learners. In International Conference on Machine Learning.
|
| 300 |
+
[12] Hallak, A., Di Castro, D. and Mannor, S. (2015). Contextual Markov decision processes. arXiv preprint arXiv:1502.02259.
|
| 301 |
+
[13] Hessel, M., Modayil, J., Van Hasselt, H., Schaul, T., Ostrovski, G., Dabney, W., Horgan, D., Piot, B., Azar, M. and Silver, D. (2018). Rainbow: Combining improvements in deep reinforcement learning. In AAAI Conference on Artificial Intelligence.
|
| 302 |
+
[14] Jaksch, T., Ortner, R. and Auer, P. (2010). Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11 1563–1600.
|
| 303 |
+
[15] Jin, C., Allen-Zhu, Z., Bubeck, S. and Jordan, M. I. (2018). Is Q-learning provably efficient? In Advances in Neural Information Processing Systems.
|
| 304 |
+
[16] Jin, C., Yang, Z., Wang, Z. and Jordan, M. I. (2019). Provably efficient reinforcement learning with linear function approximation. arXiv preprint arXiv:1907.05388.
|
| 305 |
+
[17] Kallus, N. and Zhou, A. (2018). Confounding-robust policy improvement. In Advances in Neural Information Processing Systems.
|
| 306 |
+
[18] Kallus, N. and Zhou, A. (2018). Policy evaluation and optimization with continuous treatments. arXiv preprint arXiv:1802.06037.
|
| 307 |
+
[19] Kober, J., Bagnell, J. A. and Peters, J. (2013). Reinforcement learning in robotics: Asurvey. International Journal of Robotics Research, 32 1238–1274.
|
| 308 |
+
[20] Lattimore, F., Lattimore, T. and Reid, M. D. (2016). Causal bandits: Learning good interventions via causal inference. In Advances in Neural Information Processing Systems.
|
| 309 |
+
[21] Levine, S., Kumar, A., Tucker, G. and Fu, J. (2020). Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643.
|
| 310 |
+
[22] Li, C., Chan, S. H. and Chen, Y.-T. (2020). Who make drivers stop? Towards drivercentric risk assessment: Risk object identification via causal inference. arXiv preprint arXiv:2003.02425.
|
| 311 |
+
[23] Li, J., Monroe, W., Ritter, A., Galley, M., Gao, J. and Jurafsky, D. (2016). Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541.
|
| 312 |
+
[24] Liao, L., Fu, Z., Yang, Z., Kolar, M. and Wang, Z. (2021). Instrumental variable value iteration for causal offline reinforcement learning. arXiv preprint arXiv:2102.09907.
|
| 313 |
+
[25] Lu, C., Scholkopf, B. and Hern ¨ andez-Lobato, J. M. (2018). Deconfounding reinforcement ´ learning in observational settings. arXiv preprint arXiv:1812.10576.
|
| 314 |
+
[26] Lu, Y., Meisami, A., Tewari, A. and Yan, Z. (2019). Regret analysis of causal bandit problems. arXiv preprint arXiv:1910.04938.
|
| 315 |
+
[27] Manski, C. F. (1990). Nonparametric bounds on treatment effects. American Economic Review, 80 319–323.
|
| 316 |
+
[28] Munoz, I. D. and van der Laan, M. (2012). Population intervention causal effects based on ˜ stochastic interventions. Biometrics, 68 541–549.
|
| 317 |
+
[29] Murphy, S. A. (2003). Optimal dynamic treatment regimes. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 65 331–355.
|
| 318 |
+
[30] Namkoong, H., Keramati, R., Yadlowsky, S. and Brunskill, E. (2020). Off-policy policy evaluation for sequential decisions under unobserved confounding. arXiv preprint arXiv:2003.05623.
|
| 319 |
+
[31] Osband, I., Van Roy, B. and Wen, Z. (2014). Generalization and exploration via randomized value functions. arXiv preprint arXiv:1402.0635.
|
| 320 |
+
[32] Pearl, J. (2009). Causality. Cambridge university press.
|
| 321 |
+
[33] Peters, J., Janzing, D. and Scholkopf, B. (2017). ¨ Elements of Causal Inference: Foundations and Learning Algorithms. MIT press.
|
| 322 |
+
[34] Sen, R., Shanmugam, K., Dimakis, A. G. and Shakkottai, S. (2017). Identifying best interventions through online importance sampling. In International Conference on Machine Learning.
|
| 323 |
+
[35] Shang, W., Yu, Y., Li, Q., Qin, Z., Meng, Y. and Ye, J. (2019). Environment reconstruction with hidden confounders for reinforcement learning based recommendation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining.
|
| 324 |
+
[36] Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., Van Den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M. et al. (2016). Mastering the game of Go with deep neural networks and tree search. Nature, 529 484.
|
| 325 |
+
[37] Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A. et al. (2017). Mastering the game of Go without human knowledge. Nature, 550 354.
|
| 326 |
+
[38] Tan, Z. (2006). A distributional approach for causal inference using propensity scores. Journal of the American Statistical Association, 101 1619–1637.
|
| 327 |
+
[39] Tennenholtz, G., Mannor, S. and Shalit, U. (2019). Off-policy evaluation in partially observable environments. arXiv preprint arXiv:1909.03739.
|
| 328 |
+
[40] Tennenholtz, G., Shalit, U. and Mannor, S. (2020). Off-policy evaluation in partially observable environments. In Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34.
|
| 329 |
+
[41] Vershynin, R. (2010). Introduction to the non-asymptotic analysis of random matrices. arXiv preprint arXiv:1011.3027.
|
| 330 |
+
[42] Yang, L. and Wang, M. (2019). Sample-optimal parametric Q-learning using linearly additive features. In International Conference on Machine Learning.
|
| 331 |
+
[43] Yang, L. F. and Wang, M. (2019). Reinforcement leaning in feature space: Matrix bandit, kernels, and regret bound. arXiv preprint arXiv:1905.10389.
|
| 332 |
+
[44] Zhang, J. and Bareinboim, E. (2017). Transfer learning in multi-armed bandit: A causal approach. In Autonomous Agents and Multi-Agent Systems.
|
| 333 |
+
[45] Zhang, J. and Bareinboim, E. (2019). Near-optimal reinforcement learning in dynamic treatment regimes. In Advances in Neural Information Processing Systems.
|
parse/train/tUeeRzMXJZ/tUeeRzMXJZ_content_list.json
ADDED
|
@@ -0,0 +1,1367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Provably Efficient Causal Reinforcement Learning with Confounded Observational Data ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
192,
|
| 8 |
+
122,
|
| 9 |
+
808,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Lingxiao Wang Northwestern University lwang@u.northwestern.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
199,
|
| 19 |
+
222,
|
| 20 |
+
406,
|
| 21 |
+
263
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Zhuoran Yang Princeton University zy6@princeton.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
441,
|
| 30 |
+
222,
|
| 31 |
+
584,
|
| 32 |
+
263
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Zhaoran Wang Northwestern University zhaoranwang@gmail.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
617,
|
| 41 |
+
222,
|
| 42 |
+
799,
|
| 43 |
+
263
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
462,
|
| 53 |
+
299,
|
| 54 |
+
535,
|
| 55 |
+
315
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Empowered by neural networks, deep reinforcement learning (DRL) achieves tremendous empirical success. However, DRL requires a large dataset by interacting with the environment, which is unrealistic in critical scenarios such as autonomous driving and personalized medicine. In this paper, we study how to incorporate the dataset collected in the offline setting to improve the sample efficiency in the online setting. To incorporate the observational data, we face two challenges. (a) The behavior policy that generates the observational data may depend on unobserved random variables (confounders), which affect the received rewards and transition dynamics. (b) Exploration in the online setting requires quantifying the uncertainty given both the observational and interventional data. To tackle such challenges, we propose the deconfounded optimistic value iteration (DOVI) algorithm, which incorporates the confounded observational data in a provably efficient manner. DOVI explicitly adjusts for the confounding bias in the observational data, where the confounders are partially observed or unobserved. In both cases, such adjustments allow us to construct the bonus based on a notion of information gain, which takes into account the amount of information acquired from the offline setting. In particular, we prove that the regret of DOVI is smaller than the optimal regret achievable in the pure online setting when the confounded observational data are informative upon the adjustments. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
335,
|
| 65 |
+
764,
|
| 66 |
+
597
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
632,
|
| 77 |
+
310,
|
| 78 |
+
650
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Empowered by the breakthrough in neural networks, deep reinforcement learning (DRL) achieves significant empirical successes in various scenarios [19, 23, 36, 37]. Learning an expressive function approximator necessitates collecting a large dataset. Specifically, in the online setting, it requires the agent to interact with the environment for a large number of steps. For example, to learn a human-level policy for playing Atari games, the agent has to interact with a simulator for more than $1 0 ^ { 8 }$ steps [13]. However, in most scenarios, we do not have access to a simulator that allows for trial and error without any cost. Meanwhile, in critical scenarios, e.g., autonomous driving and personalized medicine, trial and error in the real world is unsafe and even unethical. As a result, it remains challenging to apply DRL to more scenarios. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
667,
|
| 88 |
+
825,
|
| 89 |
+
791
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "To bypass such a barrier, we study how to incorporate the dataset collected offline, namely the observational data, to improve the sample efficiency of RL in the online setting [21]. In contrast to the interventional data collected online in possibly expensive ways, observational data are often abundantly available in various scenarios. For example, in autonomous driving, we have access to trajectories generated by the drivers. As another example, in personalized medicine, we have access to electronic health records from doctors. However, to incorporate the observational data in a provably efficient way, we have to address two challenges. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
799,
|
| 99 |
+
825,
|
| 100 |
+
896
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "• The observational data are possibly confounded. Specifically, there often exist unobserved random variables, namely confounders, that causally affect the agent and the environment at the same time. In particular, the policy used to generate the observational data, namely the behavior policy, possibly depends on the confounders. Meanwhile, the confounders possibly affect the received rewards and the transition dynamics. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
92,
|
| 110 |
+
825,
|
| 111 |
+
160
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In the example of autonomous driving [9, 22], the drivers may be affected by complicated traffic or poor road design, resulting in traffic accidents even without misconduct. The complicated traffic and poor road design subsequently affect both the action of the drivers and the outcome. Therefore, it is unclear from the observational data whether the accidents are due to the actions adopted by the drivers. Agents trained with such observational data may be unwilling to take any actions under complicated traffic, jeopardizing the safety of passengers. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
189,
|
| 120 |
+
162,
|
| 121 |
+
825,
|
| 122 |
+
246
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In the example of personalized medicine [8, 29], the patients may not be compliant with prescriptions and instructions, which subsequently affects both the treatment and the outcome. As another example, the doctor may prescribe medicine to patients based on patients’ socioeconomic status (which could be inferred by the doctor through interacting with the patients). Meanwhile, socioeconomic status affects the patients’ health condition and subsequently plays the role of the confounder. In both scenarios, such confounders may be unavailable due to privacy or ethical concerns. Such a confounding issue makes the observational data uninformative and even misleading for identifying and estimating the causal effect, which is crucial for decision-making in the online setting. In all the examples, it is unclear from the observational data whether the outcome is due to the actions adopted. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
191,
|
| 131 |
+
248,
|
| 132 |
+
823,
|
| 133 |
+
386
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "• Even without the confounding issue, it remains unclear how the observational data may facilitate exploration in the online setting, which is the key to the sample efficiency of RL. At the core of exploration is uncertainty quantification. Specifically, quantifying the uncertainty that remains given the dataset collected up to the current step, including the observational data and the interventional data, allows us to construct a bonus. When incorporated into the reward, such a bonus encourages the agent to explore the less visited state-action pairs with more uncertainty. In particular, constructing such a bonus requires quantifying the amount of information carried over by the observational data from the offline setting, which also plays a key role in characterizing the regret, especially how much the observational data may facilitate reducing the regret. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
391,
|
| 143 |
+
825,
|
| 144 |
+
515
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Uncertainty quantification becomes even more challenging when the observational data are confounded. Specifically, as the behavior policy depends on the confounders, there is a mismatch between the data generating processes in the offline setting and the online setting. As a result, it remains challenging to quantify how much information carried over from the offline setting is useful for the online setting, as the observational data are uninformative and even misleading due to the confounding issue. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
187,
|
| 153 |
+
518,
|
| 154 |
+
825,
|
| 155 |
+
601
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "Contribution. To study causal reinforcement learning, we propose a class of Markov decision processes (MDPs), namely confounded MDPs, which captures the data generating processes in both the offline setting and the online setting as well as their mismatch due to the confounding issue. In particular, we study two tractable cases of confounded MDPs in the episodic setting with linear function approximation [7, 16, 42, 43]. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
174,
|
| 164 |
+
619,
|
| 165 |
+
825,
|
| 166 |
+
689
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "• In the first case, the confounders are partially observed in the observational data. Assuming that an observed subset of the confounders satisfies the backdoor criterion [32], we propose the deconfounded optimistic value iteration (DOVI) algorithm, which explicitly corrects for the confounding bias in the observational data using the backdoor adjustment. • In the second case, the confounders are unobserved in the observational data. Assuming that there exists an observed set of intermediate states that satisfies the frontdoor criterion [32], we propose an extension of DOVI, namely $\\mathrm { D O V I ^ { + } }$ , which explicitly corrects for the confounding bias in the observational data using the composition of two backdoor adjustments. We remark that $\\mathrm { D O V I ^ { + } }$ follows the same principle of design as DOVI and defer the discussion of $\\mathrm { D O V I ^ { + } }$ to $\\ S$ . ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
173,
|
| 175 |
+
699,
|
| 176 |
+
825,
|
| 177 |
+
830
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "In both cases, the adjustments allow DOVI and $\\mathrm { D O V I ^ { + } }$ to incorporate the observational data into the interventional data while bypassing the confounding issue. It further enables estimating the causal effect of a policy on the received rewards and the transition dynamics with enlarged effective sample size. Moreover, such adjustments allow us to construct the bonus based on a notion of information gain, which takes into account the amount of information carried over from the offline setting. ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
842,
|
| 187 |
+
823,
|
| 188 |
+
911
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "In particular, we prove that DOVI and $\\mathrm { D O V I ^ { + } }$ attain the $\\Delta _ { H } \\cdot \\sqrt { d ^ { 3 } H ^ { 3 } T }$ -regret up to logarithmic factors, where $d$ is the dimension of features, $H$ is the length of each episode, and $\\bar { T _ { \\mathbf { \\Lambda } } } = H K$ is the number of steps taken in the online setting, where $K$ is the number of episodes. Here the multiplicative factor $\\Delta _ { H } > 0$ depends on $d , H ,$ , and a notion of information gain that quantifies the amount of information obtained from the interventional data additionally when given the properly adjusted observational data. When the observational data are unavailable or uninformative upon the adjustments, √ $\\Delta _ { H }$ is a logarithmic factor. Correspondingly, DOVI and $\\mathrm { D O V I ^ { + } }$ attain the optimal $\\sqrt { T }$ -regret achievable in the pure online setting [7, 16, 42, 43]. When the observational data are sufficiently informative upon the adjustments, $\\Delta _ { H }$ decreases towards zero as the effective sample size of the observational data increases, which quantifies how much the observational data may facilitate exploration in the online setting. ",
|
| 195 |
+
"bbox": [
|
| 196 |
+
174,
|
| 197 |
+
89,
|
| 198 |
+
825,
|
| 199 |
+
246
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 2
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "Related Work. Our work is related to the study of causal bandit [20]. The goal of causal bandit is to obtain the optimal intervention in the online setting where the data generating process is described by a causal diagram. The previous study establishes causal bandit algorithms in the online setting [26, 34], the offline setting [17, 18], and a combination of both settings [11]. In contrast to this line of work, we study causal RL in a combination of the online setting and the offline setting. Causal RL is more challenging than causal bandit, which corresponds to $H = 1$ , as it involves the transition dynamics and is more challenging in exploration. See $\\ S _ { \\mathrm { B } }$ for a detailed literature review on causal bandit. ",
|
| 206 |
+
"bbox": [
|
| 207 |
+
173,
|
| 208 |
+
256,
|
| 209 |
+
825,
|
| 210 |
+
367
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 2
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "Our work is related to the study of causal RL considered in various settings. [45] propose a modelbased RL algorithm that solves dynamic treatment regimes (DTR), which involve a combination of the online setting and the offline setting. Their algorithm hinges on the analysis of sensitivity [3, 27, 38, 44], which constructs a set of feasible models of the transition dynamics based on the confounded observational data. Correspondingly, their algorithm achieves exploration by choosing an optimistic model of the transition dynamics from such a feasible set. In contrast, we propose a model-free RL algorithm, which achieves exploration through the bonus based on a notion of information gain. It is worth mentioning that the assumption of [45] is weaker than ours as theirs does not allow for identifying the causal effect. As a result of partial identification, the regret of their algorithm is the same as the regret in the pure online setting as $T \\to + \\infty$ . In contrast, our work instantiates the following framework in handling confounders for reinforcement learning. (a) First, we propose the estimation equation based on the observations, which identifies the causal effect of actions on the cumulative reward. (b) Second, we conduct point estimation and uncertainty quantification based on observations and the estimation equation. (c) Finally, we conduct exploration based on the uncertainty quantification and achieve the regret reduction in the online setting. Consequently, the regret of our algorithm is smaller than the regret in the pure online setting by a multiplicative factor for all $T$ . [25] propose a model-based RL algorithm in a combination of the online setting and the offline setting. Their algorithm uses a variational autoencoder (VAE) for estimating a structural causal model (SCM) based on the confounded observational data. In particular, their algorithm utilizes the actor-critic algorithm to obtain the optimal policy in such an SCM. However, the regret of their algorithm remains unclear. [6] propose a model-based RL algorithm in the pure online setting that learns the optimal policy in a partially observable Markov decision process (POMDP). The regret of their algorithm also remains unclear. [35] utilize generative adversarial reinforcement learning to reconstruct transition dynamics with confounder, and [40] propose a model-based approach for POMDP based on adjustment with proxy variables. [30] consider offpolicy policy evaluation under one-decision confounding and constructs worst-case bounds with theoretical guarantee. [4] utilizes states and actions as proxy variables to tackle off-policy policy evaluation with confounders. In contrast, our work utilizes backdoor and frontdoor adjustments to handle confounded observation. ",
|
| 217 |
+
"bbox": [
|
| 218 |
+
173,
|
| 219 |
+
375,
|
| 220 |
+
825,
|
| 221 |
+
772
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 2
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "2 Confounded Reinforcement Learning ",
|
| 228 |
+
"text_level": 1,
|
| 229 |
+
"bbox": [
|
| 230 |
+
174,
|
| 231 |
+
792,
|
| 232 |
+
517,
|
| 233 |
+
810
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 2
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "Structural Causal Model. We denote a structural causal model (SCM) [32] by a tuple $( A , B , F , P )$ . Here $A$ is the set of exogenous (unobserved) variables, $B$ is the set of endogenous (observed) variables, $F$ is the set of structural functions capturing the causal relations, which determines an endogenous variable $v \\in B$ based on the other exogenous and endogenous variables, and $P$ is the distribution of all the exogenous variables. We say that a pair of variables $Y$ and $Z$ are confounded by a variable $W$ if they are both caused by $W$ . ",
|
| 240 |
+
"bbox": [
|
| 241 |
+
174,
|
| 242 |
+
827,
|
| 243 |
+
823,
|
| 244 |
+
911
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 2
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "An intervention on a set of endogenous variables $X \\subseteq B$ assigns a value $x$ to $X$ regardless of the other exogenous and endogenous variables as well as the structural functions. We denote by $\\operatorname { d o } ( X \\ = \\ x )$ the intervention on $X$ and write $\\operatorname { d o } ( x )$ if it is clear from the context. Similarly, a stochastic intervention [10, 28] on a set of endogenous variables $X \\subseteq B$ assigns a distribution $p$ to $X$ regardless of the other exogenous and endogenous variables as well as the structural functions. We denote by $\\mathrm { d o } ( X \\sim p )$ the stochastic intervention on $X$ . ",
|
| 251 |
+
"bbox": [
|
| 252 |
+
173,
|
| 253 |
+
90,
|
| 254 |
+
825,
|
| 255 |
+
175
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 3
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "Confounded Markov Decision Process. To characterize a Markov decision process (MDP) in the offline setting with observational data, which are possibly confounded, we introduce an SCM, where the endogenous variables are the states $\\{ s _ { h } \\} _ { h \\in [ H ] }$ , actions $\\{ a _ { h } \\} _ { h \\in [ H ] }$ , and rewards $\\{ r _ { h } \\} _ { h \\in [ H ] }$ . Let $\\{ w _ { h } \\} _ { h \\in [ H ] }$ be the confounders. In $\\ S 3$ , we assume that the confounders are partially observed, while in $\\ S$ , we assume that they are unobserved. The set of structural functions $F$ consists of the transition of states $s _ { h + 1 } \\sim \\mathcal { P } _ { h } ( \\cdot \\mid s _ { h } , a _ { h } , w _ { h } )$ , the transition of confounders $w _ { h } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot \\vert s _ { h } )$ , the behavior policy $a _ { h } \\sim \\nu _ { h } ( \\cdot \\mid s _ { h } , w _ { h } )$ , which depends on the confounder $w _ { h }$ , and the reward function $r _ { h } ( s _ { h } , a _ { h } , w _ { h } )$ . See Figure 1 for the causal diagram that describes such an SCM. ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
173,
|
| 264 |
+
185,
|
| 265 |
+
825,
|
| 266 |
+
301
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 3
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "image",
|
| 272 |
+
"img_path": "images/fc242512d131e0246c4a3f1a2122f7150bde2eca97f93e0ff5f87914970bb452.jpg",
|
| 273 |
+
"image_caption": [
|
| 274 |
+
"Figure 1: Causal diagrams of the $h$ -th step of the confounded MDP (a) in the offline setting and (b) in the online setting, respectively. "
|
| 275 |
+
],
|
| 276 |
+
"image_footnote": [],
|
| 277 |
+
"bbox": [
|
| 278 |
+
200,
|
| 279 |
+
314,
|
| 280 |
+
803,
|
| 281 |
+
428
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 3
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "Here $a _ { h }$ and $s _ { h + 1 }$ are confounded by $w _ { h }$ in addition to $s _ { h }$ . We denote such a confounded MDP by the tuple $( S , \\mathcal { A } , \\mathcal { W } , H , \\overline { { \\mathcal { P } } } , r )$ , where $H$ is the length of an episode, $s , A$ , and $\\mathcal { W }$ are the spaces of states, actions, and confounders, respectively, $\\bar { r \\ = \\ \\{ r _ { h } \\} _ { h \\in \\{ H \\} } }$ is the set of reward functions, and $\\overline { { \\mathcal { P } } } = \\{ \\mathcal { P } _ { h } , \\widetilde { \\mathcal { P } } _ { h } \\} _ { h \\in H }$ is the set of transition kernels. In the sequel, we assume without loss of generality that $r _ { h }$ takes value in $[ 0 , 1 ]$ for all $h \\in [ H ]$ . ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
173,
|
| 290 |
+
484,
|
| 291 |
+
825,
|
| 292 |
+
561
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 3
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "In the online setting that allows for intervention, we assume that the confounders $\\{ w _ { h } \\} _ { h \\in [ H ] }$ are unobserved. A policy $\\pi = \\{ \\pi _ { h } \\} _ { h \\in [ H ] }$ induces the stochastic intervention $\\mathrm { d o } ( a _ { 1 } \\sim$ $\\pi _ { 1 } ( \\cdot \\cdot \\vert s _ { 1 } ) , \\ldots , a _ { H } \\sim \\pi _ { H } ( \\cdot \\vert s _ { H } ) )$ , which does not depend on the confounders. In particular, an agent interacts with the environment as follows. At the beginning of the $k$ -th episode, the environment arbitrarily selects an initial state $s _ { 1 } ^ { k }$ and the agent selects a policy $\\pi ^ { k } = \\mathbf { \\bar { \\{ } } { \\pi _ { h } ^ { k } } \\} _ { h \\in [ H ] }$ . At the $h$ -th step of the $k$ -th episode, the agent observes the state $s _ { h } ^ { k }$ and takes the action $a _ { h } ^ { k } \\sim \\bar { \\pi } _ { h } ^ { k } ( \\cdot | s _ { h } ^ { k } )$ . The environment randomly selects the confounder $w _ { h } ^ { k } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot \\vert s _ { h } ^ { k } )$ , which is unobserved, and the agent receives the reward $s _ { h + 1 } ^ { k } \\sim \\mathcal { P } _ { h } ( \\cdot \\mid s _ { h } ^ { k } , a _ { h } ^ { k } , w _ { h } ^ { k } )$ . ${ r _ { h } ^ { k } } = r _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } , w _ { h } ^ { k } )$ . The environment then transits into the next state ",
|
| 299 |
+
"bbox": [
|
| 300 |
+
173,
|
| 301 |
+
566,
|
| 302 |
+
825,
|
| 303 |
+
707
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 3
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "For a policy $\\pi = \\{ \\pi _ { h } \\} _ { h \\in H }$ , which does not depend on the confounders $\\{ w _ { h } \\} _ { h \\in [ H ] }$ , we define the value function $V ^ { \\pi } = \\{ V _ { h } ^ { \\pi } \\} _ { h \\in [ H ] }$ as follows, ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
173,
|
| 312 |
+
710,
|
| 313 |
+
825,
|
| 314 |
+
743
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 3
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "equation",
|
| 320 |
+
"img_path": "images/d246d52e6cd291b5d9112b4a63cc7980f6324f3d35cc2cc9e7d00a5121e878be.jpg",
|
| 321 |
+
"text": "$$\nV _ { h } ^ { \\pi } ( s ) = \\mathbb { E } _ { \\pi } \\bigg [ \\sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , w _ { j } ) \\biggm | s _ { h } = s \\bigg ] , \\quad \\forall h \\in [ H ] ,\n$$",
|
| 322 |
+
"text_format": "latex",
|
| 323 |
+
"bbox": [
|
| 324 |
+
313,
|
| 325 |
+
751,
|
| 326 |
+
683,
|
| 327 |
+
796
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "where we denote by $\\mathbb { E } _ { \\pi }$ the expectation with respect to the confounders $\\{ w _ { j } \\} _ { j = h } ^ { H }$ and the trajectory $\\{ ( s _ { j } , a _ { j } ) \\} _ { j = h } ^ { H }$ , starting from the state $s _ { j } = s$ and following the policy $\\pi$ . Correspondingly, we define the action-value function $Q ^ { \\pi } = \\{ Q _ { h } ^ { \\pi } \\} _ { h \\in [ H ] }$ as follows, ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
805,
|
| 337 |
+
825,
|
| 338 |
+
856
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "equation",
|
| 344 |
+
"img_path": "images/b9aaf7bae6d9cc9f0c16f9eec91864874bb1c150456627caa2d7d753e6be4181.jpg",
|
| 345 |
+
"text": "$$\nQ _ { h } ^ { \\pi } ( s , a ) = \\mathbb { E } _ { \\pi } \\bigg [ \\sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , w _ { j } ) \\biggm | s _ { h } = s , \\mathrm { d o } ( a _ { h } = a ) \\bigg ] , \\quad \\forall h \\in [ H ] .\n$$",
|
| 346 |
+
"text_format": "latex",
|
| 347 |
+
"bbox": [
|
| 348 |
+
264,
|
| 349 |
+
864,
|
| 350 |
+
735,
|
| 351 |
+
909
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "We assess the performance of an algorithm using the regret against the globally optimal policy $\\pi ^ { * } = \\{ \\pi _ { h } ^ { * } \\} _ { h \\in [ H ] }$ in hindsight after $K$ episodes, which is defined as follows, ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
171,
|
| 360 |
+
90,
|
| 361 |
+
825,
|
| 362 |
+
119
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 4
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "equation",
|
| 368 |
+
"img_path": "images/00276619a26958d1d719dd9340160f5de593498236ee87d2b14a46630e799ca8.jpg",
|
| 369 |
+
"text": "$$\n\\mathrm { R e g r e t } ( T ) = \\operatorname* { m a x } _ { \\pi } \\sum _ { k = 1 } ^ { K } \\bigl ( V _ { 1 } ^ { \\pi } ( s _ { 1 } ^ { k } ) - V _ { 1 } ^ { \\pi ^ { k } } ( s _ { 1 } ^ { k } ) \\bigr ) = \\sum _ { k = 1 } ^ { K } \\bigl ( V _ { 1 } ^ { \\pi ^ { * } } ( s _ { 1 } ^ { k } ) - V _ { 1 } ^ { \\pi ^ { k } } ( s _ { 1 } ^ { k } ) \\bigr ) .\n$$",
|
| 370 |
+
"text_format": "latex",
|
| 371 |
+
"bbox": [
|
| 372 |
+
251,
|
| 373 |
+
127,
|
| 374 |
+
745,
|
| 375 |
+
171
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 4
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "Here $T = H K$ is the total number of steps. ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
176,
|
| 385 |
+
459,
|
| 386 |
+
190
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 4
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "Our goal is to design an algorithm that minimizes the regret defined in (2.3), where $\\pi ^ { * }$ does not depend on the confounders $\\{ w _ { h } \\} _ { h \\in [ H ] }$ . In the online setting that allows for intervention, it is well understood how to minimize such a regret [2, 14–16]. However, it remains unclear how to efficiently utilize the observational data obtained in the offline setting, which are possibly confounded. In realworld applications, e.g., autonomous driving and personalized medicine, such observational data are often abundant, whereas intervention in the online setting is often restricted. We refer to $\\mathrm { \\ S C }$ for a comparison between the confounded MDP and other extensions of MDP, including the dynamics treatment regime (DTR), partially observable MDP (POMDP), and contextual MDP (CMDP). ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
173,
|
| 395 |
+
196,
|
| 396 |
+
825,
|
| 397 |
+
308
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 4
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "Why is Incorporating Confounded Observational Data Challenging? Straightforwardly incorporating the confounded observational data into an online algorithm possibly leads to an undesirable regret due to the mismatch between the online and offline data generating processes. In particular, due to the existence of the confounders $\\{ w _ { h } \\} _ { h \\in [ H ] }$ , which are partially observed (§3) or unobserved $^ { ( \\ S ) }$ , the conditional probability $\\mathbb { P } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } )$ in the offline setting is different from the causal effect $\\mathbb { P } ( s _ { h + 1 } \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) )$ in the online setting [33]. More specifically, it holds that ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
173,
|
| 406 |
+
314,
|
| 407 |
+
825,
|
| 408 |
+
400
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 4
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "equation",
|
| 414 |
+
"img_path": "images/e870ea1008b81d480b706dee5a5ae15005be28db51268a0c533e4a1db300eda3.jpg",
|
| 415 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbb { P } \\big ( s _ { h + 1 } | s _ { h } , a _ { h } \\big ) = \\frac { \\mathbb { E } _ { w _ { h } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot | s _ { h } ) } \\big [ \\mathcal { P } _ { h } \\big ( s _ { h + 1 } | s _ { h } , a _ { h } , w _ { h } \\big ) \\cdot \\nu _ { h } \\big ( a _ { h } | s _ { h } , w _ { h } \\big ) \\big ] } { \\mathbb { E } _ { w _ { h } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot | s _ { h } ) } \\big [ \\nu _ { h } \\big ( a _ { h } \\big | s _ { h } , w _ { h } \\big ) \\big ] } , } \\\\ & { \\mathbb { P } \\big ( s _ { h + 1 } \\big | s _ { h } , \\mathrm { d o } ( a _ { h } ) \\big ) = \\mathbb { E } _ { w _ { h } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot | s _ { h } ) } \\big [ \\mathcal { P } _ { h } \\big ( \\cdot | s _ { h } , a _ { h } , w _ { h } \\big ) \\big ] . } \\end{array}\n$$",
|
| 416 |
+
"text_format": "latex",
|
| 417 |
+
"bbox": [
|
| 418 |
+
248,
|
| 419 |
+
405,
|
| 420 |
+
746,
|
| 421 |
+
472
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 4
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "In other words, without proper covariate adjustments [32], the confounded observational data may be not informative for estimating the transition dynamics and the associated action-value function in the online setting. To this end, we propose an algorithm that incorporates the confounded observational data in a provably efficient manner. Moreover, our analysis quantifies the amount of information carried over by the confounded observational data from the offline setting and to what extent it helps reducing the regret in the online setting. ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
173,
|
| 430 |
+
474,
|
| 431 |
+
825,
|
| 432 |
+
559
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "3 Algorithm and Theory for Partially Observed Confounder ",
|
| 439 |
+
"text_level": 1,
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
577,
|
| 443 |
+
691,
|
| 444 |
+
595
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "In this section, we propose the Deconfounded Optimistic Value Iteration (DOVI) algorithm. DOVI handles the case where the confounders are unobserved in the online setting but are partially observed in the offline setting. We then characterize the regret of DOVI. We defer the extension of DOVI, namely $\\mathrm { D O V I + }$ , to $\\ S \\mathrm { A }$ which handles the case where the confounders are unobserved in both the online setting and the offline setting. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
608,
|
| 454 |
+
825,
|
| 455 |
+
679
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "3.1 Algorithm ",
|
| 462 |
+
"text_level": 1,
|
| 463 |
+
"bbox": [
|
| 464 |
+
174,
|
| 465 |
+
694,
|
| 466 |
+
285,
|
| 467 |
+
708
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "Backdoor Adjustment. In the online setting that allows for intervention, the causal effect of $a _ { h }$ on $s _ { h + 1 }$ given $s _ { h }$ , that is, $\\mathbb { P } \\big ( s _ { h + 1 } | s _ { h } , \\mathrm { d o } ( a _ { h } ) \\big ) \\big )$ , plays a key role in the estimation of the action-value function. Meanwhile, the confounded observational data may not allow us to identify the causal effect $\\mathbb { P } \\big ( s _ { h + 1 } | s _ { h } , \\mathrm { d o } ( a _ { h } ) \\big )$ if the confounder $w _ { h }$ is unobserved. However, if the confounder $w _ { h }$ is partially observed in the offline setting, the observed subset $u _ { h }$ of $w _ { h }$ allows us to identify the causal effect $\\bar { \\mathbb { P } } ( s _ { h + 1 } \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) )$ , as long as $u _ { h }$ satisfies the following backdoor criterion. ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
173,
|
| 476 |
+
719,
|
| 477 |
+
825,
|
| 478 |
+
803
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "Assumption 3.1 (Backdoor Criterion [32, 33]). In the SCM defined in $\\ S$ and its induced directed acyclic graph (DAG), for all $h \\in [ H ]$ , there exists an observed subset $u _ { h }$ of $w _ { h }$ that satisfies the backdoor criterion, that is, ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
176,
|
| 487 |
+
806,
|
| 488 |
+
825,
|
| 489 |
+
849
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "• the elements of $u _ { h }$ are not the descendants of $a _ { h }$ , and \n• conditioning on $s _ { h }$ , the elements of $u _ { h }$ $d$ -separate every path between $a _ { h }$ and $s _ { h + 1 } , r _ { h }$ that has an incoming arrow into $a _ { h }$ . ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
215,
|
| 498 |
+
859,
|
| 499 |
+
825,
|
| 500 |
+
912
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "See Figure 2 for an example that satisfies the backdoor criterion. In particular, we identify the causal effect $\\bar { \\mathbb { P } } ( s _ { h + 1 } \\mid s _ { h } , \\mathrm { d o } ( a _ { h } \\bar { ) } )$ as follows. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
90,
|
| 510 |
+
823,
|
| 511 |
+
119
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 5
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "image",
|
| 517 |
+
"img_path": "images/fa812e4d1a72af3a441491ece0e503dfa5d5d4fc3fb3f61e57797a91312491fe.jpg",
|
| 518 |
+
"image_caption": [
|
| 519 |
+
"Figure 2: An illustration of the backdoor criterion modified from [32]. The causal diagram corresponds to the $h$ -th step of the confounded MDP conditioning on $s _ { h }$ . Here $w _ { h } = \\{ w _ { 1 , h } , w _ { 2 , h } , w _ { 3 , h } \\}$ is the unobserved confounders and the subset $u _ { h } = \\left\\{ u _ { 1 , h } , u _ { 2 , h } \\right\\}$ satisfies the backdoor criterion. "
|
| 520 |
+
],
|
| 521 |
+
"image_footnote": [],
|
| 522 |
+
"bbox": [
|
| 523 |
+
372,
|
| 524 |
+
131,
|
| 525 |
+
624,
|
| 526 |
+
224
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 5
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "Proposition 3.2 (Backdoor Adjustment [32]). Under Assumption 3.1, it holds for all $h \\in [ H ]$ that ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
168,
|
| 535 |
+
285,
|
| 536 |
+
818,
|
| 537 |
+
301
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 5
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "equation",
|
| 543 |
+
"img_path": "images/059836c7da018a534eff53eda7a1e45a3a02d20ce1b65fc5e20428c702fbe592.jpg",
|
| 544 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbb { P } \\big ( s _ { h + 1 } \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) \\big ) = \\mathbb { E } _ { u _ { h } \\sim \\mathbb { P } ( \\cdot \\mid s _ { h } ) } \\left[ \\mathbb { P } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } , u _ { h } ) \\right] , } \\\\ & { \\mathbb { E } \\big [ r _ { h } ( s _ { h } , a _ { h } , w _ { h } ) \\big \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) \\big ] = \\mathbb { E } _ { u _ { h } \\sim \\mathbb { P } ( \\cdot \\mid s _ { h } ) } \\Big [ \\mathbb { E } \\big [ r _ { h } ( s _ { h } , a _ { h } , w _ { h } ) \\big \\mid s _ { h } , a _ { h } , u _ { h } \\big ] \\Big ] . } \\end{array}\n$$",
|
| 545 |
+
"text_format": "latex",
|
| 546 |
+
"bbox": [
|
| 547 |
+
235,
|
| 548 |
+
301,
|
| 549 |
+
761,
|
| 550 |
+
351
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Here $( s _ { h + 1 } , s _ { h } , a _ { h } , u _ { h } )$ follows the SCM defined in $\\ S 2$ , which generates the confounded observational data. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
173,
|
| 559 |
+
352,
|
| 560 |
+
823,
|
| 561 |
+
381
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 5
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "Proof. See [32] for a detailed proof. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
393,
|
| 571 |
+
413,
|
| 572 |
+
410
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 5
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "With a slight abuse of notation, we write $\\mathbb { P } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } , u _ { h } )$ as $\\mathcal { P } _ { h } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } , u _ { h } )$ and $\\mathbb { P } ( u _ { h } \\mid s _ { h } )$ as $\\mathcal { \\widetilde { P } } _ { h } ( u _ { h } \\vert s _ { h } )$ , since they are induced by the SCM defined in $\\ S 2$ . In the sequel, we define $\\mathcal { U }$ the space of observed state $u _ { h }$ and write $r _ { h } = r _ { h } ( s _ { h } , a _ { h } , w _ { h } )$ for notational simplicity. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
173,
|
| 581 |
+
422,
|
| 582 |
+
826,
|
| 583 |
+
469
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 5
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "Backdoor-Adjusted Bellman Equation. We now formulate the Bellman equation for the confounded MDP. It holds for all $( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A }$ that ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
173,
|
| 592 |
+
474,
|
| 593 |
+
823,
|
| 594 |
+
503
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "equation",
|
| 600 |
+
"img_path": "images/aa8c03ce0fab0192ad8c18b39a01daaa6ff0d1849fb37f5f490992090ccff2f4.jpg",
|
| 601 |
+
"text": "$$\nQ _ { h } ^ { \\pi } ( s _ { h } , a _ { h } ) = \\mathbb { E } _ { \\pi } \\left[ \\sum _ { j = h } ^ { H } r _ { j } ( s _ { j } , a _ { j } , u _ { j } ) \\middle | s _ { h } , \\mathrm { d o } ( a _ { h } ) \\right] = \\mathbb { E } \\left[ r _ { h } \\middle | s _ { h } , \\mathrm { d o } ( a _ { h } ) \\right] + \\mathbb { E } _ { s _ { h + 1 } } \\left[ V _ { h + 1 } ^ { \\pi } ( s _ { h + 1 } ) \\right] ,\n$$",
|
| 602 |
+
"text_format": "latex",
|
| 603 |
+
"bbox": [
|
| 604 |
+
179,
|
| 605 |
+
507,
|
| 606 |
+
813,
|
| 607 |
+
550
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 5
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "where Esh+1 denotes the expectation with respect to $\\begin{array} { r l r } { s _ { h + 1 } } & { { } \\sim } & { \\mathbb { P } ( \\cdot \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) ) } \\end{array}$ . Here $\\mathbb { E } [ r _ { h } \\vert s _ { h } , \\mathrm { d o } ( a _ { h } ) ]$ and $\\mathbb { P } ( \\cdot \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) )$ are characterized in Proposition 3.2. In the sequel, we define the following transition operator and counterfactual reward function, ",
|
| 614 |
+
"bbox": [
|
| 615 |
+
174,
|
| 616 |
+
553,
|
| 617 |
+
820,
|
| 618 |
+
598
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 5
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "equation",
|
| 624 |
+
"img_path": "images/b8e32641d96953b892d012f75bdef243b53a934eff77e59cf9ee6214a8027913.jpg",
|
| 625 |
+
"text": "$$\n\\begin{array} { r l } & { ( \\mathbb { P } _ { h } V ) ( s _ { h } , a _ { h } ) = \\mathbb { E } _ { s _ { h + 1 } \\sim \\mathbb { P } ( \\cdot \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) ) } \\bigl [ V ( s _ { h + 1 } ) \\bigr ] , \\quad \\forall V : \\mathcal { S } \\mapsto \\mathbb { R } , ( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A } , } \\\\ & { \\quad R _ { h } ( s _ { h } , a _ { h } ) = \\mathbb { E } \\bigl [ r _ { h } \\mid s _ { h } , \\mathrm { d o } ( a _ { h } ) \\bigr ] , \\quad \\forall ( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A } . } \\end{array}\n$$",
|
| 626 |
+
"text_format": "latex",
|
| 627 |
+
"bbox": [
|
| 628 |
+
200,
|
| 629 |
+
598,
|
| 630 |
+
766,
|
| 631 |
+
640
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "We have the following Bellman equation, ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
178,
|
| 640 |
+
640,
|
| 641 |
+
446,
|
| 642 |
+
655
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "equation",
|
| 648 |
+
"img_path": "images/41e2c695bfb18eb02bb514dfc61496934865e2e52e5f44e1b92dc538cb2c0a0d.jpg",
|
| 649 |
+
"text": "$$\n\\begin{array} { r } { Q _ { h } ^ { \\pi } ( s _ { h } , a _ { h } ) = R _ { h } ( s _ { h } , a _ { h } ) + ( \\mathbb { P } _ { h } V _ { h + 1 } ^ { \\pi } ) ( s _ { h } , a _ { h } ) , \\quad \\forall h \\in [ H ] , ( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A } . } \\end{array}\n$$",
|
| 650 |
+
"text_format": "latex",
|
| 651 |
+
"bbox": [
|
| 652 |
+
217,
|
| 653 |
+
656,
|
| 654 |
+
748,
|
| 655 |
+
674
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "Correspondingly, the Bellman optimality equation takes the following form, ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
179,
|
| 664 |
+
675,
|
| 665 |
+
673,
|
| 666 |
+
690
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "equation",
|
| 672 |
+
"img_path": "images/3a81ff5cfa75945277e9efb13e4bdd0228b923eba96644fb716833337fffa5a7.jpg",
|
| 673 |
+
"text": "$$\nQ _ { h } ^ { * } ( s _ { h } , a _ { h } ) = R _ { h } ( s _ { h } , a _ { h } ) + ( { \\mathbb { P } } _ { h } V _ { h + 1 } ^ { * } ) ( s _ { h } , a _ { h } ) , \\quad V _ { h } ^ { * } ( s _ { h } ) = \\operatorname* { m a x } _ { a _ { h } \\in \\mathcal { A } } Q _ { h } ^ { * } ( s _ { h } , a _ { h } ) ,\n$$",
|
| 674 |
+
"text_format": "latex",
|
| 675 |
+
"bbox": [
|
| 676 |
+
236,
|
| 677 |
+
691,
|
| 678 |
+
759,
|
| 679 |
+
715
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 5
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "which holds for all $h \\in [ H ]$ and $( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A }$ . Such a Bellman optimality equation allows us to adapt the least-squares value iteration (LSVI) algorithm [2, 5, 14, 16, 31]. ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
718,
|
| 689 |
+
823,
|
| 690 |
+
748
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 5
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Linear Function Approximation. We focus on the following setting with linear transition kernels and reward functions [7, 16, 42, 43], which corresponds to a linear SCM [33]. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
176,
|
| 699 |
+
757,
|
| 700 |
+
820,
|
| 701 |
+
786
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Assumption 3.3 (Linear Confounded MDP). We assume that $\\begin{array} { r } { \\mathcal { P } _ { h } \\big ( s _ { h + 1 } \\big | s _ { h } , a _ { h } , u _ { h } \\big ) = \\big \\langle \\phi _ { h } \\big ( s _ { h } , a _ { h } , u _ { h } \\big ) , \\mu _ { h } \\big ( s _ { h + 1 } \\big ) \\big \\rangle , \\quad \\forall h \\in [ H ] , ( s _ { h + 1 } , s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { S } \\times \\mathcal { A } , } \\end{array}$ where $\\phi _ { h } ( \\cdot , \\cdot , \\cdot )$ and $\\boldsymbol { \\mu } _ { h } ( \\cdot ) = ( \\mu _ { 1 , h } ( \\cdot ) , \\ldots , \\mu _ { d , h } ( \\cdot ) ) ^ { \\top }$ are $\\mathbb { R } ^ { d }$ -valued functions. We assume that $\\begin{array} { r } { \\sum _ { i = 1 } ^ { d } \\| \\mu _ { i , h } \\| _ { 1 } ^ { 2 } \\leq d } \\end{array}$ and $\\| \\phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) \\| _ { 2 } \\le 1$ for all $h \\in [ H ]$ and $( s _ { h } , a _ { h } , u _ { h } ) \\in \\mathcal S \\times \\mathcal A \\times \\mathcal U$ Meanwhile, we assume that ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
171,
|
| 710 |
+
789,
|
| 711 |
+
583,
|
| 712 |
+
804
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
805,
|
| 722 |
+
825,
|
| 723 |
+
871
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "$\\begin{array} { r } { \\mathbb { E } [ r _ { h } | s _ { h } , a _ { h } , u _ { h } ] = \\phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) ^ { \\top } \\theta _ { h } , \\quad \\forall h \\in [ H ] , ( s _ { h } , a _ { h } , u _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A } \\times \\mathcal { U } , } \\end{array}$ where $\\theta _ { h } \\in \\mathbb { R } ^ { d }$ and $\\| \\theta _ { h } \\| _ { 2 } \\leq \\sqrt { d }$ for all $h \\in [ H ]$ . ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
872,
|
| 733 |
+
754,
|
| 734 |
+
912
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Such a linear setting generalizes the tabular setting where $s , A .$ , and $\\mathcal { U }$ are finite. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
90,
|
| 744 |
+
700,
|
| 745 |
+
107
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 6
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Proposition 3.4. We define the backdoor-adjusted feature as follows, ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
173,
|
| 754 |
+
109,
|
| 755 |
+
630,
|
| 756 |
+
123
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 6
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "equation",
|
| 762 |
+
"img_path": "images/a4aa6b31c3f9d9796703f72bb0af44d1e877087ea43a4d60a5f1ad96bbed5380.jpg",
|
| 763 |
+
"text": "$$\n\\begin{array} { r } { \\psi _ { h } ( s _ { h } , a _ { h } ) = \\mathbb { E } _ { a _ { h } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot \\mid s _ { h } ) } \\big [ \\phi _ { h } ( s _ { h } , a _ { h } , u _ { h } ) \\big ] , \\quad \\forall h \\in [ H ] , ( s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { A } . } \\end{array}\n$$",
|
| 764 |
+
"text_format": "latex",
|
| 765 |
+
"bbox": [
|
| 766 |
+
240,
|
| 767 |
+
127,
|
| 768 |
+
758,
|
| 769 |
+
148
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Under Assumption 3.1, it holds that ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
152,
|
| 779 |
+
411,
|
| 780 |
+
166
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "equation",
|
| 786 |
+
"img_path": "images/c66ff3bd2d8f5aabe69542823d651c069fe4f25a7d63286a666ce9b54c20f57a.jpg",
|
| 787 |
+
"text": "$$\n\\mathbb { P } ( s _ { h + 1 } | s _ { h } , \\mathrm { d o } ( a _ { h } ) ) = \\langle \\psi _ { h } ( s _ { h } , a _ { h } ) , \\mu _ { h } ( s _ { h + 1 } ) \\rangle , \\quad \\forall h \\in [ H ] , ( s _ { h + 1 } , s _ { h } , a _ { h } ) \\in \\mathcal { S } \\times \\mathcal { S } \\times \\mathcal { A } .\n$$",
|
| 788 |
+
"text_format": "latex",
|
| 789 |
+
"bbox": [
|
| 790 |
+
194,
|
| 791 |
+
171,
|
| 792 |
+
802,
|
| 793 |
+
189
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 6
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Moreover, the action-value functions $Q _ { h } ^ { \\pi }$ and $Q _ { h } ^ { * }$ are linear in the backdoor-adjusted feature $\\psi _ { h }$ for all $\\pi$ . ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
193,
|
| 803 |
+
825,
|
| 804 |
+
223
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Proof. See $\\mathrm { \\ S F . 1 }$ for a detailed proof. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
236,
|
| 814 |
+
413,
|
| 815 |
+
251
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Such an observation allows us to estimate the action-value function based on the backdoor-adjusted features $\\{ \\psi _ { h } \\} _ { h \\in [ H ] }$ in the online setting. See $\\ S$ for a detailed discussion. In the sequel, we assume that either the density of $\\{ \\widetilde { \\mathcal { P } } _ { h } ( \\cdot \\vert s _ { h } ) \\} _ { h \\in [ H ] }$ is known or the backdoor-adjusted feature $\\{ \\psi _ { h } \\} _ { h \\in [ H ] }$ is known. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
173,
|
| 824 |
+
265,
|
| 825 |
+
825,
|
| 826 |
+
325
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "In the sequel, we introduce the DOVI algorithm (Algorithm 1). Each iteration of DOVI consists of two components, namely point estimation, where we estimate $Q _ { h } ^ { * }$ based on the confounded observational data and the interventional data, and uncertainty quantification, where we construct the upper confidence bound (UCB) of the point estimator. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
330,
|
| 836 |
+
825,
|
| 837 |
+
388
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Algorithm 1 Deconfounded Optimistic Value Iteration (DOVI) for Confounded MDP ",
|
| 844 |
+
"text_level": 1,
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
401,
|
| 848 |
+
735,
|
| 849 |
+
417
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 6
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Require: Observational data $\\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \\} _ { i \\in [ n ] , h \\in [ H ] }$ , tuning parameters $\\lambda , \\beta > 0$ , backdooradjusted feature $\\{ \\psi _ { h } \\} _ { h \\in [ H ] }$ , which is defined in (3.6). \n1: Initialization: Set $\\{ Q _ { h } ^ { 0 } , V _ { h } ^ { 0 } \\} _ { h \\in [ H ] }$ as zero functions and $V _ { H + 1 } ^ { k }$ as a zero function for $k \\in [ K ]$ . 2: for $k = 1 , \\ldots , K$ do \n3: for 4: S $h = H , \\ldots , 1$ \n$\\begin{array} { r } { \\omega _ { h } ^ { k } { \\stackrel { } { \\sim } } \\operatorname { a r g m i n } _ { \\omega \\in \\mathbb { R } ^ { d } } \\sum _ { \\tau = 1 } ^ { k - 1 } ( r _ { h } ^ { \\tau } + V _ { h + 1 } ^ { \\tau } ( s _ { h + 1 } ^ { \\tau } ) - \\omega ^ { \\top } \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) ) ^ { 2 } + \\lambda \\| \\omega \\| _ { 2 } ^ { 2 } + L _ { h } ^ { k } ( \\omega ) , } \\end{array}$ where $L _ { h } ^ { k }$ is defined in (3.8). \n5: Set $Q _ { h } ^ { k } ( \\cdot , \\cdot ) \\gets \\operatorname* { m i n } \\{ \\psi _ { h } ( \\cdot , \\cdot ) ^ { \\top } \\omega _ { h } ^ { k } + \\Gamma _ { h } ^ { k } ( \\cdot , \\cdot ) , H - h \\}$ , where $\\Gamma _ { h } ^ { k }$ is defined in (3.12). 6: Set $\\pi _ { h } ^ { k } ( \\cdot \\vert s _ { h } ) \\gets \\mathrm { a r g m a x } _ { a _ { h } \\in \\mathcal { A } } Q _ { h } ^ { k } ( s _ { h } , a _ { h } )$ for all $s _ { h } \\in S$ . \n7: Set $V _ { h } ^ { k } ( \\cdot ) \\langle \\pi _ { h } ^ { k } ( \\cdot \\vert \\cdot ) , Q _ { h } ^ { k } ( \\cdot , \\cdot ) \\rangle _ { \\cal A }$ . \n8: end for \n9: Obtain $s _ { 1 } ^ { k }$ from the environment. \n10: for $h = 1 , \\ldots , H$ do \n11: Take $a _ { h } ^ { k } \\sim \\pi _ { h } ^ { k } ( \\cdot | s _ { h } ^ { k } )$ . Obtain $r _ { h } ^ { k } = r _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } , u _ { h } ^ { k } )$ and $s _ { h + 1 } ^ { k }$ . \n12: end for \n13: end for ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
176,
|
| 858 |
+
420,
|
| 859 |
+
826,
|
| 860 |
+
661
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Point Estimation. To solve the Bellman optimality equation in (3.4), we minimize the empirical mean-squared Bellman error as follows at each step, ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
675,
|
| 870 |
+
821,
|
| 871 |
+
705
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "equation",
|
| 877 |
+
"img_path": "images/d65c9f481f5cb9b2a12c0df6b5b8a9420c2214d472f0b5ede89e07d85852a305.jpg",
|
| 878 |
+
"text": "$$\n\\omega _ { h } ^ { k } \\gets \\underset { \\omega \\in \\mathbb { R } ^ { d } } { \\operatorname { a r g m i n } } \\sum _ { \\tau = 1 } ^ { k - 1 } \\big ( r _ { h } ^ { \\tau } + V _ { h + 1 } ^ { \\tau } ( s _ { h + 1 } ^ { \\tau } ) - \\omega ^ { \\top } \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) \\big ) ^ { 2 } + \\lambda \\| \\omega \\| _ { 2 } ^ { 2 } + L _ { h } ^ { k } ( \\omega ) , h = H , \\ldots , 1 ,\n$$",
|
| 879 |
+
"text_format": "latex",
|
| 880 |
+
"bbox": [
|
| 881 |
+
192,
|
| 882 |
+
708,
|
| 883 |
+
805,
|
| 884 |
+
752
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 6
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "where we set $V _ { H + 1 } ^ { k } = 0$ for all $k \\in [ K ]$ and $V _ { h + 1 } ^ { \\tau }$ is defined in Line 7 of Algorithm 1 for all $( \\tau , h ) \\in [ K ] \\times [ H - 1 ]$ . Here $k$ is the index of episode, $\\lambda > 0$ is a tuning parameter, and $L _ { h } ^ { k }$ is a regularizer, which is constructed based on the confounded observational data. More specifically, we define ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
173,
|
| 893 |
+
771,
|
| 894 |
+
825,
|
| 895 |
+
832
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 6
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "equation",
|
| 901 |
+
"img_path": "images/1e1463ab472f1fe08bcfd47b5a6d82ee6a1a4f9621ea4be0058f53a1b36a86a8.jpg",
|
| 902 |
+
"text": "$$\nL _ { h } ^ { k } ( \\omega ) = \\sum _ { i = 1 } ^ { n } \\bigl ( r _ { h } ^ { i } + V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } ) - \\omega ^ { \\top } \\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \\bigr ) ^ { 2 } , \\quad \\forall ( k , h ) \\in [ K ] \\times [ H ] ,\n$$",
|
| 903 |
+
"text_format": "latex",
|
| 904 |
+
"bbox": [
|
| 905 |
+
215,
|
| 906 |
+
833,
|
| 907 |
+
746,
|
| 908 |
+
876
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 6
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "which corresponds to the least-squares loss for regressing $r _ { h } ^ { i } + V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } )$ against $\\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } )$ for all $i \\in [ n ]$ . Here $\\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \\} _ { ( i , h ) \\in [ n ] \\times [ H ] }$ are the confounded observational data, where $u _ { h } ^ { i } \\sim \\widetilde { \\mathcal { P } } _ { h } ( \\cdot | s _ { h } ^ { i } )$ , $s _ { h + 1 } ^ { i } \\sim \\mathcal { P } _ { h } \\big ( \\cdot \\mid s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } \\big )$ , and $a _ { h } ^ { i } \\sim \\nu _ { h } ( \\cdot \\mid s _ { h } ^ { i } , w _ { h } ^ { i } )$ with $\\nu = \\{ \\nu _ { h } \\} _ { h \\in [ H ] }$ being the behavior policy. Here recall that, with a slight abuse of notation, we write $\\mathbb { P } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } , u _ { h } )$ as $\\mathcal { P } _ { h } ( s _ { h + 1 } \\mid s _ { h } , a _ { h } , u _ { h } )$ and $\\mathbb { P } ( u _ { h } \\mid s _ { h } )$ as $\\mathcal { \\widetilde { P } } _ { h } ( u _ { h } \\vert s _ { h } )$ , since they are induced by the SCM defined in §2. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
174,
|
| 917 |
+
878,
|
| 918 |
+
823,
|
| 919 |
+
915
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 6
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
88,
|
| 929 |
+
826,
|
| 930 |
+
152
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 7
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "The update in (3.7) takes the following explicit form, ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
174,
|
| 939 |
+
156,
|
| 940 |
+
522,
|
| 941 |
+
172
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 7
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "equation",
|
| 947 |
+
"img_path": "images/8462f13d3c79f88b8c48d3e995a4fc53894bbdd733d1629a3a796c0480e32225.jpg",
|
| 948 |
+
"text": "$$\n\\begin{array} { r l } & { \\omega _ { h } ^ { k } \\gets ( \\Lambda _ { h } ^ { k } ) ^ { - 1 } \\Bigg ( \\displaystyle \\sum _ { \\tau = 1 } ^ { k - 1 } \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) \\cdot \\big ( V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { \\tau } ) + r _ { h } ^ { \\tau } \\big ) } \\\\ & { \\qquad + \\displaystyle \\sum _ { i = 1 } ^ { n } \\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \\cdot \\big ( V _ { h + 1 } ^ { k } ( s _ { h + 1 } ^ { i } ) + r _ { h } ^ { i } \\big ) \\Bigg ) , } \\end{array}\n$$",
|
| 949 |
+
"text_format": "latex",
|
| 950 |
+
"bbox": [
|
| 951 |
+
276,
|
| 952 |
+
179,
|
| 953 |
+
722,
|
| 954 |
+
266
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 7
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "where ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
173,
|
| 963 |
+
272,
|
| 964 |
+
217,
|
| 965 |
+
285
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 7
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "equation",
|
| 971 |
+
"img_path": "images/2e525db580e7bf8a223928427fe6d5be53ee99784e348c11e0e79203219864a0.jpg",
|
| 972 |
+
"text": "$$\n\\Lambda _ { h } ^ { k } = \\sum _ { \\tau = 1 } ^ { k - 1 } \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) ^ { \\top } + \\sum _ { i = 1 } ^ { n } \\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) ^ { \\top } + \\lambda I .\n$$",
|
| 973 |
+
"text_format": "latex",
|
| 974 |
+
"bbox": [
|
| 975 |
+
218,
|
| 976 |
+
291,
|
| 977 |
+
740,
|
| 978 |
+
334
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 7
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Uncertainty Quantification. We now construct the UCB $\\Gamma _ { h } ^ { k } ( \\cdot , \\cdot )$ of the point estimator $\\psi _ { h } ( \\cdot , \\cdot ) ^ { \\top } \\omega _ { h } ^ { k }$ obtained from (3.9), which encourages the exploration of the less visited state-action pairs. To this end, we employ the following notion of information gain to motivate the UCB, ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
348,
|
| 988 |
+
823,
|
| 989 |
+
392
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "equation",
|
| 995 |
+
"img_path": "images/189c807a993e11ca4039e04c060fabb9f9e57a0d42c41a2df64a2d68e2152e21.jpg",
|
| 996 |
+
"text": "$$\n\\Gamma _ { h } ^ { k } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\propto H ( \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } ) - H \\big ( \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } \\cup \\{ ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\} \\big ) ,\n$$",
|
| 997 |
+
"text_format": "latex",
|
| 998 |
+
"bbox": [
|
| 999 |
+
303,
|
| 1000 |
+
398,
|
| 1001 |
+
691,
|
| 1002 |
+
419
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 7
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "where $H ( \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } )$ is the differential entropy of the random variable $\\omega _ { h } ^ { k }$ given the data $\\xi _ { k - 1 }$ . In particular, $\\ddot { \\xi } _ { k - 1 } ~ = ~ \\{ \\big ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } , r _ { h } ^ { \\tau } \\big ) \\} _ { ( \\tau , h ) \\in [ k - 1 ] \\times [ H ] } \\cup \\big \\{ \\big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \\big ) \\big \\} _ { ( i , h ) \\in [ n ] \\times [ H ] }$ consists of the confounded observational data and the interventional data up to the $\\left( k - 1 \\right)$ -th episode. However, it is challenging to characterize the distribution of $\\omega _ { h } ^ { k }$ . To this end, we consider a Bayesian counterpart of the confounded MDP, where the prior of $\\omega _ { h } ^ { k }$ is $N ( 0 , I / \\lambda )$ and the residual of the regression problem in (3.7) is $N ( 0 , 1 )$ . In such a “parallel” confounded MDP, the posterior of $\\omega _ { h } ^ { k }$ follows $N ( \\mu _ { k , h } , ( \\Lambda _ { h } ^ { k } ) ^ { - 1 } )$ , where $\\Lambda _ { h } ^ { k }$ is defined in (3.10) and $\\mu _ { k , h }$ coincides with the right-hand side of (3.9). Moreover, it holds for all $( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\in \\mathcal { S } \\times \\mathcal { A }$ that ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
173,
|
| 1011 |
+
426,
|
| 1012 |
+
826,
|
| 1013 |
+
551
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 7
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "equation",
|
| 1019 |
+
"img_path": "images/f68bfebcc9a1a30f964126981d1b7792b1239c770379f8cedc8935cb4aa9df30.jpg",
|
| 1020 |
+
"text": "$$\n\\begin{array} { r l } & { H ( \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } ) = 1 / 2 \\cdot \\log \\operatorname* { d e t } \\bigl ( ( 2 \\pi e ) ^ { d } \\cdot ( \\Lambda _ { h } ^ { k } ) ^ { - 1 } \\bigr ) , } \\\\ & { H \\bigl ( \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } \\cup \\{ ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\} \\bigr ) = 1 / 2 \\cdot \\log \\operatorname* { d e t } \\Bigl ( ( 2 \\pi e ) ^ { d } \\cdot \\bigl ( \\Lambda _ { h } ^ { k } + \\psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) ^ { \\top } \\bigr ) ^ { - 1 } \\Bigr ) . } \\end{array}\n$$",
|
| 1021 |
+
"text_format": "latex",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
197,
|
| 1024 |
+
556,
|
| 1025 |
+
794,
|
| 1026 |
+
606
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 7
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Correspondingly, we employ the following UCB, which instantiates (3.11), that is, ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
174,
|
| 1035 |
+
611,
|
| 1036 |
+
715,
|
| 1037 |
+
627
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 7
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "equation",
|
| 1043 |
+
"img_path": "images/481eebe3f789e03295bf20f2b0dcb79112ae4b052985e502458bb7aec2c7f22b.jpg",
|
| 1044 |
+
"text": "$$\n\\Gamma _ { h } ^ { k } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) = \\beta \\cdot \\Big ( \\log \\operatorname* { d e t } \\big ( \\Lambda _ { h } ^ { k } + \\psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\psi _ { h } ( s _ { h } ^ { k } , a _ { h } ^ { k } ) ^ { \\top } \\big ) - \\log \\operatorname* { d e t } ( \\Lambda _ { h } ^ { k } ) \\Big ) ^ { 1 / 2 }\n$$",
|
| 1045 |
+
"text_format": "latex",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
222,
|
| 1048 |
+
633,
|
| 1049 |
+
736,
|
| 1050 |
+
664
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 7
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "for all $( s _ { h } ^ { k } , a _ { h } ^ { k } ) \\ \\in \\ S \\times { \\mathcal { A } }$ . Here $\\beta > 0$ is a tuning parameter. We highlight that, although the information gain in (3.11) relies on the “parallel” confounded MDP, the UCB in (3.12), which is used in Line 5 of Algorithm 1, does not rely on the Bayesian perspective. Also, our analysis establishes the frequentist regret. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
671,
|
| 1060 |
+
826,
|
| 1061 |
+
728
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 7
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Regularization with Observational Data: A Bayesian Perspective. In the “parallel” confounded MDP, it holds that ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
733,
|
| 1071 |
+
825,
|
| 1072 |
+
763
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 7
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "equation",
|
| 1078 |
+
"img_path": "images/994e4219bdef564248594be4ae72dbec81da8c0f7ebf8889fbf98279250036de.jpg",
|
| 1079 |
+
"text": "$$\n\\omega _ { h } ^ { k } \\sim N ( 0 , I / \\lambda ) , \\quad \\omega _ { h } ^ { k } \\mid \\xi _ { 0 } \\sim N \\big ( \\mu _ { 1 , h } , ( \\Lambda _ { h } ^ { 1 } ) ^ { - 1 } \\big ) , \\quad \\omega _ { h } ^ { k } \\mid \\xi _ { k - 1 } \\sim N \\big ( \\mu _ { k , h } , ( \\Lambda _ { h } ^ { k } ) ^ { - 1 } \\big ) ,\n$$",
|
| 1080 |
+
"text_format": "latex",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
227,
|
| 1083 |
+
767,
|
| 1084 |
+
769,
|
| 1085 |
+
787
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 7
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "where $\\mu _ { k , h }$ coincides with the right-hand side of (3.9) and $\\mu _ { 1 , h }$ is defined by setting $k = 1$ in $\\mu _ { k , h }$ . Here $\\xi _ { 0 } = \\{ \\big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \\big ) \\} _ { ( i , h ) \\in [ n ] \\times [ H ] }$ are the confounded observational data. Hence, the regularizer $L _ { h } ^ { k }$ in (3.8) corresponds to using $\\omega _ { h } ^ { k } \\mid \\xi _ { 0 }$ as the prior for the Bayesian regression problem given only the interventional data $\\xi _ { k - 1 } \\setminus \\xi _ { 0 } = \\{ ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } , r _ { h } ^ { \\tau } ) \\} _ { ( \\tau , h ) \\in [ k - 1 ] \\times [ H ] } .$ . ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
173,
|
| 1094 |
+
794,
|
| 1095 |
+
825,
|
| 1096 |
+
857
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 7
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "3.2 Theory ",
|
| 1103 |
+
"text_level": 1,
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
173,
|
| 1106 |
+
871,
|
| 1107 |
+
264,
|
| 1108 |
+
886
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 7
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "The following theorem characterizes the regret of DOVI, which is defined in (2.3). ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
173,
|
| 1117 |
+
896,
|
| 1118 |
+
714,
|
| 1119 |
+
912
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 7
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Theorem 3.5 (Regret of DOVI). Let $\\beta = C d H \\sqrt { \\log ( d ( T + n H ) / \\zeta ) }$ and $\\lambda = 1$ , where $C > 0$ and $\\zeta \\in ( 0 , 1 ]$ are absolute constants. Under Assumptions 3.1 and 3.3, it holds with probability at least $1 - 5 \\zeta / 2$ that ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
173,
|
| 1128 |
+
89,
|
| 1129 |
+
825,
|
| 1130 |
+
133
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 8
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "equation",
|
| 1136 |
+
"img_path": "images/b82b627fde2c397c2b10446ea970c2a3725e9791eacad3503fd29412bf5a587e.jpg",
|
| 1137 |
+
"text": "$$\n\\mathrm { R e g r e t } ( T ) \\le C ^ { \\prime } \\cdot \\Delta _ { H } \\cdot \\sqrt { d ^ { 3 } H ^ { 3 } T } \\cdot \\sqrt { \\log \\left( d ( T + n H ) / \\zeta \\right) } ,\n$$",
|
| 1138 |
+
"text_format": "latex",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
303,
|
| 1141 |
+
142,
|
| 1142 |
+
691,
|
| 1143 |
+
170
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 8
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "where $C ^ { \\prime } > 0$ is an absolute constant and ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
176,
|
| 1152 |
+
179,
|
| 1153 |
+
446,
|
| 1154 |
+
194
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 8
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "equation",
|
| 1160 |
+
"img_path": "images/51177b65c88dd97314c6231a832f5ffcf96cba9ffa6b4d70beaefce6af3ae24a.jpg",
|
| 1161 |
+
"text": "$$\n\\Delta _ { H } = { \\frac { 1 } { \\sqrt { d H ^ { 2 } } } } \\sum _ { h = 1 } ^ { H } \\bigl ( \\log \\operatorname* { d e t } ( \\Lambda _ { h } ^ { K + 1 } ) - \\log \\operatorname* { d e t } ( \\Lambda _ { h } ^ { 1 } ) \\bigr ) ^ { 1 / 2 } .\n$$",
|
| 1162 |
+
"text_format": "latex",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
315,
|
| 1165 |
+
200,
|
| 1166 |
+
681,
|
| 1167 |
+
244
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 8
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Proof. See $\\mathrm { \\ S F } . 3$ for a detailed proof. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
174,
|
| 1176 |
+
263,
|
| 1177 |
+
413,
|
| 1178 |
+
279
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 8
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Note that $\\Lambda _ { h } ^ { K + 1 } \\preceq ( n + K + \\lambda ) I$ and $\\Lambda _ { h } ^ { 1 } \\succeq \\lambda I$ for all $h \\in [ H ]$ . Hence, it holds that √ $\\Delta _ { H } =$ $\\mathcal { O } ( \\sqrt { \\log ( n + K + 1 ) } )$ in the worst case. Thus, the regret of DOVI is $\\mathcal { O } ( \\sqrt { d ^ { 3 } H ^ { 3 } T } )$ up to logarithmic factors, which is optimal in the total number of steps $T$ if we only consider the online setting. However, $\\Delta _ { H }$ is possibly much smaller than $\\mathcal { O } ( \\sqrt { \\log ( n + K + 1 ) } )$ , depending on the amount of information carried over by the confounded observational data from the offline setting, which is quantified in the following. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
173,
|
| 1187 |
+
299,
|
| 1188 |
+
825,
|
| 1189 |
+
392
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 8
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Interpretation of $\\Delta _ { H }$ : An Information-Theoretic Perspective. Let $\\omega _ { h } ^ { * }$ be the parameter of the globally optimal action-value function $Q _ { h } ^ { * }$ , which corresponds to $\\pi ^ { * }$ in (2.3). Recall that we denote by $\\xi _ { 0 }$ and $\\xi _ { K }$ the confounded observational data $\\{ ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } ) \\} _ { ( i , h ) \\in [ n ] \\times [ H ] }$ and the union $\\{ \\big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } , r _ { h } ^ { i } \\big ) \\} _ { ( i , h ) \\in [ n ] \\times [ H ] } \\cup \\{ \\big ( s _ { h } ^ { k } , \\underline { { a } } _ { h } ^ { k } , r _ { h } ^ { k } \\big ) \\} _ { ( k , h ) \\in [ K ] \\times [ H ] }$ of the confounded observational data and the interventional data up to the $K$ -th episode, respectively. We consider the aforementioned Bayesian counterpart of the confounded MDP, where the prior of $\\omega _ { h } ^ { * }$ is also $N ( 0 , I / \\lambda )$ . In such a “parallel” confounded MDP, we have ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
396,
|
| 1199 |
+
825,
|
| 1200 |
+
500
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 8
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "equation",
|
| 1206 |
+
"img_path": "images/49129cab931398ea35a2ba4607da169e4ea87a2936eba77511ba5631d40fc304.jpg",
|
| 1207 |
+
"text": "$$\n\\omega _ { h } ^ { * } \\sim N ( 0 , I / \\lambda ) , \\quad \\omega _ { h } ^ { * } \\mid \\xi _ { 0 } \\sim N \\big ( \\mu _ { 1 , h } ^ { * } , ( \\Lambda _ { h } ^ { 1 } ) ^ { - 1 } \\big ) , \\quad \\omega _ { h } ^ { * } \\mid \\xi _ { K } \\sim N \\big ( \\mu _ { K , h } ^ { * } , ( \\Lambda _ { h } ^ { K + 1 } ) ^ { - 1 } \\big ) ,\n$$",
|
| 1208 |
+
"text_format": "latex",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
199,
|
| 1211 |
+
507,
|
| 1212 |
+
756,
|
| 1213 |
+
529
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 8
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "where ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
174,
|
| 1222 |
+
535,
|
| 1223 |
+
217,
|
| 1224 |
+
549
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 8
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "equation",
|
| 1230 |
+
"img_path": "images/0f122a8ae933bd73b5713d4ddbf31f0c8f735cb2caf0fc2e02ecdfd7fb2642a7.jpg",
|
| 1231 |
+
"text": "$$\n\\begin{array} { r l } & { \\mu _ { 1 , h } ^ { * } = ( \\Lambda _ { h } ^ { 1 } ) ^ { - 1 } \\displaystyle \\sum _ { i = 1 } ^ { n } \\phi _ { h } ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } ) \\cdot \\left( V _ { h + 1 } ^ { * } ( s _ { h + 1 } ^ { i } ) + r _ { h } ^ { i } \\right) , } \\\\ & { \\mu _ { K , h } ^ { * } = ( \\Lambda _ { h } ^ { K + 1 } ) ^ { - 1 } \\bigg ( \\Lambda _ { h } ^ { 1 } \\mu _ { 1 , h } ^ { * } + \\displaystyle \\sum _ { \\tau = 1 } ^ { K } \\psi _ { h } ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } ) \\cdot \\left( V _ { h + 1 } ^ { * } ( s _ { h + 1 } ^ { \\tau } ) + r _ { h } ^ { \\tau } \\right) \\bigg ) . } \\end{array}\n$$",
|
| 1232 |
+
"text_format": "latex",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
264,
|
| 1235 |
+
556,
|
| 1236 |
+
733,
|
| 1237 |
+
642
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 8
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "It then holds for the right-hand side of (3.14) that ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
648,
|
| 1247 |
+
498,
|
| 1248 |
+
665
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 8
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "equation",
|
| 1254 |
+
"img_path": "images/3d71bb01073b4ccc29a099e99cdb27b1c6751c6d42a1a8d6983d67e07de043b1.jpg",
|
| 1255 |
+
"text": "$$\n1 / 2 \\cdot \\log \\operatorname* { d e t } ( \\Lambda _ { h } ^ { K + 1 } ) - 1 / 2 \\cdot \\log \\operatorname* { d e t } ( \\Lambda _ { h } ^ { 1 } ) = H ( \\omega _ { h } ^ { * } \\mid \\xi _ { 0 } ) - H ( \\omega _ { h } ^ { * } \\mid \\xi _ { K } ) .\n$$",
|
| 1256 |
+
"text_format": "latex",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
264,
|
| 1259 |
+
672,
|
| 1260 |
+
732,
|
| 1261 |
+
693
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 8
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "The left-hand side of (3.16) characterizes the information gain of intervention in the online setting given the confounded observational data in the offline setting. In other words, if the confounded observational data are sufficiently informative upon the backdoor adjustment, then $\\Delta _ { H }$ is small, which implies that the regret is small. More specifically, the matrices $( \\Lambda _ { h } ^ { 1 } ) ^ { - 1 }$ and $( \\Lambda _ { h } ^ { K + 1 } ) ^ { - 1 }$ defined in (3.10) characterize the ellipsoidal confidence sets given $\\xi _ { 0 }$ and $\\xi _ { K }$ , respectively. If the confounded observational data are sufficiently informative upon the backdoor adjustment, $\\Lambda _ { h } ^ { K + 1 }$ is close to $\\Lambda _ { h } ^ { 1 }$ . To illustrate, let $\\{ \\psi _ { h } \\big ( s _ { h } ^ { \\tau } , a _ { h } ^ { \\tau } \\big ) \\} _ { ( \\tau , h ) \\in [ K ] \\times [ H ] }$ and $\\{ \\phi _ { h } \\big ( s _ { h } ^ { i } , a _ { h } ^ { i } , u _ { h } ^ { i } \\big ) \\} _ { ( i , h ) \\in [ n ] \\times [ H ] }$ be sampled uniformly at random from the canonical basis $\\{ e _ { \\ell } \\} _ { \\ell \\in [ d ] }$ of $\\mathbb { R } ^ { d }$ . It then holds that $\\Lambda _ { h } ^ { K + 1 } \\approx ( K + n ) I / d + \\lambda I$ and $\\Lambda _ { h } ^ { 1 } \\approx n I / d + \\lambda I$ . Hence, for $\\lambda = 1$ and sufficiently large $n$ and $K$ , we have $\\Delta _ { H } = \\mathcal { O } ( \\sqrt { \\log ( 1 + K / ( n + d ) ) } ) = \\mathcal { O } ( \\sqrt { K / ( n + d ) } )$ . For example, for $n = \\Omega ( K ^ { 2 } )$ , it holds that $\\Delta _ { H } = \\mathcal { O } ( n ^ { - 1 / 2 } )$ , which implies that the regret of DOVI is $\\mathcal { O } ( n ^ { - 1 / 2 } \\cdot \\sqrt { d ^ { 3 } H ^ { 3 } T } )$ . In other words, if the confounded observational data are sufficiently informative upon the backdoor adjustment, the regret of DOVI can be arbitrarily small given a sufficiently large sample size $n$ of the confounded observational data, which is often the case in practice [8, 9, 21, 22, 29]. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
173,
|
| 1270 |
+
699,
|
| 1271 |
+
825,
|
| 1272 |
+
912
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 8
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "4 Conclusion ",
|
| 1279 |
+
"text_level": 1,
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
174,
|
| 1282 |
+
89,
|
| 1283 |
+
299,
|
| 1284 |
+
106
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 9
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "In this paper, we propose the deconfounded optimistic value iteration (DOVI) algorithm and its variant $\\bar { \\mathrm { D O V I } } ^ { + }$ , which incorporate the confounded observational data to the online reinforcement learning in a provably efficient manner. DOVI and $\\mathrm { D O V I ^ { + } }$ explicitly adjust for the confounding bias in the observational data via the backdoor and frontdoor adjustments, respectively. In both cases, such adjustments allow us to construct the bonus based on a notion of information gain, which considers the amount of information acquired from the offline dataset. We further conduct regret analysis of DOVI and $\\mathrm { D O V I ^ { + } }$ . Our analysis suggests that practitioners can tackle the confounding issue in the offline dataset by estimating the counterfactual reward for value function estimations, given that a proper adjustment such as the backdoor or frontdoor adjustment is available. In the case of backdoor and frontdoor adjustment, we prove that the regret of DOVI is smaller than the optimal regret achievable in the pure online setting when the confounded observational data are informative upon the adjustments, suggesting that one can exploit the confounded observational data in reinforcement learning upon proper adjustments. In our future study, we wish to incorporate proxy variables that are native to MDPs for the adjustments of the offline dataset, such as the variables exploited by [4, 24, 40]. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
174,
|
| 1293 |
+
121,
|
| 1294 |
+
825,
|
| 1295 |
+
327
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 9
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "Acknolodgements ",
|
| 1302 |
+
"text_level": 1,
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
174,
|
| 1305 |
+
347,
|
| 1306 |
+
325,
|
| 1307 |
+
363
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 9
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Zhaoran Wang acknowledges National Science Foundation (Awards 2048075, 2008827, 2015568, 1934931), Simons Institute (Theory of Reinforcement Learning), Amazon, J.P. Morgan, and Two Sigma for their supports. Zhuoran Yang acknowledges Simons Institute (Theory of Reinforcement Learning). The authors also thank the anonymous reviewers, whose invaluable suggestions help the authors to improve the paper. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
174,
|
| 1316 |
+
377,
|
| 1317 |
+
825,
|
| 1318 |
+
446
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 9
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "References ",
|
| 1325 |
+
"text_level": 1,
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
174,
|
| 1328 |
+
465,
|
| 1329 |
+
266,
|
| 1330 |
+
482
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 9
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "[1] Abbasi-Yadkori, Y., Pal, D. and Szepesv ´ ari, C. (2011). Improved algorithms for linear stochas- ´ tic bandits. In Advances in Neural Information Processing Systems. \n[2] Azar, M. G., Osband, I. and Munos, R. (2017). Minimax regret bounds for reinforcement learning. In International Conference on Machine Learning. \n[3] Balke, A. and Pearl, J. (2013). Counterfactuals and policy analysis in structural models. arXiv preprint arXiv:1302.4929. \n[4] Bennett, A., Kallus, N., Li, L. and Mousavi, A. (2021). Off-policy evaluation in infinitehorizon reinforcement learning with latent confounders. In International Conference on Artificial Intelligence and Statistics. \n[5] Bradtke, S. J. and Barto, A. G. (1996). Linear least-squares algorithms for temporal difference learning. Machine Learning, 22 33–57. \n[6] Buesing, L., Weber, T., Zwols, Y., Racaniere, S., Guez, A., Lespiau, J.-B. and Heess, N. (2018). Woulda, coulda, shoulda: Counterfactually-guided policy search. arXiv preprint arXiv:1811.06272. \n[7] Cai, Q., Yang, Z., Jin, C. and Wang, Z. (2019). Provably efficient exploration in policy optimization. arXiv preprint arXiv:1912.05830. \n[8] Chakraborty, B. and Murphy, S. A. (2014). Dynamic treatment regimes. Annual Review of Statistics and Its Application, 1 447–464. \n[9] de Haan, P., Jayaraman, D. and Levine, S. (2019). Causal confusion in imitation learning. In Advances in Neural Information Processing Systems. \n[10] D´ıaz, I. and Hejazi, N. (2019). Causal mediation analysis for stochastic interventions. arXiv preprint arXiv:1901.02776. \n[11] Forney, A., Pearl, J. and Bareinboim, E. (2017). Counterfactual data-fusion for online reinforcement learners. In International Conference on Machine Learning. \n[12] Hallak, A., Di Castro, D. and Mannor, S. (2015). Contextual Markov decision processes. arXiv preprint arXiv:1502.02259. \n[13] Hessel, M., Modayil, J., Van Hasselt, H., Schaul, T., Ostrovski, G., Dabney, W., Horgan, D., Piot, B., Azar, M. and Silver, D. (2018). Rainbow: Combining improvements in deep reinforcement learning. In AAAI Conference on Artificial Intelligence. \n[14] Jaksch, T., Ortner, R. and Auer, P. (2010). Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11 1563–1600. \n[15] Jin, C., Allen-Zhu, Z., Bubeck, S. and Jordan, M. I. (2018). Is Q-learning provably efficient? In Advances in Neural Information Processing Systems. \n[16] Jin, C., Yang, Z., Wang, Z. and Jordan, M. I. (2019). Provably efficient reinforcement learning with linear function approximation. arXiv preprint arXiv:1907.05388. \n[17] Kallus, N. and Zhou, A. (2018). Confounding-robust policy improvement. In Advances in Neural Information Processing Systems. \n[18] Kallus, N. and Zhou, A. (2018). Policy evaluation and optimization with continuous treatments. arXiv preprint arXiv:1802.06037. \n[19] Kober, J., Bagnell, J. A. and Peters, J. (2013). Reinforcement learning in robotics: Asurvey. International Journal of Robotics Research, 32 1238–1274. \n[20] Lattimore, F., Lattimore, T. and Reid, M. D. (2016). Causal bandits: Learning good interventions via causal inference. In Advances in Neural Information Processing Systems. \n[21] Levine, S., Kumar, A., Tucker, G. and Fu, J. (2020). Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643. \n[22] Li, C., Chan, S. H. and Chen, Y.-T. (2020). Who make drivers stop? Towards drivercentric risk assessment: Risk object identification via causal inference. arXiv preprint arXiv:2003.02425. \n[23] Li, J., Monroe, W., Ritter, A., Galley, M., Gao, J. and Jurafsky, D. (2016). Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541. \n[24] Liao, L., Fu, Z., Yang, Z., Kolar, M. and Wang, Z. (2021). Instrumental variable value iteration for causal offline reinforcement learning. arXiv preprint arXiv:2102.09907. \n[25] Lu, C., Scholkopf, B. and Hern ¨ andez-Lobato, J. M. (2018). Deconfounding reinforcement ´ learning in observational settings. arXiv preprint arXiv:1812.10576. \n[26] Lu, Y., Meisami, A., Tewari, A. and Yan, Z. (2019). Regret analysis of causal bandit problems. arXiv preprint arXiv:1910.04938. \n[27] Manski, C. F. (1990). Nonparametric bounds on treatment effects. American Economic Review, 80 319–323. \n[28] Munoz, I. D. and van der Laan, M. (2012). Population intervention causal effects based on ˜ stochastic interventions. Biometrics, 68 541–549. \n[29] Murphy, S. A. (2003). Optimal dynamic treatment regimes. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 65 331–355. \n[30] Namkoong, H., Keramati, R., Yadlowsky, S. and Brunskill, E. (2020). Off-policy policy evaluation for sequential decisions under unobserved confounding. arXiv preprint arXiv:2003.05623. \n[31] Osband, I., Van Roy, B. and Wen, Z. (2014). Generalization and exploration via randomized value functions. arXiv preprint arXiv:1402.0635. \n[32] Pearl, J. (2009). Causality. Cambridge university press. \n[33] Peters, J., Janzing, D. and Scholkopf, B. (2017). ¨ Elements of Causal Inference: Foundations and Learning Algorithms. MIT press. \n[34] Sen, R., Shanmugam, K., Dimakis, A. G. and Shakkottai, S. (2017). Identifying best interventions through online importance sampling. In International Conference on Machine Learning. \n[35] Shang, W., Yu, Y., Li, Q., Qin, Z., Meng, Y. and Ye, J. (2019). Environment reconstruction with hidden confounders for reinforcement learning based recommendation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. \n[36] Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., Van Den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M. et al. (2016). Mastering the game of Go with deep neural networks and tree search. Nature, 529 484. \n[37] Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A. et al. (2017). Mastering the game of Go without human knowledge. Nature, 550 354. \n[38] Tan, Z. (2006). A distributional approach for causal inference using propensity scores. Journal of the American Statistical Association, 101 1619–1637. \n[39] Tennenholtz, G., Mannor, S. and Shalit, U. (2019). Off-policy evaluation in partially observable environments. arXiv preprint arXiv:1909.03739. \n[40] Tennenholtz, G., Shalit, U. and Mannor, S. (2020). Off-policy evaluation in partially observable environments. In Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34. \n[41] Vershynin, R. (2010). Introduction to the non-asymptotic analysis of random matrices. arXiv preprint arXiv:1011.3027. \n[42] Yang, L. and Wang, M. (2019). Sample-optimal parametric Q-learning using linearly additive features. In International Conference on Machine Learning. \n[43] Yang, L. F. and Wang, M. (2019). Reinforcement leaning in feature space: Matrix bandit, kernels, and regret bound. arXiv preprint arXiv:1905.10389. \n[44] Zhang, J. and Bareinboim, E. (2017). Transfer learning in multi-armed bandit: A causal approach. In Autonomous Agents and Multi-Agent Systems. \n[45] Zhang, J. and Bareinboim, E. (2019). Near-optimal reinforcement learning in dynamic treatment regimes. In Advances in Neural Information Processing Systems. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
179,
|
| 1339 |
+
489,
|
| 1340 |
+
826,
|
| 1341 |
+
914
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 9
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
171,
|
| 1350 |
+
60,
|
| 1351 |
+
828,
|
| 1352 |
+
912
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
171,
|
| 1361 |
+
87,
|
| 1362 |
+
828,
|
| 1363 |
+
622
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 11
|
| 1366 |
+
}
|
| 1367 |
+
]
|
parse/train/tUeeRzMXJZ/tUeeRzMXJZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/tUeeRzMXJZ/tUeeRzMXJZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|