Interactive Robot Training for Non-Markov Tasks

2020·Arxiv

Abstract

Abstract

Defining sound and complete specifications for robots using formal languages is challenging, while learning formal specifications directly from demonstrations can lead to over-constrained task policies. In this paper, we propose a Bayesian interactive robot training framework that allows the robot to learn from both demonstrations provided by a teacher, and that teacher’s assessments of the robot’s task executions. We also present an active learning approach – inspired by uncertainty sampling – to identify the task execution with the most uncertain degree of acceptability. Through a simulated experiment, we demonstrate that our active learning approach identifies a teacher’s intended task specification with an equivalent or greater similarity when compared to an approach that learns purely from demonstrations. Finally, we demonstrate the efficacy of our approach in a real-world setting through a user-study based on teaching a robot to set a dinner table.

I. INTRODUCTION

Humans are adept at quickly learning to perform multistep tasks like setting a dinner table, clearing a desk, or assembling furniture. Tasks such as these typically involve temporal elements like adherence to constraints or decomposition into and prioritization of sub-tasks. Linear temporal logic (LTL) [1] provides an expressive grammar for modeling a range of such non-Markov temporal properties; however, formal languages like LTL are often unwieldy for the average user. In order to facilitate rapid deployment of capable robots to novel scenarios and tasks, it is desirable to allow users with task-specific expertise to directly program robots.

There has been a considerable amount of research related to inferring formal specifications through intuitive interfaces such as demonstrations [2], [3] and preferences expressed as natural language instructions [4], [5]. To resolve the ambiguity associated with these teaching modalities, we proposed planning with uncertain specifications (PUnS) [6], a framework for generating task plans wherein specifications are expressed as a belief (P) over LTL formulas. However, policies computed to optimize the PUnS criteria generate task executions that attempt to satisfy a large number of candidate formulas, potentially over-constraining task execution. In this paper, we demonstrate that belief over LTL formulas can also serve to identify task executions with an uncertain degree of acceptability . These executions can then be demonstrated

1Ankit Shah is a PhD candidate at the Computer Science and Artifi-cial Intelligence Laboratory at the Massachusetts Institute of Technology.

back to the user to elicit an assessment of their acceptability, which in turn can reduce the uncertainty of the distribution.

We also propose an active querying strategy for identifying and performing such ambiguous task executions, and evaluate the performance of this active learning approach compared with learning purely from demonstrations (termed Batch) and another interactive approach wherein task executions are generated by performance of random actions (termed Random). Through results obtained from a simulation experiment, we demonstrate that our proposed method yields posterior belief distributions with higher similarity to the ground truth specification as compared to Batch and Random approaches for a wide range of ground truth task specifications. Finally, we conducted a user study involving training a robot to set a dinner table using our active learning approach, with demonstrations provided either in-person or by remotely operating the robot. Our findings indicate the efficacy of our active learning approach for learning task specifications that are well aligned with the ground truth specifications (average similarity: 0.86 95% CI [0.82,0.92]).

II. RELATED WORK

The objective of allowing domain experts to directly program robots has driven research into methods for programming through intuitive modalities. Prior research has yielded models for learning a teacher’s intended task by processing input provided by the teacher through demonstrations [7], [8], natural language instructions [9], [4], [5], corrections [10], [11], or preferences [12], [13], [14]. One key feature of our approach is the ability to model temporal tasks by using LTL as the specification language. Chanlette-Vazquez et al . [15] proposed observing the demonstrated task execution given the true specification as a maximum entropy estimator . Kasenburg and Scheutz [16] proposed an optimization-based framework for modeling a decision maker’s behavior as an LTL formula. Camacho et al. [17] developed an exact method for mining LTL formulas based on sets of satisfying and non-satisfying traces for the shortest LTL-F(inite) formula. Shah et al. [2] proposed a Bayesian approach to specification inference to model the uncertainty associated with inferring task specifications from a small number of demonstrations. While most of the previous work on learning non-Markov task specifications has focused on learning solely from teacher’s demonstrations, in this paper, we adopt an iterative Bayesian approach that unifies the teacher’s input provided via demonstrations or as assessments of the robot’s task executions.

