Pareto Conditioned Networks learn multiple multi-objective reinforcement learning behaviours by conditioning a single policy on a desired return command. However, the local mapping from command and state to action remains opaque. We propose command-space counterfactual explanations for PCNs: given a fixed state, original command, and foil action, we search, in a black-box setting, for a minimally changed desired-return command under which the same trained policy would choose the foil. Our contributions are threefold. First, we formulate PCN explanations as return-command interventions, using a return-only PCN variant that avoids the added ambiguity of horizon-conditioning. Second, we adapt adversarial machine learning methods to reinforcement-learning explanations. Third, we introduce a boundary-seeded directional search that improves over purely local optimization in the command-action landscape, resulting in our proposed approach CF-ZOO. The resulting explanations are actionable and intuitively expressed in the user's own preferences: "If your trade-off had shifted slightly towards X, the agent would have chosen Y."
Figures & tables
Figure 1: Pareto front recovered by the return-only PCN variant on Minecart. Blue points (O) show the final logged learning front; orange points (X) show rollout-achieved returns.
Table 1: Comparison of our perturbation method with a white-box C&W baseline. Success-rate intervals are Wilson score 95% confidence intervals. Dist. denotes the mean scaled ℓ2 distance over successful counterfactuals.
Figure 3: Command-space decision landscapes for four qualitative showcase scenarios. The title explains the flip, which return was chosen, and the timestep of the rollout. We mark the original command (circle) and the C&W (cross), our CF-ZOO (star), and nearest Pareto-front (diamond) counterfactuals, with arrows for the local margin gradient. Axes show true values in rewards.
Environment
Cases
Succ.
Rate [95% CI]
Dist.
Branch-Path
44
30
68.2 [53.4,80.0]
0.466
B-Bottles
8
6
75.0 [40.9,92.9]
0.030
Collect-Two
152
152
100.0 [97.5,100.0]
0.493
DST
243
70
28.8 [23.5,34.8]
0.641
Fruit-Tree
672
672
100.0 [99.4,100.0]
0.231
Minecart
1846
1341
72.6 [70.6,74.6]
0.360
Table 2: Stress test of CF-ZOO . Each case corresponds to a state, command, and valid foil action. Success-rate intervals are Wilson score 95% confidence intervals. Dist. denotes the mean scaled ℓ2 distance over successful counterfactuals.
Outcome
Cases
% all [95% CI]
% feasible [95% CI]
Success †
2515
78.7 [77.3,80.1]
94.4 [93.5,95.2]
Grid-infeasible foil
531
16.6 [15.4,18.0]
–
Search-limited failure
149
4.7 [4.0,5.5]
5.6 [4.8,6.5]
Table 3: CF-ZOO diagnosis. Feasibility is assessed using a grid with 200 values per command dimension, yielding 200d commands for R∈Rd . Percentages in the % feasible column use only the feasible cases. † Includes 93 additional cases recovered by increasing the budget to 100k. Brackets denote 95% Wilson confidence intervals.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Parameter
White-box comparison
Stress test
Random directions
21,000
9,001
Maximum queries
21,000
9,001
Ray binary-search steps
16
16
Margin κ
0.05
0.05
Penalty coefficient c
1.0
1.0
ZOO-ADAM learning rate
0.01
0.01
Appendix
Table 4: CF-ZOO hyperparameters used in the reported experiments. The white-box comparison uses the same settings as the stress test except for the random-direction and query budgets.
Env.
Method
Time (s)
Branch
White-CW
9.44
Branch
CF-ZOO
53.21
B-Bottles
White-CW
8.55
B-Bottles
CF-ZOO
53.08
Collect
White-CW
7.98
Collect
CF-ZOO
45.38
Appendix
Table 5: Mean runtime per counterfactual query. The aggregate row is weighted by the number of cases in each environment. Environment abbreviations follow the notation used in the main paper.
Budget
Mean ± std (s)
Median (s)
10k
19.1 ± 0.8
19.0
20k
43.7 ± 1.8
43.5
30k
60.5 ± 2.5
60.4
50k
101.4 ± 2.6
102.1
75k
108.4 ± 3.5
107.3
100k
176.0 ± 6.4
178.0
Appendix
Table 6: Mean ( ± standard deviation) and median wall-clock time per counterfactual query across query budgets.