Title: CAQL: CONTINUOUS ACTION Q-LEARNING

Abstract: Value-based reinforcement learning (RL) methods like Q-learning have shown success in a variety of domains. One challenge in applying Q-learning to continuous-action RL problems, however, is the continuous action maximization (max-Q) required for optimal Bellman backup. In this work, we develop CAQL, a (class of) algorithm(s) for continuous-action Q-learning that can use several plugand-play optimizers for the max-Q problem. Leveraging recent optimization results for deep neural networks, we show that max-Q can be solved optimally using mixed-integer programming (MIP). When the Q-function representation has sufficient power, MIP-based optimization gives rise to better policies and is more robust than approximate methods (e.g., gradient ascent, cross-entropy search). We further develop several techniques to accelerate inference in CAQL, which despite their approximate nature, perform well. We compare CAQL with state-of-the-art RL algorithms on benchmark continuous-control problems that have different degrees of action constraints and show that CAQL outperforms policy-based methods in heavily constrained environments, often dramatically.
where λ > 0 is a tun-1 Results can be extended to handle convolutional NNs, but are omitted for brevity.

1. INTRODUCTION:

Reinforcement learning (RL) has shown success in a variety of domains such as games (Mnih et al., 2013) and recommender systems (RSs) (Gauci et al., 2018) . When the action space is finite, valuebased algorithms such as Q-learning (Watkins & Dayan, 1992) , which implicitly finds a policy by learning the optimal value function, are often very efficient because action optimization can be done by exhaustive enumeration. By contrast, in problems with a continuous action spaces (e.g., robotics (Peters & Schaal, 2006 )), policy-based algorithms, such as policy gradient (PG) (Sutton et al., 2000; Silver et al., 2014) or cross-entropy policy search (CEPS) (Mannor et al., 2003; Kalashnikov et al., 2018) , which directly learn a return-maximizing policy, have proven more practical. Recently, methods such as ensemble critic (Fujimoto et al., 2018) and entropy regularization (Haarnoja et al., 2018) have been developed to improve the performance of policy-based RL algorithms.

Policy-based approaches require a reasonable choice of policy parameterization. In some continuous control problems, Gaussian distributions over actions conditioned on some state representation is used. However, in applications such as RSs, where actions often take the form of high-dimensional item-feature vectors, policies cannot typically be modeled by common action distributions. Furthermore, the admissible action set in RL is constrained in practice, for example, when actions must lie within a specific range for safety (Chow et al., 2018) . In RSs, the admissible actions are often random functions of the state (Boutilier et al., 2018) . In such cases, it is non-trivial to define policy parameterizations that handle such factors. On the other hand, value-based algorithms are wellsuited to these settings, providing potential advantage over policy methods. Moreover, at least with linear function approximation (Melo & Ribeiro, 2007) , under reasonable assumptions, Q-learning converges to optimality, while such optimality guarantees for non-convex policy-based methods are generally limited (Fazel et al., 2018) . Empirical results also suggest that value-based methods are more data-efficient and less sensitive to hyper-parameters (Quillen et al., 2018) . Of course, with large action spaces, exhaustive action enumeration in value-based algorithms can be expensive-one solution is to represent actions with continuous features (Dulac-Arnold et al., 2015) .

The main challenge in applying value-based algorithms to continuous-action domains is selecting optimal actions (both at training and inference time). Previous work in this direction falls into three broad categories. The first solves the inner maximization of the (optimal) Bellman residual loss using global nonlinear optimizers, such as the cross-entropy method (CEM) for QT-Opt (Kalashnikov et al., 2018) , gradient ascent (GA) for actor-expert (Lim et al., 2018) , and action discretization (Uther & Veloso, 1998; Smart & Kaelbling, 2000; Lazaric et al., 2008) . However, these approaches do not guarantee optimality. The second approach restricts the Q-function parameterization so that the optimization problem is tractable. For instance, one can discretize the state and action spaces and use a tabular Q-function representation. However, due to the curse of dimensionality, discretizations must generally be coarse, often resulting in unstable control. Millán et al. (2002) circumvents this issue by averaging discrete actions weighted by their Q-values. Wire-fitting (Gaskett et al., 1999; III & Klopf, 1993) approximates Q-values piecewise-linearly over a discrete set of points, chosen to ensure the maximum action is one of the extreme points. The normalized advantage function (NAF) (Gu et al., 2016) constructs the state-action advantage function to be quadratic, hence analytically solvable. Parameterizing the Q-function with an input-convex neural network (Amos et al., 2017) ensures it is concave. These restricted functional forms, however, may degrade performance if the domain does not conform to the imposed structure. The third category replaces optimal Q-values with a "soft" counterpart (Haarnoja et al., 2018) : an entropy regularizer ensures that both the optimal Q-function and policy have closed-form solutions. However, the sub-optimality gap of this soft policy scales with the interval and dimensionality of the action space (Neu et al., 2017) .

Motivated by the shortcomings of prior approaches, we propose Continuous Action Q-learning (CAQL), a Q-learning framework for continuous actions in which the Q-function is modeled by a generic feed-forward neural network. 1 Our contribution is three-fold. First, we develop the CAQL framework, which minimizes the Bellman residual in Q-learning using one of several "plug-andplay" action optimizers. We show that "max-Q" optimization, when the Q-function is approximated by a deep ReLU network, can be formulated as a mixed-integer program (MIP) that solves max-Q optimally. When the Q-function has sufficient representation power, MIP-based optimization induces better policies and is more robust than methods (e.g., CEM, GA) that approximate the max-Q solution. Second, to improve CAQL's practicality for larger-scale applications, we develop three speed-up techniques for computing max-Q values: (i) dynamic tolerance; (ii) dual filtering; and (iii) clustering. Third, we compare CAQL with several state-of-the-art RL algorithms on several benchmark problems with varying degrees of action constraints. Value-based CAQL is generally competitive, and outperforms policy-based methods in heavily constrained environments, sometimes significantly. We also study the effects of our speed-ups through ablation analysis.

2. PRELIMINARIES:

We consider an infinite-horizon, discounted Markov decision process (Puterman, 2014) with states X, (continuous) action space A, reward function R, transition kernel P , initial state distribution β and discount factor γ ∈ [0, 1), all having the usual meaning. A (stationary, Markovian) policy π specifies a distribution π(•|x) over actions to be taken at state x. Let ∆ be the set of such policies. The expected cumulative return of π ∈ ∆ is J(π (Puterman, 2014) , which is the optimal Q-function

) := E[ ∞ t=0 γ t r t | P, R, x 0 ∼ β, π]. An optimal policy π * satisfies π * ∈ arg max π∈∆ J(π). The Bellman op- erator F [Q](x, a) = R(x, a) + γ x ∈X P (x |x, a) max a ∈A Q(x , a ) over state-action value function Q has unique fixed point Q * (x, a)

Q * (x, a) = E [ ∞ t=0 γ t R(x t , a t ) | x 0 = x, a 0 = a, π * ]. An optimal (deterministic) policy π * can be extracted from Q * : π * (a|x) = 1{a = a * (x)}, where a * (x) ∈ arg max a Q * (x, a).

For large or continuous state/action spaces, the optimal Q-function can be approximated, e.g., using a deep neural network (DNN) as in DQN (Mnih et al., 2013) . In DQN, the value function Q θ is updated using the value label r + γ max a Q θ target (x , a ), where Q θ target is a target Q-function. Instead of training these weights jointly, θ target is updated in a separate iterative fashion using the previous θ for a fixed number of training steps, or by averaging θ target ← τ θ + (1 -τ )θ target for some small momentum weight τ ∈ [0, 1] (Mnih et al., 2016) . DQN is off-policy-the target is valid no matter how the experience was generated (as long as it is sufficiently exploratory). Typically, the loss is minimized over mini-batches B of past data (x, a, r, x ) sampled from a large experience replay buffer R (Lin & Mitchell, 1992) . One common loss function for training