There has also been considerable interest in developing algorithms that allow the learner to elicit the teacher’s feedback (an active learning paradigm). One expected benefit of an active approach is that the learner can guide the teacher’s feedback such that it is optimally impactful to the learner’s own behavior. Cakmak et al. [18], [19] developed a taxonomy of queries that allow a learner to refine its understanding of the task specifications. Sadigh et al. [12] proposed an active learning framework for sequential decision-making problems that relies upon pairwise preference between candidate trajectories selected according to a maximum volume removal heurisitc; Biyik et al. [14] then extended this to generate queries using maximum information gain criterion. Biyik and Sadigh [13] proposed a batch active framework for preference-based learning wherein multiple queries are generated simultaneously instead of one at a time. Cui and Niekum [20] proposed an active learning model based on information gain that operates on individual state-action pairs, allowing segments of the trajectory to be labeled “desirable” and “undesirable.” However, present research into active learning for robotics has largely focused on formulations that represent the underlying task as a Markov decision process (MDP), with the state space known a priori.

Admitting non-Markov task specifications would increase the robot’s ability to handle complex tasks . Therefore, prior research has led to development of planning algorithms for hybrid controller synthesis [21], symbolic planning [22], [23], and reinforcement learning [24], [25], [26], [27]. In this paper, we build upon planning with uncertain specification (PUnS) [6], a problem formulation that allows task specifica-tions to be expressed as a belief over multiple LTL formulas. Policies computed to optimize the PUnS evaluation criteria satisfy the entire belief distribution rather than a single LTL formula, allowing the learner to reconcile the ambiguity inherent in the teacher’s demonstrations. Our proposed extension leverages the reward machine [27] representing the learner’s belief over LTL formula in order to identify a task execution suitable for active learning.

Our contribution in this paper is twofold. First, we propose a novel interactive learning framework (Figure 1) for nonMarkov tasks that unifies teacher inputs through demonstrations and assessments of the learner’s task execution . Second, we develop an active learning approach that leverages the reward machine representation of an instance of a PUnS problem to identify task executions with the most uncertain degree of acceptability.

III. PRELIMINARIES

A. Linear Temporal Logic

