Manuscript Offprint
arXiv:2610.36580Follow the Herd: A Data-Driven Approach for Actionable Recourse
Abstract
As machine learning systems make increasingly greater decisions about people's lives, it is critical to provide users with actionable recourse about how they can achieve their desired outcomes. This problem is currently tackled by relying on expensive human supervision which involves hand-designing a cost function before searching for low-cost actions that achieve the desired outcome. In this paper, we propose "Data-Driven Action Recourse" (DDAR), the first approach for providing action recourse without requiring costly supervision from humans about action costs. We build upon the notion that highly likely trajectories in the historical user data should be associated with lower costs. With this, DDAR first builds a dynamics model of historical user trajectories. Under this model, it then searches for trajectories that achieve the desired outcome. In experiments, we find that this simple approach recommends plausible action recourse without requiring human supervision, achieving lower action costs than the existing approaches.
Introduction
Machine Learning systems are widely adopted in decision-making applications such as criminal justice, loan approval, and healthcare. It is often required to provide the users of these models with a recourse in the case of an unfavorable outcome. For instance, if a user seeking a loan gets her application rejected, she would need a plausible recourse that helps her get the loan application accepted. Therefore, providing plausible and actionable recourse is critical in such scenarios.
The closest line of work pursuing this is that of action recourse (Wachter, Mittelstadt, and Russell 2017; Mothilal, Sharma, and Tan 2020; Ustun, Spangher, and Liu 2019). Broadly, in this line of work, we are given a decision model and a cost function that evaluates how costly an action is. Then, the action recourse problem is formulated as a constrained optimization problem where, given a user state, the aim is to perturb the input state in order to cross the decision boundary of the given decision model to achieve the desired outcome while also incurring the lowest cost to the user during perturbation.
The existing works that focus on generating actionable recourse (Ustun, Spangher, and Liu 2019; Rawal and Lakkaraju 2020) rely on human supervision. For example, specifying which attributes are mutable (e.g., income) and which attributes are not (e.g., gender or race) is done by a human—either explicitly as a constraint or implicitly via a cost function. Furthermore, there may be an available recourse which, although actionable, might be less typical or commonly associated with high cost. This kind of common-sense knowledge needs significant human effort to incorporate into the cost functions of existing action recourse approaches. On the other hand, many domain-specific constraints and common-sense knowledge can be automatically derived from the historical data. To the best of our knowledge, no prior work has tackled the question of how to acquire the cost associated with actions in an unsupervised manner from data.
In this work, we propose a framework called “Data-Driven Action Recourse” (DDAR), the first action recourse framework that learns a notion of plausibility in a data-driven manner. This framework does not require any human supervision. We implement this using a diffusion model trained on historical logs of user trajectories to predict future user states given the current state. Given the trained diffusion model, we generate possible recourse trajectories that are actionable and have low cost for the user. We sample the next possible recourse so that the recommended user state achieves the desired outcome with respect to the decision-making system, but crucially, this process is guided by a dynamics model of user trajectories.
The contributions of this paper are as follows: 1) We introduce DDAR, the first data-driven action recourse framework that learns to generate recourse by acquiring the underlying data distribution and its characteristics, 2) In experiments, we demonstrate that DDAR outperforms the baselines significantly in various metrics. That is, we show that our generated recourse are low-cost and exhibit high recourse rate as compared to baselines. 3) We further extend this framework to generate a K-step recourse.
Action Recourse Problem. In action recourse problem, the aim is to take the previous user state and recommend a next user state x which minimizes the cost that the user
*Nishtha Madaan is a researcher at IBM Research and this work was done as a part of PhD research at IIT Delhi.

Wachter et al. (2017)

Madaan et al. (2023)

Ours
Figure 1: Overview. In this figure, we illustrate the space of user states. The intensity of blue illustrates how likely the user state is in the population. The grey arrows denote the most likely course or direction that users pursue at the given user state. We equate the most likely direction with the direction of a low-cost recourse. The shaded green area denotes the region of state space that achieves the desired outcome from the decision-making system. Left: We illustrate that the original formulation of Wachter et al. (Wachter, Mittelstadt, and Russell 2017) aims only for the nearest recourse, disregarding the actionability and cost of the recourse. Center: We illustrate that although the formulation of Madaan et al. (Madaan and Bedathur 2024) emphasizes plausibility when recommending recourse, however, it ignores the cost to the user performing the recourse. Right: In contrast to both these previous paradigms, our framework takes into account the recourse cost conditioned on the current state of the individual when recommending a recourse. Furthermore, the notion of the recourse cost is acquired in a data-driven manner without relying on costly human supervision.
incurs while also crossing the decision boundary. Formally, the action recourse problem may be described as:
where f is a decision model and is the desired label that the user seeks from the decision model f.
A Data-Driven Cost Function. It is a challenge to know what the cost function is. Currently, it requires an expensive manual process to define it which is not ideal. Therefore, it is desirable to acquire the cost function in a data-driven manner. We look at the aggregate behavior of users in a similar situation and build upon the notion that the most likely next states would be those that correspond to the low cost actions (von Neumann and Morgenstern 2007). This allows us to approximate the cost function as follows:
where, is the probability of the next user state x given the current user state with respect to the observational user trajectory data.
DDAR Objective. With this, we obtain our novel and proposed formulation of the data-driven action recourse problem:
User Model. We shall refer to the model as the user model. We assume that this user model is capable of generating samples and evaluating the density depending on the specifics of the optimization approach used to solve the DDAR objective.
Achieving Desired Outcome. The constraint in the DDAR objective is about whether x has achieved the desired label or not. This constraint can be equivalently expressed as a score or a reward function i.e., a higher score or reward points to the higher likelihood of crossing the decision boundary.
Optimization Approach. In our general framework, one is free to employ any optimization approach (Garey and Johnson 1979; Metropolis et al. 1953; Geman and Geman 1984; Browne et al. 2012; Kocsis and Szepesvári 2006; Rubinstein 1999) given the user model, decision model, and a score function. A naive optimization approach to solve the action recourse problem can consist of the following steps: 1) sample several possible future trajectories from the user model given the current user state, 2) score each trajectory and 3) rank the trajectories and select those that achieve the desired label, and output them as a viable recourse.
Conditional Guided Diffusion for DDAR
In this section, we describe our proposed approach to implement the DDAR framework. Our implementation rests on two key design choices: (1) We implement our user model via a diffusion model. Diffusion modeling via DDPM (Ho, Jain, and Abbeel 2020) has been shown to be an effective yet simple approach for modeling complex distributions. (2) We optimize for the score function by adopting a common approach called guided-diffusion given the trained diffusion model. We now describe our approach in detail.
Encoder
The encoder Encoder maps the raw user state to a latent representation. We assume that the user state at time is provided as a -sized tuple of integers i.e., . For instance, if the dataset is tabular and the user state at a certain year is given as a row in the table with columns, then, we can quantize each cell to an integer. Then for each , we maintain a learned embedding dictionary that maps the integer value to an -sized embedding. By applying embedding dictionaries to the items in the tuple, we get an encoding of the user state as follows:
Conditional Diffusion as the User Model
Via diffusion modeling, we seek to learn a distribution that takes a current user state and predicts

