CounterFlowNet: From Minimal Changes to Meaningful Counterfactual Explanations
Oleksii Furman, Patryk Marszałek, Jan Masłowski, Marek Śmieja, Maciej Zieba, Piotr Gaiński
TL;DR. CounterFlowNet casts counterfactual explanation as sequential feature editing with conditional GFlowNets, producing sparse, diverse, and plausible CFs on tabular data while enforcing actionability constraints at inference time.
Abstract. Counterfactual explanations (CFs) provide human-interpretable insights into model's predictions by identifying minimal changes to input features that would alter the model's output. However, existing methods struggle to generate multiple high-quality explanations that (1) affect only a small portion of the features, (2) can be applied to tabular data with heterogeneous features, and (3) are consistent with the user-defined constraints. We proposeCounterFlowNet, a generative approach that formulates CF generation as sequential feature modification using conditional Generative Flow Networks (GFlowNet). CounterFlowNet is trained to sample CFs proportionally to a user-specified reward function that can encode key CF desiderata: validity, sparsity, proximity and plausibility, encouraging high-quality explanations. The sequential formulation yields highly sparse edits, while a unified action space seamlessly supports continuous and categorical features. Moreover, actionability constraints, such as immutability and monotonicity of features, can be enforced at inference time via action masking, without retraining. Experiments on eight datasets under two evaluation protocols demonstrate that CounterFlowNet achieves superior trade-offs between validity, sparsity, plausibility, and diversity with full satisfaction of the given constraints.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces CounterFlowNet, a generative method that formulates counterfactual generation as sequential feature modification using conditional GFlowNets. The framework samples counterfactuals according to a reward combining validity, proximity, sparsity, and plausibility, supports mixed tabular features through a two-stage action space, and enforces actionability constraints through inference-time masking. The formulation is interesting, the method is evaluated across eight datasets and two established protocols, and the results show strong trade-offs among the main counterfactual desiderata.
However, it remains unclear which part of the framework is responsible for the reported improvements and how robust the continuous-feature results are to discretization and reward tuning. Addressing the following points would be an important consideration during the discussion period:
- How much of the improvement is attributable specifically to the GFlowNet? This includes reviewers ewTd and Kgw3’s concerns, including novelty. The paper does not cleanly isolate whether the performance gains comes from the GFlowNet architecture or training, the sequential action space, or simply the hand-designed multiplicative reward function combined with candidate filtering.
- How sensitive are the generated counterfactuals to the binning parameter B when combined with different reward-weight choices? Please justify why the reward coefficients are varied across datasets and clarify whether the main conclusions hold under a shared configuration without dataset-specific tuning. The current draft studies binning and reward sensitivity mostly separately.
- Could the authors provide runtime/training overhead comparisons relative to key baselines or clarify which comparisons are unavailable?
- Please provide a brief commentary on how CounterFlowNet conceptually and empirically compares to recent constraint-aware models such as LAPACE or explain why the comparison would not be appropriate.
Final justification
The authors provided a strong rebuttal that addressed all initial concerns. Consequently, the reviewers unanimously support acceptance, provided these valuable additions are incorporated into the camera-ready version. Overall, the paper is a good addition to the counterfactal explanation literature, allowing combinations of multiple properties native to these explanations.
Read meta-review
Meta-review
The paper introduces CounterFlowNet, a generative method that formulates counterfactual generation as sequential feature modification using conditional GFlowNets. The framework samples counterfactuals according to a reward combining validity, proximity, sparsity, and plausibility, supports mixed tabular features through a two-stage action space, and enforces actionability constraints through inference-time masking. The formulation is interesting, the method is evaluated across eight datasets and two established protocols, and the results show strong trade-offs among the main counterfactual desiderata.
However, it remains unclear which part of the framework is responsible for the reported improvements and how robust the continuous-feature results are to discretization and reward tuning. Addressing the following points would be an important consideration during the discussion period:
- How much of the improvement is attributable specifically to the GFlowNet? This includes reviewers ewTd and Kgw3’s concerns, including novelty. The paper does not cleanly isolate whether the performance gains comes from the GFlowNet architecture or training, the sequential action space, or simply the hand-designed multiplicative reward function combined with candidate filtering.
- How sensitive are the generated counterfactuals to the binning parameter B when combined with different reward-weight choices? Please justify why the reward coefficients are varied across datasets and clarify whether the main conclusions hold under a shared configuration without dataset-specific tuning. The current draft studies binning and reward sensitivity mostly separately.
- Could the authors provide runtime/training overhead comparisons relative to key baselines or clarify which comparisons are unavailable?
- Please provide a brief commentary on how CounterFlowNet conceptually and empirically compares to recent constraint-aware models such as LAPACE or explain why the comparison would not be appropriate.
Final justification
The authors provided a strong rebuttal that addressed all initial concerns. Consequently, the reviewers unanimously support acceptance, provided these valuable additions are incorporated into the camera-ready version. Overall, the paper is a good addition to the counterfactal explanation literature, allowing combinations of multiple properties native to these explanations.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces CounterFlowNet, a method for generating counterfactual explanations using conditional Generative Flow Networks (GFlowNets). The counterfactual generation is framed as a sequential decision process where feature modifications are sampled according to a user-defined reward that combines validity, proximity, sparsity, and plausibility. The authors also enforce actionability through inference-time action masking. They evaluate their method on 8 different tabular datasets split in 2 protocols (one with only discrete features, and one with discrete and continuous features), and showcase improved trade-offs among the 4 main dimensions (validity, proximity, sparsity, and plausibility) compared to existing methods.
Strengths and weaknesses
Strengths: The adaptation of the GFlowNets for counterfactual generation seems novel, interesting, and based on the results presented in the paper, also effective. I believe that it is essential for counterfactual generators to be modular, and the design of CounterFlowNet allows for adaptations of the counterfactuals characteristics using the different preference coefficients on the reward function. The action masking also seems to be a good solution for actionability, without the need of re-training the generator, which is also another important characteristic.
Weaknesses: My main concern is that the paper does not disentangle the contribution of the GFlowNet from the contribution of the hand-designed reward. Since the reward directly encodes validity, proximity, plausibility, and sparsity, and since final candidates are filtered and ranked by this same reward, it is unclear whether training a GFlowNet is necessary. A simple but important baseline would be constrained random perturbation, beam search, evolutionary search, or similar simpler approaches over the same sequential action space, using exactly the same reward and selecting the top-ranked valid counterfactuals. Beyond this, the methodological novelty seems limited (the paper mainly applies GFlowNets with small adaptations to generate counterfactuals, so the novelty is mainly on the use of such networks for generation of counterfactuals, but not so much on the adaptation or introduction of novel designs for such networks), however, this is not a major weakness.
Questions
-
The proposed reward combines validity, proximity, plausibility, and sparsity, and the final counterfactuals are ranked according to this same reward. Could the authors provide a comparison against simple search-based approaches (e.g., constrained random perturbation, beam search, evolutionary search, or other search procedures) operating over the same action space and using exactly the same reward function? This would help disentangle the contribution of the GFlowNet from the contribution of the reward design.
-
The paper reports training times of up to 10 hours per dataset on an RTX 4090, but does not provide a comparison of computational cost against competing methods. Could the authors report training and inference times (or other computational cost metrics) for their method and the other methods? This would help assess the practical trade-off between the improved counterfactual quality and the additional computational overhead introduced by GFlowNet training.
-
The ablation study varies one reward coefficient at a time while keeping the others fixed. Since the reward components interact multiplicatively, how sensitive are the reported trends to the choice of the remaining coefficients? Could the authors comment on how these fixed values were selected and whether similar conclusions hold under alternative settings?
Comments:
- The discussion of desiderata in Section 3.1 could be expanded. Actionability is later discussed as a key property but is not introduced together with the other desiderata. A short discussion clarifying which properties are considered and why these four were selected would improve the presentation.
- In Section 4.2, it is not completely clear which reward coefficients were used for the main experiments.
- Since the method discretizes continuous features, it would be useful to clarify in the main text how sensitive the results are to the number of bins and whether this affects comparison to continuous baselines.
- The font size in Figure 3 is difficult to read.
- Minor writing issue: some citations are used inline where parenthetical citations would read more naturally.
Limitations
yes
Final justification
Overall, I believe that the paper presents a technically solid and useful contribution, while the comparative advantage is primarily limited to the quality–diversity trade-off, which is also the main reason why I do not opt for a higher score. However, I believe that this work has sufficient quality and value to be considered for acceptance, hence my final decision to maintain my initial evaluation of 4.
Formatting concerns
no
2 comments
Thank you for the detailed rebuttal and for running the additional experiments. I appreciate that the authors directly addressed my main concern by comparing CounterFlowNet against baselines while keeping the same action space and reward function. I believe these new experiments substantially clarify the contribution of the GFlowNet beyond the reward design.
In particular, while beam search appears competitive on several individual quality metrics, the new results highlight that CounterFlowNet achieves a better balance between quality and diversity, which is well aligned with the motivation for using GFlowNets in the first place. I believe this additional analysis significantly strengthens the paper, and I would strongly encourage the authors to include it in the final version, as it provides much clearer evidence for the proposed design choices than the original experiments alone.
I would also encourage the authors to report the sensitivity of the newly introduced number-of-modes metric to its reward and pairwise-distance thresholds. The differences are substantial on some datasets but smaller (or reversed) on others, so showing that the conclusion holds across reasonable threshold choices would make the evidence more convincing.
Overall, the response strengthens my understanding of the paper and my confidence in its results, so I adapt my confidence for the review and maintain my positive evaluation.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents Counterflownet, a generative model that produces Counterfactual Explanations for tabular data. The core idea is to model counterfactual edits as a sequential, discrete process that is learned with a conditional GFlowNet. In a nutshell, at each step the model chooses a feature to modify and the selects its new value. This is repeated until a "stop" action is produced by the model. A key aspect of the framework is that the process is steered by user defined rewards that control a tradeoff between different properties of counterfactuals. experiments are presented across a good range of models, datasets and protocols.
Strengths and weaknesses
The paper is solid and presents an interesting formulation of counterfactual generation as a sequential process. I see this choice as particularly interesting in the context of recourse where breaking a counterfactual into intermediate decisions might be a desirable property to have (e.g. for auditing purposes). The use of a GFlowNet is well-motivated for generating diverse counterfactual, although the requirement of a discrete action space is a weak point that needs careful discussion (more on this later). I found the way in which constraints are handle to be interesting. The experimental section does a good job at comparing performance of GFlowNet across different datasets and again existing algorithms (although I believe additional baselines could have been included, more on this below).
My main concerns is that the method is fundamentally discrete and this has important implications on the quality of counterfactual generated. Continuous features are discretised into bins and then reconstructed. IN this sense, the method appears to be more suited to handle discrete dataset but less convincing for continuous ones. The paper does include an ablation over the number of bins which is useful, but Figure 6 also shows that this choice can affect several metrics quite considerably. The choice of B=64 for protocol B is presented as a balanced compromise but it still feels rather heuristic and I did not find the justification fully convincing. Related to this, the authors use different preference coefficients for different datasets, which seems to suggest that the choice of B is not robust and that the overall results may not be as robust as claimed. Finally, I think the empirical study would have benefitted from including more recent generating and constraint aware baselines such as the ICLR 2026 LAPACE method (link below) that seems like a close competitor, at least conceptually.
Link to LAPACE: https://openreview.net/forum?id=zd9R2T4HiX
Questions
-
could the authors please clarify the meaning of headers in Tables 1 and 2? some of the abbreviations are not immediately clear from the tables and I could not really find them in the main text either.
-
how sensitive is the binning to the choice of reward coefficients? I am not misunderstanding the material in appendix, the effect of rewards is studied for a fixed binning coefficient.
-
given the positioning of CFNET as a generative and constraint-aware method, could the authors comment on the decision to omit recent baselines such as LAPACE? The two approaches appear to have rather complementary benefits and it would have been interesting to see a study on these complementarities.
Limitations
The paper does acknowledge limitations, although I think the discussion could be more complete in two respects. First, the role of binning deserves a more explicit treatment in my view, since the method is fundamentally discrete and this can affect generate counterfactuals. Second, I think the paper should discuss the role of reward presences given that these coefficients are adjusted across datasets. The fact that limitations are discussed mainly in the appendix is not necessarily a problem but these two point seem central enough to me that I would have preferred a more prominent discussion in the main body of the paper.
Final justification
I am satisfied with the additional experiments provided by the authors and I will keep my original (positive) score.
Formatting concerns
N/A
2 comments
Rebuttal
We thank the reviewer for the positive evaluation and for the observation that a sequential formulation is particularly appealing in the recourse setting, where intermediate decisions are auditable. We appreciate the concrete concerns regarding discretization, reward coefficients, and missing baselines, and we ran additional experiments for this rebuttal that address each of them directly.
Q1. Meaning of the headers in Tables 1 and 2
We provide full metric descriptions in Appendix H. Here is the brief description:
| Header | Meaning |
|---|---|
| Table 1. Protocol A | |
| Val.(%)↑ | counterfactuals classified as target |
| Cov.(%)↑ | Method was able to produce counterfactual explanation |
| Spars.(%)↑ | mean share of features unchanged |
| Div.(%)↑ | mean pairwise Hamming distance |
| H. Mean(%)↑ | harmonic mean of Div. and Spars. |
| Unary(%)↑ | share respecting actionability constraints |
| Table 2. Protocol B | |
| Val.↑ | prediction flipped to the target class |
| Prox.-Cont↓ | L1 on continuous features |
| Spars.-Cat↓ | categorical features changed |
| ε-Spars.↓ | continuous features changed beyond 0.05 of range |
| LOF↓ | median log Local Outlier Factor (Breunig et al., 2000) |
| Div.↑ | mean pairwise mixed L1/Hamming distance |
W1 / Q2. Interaction between binning and the reward coefficients
B and λ do not interact. We conducted additional study with joint grid B ∈ {16, 64} × λ_d ∈ {0, 0.4, 1.0} × λ_p ∈ {0, 0.4, 1.0} on Adult (λ_v = 1.0, λ_s = 0.8). Orthogonality is structural as B sets decoder and action-space resolution and λ shapes the target distribution. They coupled only through the terminal target R (Malkin et al., 2022). So the argmax over λ should not move with B.
| Metric | Spearman ρ | Does argmax (λ_d, λ_p) move with B? |
|---|---|---|
| Validity | 1.00 | no |
| Prox.-Cont (L1) | 0.88 | λ_p moved one step (1.0,0) to (0.4,0) |
| ε-Spars. | 0.80 | no |
| LOF | 0.88 | no |
| Div. | 0.75 | nominal (0.74 vs 0.73) |
Validity stays 0.91–1.00.
Different preference coefficients for different datasets: Protocol A uses one configuration for all four datasets ( = 1.0, = 0.01, proximity/plausibility off, B = 4, ε = 0.1); Protocol B uses one for four of five ( = 1.0, = 0.8, = 0.4, = 0.4, B = 64, ε = 0.1), departing only for Lending Club ( = 0.5, = 0.3, ε = 0.25). Lending Club's margins are the most compressed of the five ( - = 0.60 vs 0.67–0.82 for other datasets), so at ε = 0.1 near-miss edits earn enough partial validity reward to out-score genuine flips, and validity collapses to 0.22. We will clarify this in Section 4.2.
W2 / Q3. Omission of recent constraint-aware baselines such as LAPACE
LAPACE was omitted because it appeared at ICLR 2026, concurrent with this submission.
The methods are complementary by construction. LAPACE interpolates latent codes toward class centroids of a Gaussian-mixture VAE; CounterFlowNet samples discrete edit sequences from a GFlowNet with terminal distribution ∝ reward and forbidden actions masked. In consequence, LAPACE's validity presupposes correctly classified centroids while CounterFlowNet rewards classifier flips directly; LAPACE's diversity is capped by its component count (5 published; we grant 10 to match with other baselines), while CounterFlowNet's budget buys reward-proportional samples; LAPACE corrects differentiable constraints approximately, while CounterFlowNet enforces immutability and directionality exactly, with readable edits and native categoricals.
We conducted additional evaluation and include the results below.
| Dataset | Method | Val.↑ | Prox.-Cont↓ | Spars.-Cat↓ | ε-Spars.↓ | LOF↓ | Div.↑ | Modes↑ |
|---|---|---|---|---|---|---|---|---|
| Bank | CFN | 1.00 | 0.25 | 0.23 | 0.38 | 0.21 | 0.21 | 2.99 |
| Bank | LAPACE | 0.82 | 0.59 | 0.38 | 0.66 | 0.11 | 0.33 | 0.73 |
| Default | CFN | 0.96 | 0.12 | 0.26 | 0.19 | 0.34 | 0.14 | 1.60 |
| Default | LAPACE | 0.92 | 0.33 | 0.39 | 0.45 | 0.24 | 0.12 | 0.55 |
| GMC | CFN | 1.00 | 0.12 | 0.63 | 0.25 | 0.24 | 0.18 | 1.59 |
| GMC | LAPACE | 0.81 | 0.36 | 0.87 | 0.44 | 0.12 | 0.15 | 0.54 |
| Lending Club | CFN | 0.94 | 0.56 | 0.41 | 0.29 | 0.21 | 0.24 | 4.65 |
| Lending Club | LAPACE | 0.02 | 0.26 | 0.21 | 0.65 | 0.03 | 0.09 | 0.03 |
| Adult | CFN | 1.00 | 0.19 | 0.27 | 0.36 | 0.20 | 0.21 | 0.74 |
| Adult | LAPACE | 1.00 | 0.41 | 0.43 | 0.51 | 0.18 | 0.28 | 1.13 |
CounterFlowNet leads in modes everywhere. Conversely, LAPACE wins LOF everywhere, consistent with its manifold-fidelity design target. Its 0.02 validity on Lending Club is centroid-anchored interpolation failing under compressed margins we mentioned above in Q2/W1.
L1. Limitations: placement of the binning and reward-coefficient discussion
We agree on placement and will lift both into the main body: a paragraph on the binarization effect and a paragraph explicitly stating the reward coefficients in evaluation protocols with Landing Club tight margins exception.
I would like to thank the authors for their response. I am happy with the new results provided and will maintain my score.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces a generative approach for creating counterfactual explanations for mixed-type tabular data: CounterFlowNet. By formulating counterfactual generation as a sequential decision process and using conditional Generative Flow Networks (GFlowNets), the method samples counterfactuals in proportion to a user-defined reward function. This reward balances validity, proximity, sparsity, and plausibility.
The authors carry out experimental evaluations on eight tabular datasets. CounterFlowNet provides strong trade-offs among the desired counterfactual properties compared to several optimization-based and generative baselines.
Strengths and weaknesses
Strengths of the paper:
-
Framing counterfactual generation as a sequential decision process guided by GFlowNets is a suitable approach. It allows explicit encoding of CF desiderata directly into the sampling distribution.
-
The paper introduces a principled framework that models counterfactual generation as reward-proportional sampling using GFlowNets. The proposed formulation naturally incorporates multiple counterfactual desiderata, including validity, sparsity, proximity, and plausibility, into a unified objective.
-
The two-stage action mechanism effectively unifies the treatment of categorical and continuous features.
-
The method is evaluated on multiple datasets under two established evaluation protocols and compared against a broad set of optimization-based, sampling-based, and generative baselines.
Weaknesses of the paper:
-
While the formulation is good, much of the technical contribution appears to stem from adapting the GFlowNet framework to counterfactual generation. The reward components themselves are largely standard counterfactual objectives
-
The paper argues that reward-proportional sampling is advantageous. However, it remains unclear whether the observed gains arise from the GFlowNet framework itself, the sequential editing formulation, or the particular reward design. Additional ablations or comparisons with alternative generative paradigms would strengthen the claims.
-
Experiments focus exclusively on tabular datasets. While this is a common setting for counterfactual explanations, it limits the evidence for the broader applicability of the proposed framework.
Questions
-
Could the authors clarify which component contributes most to the observed improvements?
-
Could the authors discuss how the method compares conceptually and empirically to alternative generative paradigms such as autoregressive policies or diffusion-based approaches?
-
Could the authors better articulate what constitutes the main methodological novelty beyond adapting GFlowNets to the counterfactual generation setting?
Limitations
yes
Final justification
After reading the rebuttal, I believe that most of my original concerns have been satisfactorily addressed.
The authors more clearly articulate the methodological novelty beyond simply adapting GFlowNets. Also, my concern regarding the source of the observed performance gains is addressed through a new ablation comparing different search strategies.
Overall, I find the rebuttal convincing. Accordingly, I increase my recommendation to 4.
Formatting concerns
No paper formatting concerns observed.
2 comments
Rebuttal
We thank the reviewer for the detailed reading and for acknowledging that framing counterfactual generation as reward-proportional sampling is a principled formulation, that the two-stage action mechanism unifies categorical and continuous features, and that the evaluation covers two established protocols and a broad set of baselines. The concerns raised concentrate on where the observed gains originate and on the scope of the contribution; we address each below and report new experiments run for this rebuttal.
W1 / Q3. Main methodological novelty beyond adapting GFlowNets
Our main contribution is a method that encodes the four core counterfactual desiderata, validity, proximity, sparsity, and plausibility, directly and explicitly in the training signal, rather than approximating them through a differentiable surrogate objective. Adopting GFlowNets is what makes this possible: unlike other generative approaches, they let us encode the desiderata in a reward that need not be differentiable to be optimized, and align the sampling distribution with that reward rather than with a proxy. As a generative model, it moreover produces multiple diverse counterfactual explanations per input, sampled in proportion to their reward, rather than a single optimized solution. Realizing this required several non-trivial design choices: a two-stage action space handling heterogeneous tabular data; a conditional formulation rooted at s₀ = x₀, so that trajectories are edit sequences; a reward that captures standard CF desiderata as a target distribution rather than a per-instance objective, encoding them directly instead of approximating their components in a loss function; the empirical finding that inference-time masking matches constrained retraining while guaranteeing 100% constraint satisfaction (Table 3).
W2 / Q1. Which component contributes most to the observed improvements?
This concern closely mirrors Reviewer ewTd's Q1/W1, and we address both with the same new experiment. Please see that response for full result tables. To illustrate the contributions, we keep the sequential editing formulation and the reward fixed, and vary only the generative paradigm: three training-free searches over our action space (random rollouts, beam search, evolutionary search) and REINFORCE (trained to maximize expected reward instead of the trajectory-balance objective). To capture the quality–diversity trade-off, we also report the number of modes, a standard generative metric (Bengio et al., 2021). We calculate it by counting distinct counterfactuals with reward > 0.5 and pairwise distance > 0.7 averaged over the input instances.
The results show a clear pattern: random search is diverse but low-quality, beam search is high-quality but low-diversity, and REINFORCE collapses to a single solution, while CFN achieves the highest number of modes on 4 of 5 datasets. Since all these methods share the same reward and the same sequential action space, the remaining gains are attributable to the GFlowNet training objective itself. Its reward-proportional sampling is what delivers validity and diversity simultaneously, rather than trading one for the other. We will include these ablations in the revised paper.
W3. Experiments focus exclusively on tabular datasets
The tabular focus is a deliberate choice, not an incidental limitation. Heterogeneous tabular data is the primary setting for counterfactual explanations and recourse, and it is where an open problem remains: to our knowledge, no existing generative method explicitly optimizes the counterfactual desiderata. Prior approaches rely on surrogate objectives such as the ELBO (CCHVAE) or NLL (CeFlow, DiCoFlex), shaping counterfactual quality only indirectly through a learned latent space. CounterFlowNet closes exactly this gap: its sampling distribution is proportional to a reward that directly encodes validity, sparsity, proximity, and plausibility. Extending to other modalities is a separate research question, since the desiderata change substantively. In images, pixel-level sparsity yields adversarial perturbations rather than explanations and plausibility becomes perceptual. In text, plausibility means grammaticality and fluency. In consequence, other domains need special treatments, which significantly exceeds the scope of our paper.
Q2. Comparison to alternative generative paradigms (autoregressive policies, diffusion)
We address both paradigms conceptually and will add a condensed discussion to the related work.
Generative paradigms such as diffusion models, normalizing flows, and VAEs model the joint distribution over the entire feature set conditioned on the original observation, and therefore modify all attributes simultaneously: sparsity is not native, categorical features need multinomial or Gumbel-softmax treatment, and quality/actionability depend on the training distribution or post-hoc filtering. CounterFlowNet instead makes sparse per-step edits over a unified discrete action space, encodes quality directly in the sampling reward, and guarantees actionability via inference-time masking. Diffusion for tabular counterfactuals is very recent (e.g. Zhang et al., 2025). We could not locate a public implementation, so a direct comparison is not feasible within the rebuttal window. We do compare against three amortized generative baselines: L2C, C-CHVAE, and DiCoFlex.
Autoregressive policies are the closest paradigm, most notably RL over an MDP of feature edits like FastAR (Verma et al., 2022). We share its structural sparsity via per-step single-feature edits and actionability via the transition structure rather than soft penalty. Three differences are decisive:
(i) FastAR edits by fixed unit increments, requiring many steps per feature, while our two-stage action assigns any admissible value in one step; (ii) its reward is defined differently, as an additive sum of a proximity cost, a kNN manifold penalty, and a validity bonus, rather than as our multiplicative composition of the four desiderata.; (iii) Most importantly, FastAR maximizes expected reward and is mode-seeking, one recourse path, no diversity evaluation, whereas CounterFlowNet samples proportionally to reward, so a diverse set of high-quality counterfactuals emerges by construction.
Since a direct empirical comparison with FastAR is infeasible, because its source code relies on outdated libraries, we implemented an alternative RL-based model (REINFORCE) by substituting the trajectory balance objective with an expected-reward objective in our CNF formulation. The empirical comparison is shown in our answer to Reviewer ewTd Q1/W1.
FastAR: https://arxiv.org/abs/2106.03962 Zhang et al., 2025: https://arxiv.org/abs/2509.00876
Thank you for the detailed rebuttal and for conducting additional analyses to address my concerns. I appreciate the clarification of the novelty and also the additional ablation study comparing CounterFlowNet with alternative search strategies.
I still think the paper is primarily demonstrated in the tabular counterfactual setting, so broader applicability remains an interesting direction for future work rather than something established by this paper. However, I agree that this does not substantially weaken the contribution given the paper's stated scope.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the positive assessment. We are grateful for the constructive questions, which led us to run additional experiments that we believe substantially strengthen the paper. We address each point below.
W1 / Q1. Disentangling the GFlowNet from the hand-designed reward
To disentangle the contribution of GFlowNet from the reward and action space, we provide a comparison over three training-free searches over our action space and reward: random (uniform legal rollouts), beam-search and evolutionary search. Moreover, we include REINFORCE which is CFN trained to maximize the expected reward instead of trajectory balance objective. To better assess the quality-diversity tradeoff, we reported the number of modes which is a common generative metric (Bengio et al., 2021). In our case, it's the number of counterfactuals with reward > 0.5 and pairwise distance > 0.7, averaged over the input instances. The reward threshold of 0.5 was chosen because a higher value filters out most of the data points for the baselines (DiCoFlex, DiCE, CCHVAE), and the distance threshold of 0.7 was chosen based on the range of pairwise distances between CFs from 0.25 to 2.0. Below, we present the results:
Baselines (#modes)
CFN gets the most distinct high-reward counterfactuals (#modes) on 4 of 5 datasets. The new baselines worked as expected: random produced diverse, yet low-quality candidates; beam-search scored highly, but with low diversity; REINFORCE collapsed to single best solution.
W2. Methodological novelty
Please see our response to Reviewer Kgw3 (W1/Q3), where we detail the non-trivial design choices required by the adaptation.
Q2. Computational cost compared to competing methods
We report training and inference times on the Adult dataset below. Due to the rebuttal space limit, the full comparison across all datasets will be included on reviewer's request as well as in the camera-ready version.
These results illustrate the benefit of amortized inference over per-instance optimization: while DiCoFlex and CFN incur the highest one-time training cost, this cost is amortized across all subsequent queries, and all amortized methods generate counterfactuals in near real time. We note that further runtime improvements of our method via batch inference are possible. We did not pursue them here, as runtime optimization was outside the scope of this work.
Q3. Sensitivity of the ablation trends to the fixed reward coefficients
We would like to clarify the analysis reported in the paper. Figure 3 is a single slice of the full λd × λp grid in Appendix J, where the same trends hold. We will correct the caption and reference Appendix J more prominently.
C1. Discussion of desiderata in Section 3.1
We agree and will expand Section 3.1. The four desiderata (c1)–(c4) were selected because they are the soft, per-sample criteria that admit graded trade-offs, and thus map one-to-one onto the four factors of the reward (Eq. 4). Actionability is the property of counterfactual explanations that alter no immutable features (age, race), respecting monotone directions (Ustun et al., 2019). It is deliberately not among them: it is a hard constraint that no trade-off should override, so it is enforced exactly via constraint-aware action masking (Section 3.6) rather than rewarded. Diversity is a set-level property and comes from reward-proportional sampling itself (Eq. 3). The revised Section 3.1 will introduce actionability with the other desiderata and state this taxonomy upfront.
C2. Reward coefficients used in the main experiments (Section 4.2)
Protocol A uses one configuration for all four datasets (λv = 1.0, λs = 0.01, proximity/plausibility off, B = 4, ε = 0.1); Protocol B uses one modal configuration for four of five (λv = 1.0, λs = 0.8, λd = 0.4, λp = 0.4, B = 64, ε = 0.1), with exactly one departure Lending Club (λs = 0.5, λd = 0.3, ε = 0.25). Lending Club has the most compressed margins of the five Protocol-B classifiers (mean porig − pother 0.60 vs 0.67–0.82 for other datasets). At ε = 0.1 Lending Club instance draws the largest partial validity reward of any dataset, enough for a near-miss edit to out-score a genuine flip under the multiplicative reward; under shared ε = 0.1 its validity falls to 0.22. We will clarify this in Section 4.2.
C3. Sensitivity to the number of bins and comparison to continuous baselines
Protocol B evaluation compares our method with baselines that are designed and executed on the continuous features without binarization. Therefore binarization affects only our method. We report Bin-count sensitivity in Appendix I. We agree that it warrants a main-text summary.