Generation of Policy-Level Explanations for Reinforcement Learning

05/28/2019 ∙ by Nicholay Topin, et al. ∙ Carnegie Mellon University 0

Though reinforcement learning has greatly benefited from the incorporation of neural networks, the inability to verify the correctness of such systems limits their use. Current work in explainable deep learning focuses on explaining only a single decision in terms of input features, making it unsuitable for explaining a sequence of decisions. To address this need, we introduce Abstracted Policy Graphs, which are Markov chains of abstract states. This representation concisely summarizes a policy so that individual decisions can be explained in the context of expected future transitions. Additionally, we propose a method to generate these Abstracted Policy Graphs for deterministic policies given a learned value function and a set of observed transitions, potentially off-policy transitions used during training. Since no restrictions are placed on how the value function is generated, our method is compatible with many existing reinforcement learning methods. We prove that the worst-case time complexity of our method is quadratic in the number of features and linear in the number of provided transitions, O(|F|^2 |tr_samples|). By applying our method to a family of domains, we show that our method scales well in practice and produces Abstracted Policy Graphs which reliably capture relationships within these domains.



There are no comments yet.


page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Recent advances in neural networks have led to powerful function approximators, which have been successfully used to support Reinforcement Learning (RL) techniques to solve difficult problems. However, the deployment of RL systems in real-world use cases is hampered by the difficulty to verify and predict the behavior of RL agents. In the context of RL, autonomous agents learn to operate in an environment through repeated interaction. After training, the agent is able to make decisions in any given state, but is unable to provide a plan nor rule-based system for determining which action to take. Generally, a policy which selects actions (

) is available along with its value function (), which predicts future reward from a state. However, neither the outcome of the actions nor the sequence of future actions taken is available. Without these, a human operator must blindly trust an RL agent’s evaluation.

Existing techniques for explaining Deep Reinforcement Learning agents borrow techniques used for explaining neural network predictions, so they focus on explaining one state at a time. These techniques pinpoint the features of the state that influence the agent’s decision, but do not provide an explanation incorporating expected future actions. Therefore, the explanation is insufficient for a human supervisor to decide whether to trust the system. Likewise, no whole-policy view is available, so evaluating the agent’s overall competency (as opposed to single-state evaluation) is impossible. For these reasons, we are interested in explaining policies as a whole: giving the context for action explanations and providing an abstraction of an entire policy.

To address the aforementioned issues, we propose the creation of a full-policy abstraction, which is then used as the basis for generating local explanations. We introduce Abstract Policy Graphs (APGs) as such a full-policy abstraction. Each APG is effectively a graph where each node is an abstract state and each edge is an action with associated transition probability between two abstract states. Using a mapping from states to abstract states, one can identify which groups of states the agent treats similarly, as well as predict the sequence of actions the agent will take. This explanation provides local explanations along with a global context.

Additionally, we propose an algorithm, APG Gen, for creating an APG given a policy, a learned value function, and a set of transitions. Starting with a single abstract state which encompasses the full state-space, APG Gen uses a feature importance measure to repeatedly divide abstract states along important features. These abstract states are then used to create an APG. The splitting procedure additionally identifies which features are important within each abstract state. Notably, this general procedure is compatible with existing methods for learning a policy and value function.

The main contributions of this work are as follows: (1) we introduce a novel representation, Abstract Policy Graphs, for summarizing policies to enable explanations of individual decisions in the context of future transitions, (2) we propose a process, APG Gen, for creating an APG from a policy and learned value function, (3) we prove that APG Gen’s runtime is favorable (, where is the set of features and is the set of provided transitions), and (4) we empirically evaluate APG Gen’s capability to create the desired explanations.

2 Related Work

Prior work in explaining Deep Learning systems focuses on explaining individual predictions. Explaining individual predictions in terms of input pixels has been done using saliency maps based on model gradients, as in [Simonyan, Vedaldi, and Zisserman2013] and [Samek, Wiegand, and Müller2017]. Alternatively, local explanations are learned for regions around an input point to identify relevant pixels [Ribeiro, Singh, and Guestrin2016].

[Iyer et al.2018] leverage these pixel-level explanations and use an object detector to produce object saliency maps, which are explanations for the behavior of deep RL agents in terms of objects. Unlike our method, their method explains a single decision without the context of potential future decisions. [Ehsan et al.2018] create natural language explanations for each action the agent performs. These explanations are learned using a human-provided corpus of explanations. These explanations are only for individual tuples, so their method does not produce policy-wide explanations.

