Skip to content

Commit 4e59dd5

Browse files
committed
Arie's final round of comments
1 parent 41bec11 commit 4e59dd5

8 files changed

Lines changed: 72 additions & 59 deletions

File tree

paper/_bookdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language:
2+
label:
3+
prp: 'Research Question '

paper/paper.pdf

1.29 KB
Binary file not shown.

paper/paper.tex

Lines changed: 34 additions & 40 deletions
Large diffs are not rendered by default.

paper/sections/empirical_2.rmd

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
# Experiments {#empirical-2}
22

3-
Using the framework introduced in the previous section we are interested in answering the following research questions in this section:
4-
5-
- Does the repeated implementation of recourse provided by state-of-the-art generators lead to shifts in the domain and model?
6-
- If so, are any of these dynamics substantial enough to be considered costly to any of the stakeholders involved in real-world automated decision-making processes?
7-
- Do different counterfactual generators yield significantly different outcomes in this context? Furthermore, is there any heterogeneity with respect to the chosen classifier and dataset?
8-
- What seem to be drivers of endogenous dynamics in Algorithmic Recourse?
9-
103
Below we first present our main experimental findings regarding these questions. We conclude this section with a brief recap providing answers to all of these questions.
114

125
## Endogenous Macrodynamics
136

14-
We start this section off with a few high-level observations. Across all datasets (synthetic and real), classifiers and counterfactual generators we observe either most or all of the following dynamics at varying degrees:
7+
We start this section off with the key high-level observations. Across all datasets (synthetic and real), classifiers and counterfactual generators we observe either most or all of the following dynamics at varying degrees:
158