Q θ * is mean squared Bellman error: min θ |B| i=1 (Q θ (x i , a i ) -r i -γ max a Q θ target (x i , a ))

2 . Under this loss, RL can be viewed as 2 -regression of Q θ (•, •) w.r.t. target labels r + γ max a Q θ target (x , a ). We augment DQN, using double Q-learning for more stable training (Hasselt et al., 2016) , whose loss is:

min θ |B| i=1 r i + γQ θ target (x i , arg max a Q θ (x i , a )) -Q θ (x i , a i ) 2 .

(1)

A hinge loss can also be used in Q-learning, and has connections to the linear programming (LP) formulation of the MDP (Puterman (2014) ). The optimal Q-network weights can be specified as:

min θ able penalty w.r.t. constraint: r + γ max a ∈A Q θ (x , a ) ≤ Q θ (x, a), ∀(x, a, r, x ) ∈ B.

To stabilize training, we replace the Q-network of the inner maximization with the target Q-network and the optimal Q-value with the double-Q label, giving (see Appendix A for details):

EQUATION

In this work, we assume the Q-function approximation Q θ to be a feed-forward network. Specifically, let Q θ be a K-layer feed-forward NN with state-action input (x, a) (where a lies in a ddimensional real vector space) and hidden layers arranged according to the equations:

EQUATION

where (W j , b j ) are the multiplicative and bias weights, c is the output weight of the

Q-network, θ = c, {(W j , b j )} K-1 j=1

are the weights of the Q-network, ẑj denotes pre-activation values at layer j, and h(•) is the (component-wise) activation function. For simplicity, in the following analysis, we restrict our attention to the case when the activation functions are ReLU's. We also assume that the action space A is a d-dimensional ∞ -ball B ∞ (a, ∆) with some radius ∆ > 0 and center a. Therefore, at any arbitrary state x ∈ X the max-Q problem can be re-written as

q * x := max a∈A Q θ (x, a) = max {ẑj } K j=2 ,{zj } K-1 j=2 c ẑK : z 1 = (x, a), a ∈ B ∞ (a, ∆), eqs. (3) .

While the above formulation is intuitive, the nonlinear equality constraints in the neural network formulation (3) makes this problem non-convex and NP-hard (Katz et al., 2017) .

3. CONTINUOUS ACTION Q-LEARNING ALGORITHM:

Policy-based methods (Silver et al., 2014; Fujimoto et al., 2018; Haarnoja et al., 2018) have been widely-used to handle continuous actions in RL. However, they suffer from several well-known difficulties, e.g., (i) modeling high-dimensional action distributions, (ii) handling action constraints, and (iii) data-inefficiency. Motivated by earlier work on value-based RL methods, such as QT-Opt (Kalashnikov et al., 2018) and actor-expert (Lim et al., 2018) , we propose Continuous Action Q-learning (CAQL), a general framework for continuous-action value-based RL, in which the Qfunction is parameterized by a NN (Eq. 3). One novelty of CAQL is the formulation of the "max-Q" problem, i.e., the inner maximization in (1) and (2), as a mixed-integer programming (MIP).

The benefit of the MIP formulation is that it guarantees that we find the optimal action (and its true bootstrapped Q-value) when computing target labels (and at inference time). We show empirically that this can induce better performance, especially when the Q-network has sufficient representation power. Moreover, since MIP can readily model linear and combinatorial constraints, it offers considerable flexibility when incorporating complex action constraints in RL. That said, finding the optimal Q-label (e.g., with MIP) is computationally intensive. To alleviate this, we develop several approximation methods to systematically reduce the computational demands of the inner maximization. In Sec. 3.2, we introduce the action function to approximate the arg max-policy at inference time, and in Sec. 4 we propose three techniques, dynamic tolerance, dual filtering, and clustering, to speed up max-Q computation during training.

3.1. PLUG-N-PLAY MAX-Q OPTIMIZERS:

In this section, we illustrate how the max-Q problem, with the Q-function represented by a ReLU network, can be formulated as a MIP, which can be solved using off-the-shelf optimization packages (e.g., SCIP (Gleixner et al., 2018) , CPLEX (CPLEX, 2019), Gurobi (Gurobi, 2019) ). In addition, we detail how approximate optimizers, specifically, gradient ascent (GA) and the cross-entropy method (CEM), can trade optimality for speed in max-Q computation within CAQL. For ease of exposition, we focus on Q-functions parameterized by a feedforward ReLU network. Extending our methodology (including the MIP formulation) to convolutional networks (with ReLU activation and max pooling) is straightforward (see Anderson et al. (2019) ). While GA and CEM can handle generic activation functions beyond ReLU, our MIP requires additional approximations for those that are not piecewise linear.

Mixed-Integer Programming (MIP) A trained feed-forward ReLU network can be modeled as a MIP by formulating the nonlinear activation function at each neuron with binary constraints. Specifically, for a ReLU with pre-activation function of form z = max{0, w x + b}, where x ∈ [ , u] is a d-dimensional bounded input, w ∈ R d , b ∈ R, and , u ∈ R d are the weights, bias and lower-upper bounds respectively, consider the following set with a binary variable ζ indicating whether the ReLU is active or not:

EQUATION

In this formulation, both M + = max This can be extended to the ReLU network in (3) by chaining copies of intermediate ReLU formulations. More precisely, if the ReLU Q-network has m j neurons in layer j ∈ {2, . . . , K}, for any given state x ∈ X, the max-Q problem can be reformulated as the following MIP:

q * x = max c z K (4) s.t. z 1 := a ∈ B ∞ (a, ∆), (z j-1 , z j,i , ζ j,i ) ∈ R(W j,i , b j,i , j-1 , u j-1 ), j ∈ {2, . . . , K}, i ∈ {1, . . . , m j },

where 1 = a -∆, u 1 = a + ∆ are the (action) input-bound vectors. Since the output layer of the ReLU NN is linear, the MIP objective is linear as well. Here, W j,i ∈ R mj and b j,i ∈ R are the weights and bias of neuron i in layer j. Furthermore, j , u j are interval bounds for the outputs of the neurons in layer j for j ≥ 2, and computing them can be done via interval arithmetic or other propagation methods (Weng et al., 2018) from the initial action space bounds (see Appendix C for details). As detailed by Anderson et al. (2019) , this can be further tightened with additional constraints, and its implementation can be found in the tf.opt package described therein. As long as these bounds are redundant, having these additional box constraints will not affect optimality. We emphasize that the MIP returns provably global optima, unlike GA and CEM. Even when interrupted with stopping conditions such as a time limit, MIP often produces high-quality solutions in practice.

In theory, this MIP formulation can be solved in time exponential on the number of ReLUs and polynomial on the input size (e.g., by naively solving an LP for each binary variable assignment). In practice however, a modern MIP solver combines many different techniques to significantly speed up this process, such as branch-and-bound, cutting planes, preprocessing techniques, and primal heuristics (Linderoth & Savelsbergh, 1999) . Versions of this MIP model have been used in neural network verification (Cheng et al., 2017; Lomuscio & Maganti, 2017; Bunel et al., 2018; Dutta et al., 2018; Fischetti & Jo, 2018; Anderson et al., 2019; Tjeng et al., 2019) and analysis (Serra et al., 2018; Kumar et al., 2019) , but its application to RL is novel. While Say et al. (2017) also proposed a MIP formulation to solve the planning problem with non-linear state transition dynamics model learned with a NN, it is different than ours, which solves the max-Q problem.