Figure 2: Architecture. In DDAR, the input user state is first encoded and then passed to a denoising diffusion model to produce a recourse embedding that is decoded to produce the final recourse. Crucially, the denoising iterations are intercepted by a gradient-update step with respect to the decision model, to guide the denoising process towards achieving the desired label.
the next user state . With diffusion modeling, the distribution shall consist of denoising steps, with each denoising step formulated as:
Here, is a standard Gaussian, the sequence consists of iteratively cleaner samples, which finally produce the desired sample . We will use and interchangeably as they refer to the same variable. The is a one-step denoising distribution parameterized as , where , and the coefficients and . Employing standard notations, we utilize a variance schedule , where , and . We use a cosine schedule in our implementation.
Implementing the Denoiser. We implement the denoising predictive mean as a transformer. Specifically, we first concatenate and followed by adding learned positional embeddings and step-embeddings representing . The result is provided as input to the transformer followed by an 2-layer MLP to obtain the denoised prediction. We use a 12-layer transformer with hidden size 768 and 12 heads.
Training Objective. Following DDPM, the training procedure involves first introducing noise to the input , creating its noisy version i.e., , where . Subsequently, the denoiser is trained that takes as input and aims to predict the original input by generating a prediction . The learning objective is where is an error function. As our error function, we use a cross-entropy loss with respect to clean categorical labels corresponding to . We found this superior to the more conventional L2 loss.
Recourse Generation
To generate recourse, we perform guided diffusion by adding an additional guiding term at each denoising step. Here, is the gradient of the guiding loss with respect to , and is the desired decision label. In this work, we define the guiding loss as follows: , where CE denotes cross-entropy.
Datasets
We evaluate the effectiveness of our approach on 3 datasets: LoanSynth dataset, GradSynth dataset and AdultIncome++. Here, LoanSynth and GradSynth are synthetic datasets while AdultIncome++ is a semi-realistic dataset.
LoanSynth Dataset
In LoanSynth dataset, a user trajectory is a table with columns such as age, education level, occupation, cashflow, bank balance, lifestyle, credit score, cars owned, weight, race, gender, and a label column with respect to a decision-maker about whether the loan was approved for this user or not. Each row corresponds to a time step or a year in the life of this user. Therefore, as we go down from the top row to the bottom row of the table, we can see the evolution of the state-of-the-user over time. We provide 30 rows or 30 years' worth of trajectory per user.
To generate the data, we define an initial distribution of the user state and causal dynamics for the evolution of the user state. For more details about these definitions, see Appendix. For an example of this dataset, see Table 1.
GradSynth: A Synthetic Dataset for Graduate School Applications
In GradSynth dataset, a user trajectory is a sequence of rows where the fields describe a student's state as they apply for college admissions: 1) the tier of their previous college, 2) GPA, 3) GRE, 4) work experience, 5) number of recommendation letters, 6) quality of their SOP, and 7) gender and a label column that specifies whether the user or the student was admitted to a graduate school or not. As we go down the rows of the table, the state of the user evolves. We provide 5 rows of trajectory per user. For a sample of this dataset, see Table 2.
Adult Income ++ Benchmark
In Adult Income++ dataset, a user trajectory is a table with the following columns about an adult: 1) age, 2) workclass, 3) fnlwgt, 4) education, 5) marital-status, 6) occupation, 7) relationship, 8) race, 8) sex, 10) capital-gain, 11) capital-loss, 12) hours-per-week, 13) native-country, and a label column that specifies if the income is above > 50K or = < 50K. As we go down the rows, state of the user evolves. We provide 4 rows of trajectory per user. For an example, see Table 3.
Table 1: LoanSynth Dataset Example. We provide a sample trajectory of a user in our proposed synthetic LoanSynth dataset. Each row corresponds to a year in the user's life. Each column corresponds to an attribute of the user state. The last column corresponds to the decision-maker's label about whether this user would be approved for a loan or not.
| t | Age | Edu | Occupation | Cash | Bank Bal | Life | Cred | Wt | Race | Sex | Label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 18 | 0 | stud_bachelor | 1 | -58K | -57K | L | 300 | 46.05 | C | M | Loan Denied |
| 1 | 19 | 0 | stud_bachelor | 2 | -59K | -116K | L | 300 | 44.12 | C | M | Loan Denied |
| 2 | 20 | 0 | stud_bachelor | 3 | -57K | -174K | L | 300 | 43.57 | C | M | Loan Denied |
| 3 | 21 | 1 | engineer | 0 | 37K | -136K | T | 300 | 41.68 | C | M | Loan Denied |
| 4 | 22 | 1 | engineer | 1 | 38K | -97K | T | 300 | 40.52 | C | M | Loan Denied |
| 5 | 23 | 1 | engineer | 2 | 42K | -55K | T | 300 | 42.31 | C | M | Loan Denied |
Table 2: GradSynth Dataset Example. We provide a sample trajectory (with t as the time index) of a user in the GradSynth dataset. Each column corresponds to an attribute of the user state. The teal-colored columns are those that can be directly intervened upon by the user. The last column corresponds to the label about whether this user would be admitted to college or not.
| t | Attempt | College | GPA | GRE Score | #Exp | #LORs | SOP | Gender | Label |
|---|---|---|---|---|---|---|---|---|---|
| 0 | Tier-3 | 3.0 | Good | 2 | 0 | Good | Female | Not Admitted | |
| 1 | Tier-3 | 3.0 | Good | 3 | 1 | Poor | Female | Not Admitted | |
| 2 | Tier-3 | 3.0 | Good | 3 | 1 | Good | Female | Not Admitted | |
| 3 | Tier-3 | 3.0 | Good | 3 | 1 | Good | Female | Not Admitted | |
| 4 | Tier-3 | 3.0 | Good | 3 | 1 | Excellent | Female | Admitted |
Related Work
Action Recourse. Several works have pursued the problem of action recourse (Ustun, Spangher, and Liu 2019; Karimi et al. 2020b; Karimi, Schölkopf, and Valera 2021; Dhurandhar et al. 2018; Rasouli and Yu 2024; Verma et al. 2024; Jiang et al. 2024; Tominaga, Yamashita, and Kurashima 2024; De Toni et al. 2024; Yetukuri, Hardy, and Liu 2023; Esfahani et al. 2024; Koh, Kim, and Jo 2024; Wang et al. 2023; Kancheti et al. 2025). However, to our knowledge, none of the existing methods acquire a notion of cost associated to an action in a data-driven manner. Although there are several methods about counterfactual explanations (Wachter, Mittelstadt, and Russell 2017; Mothilal, Sharma, and Tan 2020; Gomez et al. 2020; Poyiadzi et al. 2020; Madaan and Bedathur 2024; Hashemi and Fathi 2020). Although some have incentives to maintain proximity or diversity (Cui et al. 2015; Karimi et al. 2020a; Ustun, Spangher, and Liu 2019; Rawal and Lakkaraju 2020; Kanamori et al. 2020), none of them incorporate an explicit notion of cost to the user. Another line of works tackles the issue of robustness of the generated recourse or explanations (Hamman et al. 2023; Maragno et al. 2023; Guyomard et al. 2023; Jiang et al. 2023; Leofante and Potyka 2023; Kayastha, Gkatzelis, and Jabbari 2026), including dealing with corrupted data (Kanamori et al. 2023). However, this is orthogonal to our focus. Future works may bring together our approach of data-driven recourse and the advances in robustness of action recourse.
Diffusion in Tabular Data. There has been recent literature leveraging diffusion models for performing certain tasks in tabular domain. TabDDPM (Kotelnikov et al. 2023) has been introduced as a diffusion framework for mixed-type tables, outperforming GAN/VAE baselines. TabDiff (Shi et al. 2024) proposed a Transformer-parameterized joint diffusion with feature-wise learnable noise schedules and classifier-free guidance for conditional imputation. TimeAutoDiff (Suh et al. 2024) has been developed combining a VAE with latent diffusion for one-shot, non-autoregressive synthesis of multivariate time-series tables. (Wen et al. 2024) presented DiffPuter, which integrates EM with diffusion for iterative missing-value imputation, TabADM (Zamberg et al. 2023) for unsupervised anomaly detection via diffusion-based density modeling underscoring how diffusion-LM-inspired architectures enable high-fidelity synthesis, imputation, and analytic tasks across diverse tabular domains.
Experiments
Setup
Datasets We experiment on three datasets introduced in Section : (1) LoanSynth, and (2) GradSynth and (3) Adult Income ++. In LoanSynth, the decision model is tasked with predicting a loan decision (approve or reject) for a structured user state containing fields like cash flow, or education including immutable ones such as gender and race. In GradSynth, the decision model is tasked with predicting the admission decision (admit or reject). The Adult-Income++ is a synthetic extension of the original Adult-Income dataset (Frank and Asuncion 2010) where we introduce certain dynamics on the user's attributes to evolve the user state over time. The decision maker is tasked with predicting whether the user's income is greater than $50K or not.
Metrics 1. Recourse Rate. We compute the fraction of all test instances for which the model could produce a recourse with the desired label under the given decision model. However, this alone would mean that a poor model can produce a recourse that can have an arbitrarily high cost. Therefore, we propose to report recourse rate that can achieve the desired label under a certain allowable cost. We plot this metric
Table 3: AdultIncome++ Dataset Example. We provide a sample trajectory (with as the time index) of a user in the AdultIncome++ dataset. Each column corresponds to an attribute of the user state. The teal-colored columns are those that can be directly intervened upon by the user. The last column corresponds to the label about whether this user has an income greater than $50K or not.
| t | Age | Education | Marital Stat. | Occupation | Relationship | Race | Sex | Hrs/Wk | Nat | Label |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 24 | Some-college | Never-married | Tech-support | Not-in-family | W | F | 37 | US | 0 |
| 1 | 25 | Some-college | Never-married | Exec-manager | Not-in-family | W | F | 37 | US | 0 |
| 2 | 26 | Some-college | Never-married | Exec-manager | Not-in-family | W | F | 37 | US | 0 |
| 3 | 27 | Assoc-voc | Never-married | Exec-manager | Not-in-family | W | F | 37 | US | 1 |
(a) LoanSynth Dataset