Linear temporal logic (LTL), first proposed by Pnueli [1], provides a flexible grammar for defining temporal properties over Boolean propositions. A valid LTL formula is constructed using atomic propositions (discrete time sequences of Boolean values) and logical and temporal operators. The truth value of an LTL formula is evaluated for traces for a set of atomic propositions, . The notation indicates that formula holds at time t. Trace satisfies (denoted as iff . The minimal syntax of LTL is as follows:

Here, p is an atomic proposition, and and represent valid LTL formulas. The operator X is read as “next” and Xevaluates as true at t if holds at t +1. The operator U is read as “until” and evaluates as true at t if holds at some time t2 > t1 and holds for all t, where t1 t t2. In addition to the minimal syntax, we also incorporate the conjunction operator , along with two other temporal operators: F (eventually) and G (globally). Fholds at t1 if holds for some time t t1; similarly, Gholds at t1 if holds for all t t1.

Finally, a progression Progover an LTL formula with respect to the truth assignment, , is defined such that iff Prog. A progression of an LTL formula with respect to a particular truth assignment must hold at the next time step in order for the original formula to hold at the current time step. We use the syntactic progression rules defined by Bacchus and Kabanza [28] to compute formula progressions.

B. Markov Decision Process

A Markov decision process (MDP) is a planning problem defined as a tuple , where S represents the set of all possible states; A is the set of actions available to the learner; T :is a probability distribution over the next state sgiven current state s S, and the action a A executed at the current time step; and R : is the reward function that returns a scalar value given the current state.

IV. INTERACTIVE TRAINING FOR NON-MARKOV TASKS

A. Problem Formulation

In this setting, the teacher intends to teach a task represented by an LTL formula, , unknown to the learner. The learner maintains a belief over candidate LTL formulas P; this distribution is defined as a mass function, P : . The support of Pis restricted to a discrete set of LTL formulas, , where each formula represents a property belonging to the “Obligations" class as defined by Manna and Pnueli [29]. The learner’s degree of success is determined by comparing the similarity between the belief distribution and the ground truth LTL formula (Equation 15).

The learner represents the task environment as a state, x , and also has access to a set of actions, A. The state of the system, x, maps to a set of finite known Boolean propositions, , through a labeling function, f : . We assume that a trace of propositions, depicted by , is sufficient to determine the truth value of any formula within the support of the learner’s belief; thus, any task execution, whether generated by the robot or demonstrated by the teacher, is represented as a trace, . We also define a Boolean label, , that indicates whether the given trace is acceptable. For the purposes of this paper, we assume that all task executions demonstrated by the teacher are labeled as acceptable, and

Fig. 1: Our proposed Bayesian interactive learning framework that unifies learning from demonstrations provided by the teacher and using informative queries generated by the learner to refine the learner’s belief. The green path depicts the teacher initiating training using task demonstrations. The orange path indicates the learner initiating training by demonstrating a task execution as a query requesting an assessment from the teacher.

that the teacher’s assessment of the executions demonstrated by the learner is perfect.

B. Overview of the Interactive Learning Framework

Figure 1 depicts our proposed interactive framework for training a learner using a combination of demonstrations provided by a teacher and that teacher’s assessments of task executions generated as a query by the leaner . The learner must carry out two processes: learning, wherein the robot updates its belief conditioned upon labeled task executions; and planning, where it must use that belief to generate task executions. We adopt an iterative version of our prior work on Bayesian specification inference [2], and extend it to allow both positive and negative examples (as elaborated upon in Section IV-C). Formally, if the learner’s initial belief over formulas is Piand the learner receives a dataset of task executions and their labels, , then the learner computes an estimate of the posterior distribution, P. The learner updates its belief to be the computed posterior as follows:

The learner has the ability to compute two types of policies depending upon the availability of a teacher to assess its task executions. If an assessment is unavailable, the learner computes a policy to satisfy its current belief, Pi. (This is an instance of planning with uncertain specifications (PUnS) [6], as briefly described in IV-D.) The original nonMarkov planning problem is compiled into an equivalent MDP representation, with a reward function representing the minimum regret criterion [6].

If a teacher’s assessment is available, the learner computes a policy to generate a task execution with the most uncertain degree of acceptability as per the learners current belief, Pi. The teacher’s assessment of this task execution would be most beneficial for reducing the learner’s uncertainty of the true specification; we describe our approach to generating such an informative query in Section IV-E.

C. Bayesian Specification Inference

Bayesian specification inference [2] is a probabilistic model for using demonstrations provided by a teacher to infer LTL formulas corresponding to the task specifications. According to this model, the hypothesis space of candidate LTL formulas comprises the set of formulas corresponding to the following template, which includes conjunctions of temporal behaviors identified by Dwyer et al. [30]:

In our previous work [2], we also proposed a domainindependent approximation of the likelihood function P— depending upon the number of conjunctive clauses — that satisfied the size principle [31]. (A restrictive hypothesis has greater likelihood than a less-restrictive hypothesis in the presence of data conforming to both.) Our approach is founded upon the classical interpretation of probability championed by Laplace [32], which involves computing the probabilities in terms of equally likely outcomes. If Nconj conjunctive clauses exist within a formula, , there are 2Nconj possible outcomes in terms of the truth values of the conjunctive clauses. In the absence of additional information, we assign equal probabilities to each of the potential outcomes. Consider two candidate formulas, and , with Nconj1 and Nconj2 conjunctive clauses and . If this trace is considered acceptable ((1), the approximate likelihood odds ratio is computed as follows:

If trace is labeled as unacceptable (0) and , the likelihood odds ratio is computed following the classical probability interpretation as before . With 2Ncon j conjunctive clauses, there are 2Nconj 1 possible evaluations of each of the individual clauses that would result in the given trace not satisfying the candidate formula; thus, the likelihood odds ratio is computed as follows:

We assume that each data point in a given dataset D = is independent of the others; thus, the likelihood of the entire dataset is the product of the individual likelihoods, as follows:

The probabilistic model is implemented in webppl [33], a universal probabilistic programming language. The posterior is approximated using webppl’s Markov chain Monte Carlo algorithm with the Metropolis-Hastings acceptance criterion.

D. Planning with Uncertain Specifications

Planning with uncertain specifications (PUnS) [6] is a formulation for planning problems wherein task specifica-tions are known as beliefs over LTL formulas, P. An instance of a PUnS problem is defined by the planning environment, which is encoded as an MDP sans a reward function, ; a task specification represented as a belief over LTL formulas, P, with support over a finite set of formulas, ; and one of the four evaluation criteria proposed by us (Shah et al. [6]) for satisfying a belief over LTL formulas.

Consider a planning domain representing the task of setting a dinner table, with three objects accessible to the robot: a fork, a bowl, and a plate. The environment MDP, , consists of a discrete state space, X, that encodes whether each object is correctly placed; a discrete action space, A, that encodes the selection of the object to be placed next; and the transition function, T, which encodes how the action selection affects a change in the state. The acceptability of the task execution is evaluated using the vector of Boolean propositions, Fork, Bowl, Plate], where each proposition represents whether that object was correctly placed on the table. An example of a belief over the task specifications is represented by the distribution P, whose support, Fork F Bowl Bowl U PlateG Fork F Bowl}. The probabilities are as follows: P3, and Pencodes the specification that the fork must never be placed, the bowl must be placed eventually, and that the bowl must not be placed until the plate has been placed; encodes that the form must never be placed, and that the bowl must be placed eventually. Thus, any task execution that satisfies also satisfies ; however, the converse is not true. In order to perform the task to best align with this belief over specifications, one must place the plate, then the bowl, and must not place the fork. The PUnS formulation [6] formalizes this intuition.