Gradient Ascent GA (Nocedal & Wright, 2006 ) is a simple first-order optimization method for finding the (local) optimum of a differentiable objective function, such as a neural network Qfunction. At any state x ∈ X, given a "seed" action a 0 , the optimal action arg max a

Q θ (x, a) is computed iteratively by a t+1 ← a t + η∇ a Q θ (x, a)

, where η > 0 is a step size (either a tunable parameter or computed using back-tracking line search (Nocedal & Yuan, 1998) ). This process repeats until convergence,

|Q θ (x, a t+1 ) -Q θ (x, a t )| < , or a maximum iteration count is reached.

Cross-Entropy Method CEM (Rubinstein, 1999 ) is a derivative-free optimization algorithm. At any given state x ∈ X, it samples a batch of N actions {a i } N i=1 from A using a fixed distribution (e.g., a Gaussian) and ranks the corresponding Q-values {Q θ (x, a i )} N i=1 . Using the top K < N actions, it then updates the sampling distribution, e.g., using the sample mean and covariance to update the Gaussian. This is repeated until convergence or a maximum iteration count is reached.

3.2. ACTION FUNCTION:

In traditional Q-learning, the policy π * is "implemented" by acting greedily w.r.t. the learned Qfunction: π * (x) = arg max a Q θ (x, a). 3 However, computing the optimal action can be expensive in the continuous case, which may be especially problematic at inference time (e.g., when computational power is limited in, say embedded systems, or real-time response is critical). To mitigate the problem, we can use an action function π w : X → A-effectively a trainable actor network-to approximate the greedy-action mapping π * . We train π w using training data

B = {(x i , q * i )} |B| i=1

, where q * i is the max-Q label at state x i . Action function learning is then simply a supervised regression problem:

w * ∈ arg min w |B| i=1 (q * i -Q θ (x i , π w (x i ))) 2

. This is similar to the notion of "distilling" an optimal policy from max-Q labels, as in actor-expert (Lim et al., 2018) . Unlike actorexpert-a separate stochastic policy network is jointly learned with the Q-function to maximize the likelihood with the underlying optimal policy-our method learns a state-action mapping to approximate arg max a Q θ (x, a)-this does not require distribution matching and is generally more stable. The use of action function in CAQL is simply optional to accelerate data collection and inference.

4. ACCELERATING MAX-Q COMPUTATION:

In this section, we propose three methods to speed up the computationally-expensive max-Q solution during training: (i) dynamic tolerance, (ii) dual filtering, and (iii) clustering.

Dynamic Tolerance Tolerance plays a critical role in the stopping condition of nonlinear optimizers. Intuitively, in the early phase of CAQL, when the Q-function estimate has high Bellman error, it may be wasteful to compute a highly accurate max-Q label when a crude estimate can already guide the gradient of CAQL to minimize the Bellman residual. We can speed up the max-Q solver by dynamically adjusting its tolerance τ > 0 based on (a) the TD-error, which measures the estimation error of the optimal Q-function, and (b) the training step t > 0, which ensures the bias of the gradient (induced by the sub-optimality of max-Q solver) vanishes asymptotically so that CAQL converges to a stationary point. While relating tolerance with the Bellman residual is intuitive, it is impossible to calculate that without knowing the max-Q label. To resolve this circular dependency, notice that the action function π w approximates the optimal policy, i.e., π w (•|x) ≈ arg max a Q θ (x, •). We therefore replace the optimal policy with the action function in Bellman residual and propose the dynamic tolerance:

τ t := 1 |B| |B| i=1 |r i + γQ θ target t (x i , π wt (x i )) -Q θt (x i , a i )| • k 1 • k t 2 ,

where k 1 > 0 and k 2 ∈ [0, 1) are tunable parameters. Under standard assumptions, CAQL with dynamic tolerance {τ t } converges a.s. to a stationary point (Thm. 1, (Carden, 2014) ).

Dual Filtering:

The main motivation of dual filtering is to reduce the number of max-Q problems at each CAQL training step. For illustration, consider the formulation of hinge Q-learning in (2). Denote by q *

x ,θ target the max-Q label w.r.t. the target Q-network and next state x . The structure of the hinge penalty means the TD-error corresponding to sample (x, a, x , r) is inactive whenever q * x ,θ target ≤ (Q θ (x, a) -r)/γ-this data can be discarded. In dual filtering, we efficiently estimate an upper bound on q *

x ,θ target using some convex relaxation to determine which data can be discarded before max-Q optimization. Specifically, recall that the main source of non-convexity in (3) comes from the equality constraint of the ReLU activation function at each NN layer. Similar to MIP formulation, assume we have component-wise bounds (l j , u j ), j = 2, . . . , K -1 on the neurons, such that l j ≤ ẑj ≤ u j . The ReLU equality constraint H(l, u)

:= {(h, k) ∈ R 2 : h ∈ [l, u], k = [h] + } can be relaxed using a convex outer-approximation (Wong & Kolter, 2017): H(l, u) := {(h, k) ∈ R 2 : k ≥ h, k ≥ 0, -uh + (u -l)k ≤ -ul}.

We use this approximation to define the relaxed NN equations, which replace the nonlinear equality constraints in (3) with the convex set H(l, u). We denote the optimal Q-value w.r.t. the relaxed NN as q *

x , which is by definition an upper bound on q * x i . Hence, the condition: q *

x ,θ target ≤ (Q θ (x, a) -r)/γ is a conservative certificate for checking whether the data (x, a, x , r) is inactive. For further speed up, we estimate q *

x with its dual upper bound (see Appendix C for derivations) qx :

= -(ν 1 ) a -m • ν1 q -(ν 1 ) x + K-1 j=2 s∈Ij l j (s)[ν j (s)] + - K-1 j=1 ν j+1 b i ,

where ν is defined by the following recursion "dual" network: ν K := -c, νj := W j ν j+1 , j = 1, . . . , K -1, ν j := D j νj , j = 2, . . . , K -1, and D s is a diagonal matrix with [D j ](s, s) = 1{s ∈ I + j } + u j (s)/(u j (s) -l j (s)) • 1{s ∈ I j }, and replace the above certificate with an even more conservative one:

q x ,θ target ≤ (Q θ (x, a) -r)/γ.

Although dual filtering is derived for hinge Q-learning, it also applies to the 2 -loss counterpart by replacing the optimal value q *