(b) GradSynth Dataset

(c) Adult Income Dataset
Figure 3: We plot the recourse rate as a function of maximum allowable cost for our method and compare it against the baselines on the datasets LoanSynth, GradSynth and AdultIncome++.
with respect to various values of the maximum allowable cost. The higher the recourse rate the better. Since the above is dependent on the maximum allowable cost, therefore, to obtain a single measure of comparison, we also report the area-under-curve for the recourse rate plot (or RR-AUC for short).
-
Cost. We compute the average cost per generated recourse. The average is computed on all test instances. The cost is computed using a cost function defined by a human expert for each dataset.
-
Conditional Negative Log-Likelihood (CNLL). As argued earlier, the likely next user state should also correspond to low-cost trajectories. Therefore, another metric of interest the log-likelihood of the model-generated recourses given the previous user state. To compute this, we utilize a conditional density model that is used to evaluate all the models' generated recourses given the previous user state.
-
Unconditional Negative Log-Likelihood (UNLL). Another metric of interest is whether the generated recourse would make sense under any circumstance or not. Thus marginalizing over the conditioning in the conditional log-likelihood, we also report the unconditional log-likelihood. To compute this, we utilize a density model over the user states to evaluate the generated recourse from all models.
Baselines We compare DDAR with five baselines for generating recourses from structured datasets. We describe each of these baselines below:
-
Wachter et al. (Wachter, Mittelstadt, and Russell 2017) is an important baseline that tries to achieve the desired label while minimally perturbing the current user state. We implement this baseline by first encoding the user state and then applying gradient descent to search a recourse that produces the desired decision with smallest possible distance to the current user state.
-
DiCE. (Mothilal, Sharma, and Tan 2020) is another key baseline that, like Wachter et al., uses optimization to find a new user state which achieves the desired label with minimal perturbation and, importantly, with high diversity among various generated recourses. We implement this baseline by first encoding the row in a similar way as done in Wachter (Wachter, Mittelstadt, and Russell 2017). Next, gradient descent is applied to make find a set of recourses that achieve the desired decision, are in close proximity to the input sample, and are diverse enough.
-
FACE. (Poyiadzi et al. 2020) This is a graph-based baseline for action recourse. It treats the given user state as a node in a graph and the edges capture the proximity between the nodes. Then, given an input, the recourse is generated by finding a low-distance path that crosses the decision boundary. This is the only baseline, to our knowledge, that tackles the question of feasibility of the trajectory, as it prevents the trajectory from passing through sparse regions.
-
SCD (Madaan and Bedathur 2024) is a counterfactual
Table 4: RR-AUC (↑) and Cost (↓) across the 3 datasets. Our model outperforms all baselines.
| Method | LoanSynth | GradSynth | AdultIncome++ | |||
|---|---|---|---|---|---|---|
| RR-AUC | Cost | RR-AUC | Cost | RR-AUC | Cost | |
| Wachter etal. | 0.020 | 76.54 | 5.090 | 87.23 | 4.080 | 51.99 |
| DiCE | 0.026 | 79.68 | 5.207 | 88.38 | 4.097 | 49.99 |
| FACE | 0.885 | 107.0 | 2.750 | 222.1 | 5.758 | 98.93 |
| SCD | 0.943 | 68.51 | 1.256 | 227.7 | 5.965 | 86.48 |
| Ours | 4.142 | 1.25 | 48.98 | 10.84 | 13.38 | 3.170 |
Table 5: CNLL (↓) and UNLL (↓) across the 3 datasets. Our model outperforms all baselines.
| Method | LoanSynth | GradSynth | AdultIncome++ | |||
|---|---|---|---|---|---|---|
| CNLL | UNLL | CNLL | UNLL | CNLL | UNLL | |
| Wachter etal. | 75.29 | 59.87 | 61.35 | 46.28 | 53.20 | 25.23 |
| DiCE | 71.45 | 54.52 | 64.27 | 49.82 | 53.98 | 25.00 |
| FACE | 72.40 | 26.10 | 41.51 | 77.39 | 63.83 | 120.48 |
| SCD | 90.79 | 26.54 | 38.83 | 78.79 | 82.07 | 120.37 |
| Ours | 29.26 | 21.27 | 16.42 | 17.56 | 40.17 | 19.50 |
Table 6: Qualitative Comparison of Methods on LoanSynth Dataset. We highlight all changes made by a method in cyan color. We also show immutable attributes which should not change like race and gender, and highlight the ones that were wrongly changed in red color.
| Method | Age | Edu | Occ | Cash | Bank Bal | Spend | Debt | Cred | Race | Sex | Loan |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Input | 29 | 1 | ('sw_dev', 8) | 30K | 83K | L | 629.36 | 75.06 | C | F | No |
| Ours | 30 | 1 | ('sw_dev', 9) | 22K | 127K | L | 775.59 | 73.90 | C | F | Yes |
| DICE | 29 | 4 | ('scientist', 3) | 30K | 71K | L | 627.35 | 74.83 | C | F | Yes |
| SCD | 36 | 2 | ('sw_dev', 0) | 3K | 325K | L | 849.99 | 79.58 | H | F | Yes |
| FACE | 42 | 1 | ('sw_dev', 20) | 23K | 602K | T | 849.99 | 90.88 | H | M | Yes |
| Wachter | 29 | 4 | ('scientist', 3) | 145K | 71K | L | 627.35 | 74.83 | C | F | Yes |
explainer that accounts for the underlying data distribution via a neural density modeling framework such as a VAE or a diffusion model but lacks a user trajectory model that can provide low-cost recourse recommendations.
Results
Can DDAR effectively provide low-cost recourse? DDAR Provides High Recourse Rate. To answer this, we look at the Recourse Rate plots in Figure 3 and the values of RR-AUC reported in Table 4. We can see that even with allowable cost of 2.0 on LoanSynth, our model has a recourse rate of 0.495 which is remarkably higher than all other baselines which remain close to 0. Similarly, in GradSynth, with maximum allowed cost of 20., other models are totally failing with recourse rate of almost 0.0 while our model achieves a much higher score of 0.518. This fact is also captured in our significantly higher RR-AUC score where we achieve 4.142 on LoanSynth while other baselines achieve a score less than 1.0. Similarly, on GradSynth, we achieve the RR-AUC of 48.98 while others have a score smaller than 6.0. We see a similar trend in Adult Income ++ dataset where our model achieves significantly higher RR-AUC of 4.142 while maintaining the lowest cost of 1.25 while other baselines achieve a RR-AUC score of less than 1.0.
DDAR Provides Low Cost Recourse. We also report the average cost associated to the generated recourses. We can see in all three datasets LoanSynth, GradSynth and Adult Income ++ that our model achieves a remarkably low cost while other models are significantly worse. This can be attributed to the fact that all the baselines (including ours) were given no explicit knowledge of the cost function and the models had to infer this from data. Other models, lacking a mechanism to infer this, are totally failing in this unsupervised regime, while ours does not.
DDAR Provides Feasible Recourse. There are two measures of feasibility. (1) The first measure is the conditional feasibility which measures how feasible is the recommended recourse given the state the user is currently in. We measure this via the conditional negative log-likelihood (CNLL) score and we can see that our recourses have a much lower CNLL of 29.26 on LoanSynth, 16.42 on GradSynth and 40.17 on Adult Income ++, while next best baseline achieves a much worse score of 71.45 on LoanSynth, 38.83 on GradSynth and 53.20 on Adult Income ++. (2) The second measure of feasibility is the unconditional feasibility which measures whether the recourse is coherent regardless of the current user state. In this measure also, our model achieves a score better than the other methods. Qualitative Analysis of the Generated Recourse. We show the qualitative results for the LoanSynth dataset in Table 6. Note that there are certain fields which should be immutable such as race or sex and changing them should be associated with a high cost. However, many baselines erroneously change race or sex in order to achieve the desired label. On the other hand, our model, through exposure to the historical data is able to take cognizance of this fact and produces recourse that do not change such immutable fields. Similarly, qualitative results for GradSynth and Adult Income ++ are presented in Appendix.
Benefits of Multi-Step Recourse A unique benefit of our method is that we can iteratively run the recourse generation process several times. Therefore, if no low-cost recourse is possible within a single time-step (e.g., a single year of the user's life), there may be recourse possible if more time is given to the user (e.g., a time horizon of multiple years of the user's life) to achieve their goal. We report the recourse
(a) LoanSynth Dataset