In order to compute the policy to satisfy an instance of PUnS, we first compile the non-Markov belief Pinto an equivalent deterministic MDP . The graphical representation of the compilation process for the dinner table example is depicted in Figure 2. Formally, is the set of ordered tuples that represent all progressions of the formulas contained in , and the actions represent the truth values of the propositions, . Let represent the ith formulas in the tuple ; the transition function Tis then defined as follows:

Let be the set of terminal states, where each of the component formula has either been satisfied (), dissatisfied (), or has progressed to a safe-LTL formula. The reward function depends upon the choice of the PUnS evaluation criterion. The minimum regret criterion is linearly dependent on the probability of the task execution being acceptable as determined by the belief PFor the minimum regret criterion, the reward function is defined as follows:

where ris defined as follows:

This compiled deterministic MDP, is then composed with to obtain an MDP equivalent of the original PUnS problem, defined as follows:

Here,

The state-space of is generated by the outer product of the state-spaces of the environment MDP and the reward machine

Thus, the MDP equivalent of a PUnS problem, generates a problem definition compatible with reinforcement learning algorithms. (In this paper, we utilize discrete representations for state and action spaces; therefore, we use tabular Q-learning [34] to compute the policy.)

E. Determining the query execution

In an active learning framework, the learner generates a query that the teacher must answer by providing a label. There are Many strategies for generating an informative query [35] have been proposed in prior research. Our strategy is based on the uncertainty sampling approach [36], wherein a learner queries about the instance it is least certain how to label . The following is an illustrative example that describes

Fig. 2: Example compilation process with and the minimum regret criterion. The deterministic MDPs , and are composed through a cross product to yield the deterministic MDP corresponding to the set . The reward based on the minimum regret criterion (R) is indicated in black, while the value of the shaped reward function (Rshaped) that enables the most uncertain task execution is indicated in blue.

the nature of an informative query selected on the basis of uncertainty sampling.

Consider the table-setting example depicted in Figure 2. Uncertainty over whether or is the true formula results in a policy that favours , as it is the more restrictive of the two: if the plate and bowl were placed in that order, it would satisfy the specification of just placing the bowl. However, if were the ground truth formula (only the bowl must be placed) , the learned policy would be detrimental to the flexibility of the system during task execution; therefore, it is desirable to refine the belief according to the teacher’s feedback.

A task execution where either the fork is placed or both the plate and bowl are placed in that order is not informative; both formulas would label the execution unacceptable or acceptable, respectively. An informative query would attempt to reach the state Forkby placing only the bowl and not the fork. If this task execution were labeled acceptable, then would be more likely to be the ground truth specification; conversely, if this task execution were judged unacceptable, then would be more likely to be the ground truth specification.

The principle of uncertainty sampling [36] for active learning states that the most informative query is the one where the current model is most ambivalent about the teacher’s expected label. For binary labels, the probability of the query task execution being acceptable should be closest to 0.5. Given a current belief distribution, Pi, the learner’s estimate of the probability of a trace () being acceptable is computed as follows:

Here, represents the final state of the reward machine, , after a sequence of transitions described by . P( ˆ5 corresponds to a reward value of 0. Therefore, given a reward machine , the most informative query as per the uncertainty sampling approach should end in a state defined as follows, with representing the set of terminal states of :

Finally, in order to compute a policy for performing a task execution that terminates in , we reshape the reward values of . Let be the set of states that lie along any path joining the initial state, , and ; the reshaped reward function would then be defined as follows:

The reshaped reward, Rshaped, is indicated in blue for the dinner table example described in Figure 2. Note that this reward is only maximized when an execution terminates in . The policy to generate an informative query execution can be computed by solving the MDP Tspec,Rshaped. (Note that this is identical to apart from reward function.)

V. EVALUATIONS

We evaluated our proposed framework using both a simulated experiment and a user study. The experiment incorporated the synthetic environment proposed in our previous work [2] to rapidly generate scenarios with varying temporal specifications. We assessed the ability of our proposed framework to infer the correct LTL specifications compared with baselines as described in Section V-A, and found that an active learning protocol within our framework generated posterior beliefs that were better aligned with the ground truth specification compared with learning purely from demonstrations or an interactive framework with randomly sampled queries.

A. Baselines

To our knowledge, our proposed framework is the first to model robot learning for non-Markov tasks that unifies demonstrations and a teacher’s acceptability assessments. A natural baseline for our framework is the classical learning-from-demonstrations (LfD) formulation , where the learner learns solely from demonstrations provided by the teacher. We also wanted to evaluate the effect of query selection on learning performance; therefore, as a second baseline, we generated the query executions by selecting actions at each time step from a uniform random distribution. Based on these three paradigms, we used the following three protocols:

1) Active: The teacher initially provides two demonstrations, then the learner generates queries. The learner’s belief over LTL formulas is updated after an assessment is provided by the teacher for each of the queries. Each query is generated to reach an informative terminal state, as defined by Equation 13.

2) Random: This protocol is identical to the Active protocol, except that queries are generated by uniformly sampling available actions at each time step.

3) Batch: In this condition, the teacher only provides demonstrations, and the learner can not elicit any assessment of its task performance. The final belief is the posterior distribution computed using Bayesian specification inference [6].

In each training protocol, the task policy was computed using the final belief compiled with the minimum regret criterion. The number of task executions provided to the learner (as either demonstrations or queries) was equal in all cases.

B. Simulation Experiments

The task environment for all simulations was based on the synthetic domain [2]. This domain allows a variable number of threats and waypoints, where the admissible orders for visiting waypoints are encoded within the ground truth formula LTL formula . We allowed a maximum of five waypoints and five threats for any simulation run; the available action space enabled the learner to select any of these 10 targets to visit.

For all runs of the simulation, the procedure was as follows:

1) Select the number of queries nquery. 2) A ground truth LTL formula was sampled from the priors developed in our previous work [2].

3) Two (2) demonstrations that satisfied the ground truth formula were generated and added to the dataset D = .

4) D was used with the Active protocol with nquery queries generated by the learner. The final belief, Pactive, was recorded.

5) D was used with the Random protocol with nquery queries generated by the learner. The final belief, Prandom, was recorded.

6) An augmented dataset, : i {1,...,nquery}}, was created by generating three additional demonstrations that satisfied the ground truth formula. This dataset was then used with the Batch protocol, and the final belief, Pbatch, was recorded. (This ensured the total number of task executions provided to all baselines was equal.)

The experiment was conducted for values of nquery = {1,...,6}, with 200 runs for each value and a different ground truth formula sampled for each run. For every individual run, the entropy of the final belief and similarity

Fig. 3: The average entropy (left; lower is better) of the final posterior and the similarity of the posterior to the ground truth formula (right; higher is better) for the four training conditions. All error bars indicate 95% confidence interval.

to the ground truth formula were recorded for each of the training protocols. Given two formulas, and , that are conjunctive compositions of the clauses in sets CCC1 and CCC2, respectively, the similarity of the two formulas is defined using the intersection-over-union, as follows:

The similarity of belief distribution Pwith ground truth formula is computed as follows:

CCC1 and CCC2 represent the sets of conjunctive clauses.

1) Results: Figure 3 depicts the results from our simulation experiment, and Figure 3a depicts the mean entropy value of the final belief for all baselines across all runs. Our results indicate that belief distribution’s entropy decreased as the training protocols processed more labeled task executions; however, this decrease was slower for the Random protocol than for the Active and Batch protocols. This is to be expected, as demonstrations generated through random actions are less informative than either correct demonstrations or the most uncertain task execution (as per the learner’s initial belief). Our findings also indicate that both the Batch and Active protocols yielded similar entropy values, suggesting a similar degree of confidence over the final belief distribution.