x ,θ target with its dual upper-bound estimate q x ,θ target whenever the verification condition holds (i.e., the TD error is negative). Since the dual estimate is greater than the primal, the modified loss function will be a lower bound of the original in (1), i.e., (r+γ qx ,θ target - One can utilize the inactive samples in the action function (π w ) learning problem by replacing the max-Q label q *

Q θ (x, a)) 2 ≤ (r+γq * x ,θ target -Q θ (x, a)) 2 whenever r+γ qx ,θ target -Q θ (x,

x ,θ with its dual approximation q x ,θ . Since q x ,θ ≥ q * x ,θ , this replacement will not affect optimality. 4Clustering To reduce the number of max-Q solves further still, we apply online state aggregation (Meyerson, 2001) , which picks a number of centroids from the batch of next states B as the centers of p-metric balls with radius b > 0, such that the union of these balls form a minimum covering of B . Specifically, at training step t ∈ {0, 1, . . .}, denote by C t (b) ⊆ B the set of next-state centroids. For each next state c ∈ C t (b), we compute the max-Q value q * c ,θ target = max a Q θ target (c , a ), where a * c is the corresponding optimal action. For all remaining next states x ∈ B \ C t (b), we approximate their max-Q values via first-order Taylor series expansion qx ,θ

target := q * c ,θ target + ∇ x Q θ target (x , a )| x =c ,a =a * c , (x -c

) in which c is the closest centroid to x , i.e., c ∈ arg min c ∈Ct(b) x -c p . By the envelope theorem for arbitrary choice sets (Milgrom & Segal, 2002) , the gradient

∇ x max a Q θ target (x , a ) is equal to ∇ x Q θ target (x , a )| a =a *

x . In this approach the cluster radius r > 0 controls the number of max-Q computations, which trades complexity for accuracy in Bellman residual estimation. This parameter can either be a tuned or adjusted dynamically (similar to dynamic tolerance), e.g., r t = k 3 • k t 4 with hyperparameters k 3 > 0 and k 4 ∈ [0, 1). Analogously, with this exponentially-decaying cluster radius schedule we can argue that the bias of CAQL gradient (induced by max-Q estimation error due to clustering) vanishes asymptotically, and the corresponding Q-function converges to a stationary point. To combine clustering with dual filtering, we define B df as the batch of next states that are inconclusive after dual filtering, i.e., B df = {x ∈ B : q x ,θ target > (Q θ (x, a) -r)/γ}. Then instead of applying clustering to B we apply this method onto the refined batch B df .

Dynamic tolerance not only speeds up training, but also improves CAQL's performance (see Tables 4 and 5); thus, we recommend using it by default. Dual filtering and clustering both trade off training speed with performance. These are practical options-with tunable parameters-that allow practitioners to explore their utility in specific domains.

5. EXPERIMENTS ON MUJOCO BENCHMARKS:

To illustrate the effectiveness of CAQL, we (i) compare several CAQL variants with several state-ofthe-art RL methods on multiple domains, and (ii) assess the trade-off between max-Q computation speed and policy quality via ablation analysis.

Comparison with Baseline RL Algorithms We compare CAQL with four baseline methods, DDPG (Silver et al., 2014) , TD3 (Fujimoto et al., 2018) , and SAC (Haarnoja et al., 2018) -three popular policy-based deep RL algorithms-and NAF (Gu et al., 2016) , a value-based method using an action-quadratic Q-function. We train CAQL using three different max-Q optimizers, MIP, GA, and CEM. Note that CAQL-CEM counterpart is similar to QT-Opt (Kalashnikov et al., 2018) and CAQL-GA reflects some aspects actor-expert (Lim et al., 2018) . These CAQL variants allow assessment of the degree to which policy quality is impacted by Q-learning with optimal Bellman residual (using MIP) rather than an approximation (using GA or CEM), at the cost of steeper computation. To match the implementations of the baselines, we use 2 loss when training CAQL. Further ablation analysis on CAQL with 2 loss vs. hinge loss is provided in Appendix E.

We evaluate CAQL on one classical control benchmark (Pendulum) and five MuJoCo benchmarks (Hopper, Walker2D, HalfCheetah, Ant, Humanoid).5 Different than most previous work, we evaluate the RL algorithms on domains not just with default action ranges, but also using smaller, constrained action ranges (see Table 6 in Appendix D for action ranges used in our experiments). 6 The motivation for this is two-fold: (i) To simulate real-world problems (Dulac-Arnold et al., 2019) , where the restricted ranges represent the safe/constrained action sets; (ii) To validate the hypothesis that action-distribution learning in policy-based methods cannot easily handle such constraints, while CAQL does so, illustrating its flexibility. For problems with longer horizons, a larger neural network is often required to learn a good policy, which in turn significantly increases the complexity of the MIP. To reduce this computational cost, we reduce episode length in each experiment from 1000 to 200 steps, and parameterize the Q-function with a relatively simple 32 × 16 feedforward ReLU network. With shorter episodes and smaller networks, the returns of our experiments are lower than those reported in state-of-the-art RL benchmarks (Duan et al., 2016) . Details on network architectures and hyperparameters are described in Appendix D.

For the more difficult MuJoCo environments (i.e., Ant, HalfCheetah, Humanoid), the number of training steps is set to 500, 000, while for simpler ones (i.e., Pendulum, Hopper, Walker2D), it is set to 200, 000. Policy performance is evaluated every 1000 training iterations, using a policy with no exploration. Each measurement is an average return over 10 episodes, each generated using a separate random seed. To smooth learning curves, data points are averaged over a sliding window of size 6. Similar to the setting of Lim et al. (2018) , CAQL measurements are based on trajectories that are generated by the learned action function instead of the optimal action w.r.t. the Q-function.

Table 1 and Figure 1 show the average return of CAQL and the baselines under the best hyperparameter configurations. CAQL significantly outperforms NAF on most benchmarks, as well as DDPG, TD3, and SAC on 11 of 14 benchmarks. Of all the CAQL policies, those trained using MIP are among the best performers in low-dimensional benchmarks (e.g., Pendulum and Hopper). This verifies our conjecture about CAQL: Q-learning with optimal Bellman residual (using MIP) performs better than using approximation (using GA, CEM) when the Q-function has sufficient representation power (which is more likely in low-dimensional tasks). Moreover, CAQL-MIP policies have slightly lower variance than those trained with GA and CEM on most benchmarks. (32 hyperparameter combinations × 10 random seeds) and illustrates the sensitivity to hyperparameters of each method. CAQL is least sensitive in 11 of 14 tasks, and policies trained using MIP optimization, specifically, are best in 6 of 14 tasks. This corroborates the hypothesis that valuebased methods are generally more robust to hyperparameters than their policy-based counterparts. Table 9 in Appendix E.1 compares the speed (in terms of average elapsed time) of various max-Q solvers (MIP, GA, and CEM), with MIP clearly the most computationally intensive.

We note that CAQL-MIP suffers from performance degradation in several high-dimensional environments with large action ranges (e.g., Ant [-0.25, 0.25] and Humanoid [-0.25, 0.25] ). In these experiments, its performance is even worse than that of CAQL-GA or CAQL-CEM. We speculate that this is due to the fact that the small ReLU NN (32 × 16) doesn't have enough representation power to accurately model the Q-functions in more complex tasks, and therefore optimizing for the true max-Q value using an inaccurate function approximation impedes learning.

We also test CAQL using the standard MuJoCo 1000-step episode length, using gradient ascent as the optimizer, and a Q-function is parameterized with a 200 × 100 feedforward ReLU network for Hopper and with 400 × 300 for the rest benchmarks. CAQL-GA is trained using dynamic tolerance and an action function but without dual filtering or clustering. Figure 6 in Appendix E shows that CAQL-GA performs better than, or similar to, the best of the baseline methods, except on Hopper [-0.25, 0.25]-SAC performed best in that setting, however, it suffers from very high performance variance.

Ablation Analysis We now study the effects of using dynamic tolerance, dual filtering, and clustering on CAQL via two ablation analyses. For simplicity, we experiment on standard benchmarks Table 4 : Ablation analysis on CAQL-GA with dynamic tolerance, where both the mean ± standard deviation of (95-percentile) final returns and the average number of GA iterations (in parenthesis) are based on the best configuration. See Figure 9 in Appendix E for training curves. NOTE: In ( * ) the performance significantly drops after hitting the peak, and learning curve does not converge.

(with full action ranges), and primarily test CAQL-GA using an 2 loss. Default values on tolerance and maximum iteration are 1e-6 and 200, respectively.

Table 3 shows how reducing the number of max-Q problems using dual filtering and clustering affects performance of CAQL. Dual filtering (DF) manages to reduce the number of max-Q problems (from 3.2% to 26.5% across different benchmarks), while maintaining similar performance with the unfiltered CAQL-GA. On top of dual filtering we apply clustering (C) to the set of inconclusive next states B df , in which the degree of approximation is controlled by the cluster radius. With a small cluster radius (e.g., b = 0.1), clustering further reduces max-Q solves without significantly impacting training performance (and in some cases it actually improves performance), though further increasing the radius would significant degrade performance. To illustrate the full trade-off of max-Q reduction versus policy quality, we also include the Dual method, which eliminates all max-Q computation with the dual approximation. Table 4 shows how dynamic tolerance influences the quality of CAQL policies. Compared with the standard algorithm, with a large tolerance (τ = 100) GA achieves a notable speed up (with only 1 step per max-Q optimization) in training but incurs a loss in performance. GA with dynamic tolerance atttains the best of both worlds-it significantly reduces inner-maximization steps (from 29.5% to 77.3% across different problems and initial τ settings), while achieving good performance.

Additionally, Table 5 shows the results of CAQL-MIP with dynamic tolerance (i.e., optimality gap). This method significantly reduces both median and variance of the MIP elapsed time, while having better performance. Dynamic tolerance eliminates the high latency in MIP observed in the early phase of training (see Figure 3 ). Table 5 : Ablation analysis on CAQL-MIP with dynamic tolerance, where both the mean ± standard deviation of (95-percentile) final returns and the (median, standard deviation) of the elapsed time κ (in msec) are based on the best configuration. See Figure 11 in Appendix E for training curves.

6. CONCLUSIONS AND FUTURE WORK:

We proposed Continuous Action Q-learning (CAQL), a general framework for handling continuous actions in value-based RL, in which the Q-function is parameterized by a neural network. While generic nonlinear optimizers can be naturally integrated with CAQL, we illustrated how the inner maximization of Q-learning can be formulated as mixed-integer programming when the Qfunction is parameterized with a ReLU network. CAQL (with action function learning) is a general Q-learning framework that includes many existing value-based methods such as QT-Opt and actorexpert. Using several benchmarks with varying degrees of action constraint, we showed that the policy learned by CAQL-MIP generally outperforms those learned by CAQL-GA and CAQL-CEM; and CAQL is competitive with several state-of-the-art policy-based RL algorithms, and often outperforms them (and is more robust) in heavily-constrained environments. Future work includes: extending CAQL to the full batch learning setting, in which the optimal Q-function is trained using only offline data; speeding up the MIP computation of the max-Q problem to make CAQL more scalable; and applying CAQL to real-world RL problems.

A HINGE Q-LEARNING Consider an MDP with states X, actions A, transition probability function P , discount factor γ ∈ [0, 1), reward function R, and initial state distribution β. We want to find an optimal Q-function by solving the following optimization problem:

EQUATION

)