Existing RL-specific methods with policy-level explanations impose additional constraints. Some works explain agent behavior, but require the agent to use a specific, interpretable model. For example, Genetic Programming for Reinforcement Learning

[Hein, Udluft, and Runkler2017]

use a genetic algorithm to learn a policy which is inherently explainable. Unlike our method, this method is incompatible with arbitrary RL systems due to its reliance on learning inherently small policies using a genetic algorithm.

Other methods require a ground-truth or learned model of the environment, which may be more complicated than the learned policy. [Khan, Poupart, and Black2009] produce contrastive explanations which compare the agent’s action to a proposed alternative, but require a known factored MDP. [Hayes and Shah2017] explain robot behavior using natural language. These explanations are formed using a model learned from demonstrations and based on operator-specified “important program state variables” and “important functions.” Other work avoids automatically identifying patterns in agent behavior and relies on a human to manually identify similar sets of states. [Zahavy, Ben-Zrihem, and Mannor2016] embed states into a space where states within certain regions of this space behave similarly. They group these states based on region to produce explanations. However, a human operator must form these groups and identify within-group similarities.

An overview of previous methods for creating abstractions for Markov Decision Processes can be found in

[Li, Walsh, and Littman2006]. These methods focus on creating an abstraction for use with an RL agent. To that end, they create an abstract Markov Decision Process, which is usually done before or during learning. This differs from our use case where we seek only to explain the transitions that occur under a specific policy, so our abstraction is instead a Markov chain created after a policy has been learned.

3 Background

3.1 Solving Markov Decision Processes

In the context of RL, an agent acts in an environment defined by a Markov decision process (MDP). We use a six-tuple MDP formulation: , where is the set of states, is the set of actions, is the transition function, is the reward function, is the discount factor, and is the set of terminal states which may be the empty set [Sutton and Barto1998]. In this work, we assume all states consist of an assignment to features. Specifically, each state consists of a value assignment to each feature . An agent ultimately seeks to learn a policy, the function , which maximizes total discounted reward. Note that the policy need not be deterministic, but we only consider the deterministic case in this paper. In the process of learning a policy, an RL agent generally approximates the state-value function or the action-value function. The state-value function is the expected future discounted reward from the state when policy is followed:


The action-value function is the expected future discounted reward from the state given the agent takes action and then follows policy . Note that the state-value function can be obtained from the action-value function: . These are used in methods based on Q-Learning, Sarsa(), and actor-critic methods [Sutton and Barto1998]. Therefore, the value-function is generally available alongside the policy of a trained agent.

3.2 Feature Importance Function

We use an importance measure for grouping states from an original MDP into abstract states. An importance measure is a function which represents the importance of feature in determining how a system treats a set of inputs (e.g., states), . If takes on the same value for all or its value does not influence the system’s output, then is not important. We use the Feature Importance Ranking Measure (FIRM) [Zien et al.2009] since it is fast to compute exactly for binary features and can be meaningfully interpreted.

To calculate importance, FIRM uses , the conditional expected score of for a feature with respect to an arbitrary function . This score is the average value of for all within the set where feature takes value :


Intuitively, if is a flat function, then , the value of , has no impact on the average value of over , so provides little information. However, if significantly impacts , then the value of will vary. This motivates FIRM’s importance measure

, the variance of the conditional expected score:


In specific cases, the exact value of can be computed quickly. One such case is when is a binary feature. For a binary feature, the importance measure is given by


In the case of binary features, FIRM corresponds to the expected change if the feature switches from 0 to 1. Conveniently, sign is preserved in the binary case, showing magnitude of importance as well as direction of effect.

4 Approach

In Section 4.1, we describe Abstract Policy Graphs, our representation for explaining a policy. In Section 4.2, we propose APG Gen, a method for constructing such explanations. In Section 4.3, we describe local explanations we produce from our policy explanations. Finally, in Section 4.4, we show that our method has favorable asymptotic runtime: quadratic in the number of features and linear in the number of transition tuples considered, where there are usually few features and runtime sub-linear in the number of transitions is unattainable.

4.1 Abstract Policy Graphs

