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.
We give an attribution method for neural combinatorial-optimisation (CO) policies that (i) decomposes a decision by constraint families via LP-relaxation duals, (ii) certifies counterfactuals through a combinatorial feasibility model (implemented as a CSP feasibility-decision model), and (iii) bounds the size of a PAC-sufficient explanation with a Bonferroni-corrected Hoeffding sufficient-subset test along a greedy ordering. Across three CO problems and three seeds, our LP-anchored Λ-attribution matches the CF-derived signal at 96.5% on CVRPTW (n_cert=344) and 77.2% on the Orienteering Problem (n_cert=281) vs 75.0% and 35.2% for proxy gradient (paired diffs +0.215 and +0.420; McNemar exact p≤10−14). In the rank-aligned regime of the Flexible Job-Shop Scheduling Problem, both backends agree on every CSP-certified flip (n_cert=59), confirming the no-gain prediction. Bonferroni-PAC subsets average 5.0 nodes per step (M=70, ε=δ=0.2, kmax=25). Reference implementation: https://github.com/sohaibafifi/neuro-co-cax
Sohaib Lafifi
Univ. Artois, UR 3926, Laboratoire de Génie Informatique et d’Automatique de l’Artois (LGI2A) Béthune, France
Intrinsic rewards are designed to guide exploration in reinforcement learning by assigning value to an agent's experience, for example through prediction error or learning progress. However, maximizing these rewards need not produce the most informative experience available. We propose a formal criterion for exploration that compares policies by the counterfactual information they acquire: how well their histories can substitute for experience under alternative policies. We construct a single, simple environment in which specified count-based, prediction-error, empowerment, and information-gain objectives have maximizing policies that are Pareto-suboptimal at acquiring counterfactual information. We explain these failures and establish conditions under which existing intrinsic rewards successfully encourage optimal exploration. We also construct an objective that assigns a higher value whenever exploration strictly improves under our criterion.
Scott W. Viteri, Laura Gomezjurado Gonzalez, Clark Barrett
Reinforcement Learning (RL) has demonstrated its ability to solve complex decision-making problems in a variety of domains, by optimizing reward signals obtained through interaction with an environment. However, many real-world scenarios involve multiple, potentially conflicting objectives that cannot be easily represented by a single scalar reward. Multi-Objective Reinforcement Learning (MORL) addresses this limitation by enabling agents to optimize several objectives simultaneously, explicitly reasoning about trade-offs between them. However, the ``black box" nature of the RL models makes the decision process behind chosen objective trade-offs unclear. Current Explainable Reinforcement Learning (XRL) methods are typically designed for single scalar rewards and do not account for explanations with respect to distinct objectives or user preferences. To address this gap, in this paper we propose TREX, a Trajectory based Explainability framework to explain Multi-objective Reinforcement Learning policies, based on trajectory attribution. TREX generates trajectories directly from the learned expert policy, across different user preferences and clusters them into semantically meaningful temporal segments. We quantify the influence of these behavioural segments on the Pareto trade-off by training complementary policies that exclude specific clusters, measuring the resulting relative deviation on the observed rewards and actions compared to the original expert policy. Experiments on multi-objective MuJoCo environments - HalfCheetah, Ant and Swimmer, demonstrate the framework's ability to isolate and quantify the specific behavioural patterns.