The formulation is based on the LP formulation of MDP (see Puterman (2014) for more details).

Here the distribution p(x, a) is given by the data-generating distribution of the replay buffer B.

(We assume that the replay buffer is large enough such that it consists of experience from almost all state-action pairs.) It is well-known that one can transform the above constrained optimization problem into an unconstrained one by applying a penalty-based approach (to the constraints). For simplicity, here we stick with a single constant penalty parameter λ ≥ 0 (instead of going for a state-action Lagrange multiplier and maximizing that), and a hinge penalty function (•) + . With a given penalty hyper-parameter λ ≥ 0 (that can be separately optimized), we propose finding the optimal Q-function by solving the following optimization problem:

EQUATION

Furthermore, recall that in many off-policy and offline RL algorithms (such as DQN), samples in form of {(x i , a i , r i , x i )} |B| i=1 are independently drawn from the replay buffer, and instead of the optimizing the original objective function, one goes for its unbiased sample average approximation (SAA). However, viewing from the objective function of problem ( 6), finding an unbiased SAA for this problem might be challenging, due to the non-linearity of hinge penalty function (•) + . Therefore, alternatively we turn to study the following unconstrained optimization problem:

EQUATION

Using the Jensen's inequality for convex functions, one can see that the objective function in ( 7) is an upper-bound of that in (6). Equality of the Jensen's inequality will hold in the case when transition function is deterministic. (This is similar to the argument of PCL algorithm.) Using Jensen's inequality one justifies that optimization problem ( 7) is indeed an eligible upper-bound optimization to problem (6).

Recall that p(x, a) is the data-generation distribution of the replay buffer B. The unbiased SAA of problem ( 7) is therefore given by

EQUATION

where {(x i , a i , r i , x i )} N s=1 are the N samples drawn independently from the replay buffer. In the following, we will find the optimal Q function by solving this SAA problem. In general when the state and action spaces are large/uncountable, instead of solving the Q-function exactly (as in the tabular case), we turn to approximate the Q-function with its parametrized form Q θ , and optimize the set of real weights θ (instead of Q) in problem (8). Select action a = clip(π w (x ) + N (0, σ), l, u) Initialize the refined batches B df ← B and B c ← B;

B CONTINUOUS ACTION Q-LEARNING ALGORITHM:

(i) IF DF is True: B df ← {(x, a, r, x ) ∈ B : q x ,θ target > (Q θ (x, a) -r)/γ} (ii) IF C is True: B c ← {(x, a, x , r) ∈ B : x ∈ C t (b)} 15:

For each (x i , a i , r i , x i ) ∈ B df ∩ B c , compute optimal action a i using OPT(DTol):

a i ∈ arg max a Q θ (x i , a ) 16:

and the corresponding TD targets:

q i = r i + γQ θ target (x i , a i ) 17:

For each (x i , a i , r i , x i ) ∈ B \ (B c ∩ B df ), compute the approximate TD target:

(i) IF C is True: ∀(x i , a i , r i , x i ) ∈ B df \ B c , q i ← r i + γ qx i ,θ target where qx i ,θ target = q * c i ,θ target + ∇ x Q θ target (x , a )| x =c ,a =a * c i , (x i -c i ) ,

and

c i ∈ C t (b) is the closest centroid to x i (ii) IF DF is True: ∀(x i , a i , r i , x i ) ∈ B \ B df , q i ← r i + γ q x i ,θ target 18:

Update the Q-function parameters:

θ ← arg min θ 1 |B| |B| i=1 (Q θ (x i , a i ) -q i ) 2 19:

Update the action function parameters:

w ← arg min w 1 |B| |B| i=1 (Q θ (x i , a i ) -Q θ (x i , π w (x i ))) 2 20:

Update the target Q-function parameters:

θ target ← τ θ + (1 -τ )θ target 21:

Decay the Gaussian noise:

σ ← λσ, λ ∈ [0, 1]

C DETAILS OF DUAL FILTERING:

Recall that the Q-function NN has a nonlinear activation function, which can be viewed as a nonlinear equality constraint, according to the formulation in (3). To tackle this constraint, Wong & Kolter (2017) proposed a convex relaxation of the ReLU non-linearity. Specifically, first, they assume that for given x ∈ X and a ∈ B ∞ (a) such that z 1 = (x , a ), there exists a collection of component-wise bounds (l j , u j ), j = 2, . . . , K -1 such that l j ≤ ẑj ≤ u j . As long as the bounds are redundant, adding these constraints into primal problem q * x does not affect the optimal value. Second, the ReLU non-linear equality constraint is relaxed using a convex outer-approximation. In particular, for a scalar input a within the real interval [l, u], the exact ReLU non-linearity acting on a is captured by the set

H(l, u) := {(h, k) ∈ R 2 : h ∈ [l, u], k = [h] + }.

Its convex outer-approximation is given by:

H(l, u) := {(h, k) ∈ R 2 : k ≥ h, k ≥ 0, -uh + (u -l)k ≤ -ul}.

(9) Analogously to (3), define the relaxed NN equations as:

EQUATION

(ẑ j , z j ) ∈ H(l j , u j ), j = 2, . . . , K -1, (10c) where the third equation above is understood to be component-wise across layer j for each j ∈ {2, . . . , K -1}, i.e., (ẑ j (s), z j (s)) ∈ H(l j (s), u j (s)), s = 1, . . . , n j , where n j is the dimension of hidden layer j. Using the relaxed NN equations, we now propose the following relaxed (convex) verification problem:

EQUATION

where δ Λ (•) is the indicator function for set Λ (i.e., δ Λ (x) = 0 if x ∈ Λ and ∞ otherwise). Note that the indicator for the vector-ReLU in cost function above is understood to be component-wise, i.e., δ H(lj ,uj ) (ẑ j , z j ) = nj s=1 δ H(lj (s),uj (s)) (ẑ j (s), z j (s)), j = 2, . . . , K -1.

The optimal value of the relaxed problem, i.e., q *

x is an upper bound on the optimal value for original problem q * x i . Thus, the certification one can obtain is the following: if q *

x ≤ (Q θ (x, a) -r)/γ, then the sample (x, a, x ) is discarded for inner maximization. However, if q *

x > (Q θ (x, a) -r)/γ, the sample (x, a, x ) may or may not have any contribution to the TD-error in the hinge loss function.

To further speed up the computation of the verification problem, by looking into the dual variables of problem (11), in the next section we propose a numerically efficient technique to estimate a suboptimal, upper-bound estimate to q *

x , namely q x . Therefore, one verification criterion on whether a sample drawn from replay buffer should be discarded for inner-maximization is check whether the following inequality holds:

EQUATION

C.1 SUB-OPTIMAL SOLUTION TO THE RELAXED PROBLEM

In this section, we detail the sub-optimal lower bound solution to the relaxed problem in (11) as proposed in Wong & Kolter (2017) . Let ν j , j = 2, . . . , K denote the dual variables for the linear equality constraints in problem (11). The Lagrangian for the relaxed problem in ( 11) is given by: We use a two hidden layer neural network with ReLU activation (32 units in the first layer and 16 units in the second layer) for both the Q-function and the action function. The input layer for the Q-function is a concatenated vector of state representation and action variables. The Q-function has a single output unit (without ReLU). The input layer for the action function is only the state representation. The output layer for the action function has d units (without ReLU), where d is the action dimension of a benchmark environment. We use SCIP 6.0.0 (Gleixner et al., 2018) for the MIP solver. A time limit of 60 seconds and a optimality gap limit of 10 -4 are used for all experiments. For GA and CEM, a maximum iterations of 20 and a convergence threshold of 10 -6 are used for all experiments if not stated otherwise.

L(ẑ, z, ν) = c ẑK + ν K ẑK + δ B∞(ā) (a ) -ν 2 W 1 z 1 + K-1 j=2 δ H(lj ,uj ) (ẑ j , z j ) + ν j ẑj -ν j+1 W j z j - K-1 j=1 ν j+1 b j .

D EXPERIMENTAL DETAILS:



Environment State dimension Action dimension Action ranges:



E ADDITIONAL EXPERIMENTAL RESULTS:



E.1 OPTIMIZER SCALABILITY:

Table 9 shows the average elapsed time of various optimizers computing max-Q in the experiment setup described in Appendix D. MIP is more robust to action dimensions than GA and CEM. MIP latency depends on the state of neural network weights. It takes longer time with highly dense NN weights, but on the other hand, it can be substantially quicker with sparse NN weights. Figure 3 shows the average elapsed time of MIP over training steps for various benchmarks. We have observed that MIP is very slow in the beginning of the training phase but it quickly becomes faster. This trend is observed for most benchmarks except Humanoid. We speculate that the NN weights for the Q-function are dense in the beginning of the training phase, but it is gradually structurized (e.g, sparser weights) so that it becomes an easier problem for MIP.

Env. [Action range] GA CEM MIP 

:

Without loss of generality, we simplify the NN by omitting the output bias and output activation function.

Some exploration strategy may be incorporated as well.

One can also use the upper bound q x ,θ as the label for training the action function in Section 3.2. Empirically, this approach often leads to better policy performance.

5 Since the objective of these experiments is largely to evaluate different RL algorithms, we do not exploit problem structures, e.g., symmetry, when training

policies.6 Smaller action ranges often induce easier MIP problems in max-Q computation. However, given the complexity of MIP in more complex environments such as Walker2D, HalfCheetah, Ant, and Humanoid, we run experiments only with action ranges smaller than the defaults.

Figures and Tables:

x∈[ ,u] w x + b and M -= min x∈[ ,u] w x + b can be computed in linear time in d. We assume M + > 0 and M -< 0, otherwise the function can be replaced by z = 0 or z = w x + b. These constraints ensure that z is the output of the ReLU: If ζ = 0, then they are reduced to z = 0 ≥ w x+b, and if ζ = 1, then they become z = w x+b ≥ 0.

a) ≤ 0, which can stabilize training by reducing over-estimation error.

Figure 1: Mean cumulative reward of the best hyper parameter configuration over 10 random seeds. Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps. The training curves with standard deviation are given in Figure 4 in Appendix E.

Figure 2: Mean cumulative reward over all 320 configurations (32 hyper parameter combinations × 10 random seeds). Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps. The training curves with standard deviation are in Figure 5 in Appendix E.

199.9 (Med(κ): 263.5, SD(κ): 88.269) 764.5 ± 132.9 (Med(κ): 118.5, SD(κ): 75.616) Ant [-0.1, 0.1] 402.3 ± 27.4 (Med(κ): 80.7, SD(κ): 100.945) 404.9 ± 27.7 (Med(κ): 40.3, SD(κ): 24.090) Ant [-0.25, 0.25] 413.1 ± 60.0 (Med(κ): 87.6, SD(κ): 160.921) 424.9 ± 60.9 (Med(κ): 62.0, SD(κ): 27.646) Humanoid [-0.1, 0.1] 405.7 ± 112.5 (Med(κ): 145.7, SD(κ): 27.381) 475.0 ± 173.4 (Med(κ): 29.1, SD(κ): 10.508) Humanoid [-0.25, 0.25] 460.2 ± 143.2 (Med(κ): 71.2, SD(κ): 45.763) 410.1 ± 174.4 (Med(κ): 39.7, SD(κ): 11.088)

Continuous Action Q-learning (CAQL) 1: Define the maximum training epochs T , episode length L, and training steps (per epoch) S 2: Initialize the Q-function parameters θ, target Q-function parameters θ target , and action function parameters w 3: Choose a max-Q solver OPT ∈ {MIP, CEM, GA} (Section 3) 4: Select options for max-Q speed up (Section 4) using the following Boolean variables: (i) DTol: Dynamic Tolerance, (ii) DF: Dual Filtering, (iii) C: Clustering; Denote by OPT(Dtol) the final max-Q solver, constructed by the base solver and dynamic tolerance update rule (if used) 5: Initialize replay buffer R of states, actions, next states and rewards 6: for t ← 1, . . . , T do 7: Sample an initial state x 0 from the initial distribution 8: for ← 0, . . . , L -1 do Online Data Collection 9:

Figure 3: Average elapsed time (in msec) for MIP computing max-Q with constant and dynamic optimality gap.

Figure 7: Mean cumulative reward of the best hyper parameter configuration over 10 random seeds. Shaded area is ± standard deviation. Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps.

