How Should a Robot Assess Risk? Towards an Axiomatic Theory of Risk in Robotics
Anirudha Majumdar, Marco Pavone
Introduction
Safe planning and decision making under uncertainty are widely regarded as central challenges in enabling robots to successfully operate in real-world environments. By far the most common conceptual framework for addressing these challenges is to assign costs to stochastic outcomes and then to use the expected value of the resulting cost distribution as a quantity that “summarizes” the value of a decision. Such a quantity can then be optimized, or bounded within a constrained formulation. However, in settings where risk has to be accounted for, this choice is rarely well justified beyond the mathematical convenience it affords. For example, imagine a safety-critical application such as autonomous driving; would a passenger riding in an autonomous car be happy to do so if she was told that the average behavior of the car is not to crash? While one can introduce some degree of risk sensitivity (i.e., sensitivity to the tails of the cost distribution) in the expected cost framework by simply shaping the cost function, this can quickly turn into an exercise in “cost function hacking”. Unless one is careful about the way one shapes the cost function, this can lead to the robot behaving in an irrational manner Amodei et al. (2016). The common alternative approach, aimed at promoting risk sensitivity, is to consider a worst-case assessment of the distribution of stochastic outcomes. In practice, however, such an assessment can often be quite conservative: an autonomous car whose goal is to never crash would never leave the garage.
The expected value operator and the worst-case assessment are examples of risk metrics. Informally, a risk metric is a mapping from a random variable corresponding to costs to a real number. The expected cost corresponds to risk neutrality while the worst-case assessment corresponds to extreme risk aversion. For practical applications, we would like to explore risk metrics that lie in between these extremes. This raises the following question: is there a class of risk metrics that lie between these extremes while still ensuring that the robot quantifies risk (and hence safety) in a rational and trustworthy manner? This question is central to the problem of decision making under uncertainty since the choice of a risk metric is one that must be made in any framework that assigns costs to outcomes. Yet, despite the role of safe decision making under uncertainty as a core theme in practically all areas of robotics, this question has received very little attention within the robotics community. As a result, there is arguably no firm theoretical foundation for making an informed decision about what risk metric to use for a given robotics application.
The goal of this paper is to provide a first step towards such a principled framework. More precisely, we describe axioms (properties) that a risk metric employed by a robot should satisfy in order to be considered sensible. To our knowledge, this is the first attempt to provide such an axiomatic framework for evaluating risk in robotics applications. Our effort is inspired by a similar effort in the finance community that led to the identification of coherent risk metrics Artzner et al. (1999); Shapiro et al. (2014) as a class of risk metrics that have desirable properties for assessing the risk associated with a financial asset (e.g., a portfolio of stocks). The influence that these ideas have had can be gauged by the fact that in 2014 the Basel Committee on Banking Supervision changed its guidelines for banks to replace the Value at Risk (VaR) (a non-coherent risk metric) with the Conditional Value at Risk (CVaR) (a coherent risk metric) for assessing market risk on Banking Supervision (2014).
We believe that the question of what properties a risk metric should satisfy in robotics applications is a fundamental one: a robot’s inability to assess risks in a rational way could lead to behavior that is harmful both to itself and humans or other autonomous agents around it. Our hope is that the ideas presented in this paper can help the community converge upon a set of properties that risk metrics must satisfy in order for the robot’s decision-making system to be considered rational and trustworthy, paralleling a similar effort in the financial industry. Indeed, it is conceivable that in the not-so-distant future, robots such as autonomous cars or unmanned aerial vehicles (UAVs) deployed in safety-critical scenarios will be subject to regulatory frameworks that mandate the use of “officially-approved” risk metrics.
Related Work: Our work here is inspired by the efforts over the last two decades towards the development of an axiomatic theory of risk in finance and operations research. These efforts have resulted in widespread acceptance of the class of coherent risk metrics as “rational” measures of risk for financial assets. Coherent risk metrics are defined by four axioms that any sensible assessment of financial risk must satisfy (see Section 4). Additional axioms beyond the four characterizing coherent risk metrics have also been studied and lead to more refined classes of risk metrics. We refer the reader to Föllmer and Schied (2011); Shapiro et al. (2014) for an introduction to this vast literature. Our main contribution here is to parallel the efforts in the finance community on proposing and characterizing axioms that any sensible assessment of risk in a robotics application should satisfy. We propose these axioms in Section 3 and provide interpretations for them in a robotics context. As we will see, the class of risk metrics fulfilling these axioms corresponds precisely to the class of distortion risk metrics, which form a subset of coherent risk metrics and have previously been studied in the finance literature Wang (2000); Iancu et al. (2015); Föllmer and Schied (2011); Bertsimas and Brown (2009).
As discussed previously, the most commonly used risk metrics in robotics are the expected cost and worst-case metrics. While these risk metrics are justifiable in certain contexts (e.g., expected cost in applications where the distribution of costs is known to not have a long tail or worst-case assessments in low-level control tasks such as trajectory tracking), many robotics applications call for a more nuanced assessment of risk. Chance constrained programming Charnes and Cooper (1959) provides one avenue towards such assessments. In particular, a chance constraint specifies an upper bound on the probability of incurring a cost higher than a given threshold. Chance constraints have been widely studied in robotics for motion planning under uncertainty Blackmore et al. (2011); Du Toit and Burdick (2011); Ono et al. (2015). While chance constraints are suitable for capturing risk corresponding to boolean events (e.g., collisions with obstacles), they do not take into account variations in the tails of cost distributions (since they are not affected by changes to the value of the cost above the given threshold). Chance constraints are thus not suitable for capturing risk in settings where one must consider a range of cost outcomes (in contrast to boolean events).
Another popular way to quantify risk in control theory and decision making is through the notion of distributional robustness Delage and Ye (2010); Xu and Mannor (2010); Summers et al. (2015). Distributional robustness captures the idea that the underlying distribution from which random outcomes of the world are generated may itself be uncertain. Such scenarios are referred to as ambiguous in the literature on human decision making Gilboa and Marinacci (2016). In such scenarios, while the precise distribution may be unknown, one may know certain properties of the underlying distribution (e.g., its first few moments, or that it lies in a given set of possible distributions). One can then compute the worst-case expectation of the cost function over the set of distributions that satisfy the known properties (e.g., the set of all distributions that have the given moments). As we will see in Section 4, the set of risk metrics fulfilling the axioms advocated in this paper have an interpretation in terms of distributional robustness. However, not all distributionally robust risk metrics satisfy the proposed axioms.
Beyond robotics and finance, the notion of risk is of central concern to the theory of human decision making under uncertainty. A historically prominent theory is subjective expected utility (SEU) theory von Neumann and Morgenstern (1944), where humans make decisions that maximize the expected value of a utility function. This is analogous to the method for taking into account risk aversion in autonomous agents by “shaping” the cost function. However, SEU theory is inconsistent with a number of experimental observations Ellsberg (1961); Kahneman and Tversky (1979); Allais (1990). In particular, SEU theory does not take into account the experimentally observed fact that humans are ambiguity averse Ellsberg (1961); Allais (1990), i.e., averse to situations where there is uncertainty about the underlying probability distribution from which outcomes are drawn (previously discussed in the context of distributional robustness). Models of ambiguity aversion include prospect theory, which has risen to prominence over the last several decades, along with more recent and sophisticated theories Gilboa and Marinacci (2016) that model the human as minimizing a distributionally robust risk metric. These theories are thus closely related to the class of distortion risk metrics (which we advocate for in this paper for use in robotics) since they can also be interpreted as a special class of distributionally robust risk metrics.
Outline: The outline of this paper is as follows. Section 2 formally introduces the notion of a risk metric (Section 2.1) and proposes an interpretation of risk in robotics applications (Section 2.2). In Section 3 we advocate axioms that risk metrics in robotics applications should satisfy in order to be considered sensible (Sections 3.1), provide examples of metrics that satisfy them, and discuss pitfalls stemming from using risk metrics that do not satisfy these axioms (Section 3.2). Section 4 discusses representation theorems that precisely characterize the class of risk metrics fulfilling the axioms we propose. Section 5 proposes additional properties that one must consider in sequential decision making tasks. Section 6 concludes the paper with directions for future research. We note that we highlight a number of points of discussion throughout the paper. Our hope is that these will form the basis for discussion and debate at the Blue Sky session during the conference and will provoke new directions for future research.
Assessing Risk: Preliminaries
In this section, we formally introduce risk metrics and propose an intuitive interpretation of risk quantification in robotics contexts. This interpretation will form the basis for the axioms we advocate in Section 3.
2 Interpretation of Risk in Robotics Applications
Imagine a fictional government agency known as the Robot Certification Agency (RCA) that is responsible for certifying if a given robot is safe to operate in the real world. How should the RCA quantify the risk faced by this robot? As an example, consider an autonomous car driving from one city to another. While performing this task, the robot will incur random costs (e.g., due to fuel consumption, time, crashes, mechanical wear and tear, etc.). In order to provide clear interpretations of the axioms for risk metrics discussed below, we will take the following axiom as a key starting point.
A0. Monetary costs. The costs are expressed in monetary terms.
This axiom ensures that the costs assigned to outcomes have a tangible and interpretable value, which will be instrumental in defining a meaningful notion of risk below. Such an axiom may also provide a handle on reasoning about insurance policies for safety-critical robots (e.g., autonomous cars). We note that our starting point contrasts with one where one considers a more abstract and subjective notion of cost (e.g., quadratic state and control costs for Linear Quadratic Regulator problems).
We note that we are using the RCA here as a pedagogical tool to provide an interpretation of risk in robotics applications and to motivate the axioms described in Section 3. In reality, the robot’s decision-making system will assess risks and make decisions based on those assessments.
An Axiomatization of Risk Metrics for Robotics Applications
We now parallel results in finance (Föllmer and Schied, 2011, Chapter 4) Shapiro et al. (2014) and propose six axioms for risk metrics. Specifically, we make the case that these axioms should be fulfilled by any risk metric used in a robotics application in order for it to be considered a sensible assessment of risk. For each axiom, we first provide a formal statement and then an intuitive interpretation based on the interpretation of risk from Section 2.2.
A1. Monotonicity. Let be two cost random variables. Suppose for all . Then .
Interpretation: If a random cost is guaranteed to be greater than or equal to a random cost no matter what random outcome occurs, then must be deemed at least as risky as . One can think of the random costs as corresponding to two different robots, or the same robot performing different tasks, or executing different controllers. Given our interpretation of risk, this axiom states that the RCA must demand at least as large a deposit for covering costs for the robot (or task) corresponding to as for the robot (or task) corresponding to . This is a sensible requirement since we are guaranteed to incur at least as high a cost in the second scenario as the first no matter which outcome is realized. An example is illustrated in Figure 1, where we have two robot cars corresponding to and and two outcomes and corresponding to sunny and rainy weather, respectively. If the car corresponding to incurs a lower cost no matter what the weather is, monotonicity states that it should be considered less risky.
Interpretation: If one is charged a deterministic cost (in addition to the random costs incurred when the robot is operated), then the RCA should demand that this amount be set aside in addition to money for covering the other costs from operating the robot:
Note that this axiom also implies that . Thus, is the smallest amount that must be deducted from the costs in order to make the task risk-free.
A3. Positive homogeneity. Let and be a scalar. Then .
Interpretation: If all the costs incurred by the robot (regardless of the random outcome) are scaled by , the RCA demands that the deposit is scaled commensurately. This is reasonable since this corresponds to simply changing the units of cost (recall that we assumed that the costs are expressed in monetary terms).
A4. Subadditivity. Let . Then .
Interpretation: This axiom encourages diversification of risk. For example, imagine a system with two robots. Suppose that and are costs incurred by Robot 1 and Robot 2 respectively. The left-hand side (LHS) of the inequality corresponds to the deposit that the RCA demands when both robots are run simultaneously, while the right-hand side (RHS) corresponds to the sum of the deposits when the robots are deployed separately. Axiom A4 then states that deploying both robots simultaneously is at most as risky as deploying them separately:
This captures the intuition that one robot acts as a hedge against the other robot failing (i.e., if one of the robot fails in some way, then the other will make up for this loss). Another interpretation is that this axiom promotes redundancy in the system. The exact interpretation of the LHS and RHS of the inequality in A4 will depend on the particular application under consideration. For example, the two sub-costs and may correspond to two separate sub-tasks that the robot must perform. In this case, the LHS corresponds to the robot performing both tasks simultaneously while the RHS corresponds to performing them independently. A4 encodes the intuition that performing both tasks simultaneously is less risky since one sub-task can act as a hedge against the other.
We note that A3 and A4 together imply convexity:
A5. Comonotone additivity. Suppose and are comonotone, i.e., , for all . Then .
Interpretation: This axiom supplements A4. In particular, A5 states that if two costs rise and fall together, then there is no benefit from diversifying (e.g., if one robot always performs poorly at a task when the other does or when a robot performs poorly at a sub-task when it also performs poorly at another one).
A6. Law invariance. Suppose that and are identically distributed. Then .
Interpretation: If two tasks have the same distribution of costs, then the RCA demands an equal deposit in both cases. For example, suppose with both outcomes having probability 0.5. Further, suppose , , , . The two situations must be considered equally risky even though the assignment of costs to events is different.
Taken together, Axioms A1 – A6 capture a fairly exhaustive set of essential properties that we believe any reasonable quantification of risk in robotics should obey given the interpretation of risk we proposed in Section 2.2. A hypothetical RCA that quantifies risk in a manner that is consistent with these axioms would be considered a sensible one. Moreover, robots that assess risks according to risk metrics that fail to satisfy some of these axioms can behave in a manner that would be considered extremely unreasonable and arguably very unsafe, as illustrated in Section 3.2. We thus advocate risk metrics that satisfy Axioms A1 – A6 for use in robotics applications.
2 Examples and Pitfalls of Commonly Used Risk Metrics
In this section, we first discuss examples of existing risk metrics that fulfill Axioms A1 – A6. We then discuss commonly used risk metrics that do not fulfill some of these axioms, along with pitfalls stemming from their use. Collectively, the discussion provided here motivates the formal introduction in the next section of distortion risk metrics (equivalently, risk metrics satisfying A1 – A6) as a general class of risk metrics for robotic applications.
An important risk metric that satisfies Axioms A1 – A6 is the Conditional Value at Risk (CVaR) Rockafellar and Uryasev (2000). The for a random cost at level is defined as:
where is the Value at Risk (VaR) at level , i.e., simply the -quantile of the cost random variable :
Intuitively, is the expected value of in the conditional distribution of ’s upper -tail. It can thus be interpreted as a risk metric that quantifies “how bad is bad.” We note that the expected cost and worst-case assessment also satisfy A1 – A6. Figure 2 provides a visualization of the expected cost, worst case, VaR, and CVaR. Axioms A1 – A6 thus define a broad class of risk metrics that capture a wide spectrum of risk assessments from risk-neutral to worst-case. In Section 4, we will discuss theorems that allow us to precisely characterize all risk metrics that satisfy A1 – A6 and easily generate new examples of such metrics.
The robot would hence strictly prefer . This unreasonable behavior is a result of the mean-variance risk metric failing to satisfy Axiom A1 (monotonicity).
Table 3 lists the axioms satisfied by popular risk metrics in the literature (we refer the reader to Shapiro et al. (2014) for definitions). We note that the standard semi-deviation is widely used in finance Shapiro et al. (2014), while the entropic risk metric has been popular in control theory for risk-averse control Whittle (1981); Glover and Doyle (1987).
Distortion Risk Metrics
Risk metrics satisfying Axioms A1 – A6 have been studied in the context of portfolio optimization in finance and are known as distortion risk metrics Wang (2000); Iancu et al. (2015); Föllmer and Schied (2011); Bertsimas and Brown (2009). These risk metrics are also equivalent to the class of spectral risk measures Acerbi (2002). They enjoy an elegant characterization, which we discuss below, in terms of the CVaR metric. Before doing so, we first discuss representations for risk metrics satisfying subsets of the above axioms. In particular, Axioms A1 – A4 correspond to those of coherent risk metrics (CRMs). CRMs enjoy a universal representation theorem:
where is a compact convex set of probability mass functions. In other words, any coherent risk metric can be represented as an expectation with respect to a worst case probability mass function, chosen adversarially from a given compact convex set (referred to as a risk envelope). An example of a risk envelope is visualized in Figure 3. Coherent risk metrics thus capture, as a by-product, the notion of distributional robustness (see Section 1), i.e., robustness to uncertainty over the underlying distribution itself.
Risk metrics satisfying Axioms A1 – A5 are known as comonotonic risk metrics (Föllmer and Schied, 2011, Chapter 4.7). These risk metrics have a characterization in terms of Choquet integrals, which we now discuss with the help of additional terminology.
A set function is called monotone if for all , and normalized if and . If, in addition, satisfies
Recall that corresponds to the set of outcomes that may occur when the robot operates (see Section 2.1). The set is the power set (i.e., set of all subsets) of . We now define the Choquet Integral Choquet (1954) and state a representation theorem for comonotonic risk metrics in terms of these integrals.
The Choquet Integral of a random variable with respect to a monotone, normalized set function is
Here, the integrals in the RHS are Riemann integrals. Informally, the Choquet integral is a generalization of the Lebesgue integral that allows the integration operation to have a nonlinear dependence on (in contrast to the Lebesgue integral, which is a linear operator).
Risk metrics satisfying Axioms A1 – A6 are known as distortion risk metrics. These metrics inherit the representation theorems for coherent and comonotonic risk metrics and enjoy a further elegant characterization in terms of the CVaR metric.
This theorem provides us with a precise mathematical characterization of all distortion risk metrics and allows us to generate examples of such metrics by choosing functions satisfying the assumptions of the theorem.
To summarize our discussion so far, based on our arguments in Section 3.1 we advocate the use of distortion risk metrics (i.e., risk metrics satisfying A1 – A6, or equivalently risk metrics of the form (4)) for evaluating risk in robotics applications. This is in contrast to popular risk metrics used in the robotics literature (e.g., mean-variance, or VaR) and other popular classes of risk metrics used in finance (e.g., coherent risk metrics, or comonotonic risk metrics). However, we end this section by noting the possibility that for certain applications distortion risk metrics may constitute too restrictive a class of risk metrics. We leave the following as a point for discussion and future work.
The axioms of monotonicity (A1), translation invariance (A2), positive homogeneity (A3), and law invariance (A6) should arguably be applicable in any robotics application. Subadditivity (A4) and comonotone additivity (A5) are also intuitively appealing, particularly for applications that involve some degree of high-level decision making (since a high-level decision making system should ideally diversify risks). However, the interpretation of diversification is somewhat unclear in certain applications. For example, imagine a humanoid robot whose goal is to minimize a cost function that is a sum of two components and , where penalizes one aspect of the robot’s motion (e.g., deviations of the robot’s torso from the vertical orientation) while penalizes another aspect (e.g., deviation of the robot’s gaze from a target). For such low-level control tasks, the interpretation of is not entirely clear since it is not possible to perform the different subtasks corresponding to and independently of each other. The following is thus a question for discussion and future work: should A4 and A5 be abandoned (or replaced by other axioms) for such tasks?
Sequential Decision Making and Time Consistency
The sequential nature of many decision-making tasks in robotics gives rise to additional important considerations beyond the ones discussed in Section 3. Again paralleling results in finance Shapiro (2009); Ruszczyński (2010); Shapiro et al. (2014), we discuss properties that ensure the temporal consistency of risk assessments in sequential decision-making tasks.
Local property. At every state of the system, the optimal decision taken by the robot should not depend on scenarios that the robot knows cannot occur in the future (see Shapiro (2009); Ruszczyński (2010) for a formal discussionWe note that the local property is sometimes referred to as “time consistency”. However, here we use terminology that is consistent with the dynamic risk measurement literature Ruszczyński (2010).). This concept is illustrated in Figure 4. The optimal decision taken by the robot at state should not depend on the scenarios shaded in red.
Time consistency of risk assessments. Intuitively, time consistency stipulates that if a certain situation is considered less risky than another situation in all states of the world at time-step , then it should also be considered less risky at time-step . Before providing a formal definition, we note that failure to satisfy time consistency or the local property can lead to “irrational” behavior, including: (1) intentionally seeking to incur losses Mannor and Tsitsiklis (2011), or (2) deeming states to be dangerous when in fact they are favorable under any realization of the underlying uncertainty (we discuss an example of this below), or (3) declaring a decision-making problem to be feasible (e.g., satisfying a certain risk threshold) when in fact it is infeasible under any possible realization of the uncertainties Roorda et al. (2005).
As an example, consider the following planning problem with a CVaR cost. Given a Markov Decision Process (MDP) with initial state and time horizon , solve:
where and is the state at time-step . Consider the scenario tree (based on Artzner et al. (1999)) in Figure 5. Suppose we consider the solution of (5) acceptable if . One can then show that the optimization problem (over a single policy) results in an unacceptable solution since is positive. However, is satisfied in every state of the world from the perspective of time-step . In other words, the decision maker would deem the solution of (5) unacceptable even though the solution appears acceptable from the perspective of the second stage () under any realization of the uncertainties.
We note that there is nothing special about this example. In general, simply applying a risk metric to the sum of all costs incurred at each time-step does not generally lead to time consistency. In order to obtain time-consistent measures of risk, we need to construct a sequence of risk metrics , each mapping a future stream of random costs into a risk assessment at time-step (visualized in Figure 6). Such risk metrics are known as dynamic risk metrics Ruszczyński (2010) since they assess risk at multiple points in time (in contrast to static risk metrics, which only assess risk from the perspective of the initial stage as in the example above). A dynamic risk metric is called time-consistent if, for all time-steps and all sequences of stage costs and , the conditions
Remarkably, it can be shown that one can construct a time-consistent risk metric by compounding one-step risk metrics Ruszczyński (2010):
where the functions are a set of single-period risk metrics (satisfying mild technical conditions which are satisfied by distortion risk metrics). These single period metrics assess the risk of a random cost incurred at time-step from the perspective of time-step (we refer the reader to Ruszczyński (2010) for a more thorough introduction to time consistency of risk metrics). Moreover, under certain mild conditions, any time consistent risk metric is of the form (6) Ruszczyński (2010). It can also easily be shown that in addition to time-consistency, compounding distortion risk metrics also leads to the local property being satisfied (Shapiro et al., 2014, Chapter 6.8.5).
If one adopts a distortion risk metric as the one-step risk metric that is compounded over time as in Equation (6), one inherits the “rationality” of the one-step assessments while also ensuring time consistency. This is the form of risk metric we advocate for sequential decision making tasks. However, imposing time consistency still comes at a conceptual cost. In particular, while a risk metric of the form is easy to interpret, the composition of one-step metrics in Equation (6) stipulated by time consistency is more difficult to interpret. A direction for future work is thus to establish if this tension between time consistency and interpretability is an avoidable one.
Discussion and Conclusions
Our goal in this paper has been to provide preliminary directions towards an axiomatic theory of risk for robotics applications. We have advocated properties that risk metrics employed by robots should satisfy in order for them to be considered sensible. These axioms define a class of risk metrics, known as distortion risk metrics, which have been previously used in finance. We further discussed properties that ensure the temporal consistency of risk assessments in sequential decision making tasks. We end with some questions that highlight areas for future thought in addition to the discussion points highlighted in Discussions 1 and 2 above.
While we have highlighted a number of axioms that we believe are particularly important, the identification of other axioms is an important direction for future work. These may depend on the particular domain of application. Moreover, for certain applications it may not be necessary to impose all the axioms described here. For example, A4 and A5 (concerning diversification of risks) will generally be relevant to high-level decision making tasks where it is possible to diversify risks and may not be relevant for low-level control tasks where diversification may not be possible.
For a given application, we may wish to choose a particular risk metric from the class of metrics described here. How should such a metric be chosen? One possibility is to learn a distortion risk metric that explains how humans evaluate risk in the given application domain and then employ the learned risk metric. We describe first steps towards this in Majumdar et al. (2017), where we have introduced a framework for risk-sensitive inverse reinforcement learning for learning humans’ risk preferences from the class of coherent risk metrics.
The question of safety for AI systems has received significant attention recently (see, e.g., Amodei et al. (2016) for a recent review). An important component of this discussion has been the consideration of legal frameworks and guidelines that must be placed on AI systems to ensure that they do not pose a threat to our safety. Such considerations for robots such as unmanned aerial vehicles are already extremely pressing for government agencies such as the Federal Aviation Administration (FAA). It is not difficult to imagine a future where the Robot Certification Agency (RCA) is in fact a real entity that certifies the safety of new robotic systems. How can we effectively engage lawmakers and government officials in discussions on how to evaluate risks in robotic applications?
Our hope is that the ideas presented in this paper will spur further work on this topic and eventually lead to a convergence upon a particular class of risk metrics that form the standard for assessing risk in robotics.