<?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'>Towards Robust and Reliable Recourse</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2021 December</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10315100</idno>
					<idno type="doi"></idno>
					<title level='j'>Advances in neural information processing systems</title>
<idno>1049-5258</idno>
<biblScope unit="volume">34</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Sohini Upadhyay</author><author>Shalmali Joshi</author><author>Himabindu Lakkaraju</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[As predictive models are increasingly being deployed in high-stakes decision making (e.g., loan approvals), there has been growing interest in post-hoc techniqueswhich provide recourse to affected individuals. These techniques generate recourses under the assumption that the underlying predictive model does not change.However, in practice, models are often regularly updated for a variety of reasons(e.g., dataset shifts), thereby rendering previously prescribed recourses ineffective.To address this problem, we propose a novel framework, RObust AlgorithmicRecourse (ROAR), that leverages adversarial training for finding recourses thatare robust to model shifts. To the best of our knowledge, this work proposes thefirst ever solution to this critical problem. We also carry out theoretical analysiswhich underscores the importance of constructing recourses that are robust tomodel shifts: 1) We quantify the probability of invalidation for recourses generatedwithout accounting for model shifts. 2) We prove that the additional cost incurreddue to the robust recourses output by our framework is bounded. Experimentalevaluation on multiple synthetic and real-world datasets demonstrates the efficacyof the proposed framework.]]></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 n="1">Introduction</head><p>Over the past decade, machine learning (ML) models are increasingly being deployed to make a variety of highly consequential decisions ranging from bail and hiring decisions to loan approvals. Consequently, there is growing emphasis on designing tools and techniques which can provide recourse to individuals who have been adversely impacted by predicted outcomes <ref type="bibr">[30]</ref>. For example, when an individual is denied a loan by a predictive model deployed by a bank, they should be provided with reasons for this decision, and also informed about what can be done to reverse it. When providing a recourse to an affected individual, it is absolutely critical to ensure that the corresponding decision making entity (e.g., bank) is able to honor that recourse and approve any re-application that fully implements the recommendations outlined in the prescribed recourse Wachter et al. <ref type="bibr">[31]</ref>.</p><p>Several approaches in recent literature tackled the problem of providing recourses by generating local (instance level) counterfactual explanations <ref type="foot">2</ref>  <ref type="bibr">[31,</ref><ref type="bibr">26,</ref><ref type="bibr">12,</ref><ref type="bibr">21,</ref><ref type="bibr">18]</ref>. For instance, Wachter et al. <ref type="bibr">[31]</ref> proposed a gradient based approach which finds the closest modification (counterfactual) that can result in the desired prediction. Ustun et al. <ref type="bibr">[26]</ref> proposed an efficient integer programming based approach to obtain actionable recourses in the context of linear classifiers. There has also been some recent research that sheds light on the spuriousness of the recourses generated by counterfactual/contrastive explanation techniques <ref type="bibr">[31,</ref><ref type="bibr">26]</ref> and advocates for causal approaches <ref type="bibr">[3,</ref><ref type="bibr">14,</ref><ref type="bibr">15]</ref>.</p><p>All the aforementioned approaches generate recourses under the assumption that the underlying predictive models do not change. This assumption, however, may not hold in practice. Real world settings are typically rife with different kinds of distribution shifts (e.g, temporal shifts) <ref type="bibr">[22]</ref>. In order to ensure that the deployed models are accurate despite such shifts, these models are periodically retrained and updated. Such model updates, however, pose severe challenges to the validity of recourses because previously prescribed recourses (generated by existing algorithms) may no longer be valid once the model is updated. Recent work by Rawal et al. <ref type="bibr">[24]</ref> has, in fact, demonstrated empirically that recourses generated by state-of-the-algorithms are readily invalidated in the face of model shifts resulting from different kinds of dataset shifts (e.g., temporal, geospatial, and data correction shifts). Their work underscores the importance of generating recourses that are robust to changes in models i.e., model shifts, particularly those resulting from dataset shifts. However, none of the existing approaches address this problem.</p><p>In this work, we propose a novel algorithmic framework, RObust Algorithmic Recourse (ROAR) for generating instance level recourses (counterfactual explanations) that are robust to changes in the underlying predictive model. To the best of our knowledge, this work makes the first attempt at generating recourses that are robust to model shifts. To this end, we propose a novel minimax objective that can be used to construct robust actionable recourses while minimizing the recourse costs. Second, we propose a set of model shifts that captures our intuition about the kinds of changes in the models to which recourses should be robust. Next, we outline an algorithm inspired by adversarial training to optimize the proposed objective. We also carry out theoretical analysis to establish the following results: i) we quantify the probability of invalidation for recourses generated without accounting for model shifts, and ii) we derive an upper bound on the relative increase in the costs incurred due to robust recourses (proposed by our framework) to the costs incurred by recourses generated from existing algorithms. Our theoretical results further establish the need for approaches like ours that generate actionable recourses that are robust to model shifts.</p><p>We evaluated our approach ROAR on real world data from financial lending and education domains, focusing on model shifts induced by the following kinds of distribution shifts -data correction shift, temporal shift, and geospatial shift. We also experimented with synthetic data to analyze how the degree of data distribution shifts and consequent model shifts affect the robustness and validity of the recourses output by our framework as well as the baselines. Our results demonstrate that the recourses constructed using our framework, ROAR, are substantially more robust (67 -100%) to changes in the underlying predictive models compared to those generated using state-of-the-art recourse finding technqiues. We also find that our framework achieves such a high degree of robustness without sacrificing the validity of the recourses w.r.t. the original predictive model or substantially increasing the costs associated with realizing the recourses.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>Our work lies at the intersection of algorithmic recourse and adversarial robustness. Below, we discuss related work pertaining to each of these topics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithmic recourse</head><p>As discussed in Section 1, several approaches have been proposed to construct algorithmic recourse for predictive models <ref type="bibr">[31,</ref><ref type="bibr">26,</ref><ref type="bibr">12,</ref><ref type="bibr">21,</ref><ref type="bibr">18,</ref><ref type="bibr">3,</ref><ref type="bibr">14,</ref><ref type="bibr">15,</ref><ref type="bibr">7]</ref>. These approaches can be broadly characterized along the following dimensions <ref type="bibr">[29]</ref>: the level of access they require to the underlying predictive model (black box vs. gradients), if and how they enforce sparsity (only a small number of features should be changed) in counterfactuals, if counterfactuals are required to lie on the data manifold or not, if underlying causal relationships should be accounted for when generating counterfactuals or not, whether the output should be multiple diverse counterfactuals or just a single counterfactual. While the aforementioned approaches have focused on generating instance level counterfactuals, there has also been some recent work on generating global summaries of model recourses which can be leveraged to audit ML methods <ref type="bibr">[23]</ref>. More recently, Rawal et al. <ref type="bibr">[24]</ref> demonstrated that recourses generated by state-of-the-art algorithms are readily invalidated due to model shifts resulting from different kinds of dataset shifts. They argued that model updation is very common place in the real world, and it is important to ensure that recourses provided to affected individuals are robust to such updates. Similar arguments have been echoed in several other recent works <ref type="bibr">[28,</ref><ref type="bibr">13,</ref><ref type="bibr">20]</ref>. While there has been some recent work that explores the construction of other kinds of explanations (feature attribution and rule based explanations) that are robust to dataset shifts <ref type="bibr">[16]</ref>, our work makes the first attempt at tackling the problem of constructing recourses that are robust to model shifts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Adversarial Robustness</head><p>The techniques that we leverage in this work are inspired by the adversarial robustness literature. <ref type="bibr">Wachter et al.</ref> were the first to remark on similarities between counterfactual generation and adversarial attacks, but did not leverage this connection to develop robust recourse <ref type="bibr">[31]</ref>. It is now well established that ML models are vulnerable to adversarial attacks <ref type="bibr">[10,</ref><ref type="bibr">4,</ref><ref type="bibr">2]</ref>. The adversarial training procedure was recently proposed as a defense against such attacks <ref type="bibr">[19,</ref><ref type="bibr">1,</ref><ref type="bibr">32]</ref>. This procedure optimizes a minimax objective that captures the worst-case loss over a given set of perturbations to the input data. At a high level, it is based on gradient descent; at each gradient step, it solves an optimization problem to find the worst-case perturbation, and then computes the gradient at this perturbation. In contrast, our training procedure optimizes a minimax objective that captures the worst-case over a given set of model perturbations (thereby simulating model shift) and generates recourses that are valid under the corresponding model shifts. This training procedure is novel and possibly of independent interest.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Our Framework: RObust Algorithmic Recourse</head><p>In this section, we detail our framework, RObust Algorithmic Recourse (ROAR). First, we introduce some notation and discuss preliminary details about the algorithmic recourse problem setting. We then introduce our objective function, and discuss how to operationalize and optimize it efficiently.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Preliminaries</head><p>Let us assume we are given a predictive model M : X &#8594; Y, where X &#8838; R d is the feature space, and Y is the space of outcomes. Let Y = {0, 1} where 0 and 1 denote an unfavorable outcome (e.g., loan denied) and a favorable outcome (e.g., loan approved) respectively. Let x &#8712; X be an instance which received a negative outcome i.e., M(x) = 0. The goal here is to find a recourse for this instance x i.e., to determine a set of changes that can be made to x in order to reverse the negative outcome. The problem of finding a recourse for x involves finding a counterfactual x = x + for which the black box outputs a positive outcome i.e., M(x ) = M(x + ) = 1.</p><p>There are, however, a few important considerations when finding the counterfactual x = x + . First, it is desirable to minimize the cost (or effort) required to change x to x . To formalize this, let us consider a cost function c : X &#215; X &#8594; R + . c(x, x ) denotes the cost (or effort) incurred in changing an instance x to x . In practice, some of the commonly used cost functions are 1 or 2 distance <ref type="bibr">[31]</ref>, log-percentile shift <ref type="bibr">[26]</ref>, and costs learned from pairwise feature comparisons input by end users <ref type="bibr">[23]</ref>. Furthermore, since recommendations to change features such as gender or race would be unactionable, it is important to restrict the search for counterfactuals in such a way that only actionable changes are allowed. Let A denote the set of plausible or actionable counterfactuals.</p><p>Putting it all together, the problem of finding a recourse for instance x for which M(x) = 0 can be formalized as:</p><p>x = arg min</p><p>Eqn. 1 captures the generic formulation leveraged by several of the state-of-the-art recourse finding algorithms. Typically, most approaches optimize the unconstrained and differentiable relaxation of Eqn. 1 which is given below:</p><p>where : Y &#215; Y &#8594; R + denotes a differentiable loss function (e.g., binary cross entropy) which ensures that gap between M(x ) and favorable outcome 1 is minimized, and &#955; &gt; 0 is a trade-off parameter.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Formulating Our Objective</head><p>As can be seen from Eqn. 2, state-of-the-art recourse finding algorithms rely heavily on the assumption that the underlying predictive model M does not change. However, predictive models deployed in the real world often get updated. This implies that individuals who have acted upon previously prescribed recourses are no longer guaranteed a favorable outcome once the model is updated. To address this critical challenge, we propose a novel minimax objective function which generates counterfactuals that minimize the worst-case loss over plausible model shifts. We arrived at this approach after considering the following alternatives: (a) Update the predictive model as desired but ensure that individuals who were previously prescribed recourse will still be guaranteed a favorable outcome. (b)</p><p>Update the predictive model while including constraints to ensure that previously offered recourses are still valid. Note that both of these scenarios would potentially incur huge monetary losses to relevant stakeholders (e.g, banks), hurting the adoption of these approaches. In case (a), banks may be required to guarantee credit to customers that are potentially not creditworthy under the new model and thereby risk losing money. In case (b), access to model training is assumed. Furthermore, training a predictive model under these constraints may be suboptimal and not reflective of the current data distribution, thereby accruing larger errors under the shifted population. There are no incentives for stakeholders such as banks to adopt such practices which could potentially lead to huge monetary losses. While the optimal approach may vary on a case by case basis, we propose our method to avoid the aforementioned pitfalls outlined in cases (a) and (b).</p><p>To formalize our proposed approach, let &#8710; denote the set of plausible model shifts and let M &#948; denote a shifted model where &#948; &#8712; &#8710;. Our objective function for generating robust recourse x for a given instance x can be written as:</p><p>where cost function c and loss function l are as defined in Section 3.1.</p><p>Choice of &#8710; Predictive models deployed in the real world are often updated regularly to handle data distribution shifts <ref type="bibr">[22]</ref>. Since these models are updated regularly, it is likely that they undergo small (and not drastic) shifts each time they are updated. To capture this intuition, we consider the following two choices for the set of plausible model shifts &#8710;:</p><p>where p &#8805; 1. Note that perturbations &#948; &#8712; &#8710; can be considered as operations either on the parameter space or on the gradient space of M. While the first choice of &#8710; presented above allows us to restrict model shifts within a small range, the second choice allows us to restrict model shifts within a norm-ball. Alternate formulations of the first include incorporating domain knowledge to set &#948; min and &#948; max per feature. These kinds of shifts can effectively capture small changes to both parameters (e.g., weights of linear models) as well as gradients. Next, we describe how to optimize the objective in Eqn. 3 and construct robust recourses.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Optimizing Our Objective</head><p>While our objective function, the choice of &#8710;, and the perturbations &#948; &#8712; &#8710; we introduce in Section 3.2 are generic enough to handle shifts to both parameter space as well as the gradient space of any class of predictive models M, we solve our objective for a linear approximation f of M. The procedure that we outline here remains generalizable even for non-linear models because local behavior of a given non-linear model can be approximated well by fitting a local linear model <ref type="bibr">[25]</ref>. Note that such approximations have already been explored by existing algorithmic recourse methods <ref type="bibr">[26,</ref><ref type="bibr">23]</ref>. Let the linear approximation, which we denote by f be parameterized by w &#8712; W. We make this parametrization explicit by using a subscript notation: f w . We consider model shifts represented by perturbations to the model parameters w &#8712; W. In the case of linear models, these can be operationalized as additive perturbations &#948; &#8712; &#8710; to w. We will represent the resulting shifted classifier by f w+&#948; . Our objective function (Eqn. 3) can now be written in terms of this linear approximation f as:</p><p>Notice that the objective function defined in Equation 4 is similar to that of adversarial training <ref type="bibr">[19]</ref>. However, in our framework, the perturbations are applied to model parameters as opposed to data samples. These parallels help motivate the optimization procedure for constructing recourses that are robust to model shifts. We outline the optimization procedure that we leverage to optimize our minimax objective (Eqn. 4) in Algorithm 1.</p><p>Algorithm 1 proceeds in an iterative manner where we first find a perturbation &#948; &#8712; &#8710; that maximizes the chance of invalidating the current estimate of the recourse x , and then we take appropriate gradient steps on x to generate a valid recourse. This procedure is executed iteratively until the objective function value (Eqn. 4) converges.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1 Our Optimization Procedure</head><p>Input: x s.t. fw(x) = 0, fw, &#955; &gt; 0, &#8710;, learning rate &#945; &gt; 0. Initialize x = x, g = 0 repeat &#948; = arg max &#948;&#8712;&#8710; (f w+&#948; (x ), 1)</p><p>x -= &#945;g until convergence Return x</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Theoretical Analysis</head><p>Here we carry out theoretical analysis to shed light on the benefits of our framework ROAR. More specifically: 1) We quantify the probability that recourses generated without accounting for model shifts are likely to be invalidated. 2) We prove that the additional cost incurred due to the robust recourses output by our framework is bounded.</p><p>We first characterize how recourses that do not account for model shifts (i.e., recourses output by state-of-the-art algorithms) fare when true model shifts can be characterized as additive shifts to model parameters. Specifically, we quantify the likelihood that recourses generated without accounting for model shifts will be invalidated (even if they lie on the original data manifold), under certain conditions.</p><p>Theorem 1. For a given instance x &#8764; N (&#181;, &#931;), let x be the recourse that lies on the original data manifold (conditioned on the event that M(x ) &gt; 0.5) and is obtained without accounting for model shifts. Let &#931; = U DU T . Then, for some true model shift &#948;, such that, w T &#181; (w+&#948;) T &#181; &#8805; &#8730; DU w &#8730; DU (w+&#948;) , and</p><p>), for &#946; &#8805; 1, the probability that x is invalidated on</p><p>where erfc is the complementary gaussian error function.</p><p>Proof Sketch. Under the assumption that x &#8764; N (&#181;, &#931;), a recourse is invalid under a model shift if it is valid under the original model and invalid under the shifted model. This allows us to define the region where x can be invalidated:</p><p>The probability that x is invalidated can be obtained by integrating over &#8486; under the PDF of N (&#181;, &#931;).</p><p>We can then transform x and correspondingly &#8486;, to simplify this integration over a 1-dimensional Gaussian random variable. That is,</p><p>where</p><p>The above quantity can be represented as a difference in the Gaussian error function allowing us to exactly quantify the invalidation probability under our assumptions. Using the lower bounds on the complementary gaussian error function <ref type="bibr">[9]</ref> from Chang et al. <ref type="bibr">[5]</ref>, we obtain our lower bound. To derive the lower bound, we add an extra condition that 2e</p><p>), mainly to confirm that the lower bound on the first term still dominates the second term. Both conditions restricts the types of shift for which the bound can be derived. Note that &#946; can be optimized away to improve the lower bound. Detailed proof is provided in the Appendix. Discussion about other distributions (e.g., Bernoulli, Uniform, Categorical) is included in the Appendix.</p><p>Next we characterize how much more costly recourses can be when they are trained to be robust to model perturbations or model shifts. In the following theorem, we show that the cost of robust recourses is bounded relative to the cost of recourses that do not account for model shifts.</p><p>Theorem 2. Let x &#8712; X , and x &#8764; &#957; where &#957; is a distribution such that E &#957; [x] = &#181; &lt; &#8734;, where X is a metric space (X , d(&#8226;, &#8226;)) and d : X &#215; X &#8594; R + . Let d 2 and assume that (X , d) has bounded diameter D = sup x,x &#8712;X d(x, x ). Let recourses obtained without accounting for model shifts and constrained to the manifold be denoted by x &#8764; &#957;, and robust recourses be denoted by x . Let &#948; &gt; 0 be the shift that maximizes Eq. 3 for sample x corresponding to x . Further assume that the ROAR objective (Equation <ref type="formula">3</ref>) is convex in x for a fixed &#948;. For log (the cross-entropy loss), some 0 &lt; &#951; 1, w.h.p. (1 -&#951; ), we have that:</p><p>Proof Sketch. By definition, any recourse x generated without accounting for model shifts will have a higher loss for Equation 3 compared to the robust recourse x (note that finding the global minimizer is not guaranteed by Algorithm 1).</p><p>Using this insight, and convexity in x for fixed &#948;, we can bound the cost difference between the robust and non-robust recourse by a 1-Lipschitz function (i.e. the logistic function):</p><p>Assuming a bounded metric on X , we can upper bound the RHS using Lemma 2 from van Handel <ref type="bibr">[27]</ref> which gives us our bound. Detailed proof including special cases when &#957; is Gaussian, is provided in the Appendix.</p><p>This result suggests that the additional cost of recourse is bounded by the amount of shift admissible in Equation 3. Note that Theorem 2 applies for general distributions so long as the mean is finite, which is the case for most commonplace distributions like Gaussian, Bernoulli, Multinomial etc. While Theorem 1 demonstrates the probability that a recourse will be invalidated for Gaussian distributions, we refer the reader to the Appendix B.1 for a discussion of other distributions, e.g. Bernoulli, Uniform, Categorical.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Experiments</head><p>Here we discuss the detailed experimental evaluation of our framework, ROAR. First, we evaluate how robust the recourses generated by our framework are to model shifts caused by real world data distribution shifts. We also assess the validity of the recourses generated by our framework w.r.t. the original model, and further analyze the average cost of these recourses. Next, using synthetic data, we analyze how varying the degree (magnitude) of data distribution shift impacts the robustness and validity of the recourses output by our framework and other baselines.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Experimental Setup</head><p>Real world data We evaluate our framework on model shifts induced by real world data distribution shifts. To this end, we leverage three real world datasets which capture different kinds of data distribution shifts, namely, temporal shift, geospatial shift, and data correction shift <ref type="bibr">[24]</ref>. Our first dataset is the widely used and publicly available German credit dataset <ref type="bibr">[8]</ref> from the UCI repository. This dataset captures demographic (age, gender), personal (marital status), and financial (income, credit duration) details of about 1000 loan applicants. Each applicant is labeled as either a good customer or a bad customer depending on their credit risk. Two versions of this dataset have been released, with the second version incorporating corrections to coding errors in the first dataset <ref type="bibr">[11]</ref>. Accordingly, this dataset captures the data correction shift. Our second dataset is the Small Business Administration (SBA) case dataset <ref type="bibr">[17]</ref>. This dataset contains information pertaining to 2102 small business loans approved by the state of California during the years of 1989 -2012, and captures temporal shifts in the data. It comprises of about 24 features capturing various details of the small businesses including zip codes, business category (real estate vs. rental vs. leasing), number of jobs created, and financial status of the business. It also contains information about whether a business has defaulted on a loan or not which we consider as the class label. Our last dataset contains student performance records of 649 students from two Portuguese secondary schools, Gabriel Pereira (GP) and Mousinho da Silveira (MS) <ref type="bibr">[8,</ref><ref type="bibr">6]</ref>, and captures geospatial shift. It comprises of information about the academic background (grades, absences, access to internet, failures etc.) of each student along with other demographic attributes (age, gender). Each student is assigned a class label of above average or not depending on their final grade.  (ii) Variance shift: Here, we leverage the same generative process as above, but instead of shifting the mean, we shift the variance of the Gaussian distribution associated with class 0 i.e., i.e., x &#8764; N (&#181; y , &#931; y ) where &#931; 0 = (1 + &#946;)&#931; 0 and &#931; 1 = &#931; 1 for some increment &#946; &#8712; R. The net result here is that the intercept of the decision boundary of a linear model we fit to this shifted data changes (relative to the linear model fit on the original data), while the slope remains unchanged. Figure <ref type="figure">1c</ref> shows shifted data with &#946; = 3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Synthetic data</head><p>(ii) Mean and variance shift: Here, we change both the mean and variance of the Gaussian distribution associated with class 0 simultaneously (Figure <ref type="figure">1d</ref>). It can be seen that there are noticeable changes to both the slope and intercept of the decision boundary compared to Figure <ref type="figure">1a</ref>.</p><p>Predictive models We generate recourses for a variety of linear and non-linear models: deep neural networks (DNNs), SVMs, and logistic regression (LR). Here, we present results for a 3-layer DNN and LR; remaining results are included in the Appendix. Results presented here are representative of those for other model families.</p><p>Baselines We compare our framework, ROAR, to the following state-of-the-art baselines: (i) counterfactual explanations (CFE) framework outlined by Wachter et al. <ref type="bibr">[31]</ref>, (ii) actionable recourse (AR) in linear classification <ref type="bibr">[26]</ref>, and (iii) causal recourse framework (MINT) proposed by Karimi et al. <ref type="bibr">[14]</ref>. While CFE leverages gradient computations to find counterfactuals, AR employs a mixed integer programming based approach to find counterfactuals that are actionable. The MINT framework operates on top of existing approaches for finding nearby counterfactuals. We use the MINT framework on top of CFE and ROAR and refer to these two approaches as MINT and ROAR-MINT respectively. As the MINT framework requires access to the underlying causal graph, we experiment with MINT and ROAR-MINT only on the German credit dataset for which such a causal graph is available.</p><p>Cost functions Our framework, ROAR, and all the other baselines we use rely on a cost function c that measures the cost (or effort) required to act upon the prescribed recourse. Furthermore, our approach as well as several other baselines require the cost function to be differentiable. So, we consider two cost functions in our experimentation: 1 distance between the original instance and the counterfactual, and a cost function learned from pairwise feature comparison inputs (PFC) <ref type="bibr">[13,</ref><ref type="bibr">26,</ref><ref type="bibr">23]</ref>. PFC uses the Bradley-Terry model to map pairwise feature comparison inputs provided by end users to the cost required to act upon the prescribed recourse for any given instance x. For more details on this cost function, please refer to Rawal and Lakkaraju <ref type="bibr">[23]</ref>. In our experiments, we follow the same procedure as Rawal and Lakkaraju <ref type="bibr">[23]</ref> and simulate the pairwise feature comparison inputs.</p><p>Setting and implementation details We partition each of our synthetic and real world datasets into two parts: initial data (D 1 ) and shifted data (D 2 ). In the case of real world datasets, D 1 and D 2 can be logically inferred from the data itself -e.g., in case of the German credit dataset, we consider the initial version of the dataset as D 1 and the corrected version of the dataset as D 2 . In the case of synthetic datasets, we generate D 1 and D 2 as described earlier where D 2 is generated by shifting D 1 (See "Synthetic data" in Section 5.1).</p><p>We use 5-fold cross validation throughout our real world and synthetic experiments. On D 1 , we use 4 folds to train predictive models and the remaining fold to generate and evaluate recourses. We repeat this process 5 times and report averaged values of our evaluation metrics. We leverage D 2 only to train the shifted models M 2 . More details about the data splits, model training, and performance of the predictive models are included in the Appendix.</p><p>We use binary cross entropy loss and the Adam optimizer to operationalize our framework, ROAR. Our framework, ROAR, has the following parameters: the set of acceptable perturbations &#8710; (defined in practice by &#948; max ) and the tradeoff parameter &#955;. In our experiments on evaluating robustness to real world shifts, we choose &#948; max = 0.1 given that continuous features are scaled to zero mean and unit variance. Furthermore, in each setting, we choose the &#955; that maximizes the recourse validity of M 1 (more details in Section 5.1 "Metrics" and Appendix). In case of our synthetic experiments where we assess the impact of the degree (magnitude) of data distribution shift, features are not normalized, so we do a grid search for both &#948; max and &#955;. First, we choose the largest &#948; max that maximizes the recourse validity of M 1 and then set &#955; in a similar fashion (more details in Appendix). We set the parameters of the baselines using techniques discussed in the original works <ref type="bibr">[31,</ref><ref type="bibr">14,</ref><ref type="bibr">26]</ref> and employ a similar grid search approach if unspecified.</p><p>Following the precedents set forth in <ref type="bibr">[26]</ref> and <ref type="bibr">[23]</ref>, we adapt AR and ROAR to non-linear models by first generating local linear approximations of these models using LIME <ref type="bibr">[25]</ref>. We refer to these variants as AR-LIME and ROAR-LIME respectively.</p><p>Metrics. We consider two metrics in our evaluation: 1) Avg Cost is defined as the average cost incurred to act upon the prescribed recourses where the average is computed over all the instances for which a given algorithm provides recourse. Recall that we consider two notions of cost in our experiments -1 distance between the original instance and the counterfactual, costs learned from pairwise feature comparisons (PFC) (See "Cost Functions" in Section 5.1). 2) Validity is defined as the fraction of instances for which acting upon the prescribed recourse results in the desired prediction. Note that validity is computed w.r.t. a given model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Robustness to real world shifts</head><p>Here, we evaluate the robustness of the recourses output by our framework, ROAR, as well as the baselines. A recourse finding algorithm can be considered robust if the recourses output by the algorithm remain valid even if the underlying model has changed. To evaluate this, we first leverage our approach and other baselines to find recourses of instances in our test sets w.r.t. the initial model M 1 . We then compute the validity of these recourses w.r.t. the shifted model M 2 which has been trained on the shifted data. Let us refer to this as M 2 validity. The higher the value of M 2 validity, the more robust the recourse finding method. We also assess if the robustness achieved by our framework is coming at a cost i.e., by sacrificing validity on the original model or by increasing avg cost. Table <ref type="table">1</ref> shows the results for the same. It can be seen that ROAR based recourses achieve higher than 95% M 1 validity in all but two settings. We compute the avg cost of the recourses output by all the algorithms on various datasets and find that ROAR typically has a higher avg cost (both under 1 and PFC cost functions) compared to CFE and AR baselines. As demonstrated through additional experiments in the Appendix, these relatively higher costs are expected given our Theorem 2 upper bound on ROAR cost. However, overall, MINT and ROAR-MINT seem to exhibit the highest avg costs and are the worst performing algorithms according to this metric. Since non-causal recourse methods assume independent features, and do not have to adhere to the underlying causal structure when finding counterfactuals, they can generate relatively lower cost counterfactuals even if those counterfactuals may not correspond to realistic data instances. This is likely one of the key reasons why we observe higher average costs in the causal recourse methods. Here, we assess how different kinds of distribution shifts and the magnitude of these shifts impact the robustness of recourses output by our framework and other baselines. To this end, we leverage our synthetic datasets and introduce mean shifts, variance shifts, and combination shifts (both mean and variance shifts) of different magnitudes by varying &#945; and &#946; (See "Synthetic data" in Section 5.1). We then leverage these different kinds of shifted datasets to construct shifted models and then assess the validity of the recourses output by our framework and other baselines w.r.t. the shifted models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Impact of the degree of data distribution shift on recourses</head><p>We generate recourses using our framework and baselines CFE and AR for different predictive models (LR, DNN) and cost functions ( 1 distance, PFC). Figure <ref type="figure">2</ref> captures the results of this experiment for DNN model both with 1 distance and PFC cost functions. Results with other models are included in the Appendix. It can be seen that the x-axis of each of these plots captures the magnitude of the dataset shift, and the y-axis captures the validity of the recourses w.r.t. the corresponding shifted model. Standard error bars obtained by averaging the results over 5 runs are also shown.</p><p>It can be seen that as the magnitude of the distribution shift increases, validity of the recourses generated by all the methods starts dropping. This trend prevailed across mean, variance, and combination (mean and variance) shifts. It can also be seen that the rate at which validity of the recourses generated by our method, ROAR-LIME, drops is much smaller compared to that of other baselines CFE and AR-LIME. Furthermore, our method exhibits the highest validity compared to the baselines as the magnitude of the distribution shift increases. CFE seems to be the worst performing baseline and the validity of the recourses generated by CFE drops very sharply even at small magnitudes of distribution shifts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusions &amp; Future Work</head><p>We proposed a novel framework, RObust Algorithmic Recourse (ROAR), to address the critical but under-explored issue of recourse robustness to model updates. To this end, we introduced a novel minimax objective to generate recourses that are robust to model shifts, and leveraged adversarial training to optimize this objective. We also presented novel theoretical results which demonstrate that recourses without accounting for model shifts are likely to be invalidated, underscoring the necessity of ROAR. Furthermore, we also showed that the additional cost incurred by robust recourses generated by ROAR are bounded. Extensive experimentation with real world and synthetic datasets demonstrated that recourses using ROAR are highly robust to model shifts induced by a range of data distribution shifts. Our work also paves the way for further research into techniques for generating robust recourses. For instance, it would be valuable to further analyze the tradeoff between recourse robustness and cost to better understand the impacts to affected individuals. Other interesting future directions include non-linear extensions that leverage novel local linear approximation methods that improve on LIME <ref type="bibr">[33]</ref>.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>Note that counterfactual explanations<ref type="bibr">[31]</ref>, contrastive explanations<ref type="bibr">[13]</ref>, and recourse<ref type="bibr">[26]</ref> are used interchangeably in prior literature. Counterfactual/contrastive explanations serve as a means to provide recourse to individuals with unfavorable algorithmic decisions. We use these terms interchangeably to refer to the notion introduced and defined by Wachter et al.<ref type="bibr">[31]</ref> </p></note>
		</body>
		</text>
</TEI>
