<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Decision-Oriented Learning with Differentiable Submodular Maximization for Vehicle Routing Problem</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>10/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10489777</idno>
					<idno type="doi">10.1109/IROS55552.2023.10342311</idno>
					<title level='j'>Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Guangyao Shi</author><author>Pratap Tokekar</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We study the problem of learning a function that maps context observations (input) to parameters of a submodular function (output). Our motivating case study is a specific type of vehicle routing problem, in which a team of Unmanned Ground Vehicles (UGVs) can serve as mobile charging stations to recharge a team of Unmanned Ground Vehicles (UAVs) that execute persistent monitoring tasks. We want to learn the mapping from observations of UAV task routes and wind field to the parameters of a submodular objective function, which describes the distribution of landing positions of the UAVs . Traditionally, such a learning problem is solved independently as a prediction phase without considering the downstream task optimization phase. However, the loss function used in prediction may be misaligned with our final goal, i.e., a good routing decision. Good performance in the isolated prediction phase does not necessarily lead to good decisions in the downstream routing task. In this paper, we propose a framework that incorporates task optimization as a differentiable layer in the prediction phase. Our framework allows end-to-end training of the prediction model without using engineered intermediate loss that is targeted only at the prediction performance. In the proposed framework, task optimization (submodular maximization) is made differentiable by introducing stochastic perturbations into deterministic algorithms (i.e., stochastic smoothing). We demonstrate the efficacy of the proposed framework using synthetic data. Experimental results of the mobile charging station routing problem show that the proposed framework can result in better routing decisions, e.g. the average number of UAVs recharged increases, compared to the prediction-optimization separate approach.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Many multi-robot decision-making problems can be formulated as combinatorial optimization problems, among which the objectives in some problems (e.g., mutual information <ref type="bibr">[1]</ref>, area explored, number of targets tracked <ref type="bibr">[2]</ref>, detection probability <ref type="bibr">[3]</ref> etc.) have diminishing returns property i.e., submodularity. Intuitively, submodularity formalizes the notion that adding more robots to a larger multi-robot team cannot yield a smaller marginal gain in the objective than adding the same robot to a smaller team.</p><p>If the submodular objective is known and fixed, the multirobot decision-making problem boils down to a submodular maximization problem, which is NP-hard but can be solved with an (1 -1 e )-approximation by the greedy algorithm <ref type="bibr">[4]</ref>. However, in practice, there are several parameters that affect the objective function that may not be known exactly. Consider the following illustrative example of a vehicle routing problem shown in Figure <ref type="figure">2</ref>. Here, a team of Un-   manned Ground Vehicles (UGVs) are tasked with servicing a set of requests that appear throughout the environment. We have a set of candidate routes of which we must select one for each UGV. The objective is to maximize the number of requests serviced. If a request location lies on more than one UGVs path (the paths may overlap as the UGVs move on a road network), it only counts once in the objective function. Thus, the objective function is a coverage function, which is a special case of the submodular function.</p><p>If we know the location of the requests, then we can solve this problem greedily to obtain a (1 -1 e )-approximation. The greedy algorithm requires the capability to compute the objective function f (S). However, there are many scenarios where we may not know where the requests show up and as such not know f (S). For example, the requests could correspond to Unmanned Aerial Vehicles (UAVs) that are carrying out persistent monitoring missions that land when out of charge so as to be recharged by mobile recharging stations <ref type="bibr">[5]</ref>- <ref type="bibr">[10]</ref>. Here, even if we know the routes followed by each UAV, we may not know their exact landing locations since the energy consumption is stochastic <ref type="bibr">[9]</ref>, <ref type="bibr">[10]</ref> and communication between UAVs and UGVs is not available (e.g., due to stealth). In such cases, we may be able to predict f (S) using all the available information. We call the latter as context z, which can include the routes of the UAVs, the environmental conditions including the wind conditions, etc.</p><p>The traditional pipeline here would be to use the context information and predict f (S) and then solve the downstream UGV route selection problem, argmax S f (S), using this predicted f (S). However, as the following example shows a good predictor of f (S) does not necessarily align with making good decisions on the downstream task. On the other hand, a predictor that does not necessarily yield the best predictions of f (S) may still yield the best decisions for the downstream argmax S f (S) problem.</p><p>We present an illustrative example of such misalignment in Fig. <ref type="figure">3</ref>. Let f 1 , f 2 be two coverage functions (coverage function is submodular by definition) defined over set {s 1 , s 2 , s 3 }. Given a subset S &#8838; {s 1 , s 2 , s 3 }, f i (S), i = 1, 2 will return the area covered by the selection. The submodular objective that we are interested in is defined as <ref type="bibr">1]</ref>, which is also submodular by definition. Suppose that we want to maximize f &#946; with a partition matroid:</p><p>Then the optimal solution is either {s 1 , s 2 } or {s 1 , s 3 }. In Fig. <ref type="figure">3c</ref>, we show how the optimal decision changes w.r.t. &#946;. When &#946; &#8805; 0.358, the optimal decision is {s 1 , s 3 } since f &#946; ({s 1 , s 3 }) &#8805; f &#946; ({s 1 , s 2 }) (the blue line is above the red line). By contrast, when &#946; &lt; 0.358, the optimal decision is {s 1 , s 2 }. Next, let us look at the learning problem for f &#946; . We want to find a mapping from the observation z to &#946;. In Fig. <ref type="figure">3d</ref>, we show the training data sampled from the ground truth and the optimal decision boundary z * = 0.8988, which is obtained by finding the intersection between the ground truth curve and &#946; = 0.358. If we use Mean Square Error (MSE) as the objective for learning without considering the downstream task, we will get two lines as shown in Fig. <ref type="figure">3e</ref>. The decision boundary (dashed vertical red line, z * = 1.34, passing the intersection of the learned red line and &#946; = 0.358) is on the right of the optimal boundary, thus not optimal. By contrast, if we consider the downstream optimization, we will get two lines as shown in Fig. <ref type="figure">3f</ref> and the decision boundary (dashed vertical blue line, z * = 1.02, passing the intersection of the learned blue line and &#946; = 0.358) is closer to the optimal boundary, thus reducing the regions of suboptimal decisions. Such an observation motivates us to incorporate the decision process (submodular maximization) into the learning process.</p><p>To this end, we propose a Decision-Oriented-Learning (DOL) framework for learning context-aware parameterized submodular objectives. We focus on submodular functions that can be parameterized, i.e., f (S, w), where the parameters are to be learned from the context. As described earlier and pointed out in <ref type="bibr">[11]</ref>- <ref type="bibr">[13]</ref>, the best estimator of w does not necessarily yield the best decisions for the downstream task. Instead, in the proposed framework, the decisionmaking problem (submodular maximization) is treated as a differentiable layer that takes as input the output from the prediction module as shown in Fig. <ref type="figure">1</ref>. The prediction module takes as input a context observation z and predicts w, i.e., the parameterized submodular function. By using a differentiable submodular optimization layer, we can train the prediction module using the loss from the downstream task, thereby yielding aligned predictions.</p><p>In summary, the main contribution is this paper is:</p><p>&#8226; We propose a decision-oriented learning framework for mobile charging routing problems. We show how to formulate the learning problem for mobile charging routing and how to solve it. &#8226; We demonstrate the effectiveness of our framework in several examples through simulation. The rest of the paper is organized as follows. We first give a brief overview of the related work in Section II. Then, we explain the problem setup and formulation in Section III. We introduce the learning algorithm in Section V and validate the formulation and the proposed framework in Section VI.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. RELATED WORK</head><p>Most existing multi-robot decision-making work consider the case where the optimization objective is well-defined and known. Wilde et al. <ref type="bibr">[14]</ref> consider the case where the optimization objective is hard to quantitatively specify and may be subjective and proposed an interactive learning framework to learn the objectives. Our work shares a similar stance with <ref type="bibr">[14]</ref> but differs in two aspects. First, we consider the fact that the task objective may change in different contexts, for example in different weather conditions, and aim at learning a context-aware objective. Second, our learning framework integrates the downstream decision-making process into the learning process.</p><p>Another line of research related to this work is decisionoriented learning. The key idea is to embed the decisionmaking problem as a differentiable layer in the learning pipelines. The main advantage is that it allows end-to-end training and reduces the engineering efforts to design some intermediate learning objectives. Such an idea was initially explored for continuous optimization problems <ref type="bibr">[15]</ref>, <ref type="bibr">[16]</ref> and has gained popularity in control and robotics <ref type="bibr">[17]</ref>- <ref type="bibr">[20]</ref>. The idea was later extended to the combinatorial problems <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[21]</ref>, <ref type="bibr">[22]</ref>. Our work is inspired by <ref type="bibr">[12]</ref>, <ref type="bibr">[21]</ref> and our framework integrates the decision-making process for mobile charging station routing, which is modeled as submodular maximization, into the learning process.</p><p>This work is also closely related to differentiable submodular maximization. Submodular maximization and its variants have been widely used in multi-robot decisionmaking problems including coverage, target tracking, exploration, and information gathering. These studies are all based on the fact that the greedy algorithm and its variants can solve submodular maximization problems its variants efficiently with a provable performance guarantee. Since the submodular objective and greedy algorithm are tightly coupled, it is better to take into account the influence of the greedy algorithm when we consider learning submodular functions <ref type="bibr">[23]</ref>. To this end, several differentiable versions of the greedy algorithms have been proposed <ref type="bibr">[23]</ref>, <ref type="bibr">[24]</ref>. The core idea behind these algorithms is stochastic smoothing, i.e., perturb the algorithm by introducing some probability distribution in the intermediate steps. Our framework is built on these differentiable greedy algorithms but is targeted specifically for context-dependent routing problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. PROBLEM FORMULATION</head><p>In this section, we first introduce the formulation of the learning problem. Then, we explain the setup of the case study and the parameterization of the objective.</p><p>We are interested in parameterized submodular objective function f (S, w), where w is the parameter vector. Readers are referred to <ref type="bibr">[14]</ref> for a formal definition. In practice, such an objective is usually unknown and contextdependent, i.e., the parameters w &#8712; W depend on the environment features. Our goal is to learn a function g &#952; : Z &#8594; W that maps the context observation z &#8712; Z to the objective parameters w. Traditionally, finding the mapping g &#952; and optimizing the downstream objective f (S, w) are considered separately: given the training data D = {(z 1 , w 1 ), (z 2 , 2 ), . . . , (z |D| , w |D| )}, first find the mapping g &#952; by optimizing over &#952; in a supervised fashion, and then use the parameter w = g &#952; (z) to optimize f (S, w).</p><p>By contrast, the proposed paradigm that integrates downstream optimization is given below. </p><p>where S * (w i ) denotes the solution of (5) returned by some approximation algorithms with w = w i ; f (S * (w i ), w i ) denotes the decision quality when we use the ground truth parameter w i for decisions; f ( &#348;, w i ) denotes the decision quality when we use the predicted parameter &#373;i for decisions, i.e., use &#373;i to obtain the decision &#348;, but the decision is evaluated w.r.t. the true parameter w i .</p><p>The intuition for Eq. ( <ref type="formula">3</ref>) is that we want to minimize the gap between the decision quality of the true parameters and that of the predicted parameters. One challenge is when we use the chain rule to compute the gradient of the loss function, we need to differentiate through the optimization problem (the first term on the r.h.s. of Eq. ( <ref type="formula">4</ref>)) as shown in the illustrative computational graph in Fig. <ref type="figure">1</ref>.</p><p>In the following sections, we will show how to approximately compute the first term on the r.h.s. of Eq. (4).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. CASE STUDY</head><p>Suppose that there is a set of candidate routes, T , each of which starts and terminates at the same depot. Our goal is to select a subset from T for UGVs to traverse and recharge the UAV along the way such that the total number of UAVs that UGVs will recharge is maximized.</p><p>Environment Model: As shown in Fig. <ref type="figure">2</ref>, the working environment is described by an area E &#8838; R 2 . There are n a UAVs that are executing persistent monitoring. The energy consumption of UAVs will be affected by the wind. The wind field is represented as a tuple (&#969; s , &#969; o ), where &#969; s and &#969; o denote the description vectors for the speed and the orientation of the wind, respectively. There are n g UGVs in E, denoted by the set {1, . . . , n g }.</p><p>UAV Behavior: There are three components defining the behavior of each UAV. The first one is the task route, which is defined as a sequence of ordered locations projected on the ground, and the UAV will persistently monitor these locations. The UAV will fly at a fixed speed v a between two task locations and its energy consumption will be affected by the wind. The second component is the recharging strategy dealing with the depletion of the battery. The third component is the energy consumption model. We use the same model as that in <ref type="bibr">[25]</ref>.</p><p>Context Observation: Each observation z consists of two components: the task routes of all UAVs; and the wind field (&#969; s , &#969; o ) of the working area.</p><p>If such submodular objective f is known, the problem boils down to a submodular maximization problem with a matroid constraint: let T be set of all candidate routes, the problem is to select a subset from T to maximize the objective, i.e., max</p><p>where w denotes the parameters in the objective function.</p><p>Parameterization of the Objective Function In general, such applications have no closed-form expression of the objective function. In this paper, we consider the case where the objective function f is the linear combination of a set of basis functions. Such parameterization techniques are commonly used in the literature on learning submodular functions <ref type="bibr">[3]</ref>, <ref type="bibr">[14]</ref>, <ref type="bibr">[26]</ref>. Similar to <ref type="bibr">[14]</ref>, we assume without loss of generality that each basis function is characterized by a subset W i &#8838; V . That is, for any W i , let &#968; i (S) be a count of how many vertices of the tours S lie in W i , then f i is a functional of &#968; i (S).</p><p>The overall objective function is:</p><p>where w = [w i,j ] denotes the matrix of unknown parameters of the function; basis functions are defined as f i,j (S) = &#968;i(S) &#945;=1 &#947; (&#945;-1) j</p><p>; and &#947; j &#8712; (0, 1] comes from a known set &#915;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. LEARNING ALGORITHM</head><p>In this section, we describe the stochastic techniques to smoothe the greedy algorithm for submodular maximization and how can we apply the result to our framework. The key idea is: by introducing proper stochastic perturbances into combinatorial optimization, the expected output as a function of its parameters can be smoothed and differentiable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Smoothed Greedy Algorithm</head><p>The Smoothed Greedy (SG) algorithm is given in Algorithm 1, which was first proposed in <ref type="bibr">[24]</ref>. For a given w &#8712; W, In each iteration step, we compute marginal gain f S (u, w) for each candidate element u &#8712; U k (line 3); we define</p><p>denote the marginal gain vector. The probability vector, p k (w) = (p k (u 1 , w), . . . , p k (u n k , w)), is computed as:</p><p>Algorithm 1: Smoothed Greedy Input : f (S, w) and independent set I Output: Set S of tours for each robot 1 S &#8592; &#8709; 2 for k &#8592; 1 to N do // find all addable elements in the current round</p><p>Next, we will show the theoretical results for Algorithm 1. Detailed explanations and proofs can be found in <ref type="bibr">[24]</ref>. Let &#948; &#8805; 0 be a constant that satisfies &#948; &#8805; &#8486; k (p) -&#8486; k (q) for all k = 1, . . . , |S| and p, q &#8712; &#8710; n k . We will use &#948; to quantify the performance of SG.</p><p>As shown in Theorem 1 in <ref type="bibr">[24]</ref>, in expectation, the output of SG satisfies that E [f (S, w)] &#8805; (1 -1 e )f (OP T, w)&#948;n g , where OP T denotes the optimal solution. This result suggests that the SG algorithm in expectation almost preserves the performance of the deterministic greedy algorithm, whose approximation factor is (1 -1</p><p>e ), with one extra term &#948;n g , which is the price for differentiability. It should be noted that by using SG, the output is stochastic and we focus on the expected result of the output. The regularization functions &#8486; k are chosen to guarantee the expected outputs of SG differentiable. Examples for &#8486; k will be discussed in the Sec. VI.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Gradient Estimation</head><p>Let O I be the set of all possible solutions returned by SG. Let p(S, w) &#8712; [0, 1] be the probability for S &#8712; O I . Specifically, for a returned sequence S = {s 1 , . . . , s |S| } &#8712; O I , the associated probability can be computed as p(S, w)</p><p>Next, we will show how to construct a gradient estimator based on the output distribution. Let Q(S) be any scalar-or vector-valued function. We want to compute &#8711; w E S&#8764;p(w) [Q(S)] = S&#8712;O I Q(S)&#8711; w p(S, w). Since the size of the independent set will increase exponentially w.r.t. the size of the ground set, it is computationally expensive to compute this gradient exactly. Instead, we will use the following unbiased estimator for the gradient in training.</p><p>As shown in Proposition 1 in <ref type="bibr">[24]</ref>, let S j = (s 1 , . . . , s |Sj | ) &#8764; p(w)(j = 1, . . . , N ) be outputs of SG.</p><p>Then,</p><p>is an unbiased estimator of &#8711; w E S&#8764;p(w) [Q(S)], where &#8855; denotes the outer product.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Differentiable Submodular Maximization for DOL</head><p>For the i-th training sample (z i , w i ), the associated cost w.r.t. &#952; is redefined for SG as:</p><p>where &#373;i = g(z i , &#952;).</p><p>For a training set with batch size M , we are interested in minimizing the empirical objective function 1 M M i=1 &#8467; i , where p( &#373;) is the output distribution of SG and &#8467; i is defined in Eq. ( <ref type="formula">9</ref>).</p><p>We compute the gradient using the chain rule:</p><p>where &#373; = g(z i , &#952;). Suppose we take N trials of SG, by setting Q( &#348;) = f ( &#348;, w i ) in Eq. ( <ref type="formula">8</ref>), we have: r.h.s. of (10)</p><p>where &#373;i = g(z i , &#952;).</p><p>Then, the remaining problem is how to compute &#8711; &#373;i ln p( &#348;j , &#373;i ) for a given sample &#348;j = (s 1 , . . . , s | &#348;j | ) returned by SG. It should be noticed that &#8711; &#373;i ln p( &#348;j , &#373;i ) = &#8711; &#373;i ln</p><p>, where p(s k , &#373;i ) can be obtained when we run the SG algorithm. Therefore, we just need to compute &#8711; &#373;i p(s k , &#373;i ). Let p k ( &#373;i ) be the probability returned by Eq. ( <ref type="formula">7</ref>) at the step k corresponding to the sample &#348;j . By using the chain rule,</p><p>the row in &#8711; &#373;i p k ( &#373;i ) corresponding to s k will give &#8711; &#373;i p(s k , &#373;i ). The first term on the r.h.s. of Eq. ( <ref type="formula">12</ref>) can be computed using auto-differentiation tools <ref type="bibr">[16]</ref> (the objective in ( <ref type="formula">7</ref>) is strictly concave) and the second term can be computed by differentiating the parameterized submodular objective. We can then use the above result to compute the gradient of a batch and update the parameters &#952; using the stochastic gradient descent method.</p><p>VI. EXPERIMENTS UAV and UGV Behavior: In this case study, we consider the case that the task route is defined as a sequence of ordered locations uniformly sampled from a circle whose center is [C x , C y ] and radius is r. Using this geometric information, each route can be represented as a vector C x , C y , r. As for the recharging strategy, we use a simple strategy in the simulation: whenever the state of charge drops below 30%, fly to the nearest recharging location waiting for the UGVs. We use the same energy model as that in <ref type="bibr">[25]</ref>. We generate UGV routes by first randomly selecting a set of nodes and then solving a Traveling Salesman Problem to get a route. Context Input z and mapping g &#952; (z): As shown in Fig. <ref type="figure">1</ref>, each z consists of two components: the task routes of all UAVs and the wind field vector [a, b, &#969; o ] of the working area. Since the route of the UAV can be parameterized by a circle (C x , C y , r), z can be represented as </p><p>n k and &#1013; &gt; 0 is an arbitrary constant, &#948; can be set to &#1013; ln n k . For the road graph G = (V, E), we use graph partition algorithms to generate nine sets of nodes, i.e., {W 1 , . . . , W 9 }. For each partition W i &#8834; V , we define three basis functions for decay parameters &#947; &#8712; {0.001, 0.5, 1}.</p><p>2) Generate Training Data: Raw Data: Based on the UAV UGV behavior models, we build a simulator for the routing problems. Given simulation parameters (e.g., UAV routes, and wind conditions), it will simulate UAVs' execution of persistent tasks. If we provide several selected routes to the simulator, it will return the number of UAVs recharged if UGV follows these routes. Based on this simulator, for each context observation z, we test multiple possible route selections and obtain a set of the actual number of UAVs that UGV recharged. We will use this raw data to obtain the training data.</p><p>To train the decision-oriented framework proposed in Sec. III, we need the i-th data point to be in the form (z i , w i ), where z i denotes the context input and w i is the corresponding parameter vector of the objective function. However, w i is not directly available and we need to do some pre-processing of the raw data. Specifically, for each z, we have a set of values for different selections, i.e., F = {f (S 1 ), . . . , f (S |F | )}. We find the corresponding w by solving the following regularized least square optimization problem <ref type="bibr">[26]</ref>, i.e., min w&#8805;0</p><p>, where &#958; is a user-specified regularization parameter. 3) Results: Fig. <ref type="figure">4</ref> shows the learning curves over epochs. In each epoch, we compute the gradient by sampling a batch size of 40 in each iteration. We can see that as the training epoch increases, the loss will gradually decrease to a steady value. It should be noticed that the loss here represents the solution quality gap between the solution obtained using ground truth parameters and the solution obtained using predicted param-  eters as defined in Problem 1. Therefore, such a decrease suggests that the decision quality is improving.</p><p>After training, we test the performance of the learned models using the simulator. We generate a set of context observations {z i } test and compute the corresponding predicted weights { &#373;i } test . Then, we use { &#373;i } test to select routes and feed the route to the simulator to obtain the actual number of UAVs recharged. The result is shown in Table VI-.2. We compare three approaches: DOL (our), two-stage (classic supervise learning with MSE loss), and random (select routes randomly without any learning ). As shown in Table VI-.2, our approach on average can result in better route selection and recharge more UAVs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. CONCLUSION</head><p>We propose a decision-oriented learning framework for mobile charging routing problems. We first show how to formulate the learning problem in the context of mobile charging routing. Then, we show how to make submodular maximization a differentiable layer by using stochastic smoothing techniques. The proposed framework and formulation are validated through several case studies.</p></div></body>
		</text>
</TEI>