To create a policy-level explanation, we express the policy as a Markov chain over abstract states where edges are transitions induced by a single action from the original MDP, which we term an Abstract Policy Graph (APG). We present an example in Figure 1. Consider a mapping function, , which maps states in the original MDP ( states) to abstract states. In effect, each abstract state represents a set of grounded states from the original MDP. We use the phrase “an agent is in abstract state ” to mean that the current state of the domain, , maps to (i.e., ). Let each set contain all states interchangeable under the agent’s policy such that the agent behaves similarly when starting in a state from the set in a similar fashion. As a result, states in which the agent behaves similarly lead the agent to states in which the agent also behaves similarly. If the agent’s transitions between grounded states are approximated using a Markov chain between these abstract states, then states which are treated similarly are readily identified and the agent’s transitions between abstract states can be predicted.

For example, let the agent’s distribution of actions be approximately equal for all future time-steps for all grounded states in the set:


for all and within a set, where is the state reached from in further time-steps using policy .

If the transition function is deterministic, then the agent takes the same sequence of actions from each grounded state in the set because there is only a single for each and . In addition, since no two sets could combine to form an interchangeable set, then the abstract states for all are identical, too. Since the probability of transitioning from one abstract state to another after one action is then either zero or one (regardless of grounded state), the agent is effectively traversing a Markov chain of abstract states induced by its policy.

However, most interesting domains have stochastic transition functions. Under a stochastic transition function, two grounded states can satisfy Equation 5 while having different transition probabilities to future abstract states. The transition probability from one abstract state to another can be approximated as the average transition probability for grounded states in the source abstract state. For stochastic policies, the probability of taking any given action can be similarly approximated as the average over all grounded states in the source abstract state. The transition probability is no longer exact for any given grounded state in the set but is the transition probability for a randomly chosen state in the set. To make predictions for a series of transitions, we make a simplifying Markov assumption: the abstract state reached, , when performing an action depends only on the current abstract state, . This assumption leads to approximation error but works well in practice, as shown in Section 6.2.

The abstract states now form a Markov chain, as desired. This final product allows human examination of higher-level behavior (e.g., looking at often-used trajectories and checking for loops), prediction of future trajectory (along with accompanying probability), and verification of agent abstraction (e.g., ensuring agent’s behavior is invariant to certain features being changed).

Figure 1: An example Abstract Policy Graph with edge labels indicating transition probabilities. The abstract state identifier is shown within each node, and the action taken is written adjacent to the node.

4.2 APG Construction

We propose an algorithm for creating APGs, APG Gen. It first divides states into sets to form abstract states, then computes transition probabilities between them.

Importance Measure

APG Gen is compatible with arbitrary interchangeability measures. We choose as it is readily available, but the method does not rely on this choice. Using an interchangeability measure based on Equation 5 is difficult since it would depend on an expectation over all future states, which is often computationally expensive and requires knowing transitions for all states. We note that the definition of in Equation 1 also includes an expectation over all future future states, as well as a dependency on the policy. Since the full state-value function is generally available and does not require computing additional expectations, we use it as our measure of interchangeability. The intuition is that two states with similar state-values lead to similar future outcomes in terms of reward, so are likely treated similarly by the agent. A different measure could be used instead

With an importance measure for , a set of states which is interchangeable under the agent’s policy should have low for all . Consider the case of , a set containing the original MDP states which should be contained in two abstract states. At least one should have high because the grounded states from the two abstract states are treated differently. If there is no such , then the two sets are treated the same and therefore belong to the same abstract state.

Splitting Binary Features

In the case where all features are binary, if the set is split based on the value of that (into one subset if and the other if ), then both subsets will have be 0, since has a constant value within the subset. This holds for any set of grounded states which will ultimately form several abstract states. Therefore, this splitting procedure can be repeatedly performed to create abstract states from initially larger sets until all features have low importance.

Since each binary feature can only be important once and it is straightforward to split along a binary feature, the use of binary features allows quick computation. Therefore, in cases where the original MDP does not have solely binary features, pre-processing can be done to create features for APG Gen. Note that these features are not used when evaluating (i.e., an unmodified, arbitrary model can be used for approximating ). The binary features are instead used when deciding to which set a specific tuple belongs while performing APG Gen.

Abstract State Division

Since binary features allow efficient splitting, our approach is to initially form sets based on action taken under the current policy and then repeatedly split the set which has the greatest value, as computed within that set. When the importances of all features for all abstract states are sufficiently low, then the abstract states consist of sets of states which are interchangeable under the agent’s policy.

The pseudocode for our method is given in Algorithm 1. To perform the procedure, we require a set of sample transitions. As mentioned in Section 3.1, RL agents generally learn through interacting with a domain, meaning a set of

