ZHANGYUXUAN-zR commited on
Commit
cf683bf
·
verified ·
1 Parent(s): 51169ad

Add files using upload-large-folder tool

Browse files
parse/train/48uzkHOKMfz/48uzkHOKMfz.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Accelerating Robotic Reinforcement Learning via Parameterized Action Primitives
2
+
3
+ Murtaza Dalal Deepak Pathak† Ruslan Salakhutdinov† Carnegie Mellon University {mdalal,dpathak,rsalakhu} @ cs.cmu.edu
4
+
5
+ # Abstract
6
+
7
+ Despite the potential of reinforcement learning (RL) for building general-purpose robotic systems, training RL agents to solve robotics tasks still remains challenging due to the difficulty of exploration in purely continuous action spaces. Addressing this problem is an active area of research with the majority of focus on improving RL methods via better optimization or more efficient exploration. An alternate but important component to consider improving is the interface of the RL algorithm with the robot. In this work, we manually specify a library of robot action primitives (RAPS), parameterized with arguments that are learned by an RL policy. These parameterized primitives are expressive, simple to implement, enable efficient exploration and can be transferred across robots, tasks and environments. We perform a thorough empirical study across challenging tasks in three distinct domains with image input and a sparse terminal reward. We find that our simple change to the action interface substantially improves both the learning efficiency and task performance irrespective of the underlying RL algorithm, significantly outperforming prior methods which learn skills from offline expert data. Code and videos at https://mihdalal.github.io/raps/
8
+
9
+ # 1 Introduction
10
+
11
+ Meaningful exploration remains a challenge for robotic reinforcement learning systems. For example, in the manipulation tasks shown in Figure 1, useful exploration might correspond to picking up and placing objects in different configurations. However, random motions in the robot’s joint space will rarely, if ever, result in the robot touching the objects, let alone pick them up. Recent work, on the other hand, has demonstrated remarkable success in training RL agents to solve manipulation tasks [4, 24, 26] by sidestepping the exploration problem with careful engineering. Levine et al. [26] use densely shaped rewards, while Kalashnikov et al. [24] leverage a large scale robot infrastructure and Andrychowicz et al. [4] require training in simulation with engineered reward functions in order to transfer to the real world. In general, RL methods can be prohibitively data inefficient, require careful reward development to learn, and struggle to scale to more complex tasks without the aid of human demonstrations or carefully designed simulation setups.
12
+
13
+ An alternative view on why RL is difficult for robotics is that it requires the agent to learn both what to do in order to achieve the task and how to control the robot to execute the desired motions. For example, in the kitchen environment featured at the bottom of Figure 1, the agent would have to learn how to accurately manipulate the arm to reach different locations as well as how to grasp different objects, while also ascertaining what object it has to grasp and where to move it. Considered independently, the problems of controlling a robot arm to execute particular motions and figuring out the desired task from scalar reward feedback, then achieving it, are non-trivial. Jointly learning to solve both problems makes the task significantly more difficult.
14
+
15
+ ![](images/e614f68926084e42358f98f2dd7a1b4cc8070d2d0225070eba314dc4bd22147c.jpg)
16
+ Figure 1: Visual depiction of RAPS, outlining the process of how a primitive is executed on a robot. Given an input image, the policy outputs a distribution over primitives and a distribution over all the arguments of all primitives, samples a primitive and selects its corresponding argument distribution parameters, indexed by which primitive was chosen, samples an argument from that distribution and executes a controller in a feedback loop on the robot for a fixed number of timesteps $( H _ { k } )$ to reach a new state. We show an example sequence of executing the lift primitive after having grasped the kettle in the Kitchen environment. The agent observes the initial (0) and final states $\boldsymbol { H _ { k } } )$ ) and receives a reward equal to the reward accumulated when executing the primitive. Below we visualize representative tasks from the three environment suites that we evaluate on.
17
+
18
+ In contrast to training RL agents on raw actions such as torques or delta positions, a common strategy is to decompose the agent action space into higher (i.e., what) and lower (i.e., how) level structures. A number of existing methods have focused on designing or learning this structure, from manually architecting and fine-tuning action hierarchies [14, 27, 32, 47], to organizing agent trajectories into distinct skills [3, 20, 41, 50] to more recent work on leveraging large offline datasets in order to learn skill libraries [29, 40]. While these methods have shown success in certain settings, many of them are either too sample inefficient, do not scale well to more complex domains, or lack generality due to dependence on task relevant data.
19
+
20
+ In this work, we investigate the following question: instead of learning low-level primitives, what if we were to design primitives with minimal human effort, enable their expressiveness by parameterizing them with arguments and learn to control them with a high-level policy? Such primitives have been studied extensively in task and motion planning (TAMP) literature [22] and implemented as parameterized actions [19] in RL. We apply primitive robot motions to redefine the policy-robot interface in the context of robotic reinforcement learning. These primitives include manually defined behaviors such as lift, push, top-grasp, and many others. The behavior of these primitives is parameterized by arguments that are the learned outputs of a policy network. For instance, top-grasp is parameterized by four scalar values: grasp position $\mathbf { \Phi } ( \mathbf { x } , \mathbf { y } )$ , how much to move down (z) and the degree to which the gripper should close. We call this application of parameterized behaviors, Robot Action Primitives for RL (RAPS). A crucial point to note is that these parameterized actions are easy to design, need only be defined once and can be re-used without modification across tasks.
21
+
22
+ The main contribution of this work is to support the effectiveness of RAPS via a thorough empirical evaluation across several dimensions:
23
+
24
+ • How do parameterized primitives compare to other forms of action parameterization? • How does RAPS compare to prior methods that learn skills from offline expert data? • Is RAPS agnostic to the underlying RL algorithm? • Can we stitch the primitives to perform multiple complex manipulation tasks in sequence? • Does RAPS accelerate exploration even in the absence of extrinsic rewards?
25
+
26
+ We investigate these questions across complex manipulation environments including Kitchen Suite, Metaworld and Robosuite domains. We find that a simple parameterized action based approach outperforms prior state-of-the-art by a significant margin across most of these settings2
27
+
28
+ # 2 Related Work
29
+
30
+ Higher Level Action and Policy Spaces in Robotics In robotics literature, decision making over primitive actions that execute well-defined behaviors has been explored in the context of task and motion planning [9, 22, 23, 43]. However, such methods are dependent on accurate state estimation pipelines to enable planning over the argument space of primitives. One advantage of using reinforcement learning methods instead is that the agent can learn to adjust its implicit state estimates through trial and error experience. Dynamic Movement Primitive and ensuing policy search approaches [11, 21, 25, 36, 37] leverage dynamical systems to learn flexible, parameterized skills, but are sensitive to hyper-parameter tuning and often limited to the behavior cloning regime. Neural Dynamic Policies [6] incorporate dynamical structure into neural network policies for RL, but evaluate in the state based regime with dense rewards, while we show that parameterized actions can enable RL agents to efficiently explore in sparse reward settings from image input.
31
+
32
+ Hierarchical RL and Skill Learning Enabling RL agents to act effectively over temporally extended horizons is a longstanding research goal in the field of hierarchical RL. Prior work introduced the options framework [45], which outlines how to leverage lower level policies as actions for a higher level policy. In this framework, parameterized action primitives can be viewed as a particular type of fixed option with an initiation set that corresponds to the arguments of the primitive. Prior work on options has focused on discovering [1, 12, 41] or fine-tuning options [5, 14, 27] in addition to learning higher level policies. Many of these methods have not been extended beyond carefully engineered state based settings. More recently, research has focused on extracting useful skills from large offline datasets of interaction data ranging from unstructured interaction data [49], play [28, 29] to demonstration data [2, 35, 39, 40, 44, 46, 53]. While these methods have been shown to be successful on certain tasks, the learned skills are only relevant for the environment they are trained on. New demonstration data must be collected to use learned skills for a new robot, a new task, or even a new camera viewpoint. Since RAPS uses manually specified primitives dependent only on the robot state, RAPS can re-use the same implementation details across robots, tasks and domains.
33
+
34
+ Parameterized Actions in RL The parameterized action Markov decision process (PAMDP) formalism was first introduced in Masson et al. [31], though there is a large body of earlier work in the area of hybrid discrete-continuous control, surveyed in [7, 8]. Most recent research on PAMDPs has focused on better aligning policy architectures and RL updates with the nature of parameterized actions and has largely been limited to state based domains [13, 51]. A number of papers in this area have focused on solving a simulated robot soccer domain modeled as either a single-agent [19, 31, 48] or multi-agent [15] problem. In this paper, we consider more realistic robotics tasks that involve interaction with and manipulation of common household objects. While prior work [42] has trained RL policies to select hand-designed behaviors for simultaneous execution, we instead train RL policies to leverage more expressive, parameterized behaviors to solve a wide variety of tasks. Closely related to this work is Chitnis et al. [10], which develops a specific architecture for training policies over parameterized actions from state input and sparse rewards in the context of bi-manual robotic manipulation. Our work is orthogonal in that we demonstrate that a higher level policy architecture is sufficient to solve a large suite of manipulation tasks from image input. We additionally note that there is concurrent work [34] that also applies engineered primitives in the context of RL, however, we consider learning from image input and sparse terminal rewards.
35
+
36
+ # 3 Robot Action Primitives in RL
37
+
38
+ To address the challenge of exploration and behavior learning in continuous action spaces, we decompose a desired task into the what (high level task) and the how (control motion). The what is handled by the environment-centric RL policy while the how is handled by a fixed, manually defined set of agent-centric primitives parameterized by continuous arguments. This enables the high level policy to reason about the task at a high level by choosing primitives and their arguments while leaving the low-level control to the parameterized actions themselves.
39
+
40
+ # 3.1 Background
41
+
42
+ Let the Markov decision process (MDP) be defined as $( S , A , \mathcal { R } ( s , a , s ^ { \prime } ) , \mathcal { T } ( s ^ { \prime } | s , a ) , p ( s _ { 0 } ) , \gamma , )$ in which $s$ is the set of true states, $\mathcal { A }$ is the set of possible actions, $\mathcal { R } ( s , a , s ^ { \prime } )$ is the reward function, $\mathcal { T } ( s ^ { \prime } | s , a )$ is the transition probability distribution, $p ( s _ { 0 } )$ defines the initial state distribution, and $\gamma$ is the discount factor. The agent executes actions in the environment using a policy $\pi ( a | s )$ with a corresponding trajectory distribution $p ( \tau = ( s _ { 0 } , a _ { 0 } , . . . a _ { t - 1 } , s _ { T } ) ) = p ( s _ { 0 } ) \Pi _ { t } \pi ( a _ { t } | s _ { t } ) \mathcal { T } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ . The goal of the RL agent is to maximize the expected sum of rewards with respect to the policy: $\begin{array} { r } { \mathbb { E } _ { s _ { 0 } , a _ { 0 } , \dots a _ { t - 1 } , s _ { T } , \sim p ( \tau ) } \mathsf { \bar { [ \sum _ { t } \gamma ^ { t } \mathcal { R } ( s _ { t } , a _ { t } ) ] } } } \end{array}$ . In the case of vision-based RL, the setup is now a partially observed Markov decision process (POMDP); we have access to the true state via image observations. In this case, we include an observation space $\mathcal { O }$ which corresponds to the set of visual observations that the environment may emit, an observation model $p ( o | s )$ which defines the probability of emission and policy $\pi ( a | o )$ which operates over observations. In this work, we consider various modifications to the action space $\mathcal { A }$ while keeping all other components of the MDP or POMDP the same.
43
+
44
+ # 3.2 Parameterized Action Primitives
45
+
46
+ We now describe the specific nature of our parameterized primitives and how they can be integrated into RL algorithms (see Figure 1 for an end-to-end visualization of the method). In a library of $K$ primitives, the $\mathbf { k }$ -th primitive is a function $f _ { k } ( s , \mathrm { a r g s } )$ that executes a controller $C _ { k }$ on a robot for a fixed horizon $H _ { k }$ , $s$ is the robot state and args is the value of the arguments passed to $f _ { k }$ . args is used to compute a target robot state $s ^ { * }$ and then $C _ { k }$ is used to drive $s$ to $s ^ { * }$ . A primitive dependent error metric $e _ { k } ( s , s ^ { * } )$ determines the trajectory $C _ { k }$ takes to reach $s ^ { * }$ . $C _ { k }$ is a general purpose state reaching controller, e.g. an end-effector or joint position controller; we assume access to such a controller for each robot and it is straightforward to define and tune if not provided. In this case, the same primitive implementation can be re-used across any robot. In this setup, the choice of controller, error metric and method to compute $s ^ { * }$ define the behavior of the primitive motion, how it uniquely forms a movement in space. We refer to Procedure 1 for a general outline of a parameterized primitive. To summarize, each skill is a feedback control loop with end-effector low level actions. The input arguments are used to define a target state to achieve and the primitive executes a loop to drive the error between the robot state and the target robot state to zero.
47
+
48
+ As an example, consider the “lifting“ primitive, which simply involves lifting the robot arm upward. For this action, args is the amount to lift the robot arm, e.g. by $2 0 \mathrm { c m } .$ ., the robot state for this primitive is the robot end-effector position, $\mathbf { k }$ is the index of the lifting primitive in the library, $C _ { k }$ is an end-effector controller, $e _ { k } ( s , s ^ { * } ) = s ^ { * } - s$ , and $H _ { k }$ is the end-effector controller horizon, which in our setting ranges from 100-300. The target position $s ^ { * }$ is computed as $s + [ 0 , 0$ , args]. $f$ moves the robot arm for $H _ { k }$ steps, driving $s$ towards $s ^ { * }$ . The other primitives are defined in a similar manner; see the appendix for a precise description of each primitive we define.
49
+
50
+ Robot action primitives are a function of the robot state, not the world state. The primitives function by reaching set points of the robot state as directed by the policy, hence they are agentcentric. This design makes primitives agnostic to camera view, visual distractors and even the underlying environment itself. The RL policy, on the other hand, is environment centric: it chooses the primitive and appropriate arguments based on environment observations in order to
51
+
52
+ # Procedure 1 Parameterized Action Primitive
53
+
54
+ Input: primitive dependent argument vector args, primitive index $k$ , robot state $s$
55
+ 1: compute $s ^ { * } ( \mathrm { a r g s } , s )$
56
+ 2: for $i = 1 , . . . , H _ { k }$ low-level steps do
57
+ 3: $e _ { i } = e _ { k } ( s _ { i } , s ^ { * } )$ $\triangleright$ compute state error
58
+ 4: $a _ { i } = C _ { k } ( e _ { i } , s _ { i } )$ . compute torques
59
+ 5: execute $a _ { i }$ on robot
60
+ 6: end for
61
+
62
+ best achieve the task. A key advantage of this decomposition is that the policy no longer has to learn how to move the robot and can focus directly on what it needs to do. Meanwhile, the low-level control need not be perfect because the policy can account for most discrepancies using the arguments.
63
+
64
+ One issue with using a fixed library of primitives is that it cannot define all possible robot motions. As a result, we include a dummy primitive that corresponds to the raw action space. The dummy primitive directly takes in a delta position and then tries to achieve it by taking a fixed number of steps. This does not entirely resolve the issue as the dummy primitive operates on the high level horizon for $H _ { k }$ steps when called. Since the primitive is given a fixed goal for $H _ { k }$ steps, it is less expressive than a feedback policy that could provide a changing argument at every low-level step. For example, if the task is to move in a circle, the dummy primitive with a fixed argument could not provide a target state that would directly result in the desired motion without resorting to a significant number of higher level actions, while a feedback policy could iteratively update the target state to produce a smooth motion in a circle. Therefore, it cannot execute every trajectory that a lower level policy could; however, the primitive library as a whole performs well in practice.
65
+
66
+ In order to integrate these parameterized actions into the RL setting, we modify the action space of a standard RL environment to involve two operations at each time step: (a) choose a primitive out of a fixed library (b) output its arguments. As in Chitnis et al. [10], the policy network outputs a distribution over one-hot vectors defining which primitive to use as well as a distribution over all of the arguments for all of the primitives, a design choice which enables the policy network to have a fixed output dimension. After the policy samples an action, the chosen parameterized action and its corresponding arguments are indexed from the action and passed to the environment. The environment selects the appropriate primitive function $f$ and executes the primitive on the robot with the appropriate arguments. After the primitive completes executing, the final observation and sum of intermediate rewards during the execution of the primitive are returned by the environment. We do so to ensure if the task is achieved mid primitive execution, the action is still labelled successful.
67
+
68
+ ![](images/efe765ee9a3b99303a143f68f7f6fecb4d21cfe9b47261f595516ad5f66408c4.jpg)
69
+ Figure 2: We visualize an execution of an RL agent trained to solve a cabinet opening task from sparse rewards using robot action primitives. At each time-step, we display the primitive chosen, the policy’s confidence in the action choice and the corresponding argument passed to the primitive in the bottom left corner.
70
+
71
+ We describe a concrete example to ground the description of our framework. If we have 10 primitives with 3 arguments each, the higher level policy network outputs 30 dimensional mean and standard deviation vectors from which we sample a 30 dimensional argument vector. It also outputs a 10 dimensional logit vector from which we sample a 10 dimensional one-hot vector. Therefore in total, our action space would be 40 dimensional. The environment takes in the 40 dimensional vector and selects the appropriate argument (3-dimensional vector) from the argument vector based on the one-hot vector over primitives and executes the corresponding primitive in the environment. Using this policy architecture and primitive execution format, we train standard RL agents to solve manipulation tasks from sparse rewards. See Figure 2 for a visualization of a full trajectory of a policy solving a hinge cabinet opening task in the Kitchen Suite with RAPS.
72
+
73
+ # 4 Experimental Setup
74
+
75
+ In order to perform a robust evaluation of robot action primitives and prior work, we select a set of challenging robotic control tasks, define our environmental setup, propose appropriate metrics for evaluating different action spaces, and summarize our baselines for comparison.
76
+
77
+ Tasks and Environments: We evaluate RAPS on three simulated domains: Metaworld [17], Kitchen [52] and Robosuite [54], containing 16 tasks with varying levels of difficulty, realism and task diversity (see the bottom half of Fig. 1). We use the Kitchen environment because it contains seven different subtasks within a single setting, contains human demonstration data useful for training learned skills and contains tasks that require chaining together up to four subtasks to solve. In particular, learning such temporally-extended behavior is challenging [2, 17, 35]. Next, we evaluate on the Metaworld benchmark suite due to its wide range of manipulation tasks and established presence in the RL community. We select a subset of tasks from Metaworld (see appendix) with different solution behaviors to robustly evaluate the impact of primitives on RL. Finally, one limitation of the two previous domains is that the underlying end-effector control is implemented via a simulation constraint as opposed to true position control by applying torques to the robot. In order to evaluate if primitives would scale to more realistic learning setups, we test on Robosuite, a benchmark of robotic manipulation tasks which emphasizes realistic simulation and control. We select the block lifting and door opening environments which have been demonstrated to be solvable in prior work [54]. We refer the reader to the appendix for a detailed description of each environment.
78
+
79
+ Sparse Reward and Image Observations We modify each task to use the environment success metric as a sparse reward which returns 1 when the task is achieved, and 0 otherwise. We do so in order to establish a more realistic and difficult exploration setting than dense rewards which require significant engineering effort and true state information to compute. Additionally, we plot all results against the mean task success rate since it is a directly interpretable measure of the agent’s performance. We run each method using visual input as we wish to bring our evaluation setting closer to real world setups. The higher level policy, primitives and baseline methods are not provided access to the world state, only camera observations and robot state depending on the action.
80
+
81
+ Evaluation Metrics One challenge when evaluating hierarchical action spaces such as RAPS alongside a variety of different learned skills and action parameterizations, is that of defining a fair and meaningful definition of sample efficiency. We could define one sample to be a forward pass through the RL policy. For low-level actions this is exactly the sample efficiency, for higher level actions this only measures how often the policy network makes decisions, which favors actions with a large number of low-level actions without regard for controller run-time cost, which can be significant. Alternatively, we could define one sample to be a single low-level action output by a low-level controller. This metric would accurately determine how often the robot itself acts in the world, but it can make high level actions appear deceptively inefficient. Higher level actions execute far fewer forward passes of the policy in each episode which can result in faster execution on a robot when operating over visual observations, a key point low-level sample efficiency fails to account for. We experimentally verify this point by running RAPS and raw actions on a real $\mathrm { x A r m } \ : 6$ robot with visual RL and finding that RAPS executes each trajectory $\mathbf { 3 2 x }$ times faster than raw actions. We additionally verify that RAPS is efficient with respect to low level steps in Figure 4.
82
+
83
+ To ensure fair comparison across methods, we instead propose to perform evaluations with respect to two metrics, namely, (a) Wall-clock Time: the amount of total time it takes to train the agent to solve the task, both interaction time and time spent updating the agent, and (b) Training Steps: the number of gradient steps taken with a fixed batch size. Wall clock time is not inherently tied to the action space and provides an interpretable number for how long it takes for the agent to learn the task. To ensure consistency, we evaluate all methods on a single RTX 2080 GPU with 10 CPUs and 50GB of memory. However, this metric is not sufficient since there are several possible factors that can influence wall clock time which can be difficult to disambiguate, such as the effect of external processes, low-level controller execution speed, and implementation dependent details. As a result, we additionally compare methods based on the number of training steps, a proxy for data efficiency. The number of network updates is only a function of the data; it is independent of the action space, machine and simulator, making it a non-transient metric for evaluation. The combination of the two metrics provides a holistic method of comparing the performance of different action spaces and skills operating on varying frequencies and horizons.
84
+
85
+ Baselines The simplest baseline we consider is the default action space of the environment, which we denote as Raw Actions. One way to improve upon the raw action space is to train a policy to output the parameters of the underlying controller alongside the actual input commands. This baseline, VICES [30], enables the agent to tune the controller automatically depending on the task. Alternatively, one can use unsupervised skill extraction to generate higher level actions which can be leveraged by downstream RL. We evaluate one such method, Dyn- $\mathbf { E }$ [49], which trains an observation and action representation from random policy data such that the subsequent state is predictable from the embeddings of the previous observation and action. A more data-driven approach to learning skills involves organizing demonstration data into a latent skill space. Since the dataset is guaranteed to contain meaningful behaviors, it is more likely that the extracted skills will be useful for downstream tasks. We compare against SPIRL [35], a method that ingests a demonstration dataset to train a fixed length skill VAE $z = e ( a _ { 1 : H } ) , a _ { 1 : H } = d ( z )$ and prior over skills $p ( z | s )$ , which is used to guide downstream RL. Additionally, we compare against PARROT [44], which trains an observation conditioned flow model on an offline dataset to map from the raw action space to a latent action space. In the next section, we demonstrate the performance of our RAPS against these methods across a diverse set of sparse reward manipulation tasks.
86
+
87
+ # 5 Experimental Evaluation of RAPS
88
+
89
+ We evaluate the efficacy of RAPS on three different settings: single task reinforcement learning across Kitchen, Metaworld and Robosuite, as well as hierarchical control and unsupervised exploration in the Kitchen environment. We observe across all evaluated settings, RAPS is robust, efficient and performant, in direct contrast to a wide variety of learned skills and action parameterizations.
90
+
91
+ ![](images/e879a3118ac1ababfff61db02ef69fab84f97cb4fa943473af4a79c126459e6b.jpg)
92
+ Figure 3: Comparison of various action parameterizations and RAPS across all three environment suites3using Dreamer as the underlying RL algorithm. RAPS (green), with sparse rewards, is able to significantly outperform all baselines, particularly on the more challenging tasks, even when they are augmented with dense reward. See the appendix for remaining plots on the slide-cabinet and soccer-v2 tasks.
93
+
94
+ ![](images/ed5ca959fb7f07f53782ab1c3443101102524c20d5359a43fc240c6eb4a5a2d6.jpg)
95
+ Figure 4: In the Kitchen environment suite, we run comparisons logging the number of low level interactions of RAPS, Raw actions and VICES. While the methods appear closer in efficiency with respect to low-level actions, RAPS still maintains the best performance across every task. We note that on a real robot, RAPS runs significantly faster than the raw action space in terms of wall-clock time.
96
+
97
+ # 5.1 Accelerating Single Task RL using RAPS
98
+
99
+ In this section, we evaluate the performance of RAPS against fixed and variable transformations of the lower-level action space as well as state of the art unsupervised skill extraction from demonstrations. Due to space constraints, we show performance against the number of training steps in the appendix.
100
+
101
+ Action Parameterizations We compare RAPS against Raw Actions and VICES using Dreamer [18] as the underlying algorithm across all three environment suites in Figure 3. Since we observe weak performance on the default action space of Kitchen, joint velocity control, we instead modify the suite to use 6DOF end-effector control for both raw actions and VICES. We find Raw Actions and VICES are able to make progress on a number of tasks across all three domains, but struggle to execute the fine-grained manipulation required to solve more difficult environments such as hinge-cabinet, assembly-v2 and disassembly-v2. The latter two environments are not solved by Raw Actions or VICES even when they are provided dense rewards. In contrast, RAPS is able to quickly solve every task from sparse rewards.
102
+
103
+ On the kitchen environment, from sparse rewards, no prior method makes progress on the hardest manipulation task: grasping the hinge cabinet and pulling it open to 90 degrees, while RAPS is able to quickly learn to solve the task. In the Metaworld domain, peg-unplug-side-v2, assembly-v2 and disassembly-v2 are difficult environments which present a challenge to even dense reward state based RL [52]. However, RAPS is able to solve all three tasks with sparse rewards directly from image input. We additionally include a comparison of RAPS against Raw Actions on all 50 Metaworld tasks with final performance shown in Figure 6 as well as the full learning performance in the Appendix. RAPS is able to learn to solve or make progress on 43 out of 50 tasks purely from sparse rewards. Finally, in the Robosuite domain, by leveraging robot action primitives, we are able to learn to solve the tasks more rapidly than raw actions or VICES, with respect to wall-clock time and number of training steps, demonstrating that RAPS scales to more realistic robotic controllers.
104
+
105
+ ![](images/1beb979a93352e371b5369b8e1b96fc0f71e3d3e87ad60143029db346c4b6417.jpg)
106
+ Figure 5: Comparison of RAPS and skill learning methods on the Kitchen domain using SAC as the underlying RL algorithm. While SPIRL and PARROT are competitive or even improve upon RAPS’s performance on easier tasks, only RAPS (green) is able to solve top-left-burner and hinge-cabinet.
107
+
108
+ Table 1: Evaluation of RAPS across RL algorithms (Dreamer, PPO, SAC) on Kitchen. We report the final success rate of each method on five evaluation trials trained over three seeds from sparse rewards. While raw action performance (left entry) varies significantly across RL algorithms, RAPS (right entry) is able to achieve high success rates on every task with every RL algorithm.
109
+
110
+ <table><tr><td rowspan=2 colspan=1>RL Algorithm</td><td rowspan=2 colspan=12>Kettle Slide CabinetLight Switch Microwave Top Burner Hinge CabinetRaw RAPS Raw RAPS Raw RAPS Raw RAPS Raw RAPS Raw RAPS</td></tr><tr><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td></tr><tr><td rowspan=1 colspan=1>Dreamer</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.93</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.53</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.93</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.67</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.86</td><td rowspan=1 colspan=1>.67</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.66</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.27</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>.66</td><td rowspan=1 colspan=1>.27</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr></table>
111
+
112
+ Offline Learned Skills An alternative point of comparison is to leverage offline data to learn skills and run downstream RL. We train SPIRL and PARROT from images using the kitchen demonstration datasets in D4RL [16], and Dyn-E with random interaction data. We run all agents with SAC as the underlying RL algorithm and extract learned skills using joint velocity control, the type of action present in the demonstrations. See Figure 5 for the comparison of RAPS against learned skills. Dyn-E is unable to make progress across any of the domains due to the difficulty of extracting useful skills from highly unstructured interaction data. In contrast, SPIRL and PARROT manage to leverage demonstration data to extract useful skills; they are competitive or even improve upon RAPS on the easier tasks such as microwave and kettle, but struggle to make progress on the more difficult tasks in the suite. PARROT, in particular, exhibits a great deal of variance across tasks, especially with SAC, so we include results using Dreamer as well. We note that both SPIRL and PARROT are limited by the tasks which are present in the demonstration dataset and unable to generalize their extracted skills to other tasks in the same environment or other domains. In contrast, parameterized primitives are able to solve all the kitchen tasks and are re-used across domains as shown in Figure 3.
113
+
114
+ Generalization to different RL algorithms A generic set of skills should maintain performance regardless of the underlying RL algorithm. In this section, we evaluate the performance of RAPS against Raw Actions on three types of RL algorithms: model based (Dreamer), off-policy model free (SAC) and on-policy model free (PPO) on the Kitchen tasks. We use the end-effector version of raw actions as our point of comparison on these tasks. As seen in Table 1, unlike raw actions, RAPS is largely agnostic to the underlying RL algorithm.
115
+
116
+ # 5.2 Enabling Hierarchical Control via RAPS
117
+
118
+ We next apply RAPS to a more complex setting: sequential RL, in which the agent must learn to solve multiple subtasks within a single episode, as opposed to one task. We evaluate on the Kitchen Multi-Task environments and plot performance across SAC, Dreamer, and PPO in Figure 7.
119
+
120
+ ![](images/88134cf6330a3e7cce1f6ac5e9b73ce0556bb75797492920fc80f7eedb49e6ca.jpg)
121
+ Figure 6: Final performance results for single task RL on the Metaworld domain after 3 days of training using the Dreamer base algorithm. RAPS is able to successfully learn most tasks, solving 43 out of 50 tasks while Raw Actions is only able to solve 21 tasks.
122
+
123
+ ![](images/f91aef47a11d4c00510750e156d79454264b37d0686bccb001cb98b6204fc7f0.jpg)
124
+ Figure 7: Learning performance of RAPS on sequential multi-task RL. Each row plots a different base RL algorithm (SAC, Dreamer, PPO) while the first two columns plot the two multi-task environment results against wall-clock time and the next two columns plot against number of updates, i.e. training steps. RAPS consistently solves at least three out of four subtasks while prior methods generally fail to make progress beyond one or two.
125
+
126
+ Raw Actions prove to be a strong baseline, eventually solving close to three subtasks on average, while requiring significantly more wall-clock time and training steps. SPIRL initially shows strong performance but after solving one to two subtasks it then plateaus and fails to improve. PARROT is less efficient than SPIRL but also able to make progress on up to two subtasks, though it exhibits a great deal of sensitivity to the underlying RL algorithm. For both of the offline skill learning methods, they struggle to solve any of the subtasks outside of kettle, microwave, and slide-cabinet which are encompassed in the demonstration dataset. Meanwhile, with RAPS, across all three base RL algorithms, we observe that the agents are able to leverage the primitive library to rapidly solve three out of four subtasks and continue to improve. This result demonstrates that RAPS can elicit significant gains in hierarchical RL performance through its improved exploratory behavior.
127
+
128
+ ![](images/b44b0d74463208ab327bfbcc5f57c5fc16103db92a1bf28a4e48c5e058d29c00.jpg)
129
+ Figure 8: RAPS significantly outperforms raw actions in terms of total wall clock time and number of updates when fine-tuning initialized from reward free exploration.
130
+
131
+ # 5.3 Leveraging RAPS to enable efficient unsupervised exploration
132
+
133
+ In many settings, sparse rewards themselves can be hard to come by. Ideally, we would be able to train robot without train time task rewards for large periods of time and fine-tune to solve new tasks with only a few supervised labels. We use the kitchen environment to test the efficacy of primitives on the task of unsupervised exploration. We run an unsupervised exploration algorithm, Plan2explore [38], for a fixed number of steps to learn a world model, and then fine-tune the model and train a policy using Dreamer to solve specific tasks. We plot the results in Figure 8 on the top-left-burner and hinge-cabinet tasks. RAPS enables the agent to learn an effective world model that results in rapid learning of both tasks, requiring only 1 hour of fine-tuning to solve the hinge-cabinet task. Meanwhile, the world model learned by exploring with raw actions is unable to quickly finetune as quickly. We draw two conclusions from these results, a) RAPS enables more efficient exploration than raw actions, b) RAPS facilitates efficient model fitting, resulting in rapid fine-tuning.
134
+
135
+ # 6 Discussion
136
+
137
+ Limitations and Future Work While we demonstrate that RAPS is effective at solving a diverse array of manipulation tasks from visual input, there are several limitations that future work would need to address. One issue to consider is that of dynamic, fluid motions. Currently, once a primitive begins executing, it will not stop until its horizon is complete, which prevents dynamic behavior that a feedback policy on the raw action space could achieve. In the context of RAPS, integrating the parameterization and environment agnostic properties of robot action primitives with standard feedback policies could be one way to scale RAPS to more dynamic tasks. Another potential concern is that of expressivity: the set of primitives we consider in this work cannot express all possible motions that robot might need to execute. As discussed in Section 3, we do combine the base actions with primitives via a dummy primitive so that the policy can fall back to default action space if necessary. Future work could improve upon our simple solution. Finally, more complicated robot morphologies may require significant domain knowledge in order to design primitive behaviors. In this setting, we believe that learned skills with the agent-centric structure of robot action primitives could be an effective way to balance between the difficulty of learning policies to control complex robot morphologies [4, 33] and the time needed to manually define primitives.
138
+
139
+ Conclusion In this work we present an extensive evaluation of RAPS, which leverages parameterized actions to learn high level policies that can quickly solve robotics tasks across three different environment suites. We show that standard methods of re-parameterizing the action space and learning skills from demonstrations are environment and domain dependent. In many cases, prior methods are unable to match the performance of robot action primitives. While primitives are not a general solution to every task, their success across a wide range of environments illustrates the utility of incorporating an agent-centric structure into the robot action space. Given the effectiveness of simple parameterized action primitives, a promising direction to further investigate would be how to best incorporate agent-centric structure into both learned and manually defined skills and attempt to get the best of both worlds in order to improve the interface of RL algorithms with robots.
140
+
141
+ Acknowledgments We thank Shikhar Bahl, Ben Eyesenbach, Aravind Sivakumar, Rishi Veerapaneni, Russell Mendonca and Paul Liang for feedback on early drafts of this paper. This work was supported in part by NSF IIS1763562, NSF IIS-2024594, and ONR Grant N000141812861, and the US Army. Additionally, MD is supported by the NSF Graduate Fellowship. We would also like to acknowledge NVIDIA’s GPU support.
142
+
143
+ # References
144
+
145
+ [1] J. Achiam, H. Edwards, D. Amodei, and P. Abbeel. Variational option discovery algorithms. arXiv preprint arXiv:1807.10299, 2018. 3
146
+ [2] A. Ajay, A. Kumar, P. Agrawal, S. Levine, and O. Nachum. Opal: Offline primitive discovery for accelerating offline reinforcement learning, 2021. 3, 5
147
+ [3] A. Allshire, R. Martín-Martín, C. Lin, S. Manuel, S. Savarese, and A. Garg. Laser: Learning a latent action space for efficient reinforcement learning. arXiv preprint arXiv:2103.15793, 2021. 2
148
+ [4] O. M. Andrychowicz, B. Baker, M. Chociej, R. Jozefowicz, B. McGrew, J. Pachocki, A. Petron, M. Plappert, G. Powell, A. Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 39(1):3–20, 2020. 1, 10
149
+ [5] P.-L. Bacon, J. Harb, and D. Precup. The option-critic architecture. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. 3
150
+ [6] S. Bahl, M. Mukadam, A. Gupta, and D. Pathak. Neural dynamic policies for end-to-end sensorimotor learning, 2020. 3
151
+ [7] A. Bemporad and M. Morari. Control of systems integrating logic, dynamics, and constraints. Automatica, 35(3):407–427, 1999. 3
152
+ [8] M. S. Branicky, V. S. Borkar, and S. K. Mitter. A unified framework for hybrid control: Model and optimal control theory. IEEE transactions on automatic control, 43(1):31–45, 1998. 3
153
+ [9] S. Cambon, R. Alami, and F. Gravot. A hybrid approach to intricate motion, manipulation and task planning. The International Journal of Robotics Research, 28(1):104–126, 2009. 3
154
+ [10] R. Chitnis, S. Tulsiani, S. Gupta, and A. Gupta. Efficient bimanual manipulation using learned task schemas. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 1149–1155. IEEE, 2020. 3, 5
155
+ [11] C. Daniel, G. Neumann, O. Kroemer, J. Peters, et al. Hierarchical relative entropy policy search. Journal of Machine Learning Research, 17:1–50, 2016. 3
156
+ [12] B. Eysenbach, A. Gupta, J. Ibarz, and S. Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018. 3
157
+ [13] Z. Fan, R. Su, W. Zhang, and Y. Yu. Hybrid actor-critic reinforcement learning in parameterized action space. arXiv preprint arXiv:1903.01344, 2019. 3
158
+ [14] K. Frans, J. Ho, X. Chen, P. Abbeel, and J. Schulman. Meta learning shared hierarchies. arXiv preprint arXiv:1710.09767, 2017. 2, 3
159
+ [15] H. Fu, H. Tang, J. Hao, Z. Lei, Y. Chen, and C. Fan. Deep multi-agent reinforcement learning with discrete-continuous hybrid action spaces. arXiv preprint arXiv:1903.04959, 2019. 3
160
+ [16] J. Fu, A. Kumar, O. Nachum, G. Tucker, and S. Levine. D4rl: Datasets for deep data-driven reinforcement learning, 2021. 8
161
+ [17] A. Gupta, V. Kumar, C. Lynch, S. Levine, and K. Hausman. Relay policy learning: Solving long-horizon tasks via imitation and reinforcement learning, 2019. 5
162
+ [18] D. Hafner, T. Lillicrap, J. Ba, and M. Norouzi. Dream to control: Learning behaviors by latent imagination, 2020. 7
163
+ [19] M. Hausknecht and P. Stone. Deep reinforcement learning in parameterized action space. arXiv preprint arXiv:1511.04143, 2015. 2, 3
164
+ [20] K. Hausman, J. T. Springenberg, Z. Wang, N. Heess, and M. Riedmiller. Learning an embedding space for transferable robot skills. In International Conference on Learning Representations, 2018. 2
165
+ [21] A. J. Ijspeert, J. Nakanishi, and S. Schaal. Learning attractor landscapes for learning motor primitives. Technical report, 2002. 3
166
+ [22] L. P. Kaelbling and T. Lozano-Pérez. Hierarchical task and motion planning in the now. In 2011 IEEE International Conference on Robotics and Automation, pages 1470–1477. IEEE, 2011. 2, 3
167
+ [23] L. P. Kaelbling and T. Lozano-Pérez. Learning composable models of parameterized skills. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 886–893. IEEE, 2017. 3
168
+ [24] D. Kalashnikov, A. Irpan, P. Pastor, J. Ibarz, A. Herzog, E. Jang, D. Quillen, E. Holly, M. Kalakrishnan, V. Vanhoucke, et al. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation. arXiv preprint arXiv:1806.10293, 2018. 1
169
+ [25] J. Kober and J. Peters. Learning motor primitives for robotics. In 2009 IEEE International Conference on Robotics and Automation, pages 2112–2118. IEEE, 2009. 3
170
+ [26] S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016. 1
171
+ [27] A. C. Li, C. Florensa, I. Clavera, and P. Abbeel. Sub-policy adaptation for hierarchical reinforcement learning. arXiv preprint arXiv:1906.05862, 2019. 2, 3
172
+ [28] C. Lynch and P. Sermanet. Grounding language in play. arXiv preprint arXiv:2005.07648, 2020. 3
173
+ [29] C. Lynch, M. Khansari, T. Xiao, V. Kumar, J. Tompson, S. Levine, and P. Sermanet. Learning latent plans from play. In Conference on Robot Learning, pages 1113–1132. PMLR, 2020. 2, 3
174
+ [30] R. Martín-Martín, M. A. Lee, R. Gardner, S. Savarese, J. Bohg, and A. Garg. Variable impedance control in end-effector space: An action space for reinforcement learning in contact-rich tasks, 2019. 6
175
+ [31] W. Masson, P. Ranchod, and G. Konidaris. Reinforcement learning with parameterized actions. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016. 3
176
+ [32] O. Nachum, S. Gu, H. Lee, and S. Levine. Data-efficient hierarchical reinforcement learning. arXiv preprint arXiv:1805.08296, 2018. 2
177
+ [33] A. Nagabandi, K. Konolige, S. Levine, and V. Kumar. Deep dynamics models for learning dexterous manipulation. In Conference on Robot Learning, pages 1101–1112. PMLR, 2020. 10
178
+ [34] S. Nasiriany, H. Liu, and Y. Zhu. Augmenting reinforcement learning with behavior primitives for diverse manipulation tasks, 2021. 3
179
+ [35] K. Pertsch, Y. Lee, and J. J. Lim. Accelerating reinforcement learning with learned skill priors, 2020. 3, 5, 6
180
+ [36] J. Peters, K. Mulling, and Y. Altun. Relative entropy policy search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 24, 2010. 3
181
+ [37] S. Schaal. Dynamic movement primitives-a framework for motor control in humans and humanoid robotics. In Adaptive motion of animals and machines, pages 261–280. Springer, 2006. 3
182
+ [38] R. Sekar, O. Rybkin, K. Daniilidis, P. Abbeel, D. Hafner, and D. Pathak. Planning to explore via self-supervised world models, 2020. 10
183
+ [39] T. Shankar and A. Gupta. Learning robot skills with temporal variational inference. In International Conference on Machine Learning, pages 8624–8633. PMLR, 2020. 3
184
+ [40] T. Shankar, S. Tulsiani, L. Pinto, and A. Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2019. 2, 3
185
+ [41] A. Sharma, S. Gu, S. Levine, V. Kumar, and K. Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019. 2, 3
186
+ [42] M. Sharma, J. Liang, J. Zhao, A. LaGrassa, and O. Kroemer. Learning to compose hierarchical object-centric controllers for robotic manipulation. arXiv preprint arXiv:2011.04627, 2020. 3
187
+ [43] A. Simeonov, Y. Du, B. Kim, F. R. Hogan, J. Tenenbaum, P. Agrawal, and A. Rodriguez. A long horizon planning framework for manipulating rigid pointcloud objects. arXiv preprint arXiv:2011.08177, 2020. 3
188
+ [44] A. Singh, H. Liu, G. Zhou, A. Yu, N. Rhinehart, and S. Levine. Parrot: Data-driven behavioral priors for reinforcement learning. arXiv preprint arXiv:2011.10024, 2020. 3, 6
189
+ [45] R. S. Sutton, D. Precup, and S. Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999. 3
190
+ [46] D. Tanneberg, K. Ploeger, E. Rueckert, and J. Peters. Skid raw: Skill discovery from raw trajectories. IEEE Robotics and Automation Letters, 6(3):4696–4703, 2021. 3
191
+ [47] A. S. Vezhnevets, S. Osindero, T. Schaul, N. Heess, M. Jaderberg, D. Silver, and K. Kavukcuoglu. Feudal networks for hierarchical reinforcement learning. In International Conference on Machine Learning, pages 3540–3549. PMLR, 2017. 2
192
+ [48] E. Wei, D. Wicke, and S. Luke. Hierarchical approaches for reinforcement learning in parameterized action space. arXiv preprint arXiv:1810.09656, 2018. 3
193
+ [49] W. Whitney, R. Agarwal, K. Cho, and A. Gupta. Dynamics-aware embeddings, 2020. 3, 6
194
+ [50] K. Xie, H. Bharadhwaj, D. Hafner, A. Garg, and F. Shkurti. Latent skill planning for exploration and transfer. In International Conference on Learning Representations, 2020. 2
195
+ [51] J. Xiong, Q. Wang, Z. Yang, P. Sun, L. Han, Y. Zheng, H. Fu, T. Zhang, J. Liu, and H. Liu. Parametrized deep q-networks learning: Reinforcement learning with discrete-continuous hybrid action space. arXiv preprint arXiv:1810.06394, 2018. 3
196
+ [52] T. Yu, D. Quillen, Z. He, R. Julian, K. Hausman, C. Finn, and S. Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning, pages 1094–1100. PMLR, 2020. 5, 8
197
+ [53] W. Zhou, S. Bajracharya, and D. Held. Plas: Latent action space for offline reinforcement learning. arXiv preprint arXiv:2011.07213, 2020. 3
198
+ [54] Y. Zhu, J. Wong, A. Mandlekar, and R. Martín-Martín. robosuite: A modular simulation framework and benchmark for robot learning, 2020. 5
parse/train/48uzkHOKMfz/48uzkHOKMfz_content_list.json ADDED
@@ -0,0 +1,835 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Accelerating Robotic Reinforcement Learning via Parameterized Action Primitives ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 199,
8
+ 122,
9
+ 799,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Murtaza Dalal Deepak Pathak† Ruslan Salakhutdinov† Carnegie Mellon University {mdalal,dpathak,rsalakhu} @ cs.cmu.edu ",
17
+ "bbox": [
18
+ 290,
19
+ 220,
20
+ 741,
21
+ 263
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 299,
32
+ 535,
33
+ 315
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Despite the potential of reinforcement learning (RL) for building general-purpose robotic systems, training RL agents to solve robotics tasks still remains challenging due to the difficulty of exploration in purely continuous action spaces. Addressing this problem is an active area of research with the majority of focus on improving RL methods via better optimization or more efficient exploration. An alternate but important component to consider improving is the interface of the RL algorithm with the robot. In this work, we manually specify a library of robot action primitives (RAPS), parameterized with arguments that are learned by an RL policy. These parameterized primitives are expressive, simple to implement, enable efficient exploration and can be transferred across robots, tasks and environments. We perform a thorough empirical study across challenging tasks in three distinct domains with image input and a sparse terminal reward. We find that our simple change to the action interface substantially improves both the learning efficiency and task performance irrespective of the underlying RL algorithm, significantly outperforming prior methods which learn skills from offline expert data. Code and videos at https://mihdalal.github.io/raps/ ",
40
+ "bbox": [
41
+ 233,
42
+ 332,
43
+ 764,
44
+ 551
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 582,
55
+ 310,
56
+ 598
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Meaningful exploration remains a challenge for robotic reinforcement learning systems. For example, in the manipulation tasks shown in Figure 1, useful exploration might correspond to picking up and placing objects in different configurations. However, random motions in the robot’s joint space will rarely, if ever, result in the robot touching the objects, let alone pick them up. Recent work, on the other hand, has demonstrated remarkable success in training RL agents to solve manipulation tasks [4, 24, 26] by sidestepping the exploration problem with careful engineering. Levine et al. [26] use densely shaped rewards, while Kalashnikov et al. [24] leverage a large scale robot infrastructure and Andrychowicz et al. [4] require training in simulation with engineered reward functions in order to transfer to the real world. In general, RL methods can be prohibitively data inefficient, require careful reward development to learn, and struggle to scale to more complex tasks without the aid of human demonstrations or carefully designed simulation setups. ",
63
+ "bbox": [
64
+ 174,
65
+ 606,
66
+ 825,
67
+ 757
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "An alternative view on why RL is difficult for robotics is that it requires the agent to learn both what to do in order to achieve the task and how to control the robot to execute the desired motions. For example, in the kitchen environment featured at the bottom of Figure 1, the agent would have to learn how to accurately manipulate the arm to reach different locations as well as how to grasp different objects, while also ascertaining what object it has to grasp and where to move it. Considered independently, the problems of controlling a robot arm to execute particular motions and figuring out the desired task from scalar reward feedback, then achieving it, are non-trivial. Jointly learning to solve both problems makes the task significantly more difficult. ",
74
+ "bbox": [
75
+ 174,
76
+ 763,
77
+ 825,
78
+ 876
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/e614f68926084e42358f98f2dd7a1b4cc8070d2d0225070eba314dc4bd22147c.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Visual depiction of RAPS, outlining the process of how a primitive is executed on a robot. Given an input image, the policy outputs a distribution over primitives and a distribution over all the arguments of all primitives, samples a primitive and selects its corresponding argument distribution parameters, indexed by which primitive was chosen, samples an argument from that distribution and executes a controller in a feedback loop on the robot for a fixed number of timesteps $( H _ { k } )$ to reach a new state. We show an example sequence of executing the lift primitive after having grasped the kettle in the Kitchen environment. The agent observes the initial (0) and final states $\\boldsymbol { H _ { k } } )$ ) and receives a reward equal to the reward accumulated when executing the primitive. Below we visualize representative tasks from the three environment suites that we evaluate on. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 191,
91
+ 89,
92
+ 805,
93
+ 313
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "In contrast to training RL agents on raw actions such as torques or delta positions, a common strategy is to decompose the agent action space into higher (i.e., what) and lower (i.e., how) level structures. A number of existing methods have focused on designing or learning this structure, from manually architecting and fine-tuning action hierarchies [14, 27, 32, 47], to organizing agent trajectories into distinct skills [3, 20, 41, 50] to more recent work on leveraging large offline datasets in order to learn skill libraries [29, 40]. While these methods have shown success in certain settings, many of them are either too sample inefficient, do not scale well to more complex domains, or lack generality due to dependence on task relevant data. ",
100
+ "bbox": [
101
+ 173,
102
+ 443,
103
+ 825,
104
+ 554
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In this work, we investigate the following question: instead of learning low-level primitives, what if we were to design primitives with minimal human effort, enable their expressiveness by parameterizing them with arguments and learn to control them with a high-level policy? Such primitives have been studied extensively in task and motion planning (TAMP) literature [22] and implemented as parameterized actions [19] in RL. We apply primitive robot motions to redefine the policy-robot interface in the context of robotic reinforcement learning. These primitives include manually defined behaviors such as lift, push, top-grasp, and many others. The behavior of these primitives is parameterized by arguments that are the learned outputs of a policy network. For instance, top-grasp is parameterized by four scalar values: grasp position $\\mathbf { \\Phi } ( \\mathbf { x } , \\mathbf { y } )$ , how much to move down (z) and the degree to which the gripper should close. We call this application of parameterized behaviors, Robot Action Primitives for RL (RAPS). A crucial point to note is that these parameterized actions are easy to design, need only be defined once and can be re-used without modification across tasks. ",
111
+ "bbox": [
112
+ 174,
113
+ 560,
114
+ 825,
115
+ 726
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "The main contribution of this work is to support the effectiveness of RAPS via a thorough empirical evaluation across several dimensions: ",
122
+ "bbox": [
123
+ 173,
124
+ 732,
125
+ 823,
126
+ 761
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• How do parameterized primitives compare to other forms of action parameterization? • How does RAPS compare to prior methods that learn skills from offline expert data? • Is RAPS agnostic to the underlying RL algorithm? • Can we stitch the primitives to perform multiple complex manipulation tasks in sequence? • Does RAPS accelerate exploration even in the absence of extrinsic rewards? ",
133
+ "bbox": [
134
+ 184,
135
+ 766,
136
+ 790,
137
+ 837
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "We investigate these questions across complex manipulation environments including Kitchen Suite, Metaworld and Robosuite domains. We find that a simple parameterized action based approach outperforms prior state-of-the-art by a significant margin across most of these settings2 ",
144
+ "bbox": [
145
+ 176,
146
+ 843,
147
+ 826,
148
+ 885
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 Related Work ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 89,
159
+ 321,
160
+ 106
161
+ ],
162
+ "page_idx": 2
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Higher Level Action and Policy Spaces in Robotics In robotics literature, decision making over primitive actions that execute well-defined behaviors has been explored in the context of task and motion planning [9, 22, 23, 43]. However, such methods are dependent on accurate state estimation pipelines to enable planning over the argument space of primitives. One advantage of using reinforcement learning methods instead is that the agent can learn to adjust its implicit state estimates through trial and error experience. Dynamic Movement Primitive and ensuing policy search approaches [11, 21, 25, 36, 37] leverage dynamical systems to learn flexible, parameterized skills, but are sensitive to hyper-parameter tuning and often limited to the behavior cloning regime. Neural Dynamic Policies [6] incorporate dynamical structure into neural network policies for RL, but evaluate in the state based regime with dense rewards, while we show that parameterized actions can enable RL agents to efficiently explore in sparse reward settings from image input. ",
167
+ "bbox": [
168
+ 173,
169
+ 113,
170
+ 825,
171
+ 265
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Hierarchical RL and Skill Learning Enabling RL agents to act effectively over temporally extended horizons is a longstanding research goal in the field of hierarchical RL. Prior work introduced the options framework [45], which outlines how to leverage lower level policies as actions for a higher level policy. In this framework, parameterized action primitives can be viewed as a particular type of fixed option with an initiation set that corresponds to the arguments of the primitive. Prior work on options has focused on discovering [1, 12, 41] or fine-tuning options [5, 14, 27] in addition to learning higher level policies. Many of these methods have not been extended beyond carefully engineered state based settings. More recently, research has focused on extracting useful skills from large offline datasets of interaction data ranging from unstructured interaction data [49], play [28, 29] to demonstration data [2, 35, 39, 40, 44, 46, 53]. While these methods have been shown to be successful on certain tasks, the learned skills are only relevant for the environment they are trained on. New demonstration data must be collected to use learned skills for a new robot, a new task, or even a new camera viewpoint. Since RAPS uses manually specified primitives dependent only on the robot state, RAPS can re-use the same implementation details across robots, tasks and domains. ",
178
+ "bbox": [
179
+ 173,
180
+ 272,
181
+ 825,
182
+ 465
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Parameterized Actions in RL The parameterized action Markov decision process (PAMDP) formalism was first introduced in Masson et al. [31], though there is a large body of earlier work in the area of hybrid discrete-continuous control, surveyed in [7, 8]. Most recent research on PAMDPs has focused on better aligning policy architectures and RL updates with the nature of parameterized actions and has largely been limited to state based domains [13, 51]. A number of papers in this area have focused on solving a simulated robot soccer domain modeled as either a single-agent [19, 31, 48] or multi-agent [15] problem. In this paper, we consider more realistic robotics tasks that involve interaction with and manipulation of common household objects. While prior work [42] has trained RL policies to select hand-designed behaviors for simultaneous execution, we instead train RL policies to leverage more expressive, parameterized behaviors to solve a wide variety of tasks. Closely related to this work is Chitnis et al. [10], which develops a specific architecture for training policies over parameterized actions from state input and sparse rewards in the context of bi-manual robotic manipulation. Our work is orthogonal in that we demonstrate that a higher level policy architecture is sufficient to solve a large suite of manipulation tasks from image input. We additionally note that there is concurrent work [34] that also applies engineered primitives in the context of RL, however, we consider learning from image input and sparse terminal rewards. ",
189
+ "bbox": [
190
+ 174,
191
+ 472,
192
+ 825,
193
+ 693
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "3 Robot Action Primitives in RL ",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 176,
203
+ 705,
204
+ 460,
205
+ 723
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "To address the challenge of exploration and behavior learning in continuous action spaces, we decompose a desired task into the what (high level task) and the how (control motion). The what is handled by the environment-centric RL policy while the how is handled by a fixed, manually defined set of agent-centric primitives parameterized by continuous arguments. This enables the high level policy to reason about the task at a high level by choosing primitives and their arguments while leaving the low-level control to the parameterized actions themselves. ",
212
+ "bbox": [
213
+ 174,
214
+ 731,
215
+ 825,
216
+ 814
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 Background ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 835,
227
+ 299,
228
+ 849
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Let the Markov decision process (MDP) be defined as $( S , A , \\mathcal { R } ( s , a , s ^ { \\prime } ) , \\mathcal { T } ( s ^ { \\prime } | s , a ) , p ( s _ { 0 } ) , \\gamma , )$ in which $s$ is the set of true states, $\\mathcal { A }$ is the set of possible actions, $\\mathcal { R } ( s , a , s ^ { \\prime } )$ is the reward function, $\\mathcal { T } ( s ^ { \\prime } | s , a )$ is the transition probability distribution, $p ( s _ { 0 } )$ defines the initial state distribution, and $\\gamma$ is the discount factor. The agent executes actions in the environment using a policy $\\pi ( a | s )$ with a corresponding trajectory distribution $p ( \\tau = ( s _ { 0 } , a _ { 0 } , . . . a _ { t - 1 } , s _ { T } ) ) = p ( s _ { 0 } ) \\Pi _ { t } \\pi ( a _ { t } | s _ { t } ) \\mathcal { T } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ . The goal of the RL agent is to maximize the expected sum of rewards with respect to the policy: $\\begin{array} { r } { \\mathbb { E } _ { s _ { 0 } , a _ { 0 } , \\dots a _ { t - 1 } , s _ { T } , \\sim p ( \\tau ) } \\mathsf { \\bar { [ \\sum _ { t } \\gamma ^ { t } \\mathcal { R } ( s _ { t } , a _ { t } ) ] } } } \\end{array}$ . In the case of vision-based RL, the setup is now a partially observed Markov decision process (POMDP); we have access to the true state via image observations. In this case, we include an observation space $\\mathcal { O }$ which corresponds to the set of visual observations that the environment may emit, an observation model $p ( o | s )$ which defines the probability of emission and policy $\\pi ( a | o )$ which operates over observations. In this work, we consider various modifications to the action space $\\mathcal { A }$ while keeping all other components of the MDP or POMDP the same. ",
235
+ "bbox": [
236
+ 174,
237
+ 856,
238
+ 825,
239
+ 911
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "",
246
+ "bbox": [
247
+ 173,
248
+ 90,
249
+ 826,
250
+ 203
251
+ ],
252
+ "page_idx": 3
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "3.2 Parameterized Action Primitives ",
257
+ "text_level": 1,
258
+ "bbox": [
259
+ 176,
260
+ 212,
261
+ 441,
262
+ 227
263
+ ],
264
+ "page_idx": 3
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "We now describe the specific nature of our parameterized primitives and how they can be integrated into RL algorithms (see Figure 1 for an end-to-end visualization of the method). In a library of $K$ primitives, the $\\mathbf { k }$ -th primitive is a function $f _ { k } ( s , \\mathrm { a r g s } )$ that executes a controller $C _ { k }$ on a robot for a fixed horizon $H _ { k }$ , $s$ is the robot state and args is the value of the arguments passed to $f _ { k }$ . args is used to compute a target robot state $s ^ { * }$ and then $C _ { k }$ is used to drive $s$ to $s ^ { * }$ . A primitive dependent error metric $e _ { k } ( s , s ^ { * } )$ determines the trajectory $C _ { k }$ takes to reach $s ^ { * }$ . $C _ { k }$ is a general purpose state reaching controller, e.g. an end-effector or joint position controller; we assume access to such a controller for each robot and it is straightforward to define and tune if not provided. In this case, the same primitive implementation can be re-used across any robot. In this setup, the choice of controller, error metric and method to compute $s ^ { * }$ define the behavior of the primitive motion, how it uniquely forms a movement in space. We refer to Procedure 1 for a general outline of a parameterized primitive. To summarize, each skill is a feedback control loop with end-effector low level actions. The input arguments are used to define a target state to achieve and the primitive executes a loop to drive the error between the robot state and the target robot state to zero. ",
269
+ "bbox": [
270
+ 174,
271
+ 236,
272
+ 825,
273
+ 429
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "As an example, consider the “lifting“ primitive, which simply involves lifting the robot arm upward. For this action, args is the amount to lift the robot arm, e.g. by $2 0 \\mathrm { c m } .$ ., the robot state for this primitive is the robot end-effector position, $\\mathbf { k }$ is the index of the lifting primitive in the library, $C _ { k }$ is an end-effector controller, $e _ { k } ( s , s ^ { * } ) = s ^ { * } - s$ , and $H _ { k }$ is the end-effector controller horizon, which in our setting ranges from 100-300. The target position $s ^ { * }$ is computed as $s + [ 0 , 0$ , args]. $f$ moves the robot arm for $H _ { k }$ steps, driving $s$ towards $s ^ { * }$ . The other primitives are defined in a similar manner; see the appendix for a precise description of each primitive we define. ",
280
+ "bbox": [
281
+ 174,
282
+ 435,
283
+ 825,
284
+ 532
285
+ ],
286
+ "page_idx": 3
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "Robot action primitives are a function of the robot state, not the world state. The primitives function by reaching set points of the robot state as directed by the policy, hence they are agentcentric. This design makes primitives agnostic to camera view, visual distractors and even the underlying environment itself. The RL policy, on the other hand, is environment centric: it chooses the primitive and appropriate arguments based on environment observations in order to ",
291
+ "bbox": [
292
+ 174,
293
+ 539,
294
+ 485,
295
+ 676
296
+ ],
297
+ "page_idx": 3
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "Procedure 1 Parameterized Action Primitive ",
302
+ "text_level": 1,
303
+ "bbox": [
304
+ 500,
305
+ 551,
306
+ 792,
307
+ 565
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "Input: primitive dependent argument vector args, primitive index $k$ , robot state $s$ \n1: compute $s ^ { * } ( \\mathrm { a r g s } , s )$ \n2: for $i = 1 , . . . , H _ { k }$ low-level steps do \n3: $e _ { i } = e _ { k } ( s _ { i } , s ^ { * } )$ $\\triangleright$ compute state error \n4: $a _ { i } = C _ { k } ( e _ { i } , s _ { i } )$ . compute torques \n5: execute $a _ { i }$ on robot \n6: end for ",
314
+ "bbox": [
315
+ 501,
316
+ 566,
317
+ 825,
318
+ 669
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "best achieve the task. A key advantage of this decomposition is that the policy no longer has to learn how to move the robot and can focus directly on what it needs to do. Meanwhile, the low-level control need not be perfect because the policy can account for most discrepancies using the arguments. ",
325
+ "bbox": [
326
+ 176,
327
+ 676,
328
+ 821,
329
+ 719
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "One issue with using a fixed library of primitives is that it cannot define all possible robot motions. As a result, we include a dummy primitive that corresponds to the raw action space. The dummy primitive directly takes in a delta position and then tries to achieve it by taking a fixed number of steps. This does not entirely resolve the issue as the dummy primitive operates on the high level horizon for $H _ { k }$ steps when called. Since the primitive is given a fixed goal for $H _ { k }$ steps, it is less expressive than a feedback policy that could provide a changing argument at every low-level step. For example, if the task is to move in a circle, the dummy primitive with a fixed argument could not provide a target state that would directly result in the desired motion without resorting to a significant number of higher level actions, while a feedback policy could iteratively update the target state to produce a smooth motion in a circle. Therefore, it cannot execute every trajectory that a lower level policy could; however, the primitive library as a whole performs well in practice. ",
336
+ "bbox": [
337
+ 173,
338
+ 724,
339
+ 825,
340
+ 877
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "In order to integrate these parameterized actions into the RL setting, we modify the action space of a standard RL environment to involve two operations at each time step: (a) choose a primitive out of a fixed library (b) output its arguments. As in Chitnis et al. [10], the policy network outputs a distribution over one-hot vectors defining which primitive to use as well as a distribution over all of the arguments for all of the primitives, a design choice which enables the policy network to have a fixed output dimension. After the policy samples an action, the chosen parameterized action and its corresponding arguments are indexed from the action and passed to the environment. The environment selects the appropriate primitive function $f$ and executes the primitive on the robot with the appropriate arguments. After the primitive completes executing, the final observation and sum of intermediate rewards during the execution of the primitive are returned by the environment. We do so to ensure if the task is achieved mid primitive execution, the action is still labelled successful. ",
347
+ "bbox": [
348
+ 173,
349
+ 883,
350
+ 820,
351
+ 911
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "image",
357
+ "img_path": "images/efe765ee9a3b99303a143f68f7f6fecb4d21cfe9b47261f595516ad5f66408c4.jpg",
358
+ "image_caption": [
359
+ "Figure 2: We visualize an execution of an RL agent trained to solve a cabinet opening task from sparse rewards using robot action primitives. At each time-step, we display the primitive chosen, the policy’s confidence in the action choice and the corresponding argument passed to the primitive in the bottom left corner. "
360
+ ],
361
+ "image_footnote": [],
362
+ "bbox": [
363
+ 176,
364
+ 89,
365
+ 821,
366
+ 181
367
+ ],
368
+ "page_idx": 4
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "",
373
+ "bbox": [
374
+ 174,
375
+ 250,
376
+ 825,
377
+ 375
378
+ ],
379
+ "page_idx": 4
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "We describe a concrete example to ground the description of our framework. If we have 10 primitives with 3 arguments each, the higher level policy network outputs 30 dimensional mean and standard deviation vectors from which we sample a 30 dimensional argument vector. It also outputs a 10 dimensional logit vector from which we sample a 10 dimensional one-hot vector. Therefore in total, our action space would be 40 dimensional. The environment takes in the 40 dimensional vector and selects the appropriate argument (3-dimensional vector) from the argument vector based on the one-hot vector over primitives and executes the corresponding primitive in the environment. Using this policy architecture and primitive execution format, we train standard RL agents to solve manipulation tasks from sparse rewards. See Figure 2 for a visualization of a full trajectory of a policy solving a hinge cabinet opening task in the Kitchen Suite with RAPS. ",
384
+ "bbox": [
385
+ 174,
386
+ 381,
387
+ 825,
388
+ 520
389
+ ],
390
+ "page_idx": 4
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "4 Experimental Setup ",
395
+ "text_level": 1,
396
+ "bbox": [
397
+ 174,
398
+ 542,
399
+ 372,
400
+ 559
401
+ ],
402
+ "page_idx": 4
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "In order to perform a robust evaluation of robot action primitives and prior work, we select a set of challenging robotic control tasks, define our environmental setup, propose appropriate metrics for evaluating different action spaces, and summarize our baselines for comparison. ",
407
+ "bbox": [
408
+ 174,
409
+ 566,
410
+ 823,
411
+ 608
412
+ ],
413
+ "page_idx": 4
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "Tasks and Environments: We evaluate RAPS on three simulated domains: Metaworld [17], Kitchen [52] and Robosuite [54], containing 16 tasks with varying levels of difficulty, realism and task diversity (see the bottom half of Fig. 1). We use the Kitchen environment because it contains seven different subtasks within a single setting, contains human demonstration data useful for training learned skills and contains tasks that require chaining together up to four subtasks to solve. In particular, learning such temporally-extended behavior is challenging [2, 17, 35]. Next, we evaluate on the Metaworld benchmark suite due to its wide range of manipulation tasks and established presence in the RL community. We select a subset of tasks from Metaworld (see appendix) with different solution behaviors to robustly evaluate the impact of primitives on RL. Finally, one limitation of the two previous domains is that the underlying end-effector control is implemented via a simulation constraint as opposed to true position control by applying torques to the robot. In order to evaluate if primitives would scale to more realistic learning setups, we test on Robosuite, a benchmark of robotic manipulation tasks which emphasizes realistic simulation and control. We select the block lifting and door opening environments which have been demonstrated to be solvable in prior work [54]. We refer the reader to the appendix for a detailed description of each environment. ",
418
+ "bbox": [
419
+ 174,
420
+ 614,
421
+ 825,
422
+ 821
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "Sparse Reward and Image Observations We modify each task to use the environment success metric as a sparse reward which returns 1 when the task is achieved, and 0 otherwise. We do so in order to establish a more realistic and difficult exploration setting than dense rewards which require significant engineering effort and true state information to compute. Additionally, we plot all results against the mean task success rate since it is a directly interpretable measure of the agent’s performance. We run each method using visual input as we wish to bring our evaluation setting closer to real world setups. The higher level policy, primitives and baseline methods are not provided access to the world state, only camera observations and robot state depending on the action. ",
429
+ "bbox": [
430
+ 174,
431
+ 828,
432
+ 823,
433
+ 911
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "",
440
+ "bbox": [
441
+ 173,
442
+ 92,
443
+ 821,
444
+ 119
445
+ ],
446
+ "page_idx": 5
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "Evaluation Metrics One challenge when evaluating hierarchical action spaces such as RAPS alongside a variety of different learned skills and action parameterizations, is that of defining a fair and meaningful definition of sample efficiency. We could define one sample to be a forward pass through the RL policy. For low-level actions this is exactly the sample efficiency, for higher level actions this only measures how often the policy network makes decisions, which favors actions with a large number of low-level actions without regard for controller run-time cost, which can be significant. Alternatively, we could define one sample to be a single low-level action output by a low-level controller. This metric would accurately determine how often the robot itself acts in the world, but it can make high level actions appear deceptively inefficient. Higher level actions execute far fewer forward passes of the policy in each episode which can result in faster execution on a robot when operating over visual observations, a key point low-level sample efficiency fails to account for. We experimentally verify this point by running RAPS and raw actions on a real $\\mathrm { x A r m } \\ : 6$ robot with visual RL and finding that RAPS executes each trajectory $\\mathbf { 3 2 x }$ times faster than raw actions. We additionally verify that RAPS is efficient with respect to low level steps in Figure 4. ",
451
+ "bbox": [
452
+ 174,
453
+ 127,
454
+ 825,
455
+ 320
456
+ ],
457
+ "page_idx": 5
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "To ensure fair comparison across methods, we instead propose to perform evaluations with respect to two metrics, namely, (a) Wall-clock Time: the amount of total time it takes to train the agent to solve the task, both interaction time and time spent updating the agent, and (b) Training Steps: the number of gradient steps taken with a fixed batch size. Wall clock time is not inherently tied to the action space and provides an interpretable number for how long it takes for the agent to learn the task. To ensure consistency, we evaluate all methods on a single RTX 2080 GPU with 10 CPUs and 50GB of memory. However, this metric is not sufficient since there are several possible factors that can influence wall clock time which can be difficult to disambiguate, such as the effect of external processes, low-level controller execution speed, and implementation dependent details. As a result, we additionally compare methods based on the number of training steps, a proxy for data efficiency. The number of network updates is only a function of the data; it is independent of the action space, machine and simulator, making it a non-transient metric for evaluation. The combination of the two metrics provides a holistic method of comparing the performance of different action spaces and skills operating on varying frequencies and horizons. ",
462
+ "bbox": [
463
+ 174,
464
+ 327,
465
+ 825,
466
+ 520
467
+ ],
468
+ "page_idx": 5
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "Baselines The simplest baseline we consider is the default action space of the environment, which we denote as Raw Actions. One way to improve upon the raw action space is to train a policy to output the parameters of the underlying controller alongside the actual input commands. This baseline, VICES [30], enables the agent to tune the controller automatically depending on the task. Alternatively, one can use unsupervised skill extraction to generate higher level actions which can be leveraged by downstream RL. We evaluate one such method, Dyn- $\\mathbf { E }$ [49], which trains an observation and action representation from random policy data such that the subsequent state is predictable from the embeddings of the previous observation and action. A more data-driven approach to learning skills involves organizing demonstration data into a latent skill space. Since the dataset is guaranteed to contain meaningful behaviors, it is more likely that the extracted skills will be useful for downstream tasks. We compare against SPIRL [35], a method that ingests a demonstration dataset to train a fixed length skill VAE $z = e ( a _ { 1 : H } ) , a _ { 1 : H } = d ( z )$ and prior over skills $p ( z | s )$ , which is used to guide downstream RL. Additionally, we compare against PARROT [44], which trains an observation conditioned flow model on an offline dataset to map from the raw action space to a latent action space. In the next section, we demonstrate the performance of our RAPS against these methods across a diverse set of sparse reward manipulation tasks. ",
473
+ "bbox": [
474
+ 173,
475
+ 526,
476
+ 825,
477
+ 747
478
+ ],
479
+ "page_idx": 5
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "5 Experimental Evaluation of RAPS ",
484
+ "text_level": 1,
485
+ "bbox": [
486
+ 173,
487
+ 770,
488
+ 493,
489
+ 787
490
+ ],
491
+ "page_idx": 5
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "We evaluate the efficacy of RAPS on three different settings: single task reinforcement learning across Kitchen, Metaworld and Robosuite, as well as hierarchical control and unsupervised exploration in the Kitchen environment. We observe across all evaluated settings, RAPS is robust, efficient and performant, in direct contrast to a wide variety of learned skills and action parameterizations. ",
496
+ "bbox": [
497
+ 174,
498
+ 806,
499
+ 825,
500
+ 862
501
+ ],
502
+ "page_idx": 5
503
+ },
504
+ {
505
+ "type": "image",
506
+ "img_path": "images/e879a3118ac1ababfff61db02ef69fab84f97cb4fa943473af4a79c126459e6b.jpg",
507
+ "image_caption": [
508
+ "Figure 3: Comparison of various action parameterizations and RAPS across all three environment suites3using Dreamer as the underlying RL algorithm. RAPS (green), with sparse rewards, is able to significantly outperform all baselines, particularly on the more challenging tasks, even when they are augmented with dense reward. See the appendix for remaining plots on the slide-cabinet and soccer-v2 tasks. "
509
+ ],
510
+ "image_footnote": [],
511
+ "bbox": [
512
+ 174,
513
+ 82,
514
+ 818,
515
+ 407
516
+ ],
517
+ "page_idx": 6
518
+ },
519
+ {
520
+ "type": "image",
521
+ "img_path": "images/ed5ca959fb7f07f53782ab1c3443101102524c20d5359a43fc240c6eb4a5a2d6.jpg",
522
+ "image_caption": [
523
+ "Figure 4: In the Kitchen environment suite, we run comparisons logging the number of low level interactions of RAPS, Raw actions and VICES. While the methods appear closer in efficiency with respect to low-level actions, RAPS still maintains the best performance across every task. We note that on a real robot, RAPS runs significantly faster than the raw action space in terms of wall-clock time. "
524
+ ],
525
+ "image_footnote": [],
526
+ "bbox": [
527
+ 178,
528
+ 479,
529
+ 816,
530
+ 594
531
+ ],
532
+ "page_idx": 6
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "5.1 Accelerating Single Task RL using RAPS ",
537
+ "text_level": 1,
538
+ "bbox": [
539
+ 173,
540
+ 681,
541
+ 500,
542
+ 696
543
+ ],
544
+ "page_idx": 6
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "In this section, we evaluate the performance of RAPS against fixed and variable transformations of the lower-level action space as well as state of the art unsupervised skill extraction from demonstrations. Due to space constraints, we show performance against the number of training steps in the appendix. ",
549
+ "bbox": [
550
+ 174,
551
+ 704,
552
+ 823,
553
+ 746
554
+ ],
555
+ "page_idx": 6
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "Action Parameterizations We compare RAPS against Raw Actions and VICES using Dreamer [18] as the underlying algorithm across all three environment suites in Figure 3. Since we observe weak performance on the default action space of Kitchen, joint velocity control, we instead modify the suite to use 6DOF end-effector control for both raw actions and VICES. We find Raw Actions and VICES are able to make progress on a number of tasks across all three domains, but struggle to execute the fine-grained manipulation required to solve more difficult environments such as hinge-cabinet, assembly-v2 and disassembly-v2. The latter two environments are not solved by Raw Actions or VICES even when they are provided dense rewards. In contrast, RAPS is able to quickly solve every task from sparse rewards. ",
560
+ "bbox": [
561
+ 173,
562
+ 752,
563
+ 825,
564
+ 877
565
+ ],
566
+ "page_idx": 6
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "On the kitchen environment, from sparse rewards, no prior method makes progress on the hardest manipulation task: grasping the hinge cabinet and pulling it open to 90 degrees, while RAPS is able to quickly learn to solve the task. In the Metaworld domain, peg-unplug-side-v2, assembly-v2 and disassembly-v2 are difficult environments which present a challenge to even dense reward state based RL [52]. However, RAPS is able to solve all three tasks with sparse rewards directly from image input. We additionally include a comparison of RAPS against Raw Actions on all 50 Metaworld tasks with final performance shown in Figure 6 as well as the full learning performance in the Appendix. RAPS is able to learn to solve or make progress on 43 out of 50 tasks purely from sparse rewards. Finally, in the Robosuite domain, by leveraging robot action primitives, we are able to learn to solve the tasks more rapidly than raw actions or VICES, with respect to wall-clock time and number of training steps, demonstrating that RAPS scales to more realistic robotic controllers. ",
571
+ "bbox": [
572
+ 174,
573
+ 883,
574
+ 821,
575
+ 911
576
+ ],
577
+ "page_idx": 6
578
+ },
579
+ {
580
+ "type": "image",
581
+ "img_path": "images/1beb979a93352e371b5369b8e1b96fc0f71e3d3e87ad60143029db346c4b6417.jpg",
582
+ "image_caption": [
583
+ "Figure 5: Comparison of RAPS and skill learning methods on the Kitchen domain using SAC as the underlying RL algorithm. While SPIRL and PARROT are competitive or even improve upon RAPS’s performance on easier tasks, only RAPS (green) is able to solve top-left-burner and hinge-cabinet. "
584
+ ],
585
+ "image_footnote": [],
586
+ "bbox": [
587
+ 178,
588
+ 85,
589
+ 818,
590
+ 196
591
+ ],
592
+ "page_idx": 7
593
+ },
594
+ {
595
+ "type": "table",
596
+ "img_path": "images/e9ece6bcb7e478e2e6785733ac9072427f4b749053943208f9198555a3f39585.jpg",
597
+ "table_caption": [
598
+ "Table 1: Evaluation of RAPS across RL algorithms (Dreamer, PPO, SAC) on Kitchen. We report the final success rate of each method on five evaluation trials trained over three seeds from sparse rewards. While raw action performance (left entry) varies significantly across RL algorithms, RAPS (right entry) is able to achieve high success rates on every task with every RL algorithm. "
599
+ ],
600
+ "table_footnote": [],
601
+ "table_body": "<table><tr><td rowspan=2 colspan=1>RL Algorithm</td><td rowspan=2 colspan=12>Kettle Slide CabinetLight Switch Microwave Top Burner Hinge CabinetRaw RAPS Raw RAPS Raw RAPS Raw RAPS Raw RAPS Raw RAPS</td></tr><tr><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td><td rowspan=1 colspan=1>RAPS</td><td rowspan=1 colspan=1>Raw</td></tr><tr><td rowspan=1 colspan=1>Dreamer</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.93</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.53</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.93</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>.67</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.86</td><td rowspan=1 colspan=1>.67</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>.33</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.66</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>.27</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>.66</td><td rowspan=1 colspan=1>.27</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>1.0</td></tr></table>",
602
+ "bbox": [
603
+ 173,
604
+ 257,
605
+ 823,
606
+ 337
607
+ ],
608
+ "page_idx": 7
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "",
613
+ "bbox": [
614
+ 173,
615
+ 421,
616
+ 825,
617
+ 546
618
+ ],
619
+ "page_idx": 7
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Offline Learned Skills An alternative point of comparison is to leverage offline data to learn skills and run downstream RL. We train SPIRL and PARROT from images using the kitchen demonstration datasets in D4RL [16], and Dyn-E with random interaction data. We run all agents with SAC as the underlying RL algorithm and extract learned skills using joint velocity control, the type of action present in the demonstrations. See Figure 5 for the comparison of RAPS against learned skills. Dyn-E is unable to make progress across any of the domains due to the difficulty of extracting useful skills from highly unstructured interaction data. In contrast, SPIRL and PARROT manage to leverage demonstration data to extract useful skills; they are competitive or even improve upon RAPS on the easier tasks such as microwave and kettle, but struggle to make progress on the more difficult tasks in the suite. PARROT, in particular, exhibits a great deal of variance across tasks, especially with SAC, so we include results using Dreamer as well. We note that both SPIRL and PARROT are limited by the tasks which are present in the demonstration dataset and unable to generalize their extracted skills to other tasks in the same environment or other domains. In contrast, parameterized primitives are able to solve all the kitchen tasks and are re-used across domains as shown in Figure 3. ",
624
+ "bbox": [
625
+ 173,
626
+ 553,
627
+ 825,
628
+ 746
629
+ ],
630
+ "page_idx": 7
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "Generalization to different RL algorithms A generic set of skills should maintain performance regardless of the underlying RL algorithm. In this section, we evaluate the performance of RAPS against Raw Actions on three types of RL algorithms: model based (Dreamer), off-policy model free (SAC) and on-policy model free (PPO) on the Kitchen tasks. We use the end-effector version of raw actions as our point of comparison on these tasks. As seen in Table 1, unlike raw actions, RAPS is largely agnostic to the underlying RL algorithm. ",
635
+ "bbox": [
636
+ 174,
637
+ 752,
638
+ 825,
639
+ 835
640
+ ],
641
+ "page_idx": 7
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "5.2 Enabling Hierarchical Control via RAPS ",
646
+ "text_level": 1,
647
+ "bbox": [
648
+ 173,
649
+ 848,
650
+ 498,
651
+ 863
652
+ ],
653
+ "page_idx": 7
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "We next apply RAPS to a more complex setting: sequential RL, in which the agent must learn to solve multiple subtasks within a single episode, as opposed to one task. We evaluate on the Kitchen Multi-Task environments and plot performance across SAC, Dreamer, and PPO in Figure 7. ",
658
+ "bbox": [
659
+ 176,
660
+ 869,
661
+ 825,
662
+ 911
663
+ ],
664
+ "page_idx": 7
665
+ },
666
+ {
667
+ "type": "image",
668
+ "img_path": "images/88134cf6330a3e7cce1f6ac5e9b73ce0556bb75797492920fc80f7eedb49e6ca.jpg",
669
+ "image_caption": [
670
+ "Figure 6: Final performance results for single task RL on the Metaworld domain after 3 days of training using the Dreamer base algorithm. RAPS is able to successfully learn most tasks, solving 43 out of 50 tasks while Raw Actions is only able to solve 21 tasks. "
671
+ ],
672
+ "image_footnote": [],
673
+ "bbox": [
674
+ 173,
675
+ 87,
676
+ 826,
677
+ 308
678
+ ],
679
+ "page_idx": 8
680
+ },
681
+ {
682
+ "type": "image",
683
+ "img_path": "images/f91aef47a11d4c00510750e156d79454264b37d0686bccb001cb98b6204fc7f0.jpg",
684
+ "image_caption": [
685
+ "Figure 7: Learning performance of RAPS on sequential multi-task RL. Each row plots a different base RL algorithm (SAC, Dreamer, PPO) while the first two columns plot the two multi-task environment results against wall-clock time and the next two columns plot against number of updates, i.e. training steps. RAPS consistently solves at least three out of four subtasks while prior methods generally fail to make progress beyond one or two. "
686
+ ],
687
+ "image_footnote": [],
688
+ "bbox": [
689
+ 171,
690
+ 366,
691
+ 807,
692
+ 684
693
+ ],
694
+ "page_idx": 8
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "Raw Actions prove to be a strong baseline, eventually solving close to three subtasks on average, while requiring significantly more wall-clock time and training steps. SPIRL initially shows strong performance but after solving one to two subtasks it then plateaus and fails to improve. PARROT is less efficient than SPIRL but also able to make progress on up to two subtasks, though it exhibits a great deal of sensitivity to the underlying RL algorithm. For both of the offline skill learning methods, they struggle to solve any of the subtasks outside of kettle, microwave, and slide-cabinet which are encompassed in the demonstration dataset. Meanwhile, with RAPS, across all three base RL algorithms, we observe that the agents are able to leverage the primitive library to rapidly solve three out of four subtasks and continue to improve. This result demonstrates that RAPS can elicit significant gains in hierarchical RL performance through its improved exploratory behavior. ",
699
+ "bbox": [
700
+ 173,
701
+ 772,
702
+ 825,
703
+ 911
704
+ ],
705
+ "page_idx": 8
706
+ },
707
+ {
708
+ "type": "image",
709
+ "img_path": "images/b44b0d74463208ab327bfbcc5f57c5fc16103db92a1bf28a4e48c5e058d29c00.jpg",
710
+ "image_caption": [
711
+ "Figure 8: RAPS significantly outperforms raw actions in terms of total wall clock time and number of updates when fine-tuning initialized from reward free exploration. "
712
+ ],
713
+ "image_footnote": [],
714
+ "bbox": [
715
+ 178,
716
+ 85,
717
+ 818,
718
+ 198
719
+ ],
720
+ "page_idx": 9
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "5.3 Leveraging RAPS to enable efficient unsupervised exploration ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 174,
728
+ 256,
729
+ 643,
730
+ 271
731
+ ],
732
+ "page_idx": 9
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "In many settings, sparse rewards themselves can be hard to come by. Ideally, we would be able to train robot without train time task rewards for large periods of time and fine-tune to solve new tasks with only a few supervised labels. We use the kitchen environment to test the efficacy of primitives on the task of unsupervised exploration. We run an unsupervised exploration algorithm, Plan2explore [38], for a fixed number of steps to learn a world model, and then fine-tune the model and train a policy using Dreamer to solve specific tasks. We plot the results in Figure 8 on the top-left-burner and hinge-cabinet tasks. RAPS enables the agent to learn an effective world model that results in rapid learning of both tasks, requiring only 1 hour of fine-tuning to solve the hinge-cabinet task. Meanwhile, the world model learned by exploring with raw actions is unable to quickly finetune as quickly. We draw two conclusions from these results, a) RAPS enables more efficient exploration than raw actions, b) RAPS facilitates efficient model fitting, resulting in rapid fine-tuning. ",
737
+ "bbox": [
738
+ 173,
739
+ 277,
740
+ 825,
741
+ 429
742
+ ],
743
+ "page_idx": 9
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "6 Discussion ",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 173,
751
+ 452,
752
+ 292,
753
+ 468
754
+ ],
755
+ "page_idx": 9
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Limitations and Future Work While we demonstrate that RAPS is effective at solving a diverse array of manipulation tasks from visual input, there are several limitations that future work would need to address. One issue to consider is that of dynamic, fluid motions. Currently, once a primitive begins executing, it will not stop until its horizon is complete, which prevents dynamic behavior that a feedback policy on the raw action space could achieve. In the context of RAPS, integrating the parameterization and environment agnostic properties of robot action primitives with standard feedback policies could be one way to scale RAPS to more dynamic tasks. Another potential concern is that of expressivity: the set of primitives we consider in this work cannot express all possible motions that robot might need to execute. As discussed in Section 3, we do combine the base actions with primitives via a dummy primitive so that the policy can fall back to default action space if necessary. Future work could improve upon our simple solution. Finally, more complicated robot morphologies may require significant domain knowledge in order to design primitive behaviors. In this setting, we believe that learned skills with the agent-centric structure of robot action primitives could be an effective way to balance between the difficulty of learning policies to control complex robot morphologies [4, 33] and the time needed to manually define primitives. ",
760
+ "bbox": [
761
+ 174,
762
+ 474,
763
+ 825,
764
+ 683
765
+ ],
766
+ "page_idx": 9
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Conclusion In this work we present an extensive evaluation of RAPS, which leverages parameterized actions to learn high level policies that can quickly solve robotics tasks across three different environment suites. We show that standard methods of re-parameterizing the action space and learning skills from demonstrations are environment and domain dependent. In many cases, prior methods are unable to match the performance of robot action primitives. While primitives are not a general solution to every task, their success across a wide range of environments illustrates the utility of incorporating an agent-centric structure into the robot action space. Given the effectiveness of simple parameterized action primitives, a promising direction to further investigate would be how to best incorporate agent-centric structure into both learned and manually defined skills and attempt to get the best of both worlds in order to improve the interface of RL algorithms with robots. ",
771
+ "bbox": [
772
+ 173,
773
+ 689,
774
+ 825,
775
+ 827
776
+ ],
777
+ "page_idx": 9
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "Acknowledgments We thank Shikhar Bahl, Ben Eyesenbach, Aravind Sivakumar, Rishi Veerapaneni, Russell Mendonca and Paul Liang for feedback on early drafts of this paper. This work was supported in part by NSF IIS1763562, NSF IIS-2024594, and ONR Grant N000141812861, and the US Army. Additionally, MD is supported by the NSF Graduate Fellowship. We would also like to acknowledge NVIDIA’s GPU support. ",
782
+ "bbox": [
783
+ 174,
784
+ 842,
785
+ 825,
786
+ 911
787
+ ],
788
+ "page_idx": 9
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "References ",
793
+ "text_level": 1,
794
+ "bbox": [
795
+ 174,
796
+ 89,
797
+ 267,
798
+ 106
799
+ ],
800
+ "page_idx": 10
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "[1] J. Achiam, H. Edwards, D. Amodei, and P. Abbeel. Variational option discovery algorithms. arXiv preprint arXiv:1807.10299, 2018. 3 \n[2] A. Ajay, A. Kumar, P. Agrawal, S. Levine, and O. Nachum. Opal: Offline primitive discovery for accelerating offline reinforcement learning, 2021. 3, 5 \n[3] A. Allshire, R. Martín-Martín, C. Lin, S. Manuel, S. Savarese, and A. Garg. Laser: Learning a latent action space for efficient reinforcement learning. arXiv preprint arXiv:2103.15793, 2021. 2 \n[4] O. M. Andrychowicz, B. Baker, M. Chociej, R. Jozefowicz, B. McGrew, J. Pachocki, A. Petron, M. Plappert, G. Powell, A. Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 39(1):3–20, 2020. 1, 10 \n[5] P.-L. Bacon, J. Harb, and D. Precup. The option-critic architecture. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. 3 \n[6] S. Bahl, M. Mukadam, A. Gupta, and D. Pathak. Neural dynamic policies for end-to-end sensorimotor learning, 2020. 3 \n[7] A. Bemporad and M. Morari. Control of systems integrating logic, dynamics, and constraints. Automatica, 35(3):407–427, 1999. 3 \n[8] M. S. Branicky, V. S. Borkar, and S. K. Mitter. A unified framework for hybrid control: Model and optimal control theory. IEEE transactions on automatic control, 43(1):31–45, 1998. 3 \n[9] S. Cambon, R. Alami, and F. Gravot. A hybrid approach to intricate motion, manipulation and task planning. The International Journal of Robotics Research, 28(1):104–126, 2009. 3 \n[10] R. Chitnis, S. Tulsiani, S. Gupta, and A. Gupta. Efficient bimanual manipulation using learned task schemas. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 1149–1155. IEEE, 2020. 3, 5 \n[11] C. Daniel, G. Neumann, O. Kroemer, J. Peters, et al. Hierarchical relative entropy policy search. Journal of Machine Learning Research, 17:1–50, 2016. 3 \n[12] B. Eysenbach, A. Gupta, J. Ibarz, and S. Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018. 3 \n[13] Z. Fan, R. Su, W. Zhang, and Y. Yu. Hybrid actor-critic reinforcement learning in parameterized action space. arXiv preprint arXiv:1903.01344, 2019. 3 \n[14] K. Frans, J. Ho, X. Chen, P. Abbeel, and J. Schulman. Meta learning shared hierarchies. arXiv preprint arXiv:1710.09767, 2017. 2, 3 \n[15] H. Fu, H. Tang, J. Hao, Z. Lei, Y. Chen, and C. Fan. Deep multi-agent reinforcement learning with discrete-continuous hybrid action spaces. arXiv preprint arXiv:1903.04959, 2019. 3 \n[16] J. Fu, A. Kumar, O. Nachum, G. Tucker, and S. Levine. D4rl: Datasets for deep data-driven reinforcement learning, 2021. 8 \n[17] A. Gupta, V. Kumar, C. Lynch, S. Levine, and K. Hausman. Relay policy learning: Solving long-horizon tasks via imitation and reinforcement learning, 2019. 5 \n[18] D. Hafner, T. Lillicrap, J. Ba, and M. Norouzi. Dream to control: Learning behaviors by latent imagination, 2020. 7 \n[19] M. Hausknecht and P. Stone. Deep reinforcement learning in parameterized action space. arXiv preprint arXiv:1511.04143, 2015. 2, 3 \n[20] K. Hausman, J. T. Springenberg, Z. Wang, N. Heess, and M. Riedmiller. Learning an embedding space for transferable robot skills. In International Conference on Learning Representations, 2018. 2 \n[21] A. J. Ijspeert, J. Nakanishi, and S. Schaal. Learning attractor landscapes for learning motor primitives. Technical report, 2002. 3 \n[22] L. P. Kaelbling and T. Lozano-Pérez. Hierarchical task and motion planning in the now. In 2011 IEEE International Conference on Robotics and Automation, pages 1470–1477. IEEE, 2011. 2, 3 \n[23] L. P. Kaelbling and T. Lozano-Pérez. Learning composable models of parameterized skills. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 886–893. IEEE, 2017. 3 \n[24] D. Kalashnikov, A. Irpan, P. Pastor, J. Ibarz, A. Herzog, E. Jang, D. Quillen, E. Holly, M. Kalakrishnan, V. Vanhoucke, et al. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation. arXiv preprint arXiv:1806.10293, 2018. 1 \n[25] J. Kober and J. Peters. Learning motor primitives for robotics. In 2009 IEEE International Conference on Robotics and Automation, pages 2112–2118. IEEE, 2009. 3 \n[26] S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016. 1 \n[27] A. C. Li, C. Florensa, I. Clavera, and P. Abbeel. Sub-policy adaptation for hierarchical reinforcement learning. arXiv preprint arXiv:1906.05862, 2019. 2, 3 \n[28] C. Lynch and P. Sermanet. Grounding language in play. arXiv preprint arXiv:2005.07648, 2020. 3 \n[29] C. Lynch, M. Khansari, T. Xiao, V. Kumar, J. Tompson, S. Levine, and P. Sermanet. Learning latent plans from play. In Conference on Robot Learning, pages 1113–1132. PMLR, 2020. 2, 3 \n[30] R. Martín-Martín, M. A. Lee, R. Gardner, S. Savarese, J. Bohg, and A. Garg. Variable impedance control in end-effector space: An action space for reinforcement learning in contact-rich tasks, 2019. 6 \n[31] W. Masson, P. Ranchod, and G. Konidaris. Reinforcement learning with parameterized actions. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016. 3 \n[32] O. Nachum, S. Gu, H. Lee, and S. Levine. Data-efficient hierarchical reinforcement learning. arXiv preprint arXiv:1805.08296, 2018. 2 \n[33] A. Nagabandi, K. Konolige, S. Levine, and V. Kumar. Deep dynamics models for learning dexterous manipulation. In Conference on Robot Learning, pages 1101–1112. PMLR, 2020. 10 \n[34] S. Nasiriany, H. Liu, and Y. Zhu. Augmenting reinforcement learning with behavior primitives for diverse manipulation tasks, 2021. 3 \n[35] K. Pertsch, Y. Lee, and J. J. Lim. Accelerating reinforcement learning with learned skill priors, 2020. 3, 5, 6 \n[36] J. Peters, K. Mulling, and Y. Altun. Relative entropy policy search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 24, 2010. 3 \n[37] S. Schaal. Dynamic movement primitives-a framework for motor control in humans and humanoid robotics. In Adaptive motion of animals and machines, pages 261–280. Springer, 2006. 3 \n[38] R. Sekar, O. Rybkin, K. Daniilidis, P. Abbeel, D. Hafner, and D. Pathak. Planning to explore via self-supervised world models, 2020. 10 \n[39] T. Shankar and A. Gupta. Learning robot skills with temporal variational inference. In International Conference on Machine Learning, pages 8624–8633. PMLR, 2020. 3 \n[40] T. Shankar, S. Tulsiani, L. Pinto, and A. Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2019. 2, 3 \n[41] A. Sharma, S. Gu, S. Levine, V. Kumar, and K. Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019. 2, 3 \n[42] M. Sharma, J. Liang, J. Zhao, A. LaGrassa, and O. Kroemer. Learning to compose hierarchical object-centric controllers for robotic manipulation. arXiv preprint arXiv:2011.04627, 2020. 3 \n[43] A. Simeonov, Y. Du, B. Kim, F. R. Hogan, J. Tenenbaum, P. Agrawal, and A. Rodriguez. A long horizon planning framework for manipulating rigid pointcloud objects. arXiv preprint arXiv:2011.08177, 2020. 3 \n[44] A. Singh, H. Liu, G. Zhou, A. Yu, N. Rhinehart, and S. Levine. Parrot: Data-driven behavioral priors for reinforcement learning. arXiv preprint arXiv:2011.10024, 2020. 3, 6 \n[45] R. S. Sutton, D. Precup, and S. Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999. 3 \n[46] D. Tanneberg, K. Ploeger, E. Rueckert, and J. Peters. Skid raw: Skill discovery from raw trajectories. IEEE Robotics and Automation Letters, 6(3):4696–4703, 2021. 3 \n[47] A. S. Vezhnevets, S. Osindero, T. Schaul, N. Heess, M. Jaderberg, D. Silver, and K. Kavukcuoglu. Feudal networks for hierarchical reinforcement learning. In International Conference on Machine Learning, pages 3540–3549. PMLR, 2017. 2 \n[48] E. Wei, D. Wicke, and S. Luke. Hierarchical approaches for reinforcement learning in parameterized action space. arXiv preprint arXiv:1810.09656, 2018. 3 \n[49] W. Whitney, R. Agarwal, K. Cho, and A. Gupta. Dynamics-aware embeddings, 2020. 3, 6 \n[50] K. Xie, H. Bharadhwaj, D. Hafner, A. Garg, and F. Shkurti. Latent skill planning for exploration and transfer. In International Conference on Learning Representations, 2020. 2 \n[51] J. Xiong, Q. Wang, Z. Yang, P. Sun, L. Han, Y. Zheng, H. Fu, T. Zhang, J. Liu, and H. Liu. Parametrized deep q-networks learning: Reinforcement learning with discrete-continuous hybrid action space. arXiv preprint arXiv:1810.06394, 2018. 3 \n[52] T. Yu, D. Quillen, Z. He, R. Julian, K. Hausman, C. Finn, and S. Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning, pages 1094–1100. PMLR, 2020. 5, 8 \n[53] W. Zhou, S. Bajracharya, and D. Held. Plas: Latent action space for offline reinforcement learning. arXiv preprint arXiv:2011.07213, 2020. 3 \n[54] Y. Zhu, J. Wong, A. Mandlekar, and R. Martín-Martín. robosuite: A modular simulation framework and benchmark for robot learning, 2020. 5 ",
805
+ "bbox": [
806
+ 171,
807
+ 97,
808
+ 828,
809
+ 916
810
+ ],
811
+ "page_idx": 10
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "",
816
+ "bbox": [
817
+ 171,
818
+ 78,
819
+ 828,
820
+ 919
821
+ ],
822
+ "page_idx": 11
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "",
827
+ "bbox": [
828
+ 169,
829
+ 85,
830
+ 828,
831
+ 657
832
+ ],
833
+ "page_idx": 12
834
+ }
835
+ ]
parse/train/48uzkHOKMfz/48uzkHOKMfz_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/48uzkHOKMfz/48uzkHOKMfz_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkgk624KDB/Bkgk624KDB.md ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING EFFECTIVE EXPLORATION STRATEGIES FOR CONTEXTUAL BANDITS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In contextual bandits, an algorithm must choose actions given observed contexts, learning from a reward signal that is observed only for the action chosen. This leads to an exploration/exploitation trade-off: the algorithm must balance taking actions it already believes are good with taking new actions to potentially discover better choices. We develop a meta-learning algorithm, MELˆ EE´ , that learns an exploration policy based on simulated, synthetic contextual bandit tasks. MELˆ EE´ uses imitation learning against these simulations to train an exploration policy that can be applied to true contextual bandit tasks at test time. We evaluate on both a natural contextual bandit problem derived from a learning to rank dataset as well as hundreds of simulated contextual bandit problems derived from classification tasks. MELˆ EE´ outperforms seven strong baselines on most of these datasets by leveraging a rich feature representation for learning an exploration strategy.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ In a contextual bandit problem, an agent attempts to optimize its behavior over a sequence of rounds based on limited feedback (Kaelbling, 1994; Auer, 2003; Langford & Zhang, 2008). In each round, the agent chooses an action based on a context (features) for that round, and observes a reward for that action but no others $( \ S 2 )$ . Contextual bandit problems arise in many real-world settings like online recommendations and personalized medicine. As in reinforcement learning, the agent must learn to balance exploitation (taking actions that, based on past experience, it believes will lead to high instantaneous reward) and exploration (trying actions that it knows less about).
12
+
13
+ In this paper, we present a meta-learning approach to automatically learn a good exploration mechanism from data. To achieve this, we use synthetic supervised learning data sets on which we can simulate contextual bandit tasks in an offline setting. Based on these simulations, our algorithm, MELˆ EE´ (MEta LEarner for Exploration)1, learns a good heuristic exploration strategy that should ideally generalize to future contextual bandit problems. MELˆ EE´ contrasts with more classical approaches to exploration (like $\epsilon$ -greedy or LinUCB; see $\ S 6$ ), in which exploration strategies are constructed by expert algorithm designers. These approaches often achieve provably good exploration strategies in the worst case, but are potentially overly pessimistic and are sometimes computationally intractable.
14
+
15
+ At training time (§ 3.2), MELˆ EE´ simulates many contextual bandit problems from fully labeled synthetic data. Using this data, in each round, MELˆ EE´ is able to counterfactually simulate what would happen under all possible action choices. We can then use this information to compute regret estimates for each action, which can be optimized using the AggreVaTe imitation learning algorithm (Ross & Bagnell, 2014). Our imitation learning strategy mirrors that of the meta-learning approach of Bachman et al. (2017) in the active learning setting. We present a simplified, stylized analysis of the behavior of MELˆ EE´ to ensure that our cost function encourages good behavior $( \ S 4 )$ . Empirically, we use MELˆ EE´ to train an exploration policy on only synthetic datasets and evaluate this policy on both a contextual bandit task based on a natural learning to rank dataset as well as three hundred simulated contextual bandit tasks (§5.2). We compare the trained policy to a number of alternative exploration algorithms, and show the efficacy of our approach (§5.3).
16
+
17
+ # 2 PRELIMINARIES: CONTEXTUAL BANDITS AND POLICY OPTIMIZATION
18
+
19
+ Contextual bandits is a model of interaction in which an agent chooses actions (based on contexts) and receives immediate rewards for that action alone. For example, in a simplified news personalization setting, at each time step $t$ , a user arrives and the system must choose a news article to display to them. Each possible news article corresponds to an action $a$ , and the user corresponds to a context $x _ { t }$ . After the system chooses an article $a _ { t }$ to display, it can observe, for instance, the amount of time that the user spends reading that article, which it can use as a reward $r _ { t } ( a _ { t } )$ .
20
+
21
+ Formally, we largely follow the setup and notation of Agarwal et al. (2014). Let $\mathcal { X }$ be an input space of contexts (users) and $[ K ] = \bar { \{ 1 , \dots , K \} }$ be a finite action space (articles). We consider the statistical setting in which there exists a fixed but unknown distribution $\mathcal { D }$ over pairs $( x , r ) \in$ $\mathcal { X } \times [ 0 , 1 ] ^ { K }$ , where $\pmb { r }$ is a vector of rewards (for convenience, we assume all rewards are bounded in $[ 0 , 1 ] )$ . In this setting, the world operates iteratively over rounds $t = 1 , 2 , \ldots .$ Each round $t$ :
22
+
23
+ 1. The world draws $( x _ { t } , r _ { t } ) \sim \mathcal { D }$ and reveals context $x _ { t }$ .
24
+ 2. The agent (randomly) chooses action $a _ { t } \in [ K ]$ based on $x _ { t }$ , and observes reward $r _ { t } ( a _ { t } )$ .
25
+
26
+ The goal of an algorithm is to maximize the cumulative sum of rewards over time. Typically the primary quantity considered is the average regret of a sequence of actions $a _ { 1 } , \dots , a _ { T }$ to the behavior of the best possible function in a prespecified class $\mathcal { F }$ :
27
+
28
+ $$
29
+ \lambda ( a _ { 1 } , \ldots , a _ { T } ) = \operatorname* { m a x } _ { f \in { \mathcal { F } } } { \frac { 1 } { T } } \sum _ { t = 1 } ^ { T } \left[ r _ { t } ( f ( x _ { t } ) ) - r _ { t } ( a _ { t } ) \right]
30
+ $$
31
+
32
+ An agent is call no-regret if its average regret is zero in the limit of large $T$
33
+
34
+ To produce a good agent for interacting with the world, we assume access to a function class $\mathcal { F }$ and to an oracle policy optimizer for that function class. For example, $\mathcal { F }$ may be a set of single layer neural networks mapping user features $x \in \mathcal { X }$ to predicted rewards for actions $a \in [ K ]$ . Formally, the observable record of interaction resulting from round $t$ is the tuple $( x _ { t } , a _ { t } , r _ { t } ( \bar { a } _ { t } ) , p _ { t } ( a _ { t } ) ) \ \in$ $\mathcal { X } { \times } [ K ] { \times } [ 0 , 1 ] { \times } [ 0 , 1 ]$ , where $p _ { t } ( a _ { t } )$ is the probability that the agent chose action $a _ { t }$ , and the full history of interaction is $h _ { t } = \langle ( x _ { i } , a _ { i } , r _ { i } ( a _ { i } ) , p _ { i } ( a _ { i } ) ) \rangle _ { i = 1 } ^ { t }$ . The oracle policy optimizer, POLOPT, takes as input a history of user interactions and outputs an $f \in { \mathcal { F } }$ with low expected regret.
35
+
36
+ A standard example of a policy optimizer is to combine inverse propensity scaling (IPS) with a regression algorithm (Dudik et al., 2011). Here, given a history $h$ , each tuple $( x , a , r , p )$ in that history is mapped to a multiple-output regression example. The input for this regression example is the same $x$ ; the output is a vector of $K$ costs, all of which are zero except the $a ^ { \mathrm { { t h } } }$ component, which takes value $r / p$ . This mapping is done for all tuples in the history, and a supervised learning algorithm on the function class $\mathcal { F }$ is used to produce a low-regret regressor $f$ . This is the function returned by the policy optimizer. IPS, and other estimators that have lower-variance than IPS (such as the doubly-robust estimator), have the property of being unbiased. In experiments, we use the direct method (Dudik et al., 2011) largely for its simplicity, however, MELˆ EE´ is agnostic to the type of the estimator used by the policy optimizer.
37
+
38
+ # 3 APPROACH: LEARNING AND EFFECTIVE EXPLORATION STRATEGY
39
+
40
+ In order to have an effective approach to the contextual bandit problem, one must be able to both optimize a policy based on historic data and make decisions about how to explore. The exploration/exploitation dilemma is fundamentally about long-term payoffs: is it worth trying something potentially suboptimal now in order to learn how to behave better in the future? A particularly simple and effective form of exploration is $\epsilon$ -greedy: given a function $f$ output by POLOPT, act according to $f ( x )$ with probability $( 1 - \epsilon )$ and act uniformly at random with probability . Intuitively, one would hope to improve on such a strategy by taking more (any!) information into account; for instance, basing the probability of exploration on $f$ ’s uncertainty. In this section, we describe MELˆ EE´ , first by describing how it operates at test time when applied to a new contextual bandit problem (§3.1), and then by describing how to train it using synthetic simulated contextual bandit problems $( \ S 3 . 2 )$ .
41
+
42
+ # 3.1 TEST TIME BEHAVIOR OF MELˆ EE´
43
+
44
+ Our goal in this paper is to learn how to explore from experience. The training procedure for MELˆ EE´ will use offline supervised learning problems to learn an exploration policy $\pi$ , which takes two inputs: a function $f \in { \mathcal { F } }$ and a context $x$ , and outputs an action. In our example, $f$ will be the output of the policy optimizer on all historic data, and $x$ will be the current user. This is used to produce an agent which interacts with the world, maintaining an initially empty history buffer $h$ , as:
45
+
46
+ 1. The world draws $( x _ { t } , r _ { t } ) \sim \mathcal { D }$ and reveals context $x _ { t }$ .
47
+ 2. The agent computes $f _ { t } \gets \mathrm { P O L O P T } ( h )$ and a greedy action $\tilde { a } _ { t } = \pi ( f _ { t } , x _ { t } )$ .
48
+ 3. The agent plays $a _ { t } = \tilde { a } _ { t }$ with probability $( 1 - \mu )$ , and $a _ { t }$ uniformly at random otherwise.
49
+ 4. The agent observes $r _ { t } ( a _ { t } )$ and appends $( x _ { t } , a _ { t } , r _ { t } ( a _ { t } ) , p _ { t } )$ to the history $h$ , where $\begin{array} { r l } { p _ { t } } & { { } = } \end{array}$
50
+ $\mu / K$ if $a _ { t } \neq \tilde { a } _ { t }$ ; and $p _ { t } = 1 - \mu + \mu / K$ if $a _ { t } = \tilde { a } _ { t }$ .
51
+
52
+ Here, $f _ { t }$ is the function optimized on the historical data, and $\pi$ uses it and $x _ { t }$ to choose an action. Intuitively, $\pi$ might choose to use the prediction $f _ { t } ( x _ { t } )$ most of the time, unless $f _ { t }$ is quite uncertain on this example, in which case $\pi$ might choose to return the second (or third) most likely action according to $f _ { t }$ . The agent then performs a small amount of additional $\mu$ -greedy-style exploration: most of the time it acts according to $\pi$ but occasionally it explores some more. In practice $( \ S 5 )$ , we find that setting $\mu = 0$ is optimal in aggregate, but non-zero $\mu$ is necessary for our theory $( \ S 4 )$ .
53
+
54
+ Importantly, we wish to train $\pi$ using one set of tasks (for which we have fully supervised data on which to run simulations) and apply it to wholly different tasks (for which we only have bandit feedback). To achieve this, we allow $\pi$ to depend representationally on $f _ { t }$ in arbitrary ways: for instance, it might use features that capture $f _ { t }$ ’s uncertainty on the current example (see $\ S 5 . 1$ for details). We additionally allow $\pi$ to depend in a task-independent manner on the history (for instance, which actions have not yet been tried): it can use features of the actions, rewards and probabilities in the history but not depend directly on the contexts $x$ . This is to ensure that $\pi$ only learns to explore and not also to solve the underlying task-dependent classification problem. Because $\pi$ needs to learn to be task independent, we found that if $f _ { t }$ ’s predictions were uncalibrated, it was very difficult for $\pi$ to generalize well to unseen tasks. Therefore, we additionally allow $\pi$ to depend on a very small amount of fully labeled data from the task at hand, which we use to allow $\pi$ to calibrate $f _ { t }$ ’s predictions. In our experiments we use only 30 fully labeled examples, but alternative approaches to calibrating $f _ { t }$ that do not require this data would be preferable.
55
+
56
+ # 3.2 TRAINING MELˆ EE BY ´ IMITATION LEARNING
57
+
58
+ The meta-learning challenge is: how do we learn a good exploration policy $\pi 2$ We assume we have access to fully labeled data on which we can train $\pi$ ; this data must include context/reward pairs, but where the reward for all actions is known. This is a weak assumption: in practice, we use purely synthetic data as this training data; one could alternatively use any fully labeled classification dataset (Beygelzimer & Langford, 2009). Under this assumption about the data, it is natural to think of $\pi$ ’s behavior as a sequential decision making problem in a simulated setting, for which a natural class of learning algorithms to consider are imitation learning algorithms (Daume et al., 2009; Ross ´ et al., 2011; Ross & Bagnell, 2014; Chang et al., 2015).2
59
+
60
+ Informally, at training time, MELˆ EE´ will treat one of these synthetic datasets as if it were a contextual bandit dataset. At each time step $t$ , it will compute $f _ { t }$ by running POLOPT on the historical data, and then ask: for each action, what would the long time reward look like if I were to take this action. Because the training data for MELˆ EE´ is fully labeled, this can be evaluated for each possible action, and a policy $\pi$ can be learned to maximize these rewards. More formally, in imitation learning, we assume training-time access to an expert, $\pi ^ { \star }$ , whose behavior we wish to learn to imitate at test-time. From this, we can define an optimal reference policy $\pi ^ { \star }$ , which effectively “cheats” at training time by looking at the true labels. The learning problem is then to estimate $\pi$ to have as similar behavior to $\pi ^ { \star }$ as possible, but without access to those labels.
61
+
62
+ The imitation learning algorithm we use is AggreVaTe (Ross & Bagnell, 2014) (closely related to DAgger (Ross et al., 2011)), and is instantiated for the contextual bandits meta-learning problem in Alg 1. AggreVaTe learns to choose actions to minimize the cost-to-go of the expert rather than the
63
+
64
+ 1: for round $n = 1 , 2 , \dots , N \cdot$ do 2: initialize meta-dataset $D = \{ \}$ , choose $S$ at random from $\{ S _ { m } \}$ , and set history $h _ { 0 } = \left\{ \begin{array} { r l r } \end{array} \right\}$ 3: partition and permute $S$ randomly into train $T r$ and validation Val where $| V a l | = N _ { V a l }$ 4: for round $t = 1 , 2 , \dots , | T r |$ do 5: let $( x _ { t } , r _ { t } ) = T r _ { t }$ 6: 7: for each action optimize $\begin{array} { r } { f _ { t , a } = \mathrm { P o L O P T } ( \mathcal { F } , h _ { t - 1 } \oplus ( x _ { t } , a , r _ { t } ( a ) , 1 - \frac { K - 1 } { K } \mu ) ) } \end{array}$ $a = 1 , \ldots , K$ do on augmented history 8: roll-out: estimate $\hat { c } _ { a }$ , the cost-to-go of $a$ , using $r _ { t } ( a )$ and a roll-out policy $\pi ^ { \mathrm { { o u t } } }$ on $f _ { t , a }$ 9: end for 10: compute $f _ { t } = \mathrm { P o L O P T } ( \mathcal { F } , h _ { t - 1 } )$ 11: aggregate $D \gets D \oplus ( \Phi ( f _ { t } , x _ { t } , h _ { t - 1 } , V a l ) , \langle \hat { c } _ { 1 } , \dots , \hat { c } _ { K } \rangle )$ 12: roll-in: $\begin{array} { r } { a _ { t } \sim \frac { \mu } { K } \mathbf { 1 } _ { K } + ( 1 - \mu ) \pi _ { n - 1 } ( f _ { t } , x _ { t } ) } \end{array}$ with probability $p _ { t }$ , where 1 is the ones-vector 13: append history $h _ { t } \gets h _ { t - 1 } \oplus ( x _ { t } , a _ { t } , r _ { t } ( a _ { t } ) , p _ { t } )$ 14: end for 15: update $\pi _ { n } = \operatorname { L E A R N } ( D )$ 16: end for 17: return $\{ \pi _ { n } \} _ { n = 1 } ^ { N }$
65
+
66
+ zero-one classification loss of mimicking its actions. On the first iteration AggreVaTe collects data by observing the expert perform the task, and in each trajectory, at time $t$ , explores an action $a$ in state $s$ , and observes the cost-to-go $Q$ of the expert after performing this action.
67
+
68
+ Following the AggreVaTe template, MELˆ EE´ operates in an iterative fashion, starting with an arbitrary $\pi$ and improving it through interaction with an expert. Over $N$ rounds, MELˆ EE´ selects random training sets and simulates the test-time behavior on that training set. The core functionality is to generate a number of states $( f _ { t } , x _ { t } )$ on which to train $\pi$ , and to use the supervised data to estimate the value of every action from those states. MELˆ EE´ achieves this by sampling a random supervised training set and setting aside some validation data from it (line 3). It then simulates a contextual bandit problem on this training data; at each time step $t$ , it tries all actions and “pretends” like they were appended to the current history (line 7) on which it trains a new policy and evaluates it’s roll-out value (line 8). This yields, for each $t$ , a new training example for $\pi$ , which is added to $\pi$ ’s training set (line 11); the features for this example are features of the classifier based on true history (line 10) (and possibly statistics of the history itself), with a label that gives, for each action, the corresponding cost-to-go of that action (the $c _ { a } s$ computed in line 8). MELˆ EE´ then must commit to a roll-in action to actually take; it chooses this according to a roll-in policy (line 12). MELˆ EE´ has no explicit “exploitation policy”, exploitation happens when $\pi$ chooses the same action as $f _ { t }$ , while exploration happens when it chooses a different action. In learning to explore, MELˆ EE´ simultaneously learns when to exploit.
69
+
70
+ Roll-in actions. The distribution over states visited by MELˆ EE´ depends on the actions taken, and in general it is good to have that distribution match what is seen at test time. This distribution is determined by a roll-in policy (line 12), controlled in MELˆ EE´ by exploration parameter $\mu \in [ 0 , 1 ]$ . As $\mu \to 1$ , the roll-in policy approaches a uniform random policy; as $\mu \to 0$ , the roll-in policy becomes deterministic. When the roll-in policy does not explore, it acts according to $\pi ( f _ { t } , . )$ .
71
+
72
+ Roll-out values. The ideal value to assign to an action (from the perspective of the imitation learning procedure) is that total reward (or advantage) that would be achieved in the long run if we took this action and then behaved according to our final learned policy. Unfortunately, during training, we do not yet know the final learned policy. Thus, a surrogate roll-out policy $\pi ^ { \mathrm { { o u t } } }$ is used instead. A convenient, and often computationally efficient alternative, is to evaluate the value assuming all future actions were taken by the expert (Langford & Zadrozny, 2005; Daume et al., ´ 2009; Ross & Bagnell, 2014). In our setting, at any time step $t$ , the expert has access to the fully supervised reward vector $\mathbf { } _ { \mathbf { } } ^ { \mathbf { } } \mathbf { \Delta } \mathbf { r } _ { t }$ for the context $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ . When estimating the roll-out value for an action $a$ , the expert will return the true reward value for this action $r _ { t } ( a )$ and we use this as our estimate for the roll-out value.
73
+
74
+ # 4 THEORETICAL GUARANTEES
75
+
76
+ We analyze MELˆ EE´ , showing that the no-regret property of AGGREVATE can be leveraged in our meta-learning setting for learning contextual bandit exploration. In particular, we first relate the regret of the learner in line 15 to the overall regret of $\pi$ . This will show that, $i f$ the underlying classifier improves sufficiently quickly, MELˆ EE´ will achieve sublinear regret. We then show that for a specific choice of underlying classifier (BANDITRON), this is achieved. MELˆ EE´ is an instantiation of AGGREVATE (Ross & Bagnell, 2014); as such, it inherits AGGREVATE’s regret guarantees.
77
+
78
+ Theorem 1 $\mathbf { T h m } 2 . 2$ of Ross $\pmb { \& }$ Bagnell (2014), adapted) After $N$ rounds, $i f$ LEARN (line 15) is no-regret algorithm, then as $N \infty$ , with probability 1, it holds that $J ( \bar { \pi } ) ~ \leq ~ J ( \pi ^ { \star } ) +$ $2 T \sqrt { K \hat { \epsilon } _ { c l a s s } ( T ) }$ , where $J ( \cdot )$ is the reward of the exploration policy, $\bar { \pi }$ is the average policy returned, and $\hat { \epsilon } _ { c l a s s } ( T )$ is the average regression regret for each $\pi _ { n }$ accurately predicting $\hat { c } _ { i }$ , where
79
+
80
+ $$
81
+ \hat { \epsilon } _ { c l a s s } ( T ) = \operatorname* { m i n } _ { \pi \in \Pi } \frac { 1 } { N } \hat { \mathbb { E } } _ { t \sim U ( T ) , s \sim d _ { \pi _ { i } } ^ { t } } \sum _ { i = 1 } ^ { N } \Big [ Q _ { T - t + 1 } ^ { \star } ( s , \pi ) - \operatorname* { m i n } _ { a } Q _ { T - t + 1 } ^ { \star } ( s , a ) \Big ]
82
+ $$
83
+
84
+ is the empirical minimum expected cost-sensitive classification regret achieved by policies in the class $\Pi$ on all the data over the $N$ iterations of training when compared to the Bayes optimal regressor, for $U ( T )$ the uniform distribution over $\{ 1 , \ldots , T \}$ , $d _ { \pi } ^ { t }$ the distribution of states at time $t$ induced by executing policy $\pi$ , and $Q ^ { \star }$ the cost-to-go of the imitation learning expert.
85
+
86
+ Thus, achieving low regret at the problem of learning $\pi$ on the training data it observes (“ $D$ ” in MELˆ EE´ ), i.e. $\hat { \epsilon } _ { c l a s s } ( T )$ is small, translates into low regret in the contextual-bandit setting. At first glance this bound looks like it may scale linearly with $T$ . However, the bound in Theorem 1 is dependent on $\hat { \epsilon } _ { c l a s s } ( T )$ . Note however, that $s$ is a combination of the context vector $x _ { t }$ and the classification function $f _ { t }$ . As $T \to \infty$ , one would hope that $f _ { t }$ improves significantly and $\hat { \epsilon } _ { c l a s s } ( T )$ decays quickly. Thus, sublinear regret may still be achievable when $f$ learns sufficiently quickly as a function of $T$ . For instance, if $f$ is optimizing a strongly convex loss function, online gradient descent achieves a regret guarantee of $O \big ( \frac { \log T } { T } \big )$ (Hazan et al., 2016, Theorem 3.3), potentially leading to a regret for MELˆ EE´ of $O ( \sqrt { ( \log T ) / T } )$ .
87
+
88
+ The above statement is informal (it does not take into account the interaction between learning $f$ and $\pi$ ). However, we can show a specific concrete example: we analyze MELˆ EE´ ’s test-time behavior when the underlying learning algorithm is BANDITRON. BANDITRON is a variant of the multiclass Perceptron that operates under bandit feedback. Details of this analysis (and proofs, which directly follow the original BANDITRON analysis) are given in Appendix A; here we state the main result. Let $\gamma _ { t } = \mathrm { P r } \big [ \bar { r } _ { t } ( \pi ( f _ { t } , x _ { t } ) = 1 ) | x _ { t } | \big ] - \mathrm { P r } \big [ r _ { t } ( \bar { f } _ { t } ( x _ { t } ) ) = \hat { 1 } \big | x _ { t } \big ]$ be the edge of $\pi ( f _ { t } , . )$ over $f$ , and $\begin{array} { r } { \Gamma = \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } \frac { 1 } { 1 + K \gamma _ { t } } } \end{array}$ be an overall measure of the edge. For instance if $\pi$ simply returns $f$ ’s prediction, then all $\gamma _ { t } = 0$ and $\Gamma = 1$ . We can then show the following:
89
+
90
+ Theorem 2 Assume that for the sequence of examples, $( x _ { 1 } , pmb { r } _ { 1 } ) , ( x _ { 2 } , \pmb { r } _ { 2 } ) , \dots , ( x _ { T } , \pmb { r } _ { T } )$ , we have, for all $t _ { : }$ , $| | x _ { t } | | \leq 1$ . Let $W ^ { \star }$ be any matrix, let $L$ be the cumulative hinge-loss of $W ^ { \star }$ , let $\mu$ be a uniform exploration probability, and let $D = 2 \left| \left| W ^ { \star } \right| \right| _ { F } ^ { 2 }$ be the complexity of $W ^ { \star }$ . Assume that $\mathbb { E } \gamma _ { t } \geq 0$ for all $t$ . Then the number of mistakes $M$ made by MELˆ EE´ with BANDITRON as POLOPT satisfies:
91
+
92
+ $$
93
+ \mathbb { E } M \leq L + K \mu T + 3 \operatorname* { m a x } \left\{ D \Gamma / \mu , \sqrt { D T K \Gamma \mu } \right\} + \sqrt { D L \Gamma / \mu }
94
+ $$
95
+
96
+ where the expectation is taken with respect to the randomness of the algorithm.
97
+
98
+ Note that under the assumption $\mathbb { E } \gamma _ { t } \geq 0$ for all $t$ , we have $\Gamma \leq 1$ . The analysis gives the same mistake bound for BANDITRON but with the factor of $\Gamma$ , hence this result improves upon the BANDITRON analysis only when $\Gamma < 1$ (in the realizable setting, the number of mistakes is analogous to the regret). This result is highly stylized and the assumption that $\mathbb { E } \gamma _ { t } \geq 0$ is overly strong. This assumption ensures that $\pi$ never decreases the probability of a “correct” action. It does, however, help us understand the behavior of MELˆ EE´ , qualitatively: First, the quantity that matters in Theorem 2, $\mathbb { E } _ { t } { \gamma } _ { t }$ is (in the $_ { 0 / 1 }$ loss case) exactly what MELˆ EE´ is optimizing: the expected improvement for choosing an action against $f _ { t }$ ’s recommendation. Second, the benefit of using $\pi$ within BANDITRON is a local benefit: because $\pi$ is trained with expert rollouts, as discussed in $\ S 4$ , the primary improvement in the analysis is to ensure that $\pi$ does a better job predicting (in a single step) than $f _ { t }$ does. An obvious open question is whether it is possible to base the analysis on the regret of $\pi$ (rather than its error) and whether it is possible to extend beyond the BANDITRON.
99
+
100
+ # 5 EXPERIMENTAL SETUP AND RESULTS
101
+
102
+ Using a collection of synthetically generated classification problems, we train an exploration policy $\pi$ using MELˆ EE´ (Alg 1). This exploration policy learns to explore on the basis of calibrated probabilistic predictions from $f$ together with a predefined set of exploration features $( \ S 5 . 1 )$ . Once $\pi$ is learned and fixed, we follow the test-time behavior described in $\ S 3 . 1$ to evaluate $\pi$ on a set of contextual bandit problems. We evaluate MELˆ EE´ on a natural learning to rank task $( \ S 5 . 3 . 1 )$ . To ensure that the performance of MELˆ EE´ generalizes beyond this single learning to rank task, we additionally perform thorough evaluation on 300 “simulated” contextual bandit problems, derived from standard classification tasks (§5.3.2).
103
+
104
+ In all cases, the underlying classifier $f$ is a linear model trained with a policy optimizer that runs stochastic gradient descent (details are in $\ S \mathbf { A } . 2 )$ . We seek to answer two questions experimentally: (1) How does MELˆ EE´ compare empirically to alternative (expert designed) exploration strategies? (2) How important are the additional features used by MELˆ EE´ in comparison to using calibrated probability predictions from $f$ as features?
105
+
106
+ # 5.1 TRAINING DETAILS FOR THE EXPLORATION POLICY
107
+
108
+ Exploration Features. In our experiments, the exploration policy is trained based on features $\Phi$ (Alg 1, line 11). These features are allowed to depend on the current classifier $f _ { t }$ , and on any part of the history except the inputs $x _ { t }$ in order to maintain task independence. We additionally ensure that its features are independent of the dimensionality of the inputs, so that $\pi$ can generalize to datasets of arbitrary dimensions. The specific features we use are listed below; these are largely inspired by Konyushkova et al. (2017) but adapted and augmented to our setting.
109
+
110
+ The features of $f _ { t }$ that we use are: a) predicted probability $p ( a _ { t } | f _ { t } , \pmb { x } _ { t } )$ , we use a softmax over the predicted rewards from $f _ { t }$ to convert them to probabilities; b) entropy of the predicted probability distribution; c) a one-hot encoding for the predicted action $f _ { t } ( \pmb { x } _ { t } )$ . The features of $h _ { t - 1 }$ that we use are: a) current time step $t ; { \bf b } )$ normalized counts for all previous actions predicted so far; c) average observed rewards for each action; d) empirical variance of the observed rewards for each action in the history. In our experiments, we found that it is essential to calibrate the predicted probabilities of the classifier $f _ { t }$ . We use a very small held-out dataset, of size 30, to achieve this. We use Platt’s scaling (Platt, 1999; Lin et al., 2007) method to calibrate the predicted probabilities. Platt’s scaling works by fitting a logistic regression model to the classifier’s predicted scores.
111
+
112
+ Training Datasets. In our experiments, we follow Konyushkova et al. (2017) (and also Peters et al. (2014), in a different setting) and train the exploration policy $\pi$ only on synthetic data. This is possible because the exploration policy $\pi$ never makes use of $x$ explicitly and instead only accesses it via $f _ { t }$ ’s behavior on it. We generate datasets with uniformly distributed class conditional distributions. The datasets are always two-dimensional. Details are in $\ S \mathrm { A } . 1$ .
113
+
114
+ # 5.2 EVALUATION METHODOLOGY
115
+
116
+ For evaluation, we use progressive validation (Blum et al., 1999), which is exactly computing the reward of the algorithm. Specifically, to evaluate the performance of an exploration algorithm $\mathcal { A }$ on a dataset $S$ of size $n$ , we compute the progressive validation return $\begin{array} { r } { G ( \mathcal { A } ) = \frac { 1 } { n } \sum _ { t = 1 } ^ { n } r _ { t } ( a _ { t } ) } \end{array}$ as the average reward up to $n$ , where $a _ { t }$ is the action chosen by the algorithm $\mathcal { A }$ and $r _ { t }$ is the true reward.
117
+
118
+ Because our evaluation is over 300 datasets, we report aggregate results in two forms. The simpler one is Win/Loss Statistics: We compare two exploration methods on a given dataset by counting the number of statistically significant wins and losses. An exploration algorithm $\mathcal { A }$ wins over another algorithm $\boldsymbol { B }$ if the progressive validation return $G ( { \mathcal { A } } )$ is statistically significantly larger than $B$ ’s return $G ( B )$ at the 0.01 level using a paired sample t-test. We also report cumulative distributions of rewards for each algorithm, following Zhang et al. (2019). In particular, for a given relative reward value $( x \in [ 0 , 1 ] )$ , the corresponding CDF value for a given algorithm is the fraction of datasets on which this algorithm achieved reward at least $x$ . We compute relative reward by Min
119
+
120
+ Max normalization: linearly transforming reward $y$ to $\begin{array} { r } { y ^ { \prime } = \frac { y - \mathrm { m i n } } { \mathrm { m a x - m i n } } } \end{array}$ , where min & max are the minimum & maximum rewards among all exploration algorithms.
121
+
122
+ In our experiments, we compare to the following baseline exploration methods, keeping the policy optimization method fixed (details in $\ S \mathbf { A . 4 } )$ ): $\epsilon$ -greedy (Sutton, 1996); $\epsilon$ -decreasing (Sutton & Barto, 1998); EG $\epsilon$ -greedy (Li et al., 2010b); $\tau$ -first. We additionally compare to three state-of-the-art exploration methods: LinUCB (Li et al., 2010a); Cover (Agarwal et al., 2014); and its variant Cover-NU (Bietti et al., 2018). We select the best hyperparameters following Bietti et al. (2018).
123
+
124
+ # 5.3 EXPERIMENTAL RESULTS
125
+
126
+ # 5.3.1 LEARNING TO RANK
127
+
128
+ We evaluate MELˆ EE´ on a natural learning to rank dataset. The dataset we consider is the Microsoft Learning to Rank dataset, variant MSLR-10K from Qin & Liu (2013) 3. The dataset consists of feature vectors extracted from query-url pairs along with relevance judgment labels. The relevance judgments are obtained from a retired labeling set of a commercial web search engine (Microsoft Bing), which take 5 values from 0 (irrelevant) to 4 (perfectly relevant) and we drop the queries not labelled as any of the two extremes. In our experiments, we limit the number of labels to the two extremes: 0 and 4. A query-url pair is represented by a 136-dimensional feature vector. The dataset is highly imbalanced as the number of irrelevant queries is much larger than the number of relevant ones. To address this, we sample the number of irrelevant queries to match that of the relevant ones. To avoid correlations between the observed query-url pairs, we group the queries by the query ID, and sample a single query from each group. We convert relevance scores to losses with 0 indicating a perfectly relevant document, and 1 an irrelevant one.
129
+
130
+ Figure 1 shows the evaluation results on a subset of the MSLR-10K dataset. Since the performance is closely matched between the different exploration algorithms, we repeat the experiment 16 times with randomly shuffled permutations of the MSLR-10K dataset. Figure 1 (left) shows the learning curve of the trained policy $\pi$ as well as the baselines. Here, we see that MELˆ EE´ quickly achieves high reward, after about 100 examples the two strongest baselines catch up. By 200 examples all approaches have asymptoted. We exclude LinUCB from these runs because the required matrix inversions made it too computationally expensive.4 Figure 1 shows statistically-significant win/loss differences for each of the algorithms, across these 16 shuffles. Each row/column entry shows the number of times the row algorithm won against the column, minus the number of losses. MELˆ EE´ is the only algorithm that always wins more than it loses against other algorithms, and outperforms the nearest competition ( $\epsilon$ -decreasing) by 3 points.
131
+
132
+ # 5.3.2 SIMULATED CONTEXTUAL BANDIT TASKS
133
+
134
+ We additionally perform an exhaustive evaluation on simulated contextual bandit tasks to ensure that the performance of MELˆ EE´ generalizes beyond learning to rank. Following Bietti et al. (2018), we use a collection of 300 binary classification datasets from openml.org for evaluation; the precise list and download instructions is in $\ S \mathbf { A } . 3$ . These datasets cover a variety of different domains including text $\&$ image processing, medical, and sensory data. We convert classification datasets into cost-sensitive classification problems by using a $0 / 1$ encoding. Given these fully supervised cost-sensitive multi-class datasets, we simulate the contextual bandit setting by only revealing the reward for the selected actions.
135
+
136
+ In Figure 2 (left), we show a representative learning curve. Here, we see that as more data becomes available, all the approaches improve (except $\tau$ -first, which has ceased to learn after $2 \%$ of the data). MELˆ EE´ , in particular, is able to very quickly achieve near-optimal performance (in around 40 examples) in comparison to the best baseline which takes at least 200. In Figure 2 (right), we show the CDFs for the different algorithms. To help read this, at $x = 1 . 0$ , MELˆ EE´ has a relative reward at least 1.0 on more than $40 \%$ of datasets, while $\epsilon$ -decreasing and $\epsilon$ -greedy achieve this on about $30 \%$ of datasets. We find that the two strongest baselines are $\epsilon$ -decreasing and $\epsilon$ -greedy (better when reward differences are small, toward the left of the graph). The two curves for $\epsilon$ -decreasing and $\epsilon$ - greedy coincide. This happens because the exploration probability $\epsilon _ { 0 }$ for $\epsilon$ -decreasing decays rapidly approaching zero with a rate of $\textstyle { \frac { 1 } { t } }$ , where $t$ is the index of the current round. MELˆ EE´ outperforms the baselines in the “large reward” regimes (right of graph) but under-performs $\epsilon$ -decreasing and $\epsilon$ -greedy in low reward regimes (left of graph).
137
+
138
+ ![](images/b1788988d738da0efcd31535810491c3b39d1eba306ed5431107fee49afac2b5.jpg)
139
+ Figure 1: Results for the Learning to Rank task. (Left) Learning curve on the MSLR-10K dataset: $\mathbf { X }$ -axis shows the number of queries observed, and y-axis shows the progressive reward. (Right) Win/Loss counts for all pairs of algorithms over 16 random shuffles for the MSLR-10K dataset.
140
+
141
+ ![](images/6888bb6073c77103de6a8010443f100180a1163ae34fbd197c0760f993ad28e5.jpg)
142
+ Figure 2: Behavior of MELˆ EE´ in comparison to baseline and state-of-the-art exploration algorithms.
143
+
144
+ In Figure 3, we show statistically-significant win/loss differences for each of the algorithms. Here, each (row, column) entry shows the number of times the row algorithm won against the column, minus the number of losses. MELˆ EE´ is the only algorithm that always wins more than it loses against other algorithms, and outperforms the nearest competition ( $\epsilon$ -decreasing) by 23 points.
145
+
146
+ To understand more directly how MELˆ EE´ compares to $\epsilon$ -decreasing, in the left plot of Figure 4, we show a scatter plot of rewards achieved by MELˆ EE´ $\mathbf { \dot { X } }$ -axis) and $\epsilon$ -decreasing (y-axis) on each of the 300 datasets, with statistically significant differences highlighted in red and insignificant differences in blue. Points below the diagonal line correspond to better performance by MELˆ EE´ (147 datasets)
147
+
148
+ ![](images/2e5f7991d2955d71f4a06f822d4d7174981f8622bdddcce1efae21f30ba0af0b.jpg)
149
+ Figure 3: Win/Loss counts for all pairs of algorithms (columns match the rows).
150
+
151
+ ![](images/f000364f695f671698bcf02790d820913e704e54048dceca345b44fcdbac3291.jpg)
152
+ Figure 4: Scatterplots comparing MELˆ EE´ to the best baseline and to a variant with fewer features.
153
+
154
+ and points above to $\epsilon$ -decreasing (124 datasets). The remaining 29 had no statistically significant difference.
155
+
156
+ Finally, we consider the effect that the additional features have on MELˆ EE´ ’s performance. In particular, we consider a version of MELˆ EE´ with all features (this is the version used in all other experiments) with an ablated version that only has access to the (calibrated) probabilities of each action from the underlying classifier $f$ . The comparison is shown as a scatter plot in Figure 4 (right). Here, we can see that the full feature set does provide lift over just the calibrated probabilities, with a win-minus-loss improvement of 24 by adding additional features from which to learn to explore.
157
+
158
+ # 6 RELATED WORK AND DISCUSSION
159
+
160
+ The field of meta-learning is based on the idea of replacing hand-engineered learning heuristics with heuristics learned from data. One of the most relevant settings for meta-learning to ours is active learning, in which one aims to learn a decision function to decide which examples, from a pool of unlabeled examples, should be labeled. Past approaches to meta-learning for active learning include reinforcement learning-based strategies (Woodward & Finn, 2017; Fang et al., 2017), imitation learning-based strategies (Bachman et al., 2017), and batch supervised learning-based strategies (Konyushkova et al., 2017). Similar approaches have been used to learn heuristics for optimization (Li & Malik, 2016; Andrychowicz et al., 2016), multiarm (non-contextual) bandits Maes et al. (2012), and neural architecture search (Zoph & Le, 2016), recently mostly based on (deep) reinforcement learning. While meta-learning for contextual bandits is most similar to meta-learning for active learning, there is a fundamental difference that makes it significantly more challenging: in active learning, the goal is to select as few examples as you can to learn, so by definition the horizon is short; in contextual bandits, learning to explore is fundamentally a long-horizon problem, because what matters is not immediate reward but long term learning.
161
+
162
+ In reinforcement learning, Gupta et al. (2018) investigated the task of meta-learning an exploration strategy for a distribution of related tasks by learning a latent exploration space. Similarly, Xu et al. (2018) proposed a teacher-student approach for learning to do exploration in off-policy reinforcement learning. While these approaches are effective if the distribution of tasks is very similar and the state space is shared among different tasks, they fail to generalize when the tasks are different. Our approach targets an easier problem than exploration in full reinforcement learning environments, and can generalize well across a wide range of different tasks with completely unrelated features spaces.
163
+
164
+ There has also been a substantial amount of work on constructing “good” exploration policies, in problems of varying complexity: traditional bandit settings (Karnin & Anava, 2016), contextual bandits (Fraud et al., 2016) and reinforcement learning (Osband et al., 2016). In both bandit settings, most of this work has focused on the learning theory aspect of exploration: what exploration distributions guarantee that learning will succeed (with high probability)? MELˆ EE´ , lacks such guarantees: in particular, if the data distribution of the observed contexts $( \phi ( f _ { t } ) )$ in some test problem differs substantially from that on which MELˆ EE´ was trained, we can say nothing about the quality of the learned exploration. Nevertheless, despite fairly substantial distribution mismatch (synthetic real-world), MELˆ EE´ works well in practice, and our stylized theory $( \ S 4 )$ suggests that there may be an interesting avenue for developing strong theoretical results for contextual bandit learning with learned exploration policies, and perhaps other meta-learning problems.
165
+
166
+ In conclusion, we presented MELˆ EE´ , a meta-learning algorithm for learning exploration policies in the contextual bandit setting. MELˆ EE´ enjoys no-regret guarantees, and empirically it outperforms alternative exploration algorithm in most settings. One limitation of MELˆ EE´ is the computational resources required during the offline training phase on the synthetic datasets. In the future, we will work on improving the computational efficiency for MELˆ EE´ in the offline training phase and scale the experimental analysis to problems with larger number of classes.
167
+
168
+ # REFERENCES
169
+
170
+ Alekh Agarwal, Daniel Hsu, Satyen Kale, John Langford, Lihong Li, and Robert E. Schapire. Taming the monster: A fast and simple algorithm for contextual bandits. In In Proceedings of the 31st International Conference on Machine Learning (ICML-14, pp. 1638–1646, 2014.
171
+ Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems, pp. 3981–3989, 2016.
172
+ Peter Auer. Using confidence bounds for exploitation-exploration trade-offs. The Journal of Machine Learning Research, 3:397–422, 2003.
173
+ Philip Bachman, Alessandro Sordoni, and Adam Trischler. Learning algorithms for active learning. In ICML, 2017.
174
+ Alina Beygelzimer and John Langford. The offset tree for learning with partial labels. In Proceedings of the 15th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 129–138. ACM, 2009.
175
+ Alberto Bietti, Alekh Agarwal, and John Langford. A Contextual Bandit Bake-off. working paper or preprint, May 2018.
176
+ Avrim Blum, Adam Kalai, and John Langford. Beating the hold-out: Bounds for k-fold and progressive cross-validation. In Proceedings of the twelfth annual conference on Computational learning theory, pp. 203–208. ACM, 1999.
177
+ Leo Breiman. Random forests. Mach. Learn., 45(1):5–32, October 2001. ISSN 0885-6125. doi: 10.1023/A:1010933404324.
178
+
179
+ Kai-Wei Chang, Akshay Krishnamurthy, Alekh Agarwal, Hal Daume, III, and John Langford. ´ Learning to search better than your teacher. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML, pp. 2058–2066. JMLR.org, 2015.
180
+
181
+ Hal Daume, III, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine Learning, 75(3):297–325, Jun 2009. ISSN 1573-0565. doi: 10.1007/s10994-009-5106-x.
182
+
183
+ Miroslav Dudik, Daniel Hsu, Satyen Kale, Nikos Karampatziakis, John Langford, Lev Reyzin, and Tong Zhang. Efficient optimal learning for contextual bandits. arXiv preprint arXiv:1106.2369, 2011.
184
+
185
+ Meng Fang, Yuan Li, and Trevor Cohn. Learning how to active learn: A deep reinforcement learning approach. In EMNLP, 2017.
186
+
187
+ Raphal Fraud, Robin Allesiardo, Tanguy Urvoy, and Fabrice Clrot. Random forest for the contextual bandit problem. In Arthur Gretton and Christian C. Robert (eds.), Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pp. 93–101, Cadiz, Spain, 09–11 May 2016. PMLR.
188
+
189
+ Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Metareinforcement learning of structured exploration strategies. arXiv preprint arXiv:1802.07245, 2018.
190
+
191
+ Elad Hazan et al. Introduction to online convex optimization. Foundations and Trends $\textsuperscript { \textregistered }$ in Optimization, 2(3-4):157–325, 2016.
192
+
193
+ Leslie Pack Kaelbling. Associative reinforcement learning: Functions ink-dnf. Machine Learning, 15(3):279–298, 1994.
194
+
195
+ Sham M. Kakade, Shai Shalev-Shwart, and Ambuj Tewari. Efficient bandit algorithms for online multiclass prediction. In ICML, 2008.
196
+
197
+ Zohar S Karnin and Oren Anava. Multi-armed bandits: Competing with optimal sequences. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 199–207. Curran Associates, Inc., 2016.
198
+
199
+ Ksenia Konyushkova, Raphael Sznitman, and Pascal Fua. Learning active learning from data. In Advances in Neural Information Processing Systems, 2017.
200
+
201
+ John Langford and Bianca Zadrozny. Relating reinforcement learning performance to classification performance. In Proceedings of the 22nd international conference on Machine learning, pp. 473–480. ACM, 2005.
202
+
203
+ John Langford and Tong Zhang. The epoch-greedy algorithm for multi-armed bandits with side information. In Advances in Neural Information Processing Systems 20, pp. 817–824. Curran Associates, Inc., 2008.
204
+
205
+ Ke Li and Jitendra Malik. Learning to optimize. arXiv preprint arXiv:1606.01885, 2016.
206
+
207
+ Lihong Li, Wei Chu, John Langford, and Robert E. Schapire. A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th International Conference on World Wide Web, WWW ’10, pp. 661–670, New York, NY, USA, 2010a. ACM. ISBN 978-1- 60558-799-8. doi: 10.1145/1772690.1772758.
208
+
209
+ Wei Li, Xuerui Wang, Ruofei Zhang, Ying Cui, Jianchang Mao, and Rong Jin. Exploitation and exploration in a performance based contextual advertising system. In Proceedings of the 16th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’10, pp. 27–36, New York, NY, USA, 2010b. ACM.
210
+
211
+ Hsuan-Tien Lin, Chih-Jen Lin, and Ruby C. Weng. A note on platt’s probabilistic outputs for support vector machines. Machine Learning, 68(3):267–276, Oct 2007. ISSN 1573-0565. doi: 10.1007/s10994-007-5018-6.
212
+
213
+ Francis Maes, Louis Wehenkel, and Damien Ernst. Meta-learning of exploration/exploitation strategies: The multi-armed bandit case. In International Conference on Agents and Artificial Intelligence, pp. 100–115. Springer, 2012.
214
+
215
+ Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4026–4034. Curran Associates, Inc., 2016.
216
+
217
+ F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
218
+
219
+ Jonas Peters, Joris M Mooij, Dominik Janzing, and Bernhard Scholkopf. Causal discovery with ¨ continuous additive noise models. The Journal of Machine Learning Research, 15(1):2009–2053, 2014.
220
+
221
+ John C. Platt. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. In ADVANCES IN LARGE MARGIN CLASSIFIERS, pp. 61–74. MIT Press, 1999.
222
+
223
+ Tao Qin and Tie-Yan Liu. Introducing LETOR 4.0 datasets. CoRR, abs/1306.2597, 2013. URL http://arxiv.org/abs/1306.2597.
224
+
225
+ Stephane Ross and J Andrew Bagnell. Reinforcement and imitation learning via interactive no-regret ´ learning. arXiv preprint arXiv:1406.5979, 2014.
226
+
227
+ Stephane Ross, Geoffrey Gordon, and J Andrew Bagnell. A reduction of imitation learning and ´ structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pp. 627–635, Fort Lauderdale, FL, USA, 11–13 Apr 2011. PMLR.
228
+
229
+ Richard S Sutton. Generalization in reinforcement learning: Successful examples using sparse coarse coding. In Advances in neural information processing systems, pp. 1038–1044, 1996.
230
+
231
+ Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981.
232
+
233
+ Mark Woodward and Chelsea Finn. Active one-shot learning. arXiv preprint arXiv:1702.06559, 2017.
234
+
235
+ Tianbing Xu, Qiang Liu, Liang Zhao, Wei Xu, and Jian Peng. Learning to explore with meta-policy gradient. arXiv preprint arXiv:1803.05044, 2018.
236
+
237
+ Chicheng Zhang, Alekh Agarwal, Hal Daume, III, John Langford, and Sahand N Negahban. Warm- ´ starting contextual bandits: Robustly combining supervised and bandit feedback. In ICML, 2019.
238
+
239
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
240
+
241
+ # Supplementary Material For: Learning Effective Exploration Strategies for Contextual Bandits
242
+
243
+ A STYLIZED TEST-TIME ANALYSIS FOR BANDITRON: DETAILS
244
+
245
+ The BANDITRONMELˆ EE´ algorithm is specified in $\mathrm { A l g } 2$ . The is exactly the same as the typical test time behavior, except it uses a BANDITRON-type strategy for learning the underlying classifier $f$ in the place of POLOPT. POLICYELIMINATIONMETA takes as arguments: $\pi$ (the learned exploration policy) and $\mu \in ( 0 , 1 / ( 2 K ) )$ an added uniform exploration parameter. The BANDITRON learns a linear multi-class classifier parameterized by a weight matrix of size $K { \times } D$ , where $D$ is the input dimensionality. The BANDITRON assumes a pure multi-class setting in which the reward for one (“correct”) action is 1 and the reward for all other actions is zero.
246
+
247
+ At each round $t$ , a prediction $\hat { a } _ { t }$ is made according to $f _ { t }$ (summarized by $W ^ { t }$ ). We then define an exploration distribution that “most of the time” acts according to $\pi ( f _ { t } , . )$ , but smooths each action with $\mu$ probability. The chosen action $a _ { t }$ is sampled from this distribution and a binary reward is observed. The weights of the BANDITRON are updated according to the BANDITRON update rule using $\tilde { U } ^ { t }$ .
248
+
249
+ # Algorithm 2 BANDITRONMELˆ EE´ $( g , \mu )$
250
+
251
+ 1: initialize $W ^ { 1 } = \mathbf { 0 } \in \mathbb { R } ^ { K \times D }$
252
+ 2: for rounds $t = 1 \dots T$ : do
253
+ 3: observe $\boldsymbol { x } _ { t } \in \mathbb { R } ^ { D }$
254
+ 4: compute $\begin{array} { r } { \hat { a } _ { t } = f _ { t } ( x _ { t } ) = \mathrm { a r g m a x } _ { k \in K } \left( W ^ { t } x _ { t } \right) _ { k } } \end{array}$
255
+ 5: define $Q ^ { \mu } ( a ) = \mu + ( 1 - K \mu ) { \bf 1 } [ a = \pi ( W ^ { t } , x _ { t } ) ]$
256
+ 6: sample $a _ { t } \sim Q ^ { \mu }$
257
+ 7: observe reward $r _ { t } ( a _ { t } ) \in \{ 0 , 1 \}$
258
+ 8: d $\tilde { U } ^ { t } \in \mathbb { R } ^ { K \times D }$
259
+ $\begin{array} { r } { \tilde { U } _ { a , \cdot } ^ { t } = x _ { t } \left( \frac { \mathbf { 1 } [ r _ { t } ( a _ { t } ) = 1 ] \mathbf { 1 } [ a _ { t } = a ] } { Q ^ { \mu } ( a ) } - \mathbf { 1 } [ \hat { a } _ { t } = a ] \right) } \end{array}$
260
+ 9: update $W ^ { t + 1 } = W ^ { t } + \tilde { U } ^ { t }$
261
+
262
+ The only difference between BANDITRONMELˆ EE´ and the original BANDITRON is the introduction of $\pi$ in the sampling distribution. The original algorithm achieves the following mistake bound shown below, which depends on the notion of multi-class hinge-loss. In particular, the hinge-loss of $W$ on $( x , r )$ is $\ell ( W , ( x , \pmb { r } ) ) = \mathrm { m a x } _ { a \neq a ^ { \star } }$ max $\left\{ 0 , 1 - ( W x ) _ { a ^ { \star } } + ( W x ) _ { a } ^ { \top } \right\}$ , where $a ^ { \star }$ is the $a$ for which $r ( a ) = 1$ . The overall hinge-loss $L$ is the sum of $\ell$ over the sequence of examples.
263
+
264
+ Theorem 3 (Thm. 1 and Corr. 2 of Kakade et al. (2008)) Assume that for the sequence of examples, $( x _ { 1 } , r _ { 1 } ) , ( x _ { 2 } , r _ { 2 } ) , \ldots , ( x _ { T } , \pmb { r } _ { T } )$ , we have, for all $t _ { : }$ , $| | x _ { t } | | \leq 1$ . Let $W ^ { \star }$ be any matrix, let $L$ be the cumulative hinge-loss of $W ^ { \star }$ , and let $D = 2 \left| \left| W ^ { \star } \right| \right| _ { F } ^ { 2 }$ be the complexity of $W ^ { \star }$ . The number of mistakes $M$ made by the BANDITRON satisfies
265
+
266
+ $$
267
+ { \mathbb { E } } M \leq L + K \mu T + 3 \operatorname* { m a x } \left\{ { \frac { D } { \mu } } , { \sqrt { D T K \mu } } \right\} + { \sqrt { D L / \mu } }
268
+ $$
269
+
270
+ where the expectation is taken with respect to the randomness of the algorithm. Furthermore, in a low noise setting (there exists $W ^ { \star }$ with fixed complexity √ $d$ and loss $\bar { L ( \mathbf { \Omega } \leq \cal { O } ( \sqrt { \cal { D } K T } ) ) }$ , then by setting $\mu = \sqrt { D / ( T K ) }$ , we obtain $\mathbb { E } M \le O ( \sqrt { K D T } )$ .
271
+
272
+ We can prove an analogous result for BANDITRONMELˆ EE´ . The key quantity that will control how much $\pi$ improves the execution of BANDITRONMELˆ EE´ is how much $\pi$ improves on $f _ { t }$ when $f _ { t }$ is $\pi ( f _ { t } , . )$ In p over $f$ ticul, and $\begin{array} { r } { \Gamma = \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } \frac { 1 } { 1 + K \gamma _ { t } } } \end{array}$ $\gamma _ { t } = \operatorname* { P r } [ r _ { t } ( \pi ( f _ { t } , x _ { t } ) = 1 ) | x _ { t } ] - \operatorname* { P r } [ r _ { t } ( f _ { t } ( x _ { t } ) ) = 1 | x _ { t } ]$ $\pi$ e the edge ofdoes nothing, then all $\gamma _ { t } = 0$ $\Gamma = 1 .$ .) Given this quantity, we can prove the following Theorem 2.
273
+
274
+ Proof: [sketch] The proof is a small modification of the original proof of Theorem 3. The only change is that in the original proof, the following bound is used: $\mathbb { E } _ { t } | | \bar { \tilde { U } } ^ { t } | | ^ { 2 } / | | x _ { t } | | ^ { 2 } = 1 + 1 / \mu \le 2 / \mu$
275
+
276
+ We use, instead: Et||U˜ t||2/||xt||2 ≤ 1 + Et 1µ+γt 2Et 11+γtµ . The rest of the proof goes through identically.
277
+
278
+ # A.1 DETAILS OF SYNTHETIC DATASETS
279
+
280
+ We generate datasets with uniformly distributed class conditional distributions. We generate 2D datasets by first sampling a random variable representing the Bayes classification error. The Bayes error is sampled uniformly from the interval 0.0 to 0.5. Next, we generate a balanced dataset where the data for each class lies within a unit rectangle and sampled uniformly. We overlap the sampling rectangular regions to generate a dataset with the desired Bayes error selected in the first step.
281
+
282
+ # A.2 IMPLEMENTATION DETAILS
283
+
284
+ Our implementation is based on scikit-learn (Pedregosa et al., 2011). We fix the training time exploration parameter $\mu$ to 0.1. We train the exploration policy $\pi$ on 82 synthetic datasets each of size 3000 with uniform class conditional distributions, a total of $2 4 6 k$ samples (§A.1). We train $\pi$ using a linear classifier Breiman (2001) and set the hyper-parameters for the learning rate, and data scaling methods using three-fold cross-validation on the whole meta-training dataset. For the classifier class $\mathcal { F }$ , we use a linear model trained with stochastic gradient descent. We standardize all features to zero mean and unit variance, or scale the features to lie between zero and one. To select between the two scaling methods, and tune the classifier’s learning rate, we use three-fold cross-validation on a small fully supervised training set of size 30 samples. The same set is used to calibrate the predicted probabilities of $f _ { t }$ .
285
+
286
+ # A.3 LIST OF DATASETS
287
+
288
+ The datasets we used can be accessed at https://www.openml.org/d/<id>. The list of (id, size) pairs below shows the (id for the datasets we used and the dataset size in number of examples:
289
+
290
+ (46,100) (716, 100) (726, 100) (754, 100) (762, 100) (768, 100) (775, 100) (783, 100) (789, 100) (808, 100) (812, 100) (828, 100) (829, 100) (850, 100) (865, 100) (868, 100) (875, 100) (876, 100) (878, 100) (916, 100) (922, 100) (932, 100) (1473, 100) (965, 101) (1064, 101) (956, 106) (1061, 107) (771, 108) (736, 111) (448, 120) (782, 120) (1455, 120) (1059, 121) (1441, 123) (714, 125) (867, 130) (924, 130) (1075, 130) (1141, 130) (885, 131) (444, 132) (921, 132) (974, 132) (719, 137) (1013, 138) (1151, 138) (784, 140) (1045, 145) (1066, 145) (1125, 146) (902, 147) (1006, 148) (969, 150) (955, 151) (1026, 155) (745, 159) (756, 159) (1085, 159) (1054, 161) (748, 163) (747, 167) (973, 178) (463, 180) (801, 185) (1164, 185) (788, 186) (1154, 187) (941, 189) (1131, 193) (753, 194) (1012, 194) (1155, 195) (1488, 195) (446, 200) (721, 200) (1124, 201) (1132, 203) (40, 208) (733, 209) (796, 209) (996, 214) (1005, 214) (895, 222) (1412, 226) (820, 235) (851, 240) (464, 250) (730, 250) (732, 250) (744, 250) (746, 250) (763, 250) (769, 250) (773, 250) (776, 250) (793, 250) (794, 250) (830, 250) (832, 250) (834, 250) (863, 250) (873, 250) (877, 250) (911, 250) (918, 250) (933, 250) (935, 250) (1136, 250) (778, 252) (1442, 253) (1449, 253) (1159, 259) (450, 264) (811, 264) (336, 267) (1152, 267) (53, 270) (1073, 274) (1156, 275) (880, 284) (1121, 294) (43, 306) (818, 310) (915, 315) (1157, 321) (1162, 322) (925, 323) (1140, 324) (1144, 329) (1011, 336) (1147, 337) (1133, 347) (337, 349) (59, 351) (1135, 355) (1143, 363) (1048, 369) (860, 380) (1129, 384) (1163, 386) (900, 400) (906, 400) (907, 400) (908, 400) (909, 400) (1025, 400) (1071, 403) (1123, 405) (1160, 410) (1126, 412) (1122, 413) (1127, 421) (764, 450) (1065, 458) (1149, 458) (1498, 462) (724, 468) (814, 468) (1148, 468) (1150, 470) (765, 475) (767, 475) (1153, 484) (742, 500) (749, 500) (750, 500) (766, 500) (779, 500) (792, 500) (805, 500) (824, 500) (838, 500) (855, 500) (869, 500) (870, 500) (879, 500) (884, 500) (886, 500) (888, 500) (896, 500) (920, 500) (926, 500) (936, 500) (937, 500) (943, 500) (987, 500) (1470, 500) (825, 506) (853, 506) (872, 506) (717, 508) (1063, 522) (954, 531) (1467, 540) (1165, 542) (1137, 546) (335, 554) (333, 556) (947, 559) (949, 559) (950, 559) (951, 559) (826, 576) (1004, 600) (334, 601) (1158, 604) (770, 625) (997, 625) (1145, 630) (1443, 661) (774, 662) (795, 662) (827, 662) (931, 662) (292, 690) (1451, 705) (1464, 748) (37, 768) (1014, 797) (970, 841) (994, 846) (841, 950) (50, 958) (1016, 990) (31, 1000) (715, 1000) (718, 1000) (723, 1000) (740, 1000) (743, 1000) (751, 1000) (797, 1000) (799, 1000) (806, 1000) (813, 1000) (837, 1000) (845, 1000) (849, 1000) (866, 1000) (903, 1000) (904, 1000) (910, 1000) (912, 1000) (913, 1000) (917, 1000) (741, 1024) (1444, 1043) (1453, 1077)
291
+
292
+ (1068, 1109) (934, 1156) (1049, 1458) (1454, 1458) (983, 1473) (1128, 1545) (1130, 1545) (1138, 1545) (1139, 1545) (1142, 1545) (1146, 1545) (1161, 1545) (1166, 1545) (1050, 1563) (991, 1728) (962, 2000) (971, 2000) (978, 2000) (995, 2000) (1020, 2000) (1022, 2000) (914, 2001) (1067, 2109) (772, 2178) (948, 2178) (958, 2310) (312, 2407) (1487, 2534) (737, 3107) (953, 3190) (3, 3196) (1038, 3468) (871, 3848) (728, 4052) (720, 4177) (1043, 4562) (44, 4601) (979, 5000) (1460, 5300) (1489, 5404) (1021, 5473) (1069, 5589) (980, 5620) (847, 6574) (1116, 6598) (803, 7129) (1496, 7400) (725, 8192) (735, 8192) (752, 8192) (761, 8192) (807, 8192)
293
+
294
+ # A.4 BASELINE EXPLORATION ALGORITHMS
295
+
296
+ Our experiments aim to determine how MELˆ EE´ compares to other standard exploration strategies. In particular, we compare to:
297
+
298
+ $\epsilon$ -greedy: With probability $\epsilon$ , explore uniformly at random; with probability $1 - \epsilon$ act greedily according to $f _ { t }$ (Sutton, 1996). Experimentally, we found $\epsilon = 0$ optimal on average, consistent with the results of Bietti et al. (2018).
299
+
300
+ $\epsilon$ -decreasing: selects a random action with probabilities $\epsilon _ { i }$ , where $\epsilon _ { i } = \epsilon _ { 0 } / t , \epsilon _ { 0 } \in ] 0 , 1 ]$ and $t$ is the index of the current round. In our experiments we set $\epsilon _ { 0 } = 0 . 1$ . (Sutton & Barto, 1998)
301
+
302
+ Exponentiated Gradient $\epsilon$ -greedy: maintains a set of candidate values for $\epsilon$ -greedy exploration. At each iteration, it runs a sampling procedure to select a new $\epsilon$ from a finite set of candidates. The probabilities associated with the candidates are initialized uniformly and updated with the Exponentiated Gradient (EG) algorithm. Following Li et al. (2010b), we use the candidate set $\{ \epsilon _ { i } = 0 . 0 5 { \times } i + 0 . 0 1 , i = 1 , \cdot \cdot \cdot , 1 0 \}$ for $\epsilon$ .
303
+
304
+ LinUCB: Maintains confidence bounds for reward payoffs and selects actions with the highest confidence bound. It is impractical to run “as is” due to high-dimensional matrix inversions. We use diagonal approximation to the covariance when the dimensions exceeds 150. (Li et al., 2010a) $\tau$ -first: Explore uniformly on the first $\tau$ fraction of the data; after that, act greedily.
305
+
306
+ Cover: Maintains a uniform distribution over a fixed number of policies. The policies are used to approximate a covering distribution over policies that are good for both exploration and exploitation (Agarwal et al., 2014).
307
+
308
+ Cover Non-Uniform: similar to Cover, but reduces the level of exploration of Cover to be more competitive with the Greedy method. Cover-Nu doesn’t add extra exploration beyond the actions chose by the covering policies (Bietti et al., 2018).
309
+
310
+ In all cases, we select the best hyperparameters for each exploration algorithm following Bietti et al. (2018). These hyperparameters are: the choice of $\epsilon$ in $\epsilon$ -greedy, $\tau$ in $\tau$ -first, the number of bags, and the tolerance $\psi$ for Cover and Cover-NU. We set $\epsilon = 0 . 0$ , $\tau = 0 . 0 2$ , bag size $= 1 6$ , and $\psi = 0 . 1$ .
parse/train/Bkgk624KDB/Bkgk624KDB_content_list.json ADDED
@@ -0,0 +1,1610 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING EFFECTIVE EXPLORATION STRATEGIES FOR CONTEXTUAL BANDITS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 782,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In contextual bandits, an algorithm must choose actions given observed contexts, learning from a reward signal that is observed only for the action chosen. This leads to an exploration/exploitation trade-off: the algorithm must balance taking actions it already believes are good with taking new actions to potentially discover better choices. We develop a meta-learning algorithm, MELˆ EE´ , that learns an exploration policy based on simulated, synthetic contextual bandit tasks. MELˆ EE´ uses imitation learning against these simulations to train an exploration policy that can be applied to true contextual bandit tasks at test time. We evaluate on both a natural contextual bandit problem derived from a learning to rank dataset as well as hundreds of simulated contextual bandit problems derived from classification tasks. MELˆ EE´ outperforms seven strong baselines on most of these datasets by leveraging a rich feature representation for learning an exploration strategy. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 434
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 463,
55
+ 336,
56
+ 479
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In a contextual bandit problem, an agent attempts to optimize its behavior over a sequence of rounds based on limited feedback (Kaelbling, 1994; Auer, 2003; Langford & Zhang, 2008). In each round, the agent chooses an action based on a context (features) for that round, and observes a reward for that action but no others $( \\ S 2 )$ . Contextual bandit problems arise in many real-world settings like online recommendations and personalized medicine. As in reinforcement learning, the agent must learn to balance exploitation (taking actions that, based on past experience, it believes will lead to high instantaneous reward) and exploration (trying actions that it knows less about). ",
63
+ "bbox": [
64
+ 174,
65
+ 496,
66
+ 825,
67
+ 593
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we present a meta-learning approach to automatically learn a good exploration mechanism from data. To achieve this, we use synthetic supervised learning data sets on which we can simulate contextual bandit tasks in an offline setting. Based on these simulations, our algorithm, MELˆ EE´ (MEta LEarner for Exploration)1, learns a good heuristic exploration strategy that should ideally generalize to future contextual bandit problems. MELˆ EE´ contrasts with more classical approaches to exploration (like $\\epsilon$ -greedy or LinUCB; see $\\ S 6$ ), in which exploration strategies are constructed by expert algorithm designers. These approaches often achieve provably good exploration strategies in the worst case, but are potentially overly pessimistic and are sometimes computationally intractable. ",
74
+ "bbox": [
75
+ 174,
76
+ 599,
77
+ 825,
78
+ 724
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "At training time (§ 3.2), MELˆ EE´ simulates many contextual bandit problems from fully labeled synthetic data. Using this data, in each round, MELˆ EE´ is able to counterfactually simulate what would happen under all possible action choices. We can then use this information to compute regret estimates for each action, which can be optimized using the AggreVaTe imitation learning algorithm (Ross & Bagnell, 2014). Our imitation learning strategy mirrors that of the meta-learning approach of Bachman et al. (2017) in the active learning setting. We present a simplified, stylized analysis of the behavior of MELˆ EE´ to ensure that our cost function encourages good behavior $( \\ S 4 )$ . Empirically, we use MELˆ EE´ to train an exploration policy on only synthetic datasets and evaluate this policy on both a contextual bandit task based on a natural learning to rank dataset as well as three hundred simulated contextual bandit tasks (§5.2). We compare the trained policy to a number of alternative exploration algorithms, and show the efficacy of our approach (§5.3). ",
85
+ "bbox": [
86
+ 174,
87
+ 731,
88
+ 825,
89
+ 885
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 PRELIMINARIES: CONTEXTUAL BANDITS AND POLICY OPTIMIZATION ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 171,
99
+ 102,
100
+ 789,
101
+ 118
102
+ ],
103
+ "page_idx": 1
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "Contextual bandits is a model of interaction in which an agent chooses actions (based on contexts) and receives immediate rewards for that action alone. For example, in a simplified news personalization setting, at each time step $t$ , a user arrives and the system must choose a news article to display to them. Each possible news article corresponds to an action $a$ , and the user corresponds to a context $x _ { t }$ . After the system chooses an article $a _ { t }$ to display, it can observe, for instance, the amount of time that the user spends reading that article, which it can use as a reward $r _ { t } ( a _ { t } )$ . ",
108
+ "bbox": [
109
+ 173,
110
+ 146,
111
+ 825,
112
+ 231
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Formally, we largely follow the setup and notation of Agarwal et al. (2014). Let $\\mathcal { X }$ be an input space of contexts (users) and $[ K ] = \\bar { \\{ 1 , \\dots , K \\} }$ be a finite action space (articles). We consider the statistical setting in which there exists a fixed but unknown distribution $\\mathcal { D }$ over pairs $( x , r ) \\in$ $\\mathcal { X } \\times [ 0 , 1 ] ^ { K }$ , where $\\pmb { r }$ is a vector of rewards (for convenience, we assume all rewards are bounded in $[ 0 , 1 ] )$ . In this setting, the world operates iteratively over rounds $t = 1 , 2 , \\ldots .$ Each round $t$ : ",
119
+ "bbox": [
120
+ 174,
121
+ 237,
122
+ 823,
123
+ 308
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "1. The world draws $( x _ { t } , r _ { t } ) \\sim \\mathcal { D }$ and reveals context $x _ { t }$ . \n2. The agent (randomly) chooses action $a _ { t } \\in [ K ]$ based on $x _ { t }$ , and observes reward $r _ { t } ( a _ { t } )$ . ",
130
+ "bbox": [
131
+ 204,
132
+ 315,
133
+ 808,
134
+ 344
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "The goal of an algorithm is to maximize the cumulative sum of rewards over time. Typically the primary quantity considered is the average regret of a sequence of actions $a _ { 1 } , \\dots , a _ { T }$ to the behavior of the best possible function in a prespecified class $\\mathcal { F }$ : ",
141
+ "bbox": [
142
+ 174,
143
+ 351,
144
+ 820,
145
+ 393
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "equation",
151
+ "img_path": "images/66da3a800878c29c71b0f53e3c28a794e467e3310406c2ec81b78ad68d7c7147.jpg",
152
+ "text": "$$\n\\lambda ( a _ { 1 } , \\ldots , a _ { T } ) = \\operatorname* { m a x } _ { f \\in { \\mathcal { F } } } { \\frac { 1 } { T } } \\sum _ { t = 1 } ^ { T } \\left[ r _ { t } ( f ( x _ { t } ) ) - r _ { t } ( a _ { t } ) \\right]\n$$",
153
+ "text_format": "latex",
154
+ "bbox": [
155
+ 331,
156
+ 392,
157
+ 666,
158
+ 434
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "An agent is call no-regret if its average regret is zero in the limit of large $T$ ",
165
+ "bbox": [
166
+ 178,
167
+ 433,
168
+ 666,
169
+ 446
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "To produce a good agent for interacting with the world, we assume access to a function class $\\mathcal { F }$ and to an oracle policy optimizer for that function class. For example, $\\mathcal { F }$ may be a set of single layer neural networks mapping user features $x \\in \\mathcal { X }$ to predicted rewards for actions $a \\in [ K ]$ . Formally, the observable record of interaction resulting from round $t$ is the tuple $( x _ { t } , a _ { t } , r _ { t } ( \\bar { a } _ { t } ) , p _ { t } ( a _ { t } ) ) \\ \\in$ $\\mathcal { X } { \\times } [ K ] { \\times } [ 0 , 1 ] { \\times } [ 0 , 1 ]$ , where $p _ { t } ( a _ { t } )$ is the probability that the agent chose action $a _ { t }$ , and the full history of interaction is $h _ { t } = \\langle ( x _ { i } , a _ { i } , r _ { i } ( a _ { i } ) , p _ { i } ( a _ { i } ) ) \\rangle _ { i = 1 } ^ { t }$ . The oracle policy optimizer, POLOPT, takes as input a history of user interactions and outputs an $f \\in { \\mathcal { F } }$ with low expected regret. ",
176
+ "bbox": [
177
+ 173,
178
+ 453,
179
+ 825,
180
+ 551
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "A standard example of a policy optimizer is to combine inverse propensity scaling (IPS) with a regression algorithm (Dudik et al., 2011). Here, given a history $h$ , each tuple $( x , a , r , p )$ in that history is mapped to a multiple-output regression example. The input for this regression example is the same $x$ ; the output is a vector of $K$ costs, all of which are zero except the $a ^ { \\mathrm { { t h } } }$ component, which takes value $r / p$ . This mapping is done for all tuples in the history, and a supervised learning algorithm on the function class $\\mathcal { F }$ is used to produce a low-regret regressor $f$ . This is the function returned by the policy optimizer. IPS, and other estimators that have lower-variance than IPS (such as the doubly-robust estimator), have the property of being unbiased. In experiments, we use the direct method (Dudik et al., 2011) largely for its simplicity, however, MELˆ EE´ is agnostic to the type of the estimator used by the policy optimizer. ",
187
+ "bbox": [
188
+ 173,
189
+ 556,
190
+ 825,
191
+ 696
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "3 APPROACH: LEARNING AND EFFECTIVE EXPLORATION STRATEGY",
198
+ "text_level": 1,
199
+ "bbox": [
200
+ 173,
201
+ 739,
202
+ 758,
203
+ 756
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "In order to have an effective approach to the contextual bandit problem, one must be able to both optimize a policy based on historic data and make decisions about how to explore. The exploration/exploitation dilemma is fundamentally about long-term payoffs: is it worth trying something potentially suboptimal now in order to learn how to behave better in the future? A particularly simple and effective form of exploration is $\\epsilon$ -greedy: given a function $f$ output by POLOPT, act according to $f ( x )$ with probability $( 1 - \\epsilon )$ and act uniformly at random with probability \u000f. Intuitively, one would hope to improve on such a strategy by taking more (any!) information into account; for instance, basing the probability of exploration on $f$ ’s uncertainty. In this section, we describe MELˆ EE´ , first by describing how it operates at test time when applied to a new contextual bandit problem (§3.1), and then by describing how to train it using synthetic simulated contextual bandit problems $( \\ S 3 . 2 )$ . ",
210
+ "bbox": [
211
+ 173,
212
+ 784,
213
+ 825,
214
+ 924
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "3.1 TEST TIME BEHAVIOR OF MELˆ EE´ ",
221
+ "text_level": 1,
222
+ "bbox": [
223
+ 176,
224
+ 103,
225
+ 447,
226
+ 118
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Our goal in this paper is to learn how to explore from experience. The training procedure for MELˆ EE´ will use offline supervised learning problems to learn an exploration policy $\\pi$ , which takes two inputs: a function $f \\in { \\mathcal { F } }$ and a context $x$ , and outputs an action. In our example, $f$ will be the output of the policy optimizer on all historic data, and $x$ will be the current user. This is used to produce an agent which interacts with the world, maintaining an initially empty history buffer $h$ , as: ",
233
+ "bbox": [
234
+ 176,
235
+ 128,
236
+ 825,
237
+ 199
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "1. The world draws $( x _ { t } , r _ { t } ) \\sim \\mathcal { D }$ and reveals context $x _ { t }$ . \n2. The agent computes $f _ { t } \\gets \\mathrm { P O L O P T } ( h )$ and a greedy action $\\tilde { a } _ { t } = \\pi ( f _ { t } , x _ { t } )$ . \n3. The agent plays $a _ { t } = \\tilde { a } _ { t }$ with probability $( 1 - \\mu )$ , and $a _ { t }$ uniformly at random otherwise. \n4. The agent observes $r _ { t } ( a _ { t } )$ and appends $( x _ { t } , a _ { t } , r _ { t } ( a _ { t } ) , p _ { t } )$ to the history $h$ , where $\\begin{array} { r l } { p _ { t } } & { { } = } \\end{array}$ \n$\\mu / K$ if $a _ { t } \\neq \\tilde { a } _ { t }$ ; and $p _ { t } = 1 - \\mu + \\mu / K$ if $a _ { t } = \\tilde { a } _ { t }$ . ",
244
+ "bbox": [
245
+ 210,
246
+ 207,
247
+ 823,
248
+ 277
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Here, $f _ { t }$ is the function optimized on the historical data, and $\\pi$ uses it and $x _ { t }$ to choose an action. Intuitively, $\\pi$ might choose to use the prediction $f _ { t } ( x _ { t } )$ most of the time, unless $f _ { t }$ is quite uncertain on this example, in which case $\\pi$ might choose to return the second (or third) most likely action according to $f _ { t }$ . The agent then performs a small amount of additional $\\mu$ -greedy-style exploration: most of the time it acts according to $\\pi$ but occasionally it explores some more. In practice $( \\ S 5 )$ , we find that setting $\\mu = 0$ is optimal in aggregate, but non-zero $\\mu$ is necessary for our theory $( \\ S 4 )$ . ",
255
+ "bbox": [
256
+ 174,
257
+ 284,
258
+ 825,
259
+ 367
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Importantly, we wish to train $\\pi$ using one set of tasks (for which we have fully supervised data on which to run simulations) and apply it to wholly different tasks (for which we only have bandit feedback). To achieve this, we allow $\\pi$ to depend representationally on $f _ { t }$ in arbitrary ways: for instance, it might use features that capture $f _ { t }$ ’s uncertainty on the current example (see $\\ S 5 . 1$ for details). We additionally allow $\\pi$ to depend in a task-independent manner on the history (for instance, which actions have not yet been tried): it can use features of the actions, rewards and probabilities in the history but not depend directly on the contexts $x$ . This is to ensure that $\\pi$ only learns to explore and not also to solve the underlying task-dependent classification problem. Because $\\pi$ needs to learn to be task independent, we found that if $f _ { t }$ ’s predictions were uncalibrated, it was very difficult for $\\pi$ to generalize well to unseen tasks. Therefore, we additionally allow $\\pi$ to depend on a very small amount of fully labeled data from the task at hand, which we use to allow $\\pi$ to calibrate $f _ { t }$ ’s predictions. In our experiments we use only 30 fully labeled examples, but alternative approaches to calibrating $f _ { t }$ that do not require this data would be preferable. ",
266
+ "bbox": [
267
+ 173,
268
+ 373,
269
+ 825,
270
+ 554
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "3.2 TRAINING MELˆ EE BY ´ IMITATION LEARNING ",
277
+ "text_level": 1,
278
+ "bbox": [
279
+ 174,
280
+ 570,
281
+ 522,
282
+ 584
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "The meta-learning challenge is: how do we learn a good exploration policy $\\pi 2$ We assume we have access to fully labeled data on which we can train $\\pi$ ; this data must include context/reward pairs, but where the reward for all actions is known. This is a weak assumption: in practice, we use purely synthetic data as this training data; one could alternatively use any fully labeled classification dataset (Beygelzimer & Langford, 2009). Under this assumption about the data, it is natural to think of $\\pi$ ’s behavior as a sequential decision making problem in a simulated setting, for which a natural class of learning algorithms to consider are imitation learning algorithms (Daume et al., 2009; Ross ´ et al., 2011; Ross & Bagnell, 2014; Chang et al., 2015).2 ",
289
+ "bbox": [
290
+ 174,
291
+ 595,
292
+ 825,
293
+ 708
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Informally, at training time, MELˆ EE´ will treat one of these synthetic datasets as if it were a contextual bandit dataset. At each time step $t$ , it will compute $f _ { t }$ by running POLOPT on the historical data, and then ask: for each action, what would the long time reward look like if I were to take this action. Because the training data for MELˆ EE´ is fully labeled, this can be evaluated for each possible action, and a policy $\\pi$ can be learned to maximize these rewards. More formally, in imitation learning, we assume training-time access to an expert, $\\pi ^ { \\star }$ , whose behavior we wish to learn to imitate at test-time. From this, we can define an optimal reference policy $\\pi ^ { \\star }$ , which effectively “cheats” at training time by looking at the true labels. The learning problem is then to estimate $\\pi$ to have as similar behavior to $\\pi ^ { \\star }$ as possible, but without access to those labels. ",
300
+ "bbox": [
301
+ 174,
302
+ 713,
303
+ 825,
304
+ 839
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "The imitation learning algorithm we use is AggreVaTe (Ross & Bagnell, 2014) (closely related to DAgger (Ross et al., 2011)), and is instantiated for the contextual bandits meta-learning problem in Alg 1. AggreVaTe learns to choose actions to minimize the cost-to-go of the expert rather than the ",
311
+ "bbox": [
312
+ 174,
313
+ 847,
314
+ 825,
315
+ 888
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "1: for round $n = 1 , 2 , \\dots , N \\cdot$ do 2: initialize meta-dataset $D = \\{ \\}$ , choose $S$ at random from $\\{ S _ { m } \\}$ , and set history $h _ { 0 } = \\left\\{ \\begin{array} { r l r } \\end{array} \\right\\}$ 3: partition and permute $S$ randomly into train $T r$ and validation Val where $| V a l | = N _ { V a l }$ 4: for round $t = 1 , 2 , \\dots , | T r |$ do 5: let $( x _ { t } , r _ { t } ) = T r _ { t }$ 6: 7: for each action optimize $\\begin{array} { r } { f _ { t , a } = \\mathrm { P o L O P T } ( \\mathcal { F } , h _ { t - 1 } \\oplus ( x _ { t } , a , r _ { t } ( a ) , 1 - \\frac { K - 1 } { K } \\mu ) ) } \\end{array}$ $a = 1 , \\ldots , K$ do on augmented history 8: roll-out: estimate $\\hat { c } _ { a }$ , the cost-to-go of $a$ , using $r _ { t } ( a )$ and a roll-out policy $\\pi ^ { \\mathrm { { o u t } } }$ on $f _ { t , a }$ 9: end for 10: compute $f _ { t } = \\mathrm { P o L O P T } ( \\mathcal { F } , h _ { t - 1 } )$ 11: aggregate $D \\gets D \\oplus ( \\Phi ( f _ { t } , x _ { t } , h _ { t - 1 } , V a l ) , \\langle \\hat { c } _ { 1 } , \\dots , \\hat { c } _ { K } \\rangle )$ 12: roll-in: $\\begin{array} { r } { a _ { t } \\sim \\frac { \\mu } { K } \\mathbf { 1 } _ { K } + ( 1 - \\mu ) \\pi _ { n - 1 } ( f _ { t } , x _ { t } ) } \\end{array}$ with probability $p _ { t }$ , where 1 is the ones-vector 13: append history $h _ { t } \\gets h _ { t - 1 } \\oplus ( x _ { t } , a _ { t } , r _ { t } ( a _ { t } ) , p _ { t } )$ 14: end for 15: update $\\pi _ { n } = \\operatorname { L E A R N } ( D )$ 16: end for 17: return $\\{ \\pi _ { n } \\} _ { n = 1 } ^ { N }$ ",
322
+ "bbox": [
323
+ 176,
324
+ 136,
325
+ 820,
326
+ 377
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "zero-one classification loss of mimicking its actions. On the first iteration AggreVaTe collects data by observing the expert perform the task, and in each trajectory, at time $t$ , explores an action $a$ in state $s$ , and observes the cost-to-go $Q$ of the expert after performing this action. ",
333
+ "bbox": [
334
+ 176,
335
+ 429,
336
+ 821,
337
+ 472
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "Following the AggreVaTe template, MELˆ EE´ operates in an iterative fashion, starting with an arbitrary $\\pi$ and improving it through interaction with an expert. Over $N$ rounds, MELˆ EE´ selects random training sets and simulates the test-time behavior on that training set. The core functionality is to generate a number of states $( f _ { t } , x _ { t } )$ on which to train $\\pi$ , and to use the supervised data to estimate the value of every action from those states. MELˆ EE´ achieves this by sampling a random supervised training set and setting aside some validation data from it (line 3). It then simulates a contextual bandit problem on this training data; at each time step $t$ , it tries all actions and “pretends” like they were appended to the current history (line 7) on which it trains a new policy and evaluates it’s roll-out value (line 8). This yields, for each $t$ , a new training example for $\\pi$ , which is added to $\\pi$ ’s training set (line 11); the features for this example are features of the classifier based on true history (line 10) (and possibly statistics of the history itself), with a label that gives, for each action, the corresponding cost-to-go of that action (the $c _ { a } s$ computed in line 8). MELˆ EE´ then must commit to a roll-in action to actually take; it chooses this according to a roll-in policy (line 12). MELˆ EE´ has no explicit “exploitation policy”, exploitation happens when $\\pi$ chooses the same action as $f _ { t }$ , while exploration happens when it chooses a different action. In learning to explore, MELˆ EE´ simultaneously learns when to exploit. ",
344
+ "bbox": [
345
+ 173,
346
+ 479,
347
+ 825,
348
+ 700
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "Roll-in actions. The distribution over states visited by MELˆ EE´ depends on the actions taken, and in general it is good to have that distribution match what is seen at test time. This distribution is determined by a roll-in policy (line 12), controlled in MELˆ EE´ by exploration parameter $\\mu \\in [ 0 , 1 ]$ . As $\\mu \\to 1$ , the roll-in policy approaches a uniform random policy; as $\\mu \\to 0$ , the roll-in policy becomes deterministic. When the roll-in policy does not explore, it acts according to $\\pi ( f _ { t } , . )$ . ",
355
+ "bbox": [
356
+ 174,
357
+ 708,
358
+ 823,
359
+ 777
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Roll-out values. The ideal value to assign to an action (from the perspective of the imitation learning procedure) is that total reward (or advantage) that would be achieved in the long run if we took this action and then behaved according to our final learned policy. Unfortunately, during training, we do not yet know the final learned policy. Thus, a surrogate roll-out policy $\\pi ^ { \\mathrm { { o u t } } }$ is used instead. A convenient, and often computationally efficient alternative, is to evaluate the value assuming all future actions were taken by the expert (Langford & Zadrozny, 2005; Daume et al., ´ 2009; Ross & Bagnell, 2014). In our setting, at any time step $t$ , the expert has access to the fully supervised reward vector $\\mathbf { } _ { \\mathbf { } } ^ { \\mathbf { } } \\mathbf { \\Delta } \\mathbf { r } _ { t }$ for the context $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ . When estimating the roll-out value for an action $a$ , the expert will return the true reward value for this action $r _ { t } ( a )$ and we use this as our estimate for the roll-out value. ",
366
+ "bbox": [
367
+ 174,
368
+ 785,
369
+ 825,
370
+ 922
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "4 THEORETICAL GUARANTEES ",
377
+ "text_level": 1,
378
+ "bbox": [
379
+ 176,
380
+ 102,
381
+ 447,
382
+ 118
383
+ ],
384
+ "page_idx": 4
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "We analyze MELˆ EE´ , showing that the no-regret property of AGGREVATE can be leveraged in our meta-learning setting for learning contextual bandit exploration. In particular, we first relate the regret of the learner in line 15 to the overall regret of $\\pi$ . This will show that, $i f$ the underlying classifier improves sufficiently quickly, MELˆ EE´ will achieve sublinear regret. We then show that for a specific choice of underlying classifier (BANDITRON), this is achieved. MELˆ EE´ is an instantiation of AGGREVATE (Ross & Bagnell, 2014); as such, it inherits AGGREVATE’s regret guarantees. ",
389
+ "bbox": [
390
+ 173,
391
+ 132,
392
+ 825,
393
+ 218
394
+ ],
395
+ "page_idx": 4
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "Theorem 1 $\\mathbf { T h m } 2 . 2$ of Ross $\\pmb { \\& }$ Bagnell (2014), adapted) After $N$ rounds, $i f$ LEARN (line 15) is no-regret algorithm, then as $N \\infty$ , with probability 1, it holds that $J ( \\bar { \\pi } ) ~ \\leq ~ J ( \\pi ^ { \\star } ) +$ $2 T \\sqrt { K \\hat { \\epsilon } _ { c l a s s } ( T ) }$ , where $J ( \\cdot )$ is the reward of the exploration policy, $\\bar { \\pi }$ is the average policy returned, and $\\hat { \\epsilon } _ { c l a s s } ( T )$ is the average regression regret for each $\\pi _ { n }$ accurately predicting $\\hat { c } _ { i }$ , where ",
400
+ "bbox": [
401
+ 173,
402
+ 229,
403
+ 825,
404
+ 289
405
+ ],
406
+ "page_idx": 4
407
+ },
408
+ {
409
+ "type": "equation",
410
+ "img_path": "images/4fc57316187212e37a37f2d715a05aa99428209ef03223db0cc28ff5d7e71957.jpg",
411
+ "text": "$$\n\\hat { \\epsilon } _ { c l a s s } ( T ) = \\operatorname* { m i n } _ { \\pi \\in \\Pi } \\frac { 1 } { N } \\hat { \\mathbb { E } } _ { t \\sim U ( T ) , s \\sim d _ { \\pi _ { i } } ^ { t } } \\sum _ { i = 1 } ^ { N } \\Big [ Q _ { T - t + 1 } ^ { \\star } ( s , \\pi ) - \\operatorname* { m i n } _ { a } Q _ { T - t + 1 } ^ { \\star } ( s , a ) \\Big ]\n$$",
412
+ "text_format": "latex",
413
+ "bbox": [
414
+ 248,
415
+ 287,
416
+ 750,
417
+ 330
418
+ ],
419
+ "page_idx": 4
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "is the empirical minimum expected cost-sensitive classification regret achieved by policies in the class $\\Pi$ on all the data over the $N$ iterations of training when compared to the Bayes optimal regressor, for $U ( T )$ the uniform distribution over $\\{ 1 , \\ldots , T \\}$ , $d _ { \\pi } ^ { t }$ the distribution of states at time $t$ induced by executing policy $\\pi$ , and $Q ^ { \\star }$ the cost-to-go of the imitation learning expert. ",
424
+ "bbox": [
425
+ 173,
426
+ 329,
427
+ 825,
428
+ 383
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Thus, achieving low regret at the problem of learning $\\pi$ on the training data it observes (“ $D$ ” in MELˆ EE´ ), i.e. $\\hat { \\epsilon } _ { c l a s s } ( T )$ is small, translates into low regret in the contextual-bandit setting. At first glance this bound looks like it may scale linearly with $T$ . However, the bound in Theorem 1 is dependent on $\\hat { \\epsilon } _ { c l a s s } ( T )$ . Note however, that $s$ is a combination of the context vector $x _ { t }$ and the classification function $f _ { t }$ . As $T \\to \\infty$ , one would hope that $f _ { t }$ improves significantly and $\\hat { \\epsilon } _ { c l a s s } ( T )$ decays quickly. Thus, sublinear regret may still be achievable when $f$ learns sufficiently quickly as a function of $T$ . For instance, if $f$ is optimizing a strongly convex loss function, online gradient descent achieves a regret guarantee of $O \\big ( \\frac { \\log T } { T } \\big )$ (Hazan et al., 2016, Theorem 3.3), potentially leading to a regret for MELˆ EE´ of $O ( \\sqrt { ( \\log T ) / T } )$ . ",
435
+ "bbox": [
436
+ 173,
437
+ 395,
438
+ 825,
439
+ 529
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "The above statement is informal (it does not take into account the interaction between learning $f$ and $\\pi$ ). However, we can show a specific concrete example: we analyze MELˆ EE´ ’s test-time behavior when the underlying learning algorithm is BANDITRON. BANDITRON is a variant of the multiclass Perceptron that operates under bandit feedback. Details of this analysis (and proofs, which directly follow the original BANDITRON analysis) are given in Appendix A; here we state the main result. Let $\\gamma _ { t } = \\mathrm { P r } \\big [ \\bar { r } _ { t } ( \\pi ( f _ { t } , x _ { t } ) = 1 ) | x _ { t } | \\big ] - \\mathrm { P r } \\big [ r _ { t } ( \\bar { f } _ { t } ( x _ { t } ) ) = \\hat { 1 } \\big | x _ { t } \\big ]$ be the edge of $\\pi ( f _ { t } , . )$ over $f$ , and $\\begin{array} { r } { \\Gamma = \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } \\frac { 1 } { 1 + K \\gamma _ { t } } } \\end{array}$ be an overall measure of the edge. For instance if $\\pi$ simply returns $f$ ’s prediction, then all $\\gamma _ { t } = 0$ and $\\Gamma = 1$ . We can then show the following: ",
446
+ "bbox": [
447
+ 173,
448
+ 532,
449
+ 825,
450
+ 651
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Theorem 2 Assume that for the sequence of examples, $( x _ { 1 } , pmb { r } _ { 1 } ) , ( x _ { 2 } , \\pmb { r } _ { 2 } ) , \\dots , ( x _ { T } , \\pmb { r } _ { T } )$ , we have, for all $t _ { : }$ , $| | x _ { t } | | \\leq 1$ . Let $W ^ { \\star }$ be any matrix, let $L$ be the cumulative hinge-loss of $W ^ { \\star }$ , let $\\mu$ be a uniform exploration probability, and let $D = 2 \\left| \\left| W ^ { \\star } \\right| \\right| _ { F } ^ { 2 }$ be the complexity of $W ^ { \\star }$ . Assume that $\\mathbb { E } \\gamma _ { t } \\geq 0$ for all $t$ . Then the number of mistakes $M$ made by MELˆ EE´ with BANDITRON as POLOPT satisfies: ",
457
+ "bbox": [
458
+ 173,
459
+ 662,
460
+ 823,
461
+ 734
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/8907c9db3773df0101946376dcd5d4f4bcf8c6149f1c09495336d9aeb23e98e1.jpg",
468
+ "text": "$$\n\\mathbb { E } M \\leq L + K \\mu T + 3 \\operatorname* { m a x } \\left\\{ D \\Gamma / \\mu , \\sqrt { D T K \\Gamma \\mu } \\right\\} + \\sqrt { D L \\Gamma / \\mu }\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 287,
472
+ 733,
473
+ 712,
474
+ 760
475
+ ],
476
+ "page_idx": 4
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "where the expectation is taken with respect to the randomness of the algorithm. ",
481
+ "bbox": [
482
+ 176,
483
+ 758,
484
+ 689,
485
+ 772
486
+ ],
487
+ "page_idx": 4
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Note that under the assumption $\\mathbb { E } \\gamma _ { t } \\geq 0$ for all $t$ , we have $\\Gamma \\leq 1$ . The analysis gives the same mistake bound for BANDITRON but with the factor of $\\Gamma$ , hence this result improves upon the BANDITRON analysis only when $\\Gamma < 1$ (in the realizable setting, the number of mistakes is analogous to the regret). This result is highly stylized and the assumption that $\\mathbb { E } \\gamma _ { t } \\geq 0$ is overly strong. This assumption ensures that $\\pi$ never decreases the probability of a “correct” action. It does, however, help us understand the behavior of MELˆ EE´ , qualitatively: First, the quantity that matters in Theorem 2, $\\mathbb { E } _ { t } { \\gamma } _ { t }$ is (in the $_ { 0 / 1 }$ loss case) exactly what MELˆ EE´ is optimizing: the expected improvement for choosing an action against $f _ { t }$ ’s recommendation. Second, the benefit of using $\\pi$ within BANDITRON is a local benefit: because $\\pi$ is trained with expert rollouts, as discussed in $\\ S 4$ , the primary improvement in the analysis is to ensure that $\\pi$ does a better job predicting (in a single step) than $f _ { t }$ does. An obvious open question is whether it is possible to base the analysis on the regret of $\\pi$ (rather than its error) and whether it is possible to extend beyond the BANDITRON. ",
492
+ "bbox": [
493
+ 173,
494
+ 784,
495
+ 825,
496
+ 924
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "",
503
+ "bbox": [
504
+ 171,
505
+ 103,
506
+ 823,
507
+ 132
508
+ ],
509
+ "page_idx": 5
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "5 EXPERIMENTAL SETUP AND RESULTS ",
514
+ "text_level": 1,
515
+ "bbox": [
516
+ 174,
517
+ 151,
518
+ 521,
519
+ 167
520
+ ],
521
+ "page_idx": 5
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "Using a collection of synthetically generated classification problems, we train an exploration policy $\\pi$ using MELˆ EE´ (Alg 1). This exploration policy learns to explore on the basis of calibrated probabilistic predictions from $f$ together with a predefined set of exploration features $( \\ S 5 . 1 )$ . Once $\\pi$ is learned and fixed, we follow the test-time behavior described in $\\ S 3 . 1$ to evaluate $\\pi$ on a set of contextual bandit problems. We evaluate MELˆ EE´ on a natural learning to rank task $( \\ S 5 . 3 . 1 )$ . To ensure that the performance of MELˆ EE´ generalizes beyond this single learning to rank task, we additionally perform thorough evaluation on 300 “simulated” contextual bandit problems, derived from standard classification tasks (§5.3.2). ",
526
+ "bbox": [
527
+ 174,
528
+ 183,
529
+ 823,
530
+ 295
531
+ ],
532
+ "page_idx": 5
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "In all cases, the underlying classifier $f$ is a linear model trained with a policy optimizer that runs stochastic gradient descent (details are in $\\ S \\mathbf { A } . 2 )$ . We seek to answer two questions experimentally: (1) How does MELˆ EE´ compare empirically to alternative (expert designed) exploration strategies? (2) How important are the additional features used by MELˆ EE´ in comparison to using calibrated probability predictions from $f$ as features? ",
537
+ "bbox": [
538
+ 171,
539
+ 301,
540
+ 825,
541
+ 371
542
+ ],
543
+ "page_idx": 5
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "5.1 TRAINING DETAILS FOR THE EXPLORATION POLICY ",
548
+ "text_level": 1,
549
+ "bbox": [
550
+ 173,
551
+ 388,
552
+ 576,
553
+ 402
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "Exploration Features. In our experiments, the exploration policy is trained based on features $\\Phi$ (Alg 1, line 11). These features are allowed to depend on the current classifier $f _ { t }$ , and on any part of the history except the inputs $x _ { t }$ in order to maintain task independence. We additionally ensure that its features are independent of the dimensionality of the inputs, so that $\\pi$ can generalize to datasets of arbitrary dimensions. The specific features we use are listed below; these are largely inspired by Konyushkova et al. (2017) but adapted and augmented to our setting. ",
560
+ "bbox": [
561
+ 173,
562
+ 414,
563
+ 825,
564
+ 498
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "The features of $f _ { t }$ that we use are: a) predicted probability $p ( a _ { t } | f _ { t } , \\pmb { x } _ { t } )$ , we use a softmax over the predicted rewards from $f _ { t }$ to convert them to probabilities; b) entropy of the predicted probability distribution; c) a one-hot encoding for the predicted action $f _ { t } ( \\pmb { x } _ { t } )$ . The features of $h _ { t - 1 }$ that we use are: a) current time step $t ; { \\bf b } )$ normalized counts for all previous actions predicted so far; c) average observed rewards for each action; d) empirical variance of the observed rewards for each action in the history. In our experiments, we found that it is essential to calibrate the predicted probabilities of the classifier $f _ { t }$ . We use a very small held-out dataset, of size 30, to achieve this. We use Platt’s scaling (Platt, 1999; Lin et al., 2007) method to calibrate the predicted probabilities. Platt’s scaling works by fitting a logistic regression model to the classifier’s predicted scores. ",
571
+ "bbox": [
572
+ 174,
573
+ 505,
574
+ 825,
575
+ 630
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Training Datasets. In our experiments, we follow Konyushkova et al. (2017) (and also Peters et al. (2014), in a different setting) and train the exploration policy $\\pi$ only on synthetic data. This is possible because the exploration policy $\\pi$ never makes use of $x$ explicitly and instead only accesses it via $f _ { t }$ ’s behavior on it. We generate datasets with uniformly distributed class conditional distributions. The datasets are always two-dimensional. Details are in $\\ S \\mathrm { A } . 1$ . ",
582
+ "bbox": [
583
+ 174,
584
+ 637,
585
+ 823,
586
+ 707
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "5.2 EVALUATION METHODOLOGY ",
593
+ "text_level": 1,
594
+ "bbox": [
595
+ 176,
596
+ 723,
597
+ 421,
598
+ 738
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "For evaluation, we use progressive validation (Blum et al., 1999), which is exactly computing the reward of the algorithm. Specifically, to evaluate the performance of an exploration algorithm $\\mathcal { A }$ on a dataset $S$ of size $n$ , we compute the progressive validation return $\\begin{array} { r } { G ( \\mathcal { A } ) = \\frac { 1 } { n } \\sum _ { t = 1 } ^ { n } r _ { t } ( a _ { t } ) } \\end{array}$ as the average reward up to $n$ , where $a _ { t }$ is the action chosen by the algorithm $\\mathcal { A }$ and $r _ { t }$ is the true reward. ",
605
+ "bbox": [
606
+ 174,
607
+ 750,
608
+ 825,
609
+ 805
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "Because our evaluation is over 300 datasets, we report aggregate results in two forms. The simpler one is Win/Loss Statistics: We compare two exploration methods on a given dataset by counting the number of statistically significant wins and losses. An exploration algorithm $\\mathcal { A }$ wins over another algorithm $\\boldsymbol { B }$ if the progressive validation return $G ( { \\mathcal { A } } )$ is statistically significantly larger than $B$ ’s return $G ( B )$ at the 0.01 level using a paired sample t-test. We also report cumulative distributions of rewards for each algorithm, following Zhang et al. (2019). In particular, for a given relative reward value $( x \\in [ 0 , 1 ] )$ , the corresponding CDF value for a given algorithm is the fraction of datasets on which this algorithm achieved reward at least $x$ . We compute relative reward by Min",
616
+ "bbox": [
617
+ 174,
618
+ 813,
619
+ 825,
620
+ 924
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "Max normalization: linearly transforming reward $y$ to $\\begin{array} { r } { y ^ { \\prime } = \\frac { y - \\mathrm { m i n } } { \\mathrm { m a x - m i n } } } \\end{array}$ , where min & max are the minimum & maximum rewards among all exploration algorithms. ",
627
+ "bbox": [
628
+ 173,
629
+ 102,
630
+ 823,
631
+ 133
632
+ ],
633
+ "page_idx": 6
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "In our experiments, we compare to the following baseline exploration methods, keeping the policy optimization method fixed (details in $\\ S \\mathbf { A . 4 } )$ ): $\\epsilon$ -greedy (Sutton, 1996); $\\epsilon$ -decreasing (Sutton & Barto, 1998); EG $\\epsilon$ -greedy (Li et al., 2010b); $\\tau$ -first. We additionally compare to three state-of-the-art exploration methods: LinUCB (Li et al., 2010a); Cover (Agarwal et al., 2014); and its variant Cover-NU (Bietti et al., 2018). We select the best hyperparameters following Bietti et al. (2018). ",
638
+ "bbox": [
639
+ 174,
640
+ 140,
641
+ 825,
642
+ 210
643
+ ],
644
+ "page_idx": 6
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "5.3 EXPERIMENTAL RESULTS ",
649
+ "text_level": 1,
650
+ "bbox": [
651
+ 176,
652
+ 227,
653
+ 392,
654
+ 241
655
+ ],
656
+ "page_idx": 6
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "5.3.1 LEARNING TO RANK ",
661
+ "text_level": 1,
662
+ "bbox": [
663
+ 176,
664
+ 252,
665
+ 372,
666
+ 267
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "We evaluate MELˆ EE´ on a natural learning to rank dataset. The dataset we consider is the Microsoft Learning to Rank dataset, variant MSLR-10K from Qin & Liu (2013) 3. The dataset consists of feature vectors extracted from query-url pairs along with relevance judgment labels. The relevance judgments are obtained from a retired labeling set of a commercial web search engine (Microsoft Bing), which take 5 values from 0 (irrelevant) to 4 (perfectly relevant) and we drop the queries not labelled as any of the two extremes. In our experiments, we limit the number of labels to the two extremes: 0 and 4. A query-url pair is represented by a 136-dimensional feature vector. The dataset is highly imbalanced as the number of irrelevant queries is much larger than the number of relevant ones. To address this, we sample the number of irrelevant queries to match that of the relevant ones. To avoid correlations between the observed query-url pairs, we group the queries by the query ID, and sample a single query from each group. We convert relevance scores to losses with 0 indicating a perfectly relevant document, and 1 an irrelevant one. ",
673
+ "bbox": [
674
+ 173,
675
+ 277,
676
+ 825,
677
+ 443
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Figure 1 shows the evaluation results on a subset of the MSLR-10K dataset. Since the performance is closely matched between the different exploration algorithms, we repeat the experiment 16 times with randomly shuffled permutations of the MSLR-10K dataset. Figure 1 (left) shows the learning curve of the trained policy $\\pi$ as well as the baselines. Here, we see that MELˆ EE´ quickly achieves high reward, after about 100 examples the two strongest baselines catch up. By 200 examples all approaches have asymptoted. We exclude LinUCB from these runs because the required matrix inversions made it too computationally expensive.4 Figure 1 shows statistically-significant win/loss differences for each of the algorithms, across these 16 shuffles. Each row/column entry shows the number of times the row algorithm won against the column, minus the number of losses. MELˆ EE´ is the only algorithm that always wins more than it loses against other algorithms, and outperforms the nearest competition ( $\\epsilon$ -decreasing) by 3 points. ",
684
+ "bbox": [
685
+ 173,
686
+ 450,
687
+ 825,
688
+ 603
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "5.3.2 SIMULATED CONTEXTUAL BANDIT TASKS ",
695
+ "text_level": 1,
696
+ "bbox": [
697
+ 174,
698
+ 618,
699
+ 524,
700
+ 632
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "We additionally perform an exhaustive evaluation on simulated contextual bandit tasks to ensure that the performance of MELˆ EE´ generalizes beyond learning to rank. Following Bietti et al. (2018), we use a collection of 300 binary classification datasets from openml.org for evaluation; the precise list and download instructions is in $\\ S \\mathbf { A } . 3$ . These datasets cover a variety of different domains including text $\\&$ image processing, medical, and sensory data. We convert classification datasets into cost-sensitive classification problems by using a $0 / 1$ encoding. Given these fully supervised cost-sensitive multi-class datasets, we simulate the contextual bandit setting by only revealing the reward for the selected actions. ",
707
+ "bbox": [
708
+ 174,
709
+ 643,
710
+ 825,
711
+ 755
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "In Figure 2 (left), we show a representative learning curve. Here, we see that as more data becomes available, all the approaches improve (except $\\tau$ -first, which has ceased to learn after $2 \\%$ of the data). MELˆ EE´ , in particular, is able to very quickly achieve near-optimal performance (in around 40 examples) in comparison to the best baseline which takes at least 200. In Figure 2 (right), we show the CDFs for the different algorithms. To help read this, at $x = 1 . 0$ , MELˆ EE´ has a relative reward at least 1.0 on more than $40 \\%$ of datasets, while $\\epsilon$ -decreasing and $\\epsilon$ -greedy achieve this on about $30 \\%$ of datasets. We find that the two strongest baselines are $\\epsilon$ -decreasing and $\\epsilon$ -greedy (better when reward differences are small, toward the left of the graph). The two curves for $\\epsilon$ -decreasing and $\\epsilon$ - greedy coincide. This happens because the exploration probability $\\epsilon _ { 0 }$ for $\\epsilon$ -decreasing decays rapidly approaching zero with a rate of $\\textstyle { \\frac { 1 } { t } }$ , where $t$ is the index of the current round. MELˆ EE´ outperforms the baselines in the “large reward” regimes (right of graph) but under-performs $\\epsilon$ -decreasing and $\\epsilon$ -greedy in low reward regimes (left of graph). ",
718
+ "bbox": [
719
+ 174,
720
+ 761,
721
+ 825,
722
+ 887
723
+ ],
724
+ "page_idx": 6
725
+ },
726
+ {
727
+ "type": "image",
728
+ "img_path": "images/b1788988d738da0efcd31535810491c3b39d1eba306ed5431107fee49afac2b5.jpg",
729
+ "image_caption": [
730
+ "Figure 1: Results for the Learning to Rank task. (Left) Learning curve on the MSLR-10K dataset: $\\mathbf { X }$ -axis shows the number of queries observed, and y-axis shows the progressive reward. (Right) Win/Loss counts for all pairs of algorithms over 16 random shuffles for the MSLR-10K dataset. "
731
+ ],
732
+ "image_footnote": [],
733
+ "bbox": [
734
+ 187,
735
+ 102,
736
+ 797,
737
+ 372
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "image",
743
+ "img_path": "images/6888bb6073c77103de6a8010443f100180a1163ae34fbd197c0760f993ad28e5.jpg",
744
+ "image_caption": [
745
+ "Figure 2: Behavior of MELˆ EE´ in comparison to baseline and state-of-the-art exploration algorithms. "
746
+ ],
747
+ "image_footnote": [],
748
+ "bbox": [
749
+ 173,
750
+ 460,
751
+ 828,
752
+ 694
753
+ ],
754
+ "page_idx": 7
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "",
759
+ "bbox": [
760
+ 174,
761
+ 755,
762
+ 825,
763
+ 799
764
+ ],
765
+ "page_idx": 7
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "In Figure 3, we show statistically-significant win/loss differences for each of the algorithms. Here, each (row, column) entry shows the number of times the row algorithm won against the column, minus the number of losses. MELˆ EE´ is the only algorithm that always wins more than it loses against other algorithms, and outperforms the nearest competition ( $\\epsilon$ -decreasing) by 23 points. ",
770
+ "bbox": [
771
+ 174,
772
+ 804,
773
+ 825,
774
+ 861
775
+ ],
776
+ "page_idx": 7
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "To understand more directly how MELˆ EE´ compares to $\\epsilon$ -decreasing, in the left plot of Figure 4, we show a scatter plot of rewards achieved by MELˆ EE´ $\\mathbf { \\dot { X } }$ -axis) and $\\epsilon$ -decreasing (y-axis) on each of the 300 datasets, with statistically significant differences highlighted in red and insignificant differences in blue. Points below the diagonal line correspond to better performance by MELˆ EE´ (147 datasets) ",
781
+ "bbox": [
782
+ 174,
783
+ 867,
784
+ 825,
785
+ 924
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "image",
791
+ "img_path": "images/2e5f7991d2955d71f4a06f822d4d7174981f8622bdddcce1efae21f30ba0af0b.jpg",
792
+ "image_caption": [
793
+ "Figure 3: Win/Loss counts for all pairs of algorithms (columns match the rows). "
794
+ ],
795
+ "image_footnote": [],
796
+ "bbox": [
797
+ 339,
798
+ 101,
799
+ 651,
800
+ 347
801
+ ],
802
+ "page_idx": 8
803
+ },
804
+ {
805
+ "type": "image",
806
+ "img_path": "images/f000364f695f671698bcf02790d820913e704e54048dceca345b44fcdbac3291.jpg",
807
+ "image_caption": [
808
+ "Figure 4: Scatterplots comparing MELˆ EE´ to the best baseline and to a variant with fewer features. "
809
+ ],
810
+ "image_footnote": [],
811
+ "bbox": [
812
+ 168,
813
+ 388,
814
+ 821,
815
+ 579
816
+ ],
817
+ "page_idx": 8
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "and points above to $\\epsilon$ -decreasing (124 datasets). The remaining 29 had no statistically significant difference. ",
822
+ "bbox": [
823
+ 173,
824
+ 612,
825
+ 821,
826
+ 640
827
+ ],
828
+ "page_idx": 8
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "Finally, we consider the effect that the additional features have on MELˆ EE´ ’s performance. In particular, we consider a version of MELˆ EE´ with all features (this is the version used in all other experiments) with an ablated version that only has access to the (calibrated) probabilities of each action from the underlying classifier $f$ . The comparison is shown as a scatter plot in Figure 4 (right). Here, we can see that the full feature set does provide lift over just the calibrated probabilities, with a win-minus-loss improvement of 24 by adding additional features from which to learn to explore. ",
833
+ "bbox": [
834
+ 173,
835
+ 646,
836
+ 825,
837
+ 731
838
+ ],
839
+ "page_idx": 8
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "6 RELATED WORK AND DISCUSSION ",
844
+ "text_level": 1,
845
+ "bbox": [
846
+ 176,
847
+ 752,
848
+ 495,
849
+ 768
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "The field of meta-learning is based on the idea of replacing hand-engineered learning heuristics with heuristics learned from data. One of the most relevant settings for meta-learning to ours is active learning, in which one aims to learn a decision function to decide which examples, from a pool of unlabeled examples, should be labeled. Past approaches to meta-learning for active learning include reinforcement learning-based strategies (Woodward & Finn, 2017; Fang et al., 2017), imitation learning-based strategies (Bachman et al., 2017), and batch supervised learning-based strategies (Konyushkova et al., 2017). Similar approaches have been used to learn heuristics for optimization (Li & Malik, 2016; Andrychowicz et al., 2016), multiarm (non-contextual) bandits Maes et al. (2012), and neural architecture search (Zoph & Le, 2016), recently mostly based on (deep) reinforcement learning. While meta-learning for contextual bandits is most similar to meta-learning for active learning, there is a fundamental difference that makes it significantly more challenging: in active learning, the goal is to select as few examples as you can to learn, so by definition the horizon is short; in contextual bandits, learning to explore is fundamentally a long-horizon problem, because what matters is not immediate reward but long term learning. ",
856
+ "bbox": [
857
+ 173,
858
+ 785,
859
+ 825,
860
+ 924
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "",
867
+ "bbox": [
868
+ 174,
869
+ 103,
870
+ 823,
871
+ 159
872
+ ],
873
+ "page_idx": 9
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "In reinforcement learning, Gupta et al. (2018) investigated the task of meta-learning an exploration strategy for a distribution of related tasks by learning a latent exploration space. Similarly, Xu et al. (2018) proposed a teacher-student approach for learning to do exploration in off-policy reinforcement learning. While these approaches are effective if the distribution of tasks is very similar and the state space is shared among different tasks, they fail to generalize when the tasks are different. Our approach targets an easier problem than exploration in full reinforcement learning environments, and can generalize well across a wide range of different tasks with completely unrelated features spaces. ",
878
+ "bbox": [
879
+ 174,
880
+ 166,
881
+ 825,
882
+ 279
883
+ ],
884
+ "page_idx": 9
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "There has also been a substantial amount of work on constructing “good” exploration policies, in problems of varying complexity: traditional bandit settings (Karnin & Anava, 2016), contextual bandits (Fraud et al., 2016) and reinforcement learning (Osband et al., 2016). In both bandit settings, most of this work has focused on the learning theory aspect of exploration: what exploration distributions guarantee that learning will succeed (with high probability)? MELˆ EE´ , lacks such guarantees: in particular, if the data distribution of the observed contexts $( \\phi ( f _ { t } ) )$ in some test problem differs substantially from that on which MELˆ EE´ was trained, we can say nothing about the quality of the learned exploration. Nevertheless, despite fairly substantial distribution mismatch (synthetic real-world), MELˆ EE´ works well in practice, and our stylized theory $( \\ S 4 )$ suggests that there may be an interesting avenue for developing strong theoretical results for contextual bandit learning with learned exploration policies, and perhaps other meta-learning problems. ",
889
+ "bbox": [
890
+ 174,
891
+ 285,
892
+ 825,
893
+ 438
894
+ ],
895
+ "page_idx": 9
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "In conclusion, we presented MELˆ EE´ , a meta-learning algorithm for learning exploration policies in the contextual bandit setting. MELˆ EE´ enjoys no-regret guarantees, and empirically it outperforms alternative exploration algorithm in most settings. One limitation of MELˆ EE´ is the computational resources required during the offline training phase on the synthetic datasets. In the future, we will work on improving the computational efficiency for MELˆ EE´ in the offline training phase and scale the experimental analysis to problems with larger number of classes. ",
900
+ "bbox": [
901
+ 174,
902
+ 444,
903
+ 825,
904
+ 527
905
+ ],
906
+ "page_idx": 9
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "REFERENCES ",
911
+ "text_level": 1,
912
+ "bbox": [
913
+ 176,
914
+ 549,
915
+ 285,
916
+ 564
917
+ ],
918
+ "page_idx": 9
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Alekh Agarwal, Daniel Hsu, Satyen Kale, John Langford, Lihong Li, and Robert E. Schapire. Taming the monster: A fast and simple algorithm for contextual bandits. In In Proceedings of the 31st International Conference on Machine Learning (ICML-14, pp. 1638–1646, 2014. \nMarcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems, pp. 3981–3989, 2016. \nPeter Auer. Using confidence bounds for exploitation-exploration trade-offs. The Journal of Machine Learning Research, 3:397–422, 2003. \nPhilip Bachman, Alessandro Sordoni, and Adam Trischler. Learning algorithms for active learning. In ICML, 2017. \nAlina Beygelzimer and John Langford. The offset tree for learning with partial labels. In Proceedings of the 15th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 129–138. ACM, 2009. \nAlberto Bietti, Alekh Agarwal, and John Langford. A Contextual Bandit Bake-off. working paper or preprint, May 2018. \nAvrim Blum, Adam Kalai, and John Langford. Beating the hold-out: Bounds for k-fold and progressive cross-validation. In Proceedings of the twelfth annual conference on Computational learning theory, pp. 203–208. ACM, 1999. \nLeo Breiman. Random forests. Mach. Learn., 45(1):5–32, October 2001. ISSN 0885-6125. doi: 10.1023/A:1010933404324. ",
923
+ "bbox": [
924
+ 169,
925
+ 571,
926
+ 825,
927
+ 929
928
+ ],
929
+ "page_idx": 9
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Kai-Wei Chang, Akshay Krishnamurthy, Alekh Agarwal, Hal Daume, III, and John Langford. ´ Learning to search better than your teacher. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML, pp. 2058–2066. JMLR.org, 2015. ",
934
+ "bbox": [
935
+ 174,
936
+ 103,
937
+ 825,
938
+ 160
939
+ ],
940
+ "page_idx": 10
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Hal Daume, III, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine Learning, 75(3):297–325, Jun 2009. ISSN 1573-0565. doi: 10.1007/s10994-009-5106-x. ",
945
+ "bbox": [
946
+ 174,
947
+ 169,
948
+ 823,
949
+ 198
950
+ ],
951
+ "page_idx": 10
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Miroslav Dudik, Daniel Hsu, Satyen Kale, Nikos Karampatziakis, John Langford, Lev Reyzin, and Tong Zhang. Efficient optimal learning for contextual bandits. arXiv preprint arXiv:1106.2369, 2011. ",
956
+ "bbox": [
957
+ 173,
958
+ 207,
959
+ 825,
960
+ 250
961
+ ],
962
+ "page_idx": 10
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Meng Fang, Yuan Li, and Trevor Cohn. Learning how to active learn: A deep reinforcement learning approach. In EMNLP, 2017. ",
967
+ "bbox": [
968
+ 173,
969
+ 260,
970
+ 823,
971
+ 287
972
+ ],
973
+ "page_idx": 10
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Raphal Fraud, Robin Allesiardo, Tanguy Urvoy, and Fabrice Clrot. Random forest for the contextual bandit problem. In Arthur Gretton and Christian C. Robert (eds.), Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pp. 93–101, Cadiz, Spain, 09–11 May 2016. PMLR. ",
978
+ "bbox": [
979
+ 173,
980
+ 297,
981
+ 825,
982
+ 354
983
+ ],
984
+ "page_idx": 10
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Metareinforcement learning of structured exploration strategies. arXiv preprint arXiv:1802.07245, 2018. ",
989
+ "bbox": [
990
+ 174,
991
+ 363,
992
+ 825,
993
+ 406
994
+ ],
995
+ "page_idx": 10
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Elad Hazan et al. Introduction to online convex optimization. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Optimization, 2(3-4):157–325, 2016. ",
1000
+ "bbox": [
1001
+ 171,
1002
+ 416,
1003
+ 823,
1004
+ 445
1005
+ ],
1006
+ "page_idx": 10
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Leslie Pack Kaelbling. Associative reinforcement learning: Functions ink-dnf. Machine Learning, 15(3):279–298, 1994. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 454,
1014
+ 823,
1015
+ 483
1016
+ ],
1017
+ "page_idx": 10
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Sham M. Kakade, Shai Shalev-Shwart, and Ambuj Tewari. Efficient bandit algorithms for online multiclass prediction. In ICML, 2008. ",
1022
+ "bbox": [
1023
+ 171,
1024
+ 492,
1025
+ 823,
1026
+ 521
1027
+ ],
1028
+ "page_idx": 10
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Zohar S Karnin and Oren Anava. Multi-armed bandits: Competing with optimal sequences. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 199–207. Curran Associates, Inc., 2016. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 530,
1036
+ 825,
1037
+ 574
1038
+ ],
1039
+ "page_idx": 10
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Ksenia Konyushkova, Raphael Sznitman, and Pascal Fua. Learning active learning from data. In Advances in Neural Information Processing Systems, 2017. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 582,
1047
+ 821,
1048
+ 612
1049
+ ],
1050
+ "page_idx": 10
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "John Langford and Bianca Zadrozny. Relating reinforcement learning performance to classification performance. In Proceedings of the 22nd international conference on Machine learning, pp. 473–480. ACM, 2005. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 621,
1058
+ 825,
1059
+ 664
1060
+ ],
1061
+ "page_idx": 10
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "John Langford and Tong Zhang. The epoch-greedy algorithm for multi-armed bandits with side information. In Advances in Neural Information Processing Systems 20, pp. 817–824. Curran Associates, Inc., 2008. ",
1066
+ "bbox": [
1067
+ 173,
1068
+ 672,
1069
+ 825,
1070
+ 715
1071
+ ],
1072
+ "page_idx": 10
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Ke Li and Jitendra Malik. Learning to optimize. arXiv preprint arXiv:1606.01885, 2016. ",
1077
+ "bbox": [
1078
+ 169,
1079
+ 724,
1080
+ 758,
1081
+ 741
1082
+ ],
1083
+ "page_idx": 10
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Lihong Li, Wei Chu, John Langford, and Robert E. Schapire. A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th International Conference on World Wide Web, WWW ’10, pp. 661–670, New York, NY, USA, 2010a. ACM. ISBN 978-1- 60558-799-8. doi: 10.1145/1772690.1772758. ",
1088
+ "bbox": [
1089
+ 173,
1090
+ 750,
1091
+ 825,
1092
+ 806
1093
+ ],
1094
+ "page_idx": 10
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Wei Li, Xuerui Wang, Ruofei Zhang, Ying Cui, Jianchang Mao, and Rong Jin. Exploitation and exploration in a performance based contextual advertising system. In Proceedings of the 16th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’10, pp. 27–36, New York, NY, USA, 2010b. ACM. ",
1099
+ "bbox": [
1100
+ 174,
1101
+ 815,
1102
+ 825,
1103
+ 872
1104
+ ],
1105
+ "page_idx": 10
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Hsuan-Tien Lin, Chih-Jen Lin, and Ruby C. Weng. A note on platt’s probabilistic outputs for support vector machines. Machine Learning, 68(3):267–276, Oct 2007. ISSN 1573-0565. doi: 10.1007/s10994-007-5018-6. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 882,
1113
+ 823,
1114
+ 922
1115
+ ],
1116
+ "page_idx": 10
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Francis Maes, Louis Wehenkel, and Damien Ernst. Meta-learning of exploration/exploitation strategies: The multi-armed bandit case. In International Conference on Agents and Artificial Intelligence, pp. 100–115. Springer, 2012. ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 103,
1124
+ 821,
1125
+ 146
1126
+ ],
1127
+ "page_idx": 11
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4026–4034. Curran Associates, Inc., 2016. ",
1132
+ "bbox": [
1133
+ 173,
1134
+ 155,
1135
+ 825,
1136
+ 210
1137
+ ],
1138
+ "page_idx": 11
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 219,
1146
+ 825,
1147
+ 276
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Jonas Peters, Joris M Mooij, Dominik Janzing, and Bernhard Scholkopf. Causal discovery with ¨ continuous additive noise models. The Journal of Machine Learning Research, 15(1):2009–2053, 2014. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 285,
1157
+ 825,
1158
+ 328
1159
+ ],
1160
+ "page_idx": 11
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "John C. Platt. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. In ADVANCES IN LARGE MARGIN CLASSIFIERS, pp. 61–74. MIT Press, 1999. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 337,
1168
+ 826,
1169
+ 380
1170
+ ],
1171
+ "page_idx": 11
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Tao Qin and Tie-Yan Liu. Introducing LETOR 4.0 datasets. CoRR, abs/1306.2597, 2013. URL http://arxiv.org/abs/1306.2597. ",
1176
+ "bbox": [
1177
+ 171,
1178
+ 388,
1179
+ 823,
1180
+ 417
1181
+ ],
1182
+ "page_idx": 11
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Stephane Ross and J Andrew Bagnell. Reinforcement and imitation learning via interactive no-regret ´ learning. arXiv preprint arXiv:1406.5979, 2014. ",
1187
+ "bbox": [
1188
+ 169,
1189
+ 426,
1190
+ 825,
1191
+ 455
1192
+ ],
1193
+ "page_idx": 11
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Stephane Ross, Geoffrey Gordon, and J Andrew Bagnell. A reduction of imitation learning and ´ structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pp. 627–635, Fort Lauderdale, FL, USA, 11–13 Apr 2011. PMLR. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 463,
1201
+ 825,
1202
+ 521
1203
+ ],
1204
+ "page_idx": 11
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Richard S Sutton. Generalization in reinforcement learning: Successful examples using sparse coarse coding. In Advances in neural information processing systems, pp. 1038–1044, 1996. ",
1209
+ "bbox": [
1210
+ 171,
1211
+ 529,
1212
+ 823,
1213
+ 559
1214
+ ],
1215
+ "page_idx": 11
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981. ",
1220
+ "bbox": [
1221
+ 171,
1222
+ 568,
1223
+ 823,
1224
+ 597
1225
+ ],
1226
+ "page_idx": 11
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Mark Woodward and Chelsea Finn. Active one-shot learning. arXiv preprint arXiv:1702.06559, 2017. ",
1231
+ "bbox": [
1232
+ 171,
1233
+ 604,
1234
+ 823,
1235
+ 633
1236
+ ],
1237
+ "page_idx": 11
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Tianbing Xu, Qiang Liu, Liang Zhao, Wei Xu, and Jian Peng. Learning to explore with meta-policy gradient. arXiv preprint arXiv:1803.05044, 2018. ",
1242
+ "bbox": [
1243
+ 171,
1244
+ 642,
1245
+ 823,
1246
+ 672
1247
+ ],
1248
+ "page_idx": 11
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Chicheng Zhang, Alekh Agarwal, Hal Daume, III, John Langford, and Sahand N Negahban. Warm- ´ starting contextual bandits: Robustly combining supervised and bandit feedback. In ICML, 2019. ",
1253
+ "bbox": [
1254
+ 171,
1255
+ 680,
1256
+ 823,
1257
+ 710
1258
+ ],
1259
+ "page_idx": 11
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. ",
1264
+ "bbox": [
1265
+ 171,
1266
+ 718,
1267
+ 823,
1268
+ 747
1269
+ ],
1270
+ "page_idx": 11
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Supplementary Material For: Learning Effective Exploration Strategies for Contextual Bandits ",
1275
+ "text_level": 1,
1276
+ "bbox": [
1277
+ 176,
1278
+ 99,
1279
+ 785,
1280
+ 137
1281
+ ],
1282
+ "page_idx": 12
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "A STYLIZED TEST-TIME ANALYSIS FOR BANDITRON: DETAILS ",
1287
+ "bbox": [
1288
+ 176,
1289
+ 155,
1290
+ 707,
1291
+ 171
1292
+ ],
1293
+ "page_idx": 12
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "The BANDITRONMELˆ EE´ algorithm is specified in $\\mathrm { A l g } 2$ . The is exactly the same as the typical test time behavior, except it uses a BANDITRON-type strategy for learning the underlying classifier $f$ in the place of POLOPT. POLICYELIMINATIONMETA takes as arguments: $\\pi$ (the learned exploration policy) and $\\mu \\in ( 0 , 1 / ( 2 K ) )$ an added uniform exploration parameter. The BANDITRON learns a linear multi-class classifier parameterized by a weight matrix of size $K { \\times } D$ , where $D$ is the input dimensionality. The BANDITRON assumes a pure multi-class setting in which the reward for one (“correct”) action is 1 and the reward for all other actions is zero. ",
1298
+ "bbox": [
1299
+ 174,
1300
+ 185,
1301
+ 825,
1302
+ 284
1303
+ ],
1304
+ "page_idx": 12
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "At each round $t$ , a prediction $\\hat { a } _ { t }$ is made according to $f _ { t }$ (summarized by $W ^ { t }$ ). We then define an exploration distribution that “most of the time” acts according to $\\pi ( f _ { t } , . )$ , but smooths each action with $\\mu$ probability. The chosen action $a _ { t }$ is sampled from this distribution and a binary reward is observed. The weights of the BANDITRON are updated according to the BANDITRON update rule using $\\tilde { U } ^ { t }$ . ",
1309
+ "bbox": [
1310
+ 174,
1311
+ 290,
1312
+ 825,
1313
+ 362
1314
+ ],
1315
+ "page_idx": 12
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Algorithm 2 BANDITRONMELˆ EE´ $( g , \\mu )$ ",
1320
+ "text_level": 1,
1321
+ "bbox": [
1322
+ 176,
1323
+ 376,
1324
+ 446,
1325
+ 391
1326
+ ],
1327
+ "page_idx": 12
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "1: initialize $W ^ { 1 } = \\mathbf { 0 } \\in \\mathbb { R } ^ { K \\times D }$ \n2: for rounds $t = 1 \\dots T$ : do \n3: observe $\\boldsymbol { x } _ { t } \\in \\mathbb { R } ^ { D }$ \n4: compute $\\begin{array} { r } { \\hat { a } _ { t } = f _ { t } ( x _ { t } ) = \\mathrm { a r g m a x } _ { k \\in K } \\left( W ^ { t } x _ { t } \\right) _ { k } } \\end{array}$ \n5: define $Q ^ { \\mu } ( a ) = \\mu + ( 1 - K \\mu ) { \\bf 1 } [ a = \\pi ( W ^ { t } , x _ { t } ) ]$ \n6: sample $a _ { t } \\sim Q ^ { \\mu }$ \n7: observe reward $r _ { t } ( a _ { t } ) \\in \\{ 0 , 1 \\}$ \n8: d $\\tilde { U } ^ { t } \\in \\mathbb { R } ^ { K \\times D }$ \n$\\begin{array} { r } { \\tilde { U } _ { a , \\cdot } ^ { t } = x _ { t } \\left( \\frac { \\mathbf { 1 } [ r _ { t } ( a _ { t } ) = 1 ] \\mathbf { 1 } [ a _ { t } = a ] } { Q ^ { \\mu } ( a ) } - \\mathbf { 1 } [ \\hat { a } _ { t } = a ] \\right) } \\end{array}$ \n9: update $W ^ { t + 1 } = W ^ { t } + \\tilde { U } ^ { t }$ ",
1332
+ "bbox": [
1333
+ 179,
1334
+ 393,
1335
+ 542,
1336
+ 547
1337
+ ],
1338
+ "page_idx": 12
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "The only difference between BANDITRONMELˆ EE´ and the original BANDITRON is the introduction of $\\pi$ in the sampling distribution. The original algorithm achieves the following mistake bound shown below, which depends on the notion of multi-class hinge-loss. In particular, the hinge-loss of $W$ on $( x , r )$ is $\\ell ( W , ( x , \\pmb { r } ) ) = \\mathrm { m a x } _ { a \\neq a ^ { \\star } }$ max $\\left\\{ 0 , 1 - ( W x ) _ { a ^ { \\star } } + ( W x ) _ { a } ^ { \\top } \\right\\}$ , where $a ^ { \\star }$ is the $a$ for which $r ( a ) = 1$ . The overall hinge-loss $L$ is the sum of $\\ell$ over the sequence of examples. ",
1343
+ "bbox": [
1344
+ 173,
1345
+ 577,
1346
+ 825,
1347
+ 650
1348
+ ],
1349
+ "page_idx": 12
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Theorem 3 (Thm. 1 and Corr. 2 of Kakade et al. (2008)) Assume that for the sequence of examples, $( x _ { 1 } , r _ { 1 } ) , ( x _ { 2 } , r _ { 2 } ) , \\ldots , ( x _ { T } , \\pmb { r } _ { T } )$ , we have, for all $t _ { : }$ , $| | x _ { t } | | \\leq 1$ . Let $W ^ { \\star }$ be any matrix, let $L$ be the cumulative hinge-loss of $W ^ { \\star }$ , and let $D = 2 \\left| \\left| W ^ { \\star } \\right| \\right| _ { F } ^ { 2 }$ be the complexity of $W ^ { \\star }$ . The number of mistakes $M$ made by the BANDITRON satisfies ",
1354
+ "bbox": [
1355
+ 173,
1356
+ 659,
1357
+ 825,
1358
+ 717
1359
+ ],
1360
+ "page_idx": 12
1361
+ },
1362
+ {
1363
+ "type": "equation",
1364
+ "img_path": "images/0c7e337e2f2c2052151da2a1b413827d1f6ad201796ab3f0ed0bf40986778eff.jpg",
1365
+ "text": "$$\n{ \\mathbb { E } } M \\leq L + K \\mu T + 3 \\operatorname* { m a x } \\left\\{ { \\frac { D } { \\mu } } , { \\sqrt { D T K \\mu } } \\right\\} + { \\sqrt { D L / \\mu } }\n$$",
1366
+ "text_format": "latex",
1367
+ "bbox": [
1368
+ 307,
1369
+ 717,
1370
+ 691,
1371
+ 751
1372
+ ],
1373
+ "page_idx": 12
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "where the expectation is taken with respect to the randomness of the algorithm. Furthermore, in a low noise setting (there exists $W ^ { \\star }$ with fixed complexity √ $d$ and loss $\\bar { L ( \\mathbf { \\Omega } \\leq \\cal { O } ( \\sqrt { \\cal { D } K T } ) ) }$ , then by setting $\\mu = \\sqrt { D / ( T K ) }$ , we obtain $\\mathbb { E } M \\le O ( \\sqrt { K D T } )$ . ",
1378
+ "bbox": [
1379
+ 174,
1380
+ 750,
1381
+ 825,
1382
+ 795
1383
+ ],
1384
+ "page_idx": 12
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "We can prove an analogous result for BANDITRONMELˆ EE´ . The key quantity that will control how much $\\pi$ improves the execution of BANDITRONMELˆ EE´ is how much $\\pi$ improves on $f _ { t }$ when $f _ { t }$ is $\\pi ( f _ { t } , . )$ In p over $f$ ticul, and $\\begin{array} { r } { \\Gamma = \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } \\frac { 1 } { 1 + K \\gamma _ { t } } } \\end{array}$ $\\gamma _ { t } = \\operatorname* { P r } [ r _ { t } ( \\pi ( f _ { t } , x _ { t } ) = 1 ) | x _ { t } ] - \\operatorname* { P r } [ r _ { t } ( f _ { t } ( x _ { t } ) ) = 1 | x _ { t } ]$ $\\pi$ e the edge ofdoes nothing, then all $\\gamma _ { t } = 0$ $\\Gamma = 1 .$ .) Given this quantity, we can prove the following Theorem 2. ",
1389
+ "bbox": [
1390
+ 173,
1391
+ 803,
1392
+ 825,
1393
+ 881
1394
+ ],
1395
+ "page_idx": 12
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Proof: [sketch] The proof is a small modification of the original proof of Theorem 3. The only change is that in the original proof, the following bound is used: $\\mathbb { E } _ { t } | | \\bar { \\tilde { U } } ^ { t } | | ^ { 2 } / | | x _ { t } | | ^ { 2 } = 1 + 1 / \\mu \\le 2 / \\mu$ ",
1400
+ "bbox": [
1401
+ 173,
1402
+ 893,
1403
+ 823,
1404
+ 924
1405
+ ],
1406
+ "page_idx": 12
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "We use, instead: Et||U˜ t||2/||xt||2 ≤ 1 + Et 1µ+γt 2Et 11+γtµ . The rest of the proof goes through identically. ",
1411
+ "bbox": [
1412
+ 174,
1413
+ 101,
1414
+ 825,
1415
+ 138
1416
+ ],
1417
+ "page_idx": 13
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "A.1 DETAILS OF SYNTHETIC DATASETS ",
1422
+ "text_level": 1,
1423
+ "bbox": [
1424
+ 176,
1425
+ 152,
1426
+ 464,
1427
+ 167
1428
+ ],
1429
+ "page_idx": 13
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "We generate datasets with uniformly distributed class conditional distributions. We generate 2D datasets by first sampling a random variable representing the Bayes classification error. The Bayes error is sampled uniformly from the interval 0.0 to 0.5. Next, we generate a balanced dataset where the data for each class lies within a unit rectangle and sampled uniformly. We overlap the sampling rectangular regions to generate a dataset with the desired Bayes error selected in the first step. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 179,
1437
+ 825,
1438
+ 250
1439
+ ],
1440
+ "page_idx": 13
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "A.2 IMPLEMENTATION DETAILS ",
1445
+ "text_level": 1,
1446
+ "bbox": [
1447
+ 176,
1448
+ 266,
1449
+ 410,
1450
+ 280
1451
+ ],
1452
+ "page_idx": 13
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Our implementation is based on scikit-learn (Pedregosa et al., 2011). We fix the training time exploration parameter $\\mu$ to 0.1. We train the exploration policy $\\pi$ on 82 synthetic datasets each of size 3000 with uniform class conditional distributions, a total of $2 4 6 k$ samples (§A.1). We train $\\pi$ using a linear classifier Breiman (2001) and set the hyper-parameters for the learning rate, and data scaling methods using three-fold cross-validation on the whole meta-training dataset. For the classifier class $\\mathcal { F }$ , we use a linear model trained with stochastic gradient descent. We standardize all features to zero mean and unit variance, or scale the features to lie between zero and one. To select between the two scaling methods, and tune the classifier’s learning rate, we use three-fold cross-validation on a small fully supervised training set of size 30 samples. The same set is used to calibrate the predicted probabilities of $f _ { t }$ . ",
1457
+ "bbox": [
1458
+ 173,
1459
+ 291,
1460
+ 825,
1461
+ 431
1462
+ ],
1463
+ "page_idx": 13
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "A.3 LIST OF DATASETS ",
1468
+ "text_level": 1,
1469
+ "bbox": [
1470
+ 176,
1471
+ 446,
1472
+ 349,
1473
+ 460
1474
+ ],
1475
+ "page_idx": 13
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "The datasets we used can be accessed at https://www.openml.org/d/<id>. The list of (id, size) pairs below shows the (id for the datasets we used and the dataset size in number of examples: ",
1480
+ "bbox": [
1481
+ 174,
1482
+ 473,
1483
+ 825,
1484
+ 515
1485
+ ],
1486
+ "page_idx": 13
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "(46,100) (716, 100) (726, 100) (754, 100) (762, 100) (768, 100) (775, 100) (783, 100) (789, 100) (808, 100) (812, 100) (828, 100) (829, 100) (850, 100) (865, 100) (868, 100) (875, 100) (876, 100) (878, 100) (916, 100) (922, 100) (932, 100) (1473, 100) (965, 101) (1064, 101) (956, 106) (1061, 107) (771, 108) (736, 111) (448, 120) (782, 120) (1455, 120) (1059, 121) (1441, 123) (714, 125) (867, 130) (924, 130) (1075, 130) (1141, 130) (885, 131) (444, 132) (921, 132) (974, 132) (719, 137) (1013, 138) (1151, 138) (784, 140) (1045, 145) (1066, 145) (1125, 146) (902, 147) (1006, 148) (969, 150) (955, 151) (1026, 155) (745, 159) (756, 159) (1085, 159) (1054, 161) (748, 163) (747, 167) (973, 178) (463, 180) (801, 185) (1164, 185) (788, 186) (1154, 187) (941, 189) (1131, 193) (753, 194) (1012, 194) (1155, 195) (1488, 195) (446, 200) (721, 200) (1124, 201) (1132, 203) (40, 208) (733, 209) (796, 209) (996, 214) (1005, 214) (895, 222) (1412, 226) (820, 235) (851, 240) (464, 250) (730, 250) (732, 250) (744, 250) (746, 250) (763, 250) (769, 250) (773, 250) (776, 250) (793, 250) (794, 250) (830, 250) (832, 250) (834, 250) (863, 250) (873, 250) (877, 250) (911, 250) (918, 250) (933, 250) (935, 250) (1136, 250) (778, 252) (1442, 253) (1449, 253) (1159, 259) (450, 264) (811, 264) (336, 267) (1152, 267) (53, 270) (1073, 274) (1156, 275) (880, 284) (1121, 294) (43, 306) (818, 310) (915, 315) (1157, 321) (1162, 322) (925, 323) (1140, 324) (1144, 329) (1011, 336) (1147, 337) (1133, 347) (337, 349) (59, 351) (1135, 355) (1143, 363) (1048, 369) (860, 380) (1129, 384) (1163, 386) (900, 400) (906, 400) (907, 400) (908, 400) (909, 400) (1025, 400) (1071, 403) (1123, 405) (1160, 410) (1126, 412) (1122, 413) (1127, 421) (764, 450) (1065, 458) (1149, 458) (1498, 462) (724, 468) (814, 468) (1148, 468) (1150, 470) (765, 475) (767, 475) (1153, 484) (742, 500) (749, 500) (750, 500) (766, 500) (779, 500) (792, 500) (805, 500) (824, 500) (838, 500) (855, 500) (869, 500) (870, 500) (879, 500) (884, 500) (886, 500) (888, 500) (896, 500) (920, 500) (926, 500) (936, 500) (937, 500) (943, 500) (987, 500) (1470, 500) (825, 506) (853, 506) (872, 506) (717, 508) (1063, 522) (954, 531) (1467, 540) (1165, 542) (1137, 546) (335, 554) (333, 556) (947, 559) (949, 559) (950, 559) (951, 559) (826, 576) (1004, 600) (334, 601) (1158, 604) (770, 625) (997, 625) (1145, 630) (1443, 661) (774, 662) (795, 662) (827, 662) (931, 662) (292, 690) (1451, 705) (1464, 748) (37, 768) (1014, 797) (970, 841) (994, 846) (841, 950) (50, 958) (1016, 990) (31, 1000) (715, 1000) (718, 1000) (723, 1000) (740, 1000) (743, 1000) (751, 1000) (797, 1000) (799, 1000) (806, 1000) (813, 1000) (837, 1000) (845, 1000) (849, 1000) (866, 1000) (903, 1000) (904, 1000) (910, 1000) (912, 1000) (913, 1000) (917, 1000) (741, 1024) (1444, 1043) (1453, 1077) ",
1491
+ "bbox": [
1492
+ 171,
1493
+ 521,
1494
+ 826,
1495
+ 924
1496
+ ],
1497
+ "page_idx": 13
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "(1068, 1109) (934, 1156) (1049, 1458) (1454, 1458) (983, 1473) (1128, 1545) (1130, 1545) (1138, 1545) (1139, 1545) (1142, 1545) (1146, 1545) (1161, 1545) (1166, 1545) (1050, 1563) (991, 1728) (962, 2000) (971, 2000) (978, 2000) (995, 2000) (1020, 2000) (1022, 2000) (914, 2001) (1067, 2109) (772, 2178) (948, 2178) (958, 2310) (312, 2407) (1487, 2534) (737, 3107) (953, 3190) (3, 3196) (1038, 3468) (871, 3848) (728, 4052) (720, 4177) (1043, 4562) (44, 4601) (979, 5000) (1460, 5300) (1489, 5404) (1021, 5473) (1069, 5589) (980, 5620) (847, 6574) (1116, 6598) (803, 7129) (1496, 7400) (725, 8192) (735, 8192) (752, 8192) (761, 8192) (807, 8192) ",
1502
+ "bbox": [
1503
+ 173,
1504
+ 103,
1505
+ 825,
1506
+ 202
1507
+ ],
1508
+ "page_idx": 14
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "A.4 BASELINE EXPLORATION ALGORITHMS ",
1513
+ "text_level": 1,
1514
+ "bbox": [
1515
+ 176,
1516
+ 218,
1517
+ 493,
1518
+ 232
1519
+ ],
1520
+ "page_idx": 14
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Our experiments aim to determine how MELˆ EE´ compares to other standard exploration strategies. In particular, we compare to: ",
1525
+ "bbox": [
1526
+ 171,
1527
+ 243,
1528
+ 823,
1529
+ 272
1530
+ ],
1531
+ "page_idx": 14
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "$\\epsilon$ -greedy: With probability $\\epsilon$ , explore uniformly at random; with probability $1 - \\epsilon$ act greedily according to $f _ { t }$ (Sutton, 1996). Experimentally, we found $\\epsilon = 0$ optimal on average, consistent with the results of Bietti et al. (2018). ",
1536
+ "bbox": [
1537
+ 176,
1538
+ 280,
1539
+ 823,
1540
+ 321
1541
+ ],
1542
+ "page_idx": 14
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "$\\epsilon$ -decreasing: selects a random action with probabilities $\\epsilon _ { i }$ , where $\\epsilon _ { i } = \\epsilon _ { 0 } / t , \\epsilon _ { 0 } \\in ] 0 , 1 ]$ and $t$ is the index of the current round. In our experiments we set $\\epsilon _ { 0 } = 0 . 1$ . (Sutton & Barto, 1998) ",
1547
+ "bbox": [
1548
+ 176,
1549
+ 321,
1550
+ 821,
1551
+ 349
1552
+ ],
1553
+ "page_idx": 14
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "Exponentiated Gradient $\\epsilon$ -greedy: maintains a set of candidate values for $\\epsilon$ -greedy exploration. At each iteration, it runs a sampling procedure to select a new $\\epsilon$ from a finite set of candidates. The probabilities associated with the candidates are initialized uniformly and updated with the Exponentiated Gradient (EG) algorithm. Following Li et al. (2010b), we use the candidate set $\\{ \\epsilon _ { i } = 0 . 0 5 { \\times } i + 0 . 0 1 , i = 1 , \\cdot \\cdot \\cdot , 1 0 \\}$ for $\\epsilon$ . ",
1558
+ "bbox": [
1559
+ 174,
1560
+ 349,
1561
+ 825,
1562
+ 417
1563
+ ],
1564
+ "page_idx": 14
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "LinUCB: Maintains confidence bounds for reward payoffs and selects actions with the highest confidence bound. It is impractical to run “as is” due to high-dimensional matrix inversions. We use diagonal approximation to the covariance when the dimensions exceeds 150. (Li et al., 2010a) $\\tau$ -first: Explore uniformly on the first $\\tau$ fraction of the data; after that, act greedily. ",
1569
+ "bbox": [
1570
+ 174,
1571
+ 419,
1572
+ 825,
1573
+ 473
1574
+ ],
1575
+ "page_idx": 14
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "Cover: Maintains a uniform distribution over a fixed number of policies. The policies are used to approximate a covering distribution over policies that are good for both exploration and exploitation (Agarwal et al., 2014). ",
1580
+ "bbox": [
1581
+ 176,
1582
+ 474,
1583
+ 820,
1584
+ 515
1585
+ ],
1586
+ "page_idx": 14
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "Cover Non-Uniform: similar to Cover, but reduces the level of exploration of Cover to be more competitive with the Greedy method. Cover-Nu doesn’t add extra exploration beyond the actions chose by the covering policies (Bietti et al., 2018). ",
1591
+ "bbox": [
1592
+ 176,
1593
+ 515,
1594
+ 823,
1595
+ 558
1596
+ ],
1597
+ "page_idx": 14
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "In all cases, we select the best hyperparameters for each exploration algorithm following Bietti et al. (2018). These hyperparameters are: the choice of $\\epsilon$ in $\\epsilon$ -greedy, $\\tau$ in $\\tau$ -first, the number of bags, and the tolerance $\\psi$ for Cover and Cover-NU. We set $\\epsilon = 0 . 0$ , $\\tau = 0 . 0 2$ , bag size $= 1 6$ , and $\\psi = 0 . 1$ . ",
1602
+ "bbox": [
1603
+ 173,
1604
+ 564,
1605
+ 823,
1606
+ 606
1607
+ ],
1608
+ "page_idx": 14
1609
+ }
1610
+ ]
parse/train/Bkgk624KDB/Bkgk624KDB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkgk624KDB/Bkgk624KDB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1fsUiRcKQ/H1fsUiRcKQ.md ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FAST ADVERSARIAL TRAINING FOR SEMI-SUPERVISEDLEARNING
2
+
3
+ Anonymous authors
4
+
5
+ Paper under double-blind review
6
+
7
+ # ABSTRACT
8
+
9
+ In semi-supervised learning, Bad GAN approach is one of the most attractive method due to the intuitional simplicity and powerful performances. Bad GAN learns a classifier with bad samples distributed on complement of the support of the input data. But Bad GAN needs additional architectures, a generator and a density estimation model, which involves huge computation and memory consumption cost. VAT is another good semi-supervised learning algorithm, which utilizes unlabeled data to improve the invariance of the classifier with respect to perturbation of inputs. In this study, we propose a new method by combining the ideas of Bad $G A N$ and VAT. The proposed method generates bad samples of high-quality by use of the adversarial training used in VAT. We give theoretical explanations why the adversarial training is good at both generating bad samples and semi-supervised learning. An advantage of the proposed method is to achieve the competitive performances with much fewer computations. We demonstrate advantages our method by various experiments with well known benchmark image datasets.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Deep learning has accomplished unprecedented success due to the development of deep architectures, learning techniques and hardwares (Krizhevsky et al., 2012; Ioffe & Szegedy, 2015; Szegedy et al., 2015; Hinton et al., 2012; Kingma & Ba, 2014). However, deep learning has also suffered from collecting large amount of labeled data which requires both cost and time. Thus it becomes important to develop semi-supervised methodologies that learn a classifier (or discriminator) by using small labeled data and large unlabeled data.
14
+
15
+ Various semi-supervised learning methods have been proposed for deep learning. Weston et al. (2012) employs a manifold embedding technique using the pre-constructed graph of unlabeled data and Rasmus et al. (2015) uses a specially designed auto-encoder to extract essential features for classification. Variational auto encoder (Kingma & Welling, 2013) is also used in the context of semi-supervised learning by maximizing the variational lower bound of both labeled and unlabeled data (Kingma et al., 2014; Maaløe et al., 2016).
16
+
17
+ Recently, semi-supervised learning based on generative adversarial networks (GAN, Goodfellow et al. (2014a)) has received much attention. For $K$ -class classification problems, Salimans et al. (2016) solves the $( K + 1 )$ -class classification problem where the additional $( K + 1 )$ th class consists of synthetic images made by a generator of the $G A N$ learned by unlabeled data. Dai et al. (2017) notices that not a good generator but a bad generator which generates synthetic images much different from observed images is crucial for the success of semi-supervised learning. Dai et al. (2017) gives theoretical justifications of using a bad generator and develops a semi-supervised learning algorithm called Bad GAN which achieves the state-of-the-art performances over multiple benchmark datasets.
18
+
19
+ However, Bad GAN has several limitations. It needs two additional deep architectures - bad generator and pre-trained density estimation model besides the one for the classifier. Learning these multiple deep architectures requires huge computation and memory consumption. In particular, the Pixel$C N N { + + }$ (Salimans et al., 2017) is used for the pre-trained density estimation model which needs very large computational resources.
20
+
21
+ Another difficulty in Bad GAN is that it requires a two-step learning procedure - the first step is to learn the $P i x e l C N N { + + }$ model and the second step is to learn the classifier and the bad generator. The optimal learning of the first step may not be optimal for the second step and hence the regularization of the both steps would need special techniques.
22
+
23
+ In this study, we propose a new semi-supervised learning method which competes well with other stateof-the-art semi-supervised learning algorithms and yet needs much smaller amount of computational resources. In particular, the proposed method employs only one deep architecture and hence the corresponding learning phase is much easier and faster.
24
+
25
+ Our proposed method is motivated by close investigation of VAT (Virtual Adversarial Training) method (Miyato et al., 2015; 2017). VAT tries to find a deep classifier which has a good prediction accuracy on training data and at the same time is less sensitive to data perturbation toward the adversarial direction. Here, the adversarial direction for a given datum is the direction to which the probabilities of each class change most. In Section 3, we prove that the perturbed data toward their adversarial directions can serve as ‘good’ bad samples. By using the adversarial directions for both measuring the invariance and generating the bad samples, the proposed method combines the advantages of Bad GAN and VAT together. Note that only a deep architecture for classification is needed to calculate the adversarial directions and thus the corresponding learning procedure is cheaper, easier and faster. We call our proposed method FAT (Fast Adversarial Training).
26
+
27
+ Dai et al. (2017) proves that bad samples play a role to pull the decision boundary toward the low density regions of data. In Section 5, we give a theoretical explanation that VAT pushes the decision boundary away from the high density regions of data. That is, FAT accelerates the learning procedure by using both pushing and pulling operations simultaneously. In section 6, we show that $F A T$ achieves almost the state-of-the-art performances with much fewer training epochs. Especially, for the MNIST dataset, FAT achieves similar test accuracies to those of Bad GAN and VAT with 5 times and 7 times fewer training epochs, respectively.
28
+
29
+ This paper is organized as follows. In Section 2, we review the Bad GAN and VAT methods briefly. In Section 3, the technique to generate bad samples using the adversarial directions is described, and our proposed semi-supervised learning method is presented in Section 4. Theoretical analysis of VAT is given in Section 5. Results of various experiments are presented in Section 6 and conclusions follow in Section 7.
30
+
31
+ # 2 Bad GAN AND VAT
32
+
33
+ # 2.1 Bad GAN APPROACH
34
+
35
+ Bad GAN is a method that trains a good discriminator with a bad generator. This procedure trains a generator as well as a discriminator simultaneously. Let $\mathcal { D } _ { G } ( \phi )$ be generated bad samples with a bad generator $p _ { G } ( \cdot ; \phi )$ parametrized by $\phi$ . Here, the ‘bad generator’ is a deep architecture to generate samples different from observed data. Let $p ^ { \mathrm { p t } } ( \cdot )$ be a pre-trained density estimation model. For a given discriminator with a feature vector $v ( x ; \theta )$ of a given input $x$ parameterized by $\theta$ , Bad GAN learns the bad generator by minimizing the following:
36
+
37
+ $$
38
+ \mathbb { E } _ { x \sim \mathcal { D } _ { G } ( \phi ) } \left[ \log p ^ { \mathrm { p t } } ( x ) \mathbb { I } ( p ^ { \mathrm { p t } } ( x ) > \tau ) \right] + | | \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } v ( x ; \widehat { \theta } ) - \mathbb { E } _ { x \sim \mathcal { D } _ { G } ( \phi ) } v ( x ; \widehat { \theta } ) | | ^ { 2 }
39
+ $$
40
+
41
+ with respect to $\phi$ , where $\tau > 0$ is a tuning parameter, $\boldsymbol { \mathcal { U } } ^ { t r }$ is the unlabeled data, and $\widehat { \theta }$ is the current estimate of $\theta$ and $\| \cdot \|$ is the Euclidean norm.
42
+
43
+ In turn, to train the discriminator, we consider the $K$ -class classification problem as the $( K + 1 )$ -class classification problem where the $( K + 1 )$ -th class is an artificial label of the bad samples generated by the bad generator. We estimate the parameter $\theta$ in the discriminator by minimizing the following:
44
+
45
+ $$
46
+ \begin{array} { l } { - \mathbb { E } _ { x , y \sim \mathcal { L } ^ { t r } } \left[ \log p ( y | x , y \leq K ; \theta ) \right] - \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } \left[ \log \left\{ \displaystyle \sum _ { k = 1 } ^ { K } p ( k | x ; \theta ) \right\} \right] } \\ { - \mathbb { E } _ { x \sim \mathcal { D } _ { G } ( \phi ) } \left[ \log p ( K + 1 | x ; \theta ) \right] - \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } \left[ \displaystyle \sum _ { k = 1 } ^ { K } p ( k | x ; \theta ) \log p ( k | x ; \theta ) \right] } \end{array}
47
+ $$
48
+
49
+ for given $\phi$ , where $\mathcal { L } ^ { t r }$ is the labeled set. The second and the third terms in (1) are the cross-entropies between the unlabeled and the bad samples. The fourth term is similar the entropy of the unlabeled data which is usually helpful for semi-supervised learning (Grandvalet & Bengio, 2005). See Dai et al. (2017) for details of the objective function (1).
50
+
51
+ # 2.2 VAT APPROACH
52
+
53
+ $V A T$ is a regularization method which is inspired by the adversarial training (Goodfellow et al., 2014b). The regularization term of VAT is given as:
54
+
55
+ $$
56
+ \begin{array} { r c l } { \boldsymbol { L } ^ { \mathrm { V A T } } ( \boldsymbol { \theta } ; \widehat { \boldsymbol { \theta } } , \boldsymbol { x } , \epsilon ) } & { = } & { \displaystyle { D _ { \mathrm { K L } } } \left( p ( \cdot | \boldsymbol { x } ; \widehat { \boldsymbol { \theta } } ) | | p ( \cdot | \boldsymbol { x } + r _ { \mathrm { a d v r } } ( \boldsymbol { x } , \epsilon ) ; \boldsymbol { \theta } ) \right) } \\ & { = } & { \displaystyle - \sum _ { k = 1 } ^ { K } p ( k | \boldsymbol { x } ; \widehat { \boldsymbol { \theta } } ) \log p ( k | \boldsymbol { x } + r _ { \mathrm { a d v r } } ( \boldsymbol { x } , \epsilon ) ; \boldsymbol { \theta } ) + C , } \end{array}
57
+ $$
58
+
59
+ where
60
+
61
+ $$
62
+ r _ { \mathrm { a d v r } } ( \boldsymbol { x } , \epsilon ) = \underset { r ; | \lvert r \rvert | \le \epsilon } { \mathrm { a r g m a x } } D _ { \mathrm { K L } } \left( p ( \cdot | \boldsymbol { x } ; \widehat { \boldsymbol { \theta } } ) | | p ( \cdot | \boldsymbol { x } + r ; \widehat { \boldsymbol { \theta } } ) \right) ,
63
+ $$
64
+
65
+ $\epsilon > 0$ is a tuning parameter, $\theta$ is the parameter in the discriminator to train, $\widehat { \theta }$ is the current estimate of $\theta$ and $C$ is a constant. Combining with the cross-entropy term of the labeled data, we get the final objective function of $V A T$ :
66
+
67
+ $$
68
+ - \mathbb { E } _ { \boldsymbol { x } , \boldsymbol { y } \sim \mathcal { L } ^ { t r } } \left[ \log p ( \boldsymbol { y } | \boldsymbol { x } ; \boldsymbol { \theta } ) \right] + \mathbb { E } _ { \boldsymbol { x } \sim \mathcal { U } ^ { t r } } \left[ \boldsymbol { L } ^ { \mathrm { V A T } } ( \boldsymbol { \theta } ; \widehat { \boldsymbol { \theta } } , \boldsymbol { x } , \epsilon ) \right] .
69
+ $$
70
+
71
+ # 3 GENERATION OF BAD SAMPLES BY ADVERSARIAL TRAINING
72
+
73
+ The key role of bad samples in Bad GAN is to enforce the decision boundary to be pulled toward the low density regions of the unlabeled data. To do this, bad samples must be located at the valleys of the distribution of the unlabeled data. In this section, we propose a novel technique to generate ‘good’ bad samples by use of only a given classifier.
74
+
75
+ # 3.1 MOTIVATION
76
+
77
+ In this subsection, we explain why the adversarial direction is toward the decision boundary. For simplicity, we only consider the linear decision boundary. For the decision boundary made by the DNN model with ReLU activation function, see Appendix A.2.
78
+
79
+ Let us consider the 2-class linear logistic regression model parametrized by $\eta = \{ w , b \}$ , that is, $p ( y = 1 | x ; \eta ) = \left( 1 + \exp ( - b - w ^ { ' } x ) \right) ^ { - 1 }$ . Note that the decision boundary is $\{ x : b + w ^ { ' } x = 0 \}$ , and for any given $x$ , the distance between $x$ and the decision boundary is $| b + w ^ { ' } x | / | | w | |$ . The key
80
+
81
+ ![](images/5273c9df6c8b92ef502c36c1a00be0c95442c2991dc886aa558727d6656d5c25.jpg)
82
+ Figure 1: Demonstration of how the bad samples generated by the adversarial training are distributed. We consider two cases: 3-class classification problem (Left) and 4-class classification problem (Right). True data and bad data are coloured by blue and orange, respectively.
83
+
84
+ result is that moving $x$ toward the adversarial direction $r _ { \mathrm { a d v r } } ( x , \epsilon )$ is equivalent to moving $x$ toward the decision boundary which is stated rigorously in the following proposition. The proof is in the appendix.
85
+
86
+ Proposition 1 For a sufficiently small $\epsilon > 0$ , we have
87
+
88
+ $$
89
+ s i g n ( w ^ { ' } x + b ) \cdot s i g n \left( w ^ { ' } r _ { a d \nu r } ( x , \epsilon ) \right) = - 1 .
90
+ $$
91
+
92
+ Proposition 1 implies that $| b + w ^ { ' } x | / | | w | | > | b + w ^ { ' } ( x + r ^ { \mathrm { a d v r } } ( x , \epsilon ) | / | | w | |$ unless $| b + w ^ { ' } x | = 0$ . Hence, we can treat $x + \delta r _ { \mathrm { a d v r } } ( x , \epsilon ) / | | r ^ { \mathrm { a d v r } } ( x , \epsilon ) | |$ for appropriately choosing $\delta > 0$ as a bad sample (a sample closer to the decision boundary).
93
+
94
+ # 3.2 BAD SAMPLE GENERATION WITH GENERAL CLASSIFIER
95
+
96
+ Motivated by Proposition 1, we propose a bad sample generator as follows. Let $\delta > 0$ be fixed and $\widehat { \theta }$ be the current estimate of $\theta$ . For a given input $x$ and a classifier $p ( \cdot | x ; \widehat { \theta } )$ , we calculate the adversarial direction $r _ { \mathrm { a d v r } } ( x , \epsilon )$ for given $\epsilon$ by (2). Then, we consider $x _ { \mathrm { b a d } } = x + \delta r _ { \mathrm { a d v r } } ( x , \epsilon ) / \| r _ { \mathrm { a d v r } } ( x . \epsilon ) \|$ as a bad sample (a sample closer to the decision boundary). We generate bad samples for all unlabeled data. In practice, we apply the same $\delta$ to all unlabeled data and choose $\delta$ based on the validation data accuracy.
97
+
98
+ In Figure 1, we illustrate how the bad samples generated by the proposed adversarial training are distributed for multi-class problem. With a good classifier, we can clearly see that most bad samples are located well in the low density regions of the data.
99
+
100
+ It may happen that a generated bad sample is not sufficiently close to the decision boundary to be a ’good’ bad sample, in particular when $\delta$ is too large or too small. To avoid such a situation, we exclude $x _ { \mathrm { b a d } }$ which satisfies the following condition:
101
+
102
+ $$
103
+ \operatorname* { m a x } _ { k } p ( k | x _ { \mathrm { b a d } } ; \widehat { \theta } ) > 1 - \tau
104
+ $$
105
+
106
+ for a prespecified $\tau > 0$ . In our experiments, we set the optimal $\tau$ with validation data.
107
+
108
+ # 4 FAST ADVERSARIAL TRAINING WITH BAD SAMPLES
109
+
110
+ Once we generate bad samples by the adversarial training, $F A T$ updates $\theta$ by minimizing the following objective function:
111
+
112
+ $$
113
+ \begin{array} { r l } & { - \mathbb { E } _ { x , y \sim \mathcal { L } ^ { t r } } \left[ \log p ( y | x ; \theta ) \right] + \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } \left[ L ^ { \mathrm { t r u e } } ( \theta ; x ) \right] + \mathbb { E } _ { x \sim \mathcal { D } ^ { b a d } ( \widehat { \theta } , \epsilon , \delta ) } \left[ L ^ { \mathrm { f a k e } } ( \theta , x ) \right] } \\ & { + \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } \left[ L ^ { \mathrm { V a T } } ( \theta ; \widehat { \theta } , x , \epsilon ) \right] } \end{array}
114
+ $$
115
+
116
+ where $\mathcal { D } ^ { b a d } ( \widehat { \theta } , \epsilon , \delta )$ is the set of generated bad samples with ${ \widehat { \theta } } , \epsilon$ and $\delta$ ,
117
+
118
+ $$
119
+ \begin{array} { l } { { { \cal L } ^ { \mathrm { t r u e } } } ( \theta ; x ) = - \displaystyle \sum _ { k = 1 } ^ { K } \left[ \displaystyle \frac { \exp ( g _ { k } ( x ; \theta ) ) } { 1 + \sum _ { k ^ { \prime } = 1 } ^ { K } \exp ( g _ { k ^ { \prime } } ( x ; \theta ) ) } \log \displaystyle \frac { \exp ( g _ { k } ( x ; \theta ) ) } { 1 + \sum _ { k ^ { \prime } = 1 } ^ { K } \exp ( g _ { k ^ { \prime } } ( x ; \theta ) ) } \right] , } \\ { { { \cal L } ^ { \mathrm { f a k e } } } ( \theta ; x ) = - \log \displaystyle \frac { 1 } { 1 + \sum _ { k = 1 } ^ { K } \exp ( g _ { k } ( x ; \theta ) ) } , } \end{array}
120
+ $$
121
+
122
+ $g ( x ; \theta ) \in \mathbb { R } ^ { K }$ is a pre-softmax vector of a given deep architecture and $\lambda > 0$ . We treat $\epsilon$ and $\delta$ as tuning parameters to be selected based on the validation data accuracy. We minimize the objective function with one of the standard optimization algorithms such as Adam (Kingma & Ba, 2014) or RMSProp (Tieleman & Hinton, 2012).
123
+
124
+ The objective function (5) differs from the objective function (1) of Bad GAN in a way that the second term of (1), the cross-entropy of not being a bad sample, is deleted and the regularization term of VAT is added. We delete the second term of (1) because it can be easily shown that a perfect classifier of unlabeled data can be obtained from the minimizer of the objective function (1) without the second term under the conditions in Dai et al. (2017). The regularization term of VAT is added to improve the bad sample generator based on adversarial training. See Section 5.1 for detailed discussions.
125
+
126
+ Miyato et al. (2017) proposes the fast approximation method to calculate the adversarial direction $r _ { \mathrm { a d v r } } ( x , \epsilon )$ by using the second-order Taylor expansion. Let us define $H ( x , { \widehat { \theta } } ) \ =$ $\nabla \nabla D _ { \mathrm { K L } } \left( p ( \cdot | x ; \widehat { \theta } ) | | p ( \cdot | x + r ; \widehat { \theta } ) \right) | _ { r = 0 }$ . They claim that $r _ { \mathrm { a d v r } }$ emerges as the first dominant eigenvector $u ( x , \widehat { \theta } )$ of $H ( x , { \widehat { \theta } } )$ with magnitude $\epsilon$ . But there always exist two dominant eigenvectors, $\pm u ( x , \widehat { \theta } )$ , and the sign should be selected carefully. So, we slightly modify the approximation method of Miyato et al. (2017) by
127
+
128
+ $$
129
+ r _ { \mathrm { a d v r } } ( \boldsymbol { x } , \epsilon ) = \operatorname * { a r g m a x } _ { \boldsymbol { r } \in \{ \boldsymbol { u } ( \boldsymbol { x } , \widehat { \boldsymbol { \theta } } ) , - \boldsymbol { u } ( \boldsymbol { x } , \widehat { \boldsymbol { \theta } } ) \} } D _ { \mathrm { K L } } \left( p ( \cdot | \boldsymbol { x } ; \widehat { \boldsymbol { \theta } } ) | | p ( \cdot | \boldsymbol { x } + \boldsymbol { r } ; \widehat { \boldsymbol { \theta } } ) \right) .
130
+ $$
131
+
132
+ This modification helps to improve convergence speed of the test accuracy, which will be demonstrated in the ablation experiments.
133
+
134
+ # 5 ROLE OF VAT FOR SEMI-SUPERVISED LEARNING
135
+
136
+ In this section, we investigate the roles of the regularization term of VAT in our method in detail. First, we verify that VAT regularization term does help to generate ’better’ bad samples with a simple experiment. Furthermore, we give a theoretical insight for the role of the regularization term of VAT in semi-supervised learning. We will show that the regularization term of VAT pushes the decision boundary from the high density regions of unlabeled data. As a result, FAT uses pushing operations by VAT term as well as pulling operations by bad samples simultaneously, which makes it possible to accelerate the training process with improved performances.
137
+
138
+ # 5.1 IMPROVEMENT OF BAD SAMPLES WITH VAT
139
+
140
+ For generated samples by adversarial training to be ‘good’ bad samples, the adversarial directions should be toward the decision boundary. While this always happens for the linear model by Proposition 1, adversarial directions could be opposite to the decision boundary for deep model. To avoid such undesirable cases as much as possible, it would be helpful to smoothen the classifier with a regularization term. In this section, we explain that the regularization term of VAT plays such a role.
141
+
142
+ The adversarial direction obtained by maximizing the KL divergence is sensitive to local fluctuations of the class probabilities which is examplified in Figure 2. The regularization term of VAT is helpful to find a right adversarial direction which is toward the decision boundary by eliminating unnecessary local fluctuations of the class probabilities. In Figure 3, we compare bad samples generated by the adversarial training with and without the regularization term of VAT for the MNIST dataset. While the bad samples generated without the regularization term of VAT are visually similar to the given input vectors, the bad samples generated with the regularization term of VAT look like mixtures of two different digits and thus serve as ‘better’ bad samples.
143
+
144
+ ![](images/fc2a84b1323bfadcad3728fdd6481dc3bbfdadf75ab76068137bb03e5b8f60b7.jpg)
145
+ Figure 2: Examples of $P ( y = 1 | x )$ of smooth (Left) and wiggle (Right) cases. We plot 3 points and their adversarial directions on each case.
146
+
147
+ ![](images/d07d00333c8809877229d2a92f62af0d604669ecd48bb36d5a743a2235671f26.jpg)
148
+ Figure 3: (Upper) 10 randomly sampled original MNIST dataset. (Middle and Lower) Bad samples obtained by the classifier learned with and without the regularization term of VAT.
149
+
150
+ # 5.2 THEORETICAL ANALYSIS OF VAT
151
+
152
+ Suppose that $\mathcal { X }$ is partitioned by $( K + 1 )$ mutually disjoint subsets $\mathcal { X } _ { k }$ for $k = 1 , \ldots , K + 1$ such that $y ( x ) = k$ for all $x \in { \mathcal { X } } _ { k } , k \leq K$ and $p ^ { * } ( x ) = 0$ for $x \in \mathcal { X } _ { K + 1 }$ , where $y ( x )$ is the ground-truth label of $x$ and $p ^ { * } ( x )$ is the true density of $x$ . For a given feature map $u : \mathcal { X } \mathbb { R } ^ { m }$ and weight vectors $w _ { 1 } , \ldots , w _ { k }$ , let $p ( y = k | x ) \propto \exp ( w _ { k } ^ { ' } u ( x ) )$ for $k = 1 , \ldots , K$ and $p ( y = K + 1 | x ) \propto 1$ . Let $\mathcal { L } ^ { t r }$ satisfy $\mathcal { X } _ { k } \cap \mathcal { L } _ { t r } \neq \emptyset$ for $k = 1 , . . . K$ . Suppose that (i) $\ \mathrm { a r g m a x } _ { h } p ( y = h | x ) = y$ for $\boldsymbol { x } \in \mathcal { L } _ { t r }$ , (ii) $\mathrm { a r g m a x } _ { h } p ( y = h | x ) \le K$ for $x \in \cup _ { k = 1 } ^ { K } \mathcal { X } _ { k }$ and (iii) argmax $\dot { \mathbf { \rho } } _ { h } p ( y = h | x ) = K + 1$ for $x \in \mathcal { X } _ { K + 1 }$ . Under these three conditions, Dai et al. (2017) proves that $\mathrm { a r g m a x } _ { h } p ( y = h | x ) = y ( x )$ for all $x \in \cup _ { k = 1 } ^ { K } \mathcal { X } _ { k }$ . That is, generating large ‘good’ bad samples is helpful for classifying unlabeled data correctly only with a small amount of labeled data.
153
+
154
+ A similar result can be obtained for VAT objective function itself under mild additional conditions. For given two subsets $\mathcal { A } _ { 1 }$ and $\boldsymbol { A } _ { 2 }$ of $\mathcal { X }$ , we define $\begin{array} { r } { d ( A _ { 1 } , A _ { 2 } ) = \operatorname* { m i n } _ { x _ { 1 } \in A _ { 1 } , x _ { 2 } \in A _ { 2 } } d ( x _ { 1 } , x _ { 2 } ) } \end{array}$ for a given metric $d$ . We define a tuple $( x , x ^ { ' } )$ is $\epsilon$ -connected if $d ( x , x ^ { ' } ) < \epsilon$ . A finite subset $\mathcal { A }$ of $\mathcal { X }$ is called $\epsilon$ -connected iff for all $x , x ^ { ' } \in { \mathcal { A } }$ , there exists a finite path $( x , x _ { 1 } , . . . , x _ { q } , x ^ { ' } )$ such that $x _ { j } \in { \mathcal { A } }$ for $j = 1 , \dotsc , q$ an $1 ( x , x _ { 1 } ) , ( x _ { 1 } , x _ { 2 } ) , . . . , ( x _ { q - 1 } , x _ { q } ) , ( x _ { q } , x ^ { ' } )$ are all $\epsilon$ -connected.
155
+
156
+ Proposition 2 Assume that there exists $\epsilon > 0$ such that $\pmb { I }$ ) $\mathcal { U } _ { k } ^ { t r } = \mathcal { U } ^ { t r } \cap \mathcal { X } _ { k } , k = 1 , \ldots , K$ are $\epsilon$ -connected, 2) $d ( \mathcal { X } _ { k } , \mathcal { X } _ { k ^ { \prime } } ) \geq 2 \epsilon$ for all $k \neq k ^ { ' } \leq K$ , and 3) for each $k \leq K$ , there exists at least one $( x , k ) \in \mathcal { L } ^ { t r }$ such that $d ( \{ x \} , \mathcal { U } _ { k } ^ { t r } ) < \epsilon$ . Suppose that there exists a classifier $f : \mathcal { X } \to \{ 1 , . . . , K \}$ such that $f ( x ) = y$ for all $( x , y ) \in \mathcal { L } ^ { t r }$ and
157
+
158
+ $$
159
+ f ( x ) = f ( x ^ { ' } ) f o r a l l x ^ { ' } \in \mathcal { B } ( x , \epsilon )
160
+ $$
161
+
162
+ for all $\boldsymbol { x } \in \boldsymbol { U } ^ { t r }$ , where $\displaystyle B ( x , \epsilon ) = \{ x ^ { \prime } : d ( x , x ^ { \prime } ) \leq \epsilon \}$ . Then, the function $f$ classifies the unlabeled set perfectly, that is:
163
+
164
+ $$
165
+ f ( x ) = y ( x ) f o r a l l x \in \mathcal { U } ^ { t r } .
166
+ $$
167
+
168
+ Condition 1) and 2) mean that the unlabeled data are dense enough and the supports of each class are separated sufficiently, respectively. Condition 3) assumes that at least one labeled instance exists near the supports of each class. The main condition of Proposition 2 is (6) which essentially assumes that the classifier $f$ does not change much locally. That is, $f$ is invariant with respect to all small perturbations of an input $x$ . Note that the regularization term of $V A T$ is devised to improve the invariancy of the classifier and Proposition 2 explains why improving the invariancy is helpful for semi-supervised learning.
169
+
170
+ # 5.3 INTERPRETATION OF VAT
171
+
172
+ Let $f ( x ; \theta ) = \mathrm { a r g m a x } _ { h } p ( y = h | x ; \theta )$ . Proposition 2 implies that it would be good to pursue a classifier which predicts the labeled data correctly and at the same time is invariant with respect to all local perturbations on the unlabeled data. For this purpose, a plausible candidate of the objective function is
173
+
174
+ $$
175
+ \begin{array} { r } { \mathbb { E } _ { ( { x } , { y } ) \sim \mathcal { L } ^ { t r } } \left[ \mathbb { I } ( { y } \neq f ( { x } ; { \theta } ) \right] + \mathbb { E } _ { { x } \sim \mathcal { U } ^ { t r } } \left[ \mathbb { I } \left( f ( { x } ; { \theta } ) \neq f ( { x } ^ { ' } ; { \theta } ) \mathrm { ~ f o r ~ } { \forall x } ^ { ' } \in \mathcal { B } ( { x } , { \epsilon } ) \right) \right] . } \end{array}
176
+ $$
177
+
178
+ Note that a classifier $f$ which achieves 0 value of the objective function (7) satisfies the conditions of Proposition 2 and thus classifies all unlabeled data correctly.
179
+
180
+ The objective function (7) is not practically usable since neither optimizing the indicator function nor checking $f ( x ; \theta ) \neq f ( x ^ { ' } ; \theta )$ for all $x ^ { ' }$ in $B ( x , \epsilon )$ is possible. To resolve these problems, we replace the indicator functions in (7) with the cross-entropies, and the neighborhood $B ( x , \epsilon )$ in the second term with the adversarial direction. By doing so, we have the following alternative objective function:
181
+
182
+ $$
183
+ - \mathbb { E } _ { x , y \sim \mathcal { L } ^ { t r } } \left[ \log p ( y | x ; \theta ) \right] - \mathbb { E } _ { x \sim \mathcal { U } ^ { t r } } \left[ \sum _ { k = 1 } ^ { K } p ( k | x ; \theta ) \log p ( k | x + r _ { \mathrm { a d v r } } ( x , \epsilon ) ; \theta ) \right] .
184
+ $$
185
+
186
+ Finally, we replace $p ( \cdot | x ; \theta )$ in the second term of (8) by $p ( \cdot | x ; \widehat { \theta } )$ to have the objective function of VAT (3).
187
+
188
+ The condition (6) in Proposition 2 means that the decision boundary is not located inside the support $\mathcal { X } _ { k }$ of each class. That is, the regularization term of VAT prevents the decision boundary from being located at the high density regions of data or equivalently pushes the decision boundary from the high density regions of data.
189
+
190
+ # 6 EXPERIMENTS
191
+
192
+ # 6.1 PREDICTION PERFORMANCES IN SEMI-SUPERVISED LEARNING
193
+
194
+ We compare prediction performances of $F A T$ over the benchmark datasets with other semi-supervised learning algorithms. We consider the most widely used datasets: MNIST (LeCun et al., 1998), SVHN (Marlin et al., 2010) and CIFAR10 (Krizhevsky & Hinton, 2009). As in done by other works, we randomly sample 100, 1000 and 4000 labeled data from the MNIST, SVHN and CIFAR10 datasets, respectively and use them as the labeled data and the rest as the unlabeled data. For fair comparison, we use the same architectures as those used in Miyato et al. (2017) for MNIST, SVHN and CIFAR10. The optimal tuning parameters $( \epsilon , \tau , \delta )$ in $F A T$ are chosen based on the validation data accuracy.
195
+
196
+ Table 1: Comparison of prediction accuracies of various semi-supervised learning algorithms for the three benchmark datasets. mod. VAT is the modified version of VAT stated in Section 4.
197
+
198
+ <table><tr><td>Method</td><td colspan="3">Test acc.(%)</td></tr><tr><td></td><td>MNIST(100)</td><td>SVHN(1000)</td><td>CIFAR10(4000)</td></tr><tr><td>DGN (Kingma et al., 2014)</td><td>96.67</td><td>63.98</td><td>-</td></tr><tr><td>Ladder (Rasmus et al., 2015)</td><td>98.94</td><td>1</td><td>79.6</td></tr><tr><td>ALI (Donahue et al., 2016)</td><td>1</td><td>92.58</td><td>82.01</td></tr><tr><td>FM-GAN (Salimans et al.,2016)</td><td>99.07</td><td>91.89</td><td>81.37</td></tr><tr><td>FM-GAN-Tan (Kumar et al., 2017)</td><td>1</td><td>95.61</td><td>83.80</td></tr><tr><td>Bad GAN (Dai et al., 2017)</td><td>99.20</td><td>95.75</td><td>85.59</td></tr><tr><td>VAT (Miyato et al., 2017)</td><td>98.64</td><td>93.17</td><td>85.13</td></tr><tr><td>CrossEnt (use all data)</td><td>98.82</td><td>96.74</td><td>90.31</td></tr><tr><td>CrossEnt (use lab. data only)</td><td>79.16</td><td>88.91</td><td>67.45</td></tr><tr><td>mod. VAT</td><td>98.70</td><td>94.69</td><td>85.18</td></tr><tr><td>FAT</td><td>98.89</td><td>95.94</td><td>85.31</td></tr></table>
199
+
200
+ Table 2: Comparison of prediction accuracies with small labeled data and more complex dataset.
201
+
202
+ <table><tr><td rowspan="2">Method</td><td colspan="4">Test acc.(%)</td></tr><tr><td>MNIST(20)</td><td>SVHN(500)</td><td>CIFAR10(1000)</td><td>CIFAR100(8000)</td></tr><tr><td>FM-GAN (Salimans et al., 2016)</td><td>83.23</td><td>81.56</td><td>78.13</td><td>-</td></tr><tr><td>FM-GAN-Tan (Salimans et al., 2016)</td><td>-</td><td>95.13</td><td>80.48</td><td>1</td></tr><tr><td>CrossEnt(use all data)</td><td>98.82</td><td>96.74</td><td>90.31</td><td>46.72</td></tr><tr><td>CrossEnt(use lab.data only)</td><td>54.92</td><td>85.82</td><td>50.30</td><td>18.35</td></tr><tr><td>mod. VAT</td><td>89.92</td><td>92.59</td><td>75.43</td><td>34.76</td></tr><tr><td>FAT</td><td>96.32</td><td>95.21</td><td>75.96</td><td>35.52</td></tr></table>
203
+
204
+ We use Adam algorithm (Kingma & Ba, 2014) to update the parameters and do not use any data augmentation techniques. The results are summarized in Table 1, which shows that $F A T$ achieves the state-of-the-art accuracy for SVHN dataset and competitive accuracies with the state-of-the-art method (i.e. Bad GAN) for MNIST and CIFAR10.
205
+
206
+ We conduct another experiments where the numbers of labeled data are much smaller and consider a more complex dataset CIFAR100 (Krizhevsky & Hinton, 2009), whose results are summarized in Table 2. Note that FAT still dominates mod. VAT for the all datasets and the margins become larger. While $F A T$ achieves the state-of-the-art performances for MNIST and SVHN, its performance degrades much for CIFAR10 compared to the accuracy for the case of 4000 labeled data. Note that the quality of bad samples depends on the quality of the estimated classifier. For CIFAR10 which is relatively more complex than MNIST and SVHN, the quality of the estimated classifier is influenced much to the amount of labeled data and thus the accuracy of $F A T$ is more sensitive to the amount of labeled data. However, it is interesting to see that $F A T$ is superior to mod. VAT for CIFAR10 and CIFAR100, which suggests that bad samples are helpful for complex problems where the quality of bad samples might not be sufficiently good.
207
+
208
+ The other advantage of $F A T$ is its stability with respect to learning phase. With small labeled data, the test accuracies of each epoch tends to fluctuate much for VAT and mod VAT, while $F A T$ provides much more stable results. See Figure 7 in Appendix. This may be partly because ’good’ bad samples keep the classifier from fluctuation.
209
+
210
+ Table 3: Test accuracies of MNIST for various values of $\tau$ and $\delta$ . The other two parameters on each case are fixed to the optimal values.
211
+
212
+ <table><tr><td>T</td><td>0.001</td><td>0.01</td><td>0.1</td><td>0.2</td></tr><tr><td>Test acc.</td><td>98.65</td><td>98.89</td><td>98.77</td><td>98.71</td></tr></table>
213
+
214
+ <table><tr><td>8</td><td>1</td><td>2.</td><td>4.</td><td>6.</td></tr><tr><td>Test acc.</td><td>89.54</td><td>98.89</td><td>98.79</td><td>98.55</td></tr></table>
215
+
216
+ Table 4: Test accuracies for diverse objective loss functions.
217
+
218
+ <table><tr><td>Data Setting</td><td>MNIST</td><td>SVHN</td><td>CIFAR10</td></tr><tr><td>Ltrue +Lfake +LVAT</td><td>98.89</td><td>Test acc.(%) 95.94</td><td>85.15</td></tr><tr><td>Ltrue +Lfake</td><td>83.6</td><td>90.21</td><td>68.32</td></tr><tr><td>Lfake+ LVAT</td><td>98.77</td><td>95.71</td><td>85.31</td></tr></table>
219
+
220
+ # 6.2 EFFECTS OF TUNING PARAMETERS
221
+
222
+ $F A T$ introduces two additional tuning parameters $\tau$ and $\delta$ compared to VAT, where $\tau$ is used to determine whether a bad sample is ’good’ and $\delta$ is the radius to generate bad samples. We investigate the sensitivities of prediction performances with respect to the changes of the values of $\tau$ and $\delta$ with $\epsilon$ being fixed at 1.5 that is the optimal value. The results are reported in Table 3. Unless $\tau$ is too small or too large, the prediction performances are not changed much. For $\delta$ , care should be done. Too small $\delta$ , smaller than , hampers the prediction performance much. Apparently, a similar value of $\delta$ to that of $\epsilon$ (i.e. $\delta = 2$ ) gives the best result.
223
+
224
+ # 6.3 OBJECTIVE FUNCTION ANALYSIS
225
+
226
+ In this subsection, we analyze the effects of $L ^ { \mathrm { t r u e } }$ and $L ^ { \mathrm { V A T } }$ in this section. We do not consider the cross-entropy of the labeled data and $L ^ { \mathrm { f a k e } }$ since they are necessary to reflect the idea utilizing bad data. Table 4 compares the performances without one or both of these terms. Note that $L ^ { \mathrm { V A T } }$ is necessary for superior performances, which is because $L ^ { \mathrm { V A T } }$ is indispensable to generate ‘good’ bad samples as explained in Section 5.1. On the other hand, the term $L ^ { \mathrm { t r u e } }$ , which is devised to separate unlabeled data from bad samples, is not always helpful. A possible explanation is that sometimes the term $L ^ { \mathrm { t r u e } }$ would give an undesirable effect on the misclassified data.
227
+
228
+ # 6.4 COMPUTATIONAL EFFICIENCY
229
+
230
+ We investigate the computational efficiency of our method in view of learning speed and computation time per training epoch. For Bad GAN, we did not use $P i x e l C N N { + + }$ on SVHN and CIFAR10 datasets since the pre-trained $P i x e l C N N { + + }$ models are not publicly available. Figure 4 draws the bar plots about the numbers of epochs needed to achieve the prespecified test accuracies. We can clearly see that $F A T$ requires much less epochs
231
+
232
+ We also calculate the ratios of the computing time of each semi-supervised learning algorithm over the computing time of the corresponding supervised learning algorithm for CIFAR10 dataset, whose results are summarized in Table 5. These ratios are almost same for different datasets. The computation time of $F A T$ is competitive to VAT and mod. VAT, and hence we can conclude that $F A T$ arrives at the prespecified performances much efficiently. Note that $P i x e l C N N { + + }$ is not used for this experiment, and so comparison of computing time of $F A T$ and Bad GAN with $P i x e l C N N + +$ is meaningless
233
+
234
+ ![](images/4a65d8b5b70ee0c028d73f8d35c14f7ed23be19f1820366a082249f31828e737.jpg)
235
+ Figure 4: The number of epochs to achieve the prespecified test accuracies $9 8 \%$ , $90 \%$ and $80 \%$ ) with the four methods for (Left) MNIST, (Middle) SVHN and (Right) CIFAR10 datasets. Bad $G A N$ is operated without $P i x e l C N N + +$ for SVHN and CIFAR10 datasets.
236
+
237
+ Table 5: Learning time per training epoch ratios compared to supervised learning with cross-entropy for CIFAR10. Bad GAN is operated without $P i x e l C N N + +$ .
238
+
239
+ <table><tr><td>Method</td><td>VAT</td><td>mod. VAT</td><td>FAT</td><td>Bad GAN</td></tr><tr><td>Time ratio</td><td>1.37</td><td>1.62</td><td>2.09</td><td>3.20</td></tr></table>
240
+
241
+ # 6.5 QUALITY OF BAD SAMPLES GENERATED BY ADVERSARIAL TRAINING
242
+
243
+ We investigate how ‘good’ bad samples generated by the adversarial training are. The upper panel of Figure 5 shows the scatter plot of the synthetic data and the trace plot of prediction accuracies of $F A T$ and VAT. And the lower panel of Figure 5 draws the scatter plots with generated bad samples at various epochs. We can clearly see that bad samples move to lower density regions as the epoch increases, which amply demonstrates that the adversarial training is good at generating bad samples. We also compare bad images of the MNIST data generated by $F A T$ and Bad GAN in Figure 6. The bad images by $F A T$ do not look like real images and do not seem to be collapsed, which indicates that $F A T$ consistently generates diverse and good bad samples. Bad GAN also generates diverse bad samples but some ‘realistic’ images can be found.
244
+
245
+ # 7 CONCLUSION
246
+
247
+ In this paper, we propose a new method called FAT for semi-supervised learning which generates bad samples only with a given classifier. The objective function of $F A T$ is devised to compromise the advantages of Bad GAN and VAT together, which makes $F A T$ be faster and more accurate. In numerical experiments, we show that $F A T$ achieves almost the state-of-the-art performances with much fewer epochs. Unlike Bad GAN , $F A T$ only needs to learn a discriminator. Hence, it could be extended without much effort to other learning problems. For example, $F A T$ can be modified easily for recurrent neural networks and hence can be applied to sequential data. We will leave this extension as a future work.
248
+
249
+ It would be useful to combine $F A T$ with a generative approach such as Bad GAN, in particular when the initial classifier is bad. Since FAT uses only a classifier to generate bad samples, the initial estimate of the classifier would be important. Using the generator model learned by large unlabeled data would be helpful to find a good initial estimate of the classifier.
250
+
251
+ # ACKNOWLEDGMENTS
252
+
253
+ This work is supported by Samsung Electronics Co., Ltd.
254
+
255
+ ![](images/911fdbc2dd3e183753ca3d8c54938f735c0cd0ea5edd11ed47ada3b801239e24.jpg)
256
+ Figure 5: (Upper Left) The scatter plot of synthetic data which consist of 1000 unlabeled data (gray) and 4 labeled data for each class (red and blue with black edge). (Upper Right) Accuracies of unlabeled data for each epochs for VAT and FAT. We use 2-layered NN with 100 hidden units each. (Lower) Bad samples and classified unlabeled data by colors at the different training epochs of FAT
257
+
258
+ ![](images/518422245968365df9605efa288ca84be63a6bea1214a3f5fc3d22a49c2d6611.jpg)
259
+ Figure 6: 100 randomly sampled bad images using (Left) FAT and (Right) Bad GAN.
260
+
261
+ # REFERENCES
262
+
263
+ Zihang Dai, Zhilin Yang, Fan Yang, William W Cohen, and Ruslan R Salakhutdinov. Good semisupervised learning that requires a bad gan. In Advances in Neural Information Processing Systems, pp. 6513–6523, 2017.
264
+
265
+ Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016.
266
+
267
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014a.
268
+
269
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b.
270
+
271
+ Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005.
272
+
273
+ Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012.
274
+
275
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
276
+
277
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
278
+
279
+ Diederik $\mathrm { \bf P }$ Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
280
+
281
+ Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in Neural Information Processing Systems, pp. 3581–3589, 2014.
282
+
283
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
284
+
285
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
286
+
287
+ Abhishek Kumar, Prasanna Sattigeri, and Tom Fletcher. Semi-supervised learning with gans: manifold invariance with improved inference. In Advances in Neural Information Processing Systems, pp. 5534–5544, 2017.
288
+
289
+ Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
290
+
291
+ Lars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016.
292
+
293
+ Benjamin Marlin, Kevin Swersky, Bo Chen, and Nando Freitas. Inductive principles for restricted boltzmann machine learning. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 509–516, 2010.
294
+
295
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. arXiv preprint arXiv:1507.00677, 2015.
296
+
297
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. arXiv preprint arXiv:1704.03976, 2017.
298
+
299
+ Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semi-supervised learning with ladder networks. In Advances in Neural Information Processing Systems, pp. 3546– 3554, 2015.
300
+
301
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016.
302
+
303
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017.
304
+
305
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–9, 2015.
306
+
307
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26–31, 2012.
308
+
309
+ Jason Weston, Frédéric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semisupervised embedding. In Neural Networks: Tricks of the Trade, pp. 639–655. Springer, 2012.
310
+
311
+ # A APPENDIX
312
+
313
+ # A.1 PROOF OF PROPOSITION 1
314
+
315
+ Without loss of generality, we assume that $w ^ { ' } x + b > 0$ , that is, $p ( y = 1 | x ; \eta ) > p ( y = 0 | x ; \eta )$ . We will show that there exists $\epsilon > 0$ such that $w ^ { ' } r ^ { * } ( x , \epsilon ) < 0$ . Note that
316
+
317
+ $$
318
+ \begin{array} { r l r } { { \operatorname * { a r g m a x } _ { \begin{array} { l } { r , | | x | | \leq \epsilon , w ^ { \prime } r > 0 } \\ { \operatorname * { a r g m a x } _ { \begin{array} { l } { K L ( x , r ; \eta ) = - \epsilon } \\ { r , | | w | | \leq \epsilon , w ^ { \prime } r < 0 } \end{array} } } \textstyle K L ( x , r ; \eta ) = \epsilon \frac { w } { | | w | | } ( = : r _ { 1 } ^ { * } ) \quad \mathrm { a n d } } } \end{array} } \\ & { } & \operatorname * { a r g m a x } _ { \begin{array} { l } { K L ( x , r ; \eta ) = - \epsilon \frac { w } { | | w | | } ( = : r _ { 2 } ^ { * } ) . } \end{array} } \end{array}
319
+ $$
320
+
321
+ So all we have to do is to show
322
+
323
+ $$
324
+ K L ( x , r _ { 2 } ^ { * } ; \eta ) > K L ( x , r _ { 1 } ^ { * } ; \eta ) .
325
+ $$
326
+
327
+ By simple calculation we can get the following:
328
+
329
+ $$
330
+ \small \begin{array} { r } { \nabla L ( x , r _ { 2 } ^ { * } ; \eta ) - K L ( x , r _ { 1 } ^ { * } ; \eta ) = - \left[ p ( y = 1 | x ; \theta ) w ^ { ' } ( r _ { 2 } ^ { * } - r _ { 1 } ^ { * } ) - \log \frac { \exp \big ( w ^ { ' } ( x + r _ { 2 } ^ { * } ) + b \big ) + 1 } { \exp ( w ^ { ' } ( x + r _ { 1 } ^ { * } ) + b ) + 1 } \right] . } \end{array}
331
+ $$
332
+
333
+ Using the Taylor’s expansion up to the third-order, we obtain the following:
334
+
335
+ $$
336
+ \begin{array} { r c l } { \log \Big [ \exp \Big ( w ^ { ' } ( x + r ) + b \Big ) + 1 \Big ] } & { = } & { \log \Big [ \exp \Big ( w ^ { ' } x + b \Big ) + 1 \Big ] + p ( y = 1 | x ; \eta ) w ^ { ' } r } \\ & & { } & { + \displaystyle \frac { 1 } { 2 } p ( y = 1 | x ; \eta ) p ( y = 0 | x ; \eta ) r ^ { ' } w w ^ { ' } r } \\ & & { } & { - \displaystyle \frac { 1 } { 6 } p ( y = 1 | x ; \eta ) p ( y = 0 | x ; \eta ) \left\{ p ( y = 1 | x ; \eta ) - p ( y = 0 | x ; \eta ) \right. } \\ & & { } & { \left. + o ( | | r | | ^ { 3 } ) . \right. } \end{array}
337
+ $$
338
+
339
+ So,
340
+
341
+ $$
342
+ \begin{array} { r c l } { \frac { \ d s ^ { \prime } ( x + r _ { 2 } ^ { \ast } ) + \ d b \Big ) + 1 } { \ d y ^ { \prime } ( x + r _ { 1 } ^ { \ast } ) + \ d b ) + 1 } } & { = } & { p ( y = 1 | x ; \eta ) w ^ { ' } ( r _ { 2 } ^ { \ast } - r _ { 1 } ^ { \ast } ) } \\ & & { + \frac { 1 } { 3 } p ( y = 1 | x ; \eta ) p ( y = 0 | x ; \eta ) \left\{ p ( y = 1 | x ; \eta ) - p ( y = 0 | x ; \eta ) \right\} \epsilon ^ { 3 } | | w | | ^ { 3 } . } \end{array}
343
+ $$
344
+
345
+ Thus, we have the following equations:
346
+
347
+ $$
348
+ \begin{array} { r c l } { \check { \operatorname { \tiny { C } } } L ( x , r _ { 2 } ^ { * } ; \eta ) - K L ( x , r _ { 1 } ^ { * } ; \eta ) } & { = } & { \frac { 1 } { 3 } p ( y = 1 | x ; \eta ) p ( y = 0 | x ; \eta ) \left\{ p ( y = 1 | x ; \eta ) - p ( y = 0 | x ; \eta ) \right\} \epsilon ^ { 3 } } \\ & & { = } & { C \cdot \epsilon ^ { 3 } + o ( \epsilon ^ { 3 } ) . } \end{array}
349
+ $$
350
+
351
+ Therefore, there exists $\epsilon ^ { * } > 0$ such that $K L ( x , r _ { 2 } ^ { * } ; \eta ) > K L ( x , r _ { 1 } ^ { * } ; \eta )$ for $\forall 0 < \epsilon < \epsilon ^ { * }$ . 
352
+
353
+ # A.2 EXTENSION OF PROPOSITION 1 FOR THE DNN CLASSIFIER
354
+
355
+ Consider a binary classification DNN model with ReLU activation function $p ( y = 1 | x ; \theta ) ~ =$ $( 1 + \exp ( - g ( x ; \theta ) ) ) ^ { - 1 }$ parameterized by $\theta$ . Since $g ( x ; \theta )$ is piecewise linear, we can write $g ( \cdot ; \theta )$ as
356
+
357
+ $$
358
+ g ( \cdot ; \theta ) = \sum _ { j = 1 } ^ { N } \mathbb { I } ( \cdot \in \mathcal { A } _ { j } ) \cdot ( w _ { j } x + b _ { j } ) ,
359
+ $$
360
+
361
+ where $A _ { j }$ is a linear region and $N$ is the number of linear regions.
362
+
363
+ For given $x$ , suppose $g ( x ; \theta ) > 0$ . If $g ( x : \theta )$ is estimated reasonably, we expect that $g ( x ; \theta )$ is decreasing if $x$ moves toward the decision boundary. A formal statement of this expectation would be that $x - r \nabla _ { x } g ( x ; \theta )$ can arrive at the decision boundary for a finite value of $r > 0$ , where $\nabla _ { x }$ is the gradient with respect to $x$ . Of course, for $x$ with $g ( x ; \theta ) < 0$ , we expect that $x + r \nabla _ { x } g ( x ; \theta )$ can arrive at the decision boundary for a finite value of $r > 0$ . We say that $x$ is normal if there is $r > 0$ such that $x - r \nabla _ { x } g ( x : \theta ) \mathrm { s i g n } \{ g ( x : \theta ) \}$ locates at the decision boundary. We say that a linear region $A _ { j }$ is normal if all $x$ in $A _ { j }$ are normal. We expect that most of $A _ { j }$ are normal if $g ( x ; \theta )$ is reasonably estimated so that the probability decreases or increases depending on $\operatorname { s i g n } \{ g ( x : \theta ) \}$ if $x$ is getting closer to the decision boundary.
364
+
365
+ The following proposition proves that the adversarial direction is toward the decision boundary for all xs in normal linear regions.
366
+
367
+ Proposition 3 If a linear region $A _ { j }$ is normal. Then for any $x \in i n t ( \mathcal { A } _ { j } )$ , there exists $\epsilon > 0$ and $\delta > 0$ such that $x _ { b a d } = x + \delta r _ { a d \nu r } ( x , \epsilon ) / | | r _ { a d \nu r } ( x , \epsilon ) | |$ is on the decision boundary.
368
+
369
+ Proof. Take $\tilde { \epsilon } > 0$ such that $\boldsymbol { x } + \boldsymbol { r } \in \mathcal { A } _ { \tilde { \boldsymbol { j } } }$ for $\forall r \in B ( x , \tilde { \epsilon } )$ . Then by Proposition 1, there exists $0 < \epsilon ^ { * } < \tilde { \epsilon }$ such that for $\forall 0 < \epsilon < \epsilon ^ { * }$ ,
370
+
371
+ $$
372
+ \begin{array} { r c l } { r _ { \mathrm { a d v r } } ( \boldsymbol { x } , \epsilon ) } & { = } & { \epsilon \cdot \mathrm { s i g n } ( - b _ { \tilde { j } } - w _ { \tilde { j } } ^ { ' } x ) ) \cdot \frac { w _ { \tilde { j } } } { | | w _ { \tilde { j } } | | } } \\ & { \propto } & { - \nabla _ { x } g ( x ; \theta ) \mathrm { s i g n } \{ g ( x : \theta ) \} . } \end{array}
373
+ $$
374
+
375
+ $x$ is normal, thus there exists $\delta > 0$ such that $x _ { \mathrm { b a d } } = x + \delta r _ { \mathrm { a d v r } } ( x , \epsilon ) / | | r _ { \mathrm { a d v r } } ( x , \epsilon ) | |$ belongs to the decision boundary. 
376
+
377
+ # A.3 PROOF OF PROPOSITION 2
378
+
379
+ It suffices to show that $\forall x , x ^ { ' } \in \mathcal { U } _ { k } ^ { t r } , f ( x ) = f ( x ^ { ' } )$ for all $k = 1 , . . . , K$ . For given $\mathcal { U } _ { k } ^ { t r }$ , there exists $( \tilde { x } , \tilde { y } ) \in \mathcal { L } ^ { t r }$ such that $d ( \{ \tilde { x } \} , \mathcal { U } _ { k } ^ { t r } ) < \epsilon$ . So ${ \mathcal { U } } _ { k } ^ { t r } \cup \{ { \tilde { x } } \}$ is $\epsilon$ -connected. That is, for any $x \in \mathcal { U } _ { k } ^ { t r }$ , there exists a path $( \tilde { x } , x _ { 1 } , . . . , x _ { q } , x )$ such that $( \tilde { x } , x _ { 1 } ) , . . . , ( x _ { q } , x )$ are all $\epsilon$ -connected. Therefore $y ( x ) = y ( \tilde { x } ) = \tilde { y }$ for $\forall x \in \mathcal { U } _ { k } ^ { t r }$ , and the proof is done. 
380
+
381
+ A.4 FIGURE
382
+
383
+ ![](images/6ce452a1c9709c09910e96f7d3597906a34147eb69b85bfd3aa25020a9ebafd2.jpg)
384
+ Figure 7: Trace plot of the test accuracies with the four methods for MNIST dataset. 20 randomly sampled data are used as the labeled data and the rest are used as the unlabeled data.
parse/train/H1fsUiRcKQ/H1fsUiRcKQ_content_list.json ADDED
@@ -0,0 +1,1922 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "FAST ADVERSARIAL TRAINING FOR SEMI-SUPERVISEDLEARNING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 101,
9
+ 823,
10
+ 151
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors ",
17
+ "bbox": [
18
+ 184,
19
+ 175,
20
+ 326,
21
+ 189
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Paper under double-blind review ",
28
+ "bbox": [
29
+ 184,
30
+ 193,
31
+ 398,
32
+ 205
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 246,
43
+ 544,
44
+ 261
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In semi-supervised learning, Bad GAN approach is one of the most attractive method due to the intuitional simplicity and powerful performances. Bad GAN learns a classifier with bad samples distributed on complement of the support of the input data. But Bad GAN needs additional architectures, a generator and a density estimation model, which involves huge computation and memory consumption cost. VAT is another good semi-supervised learning algorithm, which utilizes unlabeled data to improve the invariance of the classifier with respect to perturbation of inputs. In this study, we propose a new method by combining the ideas of Bad $G A N$ and VAT. The proposed method generates bad samples of high-quality by use of the adversarial training used in VAT. We give theoretical explanations why the adversarial training is good at both generating bad samples and semi-supervised learning. An advantage of the proposed method is to achieve the competitive performances with much fewer computations. We demonstrate advantages our method by various experiments with well known benchmark image datasets. ",
51
+ "bbox": [
52
+ 232,
53
+ 281,
54
+ 767,
55
+ 512
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 542,
66
+ 336,
67
+ 560
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Deep learning has accomplished unprecedented success due to the development of deep architectures, learning techniques and hardwares (Krizhevsky et al., 2012; Ioffe & Szegedy, 2015; Szegedy et al., 2015; Hinton et al., 2012; Kingma & Ba, 2014). However, deep learning has also suffered from collecting large amount of labeled data which requires both cost and time. Thus it becomes important to develop semi-supervised methodologies that learn a classifier (or discriminator) by using small labeled data and large unlabeled data. ",
74
+ "bbox": [
75
+ 173,
76
+ 578,
77
+ 826,
78
+ 676
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Various semi-supervised learning methods have been proposed for deep learning. Weston et al. (2012) employs a manifold embedding technique using the pre-constructed graph of unlabeled data and Rasmus et al. (2015) uses a specially designed auto-encoder to extract essential features for classification. Variational auto encoder (Kingma & Welling, 2013) is also used in the context of semi-supervised learning by maximizing the variational lower bound of both labeled and unlabeled data (Kingma et al., 2014; Maaløe et al., 2016). ",
85
+ "bbox": [
86
+ 174,
87
+ 685,
88
+ 826,
89
+ 784
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Recently, semi-supervised learning based on generative adversarial networks (GAN, Goodfellow et al. (2014a)) has received much attention. For $K$ -class classification problems, Salimans et al. (2016) solves the $( K + 1 )$ -class classification problem where the additional $( K + 1 )$ th class consists of synthetic images made by a generator of the $G A N$ learned by unlabeled data. Dai et al. (2017) notices that not a good generator but a bad generator which generates synthetic images much different from observed images is crucial for the success of semi-supervised learning. Dai et al. (2017) gives theoretical justifications of using a bad generator and develops a semi-supervised learning algorithm called Bad GAN which achieves the state-of-the-art performances over multiple benchmark datasets. ",
96
+ "bbox": [
97
+ 173,
98
+ 792,
99
+ 826,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "However, Bad GAN has several limitations. It needs two additional deep architectures - bad generator and pre-trained density estimation model besides the one for the classifier. Learning these multiple deep architectures requires huge computation and memory consumption. In particular, the Pixel$C N N { + + }$ (Salimans et al., 2017) is used for the pre-trained density estimation model which needs very large computational resources. ",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 185
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Another difficulty in Bad GAN is that it requires a two-step learning procedure - the first step is to learn the $P i x e l C N N { + + }$ model and the second step is to learn the classifier and the bad generator. The optimal learning of the first step may not be optimal for the second step and hence the regularization of the both steps would need special techniques. ",
118
+ "bbox": [
119
+ 174,
120
+ 193,
121
+ 825,
122
+ 258
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this study, we propose a new semi-supervised learning method which competes well with other stateof-the-art semi-supervised learning algorithms and yet needs much smaller amount of computational resources. In particular, the proposed method employs only one deep architecture and hence the corresponding learning phase is much easier and faster. ",
129
+ "bbox": [
130
+ 174,
131
+ 267,
132
+ 825,
133
+ 333
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Our proposed method is motivated by close investigation of VAT (Virtual Adversarial Training) method (Miyato et al., 2015; 2017). VAT tries to find a deep classifier which has a good prediction accuracy on training data and at the same time is less sensitive to data perturbation toward the adversarial direction. Here, the adversarial direction for a given datum is the direction to which the probabilities of each class change most. In Section 3, we prove that the perturbed data toward their adversarial directions can serve as ‘good’ bad samples. By using the adversarial directions for both measuring the invariance and generating the bad samples, the proposed method combines the advantages of Bad GAN and VAT together. Note that only a deep architecture for classification is needed to calculate the adversarial directions and thus the corresponding learning procedure is cheaper, easier and faster. We call our proposed method FAT (Fast Adversarial Training). ",
140
+ "bbox": [
141
+ 173,
142
+ 342,
143
+ 826,
144
+ 506
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Dai et al. (2017) proves that bad samples play a role to pull the decision boundary toward the low density regions of data. In Section 5, we give a theoretical explanation that VAT pushes the decision boundary away from the high density regions of data. That is, FAT accelerates the learning procedure by using both pushing and pulling operations simultaneously. In section 6, we show that $F A T$ achieves almost the state-of-the-art performances with much fewer training epochs. Especially, for the MNIST dataset, FAT achieves similar test accuracies to those of Bad GAN and VAT with 5 times and 7 times fewer training epochs, respectively. ",
151
+ "bbox": [
152
+ 173,
153
+ 515,
154
+ 825,
155
+ 631
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "This paper is organized as follows. In Section 2, we review the Bad GAN and VAT methods briefly. In Section 3, the technique to generate bad samples using the adversarial directions is described, and our proposed semi-supervised learning method is presented in Section 4. Theoretical analysis of VAT is given in Section 5. Results of various experiments are presented in Section 6 and conclusions follow in Section 7. ",
162
+ "bbox": [
163
+ 174,
164
+ 638,
165
+ 826,
166
+ 719
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 Bad GAN AND VAT ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 176,
176
+ 742,
177
+ 364,
178
+ 760
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "2.1 Bad GAN APPROACH",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 174,
188
+ 776,
189
+ 357,
190
+ 791
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "Bad GAN is a method that trains a good discriminator with a bad generator. This procedure trains a generator as well as a discriminator simultaneously. Let $\\mathcal { D } _ { G } ( \\phi )$ be generated bad samples with a bad generator $p _ { G } ( \\cdot ; \\phi )$ parametrized by $\\phi$ . Here, the ‘bad generator’ is a deep architecture to generate samples different from observed data. Let $p ^ { \\mathrm { p t } } ( \\cdot )$ be a pre-trained density estimation model. For a given discriminator with a feature vector $v ( x ; \\theta )$ of a given input $x$ parameterized by $\\theta$ , Bad GAN learns the bad generator by minimizing the following: ",
197
+ "bbox": [
198
+ 173,
199
+ 804,
200
+ 826,
201
+ 904
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "equation",
207
+ "img_path": "images/395f99159f15a83f67e4a5575d72529cd993ea612faae593b8b73f504727fd1a.jpg",
208
+ "text": "$$\n\\mathbb { E } _ { x \\sim \\mathcal { D } _ { G } ( \\phi ) } \\left[ \\log p ^ { \\mathrm { p t } } ( x ) \\mathbb { I } ( p ^ { \\mathrm { p t } } ( x ) > \\tau ) \\right] + | | \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } v ( x ; \\widehat { \\theta } ) - \\mathbb { E } _ { x \\sim \\mathcal { D } _ { G } ( \\phi ) } v ( x ; \\widehat { \\theta } ) | | ^ { 2 }\n$$",
209
+ "text_format": "latex",
210
+ "bbox": [
211
+ 241,
212
+ 905,
213
+ 754,
214
+ 926
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "with respect to $\\phi$ , where $\\tau > 0$ is a tuning parameter, $\\boldsymbol { \\mathcal { U } } ^ { t r }$ is the unlabeled data, and $\\widehat { \\theta }$ is the current estimate of $\\theta$ and $\\| \\cdot \\|$ is the Euclidean norm. ",
221
+ "bbox": [
222
+ 173,
223
+ 102,
224
+ 825,
225
+ 136
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "In turn, to train the discriminator, we consider the $K$ -class classification problem as the $( K + 1 )$ -class classification problem where the $( K + 1 )$ -th class is an artificial label of the bad samples generated by the bad generator. We estimate the parameter $\\theta$ in the discriminator by minimizing the following: ",
232
+ "bbox": [
233
+ 174,
234
+ 143,
235
+ 826,
236
+ 193
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "equation",
242
+ "img_path": "images/3e585ecfb6bb12320cf21c5b3a57a9225be34fd1fb3441fc0ba55ca2f16fe080.jpg",
243
+ "text": "$$\n\\begin{array} { l } { - \\mathbb { E } _ { x , y \\sim \\mathcal { L } ^ { t r } } \\left[ \\log p ( y | x , y \\leq K ; \\theta ) \\right] - \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } \\left[ \\log \\left\\{ \\displaystyle \\sum _ { k = 1 } ^ { K } p ( k | x ; \\theta ) \\right\\} \\right] } \\\\ { - \\mathbb { E } _ { x \\sim \\mathcal { D } _ { G } ( \\phi ) } \\left[ \\log p ( K + 1 | x ; \\theta ) \\right] - \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } \\left[ \\displaystyle \\sum _ { k = 1 } ^ { K } p ( k | x ; \\theta ) \\log p ( k | x ; \\theta ) \\right] } \\end{array}\n$$",
244
+ "text_format": "latex",
245
+ "bbox": [
246
+ 274,
247
+ 196,
248
+ 753,
249
+ 287
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "for given $\\phi$ , where $\\mathcal { L } ^ { t r }$ is the labeled set. The second and the third terms in (1) are the cross-entropies between the unlabeled and the bad samples. The fourth term is similar the entropy of the unlabeled data which is usually helpful for semi-supervised learning (Grandvalet & Bengio, 2005). See Dai et al. (2017) for details of the objective function (1). ",
256
+ "bbox": [
257
+ 173,
258
+ 290,
259
+ 826,
260
+ 357
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "2.2 VAT APPROACH",
267
+ "text_level": 1,
268
+ "bbox": [
269
+ 174,
270
+ 375,
271
+ 323,
272
+ 390
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "$V A T$ is a regularization method which is inspired by the adversarial training (Goodfellow et al., 2014b). The regularization term of VAT is given as: ",
279
+ "bbox": [
280
+ 173,
281
+ 404,
282
+ 825,
283
+ 435
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "img_path": "images/7199df4a6e3da66374b1d33348bf16f7d305cec2eed0a7d109db87fcafd8507e.jpg",
290
+ "text": "$$\n\\begin{array} { r c l } { \\boldsymbol { L } ^ { \\mathrm { V A T } } ( \\boldsymbol { \\theta } ; \\widehat { \\boldsymbol { \\theta } } , \\boldsymbol { x } , \\epsilon ) } & { = } & { \\displaystyle { D _ { \\mathrm { K L } } } \\left( p ( \\cdot | \\boldsymbol { x } ; \\widehat { \\boldsymbol { \\theta } } ) | | p ( \\cdot | \\boldsymbol { x } + r _ { \\mathrm { a d v r } } ( \\boldsymbol { x } , \\epsilon ) ; \\boldsymbol { \\theta } ) \\right) } \\\\ & { = } & { \\displaystyle - \\sum _ { k = 1 } ^ { K } p ( k | \\boldsymbol { x } ; \\widehat { \\boldsymbol { \\theta } } ) \\log p ( k | \\boldsymbol { x } + r _ { \\mathrm { a d v r } } ( \\boldsymbol { x } , \\epsilon ) ; \\boldsymbol { \\theta } ) + C , } \\end{array}\n$$",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 269,
294
+ 440,
295
+ 727,
296
+ 513
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "where ",
303
+ "bbox": [
304
+ 173,
305
+ 517,
306
+ 217,
307
+ 531
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "equation",
313
+ "img_path": "images/a6ea6a8aa0694306baf7324a71120b2c1eb722036c8f21baaba5ab559c3fd80d.jpg",
314
+ "text": "$$\nr _ { \\mathrm { a d v r } } ( \\boldsymbol { x } , \\epsilon ) = \\underset { r ; | \\lvert r \\rvert | \\le \\epsilon } { \\mathrm { a r g m a x } } D _ { \\mathrm { K L } } \\left( p ( \\cdot | \\boldsymbol { x } ; \\widehat { \\boldsymbol { \\theta } } ) | | p ( \\cdot | \\boldsymbol { x } + r ; \\widehat { \\boldsymbol { \\theta } } ) \\right) ,\n$$",
315
+ "text_format": "latex",
316
+ "bbox": [
317
+ 326,
318
+ 526,
319
+ 669,
320
+ 560
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "$\\epsilon > 0$ is a tuning parameter, $\\theta$ is the parameter in the discriminator to train, $\\widehat { \\theta }$ is the current estimate of $\\theta$ and $C$ is a constant. Combining with the cross-entropy term of the labeled data, we get the final objective function of $V A T$ : ",
327
+ "bbox": [
328
+ 173,
329
+ 564,
330
+ 825,
331
+ 613
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "equation",
337
+ "img_path": "images/7e8952262c7d92f319b641a2bf4dce7e19668b60ddabeab0b3caefb1671b0a20.jpg",
338
+ "text": "$$\n- \\mathbb { E } _ { \\boldsymbol { x } , \\boldsymbol { y } \\sim \\mathcal { L } ^ { t r } } \\left[ \\log p ( \\boldsymbol { y } | \\boldsymbol { x } ; \\boldsymbol { \\theta } ) \\right] + \\mathbb { E } _ { \\boldsymbol { x } \\sim \\mathcal { U } ^ { t r } } \\left[ \\boldsymbol { L } ^ { \\mathrm { V A T } } ( \\boldsymbol { \\theta } ; \\widehat { \\boldsymbol { \\theta } } , \\boldsymbol { x } , \\epsilon ) \\right] .\n$$",
339
+ "text_format": "latex",
340
+ "bbox": [
341
+ 297,
342
+ 618,
343
+ 665,
344
+ 645
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "3 GENERATION OF BAD SAMPLES BY ADVERSARIAL TRAINING ",
351
+ "text_level": 1,
352
+ "bbox": [
353
+ 173,
354
+ 662,
355
+ 709,
356
+ 679
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "The key role of bad samples in Bad GAN is to enforce the decision boundary to be pulled toward the low density regions of the unlabeled data. To do this, bad samples must be located at the valleys of the distribution of the unlabeled data. In this section, we propose a novel technique to generate ‘good’ bad samples by use of only a given classifier. ",
363
+ "bbox": [
364
+ 173,
365
+ 695,
366
+ 826,
367
+ 762
368
+ ],
369
+ "page_idx": 2
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "3.1 MOTIVATION ",
374
+ "text_level": 1,
375
+ "bbox": [
376
+ 174,
377
+ 780,
378
+ 307,
379
+ 795
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "In this subsection, we explain why the adversarial direction is toward the decision boundary. For simplicity, we only consider the linear decision boundary. For the decision boundary made by the DNN model with ReLU activation function, see Appendix A.2. ",
386
+ "bbox": [
387
+ 173,
388
+ 808,
389
+ 825,
390
+ 858
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Let us consider the 2-class linear logistic regression model parametrized by $\\eta = \\{ w , b \\}$ , that is, $p ( y = 1 | x ; \\eta ) = \\left( 1 + \\exp ( - b - w ^ { ' } x ) \\right) ^ { - 1 }$ . Note that the decision boundary is $\\{ x : b + w ^ { ' } x = 0 \\}$ , and for any given $x$ , the distance between $x$ and the decision boundary is $| b + w ^ { ' } x | / | | w | |$ . The key ",
397
+ "bbox": [
398
+ 173,
399
+ 866,
400
+ 825,
401
+ 925
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "image",
407
+ "img_path": "images/5273c9df6c8b92ef502c36c1a00be0c95442c2991dc886aa558727d6656d5c25.jpg",
408
+ "image_caption": [
409
+ "Figure 1: Demonstration of how the bad samples generated by the adversarial training are distributed. We consider two cases: 3-class classification problem (Left) and 4-class classification problem (Right). True data and bad data are coloured by blue and orange, respectively. "
410
+ ],
411
+ "image_footnote": [],
412
+ "bbox": [
413
+ 341,
414
+ 114,
415
+ 647,
416
+ 218
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "result is that moving $x$ toward the adversarial direction $r _ { \\mathrm { a d v r } } ( x , \\epsilon )$ is equivalent to moving $x$ toward the decision boundary which is stated rigorously in the following proposition. The proof is in the appendix. ",
423
+ "bbox": [
424
+ 173,
425
+ 296,
426
+ 826,
427
+ 347
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "Proposition 1 For a sufficiently small $\\epsilon > 0$ , we have ",
434
+ "bbox": [
435
+ 173,
436
+ 361,
437
+ 529,
438
+ 377
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "equation",
444
+ "img_path": "images/c580ed06a641ae1e4b11a97cd0a787b16c24c478bd396523c4b6f6de00e7e62e.jpg",
445
+ "text": "$$\ns i g n ( w ^ { ' } x + b ) \\cdot s i g n \\left( w ^ { ' } r _ { a d \\nu r } ( x , \\epsilon ) \\right) = - 1 .\n$$",
446
+ "text_format": "latex",
447
+ "bbox": [
448
+ 354,
449
+ 382,
450
+ 642,
451
+ 410
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "Proposition 1 implies that $| b + w ^ { ' } x | / | | w | | > | b + w ^ { ' } ( x + r ^ { \\mathrm { a d v r } } ( x , \\epsilon ) | / | | w | |$ unless $| b + w ^ { ' } x | = 0$ . Hence, we can treat $x + \\delta r _ { \\mathrm { a d v r } } ( x , \\epsilon ) / | | r ^ { \\mathrm { a d v r } } ( x , \\epsilon ) | |$ for appropriately choosing $\\delta > 0$ as a bad sample (a sample closer to the decision boundary). ",
458
+ "bbox": [
459
+ 174,
460
+ 416,
461
+ 826,
462
+ 468
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "3.2 BAD SAMPLE GENERATION WITH GENERAL CLASSIFIER ",
469
+ "text_level": 1,
470
+ "bbox": [
471
+ 174,
472
+ 486,
473
+ 601,
474
+ 502
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Motivated by Proposition 1, we propose a bad sample generator as follows. Let $\\delta > 0$ be fixed and $\\widehat { \\theta }$ be the current estimate of $\\theta$ . For a given input $x$ and a classifier $p ( \\cdot | x ; \\widehat { \\theta } )$ , we calculate the adversarial direction $r _ { \\mathrm { a d v r } } ( x , \\epsilon )$ for given $\\epsilon$ by (2). Then, we consider $x _ { \\mathrm { b a d } } = x + \\delta r _ { \\mathrm { a d v r } } ( x , \\epsilon ) / \\| r _ { \\mathrm { a d v r } } ( x . \\epsilon ) \\|$ as a bad sample (a sample closer to the decision boundary). We generate bad samples for all unlabeled data. In practice, we apply the same $\\delta$ to all unlabeled data and choose $\\delta$ based on the validation data accuracy. ",
481
+ "bbox": [
482
+ 173,
483
+ 513,
484
+ 826,
485
+ 613
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "In Figure 1, we illustrate how the bad samples generated by the proposed adversarial training are distributed for multi-class problem. With a good classifier, we can clearly see that most bad samples are located well in the low density regions of the data. ",
492
+ "bbox": [
493
+ 173,
494
+ 622,
495
+ 825,
496
+ 671
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "It may happen that a generated bad sample is not sufficiently close to the decision boundary to be a ’good’ bad sample, in particular when $\\delta$ is too large or too small. To avoid such a situation, we exclude $x _ { \\mathrm { b a d } }$ which satisfies the following condition: ",
503
+ "bbox": [
504
+ 173,
505
+ 679,
506
+ 825,
507
+ 728
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "equation",
513
+ "img_path": "images/fb57dc17099205dc0b4f4601cbfcc78de50dbf47021a7ee94e6862b57d1ee515.jpg",
514
+ "text": "$$\n\\operatorname* { m a x } _ { k } p ( k | x _ { \\mathrm { b a d } } ; \\widehat { \\theta } ) > 1 - \\tau\n$$",
515
+ "text_format": "latex",
516
+ "bbox": [
517
+ 395,
518
+ 734,
519
+ 568,
520
+ 760
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "for a prespecified $\\tau > 0$ . In our experiments, we set the optimal $\\tau$ with validation data. ",
527
+ "bbox": [
528
+ 173,
529
+ 766,
530
+ 741,
531
+ 782
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "4 FAST ADVERSARIAL TRAINING WITH BAD SAMPLES ",
538
+ "text_level": 1,
539
+ "bbox": [
540
+ 173,
541
+ 805,
542
+ 635,
543
+ 821
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Once we generate bad samples by the adversarial training, $F A T$ updates $\\theta$ by minimizing the following objective function: ",
550
+ "bbox": [
551
+ 174,
552
+ 838,
553
+ 828,
554
+ 871
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "equation",
560
+ "img_path": "images/80acda50d2ca8ed125fd12bfb09969166ae678cdda5ad45e9127adf79078b16f.jpg",
561
+ "text": "$$\n\\begin{array} { r l } & { - \\mathbb { E } _ { x , y \\sim \\mathcal { L } ^ { t r } } \\left[ \\log p ( y | x ; \\theta ) \\right] + \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } \\left[ L ^ { \\mathrm { t r u e } } ( \\theta ; x ) \\right] + \\mathbb { E } _ { x \\sim \\mathcal { D } ^ { b a d } ( \\widehat { \\theta } , \\epsilon , \\delta ) } \\left[ L ^ { \\mathrm { f a k e } } ( \\theta , x ) \\right] } \\\\ & { + \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } \\left[ L ^ { \\mathrm { V a T } } ( \\theta ; \\widehat { \\theta } , x , \\epsilon ) \\right] } \\end{array}\n$$",
562
+ "text_format": "latex",
563
+ "bbox": [
564
+ 248,
565
+ 877,
566
+ 774,
567
+ 930
568
+ ],
569
+ "page_idx": 3
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "where $\\mathcal { D } ^ { b a d } ( \\widehat { \\theta } , \\epsilon , \\delta )$ is the set of generated bad samples with ${ \\widehat { \\theta } } , \\epsilon$ and $\\delta$ , ",
574
+ "bbox": [
575
+ 174,
576
+ 101,
577
+ 635,
578
+ 119
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "equation",
584
+ "img_path": "images/01bfcec60ddf9c9178cb1ca26d205ec014ce2dd8583431ebfe5a21023d8ab3ba.jpg",
585
+ "text": "$$\n\\begin{array} { l } { { { \\cal L } ^ { \\mathrm { t r u e } } } ( \\theta ; x ) = - \\displaystyle \\sum _ { k = 1 } ^ { K } \\left[ \\displaystyle \\frac { \\exp ( g _ { k } ( x ; \\theta ) ) } { 1 + \\sum _ { k ^ { \\prime } = 1 } ^ { K } \\exp ( g _ { k ^ { \\prime } } ( x ; \\theta ) ) } \\log \\displaystyle \\frac { \\exp ( g _ { k } ( x ; \\theta ) ) } { 1 + \\sum _ { k ^ { \\prime } = 1 } ^ { K } \\exp ( g _ { k ^ { \\prime } } ( x ; \\theta ) ) } \\right] , } \\\\ { { { \\cal L } ^ { \\mathrm { f a k e } } } ( \\theta ; x ) = - \\log \\displaystyle \\frac { 1 } { 1 + \\sum _ { k = 1 } ^ { K } \\exp ( g _ { k } ( x ; \\theta ) ) } , } \\end{array}\n$$",
586
+ "text_format": "latex",
587
+ "bbox": [
588
+ 241,
589
+ 125,
590
+ 782,
591
+ 208
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "$g ( x ; \\theta ) \\in \\mathbb { R } ^ { K }$ is a pre-softmax vector of a given deep architecture and $\\lambda > 0$ . We treat $\\epsilon$ and $\\delta$ as tuning parameters to be selected based on the validation data accuracy. We minimize the objective function with one of the standard optimization algorithms such as Adam (Kingma & Ba, 2014) or RMSProp (Tieleman & Hinton, 2012). ",
598
+ "bbox": [
599
+ 173,
600
+ 213,
601
+ 826,
602
+ 279
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "The objective function (5) differs from the objective function (1) of Bad GAN in a way that the second term of (1), the cross-entropy of not being a bad sample, is deleted and the regularization term of VAT is added. We delete the second term of (1) because it can be easily shown that a perfect classifier of unlabeled data can be obtained from the minimizer of the objective function (1) without the second term under the conditions in Dai et al. (2017). The regularization term of VAT is added to improve the bad sample generator based on adversarial training. See Section 5.1 for detailed discussions. ",
609
+ "bbox": [
610
+ 173,
611
+ 286,
612
+ 826,
613
+ 386
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Miyato et al. (2017) proposes the fast approximation method to calculate the adversarial direction $r _ { \\mathrm { a d v r } } ( x , \\epsilon )$ by using the second-order Taylor expansion. Let us define $H ( x , { \\widehat { \\theta } } ) \\ =$ $\\nabla \\nabla D _ { \\mathrm { K L } } \\left( p ( \\cdot | x ; \\widehat { \\theta } ) | | p ( \\cdot | x + r ; \\widehat { \\theta } ) \\right) | _ { r = 0 }$ . They claim that $r _ { \\mathrm { a d v r } }$ emerges as the first dominant eigenvector $u ( x , \\widehat { \\theta } )$ of $H ( x , { \\widehat { \\theta } } )$ with magnitude $\\epsilon$ . But there always exist two dominant eigenvectors, $\\pm u ( x , \\widehat { \\theta } )$ , and the sign should be selected carefully. So, we slightly modify the approximation method of Miyato et al. (2017) by ",
620
+ "bbox": [
621
+ 173,
622
+ 393,
623
+ 826,
624
+ 501
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "equation",
630
+ "img_path": "images/a84b83dbe6579fb20f37f4d160ab1c5e4f2bb186b389afb7c27c5c457d731c53.jpg",
631
+ "text": "$$\nr _ { \\mathrm { a d v r } } ( \\boldsymbol { x } , \\epsilon ) = \\operatorname * { a r g m a x } _ { \\boldsymbol { r } \\in \\{ \\boldsymbol { u } ( \\boldsymbol { x } , \\widehat { \\boldsymbol { \\theta } } ) , - \\boldsymbol { u } ( \\boldsymbol { x } , \\widehat { \\boldsymbol { \\theta } } ) \\} } D _ { \\mathrm { K L } } \\left( p ( \\cdot | \\boldsymbol { x } ; \\widehat { \\boldsymbol { \\theta } } ) | | p ( \\cdot | \\boldsymbol { x } + \\boldsymbol { r } ; \\widehat { \\boldsymbol { \\theta } } ) \\right) .\n$$",
632
+ "text_format": "latex",
633
+ "bbox": [
634
+ 294,
635
+ 507,
636
+ 702,
637
+ 542
638
+ ],
639
+ "page_idx": 4
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "This modification helps to improve convergence speed of the test accuracy, which will be demonstrated in the ablation experiments. ",
644
+ "bbox": [
645
+ 173,
646
+ 549,
647
+ 825,
648
+ 580
649
+ ],
650
+ "page_idx": 4
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "5 ROLE OF VAT FOR SEMI-SUPERVISED LEARNING ",
655
+ "text_level": 1,
656
+ "bbox": [
657
+ 174,
658
+ 604,
659
+ 607,
660
+ 621
661
+ ],
662
+ "page_idx": 4
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "In this section, we investigate the roles of the regularization term of VAT in our method in detail. First, we verify that VAT regularization term does help to generate ’better’ bad samples with a simple experiment. Furthermore, we give a theoretical insight for the role of the regularization term of VAT in semi-supervised learning. We will show that the regularization term of VAT pushes the decision boundary from the high density regions of unlabeled data. As a result, FAT uses pushing operations by VAT term as well as pulling operations by bad samples simultaneously, which makes it possible to accelerate the training process with improved performances. ",
667
+ "bbox": [
668
+ 173,
669
+ 637,
670
+ 826,
671
+ 753
672
+ ],
673
+ "page_idx": 4
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "5.1 IMPROVEMENT OF BAD SAMPLES WITH VAT ",
678
+ "text_level": 1,
679
+ "bbox": [
680
+ 174,
681
+ 772,
682
+ 517,
683
+ 787
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "For generated samples by adversarial training to be ‘good’ bad samples, the adversarial directions should be toward the decision boundary. While this always happens for the linear model by Proposition 1, adversarial directions could be opposite to the decision boundary for deep model. To avoid such undesirable cases as much as possible, it would be helpful to smoothen the classifier with a regularization term. In this section, we explain that the regularization term of VAT plays such a role. ",
690
+ "bbox": [
691
+ 173,
692
+ 801,
693
+ 826,
694
+ 883
695
+ ],
696
+ "page_idx": 4
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "The adversarial direction obtained by maximizing the KL divergence is sensitive to local fluctuations of the class probabilities which is examplified in Figure 2. The regularization term of VAT is helpful to find a right adversarial direction which is toward the decision boundary by eliminating unnecessary local fluctuations of the class probabilities. In Figure 3, we compare bad samples generated by the adversarial training with and without the regularization term of VAT for the MNIST dataset. While the bad samples generated without the regularization term of VAT are visually similar to the given input vectors, the bad samples generated with the regularization term of VAT look like mixtures of two different digits and thus serve as ‘better’ bad samples. ",
701
+ "bbox": [
702
+ 174,
703
+ 892,
704
+ 823,
705
+ 924
706
+ ],
707
+ "page_idx": 4
708
+ },
709
+ {
710
+ "type": "image",
711
+ "img_path": "images/fc2a84b1323bfadcad3728fdd6481dc3bbfdadf75ab76068137bb03e5b8f60b7.jpg",
712
+ "image_caption": [
713
+ "Figure 2: Examples of $P ( y = 1 | x )$ of smooth (Left) and wiggle (Right) cases. We plot 3 points and their adversarial directions on each case. "
714
+ ],
715
+ "image_footnote": [],
716
+ "bbox": [
717
+ 336,
718
+ 113,
719
+ 653,
720
+ 218
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "image",
726
+ "img_path": "images/d07d00333c8809877229d2a92f62af0d604669ecd48bb36d5a743a2235671f26.jpg",
727
+ "image_caption": [
728
+ "Figure 3: (Upper) 10 randomly sampled original MNIST dataset. (Middle and Lower) Bad samples obtained by the classifier learned with and without the regularization term of VAT. "
729
+ ],
730
+ "image_footnote": [],
731
+ "bbox": [
732
+ 316,
733
+ 275,
734
+ 676,
735
+ 359
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "",
742
+ "bbox": [
743
+ 173,
744
+ 426,
745
+ 826,
746
+ 526
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "5.2 THEORETICAL ANALYSIS OF VAT ",
753
+ "text_level": 1,
754
+ "bbox": [
755
+ 176,
756
+ 537,
757
+ 442,
758
+ 553
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "Suppose that $\\mathcal { X }$ is partitioned by $( K + 1 )$ mutually disjoint subsets $\\mathcal { X } _ { k }$ for $k = 1 , \\ldots , K + 1$ such that $y ( x ) = k$ for all $x \\in { \\mathcal { X } } _ { k } , k \\leq K$ and $p ^ { * } ( x ) = 0$ for $x \\in \\mathcal { X } _ { K + 1 }$ , where $y ( x )$ is the ground-truth label of $x$ and $p ^ { * } ( x )$ is the true density of $x$ . For a given feature map $u : \\mathcal { X } \\mathbb { R } ^ { m }$ and weight vectors $w _ { 1 } , \\ldots , w _ { k }$ , let $p ( y = k | x ) \\propto \\exp ( w _ { k } ^ { ' } u ( x ) )$ for $k = 1 , \\ldots , K$ and $p ( y = K + 1 | x ) \\propto 1$ . Let $\\mathcal { L } ^ { t r }$ satisfy $\\mathcal { X } _ { k } \\cap \\mathcal { L } _ { t r } \\neq \\emptyset$ for $k = 1 , . . . K$ . Suppose that (i) $\\ \\mathrm { a r g m a x } _ { h } p ( y = h | x ) = y$ for $\\boldsymbol { x } \\in \\mathcal { L } _ { t r }$ , (ii) $\\mathrm { a r g m a x } _ { h } p ( y = h | x ) \\le K$ for $x \\in \\cup _ { k = 1 } ^ { K } \\mathcal { X } _ { k }$ and (iii) argmax $\\dot { \\mathbf { \\rho } } _ { h } p ( y = h | x ) = K + 1$ for $x \\in \\mathcal { X } _ { K + 1 }$ . Under these three conditions, Dai et al. (2017) proves that $\\mathrm { a r g m a x } _ { h } p ( y = h | x ) = y ( x )$ for all $x \\in \\cup _ { k = 1 } ^ { K } \\mathcal { X } _ { k }$ . That is, generating large ‘good’ bad samples is helpful for classifying unlabeled data correctly only with a small amount of labeled data. ",
765
+ "bbox": [
766
+ 173,
767
+ 568,
768
+ 826,
769
+ 717
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "A similar result can be obtained for VAT objective function itself under mild additional conditions. For given two subsets $\\mathcal { A } _ { 1 }$ and $\\boldsymbol { A } _ { 2 }$ of $\\mathcal { X }$ , we define $\\begin{array} { r } { d ( A _ { 1 } , A _ { 2 } ) = \\operatorname* { m i n } _ { x _ { 1 } \\in A _ { 1 } , x _ { 2 } \\in A _ { 2 } } d ( x _ { 1 } , x _ { 2 } ) } \\end{array}$ for a given metric $d$ . We define a tuple $( x , x ^ { ' } )$ is $\\epsilon$ -connected if $d ( x , x ^ { ' } ) < \\epsilon$ . A finite subset $\\mathcal { A }$ of $\\mathcal { X }$ is called $\\epsilon$ -connected iff for all $x , x ^ { ' } \\in { \\mathcal { A } }$ , there exists a finite path $( x , x _ { 1 } , . . . , x _ { q } , x ^ { ' } )$ such that $x _ { j } \\in { \\mathcal { A } }$ for $j = 1 , \\dotsc , q$ an $1 ( x , x _ { 1 } ) , ( x _ { 1 } , x _ { 2 } ) , . . . , ( x _ { q - 1 } , x _ { q } ) , ( x _ { q } , x ^ { ' } )$ are all $\\epsilon$ -connected. ",
776
+ "bbox": [
777
+ 173,
778
+ 726,
779
+ 825,
780
+ 809
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "Proposition 2 Assume that there exists $\\epsilon > 0$ such that $\\pmb { I }$ ) $\\mathcal { U } _ { k } ^ { t r } = \\mathcal { U } ^ { t r } \\cap \\mathcal { X } _ { k } , k = 1 , \\ldots , K$ are $\\epsilon$ -connected, 2) $d ( \\mathcal { X } _ { k } , \\mathcal { X } _ { k ^ { \\prime } } ) \\geq 2 \\epsilon$ for all $k \\neq k ^ { ' } \\leq K$ , and 3) for each $k \\leq K$ , there exists at least one $( x , k ) \\in \\mathcal { L } ^ { t r }$ such that $d ( \\{ x \\} , \\mathcal { U } _ { k } ^ { t r } ) < \\epsilon$ . Suppose that there exists a classifier $f : \\mathcal { X } \\to \\{ 1 , . . . , K \\}$ such that $f ( x ) = y$ for all $( x , y ) \\in \\mathcal { L } ^ { t r }$ and ",
787
+ "bbox": [
788
+ 173,
789
+ 827,
790
+ 825,
791
+ 893
792
+ ],
793
+ "page_idx": 5
794
+ },
795
+ {
796
+ "type": "equation",
797
+ "img_path": "images/dbea76e2c471c00e8deeff573896cd8729644c6e112dbe1ce0bf3609bbab2c08.jpg",
798
+ "text": "$$\nf ( x ) = f ( x ^ { ' } ) f o r a l l x ^ { ' } \\in \\mathcal { B } ( x , \\epsilon )\n$$",
799
+ "text_format": "latex",
800
+ "bbox": [
801
+ 382,
802
+ 905,
803
+ 616,
804
+ 925
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "for all $\\boldsymbol { x } \\in \\boldsymbol { U } ^ { t r }$ , where $\\displaystyle B ( x , \\epsilon ) = \\{ x ^ { \\prime } : d ( x , x ^ { \\prime } ) \\leq \\epsilon \\}$ . Then, the function $f$ classifies the unlabeled set perfectly, that is: ",
811
+ "bbox": [
812
+ 168,
813
+ 102,
814
+ 825,
815
+ 135
816
+ ],
817
+ "page_idx": 6
818
+ },
819
+ {
820
+ "type": "equation",
821
+ "img_path": "images/0a4b1b7674adecffb576a20def549322c822580cf8376dd6d1ceee792bb3a7e6.jpg",
822
+ "text": "$$\nf ( x ) = y ( x ) f o r a l l x \\in \\mathcal { U } ^ { t r } .\n$$",
823
+ "text_format": "latex",
824
+ "bbox": [
825
+ 380,
826
+ 142,
827
+ 581,
828
+ 160
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "Condition 1) and 2) mean that the unlabeled data are dense enough and the supports of each class are separated sufficiently, respectively. Condition 3) assumes that at least one labeled instance exists near the supports of each class. The main condition of Proposition 2 is (6) which essentially assumes that the classifier $f$ does not change much locally. That is, $f$ is invariant with respect to all small perturbations of an input $x$ . Note that the regularization term of $V A T$ is devised to improve the invariancy of the classifier and Proposition 2 explains why improving the invariancy is helpful for semi-supervised learning. ",
835
+ "bbox": [
836
+ 173,
837
+ 191,
838
+ 826,
839
+ 308
840
+ ],
841
+ "page_idx": 6
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "5.3 INTERPRETATION OF VAT ",
846
+ "text_level": 1,
847
+ "bbox": [
848
+ 174,
849
+ 325,
850
+ 392,
851
+ 342
852
+ ],
853
+ "page_idx": 6
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "Let $f ( x ; \\theta ) = \\mathrm { a r g m a x } _ { h } p ( y = h | x ; \\theta )$ . Proposition 2 implies that it would be good to pursue a classifier which predicts the labeled data correctly and at the same time is invariant with respect to all local perturbations on the unlabeled data. For this purpose, a plausible candidate of the objective function is ",
858
+ "bbox": [
859
+ 173,
860
+ 354,
861
+ 826,
862
+ 419
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "equation",
868
+ "img_path": "images/1d8835df86bc05d56e998910649a6c7a6fc2a6aa219ebc0cfcd5d8961452a95f.jpg",
869
+ "text": "$$\n\\begin{array} { r } { \\mathbb { E } _ { ( { x } , { y } ) \\sim \\mathcal { L } ^ { t r } } \\left[ \\mathbb { I } ( { y } \\neq f ( { x } ; { \\theta } ) \\right] + \\mathbb { E } _ { { x } \\sim \\mathcal { U } ^ { t r } } \\left[ \\mathbb { I } \\left( f ( { x } ; { \\theta } ) \\neq f ( { x } ^ { ' } ; { \\theta } ) \\mathrm { ~ f o r ~ } { \\forall x } ^ { ' } \\in \\mathcal { B } ( { x } , { \\epsilon } ) \\right) \\right] . } \\end{array}\n$$",
870
+ "text_format": "latex",
871
+ "bbox": [
872
+ 212,
873
+ 422,
874
+ 753,
875
+ 450
876
+ ],
877
+ "page_idx": 6
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "Note that a classifier $f$ which achieves 0 value of the objective function (7) satisfies the conditions of Proposition 2 and thus classifies all unlabeled data correctly. ",
882
+ "bbox": [
883
+ 174,
884
+ 455,
885
+ 823,
886
+ 487
887
+ ],
888
+ "page_idx": 6
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "The objective function (7) is not practically usable since neither optimizing the indicator function nor checking $f ( x ; \\theta ) \\neq f ( x ^ { ' } ; \\theta )$ for all $x ^ { ' }$ in $B ( x , \\epsilon )$ is possible. To resolve these problems, we replace the indicator functions in (7) with the cross-entropies, and the neighborhood $B ( x , \\epsilon )$ in the second term with the adversarial direction. By doing so, we have the following alternative objective function: ",
893
+ "bbox": [
894
+ 174,
895
+ 494,
896
+ 825,
897
+ 561
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "equation",
903
+ "img_path": "images/14df001398688268e866fa469ec37aa4d62117c3dd5cbf53251d6598c6cddb01.jpg",
904
+ "text": "$$\n- \\mathbb { E } _ { x , y \\sim \\mathcal { L } ^ { t r } } \\left[ \\log p ( y | x ; \\theta ) \\right] - \\mathbb { E } _ { x \\sim \\mathcal { U } ^ { t r } } \\left[ \\sum _ { k = 1 } ^ { K } p ( k | x ; \\theta ) \\log p ( k | x + r _ { \\mathrm { a d v r } } ( x , \\epsilon ) ; \\theta ) \\right] .\n$$",
905
+ "text_format": "latex",
906
+ "bbox": [
907
+ 233,
908
+ 565,
909
+ 764,
910
+ 609
911
+ ],
912
+ "page_idx": 6
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Finally, we replace $p ( \\cdot | x ; \\theta )$ in the second term of (8) by $p ( \\cdot | x ; \\widehat { \\theta } )$ to have the objective function of VAT (3). ",
917
+ "bbox": [
918
+ 176,
919
+ 616,
920
+ 825,
921
+ 650
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "The condition (6) in Proposition 2 means that the decision boundary is not located inside the support $\\mathcal { X } _ { k }$ of each class. That is, the regularization term of VAT prevents the decision boundary from being located at the high density regions of data or equivalently pushes the decision boundary from the high density regions of data. ",
928
+ "bbox": [
929
+ 173,
930
+ 657,
931
+ 825,
932
+ 724
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "6 EXPERIMENTS ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 176,
942
+ 746,
943
+ 326,
944
+ 763
945
+ ],
946
+ "page_idx": 6
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "6.1 PREDICTION PERFORMANCES IN SEMI-SUPERVISED LEARNING",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 174,
954
+ 781,
955
+ 647,
956
+ 795
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "We compare prediction performances of $F A T$ over the benchmark datasets with other semi-supervised learning algorithms. We consider the most widely used datasets: MNIST (LeCun et al., 1998), SVHN (Marlin et al., 2010) and CIFAR10 (Krizhevsky & Hinton, 2009). As in done by other works, we randomly sample 100, 1000 and 4000 labeled data from the MNIST, SVHN and CIFAR10 datasets, respectively and use them as the labeled data and the rest as the unlabeled data. For fair comparison, we use the same architectures as those used in Miyato et al. (2017) for MNIST, SVHN and CIFAR10. The optimal tuning parameters $( \\epsilon , \\tau , \\delta )$ in $F A T$ are chosen based on the validation data accuracy. ",
963
+ "bbox": [
964
+ 173,
965
+ 808,
966
+ 826,
967
+ 925
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "table",
973
+ "img_path": "images/0e3cb85558c7e297e29c058ef0e97b20035195d64432d69a8654fb10da9cddf5.jpg",
974
+ "table_caption": [
975
+ "Table 1: Comparison of prediction accuracies of various semi-supervised learning algorithms for the three benchmark datasets. mod. VAT is the modified version of VAT stated in Section 4. "
976
+ ],
977
+ "table_footnote": [],
978
+ "table_body": "<table><tr><td>Method</td><td colspan=\"3\">Test acc.(%)</td></tr><tr><td></td><td>MNIST(100)</td><td>SVHN(1000)</td><td>CIFAR10(4000)</td></tr><tr><td>DGN (Kingma et al., 2014)</td><td>96.67</td><td>63.98</td><td>-</td></tr><tr><td>Ladder (Rasmus et al., 2015)</td><td>98.94</td><td>1</td><td>79.6</td></tr><tr><td>ALI (Donahue et al., 2016)</td><td>1</td><td>92.58</td><td>82.01</td></tr><tr><td>FM-GAN (Salimans et al.,2016)</td><td>99.07</td><td>91.89</td><td>81.37</td></tr><tr><td>FM-GAN-Tan (Kumar et al., 2017)</td><td>1</td><td>95.61</td><td>83.80</td></tr><tr><td>Bad GAN (Dai et al., 2017)</td><td>99.20</td><td>95.75</td><td>85.59</td></tr><tr><td>VAT (Miyato et al., 2017)</td><td>98.64</td><td>93.17</td><td>85.13</td></tr><tr><td>CrossEnt (use all data)</td><td>98.82</td><td>96.74</td><td>90.31</td></tr><tr><td>CrossEnt (use lab. data only)</td><td>79.16</td><td>88.91</td><td>67.45</td></tr><tr><td>mod. VAT</td><td>98.70</td><td>94.69</td><td>85.18</td></tr><tr><td>FAT</td><td>98.89</td><td>95.94</td><td>85.31</td></tr></table>",
979
+ "bbox": [
980
+ 200,
981
+ 136,
982
+ 792,
983
+ 356
984
+ ],
985
+ "page_idx": 7
986
+ },
987
+ {
988
+ "type": "table",
989
+ "img_path": "images/5f90a3dc983d47a61cf7b46088d28955953ca1129b27f30de804d8b76039b607.jpg",
990
+ "table_caption": [
991
+ "Table 2: Comparison of prediction accuracies with small labeled data and more complex dataset. "
992
+ ],
993
+ "table_footnote": [],
994
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">Test acc.(%)</td></tr><tr><td>MNIST(20)</td><td>SVHN(500)</td><td>CIFAR10(1000)</td><td>CIFAR100(8000)</td></tr><tr><td>FM-GAN (Salimans et al., 2016)</td><td>83.23</td><td>81.56</td><td>78.13</td><td>-</td></tr><tr><td>FM-GAN-Tan (Salimans et al., 2016)</td><td>-</td><td>95.13</td><td>80.48</td><td>1</td></tr><tr><td>CrossEnt(use all data)</td><td>98.82</td><td>96.74</td><td>90.31</td><td>46.72</td></tr><tr><td>CrossEnt(use lab.data only)</td><td>54.92</td><td>85.82</td><td>50.30</td><td>18.35</td></tr><tr><td>mod. VAT</td><td>89.92</td><td>92.59</td><td>75.43</td><td>34.76</td></tr><tr><td>FAT</td><td>96.32</td><td>95.21</td><td>75.96</td><td>35.52</td></tr></table>",
995
+ "bbox": [
996
+ 173,
997
+ 415,
998
+ 833,
999
+ 541
1000
+ ],
1001
+ "page_idx": 7
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "We use Adam algorithm (Kingma & Ba, 2014) to update the parameters and do not use any data augmentation techniques. The results are summarized in Table 1, which shows that $F A T$ achieves the state-of-the-art accuracy for SVHN dataset and competitive accuracies with the state-of-the-art method (i.e. Bad GAN) for MNIST and CIFAR10. ",
1006
+ "bbox": [
1007
+ 174,
1008
+ 594,
1009
+ 825,
1010
+ 660
1011
+ ],
1012
+ "page_idx": 7
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "We conduct another experiments where the numbers of labeled data are much smaller and consider a more complex dataset CIFAR100 (Krizhevsky & Hinton, 2009), whose results are summarized in Table 2. Note that FAT still dominates mod. VAT for the all datasets and the margins become larger. While $F A T$ achieves the state-of-the-art performances for MNIST and SVHN, its performance degrades much for CIFAR10 compared to the accuracy for the case of 4000 labeled data. Note that the quality of bad samples depends on the quality of the estimated classifier. For CIFAR10 which is relatively more complex than MNIST and SVHN, the quality of the estimated classifier is influenced much to the amount of labeled data and thus the accuracy of $F A T$ is more sensitive to the amount of labeled data. However, it is interesting to see that $F A T$ is superior to mod. VAT for CIFAR10 and CIFAR100, which suggests that bad samples are helpful for complex problems where the quality of bad samples might not be sufficiently good. ",
1017
+ "bbox": [
1018
+ 173,
1019
+ 669,
1020
+ 826,
1021
+ 851
1022
+ ],
1023
+ "page_idx": 7
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "The other advantage of $F A T$ is its stability with respect to learning phase. With small labeled data, the test accuracies of each epoch tends to fluctuate much for VAT and mod VAT, while $F A T$ provides much more stable results. See Figure 7 in Appendix. This may be partly because ’good’ bad samples keep the classifier from fluctuation. ",
1028
+ "bbox": [
1029
+ 174,
1030
+ 859,
1031
+ 825,
1032
+ 924
1033
+ ],
1034
+ "page_idx": 7
1035
+ },
1036
+ {
1037
+ "type": "table",
1038
+ "img_path": "images/4fd3fd7b471ec3e04986dccc3908deee8bba72d6cf1be341ad9431d34bd21188.jpg",
1039
+ "table_caption": [
1040
+ "Table 3: Test accuracies of MNIST for various values of $\\tau$ and $\\delta$ . The other two parameters on each case are fixed to the optimal values. "
1041
+ ],
1042
+ "table_footnote": [],
1043
+ "table_body": "<table><tr><td>T</td><td>0.001</td><td>0.01</td><td>0.1</td><td>0.2</td></tr><tr><td>Test acc.</td><td>98.65</td><td>98.89</td><td>98.77</td><td>98.71</td></tr></table>",
1044
+ "bbox": [
1045
+ 184,
1046
+ 135,
1047
+ 488,
1048
+ 172
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "table",
1054
+ "img_path": "images/67d00f74fdb29b8c0083063fcc0765204cd9156f7f9296a5e7266b606a6ec020.jpg",
1055
+ "table_caption": [],
1056
+ "table_footnote": [],
1057
+ "table_body": "<table><tr><td>8</td><td>1</td><td>2.</td><td>4.</td><td>6.</td></tr><tr><td>Test acc.</td><td>89.54</td><td>98.89</td><td>98.79</td><td>98.55</td></tr></table>",
1058
+ "bbox": [
1059
+ 504,
1060
+ 136,
1061
+ 808,
1062
+ 172
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "table",
1068
+ "img_path": "images/6cd8e5ef5f318d10810cdc2f6413c1841437c10b899076c52bb695d64fcdb453.jpg",
1069
+ "table_caption": [
1070
+ "Table 4: Test accuracies for diverse objective loss functions. "
1071
+ ],
1072
+ "table_footnote": [],
1073
+ "table_body": "<table><tr><td>Data Setting</td><td>MNIST</td><td>SVHN</td><td>CIFAR10</td></tr><tr><td>Ltrue +Lfake +LVAT</td><td>98.89</td><td>Test acc.(%) 95.94</td><td>85.15</td></tr><tr><td>Ltrue +Lfake</td><td>83.6</td><td>90.21</td><td>68.32</td></tr><tr><td>Lfake+ LVAT</td><td>98.77</td><td>95.71</td><td>85.31</td></tr></table>",
1074
+ "bbox": [
1075
+ 308,
1076
+ 215,
1077
+ 683,
1078
+ 303
1079
+ ],
1080
+ "page_idx": 8
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "6.2 EFFECTS OF TUNING PARAMETERS ",
1085
+ "text_level": 1,
1086
+ "bbox": [
1087
+ 176,
1088
+ 340,
1089
+ 454,
1090
+ 354
1091
+ ],
1092
+ "page_idx": 8
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "$F A T$ introduces two additional tuning parameters $\\tau$ and $\\delta$ compared to VAT, where $\\tau$ is used to determine whether a bad sample is ’good’ and $\\delta$ is the radius to generate bad samples. We investigate the sensitivities of prediction performances with respect to the changes of the values of $\\tau$ and $\\delta$ with $\\epsilon$ being fixed at 1.5 that is the optimal value. The results are reported in Table 3. Unless $\\tau$ is too small or too large, the prediction performances are not changed much. For $\\delta$ , care should be done. Too small $\\delta$ , smaller than \u000f, hampers the prediction performance much. Apparently, a similar value of $\\delta$ to that of $\\epsilon$ (i.e. $\\delta = 2$ ) gives the best result. ",
1097
+ "bbox": [
1098
+ 173,
1099
+ 372,
1100
+ 826,
1101
+ 487
1102
+ ],
1103
+ "page_idx": 8
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "6.3 OBJECTIVE FUNCTION ANALYSIS ",
1108
+ "text_level": 1,
1109
+ "bbox": [
1110
+ 176,
1111
+ 513,
1112
+ 442,
1113
+ 529
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "In this subsection, we analyze the effects of $L ^ { \\mathrm { t r u e } }$ and $L ^ { \\mathrm { V A T } }$ in this section. We do not consider the cross-entropy of the labeled data and $L ^ { \\mathrm { f a k e } }$ since they are necessary to reflect the idea utilizing bad data. Table 4 compares the performances without one or both of these terms. Note that $L ^ { \\mathrm { V A T } }$ is necessary for superior performances, which is because $L ^ { \\mathrm { V A T } }$ is indispensable to generate ‘good’ bad samples as explained in Section 5.1. On the other hand, the term $L ^ { \\mathrm { t r u e } }$ , which is devised to separate unlabeled data from bad samples, is not always helpful. A possible explanation is that sometimes the term $L ^ { \\mathrm { t r u e } }$ would give an undesirable effect on the misclassified data. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 544,
1123
+ 826,
1124
+ 660
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "6.4 COMPUTATIONAL EFFICIENCY ",
1131
+ "text_level": 1,
1132
+ "bbox": [
1133
+ 176,
1134
+ 688,
1135
+ 421,
1136
+ 702
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "We investigate the computational efficiency of our method in view of learning speed and computation time per training epoch. For Bad GAN, we did not use $P i x e l C N N { + + }$ on SVHN and CIFAR10 datasets since the pre-trained $P i x e l C N N { + + }$ models are not publicly available. Figure 4 draws the bar plots about the numbers of epochs needed to achieve the prespecified test accuracies. We can clearly see that $F A T$ requires much less epochs ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 718,
1146
+ 825,
1147
+ 800
1148
+ ],
1149
+ "page_idx": 8
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "We also calculate the ratios of the computing time of each semi-supervised learning algorithm over the computing time of the corresponding supervised learning algorithm for CIFAR10 dataset, whose results are summarized in Table 5. These ratios are almost same for different datasets. The computation time of $F A T$ is competitive to VAT and mod. VAT, and hence we can conclude that $F A T$ arrives at the prespecified performances much efficiently. Note that $P i x e l C N N { + + }$ is not used for this experiment, and so comparison of computing time of $F A T$ and Bad GAN with $P i x e l C N N + +$ is meaningless ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 809,
1157
+ 826,
1158
+ 924
1159
+ ],
1160
+ "page_idx": 8
1161
+ },
1162
+ {
1163
+ "type": "image",
1164
+ "img_path": "images/4a65d8b5b70ee0c028d73f8d35c14f7ed23be19f1820366a082249f31828e737.jpg",
1165
+ "image_caption": [
1166
+ "Figure 4: The number of epochs to achieve the prespecified test accuracies $9 8 \\%$ , $90 \\%$ and $80 \\%$ ) with the four methods for (Left) MNIST, (Middle) SVHN and (Right) CIFAR10 datasets. Bad $G A N$ is operated without $P i x e l C N N + +$ for SVHN and CIFAR10 datasets. "
1167
+ ],
1168
+ "image_footnote": [],
1169
+ "bbox": [
1170
+ 299,
1171
+ 109,
1172
+ 686,
1173
+ 195
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "table",
1179
+ "img_path": "images/246f5fd6a48311e754d0363bb771d0237defb225fc378aa8cf25dabd3ba44b6f.jpg",
1180
+ "table_caption": [
1181
+ "Table 5: Learning time per training epoch ratios compared to supervised learning with cross-entropy for CIFAR10. Bad GAN is operated without $P i x e l C N N + +$ . "
1182
+ ],
1183
+ "table_footnote": [],
1184
+ "table_body": "<table><tr><td>Method</td><td>VAT</td><td>mod. VAT</td><td>FAT</td><td>Bad GAN</td></tr><tr><td>Time ratio</td><td>1.37</td><td>1.62</td><td>2.09</td><td>3.20</td></tr></table>",
1185
+ "bbox": [
1186
+ 318,
1187
+ 306,
1188
+ 676,
1189
+ 342
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "6.5 QUALITY OF BAD SAMPLES GENERATED BY ADVERSARIAL TRAINING",
1196
+ "text_level": 1,
1197
+ "bbox": [
1198
+ 173,
1199
+ 386,
1200
+ 694,
1201
+ 400
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "We investigate how ‘good’ bad samples generated by the adversarial training are. The upper panel of Figure 5 shows the scatter plot of the synthetic data and the trace plot of prediction accuracies of $F A T$ and VAT. And the lower panel of Figure 5 draws the scatter plots with generated bad samples at various epochs. We can clearly see that bad samples move to lower density regions as the epoch increases, which amply demonstrates that the adversarial training is good at generating bad samples. We also compare bad images of the MNIST data generated by $F A T$ and Bad GAN in Figure 6. The bad images by $F A T$ do not look like real images and do not seem to be collapsed, which indicates that $F A T$ consistently generates diverse and good bad samples. Bad GAN also generates diverse bad samples but some ‘realistic’ images can be found. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 417,
1211
+ 826,
1212
+ 565
1213
+ ],
1214
+ "page_idx": 9
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "7 CONCLUSION ",
1219
+ "text_level": 1,
1220
+ "bbox": [
1221
+ 176,
1222
+ 601,
1223
+ 318,
1224
+ 617
1225
+ ],
1226
+ "page_idx": 9
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "In this paper, we propose a new method called FAT for semi-supervised learning which generates bad samples only with a given classifier. The objective function of $F A T$ is devised to compromise the advantages of Bad GAN and VAT together, which makes $F A T$ be faster and more accurate. In numerical experiments, we show that $F A T$ achieves almost the state-of-the-art performances with much fewer epochs. Unlike Bad GAN , $F A T$ only needs to learn a discriminator. Hence, it could be extended without much effort to other learning problems. For example, $F A T$ can be modified easily for recurrent neural networks and hence can be applied to sequential data. We will leave this extension as a future work. ",
1231
+ "bbox": [
1232
+ 173,
1233
+ 642,
1234
+ 826,
1235
+ 773
1236
+ ],
1237
+ "page_idx": 9
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "It would be useful to combine $F A T$ with a generative approach such as Bad GAN, in particular when the initial classifier is bad. Since FAT uses only a classifier to generate bad samples, the initial estimate of the classifier would be important. Using the generator model learned by large unlabeled data would be helpful to find a good initial estimate of the classifier. ",
1242
+ "bbox": [
1243
+ 174,
1244
+ 782,
1245
+ 825,
1246
+ 848
1247
+ ],
1248
+ "page_idx": 9
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "ACKNOWLEDGMENTS ",
1253
+ "text_level": 1,
1254
+ "bbox": [
1255
+ 176,
1256
+ 878,
1257
+ 326,
1258
+ 891
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "This work is supported by Samsung Electronics Co., Ltd. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 909,
1268
+ 549,
1269
+ 924
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "image",
1275
+ "img_path": "images/911fdbc2dd3e183753ca3d8c54938f735c0cd0ea5edd11ed47ada3b801239e24.jpg",
1276
+ "image_caption": [
1277
+ "Figure 5: (Upper Left) The scatter plot of synthetic data which consist of 1000 unlabeled data (gray) and 4 labeled data for each class (red and blue with black edge). (Upper Right) Accuracies of unlabeled data for each epochs for VAT and FAT. We use 2-layered NN with 100 hidden units each. (Lower) Bad samples and classified unlabeled data by colors at the different training epochs of FAT "
1278
+ ],
1279
+ "image_footnote": [],
1280
+ "bbox": [
1281
+ 263,
1282
+ 111,
1283
+ 730,
1284
+ 275
1285
+ ],
1286
+ "page_idx": 10
1287
+ },
1288
+ {
1289
+ "type": "image",
1290
+ "img_path": "images/518422245968365df9605efa288ca84be63a6bea1214a3f5fc3d22a49c2d6611.jpg",
1291
+ "image_caption": [
1292
+ "Figure 6: 100 randomly sampled bad images using (Left) FAT and (Right) Bad GAN. "
1293
+ ],
1294
+ "image_footnote": [],
1295
+ "bbox": [
1296
+ 320,
1297
+ 362,
1298
+ 673,
1299
+ 489
1300
+ ],
1301
+ "page_idx": 10
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "REFERENCES ",
1306
+ "text_level": 1,
1307
+ "bbox": [
1308
+ 174,
1309
+ 535,
1310
+ 287,
1311
+ 550
1312
+ ],
1313
+ "page_idx": 10
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Zihang Dai, Zhilin Yang, Fan Yang, William W Cohen, and Ruslan R Salakhutdinov. Good semisupervised learning that requires a bad gan. In Advances in Neural Information Processing Systems, pp. 6513–6523, 2017. ",
1318
+ "bbox": [
1319
+ 174,
1320
+ 561,
1321
+ 826,
1322
+ 609
1323
+ ],
1324
+ "page_idx": 10
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016. ",
1329
+ "bbox": [
1330
+ 171,
1331
+ 625,
1332
+ 825,
1333
+ 656
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014a. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 671,
1343
+ 826,
1344
+ 720
1345
+ ],
1346
+ "page_idx": 10
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 734,
1354
+ 825,
1355
+ 767
1356
+ ],
1357
+ "page_idx": 10
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005. ",
1362
+ "bbox": [
1363
+ 174,
1364
+ 781,
1365
+ 823,
1366
+ 814
1367
+ ],
1368
+ "page_idx": 10
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 828,
1376
+ 826,
1377
+ 877
1378
+ ],
1379
+ "page_idx": 10
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
1384
+ "bbox": [
1385
+ 176,
1386
+ 892,
1387
+ 823,
1388
+ 924
1389
+ ],
1390
+ "page_idx": 10
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1395
+ "bbox": [
1396
+ 171,
1397
+ 103,
1398
+ 825,
1399
+ 136
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Diederik $\\mathrm { \\bf P }$ Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1406
+ "bbox": [
1407
+ 171,
1408
+ 148,
1409
+ 823,
1410
+ 181
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in Neural Information Processing Systems, pp. 3581–3589, 2014. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 194,
1420
+ 826,
1421
+ 243
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
1428
+ "bbox": [
1429
+ 174,
1430
+ 256,
1431
+ 823,
1432
+ 290
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1439
+ "bbox": [
1440
+ 173,
1441
+ 301,
1442
+ 828,
1443
+ 351
1444
+ ],
1445
+ "page_idx": 11
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Abhishek Kumar, Prasanna Sattigeri, and Tom Fletcher. Semi-supervised learning with gans: manifold invariance with improved inference. In Advances in Neural Information Processing Systems, pp. 5534–5544, 2017. ",
1450
+ "bbox": [
1451
+ 174,
1452
+ 364,
1453
+ 826,
1454
+ 414
1455
+ ],
1456
+ "page_idx": 11
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1461
+ "bbox": [
1462
+ 169,
1463
+ 426,
1464
+ 825,
1465
+ 460
1466
+ ],
1467
+ "page_idx": 11
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Lars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 472,
1475
+ 823,
1476
+ 506
1477
+ ],
1478
+ "page_idx": 11
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Benjamin Marlin, Kevin Swersky, Bo Chen, and Nando Freitas. Inductive principles for restricted boltzmann machine learning. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 509–516, 2010. ",
1483
+ "bbox": [
1484
+ 173,
1485
+ 517,
1486
+ 825,
1487
+ 568
1488
+ ],
1489
+ "page_idx": 11
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. arXiv preprint arXiv:1507.00677, 2015. ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 580,
1497
+ 825,
1498
+ 613
1499
+ ],
1500
+ "page_idx": 11
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. arXiv preprint arXiv:1704.03976, 2017. ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 626,
1508
+ 828,
1509
+ 675
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semi-supervised learning with ladder networks. In Advances in Neural Information Processing Systems, pp. 3546– 3554, 2015. ",
1516
+ "bbox": [
1517
+ 173,
1518
+ 688,
1519
+ 826,
1520
+ 737
1521
+ ],
1522
+ "page_idx": 11
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016. ",
1527
+ "bbox": [
1528
+ 173,
1529
+ 750,
1530
+ 828,
1531
+ 800
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017. ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 813,
1541
+ 825,
1542
+ 862
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–9, 2015. ",
1549
+ "bbox": [
1550
+ 173,
1551
+ 875,
1552
+ 826,
1553
+ 925
1554
+ ],
1555
+ "page_idx": 11
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26–31, 2012. ",
1560
+ "bbox": [
1561
+ 174,
1562
+ 103,
1563
+ 826,
1564
+ 151
1565
+ ],
1566
+ "page_idx": 12
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "Jason Weston, Frédéric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semisupervised embedding. In Neural Networks: Tricks of the Trade, pp. 639–655. Springer, 2012. ",
1571
+ "bbox": [
1572
+ 173,
1573
+ 162,
1574
+ 826,
1575
+ 195
1576
+ ],
1577
+ "page_idx": 12
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "A APPENDIX ",
1582
+ "text_level": 1,
1583
+ "bbox": [
1584
+ 176,
1585
+ 102,
1586
+ 299,
1587
+ 118
1588
+ ],
1589
+ "page_idx": 13
1590
+ },
1591
+ {
1592
+ "type": "text",
1593
+ "text": "A.1 PROOF OF PROPOSITION 1 ",
1594
+ "text_level": 1,
1595
+ "bbox": [
1596
+ 176,
1597
+ 135,
1598
+ 400,
1599
+ 151
1600
+ ],
1601
+ "page_idx": 13
1602
+ },
1603
+ {
1604
+ "type": "text",
1605
+ "text": "Without loss of generality, we assume that $w ^ { ' } x + b > 0$ , that is, $p ( y = 1 | x ; \\eta ) > p ( y = 0 | x ; \\eta )$ . We will show that there exists $\\epsilon > 0$ such that $w ^ { ' } r ^ { * } ( x , \\epsilon ) < 0$ . Note that ",
1606
+ "bbox": [
1607
+ 173,
1608
+ 162,
1609
+ 825,
1610
+ 196
1611
+ ],
1612
+ "page_idx": 13
1613
+ },
1614
+ {
1615
+ "type": "equation",
1616
+ "img_path": "images/7f05e98022100f44cc30539ba0eb3a98feac8311fc2c519e9aa35bd3c8b3013d.jpg",
1617
+ "text": "$$\n\\begin{array} { r l r } { { \\operatorname * { a r g m a x } _ { \\begin{array} { l } { r , | | x | | \\leq \\epsilon , w ^ { \\prime } r > 0 } \\\\ { \\operatorname * { a r g m a x } _ { \\begin{array} { l } { K L ( x , r ; \\eta ) = - \\epsilon } \\\\ { r , | | w | | \\leq \\epsilon , w ^ { \\prime } r < 0 } \\end{array} } } \\textstyle K L ( x , r ; \\eta ) = \\epsilon \\frac { w } { | | w | | } ( = : r _ { 1 } ^ { * } ) \\quad \\mathrm { a n d } } } \\end{array} } \\\\ & { } & \\operatorname * { a r g m a x } _ { \\begin{array} { l } { K L ( x , r ; \\eta ) = - \\epsilon \\frac { w } { | | w | | } ( = : r _ { 2 } ^ { * } ) . } \\end{array} } \\end{array}\n$$",
1618
+ "text_format": "latex",
1619
+ "bbox": [
1620
+ 351,
1621
+ 203,
1622
+ 678,
1623
+ 273
1624
+ ],
1625
+ "page_idx": 13
1626
+ },
1627
+ {
1628
+ "type": "text",
1629
+ "text": "So all we have to do is to show ",
1630
+ "bbox": [
1631
+ 173,
1632
+ 280,
1633
+ 379,
1634
+ 294
1635
+ ],
1636
+ "page_idx": 13
1637
+ },
1638
+ {
1639
+ "type": "equation",
1640
+ "img_path": "images/3eebb2576ac6206282cb1146e8cc03f05ee2c3293a0316544f5aa3e6927116d8.jpg",
1641
+ "text": "$$\nK L ( x , r _ { 2 } ^ { * } ; \\eta ) > K L ( x , r _ { 1 } ^ { * } ; \\eta ) .\n$$",
1642
+ "text_format": "latex",
1643
+ "bbox": [
1644
+ 397,
1645
+ 304,
1646
+ 599,
1647
+ 321
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "text",
1653
+ "text": "By simple calculation we can get the following: ",
1654
+ "bbox": [
1655
+ 173,
1656
+ 330,
1657
+ 488,
1658
+ 347
1659
+ ],
1660
+ "page_idx": 13
1661
+ },
1662
+ {
1663
+ "type": "equation",
1664
+ "img_path": "images/8f6fed3b8017eef33c4bd8218d302b752642e23952c6faa9a54762bbefb94588.jpg",
1665
+ "text": "$$\n\\small \\begin{array} { r } { \\nabla L ( x , r _ { 2 } ^ { * } ; \\eta ) - K L ( x , r _ { 1 } ^ { * } ; \\eta ) = - \\left[ p ( y = 1 | x ; \\theta ) w ^ { ' } ( r _ { 2 } ^ { * } - r _ { 1 } ^ { * } ) - \\log \\frac { \\exp \\big ( w ^ { ' } ( x + r _ { 2 } ^ { * } ) + b \\big ) + 1 } { \\exp ( w ^ { ' } ( x + r _ { 1 } ^ { * } ) + b ) + 1 } \\right] . } \\end{array}\n$$",
1666
+ "text_format": "latex",
1667
+ "bbox": [
1668
+ 181,
1669
+ 352,
1670
+ 826,
1671
+ 404
1672
+ ],
1673
+ "page_idx": 13
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "Using the Taylor’s expansion up to the third-order, we obtain the following: ",
1678
+ "bbox": [
1679
+ 173,
1680
+ 409,
1681
+ 669,
1682
+ 425
1683
+ ],
1684
+ "page_idx": 13
1685
+ },
1686
+ {
1687
+ "type": "equation",
1688
+ "img_path": "images/4892bbf8d7badf9d5ae4af166ca02eb7a06d688c8306caa4916533becdaea177.jpg",
1689
+ "text": "$$\n\\begin{array} { r c l } { \\log \\Big [ \\exp \\Big ( w ^ { ' } ( x + r ) + b \\Big ) + 1 \\Big ] } & { = } & { \\log \\Big [ \\exp \\Big ( w ^ { ' } x + b \\Big ) + 1 \\Big ] + p ( y = 1 | x ; \\eta ) w ^ { ' } r } \\\\ & & { } & { + \\displaystyle \\frac { 1 } { 2 } p ( y = 1 | x ; \\eta ) p ( y = 0 | x ; \\eta ) r ^ { ' } w w ^ { ' } r } \\\\ & & { } & { - \\displaystyle \\frac { 1 } { 6 } p ( y = 1 | x ; \\eta ) p ( y = 0 | x ; \\eta ) \\left\\{ p ( y = 1 | x ; \\eta ) - p ( y = 0 | x ; \\eta ) \\right. } \\\\ & & { } & { \\left. + o ( | | r | | ^ { 3 } ) . \\right. } \\end{array}\n$$",
1690
+ "text_format": "latex",
1691
+ "bbox": [
1692
+ 181,
1693
+ 429,
1694
+ 839,
1695
+ 555
1696
+ ],
1697
+ "page_idx": 13
1698
+ },
1699
+ {
1700
+ "type": "text",
1701
+ "text": "So, ",
1702
+ "bbox": [
1703
+ 173,
1704
+ 563,
1705
+ 199,
1706
+ 575
1707
+ ],
1708
+ "page_idx": 13
1709
+ },
1710
+ {
1711
+ "type": "equation",
1712
+ "img_path": "images/aaea2bfd3be8d32bf0c87416dde9c038e4b17ac76ab01c7f581bcf3e28faa439.jpg",
1713
+ "text": "$$\n\\begin{array} { r c l } { \\frac { \\ d s ^ { \\prime } ( x + r _ { 2 } ^ { \\ast } ) + \\ d b \\Big ) + 1 } { \\ d y ^ { \\prime } ( x + r _ { 1 } ^ { \\ast } ) + \\ d b ) + 1 } } & { = } & { p ( y = 1 | x ; \\eta ) w ^ { ' } ( r _ { 2 } ^ { \\ast } - r _ { 1 } ^ { \\ast } ) } \\\\ & & { + \\frac { 1 } { 3 } p ( y = 1 | x ; \\eta ) p ( y = 0 | x ; \\eta ) \\left\\{ p ( y = 1 | x ; \\eta ) - p ( y = 0 | x ; \\eta ) \\right\\} \\epsilon ^ { 3 } | | w | | ^ { 3 } . } \\end{array}\n$$",
1714
+ "text_format": "latex",
1715
+ "bbox": [
1716
+ 246,
1717
+ 583,
1718
+ 905,
1719
+ 659
1720
+ ],
1721
+ "page_idx": 13
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "text": "Thus, we have the following equations: ",
1726
+ "bbox": [
1727
+ 173,
1728
+ 662,
1729
+ 431,
1730
+ 678
1731
+ ],
1732
+ "page_idx": 13
1733
+ },
1734
+ {
1735
+ "type": "equation",
1736
+ "img_path": "images/1812823b8e9f2e69509e9490d5b8449ce8b6955f353d2803a7e59aac2b0b5122.jpg",
1737
+ "text": "$$\n\\begin{array} { r c l } { \\check { \\operatorname { \\tiny { C } } } L ( x , r _ { 2 } ^ { * } ; \\eta ) - K L ( x , r _ { 1 } ^ { * } ; \\eta ) } & { = } & { \\frac { 1 } { 3 } p ( y = 1 | x ; \\eta ) p ( y = 0 | x ; \\eta ) \\left\\{ p ( y = 1 | x ; \\eta ) - p ( y = 0 | x ; \\eta ) \\right\\} \\epsilon ^ { 3 } } \\\\ & & { = } & { C \\cdot \\epsilon ^ { 3 } + o ( \\epsilon ^ { 3 } ) . } \\end{array}\n$$",
1738
+ "text_format": "latex",
1739
+ "bbox": [
1740
+ 181,
1741
+ 683,
1742
+ 839,
1743
+ 734
1744
+ ],
1745
+ "page_idx": 13
1746
+ },
1747
+ {
1748
+ "type": "text",
1749
+ "text": "Therefore, there exists $\\epsilon ^ { * } > 0$ such that $K L ( x , r _ { 2 } ^ { * } ; \\eta ) > K L ( x , r _ { 1 } ^ { * } ; \\eta )$ for $\\forall 0 < \\epsilon < \\epsilon ^ { * }$ . \u0003 ",
1750
+ "bbox": [
1751
+ 169,
1752
+ 741,
1753
+ 769,
1754
+ 758
1755
+ ],
1756
+ "page_idx": 13
1757
+ },
1758
+ {
1759
+ "type": "text",
1760
+ "text": "A.2 EXTENSION OF PROPOSITION 1 FOR THE DNN CLASSIFIER ",
1761
+ "text_level": 1,
1762
+ "bbox": [
1763
+ 173,
1764
+ 789,
1765
+ 625,
1766
+ 806
1767
+ ],
1768
+ "page_idx": 13
1769
+ },
1770
+ {
1771
+ "type": "text",
1772
+ "text": "Consider a binary classification DNN model with ReLU activation function $p ( y = 1 | x ; \\theta ) ~ =$ $( 1 + \\exp ( - g ( x ; \\theta ) ) ) ^ { - 1 }$ parameterized by $\\theta$ . Since $g ( x ; \\theta )$ is piecewise linear, we can write $g ( \\cdot ; \\theta )$ as ",
1773
+ "bbox": [
1774
+ 173,
1775
+ 818,
1776
+ 826,
1777
+ 852
1778
+ ],
1779
+ "page_idx": 13
1780
+ },
1781
+ {
1782
+ "type": "equation",
1783
+ "img_path": "images/2c16b2a23606e087a451081e9b3b02543f18ace44450042d8e1e56c6c8495869.jpg",
1784
+ "text": "$$\ng ( \\cdot ; \\theta ) = \\sum _ { j = 1 } ^ { N } \\mathbb { I } ( \\cdot \\in \\mathcal { A } _ { j } ) \\cdot ( w _ { j } x + b _ { j } ) ,\n$$",
1785
+ "text_format": "latex",
1786
+ "bbox": [
1787
+ 357,
1788
+ 858,
1789
+ 604,
1790
+ 902
1791
+ ],
1792
+ "page_idx": 13
1793
+ },
1794
+ {
1795
+ "type": "text",
1796
+ "text": "where $A _ { j }$ is a linear region and $N$ is the number of linear regions. ",
1797
+ "bbox": [
1798
+ 171,
1799
+ 909,
1800
+ 606,
1801
+ 925
1802
+ ],
1803
+ "page_idx": 13
1804
+ },
1805
+ {
1806
+ "type": "text",
1807
+ "text": "For given $x$ , suppose $g ( x ; \\theta ) > 0$ . If $g ( x : \\theta )$ is estimated reasonably, we expect that $g ( x ; \\theta )$ is decreasing if $x$ moves toward the decision boundary. A formal statement of this expectation would be that $x - r \\nabla _ { x } g ( x ; \\theta )$ can arrive at the decision boundary for a finite value of $r > 0$ , where $\\nabla _ { x }$ is the gradient with respect to $x$ . Of course, for $x$ with $g ( x ; \\theta ) < 0$ , we expect that $x + r \\nabla _ { x } g ( x ; \\theta )$ can arrive at the decision boundary for a finite value of $r > 0$ . We say that $x$ is normal if there is $r > 0$ such that $x - r \\nabla _ { x } g ( x : \\theta ) \\mathrm { s i g n } \\{ g ( x : \\theta ) \\}$ locates at the decision boundary. We say that a linear region $A _ { j }$ is normal if all $x$ in $A _ { j }$ are normal. We expect that most of $A _ { j }$ are normal if $g ( x ; \\theta )$ is reasonably estimated so that the probability decreases or increases depending on $\\operatorname { s i g n } \\{ g ( x : \\theta ) \\}$ if $x$ is getting closer to the decision boundary. ",
1808
+ "bbox": [
1809
+ 173,
1810
+ 102,
1811
+ 826,
1812
+ 252
1813
+ ],
1814
+ "page_idx": 14
1815
+ },
1816
+ {
1817
+ "type": "text",
1818
+ "text": "The following proposition proves that the adversarial direction is toward the decision boundary for all xs in normal linear regions. ",
1819
+ "bbox": [
1820
+ 173,
1821
+ 260,
1822
+ 823,
1823
+ 292
1824
+ ],
1825
+ "page_idx": 14
1826
+ },
1827
+ {
1828
+ "type": "text",
1829
+ "text": "Proposition 3 If a linear region $A _ { j }$ is normal. Then for any $x \\in i n t ( \\mathcal { A } _ { j } )$ , there exists $\\epsilon > 0$ and $\\delta > 0$ such that $x _ { b a d } = x + \\delta r _ { a d \\nu r } ( x , \\epsilon ) / | | r _ { a d \\nu r } ( x , \\epsilon ) | |$ is on the decision boundary. ",
1830
+ "bbox": [
1831
+ 171,
1832
+ 306,
1833
+ 823,
1834
+ 340
1835
+ ],
1836
+ "page_idx": 14
1837
+ },
1838
+ {
1839
+ "type": "text",
1840
+ "text": "Proof. Take $\\tilde { \\epsilon } > 0$ such that $\\boldsymbol { x } + \\boldsymbol { r } \\in \\mathcal { A } _ { \\tilde { \\boldsymbol { j } } }$ for $\\forall r \\in B ( x , \\tilde { \\epsilon } )$ . Then by Proposition 1, there exists $0 < \\epsilon ^ { * } < \\tilde { \\epsilon }$ such that for $\\forall 0 < \\epsilon < \\epsilon ^ { * }$ , ",
1841
+ "bbox": [
1842
+ 173,
1843
+ 347,
1844
+ 821,
1845
+ 380
1846
+ ],
1847
+ "page_idx": 14
1848
+ },
1849
+ {
1850
+ "type": "equation",
1851
+ "img_path": "images/f341ce4cdce3b4970402ec976dcd9b809385e60556d9c4b00fb4a4e61aaa497c.jpg",
1852
+ "text": "$$\n\\begin{array} { r c l } { r _ { \\mathrm { a d v r } } ( \\boldsymbol { x } , \\epsilon ) } & { = } & { \\epsilon \\cdot \\mathrm { s i g n } ( - b _ { \\tilde { j } } - w _ { \\tilde { j } } ^ { ' } x ) ) \\cdot \\frac { w _ { \\tilde { j } } } { | | w _ { \\tilde { j } } | | } } \\\\ & { \\propto } & { - \\nabla _ { x } g ( x ; \\theta ) \\mathrm { s i g n } \\{ g ( x : \\theta ) \\} . } \\end{array}\n$$",
1853
+ "text_format": "latex",
1854
+ "bbox": [
1855
+ 344,
1856
+ 385,
1857
+ 651,
1858
+ 439
1859
+ ],
1860
+ "page_idx": 14
1861
+ },
1862
+ {
1863
+ "type": "text",
1864
+ "text": "$x$ is normal, thus there exists $\\delta > 0$ such that $x _ { \\mathrm { b a d } } = x + \\delta r _ { \\mathrm { a d v r } } ( x , \\epsilon ) / | | r _ { \\mathrm { a d v r } } ( x , \\epsilon ) | |$ belongs to the decision boundary. \u0003 ",
1865
+ "bbox": [
1866
+ 173,
1867
+ 445,
1868
+ 825,
1869
+ 478
1870
+ ],
1871
+ "page_idx": 14
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "text": "A.3 PROOF OF PROPOSITION 2 ",
1876
+ "text_level": 1,
1877
+ "bbox": [
1878
+ 176,
1879
+ 510,
1880
+ 401,
1881
+ 525
1882
+ ],
1883
+ "page_idx": 14
1884
+ },
1885
+ {
1886
+ "type": "text",
1887
+ "text": "It suffices to show that $\\forall x , x ^ { ' } \\in \\mathcal { U } _ { k } ^ { t r } , f ( x ) = f ( x ^ { ' } )$ for all $k = 1 , . . . , K$ . For given $\\mathcal { U } _ { k } ^ { t r }$ , there exists $( \\tilde { x } , \\tilde { y } ) \\in \\mathcal { L } ^ { t r }$ such that $d ( \\{ \\tilde { x } \\} , \\mathcal { U } _ { k } ^ { t r } ) < \\epsilon$ . So ${ \\mathcal { U } } _ { k } ^ { t r } \\cup \\{ { \\tilde { x } } \\}$ is $\\epsilon$ -connected. That is, for any $x \\in \\mathcal { U } _ { k } ^ { t r }$ , there exists a path $( \\tilde { x } , x _ { 1 } , . . . , x _ { q } , x )$ such that $( \\tilde { x } , x _ { 1 } ) , . . . , ( x _ { q } , x )$ are all $\\epsilon$ -connected. Therefore $y ( x ) = y ( \\tilde { x } ) = \\tilde { y }$ for $\\forall x \\in \\mathcal { U } _ { k } ^ { t r }$ , and the proof is done. \u0003 ",
1888
+ "bbox": [
1889
+ 173,
1890
+ 536,
1891
+ 826,
1892
+ 606
1893
+ ],
1894
+ "page_idx": 14
1895
+ },
1896
+ {
1897
+ "type": "text",
1898
+ "text": "A.4 FIGURE ",
1899
+ "bbox": [
1900
+ 174,
1901
+ 103,
1902
+ 272,
1903
+ 117
1904
+ ],
1905
+ "page_idx": 15
1906
+ },
1907
+ {
1908
+ "type": "image",
1909
+ "img_path": "images/6ce452a1c9709c09910e96f7d3597906a34147eb69b85bfd3aa25020a9ebafd2.jpg",
1910
+ "image_caption": [
1911
+ "Figure 7: Trace plot of the test accuracies with the four methods for MNIST dataset. 20 randomly sampled data are used as the labeled data and the rest are used as the unlabeled data. "
1912
+ ],
1913
+ "image_footnote": [],
1914
+ "bbox": [
1915
+ 341,
1916
+ 159,
1917
+ 632,
1918
+ 376
1919
+ ],
1920
+ "page_idx": 15
1921
+ }
1922
+ ]
parse/train/H1fsUiRcKQ/H1fsUiRcKQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1fsUiRcKQ/H1fsUiRcKQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxCxhRcY7/HyxCxhRcY7.md ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEP ANOMALY DETECTION WITH OUTLIER EXPOSURE
2
+
3
+ Dan Hendrycks University of California, Berkeley hendrycks@berkeley.edu
4
+
5
+ Mantas Mazeika University of Chicago mantas@ttic.edu
6
+
7
+ Thomas Dietterich Oregon State University tgd@oregonstate.edu
8
+
9
+ # ABSTRACT
10
+
11
+ It is important to detect anomalous inputs when deploying machine learning systems. The use of larger and more complex inputs in deep learning magnifies the difficulty of distinguishing between anomalous and in-distribution examples. At the same time, diverse image and text data are available in enormous quantities. We propose leveraging these data to improve deep anomaly detection by training anomaly detectors against an auxiliary dataset of outliers, an approach we call Outlier Exposure (OE). This enables anomaly detectors to generalize and detect unseen anomalies. In extensive experiments on natural language processing and small- and large-scale vision tasks, we find that Outlier Exposure significantly improves detection performance. We also observe that cutting-edge generative models trained on CIFAR-10 may assign higher likelihoods to SVHN images than to CIFAR-10 images; we use OE to mitigate this issue. We also analyze the flexibility and robustness of Outlier Exposure, and identify characteristics of the auxiliary dataset that improve performance.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Machine Learning systems in deployment often encounter data that is unlike the model’s training data. This can occur in discovering novel astronomical phenomena, finding unknown diseases, or detecting sensor failure. In these situations, models that can detect anomalies (Liu et al., 2018; Emmott et al., 2013) are capable of correctly flagging unusual examples for human intervention, or carefully proceeding with a more conservative fallback policy.
16
+
17
+ Behind many machine learning systems are deep learning models (Krizhevsky et al., 2012) which can provide high performance in a variety of applications, so long as the data seen at test time is similar to the training data. However, when there is a distribution mismatch, deep neural network classifiers tend to give high confidence predictions on anomalous test examples (Nguyen et al., 2015). This can invalidate the use of prediction probabilities as calibrated confidence estimates (Guo et al., 2017), and makes detecting anomalous examples doubly important.
18
+
19
+ Several previous works seek to address these problems by giving deep neural network classifiers a means of assigning anomaly scores to inputs. These scores can then be used for detecting outof-distribution (OOD) examples (Hendrycks & Gimpel, 2017; Lee et al., 2018; Liu et al., 2018). These approaches have been demonstrated to work surprisingly well for complex input spaces, such as images, text, and speech. Moreover, they do not require modeling the full data distribution, but instead can use heuristics for detecting unmodeled phenomena. Several of these methods detect unmodeled phenomena by using representations from only in-distribution data.
20
+
21
+ In this paper, we investigate a complementary method where we train models to detect unmodeled data by learning cues for whether an input is unmodeled. While it is difficult to model the full data distribution, we can learn effective heuristics for detecting out-of-distribution inputs by exposing the model to OOD examples, thus learning a more conservative concept of the inliers and enabling the detection of novel forms of anomalies. We propose leveraging diverse, realistic datasets for this purpose, with a method we call Outlier Exposure (OE). OE provides a simple and effective way to consistently improve existing methods for OOD detection.
22
+
23
+ Through numerous experiments, we extensively evaluate the broad applicability of Outlier Exposure. For multiclass neural networks, we provide thorough results on Computer Vision and Natural
24
+
25
+ Language Processing tasks which show that Outlier Exposure can help anomaly detectors generalize to and perform well on unseen distributions of outliers, even on large-scale images. We also demonstrate that Outlier Exposure provides gains over several existing approaches to out-of-distribution detection. Our results also show the flexibility of Outlier Exposure, as we can train various models with different sources of outlier distributions. Additionally, we establish that Outlier Exposure can make density estimates of OOD samples significantly more useful for OOD detection. Finally, we demonstrate that Outlier Exposure improves the calibration of neural network classifiers in the realistic setting where a fraction of the data is OOD. Our code is made publicly available at https://github.com/hendrycks/outlier-exposure.
26
+
27
+ # 2 RELATED WORK
28
+
29
+ Out-of-Distribution Detection with Deep Networks. Hendrycks & Gimpel (2017) demonstrate that a deep, pre-trained classifier has a lower maximum softmax probability on anomalous examples than in-distribution examples, so a classifier can conveniently double as a consistently useful outof-distribution detector. Building on this work, DeVries & Taylor (2018) attach an auxiliary branch onto a pre-trained classifier and derive a new OOD score from this branch. Liang et al. (2018) present a method which can improve performance of OOD detectors that use a softmax distribution. In particular, they make the maximum softmax probability more discriminative between anomalies and in-distribution examples by pre-processing input data with adversarial perturbations (Goodfellow et al., 2015). Unlike in our work, their parameters are tailored to each source of anomalies.
30
+
31
+ Lee et al. (2018) train a classifier concurrently with a GAN (Radford et al., 2016; Goodfellow et al., 2014), and the classifier is trained to have lower confidence on GAN samples. For each testing distribution of anomalies, they tune the classifier and GAN using samples from that out-distribution, as discussed in Appendix B of their work. Unlike Liang et al. (2018); Lee et al. (2018), in this work we train our method without tuning parameters to fit specific types of anomaly test distributions, so our results are not directly comparable with their results. Many other works (de Vries et al., 2016; Subramanya et al., 2017; Malinin & Gales, 2018; Bevandic et al., 2018) also encourage the model to have lower confidence on anomalous examples. Recently, Liu et al. (2018) provide theoretical guarantees for detecting out-of-distribution examples under the assumption that a suitably powerful anomaly detector is available.
32
+
33
+ Utilizing Auxiliary Datasets. Outlier Exposure uses an auxiliary dataset entirely disjoint from test-time data in order to teach the network better representations for anomaly detection. Goodfellow et al. (2015) train on adversarial examples to increased robustness. Salakhutdinov et al. (2011) pre-train unsupervised deep models on a database of web images for stronger features. Radford et al. (2017) train an unsupervised network on a corpus of Amazon reviews for a month in order to obtain quality sentiment representations. Zeiler & Fergus (2014) find that pre-training a network on the large ImageNet database (Russakovsky et al., 2015) endows the network with general representations that are useful in many fine-tuning applications. Chen & Gupta (2015); Mahajan et al. (2018) show that representations learned from images scraped from the nigh unlimited source of search engines and photo-sharing websites improve object detection performance.
34
+
35
+ # 3 OUTLIER EXPOSURE
36
+
37
+ We consider the task of deciding whether or not a sample is from a learned distribution called $\mathcal { D } _ { \mathrm { i n } }$ . Samples from $\mathcal { D } _ { \mathrm { i n } }$ are called “in-distribution,” and otherwise are said to be “out-of-distribution” (OOD) or samples from $\mathcal { D } _ { \mathrm { o u t } }$ . In real applications, it may be difficult to know the distribution of outliers one will encounter in advance. Thus, we consider the realistic setting where $\mathcal { D } _ { \mathrm { o u t } }$ is unknfrom Given a parametrized OOD detector and an Outlier Exposure (OE) dataset , we train the model to discover signals and learn heuristics to detect whet $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ , disjoint query is $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ out sampled from $\mathcal { D } _ { \mathrm { i n } }$ or $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ . We find that these heuristics generalize to unseen distributions $\mathcal { D } _ { \mathrm { o u t } }$ .
38
+
39
+ Deep parametrized anomaly detectors typically leverage learned representations from an auxiliary task, such as classification or density estimation. Given a model $f$ and the original learning objective $\mathcal { L }$ , we can thus formalize Outlier Exposure as minimizing the objective
40
+
41
+ $$
42
+ \begin{array} { r } { \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { \mathrm { i n } } } [ \mathcal { L } ( f ( x ) , y ) + \lambda \mathbb { E } _ { x ^ { \prime } \sim \mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o g } } } [ \mathcal { L } _ { \mathrm { O E } } ( f ( x ^ { \prime } ) , f ( x ) , y ) ] ] } \end{array}
43
+ $$
44
+
45
+ over the parameters of $f$ . In cases where labeled data is not available, then $y$ can be ignored.
46
+
47
+ Outlier Exposure can be applied with many types of data and original tasks. Hence, the specific formulation of $\mathcal { L } _ { \mathrm { O E } }$ is a design choice, and depends on the task at hand and the OOD detector used. For example, when using the maximum softmax probability baseline detector (Hendrycks & Gimpel, 2017), we set $\mathcal { L } _ { \mathrm { O E } }$ to the cross-entropy from $f ( x ^ { \prime } )$ to the uniform distribution (Lee et al., 2018). When the original objective $\mathcal { L }$ is density estimation and labels are not available, we set $\mathcal { L } _ { \mathrm { O E } }$ to a margin ranking loss on the log probabilities $f ( x ^ { \prime } )$ and $f ( x )$ .
48
+
49
+ # 4 EXPERIMENTS
50
+
51
+ We evaluate OOD detectors with and without OE on a wide range of datasets. Each evaluation consists of an in-distribution dataset $\mathcal { D } _ { \mathrm { i n } }$ used to train an initial model, a dataset of anomalous examples $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ , and a baseline detector to which we apply OE. We describe the datasets in Section 4.2. The OOD detectors and $\mathcal { L } _ { \mathrm { O E } }$ losses are described on a case-by-case basis.
52
+
53
+ In the first experiment, we show that OE can help detectors generalize to new text and image anomalies. This is all accomplished without assuming access to the test distribution during training or tuning, unlike much previous work. In the confidence branch experiment, we show that OE is flexible and complements a binary anomaly detector. Then we demonstrate that using synthetic outliers does not work as well as using real and diverse data; previously it was assumed that we need synthetic data or carefully selected close-to-distribution data, but real and diverse data is enough. We conclude with experiments in density estimation. In these experiments we find that a cutting-edge density estimator unexpectedly assigns higher density to out-of-distribution samples than in-distribution samples, and we ameliorate this surprising behavior with Outlier Exposure.
54
+
55
+ # 4.1 EVALUATING OUT-OF-DISTRIBUTION DETECTION METHODS
56
+
57
+ We evaluate out-of-distribution detection methods on their ability to detect OOD points. For this purpose, we treat the OOD examples as the positive class, and we evaluate three metrics: area under the receiver operating characteristic curve (AUROC), area under the precision-recall curve (AUPR), and the false positive rate at $\bar { N } \%$ true positive rate (FPRN ). The AUROC and AUPR are holistic metrics that summarize the performance of a detection method across multiple thresholds. The AUROC can be thought of as the probability that an anomalous example is given a higher OOD score than a in-distribution example (Davis & Goadrich, 2006). Thus, a higher AUROC is better, and an uninformative detector has an AUROC of $50 \%$ . The AUPR is useful when anomalous examples are infrequent (Manning & Schutze ¨ , 1999), as it takes the base rate of anomalies into account. During evaluation with these metrics, the base rate of $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ to $\mathcal { D } _ { \mathrm { i n } } ^ { \mathrm { t e s t } }$ test examples in all of our experiments is 1:5.
58
+
59
+ ![](images/bc2c3631c797b8ae268766079308e56af29735697fd2d8b21ca900edd4b8ea1e.jpg)
60
+ Figure 1: ROC curve with Tiny ImageNet $( \mathcal { D } _ { \mathrm { i n } } )$ and Textures $( \mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } } )$ .
61
+
62
+ Whereas the previous two metrics represent the detection performance across various thresholds, the FPRN metric represents performance at one strict threshold. By observing performance at a strict threshold, we can make clear comparisons among strong detectors. The FPRN metric (Liu et al., 2018; Kumar et al., 2016; Balntas et al., 2016) is the probability that an in-distribution example (negative) raises a false alarm when $N \%$ of anomalous examples (positive) are detected, so a lower FPR $N$ is better. Capturing nearly all anomalies with few false alarms can be of high practical value.
63
+
64
+ # 4.2 DATASETS
65
+
66
+ # 4.2.1 IN-DISTRIBUTION DATASETS
67
+
68
+ SVHN. The SVHN dataset (Netzer et al., 2011) contains $3 2 \times 3 2$ color images of house numbers. There are ten classes comprised of the digits 0-9. The training set has 604, 388 images, and the test set has 26, 032 images. For preprocessing, we rescale the pixels to be in the interval $[ 0 , 1 ]$ .
69
+
70
+ CIFAR. The two CIFAR (Krizhevsky & Hinton, 2009) datasets contain $3 2 \times 3 \bar { 2 }$ natural color images. CIFAR-10 has ten classes while CIFAR-100 has 100. CIFAR-10 and CIFAR-100 classes are disjoint but have similiarities. For example, CIFAR-10 has “automobiles” and “trucks” but not CIFAR-100’s “pickup truck” class. Both have 50, 000 training images and 10, 000 test images. For this and the remaining image datasets, each image is standardized channel-wise.
71
+
72
+ Tiny ImageNet. The Tiny ImageNet dataset (Johnson et al.) is a 200-class subset of the ImageNet (Russakovsky et al., 2015) dataset where images are resized and cropped to $6 4 \times 6 4$ resolution. The dataset’s images were cropped using bounding box information so that cropped images contain the target, unlike Downsampled ImageNet (Chrabaszcz et al., 2017). The training set has 100, 000 images and the test set has 10, 000 images.
73
+
74
+ Places365. The Places365 training dataset (Zhou et al., 2017) consists in 1, 803, 460 large-scale photographs of scenes. Each photograph belongs to one of 365 classes.
75
+
76
+ 20 Newsgroups. 20 Newsgroups is a text classification dataset of newsgroup documents with 20 classes and approximately 20, 000 examples split evenly among the classes. We use the standard 60/40 train/test split.
77
+
78
+ TREC. TREC is a question classification dataset with 50 fine-grained classes and 5, 952 individual questions. We reserve 500 examples for the test set, and use the rest for training.
79
+
80
+ SST. The Stanford Sentiment Treebank dataset (Socher et al., 2013) consists of movie reviews expressing positive or negative sentiment. SST has 8, 544 reviews for training and 2, 210 for testing.
81
+
82
+ # 4.2.2 OUTLIER EXPOSURE DATASETS
83
+
84
+ 80 Million Tiny Images. 80 Million Tiny Images (Torralba et al., 2008) is a large-scale, diverse dataset ofwith SVH $3 2 \times 3 2$ natural images scrapped fAR-10, and CIFAR-100 as the web. We use this dataset as. We remove all examples of 80 $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ for experimentsion Tiny Images in which appear in the CIFAR datasets, so that DOEout and Dtestout are disjoint. In Section 5 we note that
85
+
86
+ ImageNet-22K. We use the ImageNet dataset with images from approximately 22 thousand classes as too low-re $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ for Tiny Imion. To make et anand aces365 since images from 80 Million Tiny Images areare disjoint, images in ImageNet-1K are removed. $\bar { \mathcal { D } } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$
87
+
88
+ WikiText-2. WikiText-2 is a corpus of Wikipedia articles typically used for language modeling. We use WikiText-2 as $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ for language modeling experiments with Penn Treebank as $\mathcal { D } _ { \mathrm { i n } }$ . For classification tasks on 20 Newsgroups, TREC, and SST, we treat each sentence of WikiText-2 as an individual example, and use simple filters to remove low-quality sentences.
89
+
90
+ # 4.3 MULTICLASS CLASSIFICATION
91
+
92
+ In what follows, we use Outlier Exposure to enhance the performance of existing OOD detection techniques with multiclass classification as the original task. Throughout the following experiments, we let $x \in \mathcal { X }$ be a classifier’s input and $y \in { \mathcal { Y } } = \{ 1 , 2 , \dotsc , \underline { { k } } \}$ be a class. We also represent the classifier with the function $f : \mathcal { X } \overset { } { \to } \mathbb { R } ^ { k }$ , such that for any $x$ , $1 ^ { \top } \bar { f } ( x ) = 1$ and $f ( x ) \succeq 0$ .
93
+
94
+ Maximum Softmax Probability (MSP). Consider the maximum softmax probability baseline (Hendrycks & Gimpel, 2017) which gives an input $x$ the OOD score $- \operatorname* { m a x } _ { c } f _ { c } ( x )$ . Out-ofdistribution samples are drawn from various unseen distributions (Appendix A). For each task, we test with approximately twice the number of $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ distributions compared to most other papers, and we also test on NLP tasks. The quality of the OOD example scores are judged with the metrics described in Section 4.1. For this multiclass setting, we perform Outlier Exposure by fine-tuning a pre-trained classifier $f$ so that its posterior is more uniform on $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ samples. Specifically, the finetuning objective is $\begin{array} { r } { \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { \mathrm { i n } } } [ - \log f _ { y } ( x ) ] + \lambda \mathbb { E } _ { x \sim \mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o g } } } [ H ( \mathcal { U } ; f ( \bar { x } ) ) ] } \end{array}$ , where $H$ is the cross entropy and $\mathcal { U }$ is the uniform distribution over $k$ classes. When there is class imbalance, we could encourage $f ( x )$ to match $( P ( y = 1 ) , \ldots , P ( y = k ) )$ ; yet for the datasets we consider, matching $\mathcal { U }$ works well enough. Also, note that training from scratch with OE can result in even better performance than fine-tuning (Appendix C). This approach works on different architectures as well (Appendix D).
95
+
96
+ Unlike Liang et al. (2018); Lee et al. (2018) and like Hendrycks & Gimpel (2017); DeVries & Taylor (2018), we do not tune our hyperparameters for each $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ distribution, so that $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ is kept unknown like with real-world anomalies. Instead, the $\lambda$ coefficients were determined early in experimentation with validation $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { v a l } }$ distributions described in Appendix A. In particular, we use $\lambda = 0 . 5$ for vision experiments and $\lambda = 1 . 0$ for NLP experiments. Like previous OOD detection methods involving network fine-tuning, we chose $\lambda$ so that impact on classification accuracy is negligible.
97
+
98
+ For nearly all of the vision experiments, we train Wide Residual Networks (Zagoruyko & Komodakis, 2016) and then fine-tune network copies with OE for 10 epochs. However we use a pretrained ResNet-18 for Places365. For NLP experiments, we train 2-layer GRUs (Cho et al., 2014) for 5 epochs, then fine-tune network copies with OE for 2 epochs. Networks trained on CIFAR10 or CIFAR-100 are exposed to images from 80 Million Tiny Images, and the Tiny ImageNet and Places365 classifiers are exposed to ImageNet-22K. NLP classifiers are exposed to WikiText-2. Further architectural and training details are in Appendix B. For all tasks, OE improves average performance by a large margin. Averaged results are shown in Tables 1 and 2. Sample ROC curves are shown in Figures 1 and 4. Detailed results on individual $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets are in Table 7 and Table 8 in Appendix A. Notice that the SVHN classifier with OE can be used to detect new anomalies such as emojis and street view alphabet letters, even though $\mathcal { D } _ { \mathrm { O E } } ^ { \mathrm { t e s t } }$ is a dataset of natural images. Thus, Outlier Exposure helps models to generalize to unseen $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ distributions far better than the baseline.
99
+
100
+ <table><tr><td rowspan="2">Din</td><td colspan="2">FPR95↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR ↑</td></tr><tr><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td></tr><tr><td>SVHN</td><td>6.3</td><td>0.1</td><td>98.0</td><td>100.0</td><td>91.1</td><td>99.9</td></tr><tr><td>CIFAR-10</td><td>34.9</td><td>9.5</td><td>89.3</td><td>97.8</td><td>59.2</td><td>90.5</td></tr><tr><td>CIFAR-100</td><td>62.7</td><td>38.5</td><td>73.1</td><td>87.9</td><td>30.1</td><td>58.2</td></tr><tr><td>Tiny ImageNet</td><td>66.3</td><td>14.0</td><td>64.9</td><td>92.2</td><td>27.2</td><td>79.3</td></tr><tr><td>Places365</td><td>63.5</td><td>28.2</td><td>66.5</td><td>90.6</td><td>33.1</td><td>71.0</td></tr></table>
101
+
102
+ Table 1: Out-of-distribution image detection for the maximum softmax probability (MSP) baseline detector and the MSP detector after fine-tuning with Outlier Exposure (OE). Results are percentages and also an average of 10 runs. Expanded results are in Appendix A.
103
+
104
+ <table><tr><td rowspan="2">Din</td><td colspan="2">FPR90↓</td><td colspan="2">AUROC↑</td><td colspan="2">AUPR↑</td></tr><tr><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td></tr><tr><td>20 Newsgroups</td><td>42.4</td><td>4.9</td><td>82.7</td><td>97.7</td><td>49.9</td><td>91.9</td></tr><tr><td>TREC</td><td>43.5</td><td>0.8</td><td>82.1</td><td>99.3</td><td>52.2</td><td>97.6</td></tr><tr><td>SST</td><td>74.9</td><td>27.3</td><td>61.6</td><td>89.3</td><td>22.9</td><td>59.4</td></tr></table>
105
+
106
+ Table 2: Comparisons between the MSP baseline and the MSP of the natural language classifier fine-tuned with OE. Results are percentages and averaged over 10 runs.
107
+
108
+ Confidence Branch. A recently proposed OOD detection technique (DeVries & Taylor, 2018) involves appending an OOD scoring branch $b : \mathcal { X } [ 0 , 1 ]$ onto a deep network. Trained with samples from only $\mathcal { D } _ { \mathrm { i n } }$ , this branch estimates the network’s confidence on any input. The creators of this technique made their code publicly available, so we use their code to train new 40-4 Wide Residual Network classifiers. We fine-tune the confidence branch with Outlier Exposure by adding $0 . 5 \mathbb { E } _ { \boldsymbol { x } \sim \mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } } } \left[ \log b ( \boldsymbol { x } ) \right]$ to the network’s original optimization objective. In Table 3, the baseline values are derived from the maximum softmax probabilities produced by the classifier trained with DeVries & Taylor (2018)’s publicly available training code. The confidence branch improves over this MSP detector, and after OE, the confidence branch detects anomalies more effectively.
109
+
110
+ <table><tr><td rowspan="2">Din</td><td colspan="3">FPR95↓</td><td colspan="3">AUROC ↑</td><td colspan="3">AUPR ↑</td></tr><tr><td>MSP</td><td>Branch</td><td>+OE</td><td>MSP</td><td>Branch</td><td>+OE</td><td>MSP</td><td>Branch</td><td>+OE</td></tr><tr><td>CIFAR-10</td><td>49.3</td><td>38.7</td><td>20.8</td><td>84.4</td><td>86.9</td><td>93.7</td><td>51.9</td><td>48.6</td><td>66.6</td></tr><tr><td>CIFAR-100</td><td>55.6</td><td>47.9</td><td>42.0</td><td>77.6</td><td>81.2</td><td>85.5</td><td>36.5</td><td>44.4</td><td>54.7</td></tr><tr><td>Tiny ImageNet</td><td>64.3</td><td>66.9</td><td>20.1</td><td>65.3</td><td>63.4</td><td>90.6</td><td>30.3</td><td>25.7</td><td>75.2</td></tr></table>
111
+
112
+ Table 3: Comparison among the maximum softmax probability, Confidence Branch, and Confidence Branch $+ \mathrm { { ~ O E ~ } }$ OOD detectors. The same network architecture is used for all three detectors. All results are percentages, and averaged across all $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets.
113
+
114
+ Synthetic Outliers. Outlier Exposure leverages the simplicity of downloading real datasets, but it is possible to generate synthetic outliers. Note that we made an attempt to distort images with noise and use these as outliers for OE, but the classifier quickly memorized this statistical pattern and did not detect new OOD examples any better than before (Hafner et al., 2018). A method with better success is from Lee et al. (2018). They carefully train a GAN to generate synthetic examples near the classifier’s decision boundary. The classifier is encouraged to have a low maximum softmax probability on these synthetic examples. For CIFAR classifiers, they mention that a GAN can be a better source of anomalies than datasets such as SVHN. In contrast, we find that the simpler approach of drawing anomalies from a diverse dataset is sufficient for marked improvements in OOD detection.
115
+
116
+ We train a 40-4 Wide Residual Network using Lee et al. (2018)’s publicly available code, and use the network’s maximum softmax probabilities as our baseline. Another classifier trains concurrently with a GAN so that the classifier assigns GAN-generated examples a high OOD score. We want each $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ to be novel. Counters all tested ently we use their code’s default hyperparameters, and distributions. This is unlike their work since, for each ly one modeldistribution, $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ they train and tune a new network. We do not evaluate on Tiny ImageNet, Places365, nor text, since DCGANs cannot stably generate such images and text reliably. Lastly, we take the network trained in tandem with a GAN and fine-tune it with OE. Table 4 shows the large gains from using OE with a real and diverse dataset over using synthetic samples from a GAN.
117
+
118
+ <table><tr><td rowspan="2">Din</td><td colspan="3">FPR95↓</td><td colspan="3">AUROC ↑</td><td colspan="3">AUPR↑</td></tr><tr><td>MSP</td><td>+GAN</td><td>+OE</td><td>MSP</td><td>+GAN</td><td>+OE</td><td>MSP</td><td>+GAN</td><td>+OE</td></tr><tr><td>CIFAR-10</td><td>32.3</td><td>37.3</td><td>11.8</td><td>88.1</td><td>89.6</td><td>97.2</td><td>51.1</td><td>59.0</td><td>88.5</td></tr><tr><td>CIFAR-100</td><td>66.6</td><td>66.2</td><td>49.0</td><td>67.2</td><td>69.3</td><td>77.9</td><td>27.4</td><td>33.0</td><td>44.7</td></tr></table>
119
+
120
+ Table 4: Comparison among the maximum softmax probability (MSP), $\mathbf { M S P + G A N }$ , and ${ \mathrm { M S P } } + { }$ $\mathrm { G A N + O E }$ OOD detectors. The same network architecture is used for all three detectors. All results are percentages and averaged across all $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets.
121
+
122
+ # 4.4 DENSITY ESTIMATION
123
+
124
+ Density estimators learn a probability density function over the data distribution $\mathcal { D } _ { \mathrm { i n } }$ . Anomalous examples should have low probability density, as they are scarce in $\mathcal { D } _ { \mathrm { i n } }$ by definition (Nalisnick et al., 2019). Consequently, density estimates are another means by which to score anomalies (Zong et al., 2018). We show the ability of OE to improve density estimates on low-probability, outlying data.
125
+
126
+ $\mathbf { P i x e l C N N + + }$ . Autoregressive neural density estimators provide a way to parametrize the probability density of image data. Although sampling from these architectures is slow, they allow for evaluating the probability density with a single forward pass through a CNN, making them promising candidates for OOD detection. We use Pix${ \mathrm { e l C N N } } { + + }$ (Salimans et al., 2017) as a baseline OOD detector, and we train it on CIFAR-10. The OOD score of example $x$ is the bits per pixel (BPP), defined as ${ \mathrm { n l l } } ( x ) / { \mathrm { n u m } } \_ { \mathrm { p i x e l } \mathrm { s } }$ , where nll is the negative log-likelihood. With this loss we fine-tune for 2 epochs using OE, which we find is sufficient for the training loss to converge. Here OE is implemented with a margin loss over the log-likelihood difference between in-distribution and anomalous examples, so that the loss for a sample $x _ { \mathrm { i n } }$ from $\mathcal { D } _ { \mathrm { i n } }$ and point $x _ { \mathrm { o u t } }$ from $\hat { \mathcal { D } } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ is
127
+
128
+ ![](images/9886df7330693492bd821d7dfaa5aa01cb8f8197ce5c2aa5754a9836e6529f50.jpg)
129
+ In-Distribution
130
+ Figure 2: OOD scores from PixelCNN $^ { + + }$ on images from CIFAR-10 and SVHN.
131
+
132
+ $$
133
+ \mathrm { m a x } \{ 0 , \mathrm { n u m \_ p i x e l s } + \mathrm { n l l } ( x _ { \mathrm { i n } } ) - \mathrm { n l l } ( x _ { \mathrm { o u t } } ) \} .
134
+ $$
135
+
136
+ Results are shown in Table 5. Notice that PixelCNN++ without OE unexpectedly assigns lower BPP from SVHN images than CIFAR-10 images. For all $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets, OE significantly improves results.
137
+
138
+ Language Modeling. We next explore using OE on language models. We use QRNN (Merity et al., 2018a;b) language models as baseline OOD detectors. For the OOD score, we use bits per character (BPC) or bits per word (BPW), defined as $\mathrm { n l l } ( x ) / { \mathrm { s } } ,$ equence_length, where $\mathrm { n l l } ( x )$ is the negative log-likelihood of the sequence $x$ . Outlier Exposure is implemented by adding the cross entropy to the uniform distribution on tokens from sequences in $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ as an additional loss term.
139
+
140
+ For $\mathcal { D } _ { \mathrm { i n } }$ , we convert the language-modeling version of Penn Treebank, split into sequences of length 70 for backpropagation for word-level models, and 150 for character-level models. We do not train or evaluate with preserved hidden states as in BPTT. This is because retaining hidden states would greatly simplify the task of OOD detection. Accordingly, the OOD detection task is to provide a score for 70- or 150-token sequences in the unseen $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets.
141
+
142
+ Table 5: OOD detection results with a $\mathrm { P i x e l C N N + + }$ density estimator, and the same estimator after applying OE. The model’s bits per pixel (BPP) scores each sample. All results are percentages. Test distributions $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ are described in Appendix A.
143
+
144
+ <table><tr><td colspan="2"></td><td colspan="2">FPR95↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR ↑</td></tr><tr><td>Din</td><td>Dtest out</td><td>BPP</td><td>+OE</td><td>BPP</td><td>+OE</td><td>BPP</td><td>+OE</td></tr><tr><td rowspan="9">CIFAR-10</td><td>Gaussian</td><td>0.0</td><td>0.0</td><td>100.0</td><td>100.0</td><td>100.0</td><td>99.6</td></tr><tr><td>Rademacher</td><td>61.4</td><td>50.3</td><td>44.2</td><td>56.5</td><td>14.2</td><td>17.3</td></tr><tr><td>Blobs</td><td>17.2</td><td>1.3</td><td>93.2</td><td>99.5</td><td>60.0</td><td>96.2</td></tr><tr><td>Textures</td><td>96.8</td><td>48.9</td><td>69.4</td><td>88.8</td><td>40.9</td><td>70.0</td></tr><tr><td>SVHN</td><td>98.8</td><td>86.9</td><td>15.8</td><td>75.8</td><td>9.7</td><td>60.0</td></tr><tr><td>Places365</td><td>86.1</td><td>50.3</td><td>74.8</td><td>89.3</td><td>38.6</td><td>70.4</td></tr><tr><td>LSUN</td><td>76.9</td><td>43.2</td><td>76.4</td><td>90.9</td><td>36.5</td><td>72.4</td></tr><tr><td>CIFAR-100</td><td>96.1</td><td>89.8</td><td>52.4</td><td>68.5</td><td>19.0</td><td>41.9</td></tr><tr><td>Mean</td><td>66.6</td><td>46.4</td><td>65.8</td><td>83.7</td><td>39.9</td><td>66.0</td></tr></table>
145
+
146
+ We train word-level models for 300 epochs, and character-level models for 50 epochs. We then fine-tune using OE on WikiText-2 for 5 epochs. For the character-level language model, we create a character-level version of WikiText-2 by converting words to lowercase and leaving out characters which do not appear in PTB. OOD detection results for the word-level and character-level language models are shown in Table 6; expanded results and $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ descriptions are in Appendix F. In all cases, OE improves over the baseline, and the improvement is especially large for the word-level model.
147
+
148
+ <table><tr><td rowspan="2">Din</td><td colspan="2">FPR90↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR↑</td></tr><tr><td>BPC/BPW</td><td>+OE</td><td>BPC/BPW</td><td>+OE</td><td>BPC/BPW</td><td>+OE</td></tr><tr><td>PTB Characters</td><td>99.0</td><td>89.4</td><td>77.5</td><td>86.3</td><td>76.0</td><td>86.7</td></tr><tr><td>PTB Words</td><td>48.5</td><td>0.98</td><td>81.2</td><td>99.2</td><td>44.0</td><td>97.8</td></tr></table>
149
+
150
+ Table 6: OOD detection results on Penn Treebank language models. Results are percentages averaged over the $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets. Expanded results are in Appendix F.
151
+
152
+ # 5 DISCUSSION
153
+
154
+ Extensions to Multilabel Classifiers and the Reject Option. Outlier Exposure can work in more classification regimes than just those considered above. For example, a multilabel classifier trained on CIFAR-10 obtains an $8 8 . 8 \%$ mean AUROC when using the maximum prediction probability as the OOD score. By training with OE to decrease the classifier’s output probabilities on OOD samples, the mean AUROC increases to $9 7 . 1 \%$ . This is slightly less than the AUROC for a multiclass model tuned with OE. An alternative OOD detection formulation is to give classifiers a “reject class” (Bartlett & Wegkamp, 2008). Outlier Exposure is also flexible enough to improve performance in this setting, but we find that even with OE, classifiers with the reject option or multilabel outputs are not as competitive as OOD detectors with multiclass outputs.
155
+
156
+ Flexibility in Choosing tant for generalization to $\mathcal { D } _ { \mathbf { o u t } } ^ { \mathbf { o E } }$ . een in experimentation, we found that the choice of distributions. For example, adding Gaussian no $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ is impor-o samples $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$
157
+ from $\mathcal { D } _ { \mathrm { i n } }$ to create $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ does not teach the network to generalize to unseen anomaly distributions for
158
+ complex $\mathcal { D } _ { \mathrm { i n } }$ . Similarly, we found in Section 4.3 that synthetic anomalies do not work as well as real
159
+ data for describe $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ . In contrast, our experiments demonSection 4.2.2 do generalize to unseen that the large datasets of realistic anomaliesdistributions. $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$
160
+
161
+ In addition to size and realism, we founCIFAR-100 classifier with CIFAR-10 as ersity of hardly i $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ to be an important factor. Concretely, aves over the baseline. A CIFAR-10 clas$\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ sifier exposed to ten CIFAR-100 outlier classes corresponds to an average AUPR of $78 . 5 \%$ . Exposed to 30 such classes, the classifier’s average AUPR becomes $8 5 . 1 \%$ . Next, 50 classes corresponds to $8 5 . 3 \%$ , and from thereon additional CIFAR-100 classes barely improve performance. This suggests that dataset diversity is important, not just size. In fact, experiments in this paper often used around
162
+
163
+ $1 \%$ of the images in the 80 Million Tiny Images dataset since we only briefly fine-tuned the models. We also found that using only 50,000 examples from this dataset led to a negligible degradation in detection performance. Additionally, $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ datasets with significantly different statistics can perform out similarly. For instance, using the Project Gutenberg dataset in lieu of WikiText-2 for $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o b } }$ i n the SST experiments gives an average AUROC of $9 0 . 1 \%$ instead of $8 9 . 3 \%$ .
164
+
165
+ Closeness of Dtest, DOE, out and Dtestin . Our experiments show several interesting effects of the closeness of the datasets involved. Firstly, we find that $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ and $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ need not be close for training with OE to improve performance on $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ . In Appendix A, we observe that an OOD detector for SVHN has its performance improve with Ouural scenes rather than digits, and (2) Exposure even though (1) includes unnatural examp $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ samples are images of nat-uch as emojis. We observed $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$
166
+ out the same in our preliminary experiments with MNIST; using 80 Million Tiny Images as $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ , O E increased the AUPR from $9 4 . 2 \%$ to $9 7 . 0 \%$ . Secondly, we find that the closeness of OE. In the NLP experiments, preproces $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ $\mathcal { D } _ { \mathrm { i n } } ^ { \mathrm { t e s t } }$ can be ane closer to ortant factor in the success ofimproves OOD detection per$\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ $\mathcal { D } _ { \mathrm { i n } }$
167
+ formance significantly. Without preprocessing, the network may discover easy-to-learn cues which reveal whether the input is in- or out-of-distribution, so the OE training objective can be optimized in unintended ways. That results in weaker detectors. In a separate experiment, we use Online Hard Example Mining so that difficult outliers have more weight in Outlier Exposure. Although this improves performance on the hardest anomalies, anomalies without plausible local statistics like noise are detected slightly less effectively than before. Thus hard or close-to-distribution examples do not necessarily teach the detector all valuable heuristics for detecting various forms of anomalies. Real-world applications of OE could use the method of Sun et al. (2018) to refine a scraped $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ auxiliary dataset to be appropriately close to $\mathcal { D } _ { \mathrm { i n } } ^ { \mathrm { t e s t } }$ .
168
+
169
+ OE Improves Calibration. When using classifiers for prediction, it is important that confidence estimates given for the predictions do not misrepresent empirical performance. A calibrated classifier gives confidence probabilities that match the empirical frequency of correctness. That is, if a calibrated model predicts an event with $30 \%$ probability, then $30 \%$ of the time the event transpires.
170
+
171
+ Existing confidence calibration approaches consider the standard setting where data at test-time is always drawn from $\mathcal { D } _ { \mathrm { i n } }$ . We extend this setting to include examples from $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ at test-time since systems should provide calibrated probabilities on both in- and out-of-distribution samples. The classifier should have low-confidence predictions on these OOD examples, since they do not have a class. Building on the temperature tuning method of Guo et al. (2017), we demonstrate that
172
+
173
+ ![](images/645c96fa99de12ec7263cb7a61ef1cac6d364540804bf923b6d462b1380c451f.jpg)
174
+ Figure 3: Root Mean Square Calibration Error values with temperature tuning and temperature tuning $+ \mathrm { O E }$ across various datasets.
175
+
176
+ OE can improve calibration performance in this realistic setting. Summary results are shown in Figure 3. Detailed results and a description of the metrics are in Appendix G.
177
+
178
+ # 6 CONCLUSION
179
+
180
+ In this paper, we proposed Outlier Exposure, a simple technique that enhances many current OOD detectors across various settings. It uses out-of-distribution samples to teach a network heuristics to detect new, unmodeled, out-of-distribution examples. We showed that this method is broadly applicable in vision and natural language settings, even for large-scale image tasks. OE can improve model calibration and several previous anomaly detection techniques. Further, OE can teach density estimation models to assign more plausible densities to out-of-distribution samples. Finally, Outlier Exposure is computationally inexpensive, and it can be applied with low overhead to existing systems. In summary, Outlier Exposure is an effective and complementary approach for enhancing out-of-distribution detection systems.
181
+
182
+ # ACKNOWLEDGMENTS
183
+
184
+ We thank NVIDIA for donating GPUs used in this research. This research was supported by a grant from the Future of Life Institute.
185
+
186
+ # REFERENCES
187
+
188
+ Vassileios Balntas, Edgar Riba, Daniel Ponsa, and Krystian Mikolajczyk. Learning local feature descriptors with triplets and shallow convolutional neural networks. British Machine Vision Conference, 2016.
189
+
190
+ Peter L Bartlett and Marten H Wegkamp. Classification with a reject option using a hinge loss. Journal of Machine Learning Research, 2008.
191
+
192
+ Petra Bevandic, Sinisa Segvic, Ivan Kreso, and Marin Orsic. Discriminative out-of-distribution detection for semantic segmentation. arXiv preprint, 2018.
193
+
194
+ Ann Bies, Justin Mott, Colin Warner, and Seth Kulick. English web treebank, 2012.
195
+
196
+ Xinlei Chen and Abhinav Gupta. Webly supervised learning of convolutional networks. In International Conference on Computer Vision, 2015.
197
+
198
+ Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. Empirical Methods in Natural Language Processing, 2014.
199
+
200
+ Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets. arXiv preprint, 2017.
201
+
202
+ Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. Computer Vision and Pattern Recognition, 2014.
203
+
204
+ Jesse Davis and Mark Goadrich. The relationship between precision-recall and ROC curves. In International Conference on Machine Learning, 2006.
205
+
206
+ Harm de Vries, Roland Memisevic, and Aaron Courville. Deep learning vector quantization. In European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, 2016.
207
+
208
+ Terrance DeVries and Graham W Taylor. Learning confidence for out-of-distribution detection in neural networks. arXiv preprint arXiv:1802.04865, 2018.
209
+
210
+ Andrew F Emmott, Shubhomoy Das, Thomas Dietterich, Alan Fern, and Weng-Keen Wong. Systematic construction of anomaly detection benchmarks from real data. In Proceedings of the ACM SIGKDD workshop on outlier detection and description. ACM, 2013.
211
+
212
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. Neural Information Processing Systems, 2014.
213
+
214
+ Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Machine Learning, 2015.
215
+
216
+ Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. International Conference on Machine Learning, 2017.
217
+
218
+ Danijar Hafner, Dustin Tran, Alex Irpan, Timothy Lillicrap, and James Davidson. Reliable uncertainty estimates in deep neural networks using noise contrastive priors. International Conference on Machine Learning Workshop, 2018.
219
+
220
+ Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. International Conference on Learning Representations, 2019.
221
+
222
+ Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. International Conference on Learning Representations, 2017.
223
+
224
+ Johnson et al. Tiny imagenet visual recognition challenge. URL https://tiny-imagenet. herokuapp.com.
225
+
226
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
227
+
228
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Neural Information Processing Systems, 2012.
229
+
230
+ Volodymyr Kuleshov and Percy Liang. Calibrated structured prediction. Neural Information Processing Systems, 2015.
231
+
232
+ Vijay Kumar, Gustavo Carneiro, and Ian Reid. Learning local image descriptors with deep siamese and triplet convolutional networks by minimizing global loss functions. Computer Vision and Pattern Recognition, 2016.
233
+
234
+ Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. International Conference on Learning Representations, 2018.
235
+
236
+ Shiyu Liang, Yixuan Li, and R. Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. International Conference on Learning Representations, 2018.
237
+
238
+ Si Liu, Risheek Garrepalli, Thomas Dietterich, Alan Fern, and Dan Hendrycks. Open category detection with PAC guarantees. In Proceedings of International Conference on Machine Learning, 2018.
239
+
240
+ Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts, 2017.
241
+
242
+ Dhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens van der Maaten. Exploring the limits of weakly supervised pretraining. arXiv preprint, 2018.
243
+
244
+ Andrey Malinin and Mark Gales. Predictive uncertainty estimation via prior networks. Neural Information Processing Systems, 2018.
245
+
246
+ Chris Manning and Hinrich Schutze. ¨ Foundations of Statistical Natural Language Processing. MIT Press, 1999.
247
+
248
+ Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and Optimizing LSTM Language Models. International Conference on Learning Representations, 2018a.
249
+
250
+ Stephen Merity, Nitish Shirish Keskar, and Richard Socher. An Analysis of Neural Language Modeling at Multiple Scales. arXiv preprint, 2018b.
251
+
252
+ Eric Nalisnick, Akihiro Matsukawa, Yee Whye Teh, Dilan Gorur, and Balaji Lakshminarayanan. Do deep generative models know what they don’t know? International Conference on Learning Representations, 2019.
253
+
254
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011.
255
+
256
+ Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Computer Vision and Pattern Recognition, 2015.
257
+
258
+ Khanh Nguyen and Brendan O’Connor. Posterior calibration and exploratory analysis for natural language processing models. Empirical Methods in Natural Language Processing, 2015.
259
+
260
+ Joan Pastor-Pellicer, Francisco Zamora-Mart´ınez, Salvador Espana-Boquera, and Mar ˜ ´ıa Jose Castro- ´ Bleda. F-measure as the error function to train neural networks. In International Work-Conference on Artificial Neural Networks (IWANN), 2013.
261
+
262
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. International Conference on Machine Learning, 2016.
263
+
264
+ Alec Radford, Rafal Jozefowicz, and Ilya Sutskever. Learning to generate reviews and discovering sentiment. arXiv preprint, 2017.
265
+
266
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 2015.
267
+
268
+ Ruslan Salakhutdinov, Joshua Tenenbaum, and Antonio Torralba. Learning to learn with compound hd models. In Neural Information Processing Systems, 2011.
269
+
270
+ Tim Salimans and Diederik Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. NIPS, 2016.
271
+
272
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. PixelCNN $^ { + + }$ : Improving the PixelCNN with discretized logistic mixture likelihood and other modifications. International Conference on Learning Representations, 2017.
273
+
274
+ Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher Manning, Andrew $\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Conference on Empirical Methods in Natural Language Processing, 2013.
275
+
276
+ Akshayvarun Subramanya, Suraj Srinivas, and R.Venkatesh Babu. Confidence estimation in deep neural networks via density modelling. arXiv preprint, 2017.
277
+
278
+ Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Large scale fine-grained categorization and the effectiveness of domain-specific transfer learning. Yin Cui and Yang Song and Chen Sun and Andrew Howard and Serge Belongie, 2018.
279
+
280
+ Antonio Torralba, Rob Fergus, and William T Freeman. 80 million tiny images: A large data set for nonparametric object and scene recognition. Pattern Analysis and Machine Intelligence, 2008.
281
+
282
+ Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. CoRR, 2015.
283
+
284
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. British Machine Vision Conference, 2016.
285
+
286
+ Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision. Springer, 2014.
287
+
288
+ Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. Pattern Analysis and Machine Intelligence, 2017.
289
+
290
+ Bo Zong, Qi Song, Martin Renqiang Min, Wei Cheng, Cristian Lumezanu, Daeki Cho, and Haifeng Chen. Deep autoencoding gaussian mixture model for unsupervised anomaly detection. International Conference on Learning Representations, 2018.
291
+
292
+ # A EXPANDED MULTICLASS RESULTS
293
+
294
+ Expanded mutliclass out-of-distribution detection results are in Table 7 and Table 8.
295
+ Table 7: Vision OOD example detection for the maximum softmax probability (MSP) baseline detector and the MSP detector after fine-tuning with Outlier Exposure (OE). All results are percentages and the result of 10 runs. Values are rounded so that $9 9 . 9 5 \%$ rounds to $1 0 0 \%$ . More results are in Appendix E.
296
+
297
+ <table><tr><td colspan="2"></td><td colspan="2">FPR95↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR ↑</td></tr><tr><td>Din</td><td>Dest</td><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td></tr><tr><td rowspan="11">NH∧S</td><td>Gaussian Bernoulli</td><td>5.4</td><td>0.0</td><td>98.2</td><td>100.</td><td>90.5</td><td>100.</td></tr><tr><td></td><td>4.4</td><td>0.0</td><td>98.6</td><td>100.</td><td>91.9</td><td>100.</td></tr><tr><td>Blobs</td><td>3.7</td><td>0.0</td><td>98.9</td><td>100.</td><td>93.5</td><td>100.</td></tr><tr><td>Icons-50</td><td>11.4</td><td>0.3</td><td>96.4</td><td>99.8</td><td>87.2</td><td>99.2</td></tr><tr><td>Textures</td><td>7.2</td><td>0.2</td><td>97.5</td><td>100.</td><td>90.9</td><td>99.7</td></tr><tr><td>Places365</td><td>5.6</td><td>0.1</td><td>98.1</td><td>100.</td><td>92.5</td><td>99.9</td></tr><tr><td>LSUN</td><td>6.4</td><td>0.1</td><td>97.8</td><td>100.</td><td>91.0</td><td>99.9</td></tr><tr><td>CIFAR-10</td><td>6.0</td><td>0.1</td><td>98.0</td><td>100.</td><td>91.2</td><td>99.9</td></tr><tr><td>Chars74K</td><td>6.4</td><td>0.1</td><td>97.9</td><td>100.</td><td>91.5</td><td>99.9</td></tr><tr><td>Mean</td><td>6.28</td><td>0.07</td><td>97.95</td><td>99.96</td><td>91.12</td><td>99.85</td></tr><tr><td rowspan="8">CIAAIII0</td><td>Gaussian</td><td>14.4</td><td>0.7</td><td>94.7</td><td>99.6</td><td>70.0</td><td>94.3</td></tr><tr><td>Rademacher</td><td>47.6</td><td>0.5</td><td>79.9</td><td>99.8</td><td>32.3</td><td>97.4</td></tr><tr><td>Blobs</td><td>16.2</td><td>0.6</td><td>94.5</td><td>99.8</td><td>73.7</td><td>98.9</td></tr><tr><td>Textures</td><td>42.8</td><td>12.2</td><td>88.4</td><td>97.7</td><td>58.4</td><td>91.0</td></tr><tr><td>SVHN</td><td>28.8</td><td>4.8</td><td>91.8</td><td>98.4</td><td>66.9</td><td>89.4</td></tr><tr><td>Places365</td><td>47.5</td><td>17.3</td><td>87.8</td><td>96.2</td><td>57.5</td><td>87.3</td></tr><tr><td>LSUN</td><td>38.7</td><td>12.1</td><td>89.1</td><td>97.6</td><td>58.6</td><td>89.4</td></tr><tr><td>CIFAR-100</td><td>43.5</td><td>28.0</td><td>87.9</td><td>93.3</td><td>55.8</td><td>76.2</td></tr><tr><td></td><td>Mean</td><td>34.94</td><td>9.50</td><td>89.27</td><td>97.81</td><td>59.16</td><td>90.48</td></tr><tr><td rowspan="11">CII-AIII0</td><td>Gaussian</td><td>54.3</td><td>12.1</td><td>64.7</td><td>95.7</td><td>19.7</td><td>71.1</td></tr><tr><td>Rademacher</td><td>39.0</td><td>17.1</td><td>79.4</td><td>93.0</td><td>30.1</td><td>56.9</td></tr><tr><td>Blobs</td><td>58.0</td><td>12.1</td><td>75.3</td><td>97.2</td><td>29.7</td><td>86.2</td></tr><tr><td>Textures</td><td>71.5</td><td>54.4</td><td>73.8</td><td>84.8</td><td>33.3</td><td>56.3</td></tr><tr><td>SVHN</td><td>69.3</td><td>42.9</td><td>71.4</td><td>86.9</td><td>30.7</td><td>52.9</td></tr><tr><td>Places365</td><td>70.4</td><td>49.8</td><td>74.2</td><td>86.5</td><td>33.8</td><td>57.9</td></tr><tr><td>LSUN</td><td>74.0</td><td>57.5</td><td>70.7</td><td>83.4</td><td>28.8</td><td>51.4</td></tr><tr><td>CIFAR-10</td><td>64.9</td><td>62.1</td><td>75.4</td><td>75.7</td><td>34.3</td><td>32.6</td></tr><tr><td>Mean</td><td>62.66</td><td>38.50</td><td>73.11</td><td>87.89</td><td>30.05</td><td>58.15</td></tr><tr><td>Gaussian</td><td>72.6</td><td>45.4</td><td>33.7</td><td>76.5</td><td>12.3</td><td>28.6</td></tr><tr><td rowspan="8">1hrree Gi</td><td>Rademacher</td><td>51.7</td><td>49.0</td><td>62.0</td><td>65.1</td><td>18.8</td><td>20.0</td></tr><tr><td>Blobs</td><td>79.4</td><td>0.0</td><td>48.2</td><td>100.</td><td>14.4</td><td>99.9</td></tr><tr><td>Textures</td><td>76.4</td><td>4.8</td><td>70.4</td><td>98.5</td><td>31.4</td><td>95.8</td></tr><tr><td>SVHN</td><td>52.3</td><td>0.4</td><td>80.8</td><td>99.8</td><td>42.8</td><td>98.2</td></tr><tr><td>Places365</td><td>63.6</td><td>0.4</td><td>76.9</td><td>99.8</td><td>36.3</td><td>99.3</td></tr><tr><td>LSUN</td><td>67.0</td><td>0.4</td><td>74.2</td><td>99.9</td><td>31.2</td><td>99.5</td></tr><tr><td>ImageNet</td><td>67.3</td><td>11.6</td><td>72.8</td><td>97.9</td><td>30.0</td><td>92.9</td></tr><tr><td>Mean</td><td>66.27</td><td>13.99</td><td>64.86</td><td>92.18</td><td>27.15</td><td>79.26</td></tr><tr><td rowspan="11">Psse55</td><td>Gaussian</td><td>37.1</td><td></td><td></td><td>93.5</td><td></td><td></td></tr><tr><td>Rademacher</td><td>60.4</td><td>9.4 13.5</td><td>72.2 47.7</td><td>90.2</td><td>23.5 14.6</td><td>54.1 44.9</td></tr><tr><td>Blobs</td><td>73.7</td><td>0.1</td><td>41.9</td><td>100.0</td><td>13.0</td><td>99.4</td></tr><tr><td>Icons-50</td><td>59.1</td><td>0.0</td><td>82.7</td><td>99.9</td><td>49.9</td><td>99.7</td></tr><tr><td>Textures</td><td>84.1</td><td></td><td>66.6</td><td>91.4</td><td>24.6</td><td>75.7</td></tr><tr><td></td><td></td><td>49.9</td><td></td><td></td><td></td><td></td></tr><tr><td>SVHN</td><td>19.9</td><td>0.0 65.3</td><td>96.6</td><td>100.0</td><td>90.5</td><td>99.9</td></tr><tr><td>ImageNet Places69</td><td></td><td>86.3 87.3</td><td>63.0</td><td>86.5</td><td>25.1</td><td>69.7</td></tr><tr><td></td><td></td><td>87.5</td><td>61.5</td><td>63.1</td><td>23.4</td><td>24.9</td></tr><tr><td>Mean</td><td></td><td>28.21</td><td>66.51</td><td>90.57</td><td>33.08</td><td>71.04</td></tr><tr><td></td><td>63.46</td><td></td><td></td><td></td><td></td><td></td></tr></table>
298
+
299
+ Table 8: NLP OOD example detection for the maximum softmax probability (MSP) baseline detector and the MSP detector after fine-tuning with Outlier Exposure (OE). All results are percentages and the result of 10 runs. Values are rounded so that $9 9 . 9 5 \%$ rounds to $1 0 0 \%$ .
300
+
301
+ <table><tr><td rowspan=2 colspan=4>FPR90↓ AUROC ↑ AUPR ↑Din Dtest MSP +OE MSP +OE MSP +OEout</td></tr><tr><td rowspan=1 colspan=1>MSP +OE</td><td rowspan=1 colspan=1>MSP +OE</td><td rowspan=1 colspan=1>MSP +OE</td></tr><tr><td rowspan=1 colspan=1>SNLI</td><td rowspan=1 colspan=1>38.2 12.5</td><td rowspan=1 colspan=1>87.7 95.1</td><td rowspan=1 colspan=1>71.3 86.3</td></tr><tr><td rowspan=1 colspan=1>IMDB</td><td rowspan=1 colspan=1>45.0 18.6</td><td rowspan=1 colspan=1>79.9 93.5</td><td rowspan=1 colspan=1>42.6 74.5</td></tr><tr><td rowspan=1 colspan=1>Multi30K</td><td rowspan=1 colspan=1>54.5 3.2</td><td rowspan=1 colspan=1>78.3 97.3</td><td rowspan=1 colspan=1>45.8 93.7</td></tr><tr><td rowspan=1 colspan=1>WMT16</td><td rowspan=1 colspan=1>45.8 2.0</td><td rowspan=1 colspan=1>80.2 98.8</td><td rowspan=1 colspan=1>43.7 96.1</td></tr><tr><td rowspan=1 colspan=1>Yelp</td><td rowspan=1 colspan=1>45.9 3.9</td><td rowspan=1 colspan=1>78.7 97.8</td><td rowspan=1 colspan=1>38.1 87.9</td></tr><tr><td rowspan=1 colspan=1>EWT-A</td><td rowspan=1 colspan=1>36.1 1.2</td><td rowspan=1 colspan=1>86.2 99.2</td><td rowspan=1 colspan=1>58.2 97.3</td></tr><tr><td rowspan=2 colspan=1>EWT-EEWT-N</td><td rowspan=1 colspan=1>31.9 1.4</td><td rowspan=1 colspan=1>87.8 99.2</td><td rowspan=1 colspan=1>60.3 97.2</td></tr><tr><td rowspan=1 colspan=1>41.7 1.8</td><td rowspan=1 colspan=1>83.1 98.7</td><td rowspan=1 colspan=1>46.2 95.7</td></tr><tr><td rowspan=1 colspan=1>EWT-R</td><td rowspan=1 colspan=1>40.7 1.7</td><td rowspan=1 colspan=1>83.5 98.9</td><td rowspan=1 colspan=1>53.4 96.6</td></tr><tr><td rowspan=1 colspan=1>EWT-W</td><td rowspan=1 colspan=1>44.5 2.4</td><td rowspan=1 colspan=1>81.1 98.5</td><td rowspan=1 colspan=1>39.0 93.8</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=1>42.44 4.86</td><td rowspan=1 colspan=1>82.66 97.71</td><td rowspan=1 colspan=1>49.85 91.91</td></tr><tr><td rowspan=1 colspan=1>SNLI</td><td rowspan=1 colspan=1>18.2 4.2</td><td rowspan=1 colspan=1>94.0 98.1</td><td rowspan=1 colspan=1>81.9 91.6</td></tr><tr><td rowspan=1 colspan=1>IMDB</td><td rowspan=1 colspan=1>49.6 0.6</td><td rowspan=1 colspan=1>78.0 99.4</td><td rowspan=1 colspan=1>44.2 97.8</td></tr><tr><td rowspan=3 colspan=1>Multi30KWMT16TTTE Yelp</td><td rowspan=1 colspan=1>44.2 0.3</td><td rowspan=1 colspan=1>81.6 99.7</td><td rowspan=1 colspan=1>44.9 99.0</td></tr><tr><td rowspan=1 colspan=1>50.7 0.2</td><td rowspan=1 colspan=1>78.2 99.8</td><td rowspan=1 colspan=1>42.2 99.4</td></tr><tr><td rowspan=1 colspan=1>50.9 0.4</td><td rowspan=1 colspan=1>75.1 99.7</td><td rowspan=1 colspan=1>37.7 96.1</td></tr><tr><td rowspan=5 colspan=1>TTTE EWT-AEWT-EEWT-NEWT-REWT-W</td><td rowspan=1 colspan=1>45.7 0.9</td><td rowspan=1 colspan=1>82.4 97.7</td><td rowspan=1 colspan=1>53.1 96.1</td></tr><tr><td rowspan=1 colspan=1>36.8 0.4</td><td rowspan=1 colspan=1>85.7 99.5</td><td rowspan=1 colspan=1>60.8 99.1</td></tr><tr><td rowspan=1 colspan=1>44.3 0.3</td><td rowspan=1 colspan=1>84.2 99.6</td><td rowspan=1 colspan=1>58.8 99.2</td></tr><tr><td rowspan=1 colspan=1>46.1 0.4</td><td rowspan=1 colspan=1>82.5 99.5</td><td rowspan=1 colspan=1>51.1 98.8</td></tr><tr><td rowspan=1 colspan=1>50.1 0.2</td><td rowspan=1 colspan=1>79.8 99.7</td><td rowspan=1 colspan=1>47.8 99.4</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=1>43.46 0.78</td><td rowspan=1 colspan=1>82.14 99.28</td><td rowspan=1 colspan=1>52.23 97.64</td></tr><tr><td rowspan=1 colspan=1>SNLI</td><td rowspan=1 colspan=1>57.3 33.4</td><td rowspan=1 colspan=1>75.7 86.8</td><td rowspan=1 colspan=1>36.2 52.0</td></tr><tr><td rowspan=1 colspan=1>IMDB</td><td rowspan=1 colspan=1>83.1 32.6</td><td rowspan=1 colspan=1>54.3 85.9</td><td rowspan=1 colspan=1>19.0 51.5</td></tr><tr><td rowspan=2 colspan=1>Multi30KWMT16</td><td rowspan=1 colspan=1>81.3 33.0</td><td rowspan=1 colspan=1>58.5 88.3</td><td rowspan=1 colspan=1>21.4 58.9</td></tr><tr><td rowspan=1 colspan=1>76.0 17.1</td><td rowspan=1 colspan=1>60.2 92.9</td><td rowspan=1 colspan=1>21.4 68.8</td></tr><tr><td rowspan=2 colspan=1>S YelpEWT-A</td><td rowspan=1 colspan=1>82.0 11.3</td><td rowspan=1 colspan=1>54.2 92.7</td><td rowspan=1 colspan=1>18.8 60.0</td></tr><tr><td rowspan=1 colspan=1>72.6 33.6</td><td rowspan=1 colspan=1>62.7 87.2</td><td rowspan=1 colspan=1>21.4 53.8</td></tr><tr><td rowspan=4 colspan=1>EWT-EEWT-NEWT-REWT-W</td><td rowspan=1 colspan=1>68.1 26.5</td><td rowspan=1 colspan=1>68.5 90.4</td><td rowspan=1 colspan=1>27.0 63.7</td></tr><tr><td rowspan=1 colspan=1>73.8 27.2</td><td rowspan=1 colspan=1>63.8 90.1</td><td rowspan=1 colspan=1>22.6 62.0</td></tr><tr><td rowspan=1 colspan=1>79.6 41.4</td><td rowspan=1 colspan=1>58.1 85.6</td><td rowspan=1 colspan=1>20.3 54.7</td></tr><tr><td rowspan=1 colspan=1>74.8 17.2</td><td rowspan=1 colspan=1>60.3 92.8</td><td rowspan=1 colspan=1>21.2 66.9</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=1>74.86 25.31</td><td rowspan=1 colspan=1>61.61 90.07</td><td rowspan=1 colspan=1>22.93 64.37</td></tr></table>
302
+
303
+ Anomalous Data. For each in-distribution dataset $\mathcal { D } _ { \mathrm { i n } }$ , we comprehensively evaluate OOD detectors on artificial and real anomalous distributions $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ following Hendrycks & Gimpel (2017). For each learned distribution $\mathcal { D } _ { \mathrm { i n } }$ , the number of test distributions that we compare against is approximately double that of most previous works.
304
+
305
+ Gaussian anomalies have each dimension i.i.d. sampled from an isotropic Gaussian distribution. Rademacher anomalies are images where each dimension is $- 1$ or 1 with equal probability, so each dimension is sampled from a symmetric Rademacher distribution. Bernoulli images have each pixel sampled from a Bernoulli distribution if the input range is [0, 1]. Blobs data consist in algorithmically generated amorphous shapes with definite edges. Icons- $5 0$ is a dataset of icons and emojis (Hendrycks & Dietterich, 2019); icons from the “Number” class are removed. Textures is a dataset of describable textural images (Cimpoi et al., 2014). Places365 consists in images for scene recognition rather than object recognition (Zhou et al., 2017). LSUN is another scene understanding dataset with fewer classes than Places365 (Yu et al., 2015). ImageNet anomalous examples are taken from the 800 ImageNet-1K classes disjoint from Tiny ImageNet’s 200 classes, and when possible each image is cropped with bounding box information as in Tiny ImageNet. For the Places365 experiment, ImageNet is ImageNet-1K with all 1000 classes. With CIFAR-10 as $\mathcal { D } _ { \mathrm { i n } }$ , we use also CIFAR-100 as $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ and vice versa; recall that the CIFAR-10 and CIFAR-100 classes do not overlap. Chars74K is a dataset of photographed characters in various styles; digits and letters such as “O” and “l” were removed since they can look like numbers. Places69 has images from 69 scene categories not found in the Places365 dataset.
306
+
307
+ SNLI is a dataset of predicates and hypotheses for natural language inference. We use the hypotheses for $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ . IMDB is a sentiment classification dataset of movie reviews, with similar statistics to those of SST. Multi30K is a dataset of English-German image descriptions, of which we use the English descriptions. WMT16 is the English portion of the test set from WMT16. Yelp is a dataset of restaurant reviews. English Web Treebank (EWT) consists of five individual datasets: Answers (A), Email (E), Newsgroups (N), Reviews (R), and Weblog (W). Each contains examples from the indicated domain.
308
+
309
+ Validation Data. For each experiment, we create a set of validation distributions $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { v a l } }$ . The first anomalies are uniform noise anomalies where each pixel is sampled from $\boldsymbol { \mathcal { U } } [ 0 , 1 ]$ or $\mathcal { U } [ - 1 , 1 ]$ depending on the input space of the classifier. The remaining $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { v a l } }$ validation sources are generated by corrupting in-distribution data, so that the data becomes out-of-distribution. One such source of anomalies is created by taking the pixelwise arithmetic mean of a random pair of in-distribution images. Other anomalies are created by taking the geometric mean of a random pair of in-distribution images. Jigsaw anomalies are created by taking an in-distribution example, partitioning the image into 16 equally sized patches, and permuting those patches. Speckle Noised anomalies are created by applying speckle noise to in-distribution images. RGB Ghosted anomalies involves shifting and reordering the color channels of in-distribution images. Inverted images are anomalies which have some or all of their color channels inverted.
310
+
311
+ # B ARCHITECTURES AND TRAINING DETAILS
312
+
313
+ For CIFAR-10, CIFAR-100, and Tiny ImageNet classification experiments, we use a 40-2 Wide Residual Network (Zagoruyko & Komodakis, 2016). The network trains for 100 epochs with a dropout rate of 0.3. The initial learning rate of 0.1 decays following a cosine learning rate schedule (Loshchilov & Hutter, 2017). During fine-tuning of the entire network, we again use a cosine learning rate schedule but with an initial learning rate of 0.001. We use standard flipping and data cropping augmentation, Nesterov momentum, and $\ell _ { 2 }$ weight decay with a coefficient of $\bar { 5 } \times 1 0 ^ { - 4 }$ . SVHN architectures are 16-4 Wide ResNets trained for 20 epochs with an initial learning rate of 0.01 and no data augmentation. For Places365, we use a ResNet-18 pre-trained on Places365. In this Places365 experiment, we tune with Outlier Exposure for 5 epochs, use 512 outlier samples per iteration, and start with a learning rate of 0.0001. Outlier Exposure fine-tuning occurs with each epoch being the length of in-distribution dataset epoch, so that Outlier Exposure completes quickly and does involve reading the entire $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { o E } }$ dataset.
314
+
315
+ # C TRAINING FROM SCRATCH WITH OUTLIER EXPOSURE USUALLY IMPROVES DETECTION PERFORMANCE
316
+
317
+ Elsewhere we show results for pre-trained networks that are fine-tuned with OE. However, a network trained from scratch which simultaneously trains with OE tends to give superior results. For example, a CIFAR-10 Wide ResNet trained normally obtains a classification error rate of $5 . 1 6 \%$ and an FPR95 of $3 4 . 9 4 \%$ . Fine-tuned, this network has an error rate of $5 . 2 7 \%$ and an FPR95 of $9 . 5 0 \%$ . Yet if we instead train the network from scratch and expose it to outliers as it trains, then the error rate is $4 . 2 6 \%$ and the FPR95 is $6 . 1 5 \%$ . This architecture corresponds to a $9 . 5 0 \%$ RMS calibration error with OE fine-tuning, but by training with OE from scratch the RMS calibration error is $6 . 1 5 \%$ . Compared to fine-tuning, training a network in tandem with OE tends to produce a network with a better error rate, calibration, and OOD detection performance. The reason why we use OE for fine-tuning is because training from scratch requires more time and sometimes more GPU memory than fine-tuning.
318
+
319
+ # D OE WORKS ON OTHER VISION ARCHITECTURES
320
+
321
+ Outlier Exposure also improves vision OOD detection performance for more than just Wide ResNets. Table 9 shows that Outlier Exposure also improves vision OOD detection performance for “All Convolutional Networks” (Salimans & Kingma, 2016).
322
+
323
+ <table><tr><td rowspan="2">Din</td><td colspan="2">FPR95↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR↑</td></tr><tr><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td><td>MSP</td><td>+OE</td></tr><tr><td>SVHN</td><td>6.84</td><td>0.08</td><td>98.1</td><td>100.0</td><td>90.9</td><td>99.8</td></tr><tr><td>CIFAR-10</td><td>28.4</td><td>14.0</td><td>90.1</td><td>96.7</td><td>58.9</td><td>87.3</td></tr><tr><td>CIFAR-100</td><td>57.5</td><td>43.3</td><td>76.7</td><td>85.3</td><td>33.9</td><td>51.3</td></tr><tr><td>Tiny ImageNet</td><td>75.5</td><td>25.0</td><td>55.4</td><td>82.9</td><td>25.6</td><td>75.3</td></tr></table>
324
+
325
+ Table 9: Results using an All Convolutional Network architectures. Results are percentages and an average of 10 runs.
326
+
327
+ # E OUTLIER EXPOSURE WITH $H ( \mathcal { U } ; p )$ SCORES DOES BETTER THAN WITH MSP SCORES
328
+
329
+ While − maxc $f _ { c } ( x )$ tends to be a discriminative OOD score for example $x$ , models with OE can do better by using $- \dot { H } ( \mathcal { U } ; f ( x ) )$ instead. This alternative accounts for classes with small probability mass rather than just the class with most mass. Additionally, the model with OE is trained to give anomalous examples a uniform posterior not just a lower MSP. This simple change roundly aids performance as shown in Table 10. This general performance improvement is most pronounced on datasets with many classes. For instance, when $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } } =$ Tiny ImageNet and $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } } =$ Gaussian, swapping the MSP score with the $H ( \mathcal { U } ; f ( x ) )$ score increases the AUROC $7 6 . 5 \%$ to $9 7 . 1 \%$ .
330
+
331
+ <table><tr><td rowspan="2">Din</td><td colspan="2">FPR95↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR ↑</td></tr><tr><td>MSP</td><td>H(U;p)</td><td>MSP</td><td>H(U;p)</td><td>MSP</td><td>H(U;p)</td></tr><tr><td>CIFAR-10</td><td>9.50</td><td>9.04</td><td>97.81</td><td>97.92</td><td>90.48</td><td>90.85</td></tr><tr><td>CIFAR-100</td><td>38.50</td><td>33.31</td><td>87.89</td><td>88.46</td><td>58.15</td><td>58.30</td></tr><tr><td>Tiny ImageNet</td><td>13.99</td><td>7.45</td><td>92.18</td><td>95.45</td><td>79.26</td><td>85.71</td></tr><tr><td>Places365</td><td>28.21</td><td>19.58</td><td>90.57</td><td>92.53</td><td>71.04</td><td>74.39</td></tr></table>
332
+
333
+ Table 10: Comparison between the maximum softmax probability (MSP) and $H ( \mathcal { U } ; p )$ OOD scoring methods on a network fine-tuned with OE. Results are percentages and an average of 10 runs. For example, CIFAR-10 results are averaged over “Gaussian,” “Rademacher,” . . ., or “CIFAR-100” measurements.
334
+
335
+ # F EXPANDED LANGUAGE MODELING RESULTS
336
+
337
+ Detailed OOD detection results with language modeling datasets are shown in Table 11.
338
+
339
+ <table><tr><td rowspan="2">Din</td><td rowspan="2">Dest</td><td colspan="2">FPR90↓</td><td colspan="2">AUROC ↑</td><td colspan="2">AUPR↑</td></tr><tr><td>BPC</td><td>+OE</td><td>BPC</td><td>+OE</td><td>BPC</td><td>+OE</td></tr><tr><td rowspan="5">PTB Char</td><td>Answers</td><td>96.9</td><td>49.93</td><td>82.1</td><td>89.6</td><td>81.0</td><td>89.3</td></tr><tr><td>Email</td><td>99.5</td><td>90.64</td><td>80.6</td><td>88.6</td><td>79.4</td><td>89.1</td></tr><tr><td>Newsgroup</td><td>99.8</td><td>99.39</td><td>75.2</td><td>85.0</td><td>73.3</td><td>85.5</td></tr><tr><td>Reviews</td><td>99.0</td><td>74.64</td><td>80.8</td><td>89.0</td><td>79.2</td><td>89.6</td></tr><tr><td>Weblog</td><td>100.0</td><td>100.0</td><td>68.9</td><td>79.2</td><td>67.3</td><td>80.1</td></tr><tr><td colspan="2">Mean</td><td>99.0</td><td>89.4</td><td>77.5</td><td>86.3</td><td>76.0</td><td>86.7</td></tr><tr><td rowspan="5">PTB Word</td><td>Answers</td><td>41.4</td><td>3.65</td><td>81.4</td><td>98.0</td><td>40.5</td><td>94.7</td></tr><tr><td>Email</td><td>64.9</td><td>0.17</td><td>78.1</td><td>99.6</td><td>44.5</td><td>98.9</td></tr><tr><td>Newsgroup</td><td>54.9</td><td>0.17</td><td>77.8</td><td>99.5</td><td>39.8</td><td>98.3</td></tr><tr><td>Reviews</td><td>30.5</td><td>0.85</td><td>88.0</td><td>98.9</td><td>53.6</td><td>96.8</td></tr><tr><td>Weblog</td><td>50.8</td><td>0.08</td><td>80.7</td><td>99.9</td><td>41.5</td><td>99.7</td></tr><tr><td colspan="2">Mean</td><td>48.5</td><td>0.98</td><td>81.2</td><td>99.2</td><td>44.0</td><td>97.8</td></tr></table>
340
+
341
+ Table 11: OOD detection results on Penn Treebank examples and English Web Treebank outliers. All results are percentages.
342
+
343
+ The $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets come from the English Web Treebank (Bies et al., 2012), which contains text from five different domains: Yahoo! Answers, emails, newsgroups, product reviews, and weblogs. Other
344
+
345
+ NLP $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ datasets we consider do not satisfy the language modeling assumption of continuity in the examples, so we do not evaluate on them.
346
+
347
+ # G CONFIDENCE CALIBRATION
348
+
349
+ Models integrated into a decision making process should indicate when they are trustworthy, and such models should not have inordinate confidence in their predictions. In an effort to combat a false sense of certainty from overconfident models, we aim to calibrate model confidence. A model is calibrated if its predicted probabilities match empirical frequencies. Thus if a calibrated model predicts an event with $30 \%$ probability, then $30 \%$ of the time the event transpires. Prior research (Guo et al., 2017; Nguyen & O’Connor, 2015; Kuleshov & Liang, 2015) considers calibrating systems where test-time queries are samples from $\mathcal { D } _ { \mathrm { i n } }$ , but systems also encounter samples from Dtest and should also ascribe low confidence to these samples. Hence, we use OE to control the confidence on these samples.
350
+
351
+ # G.1 METRICS
352
+
353
+ In order to evaluate a multiclass classifier’s calibration, we present three metrics. First we establish context. For input example $X \in \mathcal { X }$ , let $Y \in \mathcal { Y } \overset { } { = } \{ 1 , 2 , \ldots , k \}$ be the ground truth class. Let $\widehat { Y }$ be the model’s class prediction, and let $C$ be the corresponding model confidence or prediction probability. Denote the set of prediction-label pairs made by the model with $S = \{ ( \widehat { y } _ { 1 } , \widehat { c } _ { 1 } ) , ( \widehat { y } _ { 2 } , \widehat { c _ { 2 } } ) , \ldots , ( \widehat { y } _ { n } , c _ { n } ) \}$ .
354
+
355
+ RMS and MAD Calibration Error. The Root Mean Square Calibration Error measures the square root of the expected squared difference between confidence and accuracy at a confidence level. It has the formula $\sqrt { \mathbb { E } _ { C } [ ( \mathbb { P } ( Y = \widehat { Y } | C = c ) - c ) ^ { 2 } ] }$ . A similar formulation which less severely penalizes large confidence-accuracy deviations is the Mean Absolute Value Calibration error, written $\mathbf { \dot { \mathbb { E } } } _ { C } [ | \mathbb { P } ( Y = \mathbf { \overline { { Y } } } | C = c ) - c | ]$ . The MAD Calibration Error is a lower bound of the RMS Calibration Error. To empirically estimate these miscalibration measures, we partition the $n$ samples of $S$ into $b$ bins $\{ B _ { 1 } , \bar { B } _ { 2 } , \dots , \bar { B } _ { b } \}$ with approximately 100 samples in each bin. Unlike Guo et al. (2017), bins are not equally spaced since the distribution of confidence values is not uniform but dynamic. Concretely, the RMS Calibration Error is estimated with the numerically stable formula
356
+
357
+ $$
358
+ \sqrt { \sum _ { i = 1 } ^ { b } \frac { | B _ { i } | } { n } \biggl ( \frac { 1 } { | B _ { i } | } \sum _ { k \in B _ { i } } \mathbb { 1 } \bigl ( y _ { k } = \widehat { y } _ { k } \bigr ) - \frac { 1 } { | B _ { i } | } \sum _ { k \in B _ { i } } c _ { k } \biggr ) ^ { 2 } } .
359
+ $$
360
+
361
+ Along similar lines, the MAD Calibration Error—which is an improper scoring rule due to its use of absolute differences rather than squared differences—is estimated with
362
+
363
+ $$
364
+ \sum _ { i = 1 } ^ { b } \frac { | B _ { i } | } { n } \bigg | \frac { 1 } { | B _ { i } | } \sum _ { k \in B _ { i } } \mathbb { 1 } ( y _ { k } = \widehat { y } _ { k } ) - \frac { 1 } { | B _ { i } | } \sum _ { k \in B _ { i } } c _ { k } \bigg | .
365
+ $$
366
+
367
+ Soft F1 Score. If a classifier makes only a few mistakes, then most examples should have high confidence. But if the classifier gives all predictions high confidence, including its mistakes, then the previous metrics will indicate that the model is calibrated on the vast majority of instances, despite having systematic miscalibration. The Soft F1 score (Pastor-Pellicer et al., 2013; Hendrycks & Gimpel, 2017) is suited for measuring the calibration of a system where there is an acute imbalance between mistaken and correct decisions. Since we treat mistakes a positive examples, we can write the model’s confidence that the examples are anomalous with $c _ { a } = ( 1 - c _ { 1 } , 1 - c _ { 2 } , \ldots , 1 - c _ { n } )$ . To indicate that an example is positive (mistaken), we use the vector $m \in \{ 0 , 1 \} ^ { n }$ such that $m _ { i } =$ $\mathbb { 1 } ( y _ { i } \neq \widehat { y _ { i } } )$ for $1 \leq i \leq n$ . Then the Soft F1 score is
368
+
369
+ $$
370
+ { \frac { c _ { a } ^ { \mathsf { T } } m } { 1 ^ { \mathsf { T } } ( c _ { a } + m ) / 2 } } .
371
+ $$
372
+
373
+ Table 12: Calibration results for the temperature tuned baseline and temperature tuning $+ \mathrm { O E }$ .
374
+
375
+ <table><tr><td rowspan="2">Din</td><td>RMS Calib.</td><td>Error↓</td><td>MAD Calib.</td><td>Error↓</td><td>Soft F1 Score ↑</td></tr><tr><td>Temperature</td><td>+OE</td><td>Temperature</td><td>+OE</td><td>Temperature +OE</td></tr><tr><td>SVHN</td><td>22.3</td><td>4.8</td><td>10.9</td><td>2.4</td><td>52.1 87.9</td></tr><tr><td>CIFAR-10</td><td>19.4</td><td>9.3</td><td>12.6</td><td>5.6</td><td>39.9 69.7</td></tr><tr><td>CIFAR-100</td><td>14.7</td><td>8.2</td><td>11.3</td><td>6.5</td><td>52.8 65.8</td></tr><tr><td>Tiny ImageNet</td><td>12.0</td><td>6.9</td><td>9.0</td><td>4.8</td><td>62.9 72.2</td></tr></table>
376
+
377
+ # G.2 SETUP AND RESULTS
378
+
379
+ There are many ways to estimate a classifier’s confidence. One way is to bind a logistic regression branch onto the network, so that confidence values are in $[ 0 , 1 ]$ . Other confidence estimates use the model’s logits $l \in \mathbb { R } ^ { k }$ , such as the estimate $\sigma ( \operatorname* { m a x } _ { i } l _ { i } ) \ \bar { \in } \ [ 0 , 1 ]$ , where $\sigma$ is the logistic sigmoid. Another common confidence estimate is $\begin{array} { r } { \operatorname* { n a x } _ { i } \left[ \exp { ( l _ { i } ) } / \sum _ { j = 1 } ^ { k } \exp { ( l _ { j } ) } \right] } \end{array}$ . A modification of this estimate is our baseline.
380
+
381
+ Softmax Temperature Tuning. Guo et al. (2017) show that good calibration can be obtained by including a tuned temperature parameter into the softmax: $\begin{array} { r } { \exp ( l _ { i } / T ) / \sum _ { j = 1 } ^ { k } \exp ( l _ { j } / T ) } \end{array}$ . We tune $T$ bto maximize log likelihood on a validation set after the $ \widehat { p } ( y ~ = ~ i ~ | ~ x \rangle ~ =$
382
+
383
+ Results. In this calibration experiment, the baseline is confidence estimation with softmax temperature tuning. Therefore, we train SVHN, CIFAR-10, CIFAR-100, and Tiny ImageNet classifiers with 5000, 5000, 5000, and 10000 training examples held out, respectively. A copy of this classifier is fine-tuned with Outlier Exposure. Then we determine the optimal temperatures of the original and OE-fine-tuned classifiers on the held-out exampwe take equally many examples from a given in-distribution dataset $\mathcal { D } _ { \mathrm { i n } } ^ { \mathrm { t e s t } }$ To measure calibrand OOD dataset $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ Out-of-distribution points are understood to be incorrectly classified since their label is not in the model’s output space, so calibrated models should assign these out-of-distribution points low confidence. Results are in Table 12. Outlier Exposure noticeably improves model calibration.
384
+
385
+ # G.3 POSTERIOR RESCALING
386
+
387
+ While temperature tuning improves calibration, the confidence estimate ${ \widehat { p } } ( y = i \mid x )$ cannot be less than $1 / k$ , $k$ bthe number of classes. For an out-of-distribution example like Gaussian Noise, a good model should have no confidence in its prediction over $k$ classes. One possibility is to add a reject option, or a $( k + 1 ) \mathrm { s t }$ class, which we cover in Section 5. A simpler option we found is to perform an affine transformation of $\widehat { p } ( y = i \mid x ) \in [ 1 / k , 1 ]$ with the formula $( \widehat { p } ( \bar { y } = i \mid x ) - 1 / k ) / ( \bar { 1 } - 1 / k ) \in$ $[ 0 , 1 ]$ b b. This simple transformation makes it possible for a network to express no confidence on an out-of-distribution input and improves calibration performance. As Table 13 shows, this simple 0-1 posterior rescaling technique consistently improves calibration, and the model fine-tuned with OE using temperature tuning and posterior rescaling achieved large calibration improvements.
388
+
389
+ <table><tr><td></td><td colspan="3">RMS Calib.Error↓</td><td colspan="3">MAD Calib. Error↓</td><td colspan="3">Soft F1 Score ↑</td></tr><tr><td>Din</td><td>Temp</td><td colspan="2">+Rescale+OE</td><td>Temp</td><td colspan="2">+Rescale+OE</td><td>Temp</td><td colspan="2">+Rescale+OE</td></tr><tr><td>SVHN</td><td>22.3</td><td>20.8</td><td>3.0</td><td>10.9</td><td>10.1</td><td>1.0</td><td>52.1</td><td>56.1</td><td>92.7</td></tr><tr><td>CIFAR-10</td><td>19.4</td><td>17.8</td><td>6.7</td><td>12.6</td><td>11.7</td><td>4.1</td><td>39.9</td><td>42.8</td><td>73.9</td></tr><tr><td>CIFAR-100</td><td>14.7</td><td>14.4</td><td>8.1</td><td>11.3</td><td>11.1</td><td>6.4</td><td>52.8</td><td>53.1</td><td>66.1</td></tr><tr><td>Tiny ImageNet</td><td>12.0</td><td>11.9</td><td>6.9</td><td>9.0</td><td>8.8</td><td>4.8</td><td>62.9</td><td>63.1</td><td>72.3</td></tr></table>
390
+
391
+ Table 13: Calibration results for the softmax temperature tuning baseline, the same baseline after adding Posterior Rescaling, and temperature tuning $^ +$ Posterior Rescaling $+ \mathrm { O E }$ .
392
+
393
+ ![](images/c0d87cbc8f88599c3c8368e71b80eefdf98d356c5d7af4c5424064d60846f687.jpg)
394
+ Figure 4: ROC curves with Tiny ImageNet as $\mathcal { D } _ { \mathrm { i n } }$ and Textures, Places365, LSUN, and ImageNet as $\mathcal { D } _ { \mathrm { o u t } } ^ { \mathrm { t e s t } }$ . Figures show the curves corresponding to the maximum softmax probability (MSP) baseline detector and the MSP detector with Outlier Exposure (OE).
395
+
396
+ In Figure 4, we show additional PR and ROC Curves using the Tiny ImageNet dataset and various anomalous distributions.
parse/train/HyxCxhRcY7/HyxCxhRcY7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxCxhRcY7/HyxCxhRcY7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxCxhRcY7/HyxCxhRcY7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkFBJv9gg/rkFBJv9gg.md ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING FEATURES OF MUSIC FROM SCRATCH
2
+
3
+ John Thickstun1, Zaid Harchaoui2 & Sham M. Kakade1,2
4
+ 1 Department of Computer Science and Engineering, 2 Department of Statistics
5
+ University of Washington
6
+ Seattle, WA 98195, USA
7
+ {thickstn,sham}@cs.washington.edu, name@uw.edu
8
+
9
+ # ABSTRACT
10
+
11
+ This paper introduces a new large-scale music dataset, MusicNet, to serve as a source of supervision and evaluation of machine learning methods for music research. MusicNet consists of hundreds of freely-licensed classical music recordings by 10 composers, written for 11 instruments, together with instrument/note annotations resulting in over 1 million temporal labels on 34 hours of chamber music performances under various studio and microphone conditions.
12
+
13
+ The paper defines a multi-label classification task to predict notes in musical recordings, along with an evaluation protocol, and benchmarks several machine learning architectures for this task: i) learning from spectrogram features; ii) endto-end learning with a neural net; iii) end-to-end learning with a convolutional neural net. These experiments show that end-to-end models trained for note prediction learn frequency selective filters as a low-level representation of audio.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Music research has benefited recently from the effectiveness of machine learning methods on a wide range of problems from music recommendation (van den Oord et al., 2013; McFee & Lanckriet, 2011) to music generation (Hadjeres & Pachet, 2016); see also the recent demos of the Google Magenta project1. As of today, there is no large publicly available labeled dataset for the simple yet challenging task of note prediction for classical music. The MIREX MultiF0 Development Set (Benetos & Dixon, 2011) and the Bach10 dataset (Duan et al., 2011) together contain less than 7 minutes of labeled music. These datasets were designed for method evaluation, not for training supervised learning methods.
18
+
19
+ This situation stands in contrast to other application domains of machine learning. For instance, in computer vision large labeled datasets such as ImageNet (Russakovsky et al., 2015) are fruitfully used to train end-to-end learning architectures. Learned feature representations have outperformed traditional hand-crafted low-level visual features and lead to tremendous progress for image classification. In (Humphrey et al., 2012), Humphrey, Bello, and LeCun issued a call to action: “Deep architectures often require a large amount of labeled data for supervised training, a luxury music informatics has never really enjoyed. Given the proven success of supervised methods, MIR would likely benefit a good deal from a concentrated effort in the curation of sharable data in a sustainable manner.”
20
+
21
+ This paper introduces a new large labeled dataset, MusicNet, which is publicly available2 as a resource for learning feature representations of music. MusicNet is a corpus of aligned labels on freely-licensed classical music recordings, made possible by licensing initiatives of the European Archive, the Isabella Stewart Gardner Museum, Musopen, and various individual artists. The dataset consists of 34 hours of human-verified aligned recordings, containing a total of 1, 299, 329 individual labels on segments of these recordings. Table 1 summarizes statistics of MusicNet.
22
+
23
+ The focus of this paper’s experiments is to learn low-level features of music from raw audio data. In Sect. 4, we will construct a multi-label classification task to predict notes in musical recordings, along with an evaluation protocol. We will consider a variety of machine learning architectures for this task: i) learning from spectrogram features; ii) end-to-end learning with a neural net; iii) endto-end learning with a convolutional neural net. Each of the proposed end-to-end models learns a set of frequency selective filters as low-level features of musical audio, which are similar in spirit to a spectrogram. The learned low-level features are visualized in Figure 1. The learned features modestly outperform spectrogram features; we will explore possible reasons for this in Sect. 5.
24
+
25
+ MusicNet
26
+ Table 1: Summary statistics of the MusicNet dataset. See Sect. 2 for further discussion of MusicNet and Sect. 3 for a description of the labelling process. Appendix A discusses the methodology for computing error rate of this process.
27
+
28
+ <table><tr><td> Minutes</td><td>Labels</td><td>Recordings</td><td>Error Rate</td><td></td><td>Composer</td><td> Minutes</td><td>Labels</td></tr><tr><td>2,048</td><td>1,299,329</td><td>330</td><td colspan="2">4.0%</td><td>Beethoven Schubert</td><td>1,085 253</td><td>736,072</td></tr><tr><td colspan="6">Labels</td><td>192</td><td>133,109</td><td>146,648</td></tr><tr><td colspan="6">Ensemble Minutes Solo Piano 917</td><td>Brahms Mozart Bach</td><td>156</td><td>99,641</td></tr><tr><td colspan="6"> String Quartet</td><td>Dvorak</td><td>184</td><td>62,782</td></tr><tr><td colspan="6"> Accompanied Violin</td><td></td><td>56</td><td>46,261</td></tr><tr><td colspan="6"> Piano Quartet</td><td>Cambini</td><td>43</td><td>24,820</td></tr><tr><td colspan="6"> Accompanied Cello</td><td>Faure</td><td></td><td>22,349</td></tr><tr><td colspan="6"> String Sextet</td><td>Ravel</td><td>27</td><td>21,243</td></tr><tr><td colspan="6">Piano Trio</td><td>Haydn</td><td></td><td>6,404</td></tr><tr><td colspan="6">Piano Quintet</td><td></td><td></td><td></td></tr><tr><td colspan="6">25 Wind Quintet 43</td><td> Instrument</td><td> Minutes</td><td>Labels</td></tr><tr><td colspan="6">Horn Piano Trio 30</td><td>Piano</td><td>1346</td><td>794,532</td></tr><tr><td colspan="6">Wind Octet 23</td><td>Violin</td><td>874</td><td>230,484</td></tr><tr><td colspan="6">Clarinet-Cello-Piano Trio</td><td>Viola</td><td>621</td><td>99,407</td></tr><tr><td colspan="6">2524 Pairs Clarinet-Horn-Bassoon</td><td>Cello</td><td>800</td><td>99,132</td></tr><tr><td colspan="6">Clarinet Quintet 26</td><td>Clarinet</td><td>173</td><td>24,426</td></tr><tr><td colspan="6">Solo Cello 49</td><td>Bassoon</td><td>102</td><td>14,954</td></tr><tr><td colspan="6">Accompanied Clarinet 20</td><td>Horn</td><td>132</td><td>11,468</td></tr><tr><td colspan="6">10,049 Solo Violin 30</td><td>Oboe</td><td>66</td><td></td></tr><tr><td colspan="6">Violin and Harpsichord 16</td><td>Flute</td><td>69</td><td>8,696</td></tr><tr><td colspan="6">Viola Quintet 15</td><td></td><td></td><td>8,310</td></tr><tr><td colspan="6"> Solo Flute</td><td>Harpsichord</td><td>16</td><td>4,914</td></tr><tr><td colspan="6"></td><td> String Bass</td><td>38</td><td>3,006</td></tr><tr><td>Piano</td><td>Violin</td><td>Cello</td><td>Viola</td><td>Clarinet Bassoon</td><td>Horn</td><td>Oboe</td><td></td><td></td><td></td></tr><tr><td colspan="6"></td><td></td><td>Flute</td><td>Bass Harpsichord</td><td></td></tr><tr><td>Notes</td><td>83</td><td>51</td><td>51 51</td><td>41</td><td>36</td><td>41 28</td><td>37</td><td>43</td><td>51</td></tr></table>
29
+
30
+ ![](images/11de063179b53a961d7c5abb73ccbb146c9b2303b58b47a462d7f6fd90a294d7.jpg)
31
+ Figure 1: (Left) Bottom-level weights learned by a two-layer ReLU network trained on 16,384- samples windows $( \approx 1 / 3$ seconds) of raw audio with $\ell _ { 2 }$ regularized $\lambda = 1$ ) square loss for multilabel note classification on raw audio recordings. (Middle) Magnified view of the center of each set of weights. (Right) The truncated frequency spectrum of each set of weights.
32
+
33
+ # 2 MUSICNET
34
+
35
+ Related Works. The experiments in this paper suggest that large amounts of data are necessary to recovering useful features from music; see Sect. 4.5 for details. The Lakh dataset, released this summer based on the work of Raffel & Ellis (2015), offers note-level annotations for many 30- second clips of pop music in the Million Song Dataset (McFee et al., 2012). The syncRWC dataset is a subset of the RWC dataset (Goto et al., 2003) consisting of 61 recordings aligned to scores using the protocol described in Ewert et al. (2009). The MAPS dataset (Emiya et al., 2010) is a mixture of acoustic and synthesized data, which expressive models could overfit. The Mazurka project3 consists of commercial music. Access to the RWC and Mazurka datasets comes at both a cost and inconvenience. Both the MAPS and Mazurka datasets are comprised entirely of piano music.
36
+
37
+ The MusicNet Dataset. MusicNet is a public collection of labels (exemplified in Table 2) for 330 freely-licensed classical music recordings of a variety of instruments arranged in small chamber ensembles under various studio and microphone conditions. The recordings average 6 minutes in length. The shortest recording in the dataset is 55 seconds and the longest is almost 18 minutes. Table 1 summarizes the statistics of MusicNet with breakdowns into various types of labels. Table 2 demonstrates examples of labels from the MusicNet dataset.
38
+
39
+ <table><tr><td>Start</td><td>End</td><td>Instrument</td><td>Note</td><td>Measure</td><td>Beat</td><td>Note Value</td></tr><tr><td>45.29</td><td>45.49</td><td>Violin</td><td>G5</td><td>21</td><td>3</td><td>Eighth</td></tr><tr><td>48.99</td><td>50.13</td><td>Cello</td><td>A#3</td><td>24</td><td>2</td><td>Dotted Half</td></tr><tr><td>82.91</td><td>83.12</td><td>Viola</td><td>C5</td><td>51</td><td>2.5</td><td>Eighth</td></tr></table>
40
+
41
+ Table 2: MusicNet labels on the Pascal String Quartet’s recording of Beethoven’s Opus 127, String Quartet No. 12 in E-flat major, I - Maestoso - Allegro. Creative commons use of this recording is made possible by the work of the European Archive.
42
+
43
+ MusicNet labels come from 513 label classes using the most naive definition of a class: distinct instrument/note combinations. The breakdowns reported in Table 1 indicate the number of distinct notes that appear for each instrument in our dataset. For example, while a piano has 88 keys only 83 of them are performed in MusicNet. For many tasks a note’s value will be a part of its label, in which case the number of classes will expand by approximately an order of magnitude after taking the cartesian product of the set of classes with the set of values: quarter-note, eighth-note, triplet, etc. Labels regularly overlap in the time series, creating polyphonic multi-labels.
44
+
45
+ MusicNet is skewed towards Beethoven, thanks to the composer’s popularity among performing ensembles. The dataset is also skewed towards Solo Piano due to an abundance of digital scores available for piano works. For training purposes, researchers may want to augment this dataset to increase coverage of instruments such as Flute and Oboe that are under-represented in MusicNet. Commercial recordings could be used for this purpose and labeled using the alignment protocol described in Sect. 3.
46
+
47
+ # 3 DATASET CONSTRUCTION
48
+
49
+ MusicNet recordings are freely-licensed classical music collected from the European Archive, the Isabella Stewart Gardner Museum, Musopen, and various artists’ collections. The MusicNet labels are retrieved from digital MIDI scores, collected from various archives including the Classical Archives (classicalarchives.com) Suzuchan’s Classic MIDI (suzumidi.com) and HarfeSoft (harfesoft.de). The methods in this section produce an alignment between a digital score and a corresponding freely-licensed recording. A recording is labeled with events in the score, associated to times in the performance via the alignment. Scores containing 6, 550, 760 additional labels are available on request to researchers who wish to augment MusicNet with commercial recordings.
50
+
51
+ Music-to-score alignment is a long-standing problem in the music research and signal processing communities (Raphael, 1999). Dynamic time warping (DTW) is a classical approach to this problem. An early use of DTW for music alignment is Orio & Schwarz (2001) where a recording is aligned to a crude synthesis of its score, designed to capture some of the structure of an overtone series. The method described in this paper aligns recordings to synthesized performances of scores, using side information from a commercial synthesizer. To the best of our knowledge, commercial synthesis was first used for the purpose of alignment in Turetsky & Ellis (2003).
52
+
53
+ The majority of previous work on alignment focuses on pop music. This is more challenging than aligning classical music because commercial synthesizers do a poor job reproducing the wide variety of vocal and instrumental timbers that appear in modern pop. Furthermore, pop features inharmonic instruments such as drums for which natural metrics on frequency representations–including $\ell ^ { 2 }$ –are not meaningful. For classical music to score alignment, a variant of the techniques described in Turetsky & Ellis (2003) works robustly. This method is described below; we discuss the evaluation of this procedure and its error rate on MusicNet in the appendix.
54
+
55
+ ![](images/5b140393006a315d552c21453c6ab01f5f4265167475eee6b5afb8c1c125a9a5.jpg)
56
+ Figure 2: (Left) Heatmap visualization of local alignment costs between the synthesized and recorded spectrograms, with the optimal alignment path in red. The block from $x = 0$ to $x = 1 0 0$ frames corresponds to silence at the beginning of the recorded performance. The slope of the alignment can be interpreted as an instantaneous tempo ratio between the recorded and synthesized performances. The curvature in the alignment between $x \ = \ 1 0 0$ and $x \ = \ 1 7 5$ corresponds to an extension of the first notes by the performer. (Right) Annotation of note onsets on the spectrogram of the recorded performance, determined by the alignment shown on the left.
57
+
58
+ In order to align the performance with a score, we need to define a metric that compares short segments of the score with segments of a performance. Musical scores can be expressed as binary vectors in $E \times K$ where $E = \{ 1 , \ldots , n \}$ and $K$ is a dictionary of notes. Performances reside in $\mathbb { R } ^ { T \times p }$ , where $T \in \{ 1 , \dots , m \}$ is a sequence of time steps and $p$ is the dimensionality of the spectrogram at time $T$ . Given some local cost function $C : ( \mathbb { R } ^ { p } , K ) \to \mathbb { R }$ , a score $\mathbf { Y } \in E \times K$ , and a performance $\mathbf { X } \in \mathbb { R } ^ { T \times p }$ , the alignment problem is to
59
+
60
+ $$
61
+ \begin{array} { r l r } & { \underset { t \in \mathbb { Z } ^ { n } } { \mathrm { m i n i m i z e } } } & { \displaystyle \sum _ { i = 1 } ^ { n } C ( \mathbf { X } _ { t _ { i } } , \mathbf { Y } _ { i } ) } \\ & { \mathrm { s u b j e c t ~ t o } } & { t _ { 0 } = 0 , } \\ & { t _ { n } = m , } \\ & { t _ { i } \leq t _ { j } } & { \mathrm { i f } i < j . } \end{array}
62
+ $$
63
+
64
+ Dynamic time warping gives an exact solution to the problem in $\mathcal { O } ( m n )$ time and space.
65
+
66
+ The success of dynamic time warping depends on the metric used to compare the score and the performance. Previous works can be broadly categorized into three groups that define an alignment cost $C$ between segments of music $\mathbf { X }$ and score $\mathbf { y }$ by injecting them into a common normed space via maps $\Psi$ and $\Phi$ :
67
+
68
+ $$
69
+ C ( \mathbf { x } , \mathbf { y } ) = \| \Psi ( \mathbf { x } ) - \Phi ( \mathbf { y } ) \|
70
+ $$
71
+
72
+ The most popular approach–and the one adopted by this paper–maps the score into the space of the performance (Orio & Schwarz, 2001; Turetsky $\&$ Ellis, 2003; Soulez et al., 2003). An alternative approach maps both the score and performance into some third space, commonly a chromogram space (Hu et al., 2003; Izmirli $\&$ Dannenberg, 2010; Joder et al., 2013). Finally, some recent methods consider alignment in score space, taking $\Phi = \mathrm { I d }$ and learning $\Psi$ (Garreau et al., 2014; Lajugie et al., 2016).
73
+
74
+ With reference to the general cost (2), we must specify the maps $\Psi , \Phi$ , and the norm $\| \cdot \|$ . We compute the cost in the performance feature space $\mathbb { R } ^ { p }$ , hence we take $\Psi = \mathrm { I d }$ . For the features, we use the log-spectrogram with a window size of 2048 samples. We use a stride of 512 samples between features. Hence adjacent feature frames are computed with $7 5 \%$ overlap. For audio sampled at $4 4 . 1 \mathrm { k H z }$ , this results in a feature representation with 4 $\mathrm { \Delta } 4 , 1 0 0 / 5 1 2 \approx 8 6 $ frames per second. A discussion of these parameter choices can be found in the appendix. The map $\Phi$ is computed by a synthetizer: we used Plogue’s Sforzando sampler together with Garritan’s Personal Orchestra 4 sample library.
75
+
76
+ For a (pseudo)-metric on $\mathbb { R } ^ { p }$ , we take the $\ell ^ { 2 }$ norm $\| \cdot \| _ { 2 }$ on the low 50 dimensions of $\mathbb { R } ^ { p }$ . Recall that $\mathbb { R } ^ { p }$ represents Fourier components, so we can roughly interpret the $k$ ’th coordinate of $\mathbb { R } ^ { p }$ as the energy associated with the frequency $k \times ( 2 2 , 0 5 0 / \mathrm { 1 0 2 4 } ) \approx \bar { k } \times 2 2 . 5 \mathrm { H z }$ , where $2 2 , 0 5 0 \mathrm { H z }$ is the Nyquist frequency of a signal sampled at $4 4 . 1 \mathrm { k H z }$ . The 50 dimension cutoff is chosen empirically: we observe that the resulting alignments are more accurate using a small number of low-frequency bins rather than the full space $\mathbb { R } ^ { p }$ . Synthesizers do not accurately reproduce the high-frequency features of a musical instrument; by ignoring the high frequencies, we align on a part of the spectrum where the synthesis is most accurate. The proposed choice of cutoff is aggressive compared to usual settings; for instance, Turetsky & Ellis (2003) propose cutoffs in the $2 . 5 \mathrm { k H z }$ range. The fundamental frequencies of many notes in MusicNet are higher than the $5 0 \times 2 2 . 5 \mathrm { H z } \approx 1 \mathrm { k H z }$ cutoff. Nevertheless, we find that all notes align well using only the low-frequency information.
77
+
78
+ # 4 METHODS
79
+
80
+ We consider identification of notes in a segment of audio $\textbf { x } \in \ \mathcal { X }$ as a multi-label classification problem, modeled as follows. Assign each audio segment a binary label vector $\mathbf { y } \in \{ 0 , 1 \} ^ { 1 2 8 }$ . The 128 dimensions correspond to frequency codes for notes, and ${ \bf y } _ { n } = 1$ if note $n$ is present at the midpoint of $\mathbf { x }$ . Let $f : \mathcal { X } \to \mathcal { H }$ indicate a feature map. We train a multivariate linear regression to predict $\hat { \mathbf { y } }$ given $f ( \mathbf { x } )$ , which we optimize for square loss. The vector $\hat { \mathbf { y } }$ can be interpreted as a multi-label estimate of notes in $\mathbf { x }$ by choosing a threshold $c$ and predicting label $n$ iff ${ \hat { \mathbf { y } } } _ { n } > c$ . We search for the value $c$ that maximizes $F _ { 1 }$ -score on a sampled subset of MusicNet.
81
+
82
+ # 4.1 RELATED WORK
83
+
84
+ Learning on raw audio is studied in both the music and speech communities. Supervised learning on music has been driven by access to labeled datasets. Pop music labeled with chords (Harte, 2010) has lead to a long line of work on chord recognition, most recently Korzeniowsk & Widmer (2016). Genre labels and other metadata has also attracted work on representation learning, for example Dieleman & Schrauwen (2014). There is also substantial work modeling raw audio representations of speech; a current example is Tokuda & Zen (2016). Recent work from Google DeepMind explores generative models of raw audio, applied to both speech and music (van den Oord et al., 2016).
85
+
86
+ The music community has worked extensively on a closely related problem to note prediction: fundamental frequency estimation. This is the analysis of fundamental (in contrast to overtone) frequencies in short audio segments; these frequencies are typically considered as proxies for notes. Because access to large labeled datasets was historically limited, most of these works are unsupervised. A good overview of this literature can be found in Benetos et al. (2013). Variants of non-negative matrix factorization are popular for this task; a recent example is Khlif & Sethu (2015). A different line of work models audio probabilistically, for example Berg-Kirkpatrick et al. (2014). Recent work by Kelz et al. (2016) explores supervised models, trained using the MAPS piano dataset.
87
+
88
+ # 4.2 MULTI-LAYER PERCEPTRONS
89
+
90
+ We build a two-layer network with features $f _ { i } ( \mathbf { x } ) = \log \left( 1 + \operatorname* { m a x } ( 0 , \mathbf { w } _ { i } ^ { T } \mathbf { x } ) \right)$ . We find that compression introduced by a logarithm improves performance versus a standard ReLU network (see Table 3). Figure 1 illustrates a selection of weights $w _ { i }$ learned by the bottom layer of this network. The weights learned by the network are modulated sinusoids. This explains the effectiveness of spectrograms as a low-level representation of musical audio. The weights decay at the boundaries, analogous to Gabor filters in vision. This behavior is explained by the labeling methodology: the audio segments used here are approximately $1 / 3$ of a second long, and a segment is given a note label if that note is on in the center of the segment. Therefore information at the boundaries of the segment is less useful for prediction than information nearer to the center.
91
+
92
+ # 4.3 (LOG-)SPECTROGRAMS
93
+
94
+ Spectrograms are an engineered feature representation for musical audio signals, available in popular software packages such as librosa (McFee et al., 2015). Spectrograms (resp. log-spectrograms) are closely related to a two-layer ReLU network (resp. the log-ReLU network described above). If $\mathbf { x } = ( x _ { 1 } , \dots , x _ { t } )$ denotes a segment of an audio signal of length $t$ then we can define
95
+
96
+ $$
97
+ \mathrm { S p e c } _ { k } ( \mathbf { x } ) \equiv \left| \sum _ { s = 0 } ^ { t - 1 } e ^ { - 2 \pi i k s / t } x _ { s } \right| ^ { 2 } = \left( \sum _ { s = 0 } ^ { t - 1 } \cos ( 2 \pi k s / t ) x _ { s } \right) ^ { 2 } + \left( \sum _ { s = 0 } ^ { t - 1 } \sin ( 2 \pi k s / t ) x _ { s } \right) ^ { 2 } .
98
+ $$
99
+
100
+ These features are not precisely learnable by a two-layer ReLU network. But recall that $| x | =$ $\operatorname* { m a x } ( 0 , x ) + \operatorname* { m a x } ( 0 , - \bar { x } )$ and if we take weight vectors ${ \bf u } , { \bf v } \in \mathbb { R } ^ { T }$ with $u _ { s } = \cos ( 2 \pi k s / t )$ and $v _ { s } = \sin ( 2 \pi k s / t )$ then the ReLU network can learn
101
+
102
+ $$
103
+ f _ { k , \mathrm { c o s } } ( \mathbf { x } ) + f _ { k , \mathrm { s i n } } ( \mathbf { x } ) \equiv | \mathbf { u } ^ { T } \mathbf { x } | + | \mathbf { v } ^ { T } \mathbf { x } | = \left| \sum _ { s = 0 } ^ { t - 1 } \mathrm { c o s } ( 2 \pi k s / t ) x _ { s } \right| + \left| \sum _ { s = 0 } ^ { t - 1 } \mathrm { s i n } ( 2 \pi k s / t ) x _ { s } \right| .
104
+ $$
105
+
106
+ We call this family of features a ReLUgram and observe that it has a similar form to the spectrogram; we merely replace the $x \mapsto x ^ { 2 }$ non-linearity of the spectrogram with $x \mapsto | x |$ . These features achieve similar performance to spectrograms on the classification task (see Table 3).
107
+
108
+ # 4.4 WINDOW SIZE
109
+
110
+ When we parameterize a network, we must choose the width of the set of weights in the bottom layer. This width is called the receptive field in the vision community; in the music community it is called the window size. Traditional frequency analyses, including spectrograms, are highly sensitive to the window size. Windows must be long enough to capture relevant information, but not so long that they lose temporal resolution; this is the classical time-frequency tradeoff. Furthermore, windowed frequency analysis is subject to boundary effects, known as spectral leakage. Classical signal processing attempts to dampen these effects with predefined window functions, which apply a mask that attenuates the signal at the boundaries (Rabiner & Schafer, 2007).
111
+
112
+ The proposed end-to-end models learn window functions. If we parameterize these models with a large window size then the model will learn that distant information is irrelevant to local prediction, so the magnitude of the learned weights will attenuate at the boundaries. We therefore focus on two window sizes: 2048 samples, which captures the local content of the signal, and 16,384 samples, which is sufficient to capture almost all relevant context (again see Figure 1).
113
+
114
+ # 4.5 REGULARIZATION
115
+
116
+ The size of MusicNet is essential to achieving the results in Figure 1. In Figure 3 (Left) we optimize a two-layer ReLU network on a small subset of MusicNet consisting of 65, 000 monophonic data points. While these features do exhibit dominant frequencies, the signal is quite noisy. Comparable noisy frequency selective features were recovered by Dieleman & Schrauwen (2014); see their Figure 3. We can recover clean features on a small dataset using heavy regularization, but this destroys classification performance; regularizing with dropout poses a similar tradeoff. By contrast, Figure 3 (Right) shows weights learned by an unregularized two-layer network trained on the full MusicNet dataset. The models described in this paper do not overfit to MusicNet and optimal performance (reported in Table 3) is achieved without regularization.
117
+
118
+ # 4.6 CONVOLUTIONAL NETWORKS
119
+
120
+ Previously, we estimated $\hat { \mathbf { y } }$ by regressing against $f ( \mathbf { x } )$ . We now consider a convolutional model that regresses against features of a collection of shifted segments $\mathbf { x } _ { \ell }$ near to the original segment x. The learned features of this network are visually comparable to those learned by the fully connected network (Figure 1). The parameters of this network are the receptive field, stride, and pooling regions.
121
+
122
+ ![](images/3c0669fca76136809bc2d927779736f34a74a909811dd646afdbc2c66b15c673.jpg)
123
+ Figure 3: (Left) Features learned by a 2-layer ReLU network trained on small monophonic subset of MusicNet. (Right) Features learned by the same network, trained on the full MusicNet dataset.
124
+
125
+ The results reported in Table 3 are achieved with 500 hidden units using a receptive field of 2, 048 samples with an 8-sample stride across a window of 16, 384 samples. These features are grouped into average pools of width 16, with a stride of 8 features between pools. A max-pooling operation yields similar results. The learned features are consistent across different parameterizations. In all cases the learned features are comparable to those of a fully connected network.
126
+
127
+ # 5 RESULTS
128
+
129
+ We hold out a test set of 3 recordings for all the results reported in this section:
130
+
131
+ • Bach’s Prelude in D major for Solo Piano. WTK Book 1, No 5. Performed by Kimiko Ishizaka. MusicNet recording id 2303.
132
+ • Mozart’s Serenade in E-flat major. K375, Movement 4 - Menuetto. Performed by the Soni Ventorum Wind Quintet. MusicNet recording id 1819.
133
+ • Beethoven’s String Quartet No. 13 in B-flat major. Opus 130, Movement 2 - Presto. Released by the European Archive. MusicNet recording id 2382.
134
+
135
+ The test set is a representative sampling of MusicNet: it covers most of the instruments in the dataset in small, medium, and large ensembles. The test data points are evenly spaced segments separated by 512 samples, between the 1st and 91st seconds of each recording. For the wider features, there is substantial overlap between adjacent segments. Each segment is labeled with the notes that are on in the middle of the segment.
136
+
137
+ ![](images/11641190697d2c62117bfa33adfae72bd0e1b39586d981eba8920ed2506e51c4.jpg)
138
+ Figure 4: Precision-recall curves for the convolutional network on the test set. Curves are evaluated on subsets of the test set consisting of all data points (blue); points with exactly one label (monophonic; green); and points with exactly three labels (red).
139
+
140
+ We evaluate our models on three scores: precision, recall, and average precision. The precision score is the count of correct predictions by the model (across all data points) divided by the total number of predictions by the model. The recall score is the count of correct predictions by the model divided by the total number of (ground truth) labels in the test set. Precision and recall are parameterized by the note prediction threshold $c$ (see Sect. 4). By varying $c$ , we construct precision-recall curves (see Figure 4). The average precision score is the area under the precision-recall curve.
141
+
142
+ <table><tr><td>Representation</td><td>Window Size</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>log-spectrograms</td><td>1,024</td><td>49.0%</td><td>40.5%</td><td>39.8%</td></tr><tr><td>spectrograms</td><td>2,048</td><td>28.9%</td><td>52.5 %</td><td>32.9%</td></tr><tr><td>log-spectrograms</td><td>2,048</td><td>61.9%</td><td>42.0%</td><td>48.8%</td></tr><tr><td>log-ReLUgrams</td><td>2.048</td><td>58.9%</td><td>47.9%</td><td>49.3%</td></tr><tr><td>MLP,500 nodes</td><td>2.048</td><td>50.1%</td><td>58.0%</td><td>52.1%</td></tr><tr><td>MLP, 2500 nodes</td><td>2.048</td><td>53.6%</td><td>62.3%</td><td>56.2%</td></tr><tr><td>AvgPool,2 stride</td><td>2,148</td><td>53.4%</td><td>62.5%</td><td>56.4%</td></tr><tr><td>log-spectrograms</td><td>8,192</td><td>64.2%</td><td>28.6%</td><td>52.1%</td></tr><tr><td>log-spectrograms</td><td>16,384</td><td>58.4%</td><td>18.1%</td><td>45.5%</td></tr><tr><td>MLP, 500 nodes</td><td>16,384</td><td>54.4%</td><td>64.8%</td><td>60.0%</td></tr><tr><td>CNN, 64 stride</td><td>16,384</td><td>60.5%</td><td>71.9%</td><td>67.8%</td></tr></table>
143
+
144
+ Table 3: Benchmark results on MusicNet for models discussed in this paper. The learned representations are optimized for square loss with SGD using the Tensorflow library (Abadi et al.). We report the precision and recall corresponding to the best $F _ { 1 }$ -score on validation data.
145
+
146
+ A spectrogram of length $n$ is computed from $2 n$ samples, so the linear 1024-point spectrogram model is directly comparable to the MLP runs with 2048 raw samples. Learned features4 modestly outperform spectrograms for comparable window sizes. The discussion of windowing in Sect. 4.4 partially explains this. Figure 5 suggests a second reason. Recall (Sect. 4.3) that the spectrogram features can be interpreted as the magnitude of the signal’s inner product with sine waves of linearly spaced frequencies. In contrast, the proposed networks learn weights with frequencies distributed similarly to the distribution of notes in MusicNet (Figure 5). This gives the network higher resolution in the most critical frequency regions.
147
+
148
+ ![](images/515e332fb787091151cc1fe1f015f9b0c0daa6c8d967fc5e24577abcd6ab5653.jpg)
149
+ Figure 5: (Left) The frequency distribution of notes in MusicNet. (Right) The frequency distribution of learned nodes in a 500-node, two-layer ReLU network.
150
+
151
+ # ACKNOWLEDGMENTS
152
+
153
+ We thank Bob L. Sturm for his detailed feedback on an earlier version of the paper. We also thank Brian McFee and Colin Raffel for fruitful discussions. Sham Kakade acknowledges funding from the Washington Research Foundation for innovation in Data-intensive Discovery. Zaid Harchaoui acknowledges funding from the program ”Learning in Machines and Brains” of CIFAR.
154
+
155
+ REFERENCES
156
+ M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. Corrado, A. Davis, J. Dean, M. Devin, S. Ghemawat, I. Goodfellow, A. Harp, G. Irving, M. Isard, Y. Jia, R. Jozefowicz, L. Kaiser, M. Kudlur, J. Levenberg, D. Mane, R. Monga, S. Moore, D. Murray, C. Olah, M. Schuster, J. Shlens, B. Steiner, I. Sutskever, K. Talwar, P. Tucker, V. Vanhoucke, V. Vasudevan, F. Viegas, O. Vinyals, P. Warden, M. Wattenberg, M. Wicke, Y. Yu, and X. Zheng. TensorFlow: Largescale machine learning on heterogeneous systems. URL http://tensorflow.org/.
157
+ E. Benetos and S. Dixon. Joint multi-pitch detection using harmonic envelope estimation for polyphonic music transcription. IEEE Selected Topics in Signal Processing, 2011.
158
+ E. Benetos, S. Dixon, D. Giannoulis, H. Kirchoff, and A. Klapuri. Automatic music transcription: challenges and future directions. Journal of Intelligent Information Systems, 2013.
159
+ T. Berg-Kirkpatrick, J. Andreas, and D. Klein. Unsupervised transcription of piano music. NIPS, 2014.
160
+ S. Dieleman and B. Schrauwen. End-to-end learning for music audio. ICASSP, 2014.
161
+ Z. Duan, B. Pardo, and C. Zhang. Multiple fundamental frequency estimation by modeling spectral peaks and non-peak regions. TASLP, 2011.
162
+ V. Emiya, R. Badeau, and B. David. Multipitch estimation of piano sounds using a new probabilistic spectral smoothness principle. TASLP, 2010.
163
+ S. Ewert, M. Muller, and P. Grosche. High resolution audio synchronization using chroma features. ¨ ICASSP, 2009.
164
+ D. Garreau, R. Lajugie, S. Arlot, and F. Bach. Metric learning for temporal sequence alignment. NIPS, 2014.
165
+ M. Goto, H. Hashiguchi, T. Nishimura, and R. Oka. RWC music database: Music genre database and musical instrument sound database. ISMIR, 2003.
166
+ Gaetan Hadjeres and Franc¸ois Pachet. Deepbach: a steerable model for bach chorales generation. ¨ arXiv preprint, 2016.
167
+ C. Harte. Towards Automatic Extraction of Harmony Information from Music Signals. PhD thesis, Department of Electrical Engineering, Queen Mary, University of London, 2010.
168
+ N. Hu, R. B. Dannenberg, and G. Tzanetakis. Polyphonic audio matching and alignment for music retrieval. IEEE Workshop on Applications of Signal Processing to Audio and Acoustics, 2003.
169
+ E. J. Humphrey, J. P. Bello, and Y. LeCun. Moving beyond feature design: Deep architectures and automatic feature learning in music informatics. ISMIR, 2012.
170
+ O. Izmirli and R. B. Dannenberg. Understanding features and distance functions for music sequence alignment. ISMIR, 2010.
171
+ C. Joder, S. Essid, and G. Richard. Learning optimal features for polyphonic audio-to-score alignment. TASLP, 2013.
172
+ R. Kelz, M. Dorfer, F. Korzeniowski, S. Bock, A. Arzt, and G. Widmer. On the potential of simple ¨ framewise approaches to piano transcription. ISMIR, 2016.
173
+ A. Khlif and V. Sethu. An iterative multi range non-negative matrix factorization algorithm for polyphonic music transcription. ISMIR, 2015.
174
+ F. Korzeniowsk and G. Widmer. Feature learning for chord recognition: the deep chroma extractor. ISMIR, 2016.
175
+ R. Lajugie, P. Bojanowski, P. Cuvillier, S. Arlot, and F. Bach. A weakly-supervised discriminative model for audio-to-score alignment. ICASSP, 2016.
176
+ B. McFee and G. Lanckriet. Learning multi-modal similarity. JMLR, 2011.
177
+ B. McFee, T. Bertin-Mahieux, D. P. W. Ellis, and G. Lanckriet. The million song dataset challenge. Proceedings of the 21st International Conference on World Wide Web, 2012.
178
+ B. McFee, C. Raffel, D. Liang, D. P. W. Ellis, M. McVicar, E. Battenberg, and O. Nieto. librosa: Audio and music signal analysis in python. SCIPY, 2015.
179
+ N. Orio and D. Schwarz. Alignment of monophonic and polyphonic music to a score. International Computer Music Conference, 2001.
180
+ G. Poliner and D. P. W. Ellis. A discriminative model for polyphonic piano transcription. EURASIP Journal on Applied Signal Processing, 2007.
181
+ L. Rabiner and R. Schafer. Introduction to digital speech processing. Foundations and trends in signal processing, 2007.
182
+ C. Raffel and D. P. W. Ellis. Large-scale content-based matching of MIDI and audio files. ISMIR, 2015.
183
+ C. Raffel, B. McFee, E. J. Humphrey, J. Salamon, O. Nieto, D. Liang, and D. P. W. Ellis. mir eval: A transparent implementation of common mir metrics. ISMIR, 2014.
184
+ C. Raphael. Automatic segmentation of acoustic musical signals using hidden markov models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1999.
185
+ O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. Imagenet large scale visual recognition challenge. IJCV, 2015.
186
+ F. Soulez, X. Rodet, and D. Schwarz. Improving polyphonic and poly-instrumental music to score alignment. ISMIR, 2003.
187
+ K. Tokuda and H. Zen. Directly modeling voiced and unvoiced components in speech waveforms by neural networks. ICASSP, 2016.
188
+ R. J. Turetsky and D. P. W. Ellis. Ground-truth transcriptions of real music from force-aligned midi syntheses. ISMIR, 2003.
189
+ A. van den Oord, S. Dieleman, and B. Schrauwen. Deep content-based music recommendation. NIPS, 2013.
190
+ A. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. WaveNet: A generative model for raw audio. arXiv preprint, 2016.
191
+
192
+ # A VALIDATING THE MUSICNET LABELS
193
+
194
+ We validate the aligned MusicNet labels with a listening test. We create an aural representation of an aligned score-performance pair by mixing a short sine wave into the performance with the frequency indicated by the score at the time indicated by the alignment. We can listen to this mix and, if the alignment is correct, the sine tones will exactly overlay the original performance; if the alignment is incorrect, the mix will sound dissonant.
195
+
196
+ We have listened to sections of each recording in the aligned dataset: the beginning, several random samples of middle, and the end. Mixes with substantially incorrect alignments were rejected from the dataset. Failed alignments are mostly attributable to mismatches between the midi and the recording. The most common reason for rejection is musical repeats. Classical music often contains sections with indications that they be repeated a second time; in classical music performance culture, it is often acceptable to ignore these directions. If the score and performance make different choices regarding repeats, a mismatch arises. When the score omits a repeat that occurs in the performance, the alignment typically warps over the entire repeated section, with correct alignments before and after. When the score includes an extra repeat, the alignment typically compresses it into very short segment, with correct alignments on either side. We rejected alignments exhibiting either of these issues from the dataset.
197
+
198
+ From the aligned performances that we deemed sufficiently accurate to admit to the dataset, we randomly sampled 30 clips for more careful annotation and analysis. We weighted the sample to cover a wide coverage of recordings with various instruments, ensemble sizes, and durations. For each sampled performance, we randomly selected a 30 second clip. Using software transforms, it is possible to slow a recording down to approximately 1/4 speed. Two of the clips were too richly structured and fast to precisely analyze (slowing the signal down any further introduces artifacts that make the signal difficult to interpret). Even in these two rejected samples, the alignments sound substantially correct.
199
+
200
+ For the other 28 clips, we carefully analyzed the aligned performance mix and annotated every alignment error. Two of the authors are classically trained musicians: we independently checked for errors and we our analyses were nearly identical. Where there was disagreement, we used the more pessimistic author’s analysis. Over our entire set of clips we averaged a $4 . 0 \%$ error rate.
201
+
202
+ Note that we do not catch every type of error. Mistaken note onsets are more easily identified than mistaken offsets. Typically the release of one note coincides with the onset of a new note, which implicitly verifies the release. However, release times at the ends of phrases may be less accurate; these inaccuracies would not be covered by our error analysis. We were also likely to miss performance mistakes that maintain the meter of the performance, but for professional recordings such mistakes are rare.
203
+
204
+ For stringed instruments, chords consisting of more than two notes are “rolled”; i.e. they are performed serially from the lowest to the highest note. Our alignment protocol cannot separate notes that are notated simultaneously in the score; a rolled chord is labeled with a single starting time, usually the beginning of the first note in the roll. Therefore, there is some time period at the beginning of a roll where the top notes of the chord are labeled but have not yet occurred in the performance. There are reasonable interpretations of labeling under which these labels would be judged incorrect. On the other hand, if the labels are used to supervise transcription then ours is likely the desired labeling.
205
+
206
+ We can also qualitatively characterize the types of errors we observed. The most common types of errors are anticipations and delays: a single, or small sequence of labels is aligned to a slightly early or late location in the time series. Another common source of error is missing ornaments and trills: these are short flourishes in a performance are sometimes not annotated in our score data, which results in a missing annotation in the alignment. Finally, there are rare performance errors in the recordings and transcription errors in the score.
207
+
208
+ # B ALIGNMENT PARAMETER ROBUSTNESS
209
+
210
+ The definitions of audio featurization and the alignment cost function were contingent on several parameter choices. These choices were optimized by systematic exploration of the parameter space. We investigated what happens as we vary each parameter and made the choices that gave the best results in our listening tests. Fine-tuning of the parameters yields marginal gains.
211
+
212
+ The quality of alignments improves uniformly with the quality of synthesis. The time-resolution of labels improves uniformly as the stride parameter decreases; minimization of stride is limited by system memory constraints. We find that the precise phase-invariant feature specification has little effect on alignment quality. We experimented with spectrograms and log-spectrograms using windowed and un-windowed signals. Alignment quality seemed to be largely unaffected.
213
+
214
+ The other parameters are governed by a tradeoff curve; the optimal choice is determined by balancing desirable outcomes. The Fourier window size is a classic tradeoff between time and frequency resolution. The $\ell ^ { 2 }$ norm can be understood as a tradeoff between the extremes of $\ell ^ { 1 }$ and $\ell ^ { \infty }$ . The $\bar { \ell ^ { 1 } }$ norm is too egalitarian: the preponderance of errors due to synthesis quality add up and overwhelm the signal. On the other hand, the $\ell ^ { \infty }$ norm ignores too much of the signal in the spectrogram. The spectrogram cutoff, discussed in Sec. 3, is also a tradeoff between synthesis quality and maximal use of information
215
+
216
+ # C ADDITIONAL ERROR ANALYSIS
217
+
218
+ For each model, using the test set described in Sect. 5, we report accuracy and error scores used by the MIR community to evaluate the Multi-F0 systems. Definitions and a discussion of these metrics are presented in Poliner & Ellis (2007).
219
+
220
+ <table><tr><td>Representation</td><td>Acc</td><td>Etot</td><td>Esub</td><td>Emiss</td><td>Efa</td></tr><tr><td>512-point log-spectrogram</td><td>28.5%</td><td>.819</td><td>.198</td><td>.397</td><td>.224</td></tr><tr><td>1024-point log-spectrogram</td><td>33.4%</td><td>.715</td><td>.123</td><td>.457</td><td>.135</td></tr><tr><td>1024-point log-ReLUgram</td><td>35.9%</td><td>.711</td><td>.144</td><td>.377</td><td>.190</td></tr><tr><td>4096-point log-spectrogram</td><td>24.7%</td><td>.788</td><td>.085</td><td>.628</td><td>.074</td></tr><tr><td>8192-point log-spectrogram</td><td>16.1%</td><td>.866</td><td>.082</td><td>.737</td><td>.047</td></tr><tr><td>MLP,500 nodes,2048 raw samples</td><td>36.8%</td><td>.790</td><td>.206</td><td>.214</td><td>.370</td></tr><tr><td>MLP,2500 nodes.2048 samples</td><td>40.4%</td><td>.740</td><td>.177</td><td>.200</td><td>.363</td></tr><tr><td>AvgPool, 5 stride,2048 samples</td><td>40.5%</td><td>.744</td><td>.176</td><td>.200</td><td>.369</td></tr><tr><td>MLP, 500 nodes,16384 samples</td><td>42.0%</td><td>.735</td><td>.160</td><td>.191</td><td>.383</td></tr><tr><td>CNN, 64 stride,16384 samples</td><td>48.9%</td><td>.634</td><td>.117</td><td>.164</td><td>.352</td></tr></table>
221
+
222
+ Table 4: MIREX-style statistics, evaluated using the mir eval library (Raffel et al., 2014).
223
+
224
+ # D PRECISION & RECALL CURVES
225
+
226
+ ![](images/810d0e2683165012ba1f572437ab143e35419626c8e35b2f899b24a16e694f2a.jpg)
227
+
228
+ ![](images/1a0e01dc147eafcf87fc9130743d1cac4eae192849d02b9825c44ddcf940b4d3.jpg)
229
+ Figure 7: The 500 node, 2048 raw sample MLP.
230
+
231
+ ![](images/f52a40cd66e7452be48e128f48fc0bd45d974575f5baf9d6902458c3643fe34b.jpg)
232
+ Figure 6: The linear spectrogram model.
233
+
234
+ ![](images/4b94c58e9626f3a6dc8ce4c6c4a0a6286876fbf8c1ae181061ea3c19f6c48b3d.jpg)
235
+ Figure 9: The average pooling model.
236
+
237
+ ![](images/21f2d335f75aff509ef9221e2b73bedf6e9a23f45ac80cc39df7cb777c5e97ea.jpg)
238
+ Figure 8: The 2500 node, 2048 raw sample MLP.
239
+
240
+ ![](images/bce2c39127cbc1c8dcb726c11d8c6842629ce4d04d7bb6ab33aa4a3118c7d480.jpg)
241
+ Figure 10: The 500 node, 16384 raw sample MLP.
242
+ Figure 11: The convolutional model.
243
+
244
+ # E ADDITIONAL RESULTS
245
+
246
+ We report additional results on splits of the test set described in Sect. 5.
247
+
248
+ <table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>56.1%</td><td>62.7%</td><td>59.2%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>59.1%</td><td>67.8%</td><td>63.1%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>59.1%</td><td>68.2%</td><td>64.5%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>60.2%</td><td>65.2%</td><td>65.8%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>65.9%</td><td>75.2%</td><td>74.4%</td></tr></table>
249
+
250
+ Table 5: The Soni Ventorum recording of Mozart’s Wind Quintet K375 (MusicNet id 1819).
251
+
252
+ <table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>35.4%</td><td>40.7%</td><td>28.0%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>38.3%</td><td>44.3%</td><td>30.9%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>38.6%</td><td>45.2%</td><td>31.7%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>43.4%</td><td>51.3%</td><td>41.0%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>51.0%</td><td>57.9%</td><td>49.3%</td></tr></table>
253
+
254
+ Table 6: The European Archive recording of Beethoven’s String Quartet No. 13 (MusicNet id 2382).
255
+
256
+ <table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>55.6%</td><td>67.4%</td><td>64.1%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>60.1%</td><td>71.3%</td><td>68.6%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>59.6%</td><td>70.7%</td><td>68.1%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>57.1%</td><td>76.3%</td><td>68.4%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>61.9%</td><td>80.1%</td><td>73.9%</td></tr></table>
257
+
258
+ Table 7: The Kimiko Ishizaka recording of Bach’s Prelude in D major (MusicNet id 2303).
parse/train/rkFBJv9gg/rkFBJv9gg_content_list.json ADDED
@@ -0,0 +1,1184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING FEATURES OF MUSIC FROM SCRATCH ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 763,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "John Thickstun1, Zaid Harchaoui2 & Sham M. Kakade1,2 \n1 Department of Computer Science and Engineering, 2 Department of Statistics \nUniversity of Washington \nSeattle, WA 98195, USA \n{thickstn,sham}@cs.washington.edu, name@uw.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 143,
20
+ 707,
21
+ 215
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 252,
32
+ 544,
33
+ 267
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "This paper introduces a new large-scale music dataset, MusicNet, to serve as a source of supervision and evaluation of machine learning methods for music research. MusicNet consists of hundreds of freely-licensed classical music recordings by 10 composers, written for 11 instruments, together with instrument/note annotations resulting in over 1 million temporal labels on 34 hours of chamber music performances under various studio and microphone conditions. ",
40
+ "bbox": [
41
+ 233,
42
+ 285,
43
+ 764,
44
+ 367
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "The paper defines a multi-label classification task to predict notes in musical recordings, along with an evaluation protocol, and benchmarks several machine learning architectures for this task: i) learning from spectrogram features; ii) endto-end learning with a neural net; iii) end-to-end learning with a convolutional neural net. These experiments show that end-to-end models trained for note prediction learn frequency selective filters as a low-level representation of audio. ",
51
+ "bbox": [
52
+ 233,
53
+ 371,
54
+ 764,
55
+ 454
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 178,
65
+ 482,
66
+ 336,
67
+ 498
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Music research has benefited recently from the effectiveness of machine learning methods on a wide range of problems from music recommendation (van den Oord et al., 2013; McFee & Lanckriet, 2011) to music generation (Hadjeres & Pachet, 2016); see also the recent demos of the Google Magenta project1. As of today, there is no large publicly available labeled dataset for the simple yet challenging task of note prediction for classical music. The MIREX MultiF0 Development Set (Benetos & Dixon, 2011) and the Bach10 dataset (Duan et al., 2011) together contain less than 7 minutes of labeled music. These datasets were designed for method evaluation, not for training supervised learning methods. ",
74
+ "bbox": [
75
+ 174,
76
+ 515,
77
+ 825,
78
+ 626
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "This situation stands in contrast to other application domains of machine learning. For instance, in computer vision large labeled datasets such as ImageNet (Russakovsky et al., 2015) are fruitfully used to train end-to-end learning architectures. Learned feature representations have outperformed traditional hand-crafted low-level visual features and lead to tremendous progress for image classification. In (Humphrey et al., 2012), Humphrey, Bello, and LeCun issued a call to action: “Deep architectures often require a large amount of labeled data for supervised training, a luxury music informatics has never really enjoyed. Given the proven success of supervised methods, MIR would likely benefit a good deal from a concentrated effort in the curation of sharable data in a sustainable manner.” ",
85
+ "bbox": [
86
+ 174,
87
+ 633,
88
+ 825,
89
+ 757
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "This paper introduces a new large labeled dataset, MusicNet, which is publicly available2 as a resource for learning feature representations of music. MusicNet is a corpus of aligned labels on freely-licensed classical music recordings, made possible by licensing initiatives of the European Archive, the Isabella Stewart Gardner Museum, Musopen, and various individual artists. The dataset consists of 34 hours of human-verified aligned recordings, containing a total of 1, 299, 329 individual labels on segments of these recordings. Table 1 summarizes statistics of MusicNet. ",
96
+ "bbox": [
97
+ 174,
98
+ 765,
99
+ 823,
100
+ 848
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The focus of this paper’s experiments is to learn low-level features of music from raw audio data. In Sect. 4, we will construct a multi-label classification task to predict notes in musical recordings, along with an evaluation protocol. We will consider a variety of machine learning architectures for this task: i) learning from spectrogram features; ii) end-to-end learning with a neural net; iii) endto-end learning with a convolutional neural net. Each of the proposed end-to-end models learns a set of frequency selective filters as low-level features of musical audio, which are similar in spirit to a spectrogram. The learned low-level features are visualized in Figure 1. The learned features modestly outperform spectrogram features; we will explore possible reasons for this in Sect. 5. ",
107
+ "bbox": [
108
+ 174,
109
+ 856,
110
+ 821,
111
+ 883
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "table",
117
+ "img_path": "images/bc7ca881e893453d0b0321762c0c0fc2d68f7b98fce640bccc362a177ee622d8.jpg",
118
+ "table_caption": [
119
+ "MusicNet ",
120
+ "Table 1: Summary statistics of the MusicNet dataset. See Sect. 2 for further discussion of MusicNet and Sect. 3 for a description of the labelling process. Appendix A discusses the methodology for computing error rate of this process. "
121
+ ],
122
+ "table_footnote": [],
123
+ "table_body": "<table><tr><td> Minutes</td><td>Labels</td><td>Recordings</td><td>Error Rate</td><td></td><td>Composer</td><td> Minutes</td><td>Labels</td></tr><tr><td>2,048</td><td>1,299,329</td><td>330</td><td colspan=\"2\">4.0%</td><td>Beethoven Schubert</td><td>1,085 253</td><td>736,072</td></tr><tr><td colspan=\"6\">Labels</td><td>192</td><td>133,109</td><td>146,648</td></tr><tr><td colspan=\"6\">Ensemble Minutes Solo Piano 917</td><td>Brahms Mozart Bach</td><td>156</td><td>99,641</td></tr><tr><td colspan=\"6\"> String Quartet</td><td>Dvorak</td><td>184</td><td>62,782</td></tr><tr><td colspan=\"6\"> Accompanied Violin</td><td></td><td>56</td><td>46,261</td></tr><tr><td colspan=\"6\"> Piano Quartet</td><td>Cambini</td><td>43</td><td>24,820</td></tr><tr><td colspan=\"6\"> Accompanied Cello</td><td>Faure</td><td></td><td>22,349</td></tr><tr><td colspan=\"6\"> String Sextet</td><td>Ravel</td><td>27</td><td>21,243</td></tr><tr><td colspan=\"6\">Piano Trio</td><td>Haydn</td><td></td><td>6,404</td></tr><tr><td colspan=\"6\">Piano Quintet</td><td></td><td></td><td></td></tr><tr><td colspan=\"6\">25 Wind Quintet 43</td><td> Instrument</td><td> Minutes</td><td>Labels</td></tr><tr><td colspan=\"6\">Horn Piano Trio 30</td><td>Piano</td><td>1346</td><td>794,532</td></tr><tr><td colspan=\"6\">Wind Octet 23</td><td>Violin</td><td>874</td><td>230,484</td></tr><tr><td colspan=\"6\">Clarinet-Cello-Piano Trio</td><td>Viola</td><td>621</td><td>99,407</td></tr><tr><td colspan=\"6\">2524 Pairs Clarinet-Horn-Bassoon</td><td>Cello</td><td>800</td><td>99,132</td></tr><tr><td colspan=\"6\">Clarinet Quintet 26</td><td>Clarinet</td><td>173</td><td>24,426</td></tr><tr><td colspan=\"6\">Solo Cello 49</td><td>Bassoon</td><td>102</td><td>14,954</td></tr><tr><td colspan=\"6\">Accompanied Clarinet 20</td><td>Horn</td><td>132</td><td>11,468</td></tr><tr><td colspan=\"6\">10,049 Solo Violin 30</td><td>Oboe</td><td>66</td><td></td></tr><tr><td colspan=\"6\">Violin and Harpsichord 16</td><td>Flute</td><td>69</td><td>8,696</td></tr><tr><td colspan=\"6\">Viola Quintet 15</td><td></td><td></td><td>8,310</td></tr><tr><td colspan=\"6\"> Solo Flute</td><td>Harpsichord</td><td>16</td><td>4,914</td></tr><tr><td colspan=\"6\"></td><td> String Bass</td><td>38</td><td>3,006</td></tr><tr><td>Piano</td><td>Violin</td><td>Cello</td><td>Viola</td><td>Clarinet Bassoon</td><td>Horn</td><td>Oboe</td><td></td><td></td><td></td></tr><tr><td colspan=\"6\"></td><td></td><td>Flute</td><td>Bass Harpsichord</td><td></td></tr><tr><td>Notes</td><td>83</td><td>51</td><td>51 51</td><td>41</td><td>36</td><td>41 28</td><td>37</td><td>43</td><td>51</td></tr></table>",
124
+ "bbox": [
125
+ 192,
126
+ 123,
127
+ 802,
128
+ 529
129
+ ],
130
+ "page_idx": 1
131
+ },
132
+ {
133
+ "type": "text",
134
+ "text": "",
135
+ "bbox": [
136
+ 173,
137
+ 614,
138
+ 825,
139
+ 699
140
+ ],
141
+ "page_idx": 1
142
+ },
143
+ {
144
+ "type": "image",
145
+ "img_path": "images/11de063179b53a961d7c5abb73ccbb146c9b2303b58b47a462d7f6fd90a294d7.jpg",
146
+ "image_caption": [
147
+ "Figure 1: (Left) Bottom-level weights learned by a two-layer ReLU network trained on 16,384- samples windows $( \\approx 1 / 3$ seconds) of raw audio with $\\ell _ { 2 }$ regularized $\\lambda = 1$ ) square loss for multilabel note classification on raw audio recordings. (Middle) Magnified view of the center of each set of weights. (Right) The truncated frequency spectrum of each set of weights. "
148
+ ],
149
+ "image_footnote": [],
150
+ "bbox": [
151
+ 178,
152
+ 729,
153
+ 818,
154
+ 851
155
+ ],
156
+ "page_idx": 1
157
+ },
158
+ {
159
+ "type": "text",
160
+ "text": "2 MUSICNET ",
161
+ "text_level": 1,
162
+ "bbox": [
163
+ 176,
164
+ 102,
165
+ 299,
166
+ 118
167
+ ],
168
+ "page_idx": 2
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Related Works. The experiments in this paper suggest that large amounts of data are necessary to recovering useful features from music; see Sect. 4.5 for details. The Lakh dataset, released this summer based on the work of Raffel & Ellis (2015), offers note-level annotations for many 30- second clips of pop music in the Million Song Dataset (McFee et al., 2012). The syncRWC dataset is a subset of the RWC dataset (Goto et al., 2003) consisting of 61 recordings aligned to scores using the protocol described in Ewert et al. (2009). The MAPS dataset (Emiya et al., 2010) is a mixture of acoustic and synthesized data, which expressive models could overfit. The Mazurka project3 consists of commercial music. Access to the RWC and Mazurka datasets comes at both a cost and inconvenience. Both the MAPS and Mazurka datasets are comprised entirely of piano music. ",
173
+ "bbox": [
174
+ 173,
175
+ 132,
176
+ 825,
177
+ 258
178
+ ],
179
+ "page_idx": 2
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "The MusicNet Dataset. MusicNet is a public collection of labels (exemplified in Table 2) for 330 freely-licensed classical music recordings of a variety of instruments arranged in small chamber ensembles under various studio and microphone conditions. The recordings average 6 minutes in length. The shortest recording in the dataset is 55 seconds and the longest is almost 18 minutes. Table 1 summarizes the statistics of MusicNet with breakdowns into various types of labels. Table 2 demonstrates examples of labels from the MusicNet dataset. ",
184
+ "bbox": [
185
+ 173,
186
+ 265,
187
+ 825,
188
+ 349
189
+ ],
190
+ "page_idx": 2
191
+ },
192
+ {
193
+ "type": "table",
194
+ "img_path": "images/99aae2f0175c09243f437f3df5d2a9a418003cd7acb139fb9169f4c24533f9d5.jpg",
195
+ "table_caption": [],
196
+ "table_footnote": [],
197
+ "table_body": "<table><tr><td>Start</td><td>End</td><td>Instrument</td><td>Note</td><td>Measure</td><td>Beat</td><td>Note Value</td></tr><tr><td>45.29</td><td>45.49</td><td>Violin</td><td>G5</td><td>21</td><td>3</td><td>Eighth</td></tr><tr><td>48.99</td><td>50.13</td><td>Cello</td><td>A#3</td><td>24</td><td>2</td><td>Dotted Half</td></tr><tr><td>82.91</td><td>83.12</td><td>Viola</td><td>C5</td><td>51</td><td>2.5</td><td>Eighth</td></tr></table>",
198
+ "bbox": [
199
+ 258,
200
+ 361,
201
+ 740,
202
+ 434
203
+ ],
204
+ "page_idx": 2
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Table 2: MusicNet labels on the Pascal String Quartet’s recording of Beethoven’s Opus 127, String Quartet No. 12 in E-flat major, I - Maestoso - Allegro. Creative commons use of this recording is made possible by the work of the European Archive. ",
209
+ "bbox": [
210
+ 178,
211
+ 444,
212
+ 820,
213
+ 486
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "MusicNet labels come from 513 label classes using the most naive definition of a class: distinct instrument/note combinations. The breakdowns reported in Table 1 indicate the number of distinct notes that appear for each instrument in our dataset. For example, while a piano has 88 keys only 83 of them are performed in MusicNet. For many tasks a note’s value will be a part of its label, in which case the number of classes will expand by approximately an order of magnitude after taking the cartesian product of the set of classes with the set of values: quarter-note, eighth-note, triplet, etc. Labels regularly overlap in the time series, creating polyphonic multi-labels. ",
220
+ "bbox": [
221
+ 173,
222
+ 501,
223
+ 825,
224
+ 598
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "MusicNet is skewed towards Beethoven, thanks to the composer’s popularity among performing ensembles. The dataset is also skewed towards Solo Piano due to an abundance of digital scores available for piano works. For training purposes, researchers may want to augment this dataset to increase coverage of instruments such as Flute and Oboe that are under-represented in MusicNet. Commercial recordings could be used for this purpose and labeled using the alignment protocol described in Sect. 3. ",
231
+ "bbox": [
232
+ 174,
233
+ 606,
234
+ 825,
235
+ 689
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "3 DATASET CONSTRUCTION ",
242
+ "text_level": 1,
243
+ "bbox": [
244
+ 178,
245
+ 708,
246
+ 421,
247
+ 724
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "MusicNet recordings are freely-licensed classical music collected from the European Archive, the Isabella Stewart Gardner Museum, Musopen, and various artists’ collections. The MusicNet labels are retrieved from digital MIDI scores, collected from various archives including the Classical Archives (classicalarchives.com) Suzuchan’s Classic MIDI (suzumidi.com) and HarfeSoft (harfesoft.de). The methods in this section produce an alignment between a digital score and a corresponding freely-licensed recording. A recording is labeled with events in the score, associated to times in the performance via the alignment. Scores containing 6, 550, 760 additional labels are available on request to researchers who wish to augment MusicNet with commercial recordings. ",
254
+ "bbox": [
255
+ 174,
256
+ 739,
257
+ 825,
258
+ 852
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Music-to-score alignment is a long-standing problem in the music research and signal processing communities (Raphael, 1999). Dynamic time warping (DTW) is a classical approach to this problem. An early use of DTW for music alignment is Orio & Schwarz (2001) where a recording is aligned to a crude synthesis of its score, designed to capture some of the structure of an overtone series. The method described in this paper aligns recordings to synthesized performances of scores, using side information from a commercial synthesizer. To the best of our knowledge, commercial synthesis was first used for the purpose of alignment in Turetsky & Ellis (2003). ",
265
+ "bbox": [
266
+ 176,
267
+ 858,
268
+ 823,
269
+ 901
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "",
276
+ "bbox": [
277
+ 174,
278
+ 103,
279
+ 825,
280
+ 160
281
+ ],
282
+ "page_idx": 3
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "The majority of previous work on alignment focuses on pop music. This is more challenging than aligning classical music because commercial synthesizers do a poor job reproducing the wide variety of vocal and instrumental timbers that appear in modern pop. Furthermore, pop features inharmonic instruments such as drums for which natural metrics on frequency representations–including $\\ell ^ { 2 }$ –are not meaningful. For classical music to score alignment, a variant of the techniques described in Turetsky & Ellis (2003) works robustly. This method is described below; we discuss the evaluation of this procedure and its error rate on MusicNet in the appendix. ",
287
+ "bbox": [
288
+ 173,
289
+ 166,
290
+ 825,
291
+ 265
292
+ ],
293
+ "page_idx": 3
294
+ },
295
+ {
296
+ "type": "image",
297
+ "img_path": "images/5b140393006a315d552c21453c6ab01f5f4265167475eee6b5afb8c1c125a9a5.jpg",
298
+ "image_caption": [
299
+ "Figure 2: (Left) Heatmap visualization of local alignment costs between the synthesized and recorded spectrograms, with the optimal alignment path in red. The block from $x = 0$ to $x = 1 0 0$ frames corresponds to silence at the beginning of the recorded performance. The slope of the alignment can be interpreted as an instantaneous tempo ratio between the recorded and synthesized performances. The curvature in the alignment between $x \\ = \\ 1 0 0$ and $x \\ = \\ 1 7 5$ corresponds to an extension of the first notes by the performer. (Right) Annotation of note onsets on the spectrogram of the recorded performance, determined by the alignment shown on the left. "
300
+ ],
301
+ "image_footnote": [],
302
+ "bbox": [
303
+ 183,
304
+ 285,
305
+ 815,
306
+ 419
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "In order to align the performance with a score, we need to define a metric that compares short segments of the score with segments of a performance. Musical scores can be expressed as binary vectors in $E \\times K$ where $E = \\{ 1 , \\ldots , n \\}$ and $K$ is a dictionary of notes. Performances reside in $\\mathbb { R } ^ { T \\times p }$ , where $T \\in \\{ 1 , \\dots , m \\}$ is a sequence of time steps and $p$ is the dimensionality of the spectrogram at time $T$ . Given some local cost function $C : ( \\mathbb { R } ^ { p } , K ) \\to \\mathbb { R }$ , a score $\\mathbf { Y } \\in E \\times K$ , and a performance $\\mathbf { X } \\in \\mathbb { R } ^ { T \\times p }$ , the alignment problem is to ",
313
+ "bbox": [
314
+ 173,
315
+ 551,
316
+ 825,
317
+ 636
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/f5c90eda37f5432da38e26c1100b95dd0b120aeaf622db93976483b1ee935f64.jpg",
324
+ "text": "$$\n\\begin{array} { r l r } & { \\underset { t \\in \\mathbb { Z } ^ { n } } { \\mathrm { m i n i m i z e } } } & { \\displaystyle \\sum _ { i = 1 } ^ { n } C ( \\mathbf { X } _ { t _ { i } } , \\mathbf { Y } _ { i } ) } \\\\ & { \\mathrm { s u b j e c t ~ t o } } & { t _ { 0 } = 0 , } \\\\ & { t _ { n } = m , } \\\\ & { t _ { i } \\leq t _ { j } } & { \\mathrm { i f } i < j . } \\end{array}\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 367,
328
+ 642,
329
+ 612,
330
+ 727
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Dynamic time warping gives an exact solution to the problem in $\\mathcal { O } ( m n )$ time and space. ",
337
+ "bbox": [
338
+ 171,
339
+ 733,
340
+ 753,
341
+ 748
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "The success of dynamic time warping depends on the metric used to compare the score and the performance. Previous works can be broadly categorized into three groups that define an alignment cost $C$ between segments of music $\\mathbf { X }$ and score $\\mathbf { y }$ by injecting them into a common normed space via maps $\\Psi$ and $\\Phi$ : ",
348
+ "bbox": [
349
+ 174,
350
+ 755,
351
+ 823,
352
+ 810
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/816f167fb6935a395c1df7873fc33bdf2e4f5952ac2677559b80c6a6ced66e67.jpg",
359
+ "text": "$$\nC ( \\mathbf { x } , \\mathbf { y } ) = \\| \\Psi ( \\mathbf { x } ) - \\Phi ( \\mathbf { y } ) \\|\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 410,
363
+ 810,
364
+ 588,
365
+ 828
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "The most popular approach–and the one adopted by this paper–maps the score into the space of the performance (Orio & Schwarz, 2001; Turetsky $\\&$ Ellis, 2003; Soulez et al., 2003). An alternative approach maps both the score and performance into some third space, commonly a chromogram space (Hu et al., 2003; Izmirli $\\&$ Dannenberg, 2010; Joder et al., 2013). Finally, some recent methods consider alignment in score space, taking $\\Phi = \\mathrm { I d }$ and learning $\\Psi$ (Garreau et al., 2014; Lajugie et al., 2016). ",
372
+ "bbox": [
373
+ 173,
374
+ 839,
375
+ 825,
376
+ 924
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "With reference to the general cost (2), we must specify the maps $\\Psi , \\Phi$ , and the norm $\\| \\cdot \\|$ . We compute the cost in the performance feature space $\\mathbb { R } ^ { p }$ , hence we take $\\Psi = \\mathrm { I d }$ . For the features, we use the log-spectrogram with a window size of 2048 samples. We use a stride of 512 samples between features. Hence adjacent feature frames are computed with $7 5 \\%$ overlap. For audio sampled at $4 4 . 1 \\mathrm { k H z }$ , this results in a feature representation with 4 $\\mathrm { \\Delta } 4 , 1 0 0 / 5 1 2 \\approx 8 6 $ frames per second. A discussion of these parameter choices can be found in the appendix. The map $\\Phi$ is computed by a synthetizer: we used Plogue’s Sforzando sampler together with Garritan’s Personal Orchestra 4 sample library. ",
383
+ "bbox": [
384
+ 174,
385
+ 103,
386
+ 825,
387
+ 215
388
+ ],
389
+ "page_idx": 4
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "For a (pseudo)-metric on $\\mathbb { R } ^ { p }$ , we take the $\\ell ^ { 2 }$ norm $\\| \\cdot \\| _ { 2 }$ on the low 50 dimensions of $\\mathbb { R } ^ { p }$ . Recall that $\\mathbb { R } ^ { p }$ represents Fourier components, so we can roughly interpret the $k$ ’th coordinate of $\\mathbb { R } ^ { p }$ as the energy associated with the frequency $k \\times ( 2 2 , 0 5 0 / \\mathrm { 1 0 2 4 } ) \\approx \\bar { k } \\times 2 2 . 5 \\mathrm { H z }$ , where $2 2 , 0 5 0 \\mathrm { H z }$ is the Nyquist frequency of a signal sampled at $4 4 . 1 \\mathrm { k H z }$ . The 50 dimension cutoff is chosen empirically: we observe that the resulting alignments are more accurate using a small number of low-frequency bins rather than the full space $\\mathbb { R } ^ { p }$ . Synthesizers do not accurately reproduce the high-frequency features of a musical instrument; by ignoring the high frequencies, we align on a part of the spectrum where the synthesis is most accurate. The proposed choice of cutoff is aggressive compared to usual settings; for instance, Turetsky & Ellis (2003) propose cutoffs in the $2 . 5 \\mathrm { k H z }$ range. The fundamental frequencies of many notes in MusicNet are higher than the $5 0 \\times 2 2 . 5 \\mathrm { H z } \\approx 1 \\mathrm { k H z }$ cutoff. Nevertheless, we find that all notes align well using only the low-frequency information. ",
394
+ "bbox": [
395
+ 174,
396
+ 220,
397
+ 825,
398
+ 375
399
+ ],
400
+ "page_idx": 4
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "4 METHODS ",
405
+ "text_level": 1,
406
+ "bbox": [
407
+ 174,
408
+ 395,
409
+ 290,
410
+ 411
411
+ ],
412
+ "page_idx": 4
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "We consider identification of notes in a segment of audio $\\textbf { x } \\in \\ \\mathcal { X }$ as a multi-label classification problem, modeled as follows. Assign each audio segment a binary label vector $\\mathbf { y } \\in \\{ 0 , 1 \\} ^ { 1 2 8 }$ . The 128 dimensions correspond to frequency codes for notes, and ${ \\bf y } _ { n } = 1$ if note $n$ is present at the midpoint of $\\mathbf { x }$ . Let $f : \\mathcal { X } \\to \\mathcal { H }$ indicate a feature map. We train a multivariate linear regression to predict $\\hat { \\mathbf { y } }$ given $f ( \\mathbf { x } )$ , which we optimize for square loss. The vector $\\hat { \\mathbf { y } }$ can be interpreted as a multi-label estimate of notes in $\\mathbf { x }$ by choosing a threshold $c$ and predicting label $n$ iff ${ \\hat { \\mathbf { y } } } _ { n } > c$ . We search for the value $c$ that maximizes $F _ { 1 }$ -score on a sampled subset of MusicNet. ",
417
+ "bbox": [
418
+ 174,
419
+ 426,
420
+ 825,
421
+ 525
422
+ ],
423
+ "page_idx": 4
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "4.1 RELATED WORK ",
428
+ "text_level": 1,
429
+ "bbox": [
430
+ 176,
431
+ 541,
432
+ 330,
433
+ 555
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "Learning on raw audio is studied in both the music and speech communities. Supervised learning on music has been driven by access to labeled datasets. Pop music labeled with chords (Harte, 2010) has lead to a long line of work on chord recognition, most recently Korzeniowsk & Widmer (2016). Genre labels and other metadata has also attracted work on representation learning, for example Dieleman & Schrauwen (2014). There is also substantial work modeling raw audio representations of speech; a current example is Tokuda & Zen (2016). Recent work from Google DeepMind explores generative models of raw audio, applied to both speech and music (van den Oord et al., 2016). ",
440
+ "bbox": [
441
+ 174,
442
+ 566,
443
+ 825,
444
+ 665
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "The music community has worked extensively on a closely related problem to note prediction: fundamental frequency estimation. This is the analysis of fundamental (in contrast to overtone) frequencies in short audio segments; these frequencies are typically considered as proxies for notes. Because access to large labeled datasets was historically limited, most of these works are unsupervised. A good overview of this literature can be found in Benetos et al. (2013). Variants of non-negative matrix factorization are popular for this task; a recent example is Khlif & Sethu (2015). A different line of work models audio probabilistically, for example Berg-Kirkpatrick et al. (2014). Recent work by Kelz et al. (2016) explores supervised models, trained using the MAPS piano dataset. ",
451
+ "bbox": [
452
+ 174,
453
+ 671,
454
+ 825,
455
+ 784
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "4.2 MULTI-LAYER PERCEPTRONS ",
462
+ "text_level": 1,
463
+ "bbox": [
464
+ 176,
465
+ 800,
466
+ 416,
467
+ 814
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "We build a two-layer network with features $f _ { i } ( \\mathbf { x } ) = \\log \\left( 1 + \\operatorname* { m a x } ( 0 , \\mathbf { w } _ { i } ^ { T } \\mathbf { x } ) \\right)$ . We find that compression introduced by a logarithm improves performance versus a standard ReLU network (see Table 3). Figure 1 illustrates a selection of weights $w _ { i }$ learned by the bottom layer of this network. The weights learned by the network are modulated sinusoids. This explains the effectiveness of spectrograms as a low-level representation of musical audio. The weights decay at the boundaries, analogous to Gabor filters in vision. This behavior is explained by the labeling methodology: the audio segments used here are approximately $1 / 3$ of a second long, and a segment is given a note label if that note is on in the center of the segment. Therefore information at the boundaries of the segment is less useful for prediction than information nearer to the center. ",
474
+ "bbox": [
475
+ 174,
476
+ 825,
477
+ 825,
478
+ 924
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "",
485
+ "bbox": [
486
+ 171,
487
+ 103,
488
+ 823,
489
+ 132
490
+ ],
491
+ "page_idx": 5
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "4.3 (LOG-)SPECTROGRAMS ",
496
+ "text_level": 1,
497
+ "bbox": [
498
+ 176,
499
+ 148,
500
+ 379,
501
+ 162
502
+ ],
503
+ "page_idx": 5
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Spectrograms are an engineered feature representation for musical audio signals, available in popular software packages such as librosa (McFee et al., 2015). Spectrograms (resp. log-spectrograms) are closely related to a two-layer ReLU network (resp. the log-ReLU network described above). If $\\mathbf { x } = ( x _ { 1 } , \\dots , x _ { t } )$ denotes a segment of an audio signal of length $t$ then we can define ",
508
+ "bbox": [
509
+ 176,
510
+ 174,
511
+ 825,
512
+ 231
513
+ ],
514
+ "page_idx": 5
515
+ },
516
+ {
517
+ "type": "equation",
518
+ "img_path": "images/4bac2a1bd7a66f750ac4ef057d2fa819f4790063de72c4af6545605da9e04829.jpg",
519
+ "text": "$$\n\\mathrm { S p e c } _ { k } ( \\mathbf { x } ) \\equiv \\left| \\sum _ { s = 0 } ^ { t - 1 } e ^ { - 2 \\pi i k s / t } x _ { s } \\right| ^ { 2 } = \\left( \\sum _ { s = 0 } ^ { t - 1 } \\cos ( 2 \\pi k s / t ) x _ { s } \\right) ^ { 2 } + \\left( \\sum _ { s = 0 } ^ { t - 1 } \\sin ( 2 \\pi k s / t ) x _ { s } \\right) ^ { 2 } .\n$$",
520
+ "text_format": "latex",
521
+ "bbox": [
522
+ 210,
523
+ 234,
524
+ 787,
525
+ 281
526
+ ],
527
+ "page_idx": 5
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "These features are not precisely learnable by a two-layer ReLU network. But recall that $| x | =$ $\\operatorname* { m a x } ( 0 , x ) + \\operatorname* { m a x } ( 0 , - \\bar { x } )$ and if we take weight vectors ${ \\bf u } , { \\bf v } \\in \\mathbb { R } ^ { T }$ with $u _ { s } = \\cos ( 2 \\pi k s / t )$ and $v _ { s } = \\sin ( 2 \\pi k s / t )$ then the ReLU network can learn ",
532
+ "bbox": [
533
+ 173,
534
+ 291,
535
+ 826,
536
+ 334
537
+ ],
538
+ "page_idx": 5
539
+ },
540
+ {
541
+ "type": "equation",
542
+ "img_path": "images/8b0e9ec100214b3d8fa6fdcf534f78f9f3619c84cbbcfb015c330f2d8f2a3f88.jpg",
543
+ "text": "$$\nf _ { k , \\mathrm { c o s } } ( \\mathbf { x } ) + f _ { k , \\mathrm { s i n } } ( \\mathbf { x } ) \\equiv | \\mathbf { u } ^ { T } \\mathbf { x } | + | \\mathbf { v } ^ { T } \\mathbf { x } | = \\left| \\sum _ { s = 0 } ^ { t - 1 } \\mathrm { c o s } ( 2 \\pi k s / t ) x _ { s } \\right| + \\left| \\sum _ { s = 0 } ^ { t - 1 } \\mathrm { s i n } ( 2 \\pi k s / t ) x _ { s } \\right| .\n$$",
544
+ "text_format": "latex",
545
+ "bbox": [
546
+ 205,
547
+ 338,
548
+ 789,
549
+ 382
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "We call this family of features a ReLUgram and observe that it has a similar form to the spectrogram; we merely replace the $x \\mapsto x ^ { 2 }$ non-linearity of the spectrogram with $x \\mapsto | x |$ . These features achieve similar performance to spectrograms on the classification task (see Table 3). ",
556
+ "bbox": [
557
+ 176,
558
+ 385,
559
+ 823,
560
+ 426
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "4.4 WINDOW SIZE ",
567
+ "text_level": 1,
568
+ "bbox": [
569
+ 174,
570
+ 443,
571
+ 316,
572
+ 458
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "When we parameterize a network, we must choose the width of the set of weights in the bottom layer. This width is called the receptive field in the vision community; in the music community it is called the window size. Traditional frequency analyses, including spectrograms, are highly sensitive to the window size. Windows must be long enough to capture relevant information, but not so long that they lose temporal resolution; this is the classical time-frequency tradeoff. Furthermore, windowed frequency analysis is subject to boundary effects, known as spectral leakage. Classical signal processing attempts to dampen these effects with predefined window functions, which apply a mask that attenuates the signal at the boundaries (Rabiner & Schafer, 2007). ",
579
+ "bbox": [
580
+ 174,
581
+ 469,
582
+ 825,
583
+ 580
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "The proposed end-to-end models learn window functions. If we parameterize these models with a large window size then the model will learn that distant information is irrelevant to local prediction, so the magnitude of the learned weights will attenuate at the boundaries. We therefore focus on two window sizes: 2048 samples, which captures the local content of the signal, and 16,384 samples, which is sufficient to capture almost all relevant context (again see Figure 1). ",
590
+ "bbox": [
591
+ 174,
592
+ 587,
593
+ 825,
594
+ 657
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "4.5 REGULARIZATION ",
601
+ "text_level": 1,
602
+ "bbox": [
603
+ 174,
604
+ 674,
605
+ 341,
606
+ 688
607
+ ],
608
+ "page_idx": 5
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "The size of MusicNet is essential to achieving the results in Figure 1. In Figure 3 (Left) we optimize a two-layer ReLU network on a small subset of MusicNet consisting of 65, 000 monophonic data points. While these features do exhibit dominant frequencies, the signal is quite noisy. Comparable noisy frequency selective features were recovered by Dieleman & Schrauwen (2014); see their Figure 3. We can recover clean features on a small dataset using heavy regularization, but this destroys classification performance; regularizing with dropout poses a similar tradeoff. By contrast, Figure 3 (Right) shows weights learned by an unregularized two-layer network trained on the full MusicNet dataset. The models described in this paper do not overfit to MusicNet and optimal performance (reported in Table 3) is achieved without regularization. ",
613
+ "bbox": [
614
+ 174,
615
+ 699,
616
+ 825,
617
+ 825
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "4.6 CONVOLUTIONAL NETWORKS ",
624
+ "text_level": 1,
625
+ "bbox": [
626
+ 176,
627
+ 842,
628
+ 421,
629
+ 856
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Previously, we estimated $\\hat { \\mathbf { y } }$ by regressing against $f ( \\mathbf { x } )$ . We now consider a convolutional model that regresses against features of a collection of shifted segments $\\mathbf { x } _ { \\ell }$ near to the original segment x. The learned features of this network are visually comparable to those learned by the fully connected network (Figure 1). The parameters of this network are the receptive field, stride, and pooling regions. ",
636
+ "bbox": [
637
+ 174,
638
+ 867,
639
+ 823,
640
+ 924
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "image",
646
+ "img_path": "images/3c0669fca76136809bc2d927779736f34a74a909811dd646afdbc2c66b15c673.jpg",
647
+ "image_caption": [
648
+ "Figure 3: (Left) Features learned by a 2-layer ReLU network trained on small monophonic subset of MusicNet. (Right) Features learned by the same network, trained on the full MusicNet dataset. "
649
+ ],
650
+ "image_footnote": [],
651
+ "bbox": [
652
+ 225,
653
+ 103,
654
+ 771,
655
+ 246
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "The results reported in Table 3 are achieved with 500 hidden units using a receptive field of 2, 048 samples with an 8-sample stride across a window of 16, 384 samples. These features are grouped into average pools of width 16, with a stride of 8 features between pools. A max-pooling operation yields similar results. The learned features are consistent across different parameterizations. In all cases the learned features are comparable to those of a fully connected network. ",
662
+ "bbox": [
663
+ 174,
664
+ 311,
665
+ 825,
666
+ 382
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "5 RESULTS ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 174,
676
+ 401,
677
+ 282,
678
+ 417
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "We hold out a test set of 3 recordings for all the results reported in this section: ",
685
+ "bbox": [
686
+ 173,
687
+ 433,
688
+ 691,
689
+ 448
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "• Bach’s Prelude in D major for Solo Piano. WTK Book 1, No 5. Performed by Kimiko Ishizaka. MusicNet recording id 2303. \n• Mozart’s Serenade in E-flat major. K375, Movement 4 - Menuetto. Performed by the Soni Ventorum Wind Quintet. MusicNet recording id 1819. \n• Beethoven’s String Quartet No. 13 in B-flat major. Opus 130, Movement 2 - Presto. Released by the European Archive. MusicNet recording id 2382. ",
696
+ "bbox": [
697
+ 215,
698
+ 453,
699
+ 825,
700
+ 537
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "The test set is a representative sampling of MusicNet: it covers most of the instruments in the dataset in small, medium, and large ensembles. The test data points are evenly spaced segments separated by 512 samples, between the 1st and 91st seconds of each recording. For the wider features, there is substantial overlap between adjacent segments. Each segment is labeled with the notes that are on in the middle of the segment. ",
707
+ "bbox": [
708
+ 174,
709
+ 545,
710
+ 825,
711
+ 614
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "image",
717
+ "img_path": "images/11641190697d2c62117bfa33adfae72bd0e1b39586d981eba8920ed2506e51c4.jpg",
718
+ "image_caption": [
719
+ "Figure 4: Precision-recall curves for the convolutional network on the test set. Curves are evaluated on subsets of the test set consisting of all data points (blue); points with exactly one label (monophonic; green); and points with exactly three labels (red). "
720
+ ],
721
+ "image_footnote": [],
722
+ "bbox": [
723
+ 316,
724
+ 636,
725
+ 678,
726
+ 816
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "We evaluate our models on three scores: precision, recall, and average precision. The precision score is the count of correct predictions by the model (across all data points) divided by the total number of predictions by the model. The recall score is the count of correct predictions by the model divided by the total number of (ground truth) labels in the test set. Precision and recall are parameterized by the note prediction threshold $c$ (see Sect. 4). By varying $c$ , we construct precision-recall curves (see Figure 4). The average precision score is the area under the precision-recall curve. ",
733
+ "bbox": [
734
+ 173,
735
+ 895,
736
+ 823,
737
+ 924
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "",
744
+ "bbox": [
745
+ 174,
746
+ 103,
747
+ 825,
748
+ 160
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "table",
754
+ "img_path": "images/c39c4f354572f518882f2760616b9919ee2dbaadb2c1c73fafeded6443fd6487.jpg",
755
+ "table_caption": [],
756
+ "table_footnote": [],
757
+ "table_body": "<table><tr><td>Representation</td><td>Window Size</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>log-spectrograms</td><td>1,024</td><td>49.0%</td><td>40.5%</td><td>39.8%</td></tr><tr><td>spectrograms</td><td>2,048</td><td>28.9%</td><td>52.5 %</td><td>32.9%</td></tr><tr><td>log-spectrograms</td><td>2,048</td><td>61.9%</td><td>42.0%</td><td>48.8%</td></tr><tr><td>log-ReLUgrams</td><td>2.048</td><td>58.9%</td><td>47.9%</td><td>49.3%</td></tr><tr><td>MLP,500 nodes</td><td>2.048</td><td>50.1%</td><td>58.0%</td><td>52.1%</td></tr><tr><td>MLP, 2500 nodes</td><td>2.048</td><td>53.6%</td><td>62.3%</td><td>56.2%</td></tr><tr><td>AvgPool,2 stride</td><td>2,148</td><td>53.4%</td><td>62.5%</td><td>56.4%</td></tr><tr><td>log-spectrograms</td><td>8,192</td><td>64.2%</td><td>28.6%</td><td>52.1%</td></tr><tr><td>log-spectrograms</td><td>16,384</td><td>58.4%</td><td>18.1%</td><td>45.5%</td></tr><tr><td>MLP, 500 nodes</td><td>16,384</td><td>54.4%</td><td>64.8%</td><td>60.0%</td></tr><tr><td>CNN, 64 stride</td><td>16,384</td><td>60.5%</td><td>71.9%</td><td>67.8%</td></tr></table>",
758
+ "bbox": [
759
+ 233,
760
+ 178,
761
+ 763,
762
+ 361
763
+ ],
764
+ "page_idx": 7
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "Table 3: Benchmark results on MusicNet for models discussed in this paper. The learned representations are optimized for square loss with SGD using the Tensorflow library (Abadi et al.). We report the precision and recall corresponding to the best $F _ { 1 }$ -score on validation data. ",
769
+ "bbox": [
770
+ 174,
771
+ 371,
772
+ 823,
773
+ 414
774
+ ],
775
+ "page_idx": 7
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "A spectrogram of length $n$ is computed from $2 n$ samples, so the linear 1024-point spectrogram model is directly comparable to the MLP runs with 2048 raw samples. Learned features4 modestly outperform spectrograms for comparable window sizes. The discussion of windowing in Sect. 4.4 partially explains this. Figure 5 suggests a second reason. Recall (Sect. 4.3) that the spectrogram features can be interpreted as the magnitude of the signal’s inner product with sine waves of linearly spaced frequencies. In contrast, the proposed networks learn weights with frequencies distributed similarly to the distribution of notes in MusicNet (Figure 5). This gives the network higher resolution in the most critical frequency regions. ",
780
+ "bbox": [
781
+ 173,
782
+ 435,
783
+ 825,
784
+ 547
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "image",
790
+ "img_path": "images/515e332fb787091151cc1fe1f015f9b0c0daa6c8d967fc5e24577abcd6ab5653.jpg",
791
+ "image_caption": [
792
+ "Figure 5: (Left) The frequency distribution of notes in MusicNet. (Right) The frequency distribution of learned nodes in a 500-node, two-layer ReLU network. "
793
+ ],
794
+ "image_footnote": [],
795
+ "bbox": [
796
+ 217,
797
+ 571,
798
+ 779,
799
+ 709
800
+ ],
801
+ "page_idx": 7
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "ACKNOWLEDGMENTS ",
806
+ "text_level": 1,
807
+ "bbox": [
808
+ 176,
809
+ 794,
810
+ 326,
811
+ 806
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "We thank Bob L. Sturm for his detailed feedback on an earlier version of the paper. We also thank Brian McFee and Colin Raffel for fruitful discussions. Sham Kakade acknowledges funding from the Washington Research Foundation for innovation in Data-intensive Discovery. Zaid Harchaoui acknowledges funding from the program ”Learning in Machines and Brains” of CIFAR. ",
818
+ "bbox": [
819
+ 174,
820
+ 819,
821
+ 825,
822
+ 876
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "REFERENCES \nM. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. Corrado, A. Davis, J. Dean, M. Devin, S. Ghemawat, I. Goodfellow, A. Harp, G. Irving, M. Isard, Y. Jia, R. Jozefowicz, L. Kaiser, M. Kudlur, J. Levenberg, D. Mane, R. Monga, S. Moore, D. Murray, C. Olah, M. Schuster, J. Shlens, B. Steiner, I. Sutskever, K. Talwar, P. Tucker, V. Vanhoucke, V. Vasudevan, F. Viegas, O. Vinyals, P. Warden, M. Wattenberg, M. Wicke, Y. Yu, and X. Zheng. TensorFlow: Largescale machine learning on heterogeneous systems. URL http://tensorflow.org/. \nE. Benetos and S. Dixon. Joint multi-pitch detection using harmonic envelope estimation for polyphonic music transcription. IEEE Selected Topics in Signal Processing, 2011. \nE. Benetos, S. Dixon, D. Giannoulis, H. Kirchoff, and A. Klapuri. Automatic music transcription: challenges and future directions. Journal of Intelligent Information Systems, 2013. \nT. Berg-Kirkpatrick, J. Andreas, and D. Klein. Unsupervised transcription of piano music. NIPS, 2014. \nS. Dieleman and B. Schrauwen. End-to-end learning for music audio. ICASSP, 2014. \nZ. Duan, B. Pardo, and C. Zhang. Multiple fundamental frequency estimation by modeling spectral peaks and non-peak regions. TASLP, 2011. \nV. Emiya, R. Badeau, and B. David. Multipitch estimation of piano sounds using a new probabilistic spectral smoothness principle. TASLP, 2010. \nS. Ewert, M. Muller, and P. Grosche. High resolution audio synchronization using chroma features. ¨ ICASSP, 2009. \nD. Garreau, R. Lajugie, S. Arlot, and F. Bach. Metric learning for temporal sequence alignment. NIPS, 2014. \nM. Goto, H. Hashiguchi, T. Nishimura, and R. Oka. RWC music database: Music genre database and musical instrument sound database. ISMIR, 2003. \nGaetan Hadjeres and Franc¸ois Pachet. Deepbach: a steerable model for bach chorales generation. ¨ arXiv preprint, 2016. \nC. Harte. Towards Automatic Extraction of Harmony Information from Music Signals. PhD thesis, Department of Electrical Engineering, Queen Mary, University of London, 2010. \nN. Hu, R. B. Dannenberg, and G. Tzanetakis. Polyphonic audio matching and alignment for music retrieval. IEEE Workshop on Applications of Signal Processing to Audio and Acoustics, 2003. \nE. J. Humphrey, J. P. Bello, and Y. LeCun. Moving beyond feature design: Deep architectures and automatic feature learning in music informatics. ISMIR, 2012. \nO. Izmirli and R. B. Dannenberg. Understanding features and distance functions for music sequence alignment. ISMIR, 2010. \nC. Joder, S. Essid, and G. Richard. Learning optimal features for polyphonic audio-to-score alignment. TASLP, 2013. \nR. Kelz, M. Dorfer, F. Korzeniowski, S. Bock, A. Arzt, and G. Widmer. On the potential of simple ¨ framewise approaches to piano transcription. ISMIR, 2016. \nA. Khlif and V. Sethu. An iterative multi range non-negative matrix factorization algorithm for polyphonic music transcription. ISMIR, 2015. \nF. Korzeniowsk and G. Widmer. Feature learning for chord recognition: the deep chroma extractor. ISMIR, 2016. \nR. Lajugie, P. Bojanowski, P. Cuvillier, S. Arlot, and F. Bach. A weakly-supervised discriminative model for audio-to-score alignment. ICASSP, 2016. \nB. McFee and G. Lanckriet. Learning multi-modal similarity. JMLR, 2011. \nB. McFee, T. Bertin-Mahieux, D. P. W. Ellis, and G. Lanckriet. The million song dataset challenge. Proceedings of the 21st International Conference on World Wide Web, 2012. \nB. McFee, C. Raffel, D. Liang, D. P. W. Ellis, M. McVicar, E. Battenberg, and O. Nieto. librosa: Audio and music signal analysis in python. SCIPY, 2015. \nN. Orio and D. Schwarz. Alignment of monophonic and polyphonic music to a score. International Computer Music Conference, 2001. \nG. Poliner and D. P. W. Ellis. A discriminative model for polyphonic piano transcription. EURASIP Journal on Applied Signal Processing, 2007. \nL. Rabiner and R. Schafer. Introduction to digital speech processing. Foundations and trends in signal processing, 2007. \nC. Raffel and D. P. W. Ellis. Large-scale content-based matching of MIDI and audio files. ISMIR, 2015. \nC. Raffel, B. McFee, E. J. Humphrey, J. Salamon, O. Nieto, D. Liang, and D. P. W. Ellis. mir eval: A transparent implementation of common mir metrics. ISMIR, 2014. \nC. Raphael. Automatic segmentation of acoustic musical signals using hidden markov models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1999. \nO. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. Imagenet large scale visual recognition challenge. IJCV, 2015. \nF. Soulez, X. Rodet, and D. Schwarz. Improving polyphonic and poly-instrumental music to score alignment. ISMIR, 2003. \nK. Tokuda and H. Zen. Directly modeling voiced and unvoiced components in speech waveforms by neural networks. ICASSP, 2016. \nR. J. Turetsky and D. P. W. Ellis. Ground-truth transcriptions of real music from force-aligned midi syntheses. ISMIR, 2003. \nA. van den Oord, S. Dieleman, and B. Schrauwen. Deep content-based music recommendation. NIPS, 2013. \nA. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. WaveNet: A generative model for raw audio. arXiv preprint, 2016. ",
829
+ "bbox": [
830
+ 171,
831
+ 97,
832
+ 826,
833
+ 930
834
+ ],
835
+ "page_idx": 8
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "",
840
+ "bbox": [
841
+ 171,
842
+ 85,
843
+ 828,
844
+ 675
845
+ ],
846
+ "page_idx": 9
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "A VALIDATING THE MUSICNET LABELS ",
851
+ "text_level": 1,
852
+ "bbox": [
853
+ 176,
854
+ 102,
855
+ 522,
856
+ 118
857
+ ],
858
+ "page_idx": 10
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "We validate the aligned MusicNet labels with a listening test. We create an aural representation of an aligned score-performance pair by mixing a short sine wave into the performance with the frequency indicated by the score at the time indicated by the alignment. We can listen to this mix and, if the alignment is correct, the sine tones will exactly overlay the original performance; if the alignment is incorrect, the mix will sound dissonant. ",
863
+ "bbox": [
864
+ 174,
865
+ 133,
866
+ 823,
867
+ 203
868
+ ],
869
+ "page_idx": 10
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "We have listened to sections of each recording in the aligned dataset: the beginning, several random samples of middle, and the end. Mixes with substantially incorrect alignments were rejected from the dataset. Failed alignments are mostly attributable to mismatches between the midi and the recording. The most common reason for rejection is musical repeats. Classical music often contains sections with indications that they be repeated a second time; in classical music performance culture, it is often acceptable to ignore these directions. If the score and performance make different choices regarding repeats, a mismatch arises. When the score omits a repeat that occurs in the performance, the alignment typically warps over the entire repeated section, with correct alignments before and after. When the score includes an extra repeat, the alignment typically compresses it into very short segment, with correct alignments on either side. We rejected alignments exhibiting either of these issues from the dataset. ",
874
+ "bbox": [
875
+ 174,
876
+ 210,
877
+ 825,
878
+ 363
879
+ ],
880
+ "page_idx": 10
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "From the aligned performances that we deemed sufficiently accurate to admit to the dataset, we randomly sampled 30 clips for more careful annotation and analysis. We weighted the sample to cover a wide coverage of recordings with various instruments, ensemble sizes, and durations. For each sampled performance, we randomly selected a 30 second clip. Using software transforms, it is possible to slow a recording down to approximately 1/4 speed. Two of the clips were too richly structured and fast to precisely analyze (slowing the signal down any further introduces artifacts that make the signal difficult to interpret). Even in these two rejected samples, the alignments sound substantially correct. ",
885
+ "bbox": [
886
+ 174,
887
+ 369,
888
+ 825,
889
+ 481
890
+ ],
891
+ "page_idx": 10
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "For the other 28 clips, we carefully analyzed the aligned performance mix and annotated every alignment error. Two of the authors are classically trained musicians: we independently checked for errors and we our analyses were nearly identical. Where there was disagreement, we used the more pessimistic author’s analysis. Over our entire set of clips we averaged a $4 . 0 \\%$ error rate. ",
896
+ "bbox": [
897
+ 174,
898
+ 488,
899
+ 825,
900
+ 544
901
+ ],
902
+ "page_idx": 10
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Note that we do not catch every type of error. Mistaken note onsets are more easily identified than mistaken offsets. Typically the release of one note coincides with the onset of a new note, which implicitly verifies the release. However, release times at the ends of phrases may be less accurate; these inaccuracies would not be covered by our error analysis. We were also likely to miss performance mistakes that maintain the meter of the performance, but for professional recordings such mistakes are rare. ",
907
+ "bbox": [
908
+ 174,
909
+ 551,
910
+ 825,
911
+ 635
912
+ ],
913
+ "page_idx": 10
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "For stringed instruments, chords consisting of more than two notes are “rolled”; i.e. they are performed serially from the lowest to the highest note. Our alignment protocol cannot separate notes that are notated simultaneously in the score; a rolled chord is labeled with a single starting time, usually the beginning of the first note in the roll. Therefore, there is some time period at the beginning of a roll where the top notes of the chord are labeled but have not yet occurred in the performance. There are reasonable interpretations of labeling under which these labels would be judged incorrect. On the other hand, if the labels are used to supervise transcription then ours is likely the desired labeling. ",
918
+ "bbox": [
919
+ 173,
920
+ 642,
921
+ 825,
922
+ 753
923
+ ],
924
+ "page_idx": 10
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "We can also qualitatively characterize the types of errors we observed. The most common types of errors are anticipations and delays: a single, or small sequence of labels is aligned to a slightly early or late location in the time series. Another common source of error is missing ornaments and trills: these are short flourishes in a performance are sometimes not annotated in our score data, which results in a missing annotation in the alignment. Finally, there are rare performance errors in the recordings and transcription errors in the score. ",
929
+ "bbox": [
930
+ 174,
931
+ 760,
932
+ 825,
933
+ 843
934
+ ],
935
+ "page_idx": 10
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "B ALIGNMENT PARAMETER ROBUSTNESS ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 102,
944
+ 539,
945
+ 118
946
+ ],
947
+ "page_idx": 11
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "The definitions of audio featurization and the alignment cost function were contingent on several parameter choices. These choices were optimized by systematic exploration of the parameter space. We investigated what happens as we vary each parameter and made the choices that gave the best results in our listening tests. Fine-tuning of the parameters yields marginal gains. ",
952
+ "bbox": [
953
+ 174,
954
+ 133,
955
+ 823,
956
+ 189
957
+ ],
958
+ "page_idx": 11
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "The quality of alignments improves uniformly with the quality of synthesis. The time-resolution of labels improves uniformly as the stride parameter decreases; minimization of stride is limited by system memory constraints. We find that the precise phase-invariant feature specification has little effect on alignment quality. We experimented with spectrograms and log-spectrograms using windowed and un-windowed signals. Alignment quality seemed to be largely unaffected. ",
963
+ "bbox": [
964
+ 174,
965
+ 196,
966
+ 825,
967
+ 266
968
+ ],
969
+ "page_idx": 11
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "The other parameters are governed by a tradeoff curve; the optimal choice is determined by balancing desirable outcomes. The Fourier window size is a classic tradeoff between time and frequency resolution. The $\\ell ^ { 2 }$ norm can be understood as a tradeoff between the extremes of $\\ell ^ { 1 }$ and $\\ell ^ { \\infty }$ . The $\\bar { \\ell ^ { 1 } }$ norm is too egalitarian: the preponderance of errors due to synthesis quality add up and overwhelm the signal. On the other hand, the $\\ell ^ { \\infty }$ norm ignores too much of the signal in the spectrogram. The spectrogram cutoff, discussed in Sec. 3, is also a tradeoff between synthesis quality and maximal use of information ",
974
+ "bbox": [
975
+ 174,
976
+ 272,
977
+ 825,
978
+ 371
979
+ ],
980
+ "page_idx": 11
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "C ADDITIONAL ERROR ANALYSIS ",
985
+ "text_level": 1,
986
+ "bbox": [
987
+ 176,
988
+ 391,
989
+ 472,
990
+ 407
991
+ ],
992
+ "page_idx": 11
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "For each model, using the test set described in Sect. 5, we report accuracy and error scores used by the MIR community to evaluate the Multi-F0 systems. Definitions and a discussion of these metrics are presented in Poliner & Ellis (2007). ",
997
+ "bbox": [
998
+ 174,
999
+ 422,
1000
+ 825,
1001
+ 464
1002
+ ],
1003
+ "page_idx": 11
1004
+ },
1005
+ {
1006
+ "type": "table",
1007
+ "img_path": "images/439d8c687c866f716c89dcc24e174ee89d24d06ce7050ab18e929198cc998f9d.jpg",
1008
+ "table_caption": [],
1009
+ "table_footnote": [
1010
+ "Table 4: MIREX-style statistics, evaluated using the mir eval library (Raffel et al., 2014). "
1011
+ ],
1012
+ "table_body": "<table><tr><td>Representation</td><td>Acc</td><td>Etot</td><td>Esub</td><td>Emiss</td><td>Efa</td></tr><tr><td>512-point log-spectrogram</td><td>28.5%</td><td>.819</td><td>.198</td><td>.397</td><td>.224</td></tr><tr><td>1024-point log-spectrogram</td><td>33.4%</td><td>.715</td><td>.123</td><td>.457</td><td>.135</td></tr><tr><td>1024-point log-ReLUgram</td><td>35.9%</td><td>.711</td><td>.144</td><td>.377</td><td>.190</td></tr><tr><td>4096-point log-spectrogram</td><td>24.7%</td><td>.788</td><td>.085</td><td>.628</td><td>.074</td></tr><tr><td>8192-point log-spectrogram</td><td>16.1%</td><td>.866</td><td>.082</td><td>.737</td><td>.047</td></tr><tr><td>MLP,500 nodes,2048 raw samples</td><td>36.8%</td><td>.790</td><td>.206</td><td>.214</td><td>.370</td></tr><tr><td>MLP,2500 nodes.2048 samples</td><td>40.4%</td><td>.740</td><td>.177</td><td>.200</td><td>.363</td></tr><tr><td>AvgPool, 5 stride,2048 samples</td><td>40.5%</td><td>.744</td><td>.176</td><td>.200</td><td>.369</td></tr><tr><td>MLP, 500 nodes,16384 samples</td><td>42.0%</td><td>.735</td><td>.160</td><td>.191</td><td>.383</td></tr><tr><td>CNN, 64 stride,16384 samples</td><td>48.9%</td><td>.634</td><td>.117</td><td>.164</td><td>.352</td></tr></table>",
1013
+ "bbox": [
1014
+ 236,
1015
+ 478,
1016
+ 761,
1017
+ 646
1018
+ ],
1019
+ "page_idx": 11
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "D PRECISION & RECALL CURVES ",
1024
+ "text_level": 1,
1025
+ "bbox": [
1026
+ 174,
1027
+ 102,
1028
+ 472,
1029
+ 118
1030
+ ],
1031
+ "page_idx": 12
1032
+ },
1033
+ {
1034
+ "type": "image",
1035
+ "img_path": "images/810d0e2683165012ba1f572437ab143e35419626c8e35b2f899b24a16e694f2a.jpg",
1036
+ "image_caption": [],
1037
+ "image_footnote": [],
1038
+ "bbox": [
1039
+ 194,
1040
+ 142,
1041
+ 486,
1042
+ 291
1043
+ ],
1044
+ "page_idx": 12
1045
+ },
1046
+ {
1047
+ "type": "image",
1048
+ "img_path": "images/1a0e01dc147eafcf87fc9130743d1cac4eae192849d02b9825c44ddcf940b4d3.jpg",
1049
+ "image_caption": [
1050
+ "Figure 7: The 500 node, 2048 raw sample MLP. "
1051
+ ],
1052
+ "image_footnote": [],
1053
+ "bbox": [
1054
+ 511,
1055
+ 143,
1056
+ 802,
1057
+ 291
1058
+ ],
1059
+ "page_idx": 12
1060
+ },
1061
+ {
1062
+ "type": "image",
1063
+ "img_path": "images/f52a40cd66e7452be48e128f48fc0bd45d974575f5baf9d6902458c3643fe34b.jpg",
1064
+ "image_caption": [
1065
+ "Figure 6: The linear spectrogram model. "
1066
+ ],
1067
+ "image_footnote": [],
1068
+ "bbox": [
1069
+ 194,
1070
+ 344,
1071
+ 486,
1072
+ 493
1073
+ ],
1074
+ "page_idx": 12
1075
+ },
1076
+ {
1077
+ "type": "image",
1078
+ "img_path": "images/4b94c58e9626f3a6dc8ce4c6c4a0a6286876fbf8c1ae181061ea3c19f6c48b3d.jpg",
1079
+ "image_caption": [
1080
+ "Figure 9: The average pooling model. "
1081
+ ],
1082
+ "image_footnote": [],
1083
+ "bbox": [
1084
+ 511,
1085
+ 345,
1086
+ 803,
1087
+ 493
1088
+ ],
1089
+ "page_idx": 12
1090
+ },
1091
+ {
1092
+ "type": "image",
1093
+ "img_path": "images/21f2d335f75aff509ef9221e2b73bedf6e9a23f45ac80cc39df7cb777c5e97ea.jpg",
1094
+ "image_caption": [
1095
+ "Figure 8: The 2500 node, 2048 raw sample MLP. "
1096
+ ],
1097
+ "image_footnote": [],
1098
+ "bbox": [
1099
+ 194,
1100
+ 546,
1101
+ 486,
1102
+ 694
1103
+ ],
1104
+ "page_idx": 12
1105
+ },
1106
+ {
1107
+ "type": "image",
1108
+ "img_path": "images/bce2c39127cbc1c8dcb726c11d8c6842629ce4d04d7bb6ab33aa4a3118c7d480.jpg",
1109
+ "image_caption": [
1110
+ "Figure 10: The 500 node, 16384 raw sample MLP. ",
1111
+ "Figure 11: The convolutional model. "
1112
+ ],
1113
+ "image_footnote": [],
1114
+ "bbox": [
1115
+ 511,
1116
+ 546,
1117
+ 803,
1118
+ 694
1119
+ ],
1120
+ "page_idx": 12
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "E ADDITIONAL RESULTS ",
1125
+ "text_level": 1,
1126
+ "bbox": [
1127
+ 174,
1128
+ 102,
1129
+ 398,
1130
+ 118
1131
+ ],
1132
+ "page_idx": 13
1133
+ },
1134
+ {
1135
+ "type": "table",
1136
+ "img_path": "images/211b67fde0060ee363a09d76c7a3da435e190b08ac3dc3da2e8e795197bbc798.jpg",
1137
+ "table_caption": [
1138
+ "We report additional results on splits of the test set described in Sect. 5. "
1139
+ ],
1140
+ "table_footnote": [],
1141
+ "table_body": "<table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>56.1%</td><td>62.7%</td><td>59.2%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>59.1%</td><td>67.8%</td><td>63.1%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>59.1%</td><td>68.2%</td><td>64.5%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>60.2%</td><td>65.2%</td><td>65.8%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>65.9%</td><td>75.2%</td><td>74.4%</td></tr></table>",
1142
+ "bbox": [
1143
+ 217,
1144
+ 161,
1145
+ 781,
1146
+ 261
1147
+ ],
1148
+ "page_idx": 13
1149
+ },
1150
+ {
1151
+ "type": "table",
1152
+ "img_path": "images/c33951435a558c8a8d5d702195bd62728ab718bd26255a9b4703ad853600aa8a.jpg",
1153
+ "table_caption": [
1154
+ "Table 5: The Soni Ventorum recording of Mozart’s Wind Quintet K375 (MusicNet id 1819). "
1155
+ ],
1156
+ "table_footnote": [],
1157
+ "table_body": "<table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>35.4%</td><td>40.7%</td><td>28.0%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>38.3%</td><td>44.3%</td><td>30.9%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>38.6%</td><td>45.2%</td><td>31.7%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>43.4%</td><td>51.3%</td><td>41.0%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>51.0%</td><td>57.9%</td><td>49.3%</td></tr></table>",
1158
+ "bbox": [
1159
+ 218,
1160
+ 308,
1161
+ 781,
1162
+ 407
1163
+ ],
1164
+ "page_idx": 13
1165
+ },
1166
+ {
1167
+ "type": "table",
1168
+ "img_path": "images/6c1954c41e6e24cfd07954a86733439aedc2c195222f6ac0e3ebd20806e7181a.jpg",
1169
+ "table_caption": [
1170
+ "Table 6: The European Archive recording of Beethoven’s String Quartet No. 13 (MusicNet id 2382). "
1171
+ ],
1172
+ "table_footnote": [
1173
+ "Table 7: The Kimiko Ishizaka recording of Bach’s Prelude in D major (MusicNet id 2303). "
1174
+ ],
1175
+ "table_body": "<table><tr><td>Model</td><td>Features</td><td>Precision</td><td>Recall</td><td>Average Precision</td></tr><tr><td>MLP, 500 nodes</td><td>2048 raw samples</td><td>55.6%</td><td>67.4%</td><td>64.1%</td></tr><tr><td>MLP,2500 nodes</td><td>2048 raw samples</td><td>60.1%</td><td>71.3%</td><td>68.6%</td></tr><tr><td>AvgPool, 5 stride</td><td>2048 raw samples</td><td>59.6%</td><td>70.7%</td><td>68.1%</td></tr><tr><td>MLP, 500 nodes</td><td>16384 raw samples</td><td>57.1%</td><td>76.3%</td><td>68.4%</td></tr><tr><td>CNN, 64 stride</td><td>16384 raw samples</td><td>61.9%</td><td>80.1%</td><td>73.9%</td></tr></table>",
1176
+ "bbox": [
1177
+ 217,
1178
+ 454,
1179
+ 781,
1180
+ 554
1181
+ ],
1182
+ "page_idx": 13
1183
+ }
1184
+ ]
parse/train/rkFBJv9gg/rkFBJv9gg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkFBJv9gg/rkFBJv9gg_model.json ADDED
The diff for this file is too large to render. See raw diff