Figure8: Mean cumulative reward over all 320 configurations (32 hyper parameter combinations × 10 random seeds). Shaded area is ± standard deviation. Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps.

Figure9: Mean cumulative reward of the best hyper parameter configuration over 10 random seeds. Shaded area is ± standard deviation. Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps.

Figure10: Mean cumulative reward over all 320 configurations (32 hyper parameter combinations× 10 random seeds). Shaded area is ± standard deviation. Data points are average over a sliding window of size 6. The length of an episode is limited to 200 steps.

1]   -235.9 ± 122.7 -237.0 ± 135.5 -236.1 ± 116.3 -312.7 ± 242.5 -252.8 ± 163.0 -279.5 ± 186.8 -356.6 ± 288.7 Pendulum [-2, 2] -143.2 ± 161.0 -145.5 ± 136.1 -144.5 ± 208.8 -145.2 ± 168.9 -146.2 ± 257.6 -142.3 ±195.9 -163.3 ± 190.1   The mean ± standard deviation of (95-percentile) final returns with the best hyperparameter configuration. CAQL significantly outperforms NAF on most benchmarks, as well as DDPG, TD3, and SAC on 11/14 benchmarks.

Table content: <table><tr><td>Env. [Action range]</td><td>CAQL-MIP</td><td>CAQL-GA</td><td>CAQL-CEM</td><td>NAF</td><td>DDPG</td><td>TD3</td><td>SAC</td></tr><tr><td colspan="2">Pendulum [-0.66, 0.66] -339.5 Hopper [-0.25, 0.25] 343.2 ± 62.6</td><td>329.7 ± 59.4</td><td>276.9 ± 97.4</td><td>237.8 ± 100.0</td><td>252.2 ± 98.1</td><td>217.1 ± 73.7</td><td>309.3 ± 73.0</td></tr><tr><td>Hopper [-0.5, 0.5]</td><td>411.7 ± 115.2</td><td>341.7 ± 139.9</td><td>342.9 ± 142.1</td><td>248.2 ± 113.2</td><td>294.5 ± 108.7</td><td>280.1 ± 80.0</td><td>309.1 ± 95.8</td></tr><tr><td>Hopper [-1, 1]</td><td>459.8 ± 144.9</td><td>427.5 ± 151.2</td><td>417.2 ± 145.4</td><td>245.9 ± 140.7</td><td>368.2 ± 139.3</td><td>396.3 ± 132.8</td><td>372.3 ± 138.5</td></tr><tr><td>Walker2D [-0.25, 0.25]</td><td>276.3 ± 118.5</td><td>285.6 ± 97.6</td><td>283.7 ± 104.6</td><td>219.9 ± 120.8</td><td>270.4 ± 104.2</td><td>250.0 ± 78.3</td><td>284.0 ± 114.5</td></tr><tr><td>Walker2D [-0.5, 0.5]</td><td>288.9 ± 118.1</td><td>295.6 ± 113.9</td><td>304.7 ± 116.1</td><td>233.7 ± 99.4</td><td>259.0 ± 110.7</td><td>243.8 ± 116.4</td><td>287.0 ± 128.3</td></tr><tr><td>HalfCheetah [-0.25, 0.25]</td><td>394.8 ± 43.8</td><td>337.4 ± 60.0</td><td>339.1 ± 137.9</td><td>247.3 ± 96.0</td><td>330.7 ± 98.9</td><td>264.3 ± 142.2</td><td>325.9 ± 38.6</td></tr><tr><td>HalfCheetah [-0.5, 0.5]</td><td>718.6 ± 199.9</td><td>736.4 ± 122.8</td><td>686.7 ± 224.1</td><td>405.1 ± 243.2</td><td>456.3 ± 238.5</td><td>213.8 ± 214.6</td><td>614.8 ± 69.4</td></tr><tr><td>Ant [-0.1, 0.1]</td><td>402.3 ± 27.4</td><td>406.2 ± 32.6</td><td>378.2 ± 39.7</td><td>295.0 ± 44.2</td><td>374.0 ± 35.9</td><td>268.9 ± 73.2</td><td>281.4 ± 65.3</td></tr><tr><td>Ant [-0.25, 0.25]</td><td>413.1 ± 60.0</td><td>443.1 ± 65.6</td><td>451.4 ± 54.8</td><td>323.0 ± 60.8</td><td>444.2 ± 63.3</td><td>472.3 ± 61.9</td><td>399.3 ± 59.2</td></tr><tr><td>Humanoid [-0.1, 0.1]</td><td>405.7 ± 112.5</td><td>431.9 ± 244.8</td><td>397.0 ± 145.7</td><td>392.7 ± 169.9</td><td>494.4 ± 182.0</td><td>352.8 ± 150.3</td><td>456.3 ± 112.4</td></tr><tr><td>Humanoid [-0.25, 0.25]</td><td>460.2 ± 143.2</td><td>622.8 ± 158.1</td><td>529.8 ± 179.9</td><td>374.6 ± 126.5</td><td>582.1 ± 176.7</td><td>348.1 ± 106.3</td><td>446.9 ± 103.9</td></tr></table>

Table 2 and Figure2show summary statistics of the returns of CAQL and the baselines on all 320 configurations The mean ± standard deviation of (95-percentile) final returns over all 320 configurations (32 hyper parameter combinations × 10 random seeds). CAQL policies are less sensitive to hyper parameters on 11/14 benchmarks.