transitions is generally available. The notation we use for this set is a vector

consisting of entries where action is taken in state , leading to a transition to state , an observed reward , and a termination flag (0 or 1). The policy is used in line 5 to discard transition tuples where the provided policy would perform a different action from the action in the stored tuple. This is done so that the generated explanation reflects only the current policy and not transition tuples observed under past policies.

Lines 2-6 separate the tuples based on the action taken. We pre-compute the feature importance for each set and save it in lines 7-8. Line 9 forms the core procedure, where abstract states are divided until no feature has importance greater than . The abstract state with the most important feature is found, then divided based on the most important feature. The importance of each feature is then re-computed in lines 18 and 20.

1:procedure Div_Abs_States()
2:     for  do
3:          initially, all sets empty      
4:     for  do separate by action
5:         if  then
7:     for  do pre-compute feat. imp.
9:     while  do
13:         for  do split on most imp. feat.
14:              if  then
16:              else
Algorithm 1 Compute abstract states based on transition samples and learned policy.

APG Edge Creation

Once the abstract state sets have been created, we create the mapping function and Markov chain transition matrix using Algorithm 2 (a sparse matrix can be created in an almost identical fashion). In lines 2-4, the contents of each set are used to create the necessary entries in a lookup table for the mapping function. Simultaneously, the transition matrix is initialized to be zero-valued by lines 5-6. Then, in lines 7-13, the mapping function is used in conjunction with the transition tuples within each abstract state set to compute transition probabilities. That is, if a transition tuple is in set , then the origin state, , is in the abstract state represented by . The destination state, , then indicates a connection between and . The transition probability from to is the portion of tuples in which lead to a state in , so each tuple in should increment by , as done in line 13. Terminal transitions are identified in line 9 and instead lead to the special abstract state. This abstract state represents termination and is represented by the highest-numbered row and column in . There will be no incoming edges to if the set of terminal states, , is empty. Line 14 sets to have an edge to itself to create a valid Markov chain.

1:procedure Compute_Graph_Info()
2:     for  do
3:         for  do
4:               create lookup table          
5:         for  do zero matrix
7:     for  do
8:         for  do
9:              if  then terminal go to dummy
11:              else others go to abstract state of next state
14:      add self-loop
Algorithm 2 Create mapping function and transition matrix based on policy graph.

4.3 Abstract State Summarization

The policy graph algorithm presented creates a summary of the overall policy out of abstract states, which are each defined by a set of states from the original MDP. Due to the process which we use to create the abstract states, we can also create a characterization of the states which are in their set. Note that Algorithm 1 splits an abstract state into two based on a feature because is “important” based on chosen function . These s can be trivially recorded and stored for each abstract state. Once the final abstract states have been created, these s indicate which features were previously important. From this, the important features of an abstract state can be determined.

For any state in the transition set, , and a specific abstract state, , if and for any in ’s set and for all which were used to create , then will also be in ’s set. Similarly, if (for similarly defined and ), then cannot be in ’s set. These feature-value assignments are necessary and sufficient to be part of , so this creates an “if and only if” relationship. As a result, for any chosen state , based on the features used to create its abstract state, the “relevant” features can be determined. If the value for any of these features changes, then would be in a different abstract state and treated differently. Similarly, the agent is oblivious to changes in the other features given the values assigned to the relevant features. This relationship allows a human supervisor to determine which features affect how an agent treats a specific state. In addition, a summary of an abstract state can be formed using these same feature-value assignments.

4.4 Computational Complexity

Computing FIRM

Since and , computing and is enough to calculate the importance. These can be computed for all with a single pass through the set of states, as shown in Algorithm 3.

The bulk of the computation is performed in lines 6 to 12. Here, every transition in the set is separately considered. Only a single evaluation of is required regardless of the number of features. This evaluation is used to calculate and for each feature where . The overall complexity of Algorithm 3 is therefore , where is the number of features and is the number of transitions over which FIRM is computed.

1:procedure FIRM()
2:      expected value over full set
3:     for  do
4:          ratio of set with
5:          for in set      
6:     for  do
8:          store sum for
9:         for   do
10:              if  then is tally, is sum
13:      convert sum to average
14:     for   do intermediate terms
Algorithm 3 Compute feature importance for all features for given set of transitions.

APG Gen Runtime

The runtime of Algorithm 1 is quadratic in the number of features and linear in the number of provided transitions, .