169
- Statistically significant domain and model shift as measured by MMD.
1710
- A deterioration in out-of-sample model performance as measured by the F-Score evaluated on a test sample. In many cases this drop in performance is substantial.
@@ -52,5 +45,5 @@ Out-of-sample model performance also deteriorates across the board and substanti
5245
knitr::include_graphics("www/real_world_results.png")
5346
```
5447

55-
To recap, we can answer our research questions as follows: firstly, endogenous dynamics do emerge in our experiments and we find them substantial enough to be considered costly; secondly, the choice of the counterfactual generator does matter, with Latent Space search generally having a dampening effect. The observed dynamics therefore seem to be driven by a discrepancy between counterfactual outcomes that minimize costs to the individual and outcomes that comply with the data generating process.
48+
To recap, we can answer our research questions as follows: firstly, endogenous dynamics do emerge in our experiments (RQ \@ref(prp:shifts)) and we find them substantial enough to be considered costly (RQ \@ref(prp:costs)); secondly, the choice of the counterfactual generator does matter, with Latent Space search generally having a dampening effect (RQ \@ref(prp:het)). The observed dynamics therefore seem to be driven by a discrepancy between counterfactual outcomes that minimize costs to the individual and outcomes that comply with the data generating process (RQ \@ref(prp:drive)).
5649

paper/sections/introduction.rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ Suppose Figure \@ref(fig:poc) relates to an automated decision-making system use
2626

2727
Both of these examples are exaggerated simplifications of potential real-world scenarios, but they serve to illustrate the point that recourse for one single individual may exert negative externalities on other individuals.
2828

29-
To the best of our knowledge this is the first work investigating endogenous macrodynamics in AR. Our contributions to the state of knowledge are as follows: firstly, we posit a compelling argument that calls for a novel perspective on Algorithmic Recourse extending our focus from single individuals to groups. Secondly, we introduce an experimental framework extending previous work by @altmeyer2022CounterfactualExplanations, which enables us to study macrodynamics of Algorithmic Recourse through simulations that can be fully parallelized. Thirdly, we use this framework to provide a first in-depth analysis of endogenous recourse dynamics induced by various popular counterfactual generators including @wachter2017counterfactual, @schut2021generating, @joshi2019towards, @mothilal2020explaining and @antoran2020getting. To this end we propose a number of novel evaluation metrics that can be used to quantify and benchmark the macrodynamics introduced by the different generators. Finally, we also discuss what drives endogenous dynamics and propose strategies to mitigate them.
30-
31-
The remainder of the paper is structured as follows: Section \@ref(related) places our work in the broader context of related literature. Section \@ref(method) posits a generalized framework for gradient-based Algorithmic Recourse and introduces the notion of hidden external costs. Section \@ref(method-2) sets out our experimental framework for modeling endogenous macrodynamics in AR. Section \@ref(empirical) presents our experimental setup, including the data, classifiers and counterfactual generators that we have employed. Section \@ref(empirical-2) presents the results for synthetic and real-world datasets along with evidence for the effectiveness of various proposed mitigation strategies. Our findings are then discussed in the broader context of the literature in Section \@ref(discussion), before pointing to some of the limitations of our work as well as avenues for future research in Section \@ref(limit). Finally, Section \@ref(conclusion) concludes.
29+
To the best of our knowledge this is the first work investigating endogenous macrodynamics in AR. Our contributions to the state of knowledge are as follows: firstly, we posit a compelling argument that calls for a novel perspective on Algorithmic Recourse extending our focus from single individuals to groups (Section \@ref(related) and \@ref(method)). Secondly, we introduce an experimental framework extending previous work by @altmeyer2022CounterfactualExplanations, which enables us to study macrodynamics of Algorithmic Recourse through simulations that can be fully parallelized (\@ref(method-2)). Thirdly, we use this framework to provide a first in-depth analysis of endogenous recourse dynamics induced by various popular counterfactual generators including @wachter2017counterfactual, @schut2021generating, @joshi2019towards, @mothilal2020explaining and @antoran2020getting (\@ref(empirical) and \@ref(empirical-2)). Fourthly, given that we find substantial impact of recourse, we propose key mitigation strategies and measure their impact experimentally (Section \@ref(mitigate)). Finally, we discuss our findings in the broader context of the literature in Section \@ref(discussion), before pointing to some of the limitations of our work as well as avenues for future research in Section \@ref(limit). Section \@ref(conclusion) concludes.
3230

paper/sections/methodology_2.rmd

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Modeling Endogenous Macrodynamics in Algorithmic Recourse {#method-2}
22

3-
In the following we describe the framework we propose for modeling and analysing endogenous macrodynamics in Algorithmic Recourse. We first describe the basic simulations that were generated to produce the findings in this work and also constitute the core of [`AlgorithmicRecourseDynamics.jl`](https://anonymous.4open.science/r/AlgorithmicRecourseDynamics/README.md) - the Julia package we introduced earlier. The remainder of this section then introduces various evaluation metrics that can be used to benchmark different counterfactual generators with respect to how they perform in the dynamic setting.
3+
In the following we describe the framework we propose for modeling and analysing endogenous macrodynamics in Algorithmic Recourse. We introduce this framework with the ambition to shed light on the following research questions:
4+
5+
::: {.proposition #shifts name="Endogenous Shifts"}
6+
Does the repeated implementation of recourse provided by state-of-the-art generators lead to shifts in the domain and model?
7+
:::
8+
9+
::: {.proposition #costs name="Costs"}
10+
If so, are any of these dynamics substantial enough to be considered costly to any of the stakeholders involved in real-world automated decision-making processes?
11+
:::
12+
13+
::: {.proposition #het name="Heterogeneity"}
14+
Do different counterfactual generators yield significantly different outcomes in this context? Furthermore, is there any heterogeneity with respect to the chosen classifier and dataset?
15+
:::
16+
17+
::: {.proposition #drive name="Drivers"}
18+
What are drivers of endogenous dynamics in Algorithmic Recourse?
19+
:::
20+
21+
Below we first describe the basic simulations that were generated to produce the findings in this work and also constitute the core of [`AlgorithmicRecourseDynamics.jl`](https://anonymous.4open.science/r/AlgorithmicRecourseDynamics/README.md) - the Julia package we introduced earlier. The remainder of this section then introduces various evaluation metrics that can be used to benchmark different counterfactual generators with respect to how they perform in the dynamic setting.
422

523
## Simulations {#method-2-experiment}
624

paper/sections/mitigation.rmd

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
# Potential Mitigation Strategies {#mitigate}
1+
# Mitigation Strategies and Experiments {#mitigate}
22

3-
Having established in the previous section that endogenous macrodynamics in AR are substantial enough to warrant our attention, in this section we introduce and test a number of potential mitigation strategies. All of them essentially boil down to one simple principle: to avoid substantial domain and model shifts, the generated counterfactuals should comply as much as possible with the true data generating process. This principle is really at the core of Latent Space generators, and hence it is not surprising that we have found these types of generators to perform comparably well in the previous section. But as we have mentioned earlier, generators that rely on separate generative models carry an additional computational burden and - perhaps more importantly - their performance hinges on the performance of said generative models. Fortunately, it turns out that we can use a number of other, much simpler strategies, which we will discuss now.
3+
Having established in the previous section that endogenous macrodynamics in AR are substantial enough to warrant our attention, in this section we ask ourselves:
4+
5+
::: {.proposition #mitigate name="Mitigation Strategies"}
6+
What are potential mitigation strategies with respect to endogenous macrodynamics in AR?
7+
:::
8+
9+
We proposed and test a number of simple mitigation strategies. All of them essentially boil down to one simple principle: to avoid substantial domain and model shifts, the generated counterfactuals should comply as much as possible with the true data generating process. This principle is really at the core of Latent Space generators, and hence it is not surprising that we have found these types of generators to perform comparably well in the previous section. But as we have mentioned earlier, generators that rely on separate generative models carry an additional computational burden and - perhaps more importantly - their performance hinges on the performance of said generative models. Fortunately, it turns out that we can use a number of other, much simpler strategies, which we will discuss now.
410

511
## More Conservative Decision Thresholds
612

7-
The most obvious and trivial mitigation strategy is to simply choose a higher decision threshold $\gamma$. This threshold determines when a proposed counterfactual should be considered as valid. Under $\gamma=0.5$, counterfactuals will end up near the decision boundary by construction. Since this is the region of maximal aleotoric uncertainty, the classifier is bound to be thrown off. By simply setting a more conservative decision threshold, we can avoid this issue to some extent. A potential drawback of this approach is that a classifier with high decisiveness may classify samples with high confidence even far away from the training data.
13+
The most obvious and trivial mitigation strategy is to simply choose a higher decision threshold $\gamma$. This threshold determines when a proposed counterfactual should be considered as valid. Under $\gamma=0.5$, counterfactuals will end up near the decision boundary by construction. Since this is the region of maximal aleotoric uncertainty, the classifier is bound to be thrown off. By simply setting a more conservative decision threshold, we can avoid this issue to some extent. A drawback of this approach is that a classifier with high decisiveness may classify samples with high confidence even far away from the training data.
814

915
## Classifier Preserving ROAR
1016

11-
Another potential strategy draws inspiration from ROAR @upadhyay2021towards: to preserve the classifier, we propose to simply explicitly penalize the loss it incurs when evaluated on the counterfactual $x^\prime$ at given parameter values. Recall that $\text{extcost}(\cdot)$ denotes what we had defined as the external cost in Equation \@ref(eq:collective). Then formally we let
17+
Another strategy draws inspiration from ROAR @upadhyay2021towards: to preserve the classifier, we propose to simply explicitly penalize the loss it incurs when evaluated on the counterfactual $x^\prime$ at given parameter values. Recall that $\text{extcost}(\cdot)$ denotes what we had defined as the external cost in Equation \@ref(eq:collective). Then formally we let
1218

1319
\begin{equation}
1420
\begin{aligned}
@@ -28,7 +34,7 @@ Yet another strategy simply extends Wachter as follows: instead of only penalizi
2834
\end{aligned}
2935
\end{equation}
3036

31-
Once again we can putting this in the context of Equation \@ref(eq:collective), the former penalty can be thought of here as the private cost incurred by the individual, while the latter reflects the external cost incurred by other individuals. Higher choices of $\lambda_2$ relative to $\lambda_1$ will lead counterfactuals to gravitate towards the specified point $\bar{x}$ in the target domain. In the remainder of this paper we will therefore refer to this approach as **Gravitational** generator, when we investigate its potential usefulness for mitigating endongenous macrodynamics^[Note that despite the naming convention our goal here is not to provide yet another counterfactual generator, but merely investigate the most simple penalty we can think of with respect to its effectiveness.].
37+
Once again we can putting this in the context of Equation \@ref(eq:collective), the former penalty can be thought of here as the private cost incurred by the individual, while the latter reflects the external cost incurred by other individuals. Higher choices of $\lambda_2$ relative to $\lambda_1$ will lead counterfactuals to gravitate towards the specified point $\bar{x}$ in the target domain. In the remainder of this paper we will therefore refer to this approach as **Gravitational** generator, when we investigate its usefulness for mitigating endongenous macrodynamics^[Note that despite the naming convention our goal here is not to provide yet another counterfactual generator, but merely investigate the most simple penalty we can think of with respect to its effectiveness.].
3238

3339
Figure \@ref(fig:mitigation) shows an illustrative example that demonstrates the differences in counterfactual outcomes when using the various mitigation strategies compared to the baseline approach, that is Wachter with $\gamma=0.5$: choosing a higher decision threshold pushes the counterfactual a little further into the target domain; this effect is even stronger for ClapROAR; finally, using the Gravitational generator the counterfactual ends up all the way inside the target domain in the neighbourhood of $\bar{x}$^[In order for the Gravitational generator and ClapROAR to work as expected, one needs to ensure that counterfactual search continues, independent of the threshold probability $\gamma$.].
3440

paper/sections/related.rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Many approaches for the generation of Algorithmic Recourse have been described i
2222

2323
Efforts so far have largely been directed at improving the quality of Counterfactual Explanations within a static context: given some pre-trained classifier $M: \mathcal{X} \mapsto \mathcal{Y}$, we are interested in generating one or multiple meaningful Counterfactual Explanations for some individual characterized by $x$. The ability of Counterfactual Explanations to handle dynamics like data and model shifts remains a largely unexplored research challenge at this point [@verma2020counterfactual]. We have been able to identify only one recent work that considers the implications of **exogenous** domain and model shifts in the context of AR [@upadhyay2021towards]. Exogenous shifts are strictly of external origin. For example, they might stem from data correction, temporal shifts or geospatial changes [@upadhyay2021towards]. The authors of [@upadhyay2021towards] propose ROAR - a framework for Algorithmic Recourse that evidently improves robustness to such exogenous shifts.
2424

25-
As mentioned earlier, research has so far also generally focused on generating counterfactuals for single individuals or instances. We have been able to identify only one existing work that investigates black-box model behavior towards a group of individuals [@carrizosa2021generating]. The authors propose an optimization framework that generates collective counterfactuals. We provide a motivation for doing so from the perspective of endogenous macrodynamics of Algorithmic Recourse.
25+
As mentioned earlier, research has so far also generally focused on generating counterfactuals for single individuals or instances. We have been able to identify only one existing work that investigates black-box model behavior towards a group of individuals [@carrizosa2021generating]. The authors propose an optimization framework that generates collective counterfactuals. We provide a motivation for doing so from the perspective of endogenous macrodynamics of Algorithmic Recourse.
26+
2627

2728
## Domain and Model Shifts {#related-shifts}
2829

0 commit comments

Comments
 (0)