Table content: <table><tr><td>Env. [Action range]</td><td>CAQL-MIP</td><td>CAQL-GA</td><td>CAQL-CEM</td><td>NAF</td><td>DDPG</td><td>TD3</td><td>SAC</td></tr><tr><td>Pendulum [-0.66, 0.66]</td><td colspan="7">-780.5 ± 345.0 -766.6 ± 344.2 -784.7 ± 349.3 -775.3 ± 353.4 -855.2 ± 331.2 -942.1 ± 308.3 -1144.8 ± 195.3</td></tr><tr><td>Pendulum [-1, 1]</td><td colspan="7">-508.1 ± 383.2 -509.7 ± 383.5 -500.7 ± 382.5 -529.5 ± 377.4 -623.3 ± 395.2 -730.3 ± 389.4 -972.0 ± 345.5</td></tr><tr><td>Pendulum [-2, 2]</td><td colspan="7">-237.3 ± 487.2 -250.6 ± 508.1 -249.7 ± 488.5 -257.4 ± 370.3 -262.0 ± 452.6 -361.3 ± 473.2 -639.5 ± 472.7</td></tr><tr><td>Hopper [-0.25, 0.25]</td><td>292.7 ± 93.3</td><td>210.8 ± 125.3</td><td>196.9 ± 130.1</td><td>176.6 ± 109.1</td><td>178.8 ± 126.6</td><td>140.5 ± 106.5</td><td>225.0 ± 84.9</td></tr><tr><td>Hopper [-0.5, 0.5]</td><td>332.2 ± 119.7</td><td>222.2 ± 138.5</td><td>228.1 ± 135.7</td><td>192.8 ± 101.6</td><td>218.3 ± 129.6</td><td>200.2 ± 100.7</td><td>243.6 ± 81.6</td></tr><tr><td>Hopper [-1, 1]</td><td>352.2 ± 141.3</td><td>251.5 ± 153.6</td><td>242.3 ± 153.8</td><td>201.9 ± 126.2</td><td>248.0 ± 148.3</td><td>248.2 ± 124.4</td><td>263.6 ± 118.9</td></tr><tr><td>Walker2D [-0.25, 0.25]</td><td>247.6 ± 109.0</td><td>213.5 ± 111.3</td><td>206.7 ± 112.9</td><td>190.5 ± 117.5</td><td>209.9 ± 103.6</td><td>204.8 ± 113.3</td><td>224.5 ± 105.1</td></tr><tr><td>Walker2D [-0.5, 0.5]</td><td>213.1 ± 120.0</td><td>209.5 ± 112.5</td><td>209.3 ± 112.5</td><td>179.7 ± 100.9</td><td>210.8 ± 108.3</td><td>173.1 ± 101.1</td><td>220.9 ± 114.8</td></tr><tr><td colspan="2">HalfCheetah [-0.25, 0.25] 340.9 ± 110.2</td><td>234.3 ± 136.5</td><td>240.4 ± 143.1</td><td>169.7 ± 123.7</td><td>228.9 ± 118.1</td><td>192.9 ± 136.8</td><td>260.7 ± 108.5</td></tr><tr><td>HalfCheetah [-0.5, 0.5]</td><td>395.1 ± 275.2</td><td>435.5 ± 273.7</td><td>377.5 ± 280.5</td><td>271.8 ± 226.9</td><td>273.8 ± 199.5</td><td>119.8 ± 139.6</td><td>378.3 ± 219.6</td></tr><tr><td>Ant [-0.1, 0.1]</td><td>319.4 ± 69.3</td><td>327.5 ± 67.5</td><td>295.5 ± 71.9</td><td>260.2 ± 53.1</td><td>298.4 ± 67.6</td><td>213.7 ± 40.8</td><td>205.9 ± 34.9</td></tr><tr><td>Ant [-0.25, 0.25]</td><td>362.3 ± 60.3</td><td>388.9 ± 63.9</td><td>392.9 ± 67.1</td><td>270.4 ± 72.5</td><td>381.9 ± 63.3</td><td>377.1 ± 93.5</td><td>314.3 ± 88.2</td></tr><tr><td>Humanoid [-0.1, 0.1]</td><td>326.6 ± 93.5</td><td>235.3 ± 165.4</td><td>227.7 ± 143.1</td><td>261.6 ± 154.1</td><td>259.0 ± 188.1</td><td>251.7 ± 127.5</td><td>377.5 ± 90.3</td></tr><tr><td>Humanoid [-0.25, 0.25]</td><td>267.0 ± 163.8</td><td>364.3 ± 215.9</td><td>309.4 ± 186.3</td><td>270.2 ± 124.6</td><td>347.3 ± 220.8</td><td>262.8 ± 109.2</td><td>381.0 ± 84.4</td></tr></table>

Sample a random minibatch B of |B| transitions {(x i , a i , r i , x i )}

Table content: <table><tr><td>10:</td><td colspan="2">Execute action a and observe reward r and new state x +1</td></tr><tr><td>11:</td><td colspan="2">Store transition (x , a , r , x +1 ) in Replay Buffer R</td></tr><tr><td>12:</td><td>for s ← 1, . . . , S do</td><td>CAQL Training; S = 20 by default</td></tr><tr><td>13:</td><td/><td>|B| i=1 from R</td></tr><tr><td>14:</td><td/><td/></tr></table>

Benchmark Environments. Various action bounds are tested from the default one to smaller ones. The action range in bold is the default one. For high-dimensional environments such as Walker2D, HalfCheetah, Ant, and Humanoid, we only test on action ranges that are smaller than the default (in bold) due to the long computation time for MIP. A smaller action bound results in a MIP that solves faster.

Table content: <table><tr><td>Hyper Parameters for CAQL and NAF</td><td>Value(s)</td></tr><tr><td>Discount factor</td><td>0.99</td></tr><tr><td>Exploration policy</td><td>N (0, σ = 1)</td></tr><tr><td>Exploration noise (σ) decay</td><td>0.9995, 0.9999</td></tr><tr><td>Exploration noise (σ) minimum</td><td>0.01</td></tr><tr><td>Soft target update rate (τ )</td><td>0.001</td></tr><tr><td>Replay memory size</td><td>10 5</td></tr><tr><td>Mini-batch size</td><td>64</td></tr><tr><td>Q-function learning rates</td><td>0.001, 0.0005, 0.0002, 0.0001</td></tr><tr><td colspan="2">Action function learning rates (for CAQL only) 0.001, 0.0005, 0.0002, 0.0001</td></tr><tr><td>Tolerance decay (for dynamic tolerance)</td><td>0.995, 0.999, 0.9995</td></tr><tr><td>Lambda penalty (for CAQL with Hinge loss)</td><td>0.1, 1.0, 10.0</td></tr><tr><td>Neural network optimizer</td><td>Adam</td></tr></table>

Hyper parameters settings for CAQL(+ MIP, GA, CEM) and NAF. We sweep over the Q-function learning rates, action function learning rates, and exploration noise decays.

Table content: <table><tr><td>Hyper Parameters for DDPG, TD3, SAC</td><td>Value(s)</td></tr><tr><td>Discount factor</td><td>0.99</td></tr><tr><td>Exploration policy (for DDPG and TD3)</td><td>N (0, σ = 1)</td></tr><tr><td>Exploration noise (σ) decay (for DDPG and TD3)</td><td>0.9995</td></tr><tr><td>Exploration noise (σ) minimum (for DDPG and TD3)</td><td>0.01</td></tr><tr><td>Temperature (for SAC)</td><td>0.99995, 0.99999</td></tr><tr><td>Soft target update rate (τ )</td><td>0.001</td></tr><tr><td>Replay memory size</td><td>10 5</td></tr><tr><td>Mini-batch size</td><td>64</td></tr><tr><td>Critic learning rates</td><td>0.001, 0.0005, 0.0002, 0.0001</td></tr><tr><td>Actor learning rates</td><td>0.001, 0.0005, 0.0002, 0.0001</td></tr><tr><td>Neural network optimizer</td><td>Adam</td></tr></table>

Hyper parameters settings for DDPG, TD3, and SAC. We sweep over the critic learning rates, actor learning rates, temperature,and exploration noise decays.

Table content: <table/>

The (median, standard deviation) for the average elapsed time κ (in msec) of various solvers computing max-Q problem.

Table content: <table/>

Peer review (iclr2020):
Summary: This paper targets the maximization issue in continuous value based methods, especially Q Learning. The idea is to use Mixed Integer Programming (MIP) to solve the Q maximization step by formulating the neural network structure of the Q function as a constrained mixed integer program. Further improvements are made by approximating the MIP solution in order to make training/inference faster. The method is tested on tasks from the Mujoco domain and compared with other value based methods for continuous control. I found the paper simple to follow and well structured. The problem is well motivated too and the empirical analysis is quite rigorous. The obvious concerns are regarding scalability of the method; both in terms of 1) using other forms of neural network components (ex. Other activation functions, Convolutional networks in the case of vision based problems such as robotic manipulation) and 2) problems that are inherently less sample efficient, i.e. cases where shortening the sampling horizon is not a feasible option for learning meaningful policies. Overall, I feel the positive aspects more or less outweigh the drawbacks and therefore my vote is for a weak accept. Comments/Questions: - Table 8 description says hyper-parameter sweeps were done for temperature and exploration noise decay values but the table is missing their values. - What happens when action range is increased from default? One of the reasons mentioned for constraining the action space is to validate how well policy-based methods work. To really take this point home, I feel it might be good to check with an increased action range. - Controlling w.r.t symmetry of the env (esp. in Mujoco domains), thus reducing the number of actions by half, might help faster MIP computation times. - Figure 3 x-axis runs till different values, but the description says training steps are 1000. How long are the experiments run for? - Can the authors elaborate on why the episode length is decreased from 1000 to 200?