Figure 3b depicts the median value of the similarity between the final belief and the ground truth formula. The maximum value for the similarity metric is 1, while the minimum is 0. The Active protocol outperformed the Batch and Random protocols with regard to inferring a belief aligned with the ground truth specification. Also, the difference between the median similarity metrics increased with the total number of task executions processed by the training protocols.

Finally, the low similarity score and entropy observed for the Batch protocol indicate that it is susceptible to inferring a belief distribution that is not aligned with the ground truth formula with a high degree of confidence. One potential explanation for this finding is confirmation bias, as multiple identical demonstrations would cause the inference model

Fig. 4: Figure 4a depicts the experiment setup, where objects must be arranged on Table B. Figure 4b depicts the desired final configuration for Task 1, with all objects placed on the table. Figure 4c depicts one of the final configurations for Task 2, where only the required objects (dinner plate and bowl) are placed, while optional objects (knife and fork) and the prohibited object (small plate) are not.

to assign high probability to an over-constrained formula satisfied by the demonstration. Notably, the similarity of the final posterior learned with the Active protocol increases monotonically as additional task executions are provided and performance variance decreases, indicating good learning performance on all ground truth specifications rather than just a subset thereof.

C. User Study

In order to evaluate the real-world performance of the active learning approach, we conducted a user study that involved participants teaching a robot to set a dinner table in various reference configurations.

Figure 4a depicts the experiment setup. During each task execution (whether demonstrated by the participant or performed by the robot), the five objects were initially placed on Table A, and subsequently arranged on Table B. In the first phase of the study, the task (Task 1) involved arranging the objects into the configuration depicted in Figure 4b, with demonstrations provided directly by participants. In the second phase, we modified the study to be conducted online due to the restrictions on in-person studies imposed in light of the COVID-19 pandemic, and participants remotely commanded the robot to provide the demonstrations. The robot’s task execution and the experiment instructions were displayed to the participants via video conferencing. In addition to Task 1, we also added a second task (Task 2), wherein the dinner plate and bowl were to be placed on the table in the configuration depicted in Figure 4c. Placing the fork and knife were optional, and placing the small plate was not permitted. (example video: ral2021.ajshah.info)

We instructed participants to move only a single object at a time while providing demonstrations, and informed them that objects could not be picked up again once placed on Table B. Participants were also instructed to provide an assessment after observing the robot while it executed the task; a participant’s label was only recorded once the entire task had been completed. For both the in-person and remote study protocols, the participant initiated the robot’s belief with two demonstrations; beliefs were then refined using three queries generated via our active learning models. Finally, the robot demonstrated the results of its learning by performing three task executions observed by the participant.

The state space of the robot, X, was identical to the set of propositions required for evaluating the task, , and contained five Boolean propositions, each of which encoded whether a particular object was successfully placed on the table. The robot’s action space, A, comprised five actions (one for each object). Initiating an action triggered a sequence of parameterized primitives programmed into the robot to locate, pick up, and place the object on Table B. Based on the constraints provided to the participants and the robot’s action space, the only way to successfully complete Task 1 was to ensure that the dinner plate, small plate, and bowl were placed in that specific order (the fork and the knife could be placed at any instant). There were multiple final acceptable configurations for Task 2; in each, the dinner plate and bowl were placed in that partial order , while the fork and the knife may or may not have been placed.

1) Results and Discussions: :

We recruited 18 participants for the in-person phase of the study, but had to terminate the protocol with three participants due to robot hardware failure. The results include data collected from 15 participants (10 male, 5 female, median age: 26 years), seven of whom reported prior experience with robots or automated systems. All participants were instructed to teach the robot to perform Task 1. For the remote phase, we recruited 12 participants (8 male, 4 female, median age: 28 years); four participants reported prior experience with robotics. We assigned six participants each to Task 1 and Task 2.

All participants were successfully able to teach the assigned task to the robot — i.e., the policies learned by the robot did not result in an incorrect table setting during any of the test executions. The learning curves for the robot are depicted in Figure 4d.