Creating the initial abstract states (i.e., those based only on action taken) takes time , where we assume . Computing FIRM for all of these abstract states takes time. The while loop in lines 9 to 21 forms the bulk of the algorithm, which we will analyze last. Creating the lookup and transition tables takes , assuming a zero matrix can be created in constant time for line 6.

For lines 9 to 21, during each iteration of the while loop, the runtime is to insert the new s if a max-heap is used to store the s, to partition the set , and to compute FIRM for both new sets. Note that each time a set is divided, the number of features within that set with non-fixed values (and therefore positive importance) is reduced by one. Therefore, any given tuple may only be part of an evaluated set times. As a result, over all iterations of the loop, the set division and FIRM computation takes at most time. This can happen over the course of up to divisions, so the max-heap insertion takes time at most .

The overall worst-case runtime for APG Gen is then on the order of . This is favorable since runtime must be at least linear in and is generally small compared to the number of tuples.

5 Experimental Methodology

We evaluate APG Gen on a novel domain with scalable state space and controllable stochasticity. We describe this domain, PrereqWorld, in Section 5.1. Experimental settings are described in Section 5.2.

5.1 PrereqWorld

We introduce the PrereqWorld domain for evaluating our approach. This domain is an abstraction of a production task where the agent is to create a specific, multi-component item using a number of manufacturing steps. The size of the state-space for an instance of this domain is controlled by the number of unique items, . The agent may only have one of each item at a time. Production of each item may require some prerequisites, a subset of the other items, but no cycle of dependencies is permitted. In producing an item, the prerequisite items are usually lost. A domain parameter, , controls the probability that an item is lost.

For ease of notation, we assume that the items are numbered according to their place in a topological sort (i.e., an item’s prerequisites must be higher-numbered). Let refer to the desired final item. For each item , let be the set of prerequisite items which requires. A sample MDP is shown in Figure 2. Note how the goal is to make and it requires having and . In turn, also requires .

A state consists of binary features, where the binary feature corresponds to whether the agent has an item . Any state where is a terminal state. The distribution of initial states is uniform over all possible non-terminal states. The reward is for transitioning to a non-terminal state and for transitioning to a terminal state. For simplicity, we take to be , but the optimal policies for any domain instance remain optimal for any in the interval .

There are actions where the action corresponds to attempting to produce item . Actions for currently possessed items or for items with unmet prerequisites have no effect. That is, when feature or there is an such that . When an action is successful, is set to and each of item ’s prerequisites is used with probability . That is, for all , is independently set to with probability and left as with probability .

For the MDP in Figure 2, note that transitions are deterministic () for simplicity and we do not show the transition function for states where ( is present) since all such states are terminal. Notice how the domain can be solved optimally from the starting position (no items present) using the action sequence . This ensures that an is present before is made, and another is created as a prerequisite to creating . This domain is suitable for explanation as it has inherent dependencies and sets of states which are treated identically.

An example APG made by APG Gen for an instance of PrereqWorld is given in Figure 3. APG Gen additionally describes each abstract state. For example, corresponds to all states where features 2 and 3 are 1. This corresponds to always taking action when an and are present, which corresponds to in this domain instance. This correspondence between the domain constraints and the explanation would allow a human operator to verify that an agent is behaving as expected.

, ,


for other and ,

Figure 2: MDP for an example PrereqWorld instance.
Figure 3: An example APG made by APG Gen for a small PrereqWorld domain instance with and . All edges have transition probability 1. The abstract state identifier is shown within each node, and the action taken is written adjacent to the node.

5.2 Experimental Settings

APG Inputs

For consistency, we use value iteration [Sutton and Barto1998] to create the policies and value functions used for experiments, but other methods could be used instead. We iterate until the state-value function no longer changes. To generate the transitions, we generated trajectories from a random starting state until the maximum number was reached.

APG Gen Stopping Criterion ()

In the case of binary features, FIRM corresponds to the expected change should the feature be changed from 0 to 1. Conveniently, sign is also preserved in the binary case, showing magnitude of importance as well as direction of effect. As a result, if no feature for any abstract state has FIRM magnitude greater than , then changing any given feature is not expected to change the value of by more than (e.g., ). We use this as a guideline for setting : we set to be the minimum difference in action-value between the best action and second-best action. For the PrereqWorld domain, this is .


