- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
no
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.
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.