Overall, the median similarity of the final belief with respect to the ground truth formula was 0.83 95% CI : [0.73,0.94]. For Task 1, the median similarity was 0.87 95% CI : [0.73,0.94]; for Task 2, it was 0.78 95% CI : [0.59,0.99]. For Task 1, the posterior belief distribution recovered the ground truth formula as the most likely LTL specification for 14 out of 21 participants, while the most likely specification differed from the ground truth by a single conjunctive clause in four cases. Similarly, for Task 2, the posterior belief distribution for two out of six participants recovered the ground truth formula as the most likely LTL specification, while the most likely specification for two of them differed from the ground truth formula by a single conjunctive clause. Our demonstration of the entire learning pipeline on an embodied robot indicates the viability of deploying our active learning framework for real-world applications.

VI. CONCLUSION

Our proposed interactive training framework provides a unified formulation capable of learning non-Markov tasks from both demonstrations provided by a teacher and that teacher’s assessment of the robot’s task executions. We further proposed an active querying algorithm that allows the learner to identify and perform a task execution with the most uncertain degree of acceptability based on the principle of uncertainty sampling. Finally, we demonstrated the efficacy of our active learning framework for learning non-Markov tasks with a wide range of ground truth specifications through both a simulation experiment and a user study. Notably, the robot performed its task without errors, and the final belief of the robot was closely aligned with the true task specifications across all participants.

REFERENCES

[1] A. Pnueli, “The temporal logic of programs,” in Foundations of Computer Science, 1977., 18th Annual Symposium on, pp. 46–57, IEEE, 1977.

[2] A. Shah, P. Kamath, J. A. Shah, and S. Li, “Bayesian Inference of Temporal Task Specifications from Demonstrations,” in Advances in Neural Information Processing Systems 31, pp. 3804–3813, 2018.

[3] J. Kim, C. Muise, A. Shah, S. Agarwal, and J. Shah, “Bayesian inference of linear temporal logic specifications for contrastive explanations,” in IJCAI, 2019.

[4] Y. Oh, R. Patel, T. Nguyen, B. Huang, E. Pavlick, and S. Tellex, “Planning with state abstractions for non-Markovian task specifications,” in RSS, June 2019.

[5] N. Gopalan, D. Arumugam, L. L. Wong, and S. Tellex, “Sequence-to-sequence language grounding of non-markovian task specifications.,” in Robotics: Science and Systems, 2018.

[6] A. Shah, S. Li, and J. Shah, “Planning with uncertain specifications (PUnS),” IEEE Robotics and Automation Letters, 2020.

[7] B. D. Argall, S. Chernova, M. Veloso, and B. Browning, “A survey of robot learning from demonstration,” Robotics and autonomous systems, vol. 57, no. 5, pp. 469–483, 2009.

[8] S. Chernova and A. L. Thomaz, “Robot learning from human teachers,” Synthesis Lectures on Artificial Intelligence and Machine Learning, vol. 8, no. 3, pp. 1–121, 2014.

[9] J. Luketina, N. Nardelli, G. Farquhar, J. Foerster, J. Andreas, E. Grefenstette, S. Whiteson, and T. Rocktäschel, “A survey of reinforcement learning informed by natural language,” in Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19, pp. 6309–6317, International Joint Conferences on Artificial Intelligence Organization, 7 2019.

[10] A. Bajcsy, D. P. Losey, M. K. O’Malley, and A. D. Dragan, “Learning robot objectives from physical human interaction,” Proceedings of Machine Learning Research, vol. 78, pp. 217–226, 2017.

[11] A. Bajcsy, D. P. Losey, M. K. O’Malley, and A. D. Dragan, “Learning from physical human corrections, one feature at a time,” in Proceedings of the 2018 ACM/IEEE International Conference on HumanRobot Interaction, HRI ’18, (New York, NY, USA), p. 141–149, Association for Computing Machinery, 2018.

[12] D. Sadigh, A. D. Dragan, S. Sastry, and S. A. Seshia, “Active preference-based learning of reward functions,” in Robotics: Science and Systems (RSS), 2017.

[13] E. Biyik and D. Sadigh, “Batch active preference-based learning of reward functions,” in Conference on Robot Learning, pp. 519–528, 2018.

[14] E. Biyik, M. Palan, N. C. Landolfi, D. P. Losey, and D. Sadigh, “Asking easy questions: A user-friendly approach to active reward learning,” in 3rd Conference on Robot Learning (CoRL), October 2019.