For each plotted data-point, we generate 100 different PrereqWorld instances. We evaluate each instance 1,000 times (i.e., we compute the feature importance for 1,000 different states or predict the th action for 1,000 different trajectories), except for the points in Figure 6, since the explanation size is fixed per APG.

Domain Generation

Each domain instance is parameterized by and as specified in Section 6. For simplicity, is always . For each instance, we randomly add prerequisite relationships by selecting an item uniformly at random and then an item uniformly at random such that . When adding prerequisite relationships, we constrain the expected number of actions to reach a terminal state to be within 10% of . This ensures that the domain can be solved in a reasonable amount of time using value iteration.

6 Experimental Results

Figure 4: Comparison of feature importance prediction accuracy for increasing portion of non-terminal states.

6.1 Local Explanation Generalization

Based on the way we construct our abstract states, we can create “if and only if” conditions for a state in the transition sample set to be part of an abstract state’s set, as described in Section 4.3. From this, we can create a local explanation consisting of the set of features which are important in that state. To evaluate how well APG Gen can generalize when predicting important features, we generate APGs using a set of transitions less than the full set of non-terminal states (i.e., we provide a set of transitions where no tuple shares an such that only a portion of non-terminal states appear as ). We then evaluate the local explanations by comparing to a ground truth computed for individual PrereqWorld instances with a domain parameter of ().

The portions of correct feature classifications (important vs. not important) are shown in Figure 4. APG Gen almost always correctly identifies the important features. Even with only 10% of the states, the prediction is correct over 93% of the time. When given 80% of the states, predictions are correct 98.7% of the time for both the stochastic and deterministic environments, which suggests that the model is able to identify genuine patterns in the policy. We believe the errors the system makes are caused by the splitting order induced by APG Gen’s greedy splitting strategy.

Figure 5: Action prediction for increasing time horizon.

6.2 -hop Prediction Evaluation

An APG is able to predict the actions an agent will take, but this ability comes from an assumption made in Section 4.1. For each pair of abstract states, we produce a transition probability: the probability that the agent will be in the second abstract state, assuming the agent is following a transition tuple chosen at random from that first abstract state. This holds for a single action for states in the provided transition sample set, but not for arbitrary states and not when performing several of these predictions in sequence.

To evaluate the error caused by making this assumption, we have APG Gen predict the distribution of actions the agent will take time-steps in the future. We compare it to the true computed distribution and report the portion of actions for which the true and predicted distributions agree. This is for a domain parameter of (). The size of the transition sample set is half the size of the set of non-terminal states.

The action prediction is consistently correct when the domain is deterministic, so we report results for two stochastic domains in Figure 5. Even with a small , the prediction is less accurate as the number of steps increases, as is expected. However, there is no dramatic decrease, suggesting that the Markovian assumption made in Section 4.2 is reasonable. The steady decline is likely due to computing transition probabilities as an average of the transition sample set.

Figure 6: Comparison of explanation versus state-space size.

6.3 Explanation Size

The purpose of APGs is to be more human-interpretable than a Markov chain made from the base MDP. Therefore, the number of nodes in an APG should be much lower than the number of grounded states in the base MDP. To test this, we construct domains with a number of states ranging from 32 to 1,073,741,824 and count the number of abstract states in the corresponding APG. As in Section 6.2, for each generated APG, the size of the transition sample set is half the size of the set of non-terminal states. The results are presented in Figure 6. Note that the x-axis is in log-scale.

The explanation size grows sub-linearly in while the state-space size grows exponentially in . This suggests that the explanation size is based more on the number of actions required to reach a terminal state than the number of states, which indicates that compact policy representations are being automatically extracted.

7 Conclusion and Future Work

We introduced Abstract Policy Graphs, a whole-policy explanation from which state-specific explanations can be extracted. In addition, we presented APG Gen, an algorithm for creating an APG given a policy, learned value function, and set of transitions, without constraints on how these are created. We showed that APG Gen runs in time quadratic in the number of features and linear in the number of transitions provided, . Additionally, we demonstrated empirical results showing the small size of the APGs relative to the original MDPs, as well as the types and quality of explanations which can be extracted. Together, these show that APG Gen can produce concise policy-level explanations in a tractable amount of time. Future work includes restructuring the explanations extracted from an APG to be better understood by a non-expert. To address this, we are in the process of conducting a user study to evaluate the usefulness of APG explanations in different presentation formats.

8 Acknowledgements

This material is based upon work supported by DARPA grants FA87501720152 and FA87501620042. Any opinions, findings and conclusions, or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of DARPA.