(b) GradSynth Dataset
(c) Adult Income++ Dataset
Figure 4: Recourse rate vs. steps K. Left: LoanSynth, Centre: GradSynth, Right: AdultIncome++.
(a) LoanSynth Dataset

(b) GradSynth Dataset
(c) Adult Income++ Dataset
DDAR (N = 1) DDAR (N = 3) DDAR (N = 5) DDAR (N = 10) SCD (N = 1) SCD (N = 3)
SCD (N = 5) SCD (N = 10) FACE DICE Wachter
Figure 5: Recourse rate vs. number of trajectories N. Left: LoanSynth, Centre: GradSynth, Right: AdultIncome++.
rates of K-step recourse with K = 1, 3, 5 and 7 in Figure 4. We see that as the K is increased, we can achieve even higher rates of recourse. In LoanSynth dataset, we are able to achieve 0.9 recourse rate at k = 7 at allowable cost of 8 while in GradSynth dataset we are able to reach to 0.80 recourse rate at allowable cost of 100 and in Adult Income we are able to achieve a recourse rate of 0.24 at an allowable cost of 0. Note that even with K = 1, our model was already surpassing the other baselines. Qualitative K-step samples are shown in Table 7 in the Appendix.
Best-of-N Recourse. A benefit of our method is that we can sample multiple recourse trajectories and then choose the best one. We evaluate the effect of using various values of N in Figure 5. We note that across all datasets, a larger N e.g., 5 or 10, leads to a boost in our recourse rate for any maximum allowable cost. In comparison, other baselines are either deterministic, thus incapable of deriving benefits of sampling, or the boost they show with greater N is not as large as that of our model. For instance, in LoanSynth dataset, our model is able to achieve 1.0 recourse rate at an allowable cost of 2.0 while the next best baselines is at 0.12. Similar trend follows for GradSynth and Adult Income ++ datasets.
Conclusion
In this paper, we introduced the first data-driven framework called Data-Driven Action Recourse (DDAR) for generating recourse without providing any costly common-sense knowledge from humans. We contribute three datasets in this work: LoanSynth, GradSynth and Adult Income++ for generating data-driven recourse. Through experiments, we show that DDAR generates recourses that can achieve the desired decision while also maintaining low cost compared to the baselines. An interesting avenue of future work is to have user-defined constraints that can be incorporated into the data-driven paradigm.
References
Browne, C. B.; Powley, E.; Whitehouse, D.; Lucas, S. M.; Cowling, P. I.; Rohlfshagen, P.; Tavener, S.; Perez, D.; Samothrakis, S.; and Colton, S. 2012. A Survey of Monte Carlo Tree Search Methods. IEEE Transactions on Computational Intelligence and AI in Games, 4(1): 1–43.
Cui, Z.; Chen, W.; He, Y.; and Chen, Y. 2015. Optimal Action Extraction for Random Forests and Boosted Trees. Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining.
De Toni, G.; Viappiani, P.; Teso, S.; Lepri, B.; and Passerini, A. 2024. Personalized Algorithmic Recourse with Preference Elicitation. Transactions on Machine Learning Research. Accepted Jan 2024.
Dhurandhar, A.; Chen, P.-Y.; Luss, R.; Tu, C.-C.; Ting, P.; Shanmugam, K.; and Das, P. 2018. Explanations based on the missing: Towards contrastive explanations with pertinent negatives. arXiv preprint arXiv:1802.07623.
Esfahani, S.; De Toni, G.; Lepri, B.; Passerini, A.; Tentori, K.; and Zancanaro, M. 2024. Preference Elicitation in Interactive and User-Centered Algorithmic Recourse: An Initial Exploration. In Proceedings of the 32nd ACM Conference on User Modeling, Adaptation and Personalization (UMAP '24).
Frank, A.; and Asuncion, A. 2010. UCI Machine Learning Repository. http://archive.ics.uci.edu/ml. University of California, Irvine, School of Information and Computer Sciences.
Garey, M. R.; and Johnson, D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co.
Geman, S.; and Geman, D. 1984. Stochastic Relaxation, Gibbs Distributions, and the Bayesian Restoration of Images. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-6(6): 721–741.
Gomez, O.; Holter, S.; Yuan, J.; and Bertini, E. 2020. ViCE: visual counterfactual explanations for machine learning models. Proceedings of the 25th International Conference on Intelligent User Interfaces.
Guyomard, V.; Fessant, F.; Guyet, T.; Bouadi, T.; and Termier, A. 2023. Generating robust counterfactual explanations. ArXiv, abs/2304.12943.
Hamman, F.; Noorani, E.; Mishra, S.; Magazzeni, D.; and Dutta, S. 2023. Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees. In International Conference on Machine Learning.
Hashemi, M.; and Fathi, A. 2020. PermuteAttack: Counterfactual Explanation of Machine Learning Credit Scorecards. ArXiv, abs/2008.10138.
Ho, J.; Jain, A.; and Abbeel, P. 2020. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33: 6840–6851.
Jiang, J.; Lan, J.; Leofante, F.; Rago, A.; and Toni, F. 2023. Provably Robust and Plausible Counterfactual Explanations for Neural Networks via Robust Optimisation. ArXiv, abs/2309.12545.
Jiang, J.; Leofante, F.; Rago, A.; and Toni, F. 2024. Robust Counterfactual Explanations in Machine Learning: A Survey. ArXiv, abs/2402.01928.
Kanamori, K.; Takagi, T.; Kobayashi, K.; and Arimura, H. 2020. DACE: Distribution-Aware Counterfactual Explanation by Mixed-Integer Linear Optimization. In International Joint Conference on Artificial Intelligence.
Kanamori, K.; Takagi, T.; Kobayashi, K.; and Ike, Y. 2023. Algorithmic Recourse with Missing Values. arXiv preprint arXiv:2304.14606.
Kancheti, S. S.; Vigneswaran, R.; Mishra, B.; and Balasubramanian, V. N. 2025. HARE: Human-in-the-Loop Algorithmic Recourse. Transactions on Machine Learning Research.
Karimi, A.-H.; Barthe, G.; Balle, B.; and Valera, I. 2020a. Model-agnostic counterfactual explanations for consequential decisions. In International Conference on Artificial Intelligence and Statistics, 895–905. PMLR.
Karimi, A.-H.; Schölkopf, B.; and Valera, I. 2021. Algorithmic Recourse: from Counterfactual Explanations to Interventions. In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency.
Karimi, A.-H.; von Kügelgen, J.; Schölkopf, B.; and Valera, I. 2020b. Algorithmic recourse under imperfect causal knowledge: a probabilistic approach. ArXiv, abs/2006.06831.
Kayastha, K.; Gkatzelis, V.; and Jabbari, S. 2026. Learning-Augmented Robust Algorithmic Recourse. Transactions on Machine Learning Research.
Kocsis, L.; and Szepesvári, C. 2006. Bandit-Based Monte-Carlo Planning. In European Conference on Machine Learning (ECML), 282–293. Springer.
Koh, S.; Kim, B. H.; and Jo, S. 2024. Understanding the User Perception and Experience of Interactive Algorithmic Recourse Customization. ACM Transactions on Computer-Human Interaction, 31: 1–25.
Kotelnikov, A.; Baranchuk, D.; Rubachev, I.; and Babenko, A. 2023. TabDDPM: Modelling Tabular Data with Diffusion Models. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, 17564–17579. PMLR.
Leofante, F.; and Potyka, N. 2023. Promoting Counterfactual Robustness through Diversity. ArXiv, abs/2312.06564.
Madaan, N.; and Bedathur, S. 2024. Navigating the Structured What-If Spaces: Counterfactual Generation via Structured Diffusion. In 2024 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 710–722. IEEE.
Maragno, D.; Kurtz, J.; Röber, T. E.; Goedhart, R.; Birbil, S. I.; and den Hertog, D. 2023. Finding Regions of Counterfactual Explanations via Robust Optimization. ArXiv, abs/2301.11113.
Metropolis, N.; Rosenbluth, A. W.; Rosenbluth, M. N.; Teller, A. H.; and Teller, E. 1953. Equation of State Calculations by Fast Computing Machines. The Journal of Chemical Physics, 21(6): 1087–1092.
Mothilal, R. K.; Sharma, A.; and Tan, C. 2020. Explaining machine learning classifiers through diverse counterfactual explanations. In Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency, 607–617.
Nichol, A. Q.; and Dhariwal, P. 2021. Improved denoising diffusion probabilistic models. In International conference on machine learning, 8162–8171. PMLR.
Poyiadzi, R.; Sokol, K.; Santos-Rodriguez, R.; De Bie, T.; and Flach, P. 2020. FACE: Feasible and Actionable Counterfactual Explanations. In Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society.
Rasouli, P.; and Yu, I. C. 2024. CARE: Coherent Actionable Recourse based on Sound Counterfactual Explanations. International Journal of Data Science and Analytics, 17: 13–38.
Rawal, K.; and Lakkaraju, H. 2020. Beyond Individualized Recourse: Interpretable and Interactive Summaries of Actionable Recourses. In Advances in Neural Information Processing Systems, volume 33, 12187–12198.
Rubinstein, R. Y. 1999. The Cross-Entropy Method for Combinatorial and Continuous Optimization. Methodology and Computing in Applied Probability, 1: 127–190.
Shi, J.; Xu, M.; Hua, H.; Zhang, H.; Ermon, S.; and Leskovec, J. 2024. TabDiff: a Mixed-type Diffusion Model for Tabular Data Generation. arXiv preprint arXiv:2410.20626.
Suh, N.; Yang, Y.; Hsieh, D.-Y.; Luan, Q.; Xu, S.; Zhu, S.; and Cheng, G. 2024. TimeAutoDiff: Combining Autoencoder and Diffusion Model for Time Series Tabular Data Synthesizing. arXiv preprint arXiv:2406.16028.
Tominaga, T.; Yamashita, N.; and Kurashima, T. 2024. Re-assessing Evaluation Functions in Algorithmic Recourse: An Empirical Study from a Human-Centered Perspective. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI-24), Human-Centred AI track, 7913–7921.
Ustun, B.; Spangher, A.; and Liu, Y. 2019. Actionable recourse in linear classification. In Proceedings of the conference on fairness, accountability, and transparency, 10–19.
Verma, S.; Boonsanong, V.; Hoang, M.; Hines, K. E.; Dickerson, J. P.; and Shah, C. 2024. Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Review. ACM Computing Surveys, 56: 1–42.
von Neumann, J.; and Morgenstern, O. 2007. Theory of Games and Economic Behavior. Princeton University Press, 60th anniversary commemorative edition.
Wachter, S.; Mittelstadt, B.; and Russell, C. 2017. Counterfactual explanations without opening the black box: Automated decisions and the GDPR. Harv. JL & Tech., 31: 841.
Wang, Z. J.; Vaughan, J. W.; Caruana, R.; and Chau, D. H. 2023. GAM Coach: Towards Interactive and User-Centered Algorithmic Recourse. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, 1–20.
Wen, Y.; Yi, K.; Ke, J.; and Shen, Y. 2024. DiffImpute: Tabular Data Imputation With Denoising Diffusion Probabilistic Model. arXiv preprint arXiv:2403.13863.
Yetukuri, J.; Hardy, I.; and Liu, Y. 2023. Towards User Guided Actionable Recourse. In Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society (AIES '23), 742–751.
Zamberg, G.; Salhov, M.; Lindenbaum, O.; and Averbuch, A. 2023. TabADM: Unsupervised Tabular Anomaly Detection with Diffusion Models. arXiv preprint arXiv:2307.12336.
Additional Details of the Method
Denoiser Model and Training Hyperparameters
In Table 8, we report the various hyperparameters that we used for training the diffusion model.
Schedule for . We use the cosine schedule for the denoising diffusion used in the existing works (Nichol and Dhariwal 2021).
Sinusoidal Time Embeddings
The denoiser in our diffusion model requires t as an input. Since t is a scalar, we embed it as a vector. For this, we adopt the sinusoidal embedding approach of previous works. Formally, we embed t as where:
Here, with as the dimension of the embedding; and with .
Cost Functions
In this section, we describe the pseudo-code used for computing costs in our two benchmarks for evaluation purposes. For these, see Algorithms 1 and 2. These cost functions are human-defined. Note that these human-defined cost functions are not provided to any of our evaluated models—all of which were trained in an unsupervised manner on historical user log data.
Benchmark Datasets
LoanSynth Generation
We show the data generation process for LoanSynth dataset in Algorithm 3.
GradeSynth Generation
We show the data generation process for GradSynth dataset in Algorithm 4.
Adult Income ++ Generation
We show the data generation process for Adult Income++ dataset in Algorithm 5.
Qualitative Samples
In this section, we show additional qualitative samples generated by our framework DDAR and by baselines for LoanSynth in Table 9 and for GradSynth in Table 10.
Table 7: Qualitative Analysis of DDAR with -step recourse on LoanSynth dataset. We provide input-output pairs from our system DDAR. Each row corresponds to a user's data at a point in time. Each column corresponds to an attribute of the user's state. .
| Age | Edu | Occ | Cash | Bank Bal | Life | Cred | Wt | Race | Sex | Label |
|---|---|---|---|---|---|---|---|---|---|---|
| 28 | 1 | soft_dev 1 | 28K | 60K | T | 470.80 | 58.12 | B | F | No |
| 38 | 2 | manager 0 | 24K | 353K | M | 849.99 | 61.55 | B | F | Yes |
| 38 | 1 | soft_dev 11 | 60K | 550K | T | 849.99 | 54.90 | B | F | Yes |
| 24 | 1 | stud_mast 1 | -58K | -266K | L | 300.00 | 82.90 | C | F | No |
| 34 | 3 | artist 4 | 15K | -350K | M | 300.04 | 82.43 | C | F | Yes |
| 34 | 2 | engineer 9 | 60K | 99K | M | 616.17 | 87.18 | C | F | Yes |
Algorithm 1 Algorithm to Compute Cost for the LoanSynth Dataset
1: function LOANSYNTHCOST(state_cur, state_next) 2: cost ← 0 3: 4: # The age can never decrease. 5: if state_cur['age'] ≥ state_next['age'] then 6: cost ← cost + 100.0 7: end if 8: 9: # The more the user has to wait, the more the cost. 10: cost ← cost + |state_cur['age'] - state_next['age']| 11: 12: # Lifestyle change has a cost. 13: if state_cur['lifestyle'] ≠ state_next['lifestyle'] then 14: cost ← cost + 1.0 15: end if 16: 17: # Education-level cannot go down with time. 18: if state_cur['lifestyle'] > state_next['lifestyle'] then 19: cost ← cost + 100.0 20: end if 21: 22: return cost 23: end function
| Hyperparameter | Value |
|---|---|
| Learning Rate | 0.0001 |
| Learning Rate Warmup Steps | 30000 |
| Learning Rate Decay Half-Life | 250000 |
| Gradient Clipping | 0.05 |
| Diffusion Steps | 2000 |
| Batch Size | 120 |
| Dropout | 0.1 |
| Hidden Activation | GELU |
| Hidden Size | 768 |
| Intermediate Size | 3072 |
| Number of Attention Heads | 12 |
| Number of Layers | 12 |
| Vocabulary Size | 30522 |
Table 8: Hyperparameters of the Diffusion Model.
Table 9: Qualitative Comparison of Methods. Changes in cyan, invalid immutable changes in red.
| Method | Age | Edu. | Occ. | Sav. (k) | Inc. (k) | Spd. | Debt (k) | CrSc. | Race | Sex | Ln. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Input | 29 | 1 | SD-8 | 30.4 | 83.3 | lav. | 0.63 | 75.1 | C | F | No |
| DSCD | 30 | 1 | SD-9 | 21.8 | 127.5 | lav. | 0.78 | 73.9 | C | F | Yes |
| DICE | 29 | 4 | SC-3 | 30.3 | 71.2 | lav. | 0.63 | 74.8 | C | F | Yes |
| SCD | 36 | 2 | SD-0 | 2.8 | 325.1 | lav. | 0.85 | 79.6 | H | F | Yes |
| FACE | 42 | 1 | SD-20 | 22.8 | 602.1 | thr. | 0.85 | 90.9 | H | M | Yes |
| Wac. | 29 | 4 | SC-3 | 145.2 | 71.2 | lav. | 0.63 | 74.8 | C | F | Yes |
| Input | 33 | 0 | SB-3 | -29.3 | -88.3 | thr. | 0.52 | 54.6 | B | M | No |
| DSCD | 34 | 1 | SD-0 | 28.2 | -68.4 | thr. | 0.85 | 56.8 | B | M | Yes |
| DICE | 33 | 0 | SB-3 | -29.0 | -96.9 | thr. | 0.52 | 54.9 | B | M | Yes |
| SCD | 36 | 2 | SD-0 | 2.8 | 325.1 | lav. | 0.85 | 79.6 | H | F | Yes |
| FACE | 38 | 1 | EN-1 | 53.2 | 428.9 | thr. | 0.85 | 90.1 | H | M | Yes |
| Wac. | 33 | 0 | SB-3 | -29.0 | -96.9 | thr. | 0.52 | 54.9 | B | M | Yes |
| Input | 29 | 1 | SD-2 | 33.7 | 93.4 | thr. | 0.60 | 58.5 | B | F | No |
| DSCD | 30 | 1 | SD-3 | 40.8 | 127.5 | thr. | 0.78 | 56.8 | B | F | Yes |
| DICE | 29 | 4 | SC-3 | 34.5 | 99.4 | thr. | 0.60 | 58.7 | B | F | Yes |
| SCD | 34 | 1 | SD-11 | 40.8 | 184.0 | mod. | 0.85 | 75.8 | B | M | Yes |
| FACE | 38 | 1 | EN-1 | 53.2 | 428.9 | thr. | 0.85 | 90.1 | H | M | Yes |
| Wac. | 29 | 4 | SC-3 | 145.2 | 99.4 | thr. | 0.60 | 58.7 | B | F | Yes |
| Input | 32 | 1 | SM-1 | -39.4 | 191.7 | mod. | 0.85 | 81.1 | A | F | No |
| DSCD | 33 | 2 | EN-0 | 28.2 | 212.0 | mod. | 0.85 | 82.4 | A | F | Yes |
| DICE | 32 | 1 | SC-3 | -39.5 | 184.0 | mod. | 0.85 | 81.5 | A | F | Yes |
| SCD | 34 | 1 | SD-11 | 40.8 | 184.0 | mod. | 0.85 | 75.8 | A | M | Yes |
| FACE | 41 | 1 | SD-2 | 61.5 | 528.1 | thr. | 0.85 | 76.9 | H | M | Yes |
| Wac. | 32 | 1 | MG-16 | -39.5 | 184.0 | mod. | 0.85 | 81.5 | A | F | Yes |
| Input | 35 | 2 | MG-4 | 32.1 | 95.8 | lav. | 0.61 | 75.8 | H | M | No |
| DSCD | 36 | 2 | MG-5 | 30.3 | 127.5 | lav. | 0.78 | 74.8 | H | M | Yes |
| DICE | 35 | 4 | SC-3 | 145.2 | 99.4 | lav. | 0.61 | 75.8 | H | M | Yes |
| SCD | 41 | 2 | SD-0 | 4.9 | 184.0 | lav. | 0.85 | 63.4 | H | M | Yes |
| FACE | 41 | 2 | SD-2 | 61.5 | 528.1 | thr. | 0.85 | 76.9 | H | M | Yes |
| Wac. | 35 | 4 | SP-1 | 145.2 | 99.4 | lav. | 0.61 | 75.8 | H | M | Yes |
Table 10: Comparison of Different Methods on GradSynth Dataset. We show highlight all changes made my different algorithms in cyan color. We also show immutable attributes which should not change in a plausible recourse like gender, tier of institute, college gpa and highlight the ones that were changed in red color.
| Method | College | GPA | GRE | Exp. | Rec. | SOP | Gender | Admission |
|---|---|---|---|---|---|---|---|---|
| Input | Tier-3 | 4.0 | Good | 1.0 | 0.0 | Average | Male | False |
| DSCD (ours) | Tier-3 | 4.0 | Good | 1.0 | 0.0 | Excellent | Male | True |
| SCD | Tier-3 | 4.0 | Poor | 8.0 | 0.0 | Good | Female | True |
| DICE | Tier-1 | 4.0 | Excellent | 8.0 | 6.0 | Excellent | Male | True |
| Wachter | Tier-1 | 4.0 | Poor | 8.0 | 6.0 | Excellent | Male | True |
| FACE | Tier-3 | 4.0 | Poor | 7.0 | 4.0 | Average | Male | True |
| Input | Tier-2 | 3.0 | Average | 0.0 | 0.0 | Excellent | Female | False |
| DSCD (ours) | Tier-2 | 3.0 | Average | 1.0 | 0.0 | Excellent | Female | True |
| SCD | Tier-3 | 4.0 | Poor | 8.0 | 6.0 | Average | Female | True |
| DICE | Tier-1 | 4.0 | Excellent | 8.0 | 6.0 | Excellent | Female | True |
| Wachter | Tier-1 | 4.0 | Poor | 8.0 | 6.0 | Excellent | Female | True |
| FACE | Tier-3 | 4.0 | Poor | 7.0 | 4.0 | Average | Female | True |
| Input | Tier-3 | 4.0 | Average | 1.0 | 0.0 | Average | Female | False |
| DSCD (ours) | Tier-3 | 4.0 | Average | 2.0 | 0.0 | Good | Female | True |
| SCD | Tier-3 | 4.0 | Poor | 8.0 | 6.0 | Average | Female | True |
| DICE | Tier-1 | 4.0 | Excellent | 8.0 | 6.0 | Excellent | Female | True |
| Wachter | Tier-1 | 4.0 | Poor | 8.0 | 6.0 | Excellent | Female | True |
| FACE | Tier-3 | 4.0 | Poor | 7.0 | 2.0 | Average | Male | True |
| Input | Tier-3 | 3.0 | Average | 0.0 | 0.0 | Good | Female | False |
| DSCD (ours) | Tier-3 | 3.0 | Average | 0.0 | 6.0 | Good | Female | True |
| SCD | Tier-3 | 4.0 | Poor | 8.0 | 1.0 | Average | Female | True |
| DICE | Tier-3 | 4.0 | Poor | 8.0 | 6.0 | Poor | Female | True |
| Wachter | Tier-3 | 4.0 | Poor | 8.0 | 6.0 | Poor | Female | True |
| FACE | Tier-3 | 4.0 | Poor | 7.0 | 4.0 | Average | Male | True |
Table 11: Qualitative Analysis of System DDAR. We provide input-output pairs from our system DDAR. Each row corresponds to a user's data at a point in time. Each column corresponds to an attribute of the user's state.
| Age | Edu | Occ | Cash | Bank Bal | Life | Cred | Wt | Race | Sex | Loan? |
|---|---|---|---|---|---|---|---|---|---|---|
| 29 | 1 | soft_dev 8 | 30,389 | 83,330.26 | lavish | 629.36 | 75.06 | C | F | No |
| 30 | 1 | soft_dev 9 | 21,816.25 | 127,471.26 | lavish | 775.59 | 73.90 | C | F | Yes |
| 33 | 0 | stud_bach 3 | -29,344 | -88,282.86 | thrifty | 523.62 | 54.60 | B | M | No |
| 34 | 1 | soft_dev 0 | 28,183.54 | -68,442.25 | thrifty | 849.99 | 56.80 | B | M | Yes |
| 29 | 1 | soft_dev 2 | 33,652 | 93,366.83 | thrifty | 597.82 | 58.49 | B | F | No |
| 30 | 1 | soft_dev 3 | 40,846.97 | 127,471.26 | thrifty | 775.59 | 56.80 | B | F | Yes |
| 32 | 1 | stud_mast 1 | -39,448 | 191,681.03 | moderate | 850.00 | 81.06 | A | F | No |
| 33 | 2 | engineer 0 | 28,183.54 | 212,039.41 | moderate | 849.99 | 82.43 | A | F | Yes |
| 35 | 2 | manager 4 | 32,057 | 95,828.00 | lavish | 607.82 | 75.79 | H | M | No |
| 36 | 2 | manager 5 | 30,282.50 | 127,471.26 | lavish | 775.59 | 74.83 | H | M | Yes |
Table 12: Qualitative Comparison of Methods on GradSynth Dataset. We highlight all changes made by a method in cyan color. We also show immutable attributes which should not change in a plausible recourse like gender, tier of institute, college GPA and highlight the ones that were wrongly changed in red color. We see that other baselines often make such mistakes while ours does not.
| Method | College | GPA | GRE | Exp. | Rec. | SOP | Gender | Admission |
|---|---|---|---|---|---|---|---|---|
| Input | Tier-2 | 2.0 | Average | 2.0 | 0.0 | Good | Female | False |
| Ours | Tier-2 | 2.0 | Average | 2.0 | 6.0 | Excellent | Female | True |
| SCD | Tier-3 | 4.0 | Poor | 8.0 | 6.0 | Average | Female | True |
| DICE | Tier-1 | 4.0 | Poor | 8.0 | 6.0 | Excellent | Female | True |
| Wachter | Tier-1 | 4.0 | Poor | 8.0 | 6.0 | Excellent | Female | True |
| FACE | Tier-3 | 4.0 | Poor | 7.0 | 4.0 | Average | Female | True |
Algorithm 2 Algorithm to Compute Cost for the GradSynth Dataset
1: function CUSTOMCost(state_cur, state_next) 2: cost ← 0 3: 4: # University Tier should not change 5: if state_cur['tier'] ≠ state_next['tier'] then 6: cost ← cost + 100.0 7: end if 8: 9: # GPA should not change 10: if state_cur['gpa'] ≠ state_next['gpa'] then 11: cost ← cost + 100.0 12: end if 13: 14: # Recommendations should increase 15: if float(state_cur['recommendation']) > float(state_next['recommendation']) then 16: cost ← cost + 100.0 17: end if 18: 19: # Experience Letters cannot decrease 20: if float(state_cur['experience']) > float(state_next['experience']) then 21: cost ← cost + 100.0 22: end if 23: 24: # Gender should not change 25: if state_cur['gender'] ≠ state_next['gender'] then 26: cost ← cost + 100.0 27: end if 28: 29: # GRE increase comes with a cost 30: cost ← cost + 10.0 × relu(state_next['gre']) state_cur['gre']) 31: 32: # SOP quality increase comes with a cost 33: cost ← cost + 10.0 × relu(state_next['sop']) state_cur['sop']) 34: 35: return cost 36: end function
Algorithm 3 Synthetic Loan Approval Data Generation
1: Input: N (number of individuals), T (simulation duration in years) 2: Output: Synthetic dataset of individuals over time 3: for i = 1 to N do 4: Initialize state: 5: age ← initial_age(), education ← initial_education() 6: occupation ← initial_occupation(), cashflow ← 0 7: bank_balance ← initial_bank_balance(), lifestyle ← initialize_lifestyle() 8: credit_score ← initial_credit_score(), weight ← initialize_weight() 9: race ← initialize_race(), gender ← initialize_gender(), loan_approved ← 0 10: S ← [] 11: for t = 1 to T do 12: age ← transition_age(age) 13: (occupation, education) ← transition_occupation_education(occupation, education) 14: lifestyle ← transition_lifestyle(lifestyle) 15: weight ← weight + random(-2, 2) 16: cashflow ← transition_cashflow(occupation, lifestyle) 17: bank_balance ← transition_bank_balance(bank_balance, cashflow) 18: credit_score ← transition_credit_score(credit_score, cashflow, bank_balance) 19: loan_approved ← loan_approval(credit_score, cashflow, bank_balance) 20: S ← S ∪ {(age, education, occupation, lifestyle, weight, bank_balance, credit_score, loan_approved)} 21: end for 22: Save S as CSV: synthetic_loan_approval/person_data_i.csv 23: end for
Algorithm 4 Graduate Admissions Data Generation
1: Input: N (number of applicants), T (simulation duration in years) 2: Output: Synthetic dataset of graduate admission decisions 3: for i = 1 to N do 4: Initialize state: 5: college ← initial_college(), gpa ← initial_gpa() 6: gre ← initial_gre(), (experience, recommendation) ← initial_experience_recommendation() 7: sop ← initial_sop(), gender ← initial_gender() 8: admission ← None 9: S ← [] 10: for t = 1 to T do 11: (experience, recommendation) ← transition_experience_recommendation(experience, recommendation) 12: college ← transition_college(college) 13: gpa ← transition_gpa(gpa) 14: gre ← transition_gre(gre) 15: sop ← transition_sop(sop) 16: gender ← transition_gender(gender) 17: admission ← compute_admission_decision(college, gpa, gre, experience, recommendation, sop, gender) 18: S ← S ∪ {(college, gpa, gre, experience, recommendation, sop, gender, admission)} 19: end for 20: Save S as CSV: synthetic_grad_admissions_03/grad_data_i.csv 21: end for
Algorithm 5 Synthetic Adult Income Data Generation
Require: Transition matrices for each
Require: Legality rules ; income model; original file adult_income.csv
Ensure: Generated sequences in recourses/
1: Load CSV, drop education-num, strip whitespace, remove rows with '?' in any categorical column
2: Create directory recourses/ if needed
3: for all row in data do
4: state ← row[categorical], age ← row.age, outputs ← {row}
5: for do
6: age←age+1
7: repeat
8: for all a in categorical do
9: state[a]
10: end for
11: until state satisfies
12: income ← income_model.predict(state)
13: Append to outputs the record with updated (state, age, income) and unchanged other fields
14: end for
15: Write outputs to recourses/sample_{row_idx}.csv
16: end for