[15] M. Vazquez-Chanlatte, S. Jha, A. Tiwari, M. K. Ho, and S. Seshia, “Learning task specifications from demonstrations,” in Advances in Neural Information Processing Systems 31, pp. 5368–5378, 2018.

[16] D. Kasenberg and M. Scheutz, “Interpretable apprenticeship learning with temporal logic specifications,” in IEEE Conference on Decision and Control, 2017.

[17] A. Camacho and S. A. McIlraith, “Learning interpretable models in linear temporal logic,” in Proceedings of the Twenty-Nineth International Conference on Automated Planning and Scheduling (ICAPS), pp. 621–630, 2019.

[18] M. Cakmak and A. L. Thomaz, “Designing robot learners that ask good questions,” in Proceedings of the seventh annual ACM/IEEE international conference on Human-Robot Interaction, pp. 17–24, ACM, 2012.

[19] M. Cakmak, C. Chao, and A. L. Thomaz, “Designing interactions for robot active learners,” IEEE Transactions on Autonomous Mental Development, vol. 2, no. 2, pp. 108–118, 2010.

[20] Y. Cui and S. Niekum, “Active reward learning from critiques,” in 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 6907–6914, IEEE, 2018.

[21] H. Kress-Gazit, G. E. Fainekos, and G. J. Pappas, “Temporal-logic-based reactive mission and motion planning,” IEEE transactions on robotics, vol. 25, no. 6, pp. 1370–1381, 2009.

[22] A. Camacho, J. A. Baier, C. Muise, and S. A. McIlraith, “Finite LTL synthesis as planning,” in Twenty-Eighth International Conference on Automated Planning and Scheduling, 2018.

[23] A. Camacho and S. A. McIlraith, “Strong fully observable nondeterministic planning with LTL and LTL-f goals,” in Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI), pp. 5523–5531, 2019.

[24] M. L. Littman, U. Topcu, J. Fu, C. Isbell, M. Wen, and J. MacGlashan, “Environment-independent task specifications via GLTL,” arXiv preprint arXiv:1704.04341, 2017.

[25] R. Toro Icarte, T. Q. Klassen, R. Valenzano, and S. A. McIlraith, “Teaching multiple tasks to an RL agent using LTL,” in Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 452–461, International Foundation for Autonomous Agents and Multiagent Systems, 2018.

[26] R. T. Icarte, T. Klassen, R. Valenzano, and S. McIlraith, “Using reward machines for high-level task specification and decomposition in reinforcement learning,” in International Conference on Machine Learning, pp. 2112–2121, 2018.

[27] A. Camacho, R. T. Icarte, T. Q. Klassen, R. Valenzano, and S. A. McIlraith, “LTL and beyond: Formal languages for reward function specification in reinforcement learning,” in Proceedings of the 28th International Joint Conference on Artificial Intelligence (IJCAI), pp. 6065–6073, 2019.

[28] F. Bacchus and F. Kabanza, “Using temporal logics to express search control knowledge for planning,” Artificial intelligence, vol. 116, no. 1-2, pp. 123–191, 2000.

[29] Z. Manna and A. Pnueli, A hierarchy of temporal properties. Department of Computer Science, 1987.

[30] M. B. Dwyer, G. S. Avrunin, and J. C. Corbett, “Patterns in property specifications for finite-state verification,” in Proceedings of the 21st international conference on Software engineering, pp. 411–420, ACM, 1999.

[31] J. B. Tenenbaum, “Rules and similarity in concept learning,” in Advances in neural information processing systems, pp. 59–65, 2000.

[32] P. S. Laplace and P. Simon, “A philosophical essay on probabilities, translated from the 6th french edition by frederick wilson truscott and frederick lincoln emory,” 1951.

[33] N. D. Goodman and A. Stuhlmüller, “The Design and Implementation of Probabilistic Programming Languages.” http://dippl.org, 2014. Accessed: 2018-4-9.

[34] C. J. Watkins and P. Dayan, “Q-learning,” Machine learning, vol. 8, no. 3-4, pp. 279–292, 1992.

[35] B. Settles, “Active learning literature survey,” tech. rep., University of Wisconsin-Madison Department of Computer Sciences, 2009.

[36] D. D. Lewis and J. Catlett, “Heterogeneous uncertainty sampling for supervised learning,” in Machine learning proceedings 1994, pp. 148– 156, Elsevier, 1994.

designed for accessibility and to further open science