On Integrating Apprentice Learning and Reinforcement Learning Jeffery A. Clouse Department of Computer Science University of Massachusetts Amherst, Massachusetts 01003 USA Technical Report 97-26 ON INTEGRATING APPRENTICE LEARNING AND REINFORCEMENT LEARNING A Dissertation Presented by JEFFERY A. CLOUSE Submitted to the Graduate School of the University of Massachusetts Amherst in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY September 1996 Department of Computer Science cfl Copyright by Jeffery A. Clouse 1996 All Rights Reserved ON INTEGRATING APPRENTICE LEARNING AND REINFORCEMENT LEARNING A Dissertation Presented by JEFFERY A. CLOUSE Approved as to style and content by: Paul E. Utgoff, Chair Andrew G. Barto, Member Roderic A. Grupen, Member John W. Donahoe, Member David W. Stemple, Department Chair Department of Computer Science This dissertation is dedicated to Michele, Christopher, Andrew, and Patrick. ACKNOWLEDGEMENTS There are many people to thank for contributing to this dissertation and to my success in graduate school. Foremost is Professor Paul Utgoff, who has been my principal guide throughout my graduate career. This dissertation would not have been possible without Paul's patience and insight. I have benefited enormously from his scientific curiosity, attention to detail, and research standards, and can not thank him enough for all he has done. I also wish to thank my committee, Andrew Barto, Roderic Grupen, and John Donahoe, for their interest in my work and for their help with the dissertation. Andy deserves special consideration for allowing me to give several seminars in his Reinforcement Learning classes. The many denizens of the Machine Learning Lab, both past and present, are also due credit for my work. Carla Brodley, Jamie Callan, Tom Fawcett, Neil Berkman, Doina Precup, and Rodger Zanny have all provided me with helpful comments, reading my papers and sitting through many practice talks. Their continued comradeship has made graduate school bearable. I am also grateful to Gunnar Blix, an adopted member of our lab, for sharing his technical expertise in various subjects, and for his insights into my work, which have helped me clarify my own thoughts about it. Many other individuals at the University of Massachusetts at Amherst have provided me with friendship, inspiration, and aid. Particularly dear to me are the members of my "Thesis Support Group," Joe McCarthy, Dorothy Mammen, Malini Bhandaru, and Bob Crites, with whom I shared the ups and downs of the dissertation process. Without their help I would still be stumbling along. I also thank Margie v Connell, Cris Pedregal-Martin, Jody Daniels, Zack Rubinstein, David Jensen, and Marty Humphrey for their advice and support; and I am indebted to many of the Computer Science staff for making my problems their problems. This research was supported by the National Science Foundation under Grant No. IRI-9222766, and by the National Aeronautics and Space Administration under Grant No. NCC 2-658. The most important contributors to my success at UMass, and without whom I would never have completed this dissertation, are my family. The faith that my parents and in-laws have in me has inspired me to do the best I can. My children, Christopher, Andrew, and Patrick, reminded me that there is a world outside of graduate school in which beauty and adventure abound, and were always happy to greet me with hugs and kisses after a long day in the office. Finally, I cannot express fully my gratitude to Michele, whose sacrifices, support, and encouragement over the years I will never be able to repay. I can only say, "Thank you for everything!" vi ABSTRACT ON INTEGRATING APPRENTICE LEARNING AND REINFORCEMENT LEARNING SEPTEMBER 1996 JEFFERY A. CLOUSE B.S., VIRGINIA POLYTECHNIC INSTITUTE AND STATE UNIVERSITY M.S., UNIVERSITY OF MASSACHUSETTS AMHERST Ph.D., UNIVERSITY OF MASSACHUSETTS AMHERST Directed by: Professor Paul E. Utgoff Apprentice learning and reinforcement learning are methods that have each been developed in order to endow computerized agents with the capacity to learn to perform multiple-step tasks, such as problem-solving tasks and control tasks. To achieve this end, each method takes differing approaches, with disparate assumptions, objectives, and algorithms. In apprentice learning, the autonomous agent tries to mimic a training agent's problem-solving behavior, learning based on examples of the trainer's action choices. In an attempt to learn to perform its task optimally, the learner in reinforcement learning changes its behavior based on scalar feedback about the consequences of its own actions. We demonstrate that a careful integration of the two learning methods can produce a more powerful method than either one alone. An argument based on the characteristics of the individuals maintains that a hybrid will be an improvement because of the complimentary strengths of its constituents. Although existing hybrids vii of apprentice learning and reinforcement learning perform better than their individual components, those hybrids have left many questions unanswered. We consider the following questions in this dissertation. How do the learner and trainer interact during training? How does the learner assimilate the trainer's expertise? How does the proficiency of the trainer affect the learner's ability to perform the task? And, when during training should the learner acquire information from the trainer? In our quest for answers, we develop the Ask for Help integrated approach, and use it in our empirical study. With the new integrated approach, the learning agent is significantly faster at learning to perform optimally than learners employing either apprentice learning alone or reinforcement learning alone. The study indicates further that the learner can learn to perform optimally even when its trainer cannot; thus, the learner can outperform its trainer. Two strategies for determining when to acquire the trainer's aid show that simple approaches work well. The results of the study demonstrate that the Ask for Help approach is effective for integrating apprentice learning and reinforcement learning, and support the conclusion that an integrated approach can be better than its individual components. viii TABLE OF CONTENTS Page ACKNOWLEDGEMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . v ABSTRACT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii LIST OF TABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii LIST OF FIGURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Chapter 1. INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 Multiple-Step Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 Developing a Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Apprentice Learning and Reinforcement Learning . . . . . . . . . . . 5 1.4 Integrating the Two Learning Methods . . . . . . . . . . . . . . . . . 7 1.5 Overview of the Results . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.6 Guide to the Dissertation . . . . . . . . . . . . . . . . . . . . . . . . . 10 2. APPRENTICE LEARNING AND REINFORCEMENT LEARNING . . . 12 2.1 Models of Multiple-Step Tasks . . . . . . . . . . . . . . . . . . . . . . 13 2.1.1 State-Space Model . . . . . . . . . . . . . . . . . . . . . . . . 13 2.1.2 Markovian Decision Task Model . . . . . . . . . . . . . . . . . 15 2.2 Apprentice Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.2.1 Apprentice Learning Systems . . . . . . . . . . . . . . . . . . 17 2.2.2 Apprentice-like Learning Methods . . . . . . . . . . . . . . . . 19 2.3 Reinforcement Learning . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.1 Temporal Difference Learning . . . . . . . . . . . . . . . . . . 22 2.3.2 Actor-Critic Architecture . . . . . . . . . . . . . . . . . . . . . 24 2.3.3 Q-learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.3.4 Model-Based Reinforcement Learning . . . . . . . . . . . . . . 26 2.4 Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3. INTEGRATING APPRENTICE LEARNING AND REINFORCEMENT LEARNING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ix 3.1 An Integrated Learning Method . . . . . . . . . . . . . . . . . . . . . 33 3.1.1 Desirable Characteristics . . . . . . . . . . . . . . . . . . . . . 34 3.1.2 Issues in Integrating the Two Methods . . . . . . . . . . . . . 35 3.1.3 Two Viewpoints . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.2 A Model of Learner/Trainer Interaction . . . . . . . . . . . . . . . . . 38 3.2.1 The Learner . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 3.2.2 The Trainer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.3 Fitting Previous Work to the Model . . . . . . . . . . . . . . . . . . . 43 3.3.1 Apprentice Learning and Reinforcement Learning Revisited . . 43 3.3.2 Integrated Learning Methods . . . . . . . . . . . . . . . . . . 45 3.3.2.1 Receiving Unsolicited Actions . . . . . . . . . . . . . 46 3.3.2.2 Receiving Solicited Actions . . . . . . . . . . . . . . 48 3.4 Other Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 3.4.1 If-Then Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 3.4.2 Task Decomposition and Shaping . . . . . . . . . . . . . . . . 52 3.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4. A NEW INTEGRATED SYSTEM . . . . . . . . . . . . . . . . . . . . . . 55 4.1 Design Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . 56 4.2 The Ask for Help Approach . . . . . . . . . . . . . . . . . . . . . 58 4.2.1 The Learner . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 4.2.1.1 The Learning Algorithm . . . . . . . . . . . . . . . . 59 4.2.1.2 Incorporating the Trainer's Actions . . . . . . . . . . 60 4.2.1.3 Interaction Policies . . . . . . . . . . . . . . . . . . . 61 4.2.2 The Trainer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 5. EMPIRICAL STUDY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5.1 Experiment Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 5.1.1 Maze Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.1.1.1 Maze Creation . . . . . . . . . . . . . . . . . . . . . 70 5.1.1.2 Learning Algorithm . . . . . . . . . . . . . . . . . . 70 5.1.1.3 Trainers . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.1.2 Race Track Task . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.1.2.1 Sensors . . . . . . . . . . . . . . . . . . . . . . . . . 73 5.1.2.2 Representation . . . . . . . . . . . . . . . . . . . . . 75 x 5.1.2.3 Learning Algorithm . . . . . . . . . . . . . . . . . . 75 5.1.2.4 Trainer . . . . . . . . . . . . . . . . . . . . . . . . . 77 5.1.2.5 Simulation . . . . . . . . . . . . . . . . . . . . . . . 77 5.2 Training with an Optimal Trainer . . . . . . . . . . . . . . . . . . . . 79 5.2.1 Experimental Design . . . . . . . . . . . . . . . . . . . . . . . 80 5.2.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 5.2.3 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 5.3 Training with Suboptimal Trainers . . . . . . . . . . . . . . . . . . . 89 5.3.1 Experimental Design . . . . . . . . . . . . . . . . . . . . . . . 89 5.3.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 5.3.3 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 5.4 Scaling Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.4.1 Experimental Design . . . . . . . . . . . . . . . . . . . . . . . 98 5.4.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 5.4.3 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 5.5 Asking Based on Uncertainty . . . . . . . . . . . . . . . . . . . . . . 102 5.5.1 Experimental Design . . . . . . . . . . . . . . . . . . . . . . . 103 5.5.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 5.5.3 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 5.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 6. DISCUSSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 6.1 Summary of the Dissertation . . . . . . . . . . . . . . . . . . . . . . . 115 6.1.1 The Ask for Help Approach . . . . . . . . . . . . . . . . . 116 6.1.2 Empirical Study . . . . . . . . . . . . . . . . . . . . . . . . . . 117 6.2 Issues for Future Research . . . . . . . . . . . . . . . . . . . . . . . . 119 6.2.1 Form of Advice . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.2.2 Incorporating Advice . . . . . . . . . . . . . . . . . . . . . . . 120 6.2.3 Learner/Trainer Interactions . . . . . . . . . . . . . . . . . . . 121 6.3 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 APPENDIX: DATA FOR ALL THE EXPERIMENTS . . . . . . . . . . . . . 125 BIBLIOGRAPHY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 xi LIST OF TABLES Table Page 2.1 Comparison of Apprentice Learning to Reinforcement Learning on a select set of characteristics . . . . . . . . . . . . . . . . . . . . . . . . 31 5.1 Rules for the hand-coded trainer . . . . . . . . . . . . . . . . . . . . . 78 xii LIST OF FIGURES Figure Page 1.1 A multiple-step task . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Which action should be chosen? . . . . . . . . . . . . . . . . . . . . . 4 2.1 State-space representation . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2 Apprentice Learning Method . . . . . . . . . . . . . . . . . . . . . . . 16 2.3 Reinforcement Learning Method . . . . . . . . . . . . . . . . . . . . . 20 3.1 Integrated Learning Method . . . . . . . . . . . . . . . . . . . . . . . 33 3.2 Learner Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.3 Trainer Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.4 Fitting Apprentice Learning to the Learner/Trainer Model, first interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.5 Fitting Apprentice Learning to the Learner/Trainer Model, second interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.6 Fitting Reinforcement Learning to the Learner/Trainer Model . . . . 46 3.7 Fitting Integrated Learning to the Learner/Trainer Model, where the trainer provides unsolicited actions . . . . . . . . . . . . . . . . . . . 49 3.8 Fitting Integrated Learning to the Learner/Trainer Model, where the trainer provides solicited actions . . . . . . . . . . . . . . . . . . . . . 50 4.1 Overview of the Ask for Help Approach . . . . . . . . . . . . . . . 59 4.2 The Ask for Help Learner . . . . . . . . . . . . . . . . . . . . . . . 62 4.3 The Ask for Help Trainer . . . . . . . . . . . . . . . . . . . . . . . 65 5.1 The 20x20 maze, with 230 cells . . . . . . . . . . . . . . . . . . . . . 69 5.2 The six other mazes . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 5.3 Example race track . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 xiii 5.4 Results for the 40x40 deterministic maze with the optimal trainer . . 83 5.5 Results for all deterministic mazes with the optimal trainer . . . . . . 84 5.6 Results for all stochastic mazes with the optimal trainer . . . . . . . 86 5.7 Frequency of cell visitation for the 40x40 deterministic maze on particular runs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 5.8 Results for the 40x40 deterministic maze with all trainers . . . . . . . 91 5.9 Results for the 40x40 deterministic maze with a trainer that is incorrect 75% of the time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 5.10 Results for the 80x80 deterministic maze with all trainers . . . . . . . 93 5.11 Results for the 200x200 deterministic maze with all trainers . . . . . 94 5.12 Results for the 40x40 deterministic maze with all trainers . . . . . . . 96 5.13 Results for the 40x40 deterministic maze with all trainers, viewed from the front . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.14 Mean actions for race track task on track 1 . . . . . . . . . . . . . . . 100 5.15 Mean actions for race track task on track 2 . . . . . . . . . . . . . . . 101 5.16 Results for the 40x40 deterministic maze with all trainers and the uncertainty asking strategy . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.17 Scatter graph for the 40x40 deterministic maze with the optimal trainer and the uniform asking strategy . . . . . . . . . . . . . . . . . . . . . 106 5.18 Scatter graph for the 40x40 deterministic maze with the optimal trainer and the difference asking strategy . . . . . . . . . . . . . . . . . . . . 108 5.19 Scatter graph for the 40x40 deterministic maze showing both asking strategies with the optimal trainer . . . . . . . . . . . . . . . . . . . . 109 5.20 Results for the 40x40 maze showing the trainer's action distribution . 111 5.21 Frequency of cell visitation for the 40x40 deterministic maze with the uncertainty asking strategy on a run in which the learner asked the optimal trainer with an asking factor of 0:0. . . . . . . . . . . . . . . 112 xiv CHAPTER 1 INTRODUCTION This dissertation is about integrating two learning methods, each of which was developed to allow intelligent, computerized agents to learn to solve problems. In the first method, apprentice learning , the autonomous agent learns based on examples of another agent's problem-solving performance. In the other method, reinforcement learning , the agent changes its performance based on scalar feedback about the consequences of its own actions. The two methods each have different objectives, employ different algorithms, and make different assumptions in order to endow the agent with the capacity to learn. In this dissertation we explore issues in integrating these two methods. The research is motivated mainly by two observations. First, we are inspired by human learners, who seem to employ a combination of the two approaches, refining their problem-solving skills autonomously and also adapting based on their observation of others. Second, previous research has identified this area as promising for building automated agents that can learn to solve problems. Hybrids of apprentice learning and reinforcement learning have been shown to perform better than their constituents, although such research has left many questions unanswered. Our main goal in this dissertation is to answer fundamental questions about integrated approaches, so that the approaches are understood better and can achieve wider applicability. In the remainder of this chapter, we introduce the notion of a multiple-step task as a type of problem to solve, and discuss what is required in learning such a task. We give a quick introduction to the two individual learning methods, provide further 1 motivation for integrating them, and outline our particular approach. Finally, we give an overview of the results of the dissertation. 1.1 Multiple-Step Tasks This dissertation focuses on computerized agents that learn to make sequences of decisions in order to solve problems. Examples of problems that require multiple decisions, also called multiple-step tasks (Dietterich, London, Clarkson & Dromey, 1982), include robot navigation, game-playing, and theorem proving. In robot navigation, the robot makes a sequence of decisions to arrive at its destination. The game-playing agent must select a series of moves that will ensure a win. And, a sequence of mathematical manipulations are required to prove a theorem. Multiple-step tasks are specified in terms of states and actions. The states are the situations that arise in performing the task, such as the configurations of pieces on the chess board, and the actions, such as the legal piece moves, transform the task from state to state. Thus, the states and operators are abstract representations of the actual task, which is situated in a real environment. Figure 1.1 shows part of a solution to a multiple-step task. The circles in the figure represent the states, the arrows depict the actions, and the highlighted arrows represent the actions chosen by the agent. From the initial state, the agent first chose "a2," which produced "State A." The problem was then transformed to "State B" by the agent's choice of "a4." Through the continued selection of actions, the agent solves the problem. As the agent performs the task, it may incur costs or receive pay-backs when applying actions. These costs, which are real-valued scalars that are also called weights and rewards, represent such concepts as distance between a state and its successor or the actual cost of performing an action. The objective of an agent solving the problem is to find a sequence of actions that optimizes a cumulative measure of the rewards. For example, the agent may attempt to find the shortest or least-cost path in solving 2 A StateB Initial State a2State a4 a2 Figure 1.1 A multiple-step task the problem. Problems that simply require the agent to reach a specially designated goal state may also be expressed in terms of rewards by giving the transitions into the goal state positive weight and all other transitions zero weight. 1.2 Developing a Policy At each discrete time step the agent faces the situation depicted in Figure 1.2. Namely, the agent observes the current state of the problem and must choose one of a set of actions to apply. To make this decision, the agent relies on its policy, a mapping from states to actions, which indicates which of the applicable actions should be chosen in order to complete the task successfully. The agent can develop its policy via exhaustive computation or limited-depth search, both of which have deficiencies. Fortunately, the shortcomings of these approaches can be overcome by having the agent learn its policy. The policy that allows the agent to solve the problem can be determined by extensive computation. The agent can develop its policy by performing an exhaustive search in the space of solution paths, simulating the application of every action to ev3 StateCurrent aN? a1? a2? a3? Figure 1.2 Which action should be chosen? ery state for every solution path. The agent might also develop its policy via dynamic programming (Bellman, 1957), an iterative technique for determining the agent's correct action at every state. Unfortunately, these two approaches are often impractical. First, they each usually require a complete specification of the problem in the form of correct reward and state-transition functions. Such functions can only be developed for very simple problems because any uncertainty about the problem precludes having a correct specification. Second, the computations required are often prohibitive. Finding a policy for even moderate-sized problems is typically intractable. In order to reduce the computational complexity identified above, several systems implement the policy as various forms of limited-depth search (Nilsson, 1969; Slagle & Dixon, 1969; Rosenbloom, 1982; Berliner, 1984; Pearl, 1984; Korf, 1988). In these systems, a human designer attempts to capture each state's worthiness with respect to the problem-solving effort by codifying the designer's limited domain knowledge in a function that maps states to real-valued numbers, known as an evaluation function. Then, instead of performing an exhaustive search of the state-space to make an action choice, the agent chooses the action that produces the successor state with the highest value, as determined by limited search and application of the evaluation 4 function to the states at the frontier of the search. Regardless of the details of the particular search algorithm, these approaches are unattractive because their success depends heavily on the accuracy of the evaluation function. Developing a good evaluation function involves an expensive iterative process in which the human refines the function based on detailed analyses of the agent's inability to solve the problem. Moreover, these search techniques require a complete specification of the problem in order to perform any search at all. Having the agent learn its policy can overcome the shortcomings of the approaches mentioned above. The learning agent does not need a complete description of the problem and, further, can develop a policy without performing computationally expensive operations. Moreover, learning supersedes the human's knowledge-intensive tweaking of an evaluation function because the agent has the ability to improve its policy over time, as it gains more knowledge about the problem. 1.3 Apprentice Learning and Reinforcement Learning Early in the history of Artificial Intelligence, researchers began studying automated agents that learn to solve multiple-step tasks (Samuel, 1963; Samuel, 1967; Waterman, 1970; Fikes, Hart & Nilsson, 1972). The objective of the agents is to use the resources they have available in order to become more proficient at performing their tasks. Two methods in particular have come out of that effort: apprentice learning and reinforcement learning. Although both of these methods endow the agent with the capacity to learn to solve problems, they each take distinct approaches, with different assumptions, algorithms, and objectives. In apprentice learning, the automated agent observes a training agent solving a problem. For each state and associated action in the trainer's solution, which are either provided to the learner or observed by the learner, the learner infers that the action was appropriate to perform in that state. The learner might further assume 5 that all other action choices were not applicable because the trainer did not pick them1. Accordingly, apprentice learning is a supervised learning technique where the training examples are derived from the trainer's solution. The learner's objective is to develop a good policy that can be applied to performing the problem. The learner attempts to meet this goal by acquiring the trainer's observed strategy. Thus, apprentice learning depends heavily on the trainer's expertise. This method has been employed successfully to learn such complex tasks as game-playing (Samuel, 1963), and vehicle control (Pomerleau, 1991; Sammut, Hurst, Kedzier & Michie, 1992). In reinforcement learning, the automated agent adapts based on its own problemsolving experience, updating its policy via a sequence of trial-and-error experiments. That is, the agent learns entirely from its own decisions. At each discrete step in the problem, the agent determines its current action, performs that action, and observes the real-valued reward it receives. The rewards indicate how well the agent is performing the task, and the objective is to learn to select actions that optimize a measure of those rewards. Stated differently, the objective is to learn an optimal policy. The agent is faced with the difficult problem of credit assignment (Minsky, 1963): It must determine which of its many actions should be credited, or blamed, for the current reward, especially considering that the rewards may be sparse. Furthermore, the agent must trade off performing well on the task versus experimenting with its options in order to learn more about the task. Similarly to apprentice learning, many complex tasks have been tackled successfully with reinforcement learning, including game-playing (Samuel, 1967; Tesauro, 1995), robotics tasks (Gullapalli, 1991; Mahadevan & Connell, 1992; Singh, 1994), and elevator dispatching (Crites & Barto, 1996). 1Care must be taken when assuming that only the chosen action is correct because there may be situations in which many of the choices are equally correct. 6 1.4 Integrating the Two Learning Methods In this dissertation, we investigate particular issues that arise in integrating apprentice learning and reinforcement learning. Although these two methods approach the difficulty of improving the agent's ability to solve problems from different perspectives, they each have desirable characteristics that make them viable. We argue that the integration of the two methods can produce a new learning method that combines the beneficial qualities of the two individuals and ameliorates their weaknesses, leading to improvements over each. This viewpoint has been substantiated partially by previous research in building integrated systems. Utgoff and Clouse (1991) develop an integrated system in which the agent requires only one training trial to learn to perform its task, versus needing two trials when learning from only a training agent and requiring close to five hundred trials when learning via reinforcement learning. Other work (Clouse & Utgoff, 1992; Lin, 1992; Lin, 1993) shows that allowing a learning agent to incorporate a trainer's knowledge improves the speed with which the agent learns to perform the task greatly. Each of these systems shows the benefits of integrating apprentice learning and reinforcement learning and serves as inspiration for our work. Although each of these systems achieves success via a combination of the two individual learning methods, they leave many questions unanswered. Our objective in this dissertation is to examine fundamental questions about the integration of apprentice learning and reinforcement learning. We investigate how the learner and trainer interact, how the learner incorporates the trainer's actions into its developing policy, how the trainer's expertise influences the learner's ability to acquire an appropriate policy, and when the trainer should provide information to the learner. The results of our investigation will provide more information about integrated systems, with the aim of making them easier to develop and apply. 7 Based on the desire to answer these questions, we have designed, developed, and implemented an integrated system, calling it the Ask for Help (AfH) approach. In AfH, the learner interacts with an automated trainer. To develop its policy, the learning agent relies on Q-learning (Watkins, 1989), a particular reinforcement learning algorithm. With reinforcement learning as its main learning component, AfH maintains many of the advantages of reinforcement learning, such as learning from the scalar rewards and developing optimal policies. In addition to depending upon the rewards for training information, the agent also acquires on-line, trainersuggested actions as the learner performs the task. One of the key components of AfH is the strategy with which the learner acquires information from the trainer: the learner asks the trainer for help. Via two particular asking strategies, one of which is a simple stochastic approach, we can determine how much the trainer's actions help the learning agent acquire an appropriate policy. To assimilate the automated trainer's guidance, the learner simply executes the actions as though it had chosen them itself, thus incorporating them and their consequences seamlessly into its experience via Q-learning. We hypothesize that Ask for Help is an effective approach to integrating apprentice learning and reinforcement learning. But, more importantly, AfH is a tool with which we can answer certain questions about hybrids of the two learning methods. 1.5 Overview of the Results In this dissertation we examine the advantages of integrating apprentice learning and reinforcement learning. We utilize the Ask for Help approach to answer certain fundamental questions about integrated systems, and demonstrate that AfH is an effective means for integrating apprentice learning and reinforcement learning. Our empirical study establishes that the learning agent can develop its policy more quickly 8 with AfH than with either reinforcement learning alone or apprentice learning alone, even with suboptimal trainers. Generally, the more often the trainer provides an action to the learner, the more quickly the learner learns to perform the task. The learner requires the most time to develop a policy when it is not asking the trainer for aid, which is the same as learning with standard reinforcement learning. As the amount of aid increases, the speed with which the learner learns the task also increases; thus, the integrated approach is better than reinforcement learning alone. As the trainer begins providing a higher proportion of the training information to the learner--which approaches learning via apprentice learning--the learner sometimes learns more quickly when it can still perform its own actions occasionally, indicating that the new approach is better than apprentice learning. These results demonstrate that the integrated approach is better than either of its constituents alone, especially when the trainer provides suboptimal training information. Based on these results, one can make the tradeoff between the expense of employing a trainer and the expense incurred in terms of the time it takes to learn a policy. The expertise of the training agent has a direct relationship on how quickly the learning agent finds an optimal policy. Trainers that provide optimal actions to the learner are the most helpful, and as the trainer's expertise degrades, the speed with which the learner finds an optimal policy also degrades. Although this result is not too surprising, we find that there is not much difference between learning from a trainer that provides optimal actions and one that gives an incorrect action a quarter of the time. This suggests that one does not need to have an optimal trainer in order to benefit by using an integrated approach. Thus, a human trainer, who may not be optimal, can be beneficial to the learning agent. Furthermore, this shows that the learning agent can learn to perform the task better than its trainer. 9 The speed with which the learner learns is not only influenced by the trainer's expertise, the timing of the trainer's actions is also important. The results of experiments in which the learner asks the trainer for aid randomly demonstrate that not all trainer's actions are as helpful to the learning agent as others. The same amount of interaction with the trainer--that is, the same number of trainer-suggested actions-- can cause the learner to take widely varying amounts of time to find an optimal policy. This suggests that care must be taken in asking the trainer for help. Even so, it appears that a certain rate of interaction with the trainer leads most quickly to acquiring an optimal policy across a variety of problem sizes and trainer proficiencies. When the learner employs a more sophisticated strategy of asking for help, it can find an optimal policy more quickly with fewer trainer's actions. Thus, if the trainer were human, one would employ the more sophisticated asking strategy because it requires the least interaction with a human trainer. From the empirical results, we conclude that one can indeed integrate apprentice learning and reinforcement learning to advantage. We demonstrate that our hybrid approach, in which the learner asks for aid randomly and simply executes the trainer's actions, allows the learning agent to produce correct policies more quickly than with either reinforcement learning alone or apprentice learning alone. We have also implemented a more sophisticated asking strategy that performs better than asking for aid randomly. Finally, the results show that the expertise of the trainer plays a major role in the success of the learner. 1.6 Guide to the Dissertation The next chapter presents the two individual learning methods, apprentice learning and reinforcement learning, in greater detail. We review the work on these two methods and motivate our approach of integrating the two by exploring their disparate objectives, algorithms, and assumptions; comparing and contrasting their var10 ious characteristics. In Chapter 3 we discuss the issues that must be considered in integrating the two methods, and present a model of integration that not only provides a context in which to discuss related work and serves as a framework in which to explore the issues, but also describes how automated learners and trainers might interact. We begin Chapter 4 by posing questions that motivate our empirical study. Then, we present our instantiation of the hybrid method, the Ask for Help approach (AfH). In Chapter 5 we begin by describing the particular domains on which we test AfH. We then present empirical results from a variety of experiments in which we attempt to find answers to fundamental questions about integrated learning. Finally, Chapter 6 summarizes the dissertation and presents issues for future research. We conclude with a discussion of our contributions. 11 CHAPTER 2 APPRENTICE LEARNING AND REINFORCEMENT LEARNING This dissertation focuses on intelligent, computerized agents that learn to perform multiple-step tasks. The objective of the agents is to improve their policies so that they become more proficient problem-solvers. Two learning methods that attempt to endow the automated agent with the capacity to learn are apprentice learning and reinforcement learning. Each of these methods takes distinct approaches, with different assumptions, algorithms, and objectives. In apprentice learning, the autonomous agent learns from examples of another agent's problem-solving behavior; and, in reinforcement learning, the agent's policy is derived based on scalar rewards received while performing the task. In his pioneering research in machine learning, Arthur Samuel employed approaches from each method to develop checkers-playing agents (Samuel, 1963; Samuel, 1967). Regardless of the particular learning method, each of his agents learned to play checkers moderately well, but could not beat master-level players. Since Samuel's time, much research has gone into developing apprentice learning and reinforcement learning further. Before beginning a presentation of the two learning methods, we present the models of multiple-step tasks they each assume. Then, we present the learning methods in turn. Finally, we compare the methods along particular dimensions, such as the informativeness of the training information and the optimality of the learned policy. We show that each method has beneficial qualities, but that neither is clearly better than the other. We continue this line of reasoning in Chapter 3 by arguing that one 12 may want a hybrid learning method that has each of the desired qualities, and that strengths from each method may mitigate weaknesses in the other. 2.1 Models of Multiple-Step Tasks Apprentice learning models multiple-step tasks as state-space problems. Reinforcement learning assumes the Markovian decision task model, from the fields of operations research and optimal control. These models abstract the details of the environment in which the task exists into a mathematical representation. The main objective of this section is to point out that the two models are quite similar, differing only on a few details. Because the models are alike, considering a hybrid of the two learning methods is feasible. However, the disparities in the models give rise to some of the differences between apprentice learning and reinforcement learning, which we discuss below in Section 2.4. 2.1.1 State-Space Model The state-space model, which is used frequently for studying problem-solving issues in Artificial Intelligence (Rich & Knight, 1991; Ginsberg, 1993; Luger & Stubblefield, 1993; Russell & Norvig, 1995), represents problems in terms of states and operators. The states are the situations that arise in solving the problem, such as the configuration of pieces on the chess board, and the operators, such as the legal piece moves, transform the problem from state to state, where the resulting state is called the successor state. Note that an operator is a function that maps states to states: applying an operator to a particular state produces another state. A statespace problem can be specified completely by an initial state, a set of operators, and a predicate that recognizes goal states. The objective in solving the problem is to find a sequence of operators--a solution path--that successively transforms the initial state into a goal state. 13 Figure 2.1 depicts part of a state-space problem, including a partial solution. The circles in the figure represent states, and the arrows depict operators, which transform the state at the arrow's tail into the state at the arrow's head. For example, the application of operator "a4" transforms "State A" into "State B." The dashed circles and arrows show the states not visited and the operators not taken in the solution. A StateB Initial State a4 State a2 a2 Figure 2.1 State-space representation In more complex state-space problems, real-valued weights are associated with the operators. Consequently, the model can take into account such concepts as the physical distance between a state and its successor (given that the states represent physical locations) or the actual cost of selecting the operator. In problems specified in this manner, the agent must optimize a measure of the weights; for example, finding the shortest, or least-cost, solution path. Accordingly, it is not sufficient to find any path to a goal. 14 2.1.2 Markovian Decision Task Model The Markovian decision task (MDT) model was developed for studying stochastic control processes in operations research and control theory (Bellman, 1957; Puterman, 1994). Similarly to the state-space model, this model defines problems in terms of states, operators (called actions), and weights (called rewards)1. MDT's differ slightly from state-space problems on three particular points. First, there is no goal recognition predicate. The sole objective in a MDT is to find a path through the space of states that optimizes a measure of the rewards received in performing the task. Incidentally, this does not restrict MDT's from modeling problems that require the agent to reach a goal state, because all transitions into the goal state can be given high reward. Second, state transitions, the mapping of state to state by the actions, are stochastic. That is, the application of an action to a state may result in any one of a set of states, probabilistically. The state-space model, on the other hand, says little about the stochastic nature of state transitions, and most problem-solving systems assume the operators are deterministic. Finally, MDT's are explicit about requiring that all future state transitions be conditionally independent of any previous states or action choices given the current state. This restriction, called the Markov property, makes MDT's amenable to rigorous mathematical study, but does limit the applicability of the model somewhat. Nevertheless, many interesting problems, such as robot control, can be modeled as MDT's. Indeed, the state-space model assumes the Markov property implicitly, and thus many problems studied in Artificial Intelligence have this property. 1In the sequel, we will use the terms `action' and `operator' interchangeably. This is also true of `weights' and `rewards'. We will consider `solving a problem' and `performing a task' to be synonyms for the activity of making a sequence of decisions to achieve an end. 15 2.2 Apprentice Learning The learning agent in apprentice learning observes a training agent that is performing a multiple-step task. Figure 2.2 presents a diagram of the apprentice learning scenario, with a task , a learner , and a trainer . The trainer, which may be a human or an automated agent, selects the actions that are applied to the task and observed by the learner. Both the learner and trainer observe the state of the task. TrainerLearner Action State Task Figure 2.2 Apprentice Learning Method The objective of the learner is to develop a good policy ss that can be applied to the task. The agent attempts to meet this goal by learning to mimic the trainer. Because the trainer can perform the task, the assumption is that attempting to copy the trainer's strategy will allow the learner to do so also. At each discrete time step in the task, the trainer selects an action at based on the current state st and whatever knowledge the trainer may have about the task. The trainer then applies the action, transforming the task to the state st+1. Meanwhile, the learner has acquired knowledge about how to perform the task by noting the action that the trainer chose, acquiring a state-action pair (st; at) that serves as an example of a correct decision. This pairing of state with action is powerful training information: the learner has evidence that a particular action is applicable to a particular state. As the task progresses, the agent acquires a set of (st; at) training examples that are representative 16 of each of the trainer's decisions along the entire solution path. Given the set of (st; at) pairs, the learner can build its policy with any of the supervised learning techniques, such as decision trees (Quinlan, 1993; Utgoff, 1994) or neural networks (Nilsson, 1965; Rumelhart & McClelland, 1986). This type of learning has also been called "copying an existing controller" (Barto, 1990) and was used as early as 1964 for this purpose (Widrow & Smith, 1964). 2.2.1 Apprentice Learning Systems Several systems have been developed that employ apprentice learning to develop a policy. In this section we describe three of them. The first is one of Samuel's checkers players (Samuel, 1967). More recently the method has been applied to training an automated agent to drive a van (Pomerleau, 1991) and to fly a simulated aircraft (Sammut, Hurst, Kedzier & Michie, 1992). One of the earliest uses of apprentice learning was in training an agent to play the game of checkers (Samuel, 1967). The trainers are master checkers players, whose move choices from many games are recorded as book moves. The training games consist mostly of tied games, in which the entire sequence of moves made by each player is available to the learner. For games that are won by one of the players, only that player's moves are placed in the book. Note that humans also study book move information to improve their skills. In learning to play, the automated agent simulates the re-playing of the recorded games, examining each game state in turn and adjusting its policy according to the move chosen by the master player. Samuel explores two types of policy, both of which pick the current move choice according to an evaluation function coupled with limited-depth search. For a given state, the agent changes the evaluation function so that it will increase the likelihood that the trainer's move will be chosen in the future by giving more worth to the trainer's recorded move and decreasing the value 17 of making the move choices that were not chosen. The automated agent learns to play checkers moderately well, but can not beat master checkers players. In the Autonomous Land Vehicle in a Neural Network (ALVINN) project (Pomerleau, 1991), an automated agent learns to steer a modified van by observing a human's driving behavior. While the human drives, ALVINN creates a training example from the current state, represented by a video image of the scene ahead of the van, and the human's steering direction. ALVINN's policy is implemented as a multi-layer, feed-forward network (Rumelhart & McClelland, 1986) that takes the video image as input and determines the steering direction according to the values of its output units. Presented with a training example, the network adjusts its weights in an attempt to produce the requisite steering direction. Observing the human does not provide enough training examples for ALVINN to learn to steer the van. Pomerleau notes that the learning agent is not supplied with enough variety of experience by simply watching the human. It cannot recover from its own mistakes nor variations due to the uncertainties inherent in steering a van. To remedy this situation, in addition to learning from each training example derived directly from the action of the human driver, ALVINN also learns from several simulated training examples that are based on perturbations of the video image and the corresponding change in the human's steering direction. With these additional examples, the agent learns to drive the slowly moving van successfully . In the final apprentice learning system that we describe, an automated agent learns to fly a simulated aircraft by observing the actions of a human pilot (Sammut, et al. 1992). As the human flies the aircraft on a predetermined flight plan, the state information and the human's actions are observed by the learner and the training examples are recorded into a file. After the pilot completes the flight plan by landing the plane safely, the training information captured in the file is separated into seven training files, one for each stage of the flight (e.g. taking off, straight-and-level flight, 18 landing). The files are then processed individually by the inductive decision-tree learning algorithm C4.5 (Quinlan, 1993) to produce a policy, in the form of a set of rules, for every flight stage. Using this technique, autopilots are developed based on examples derived from three separate human pilots. Each of the three automated pilots is able to fly the pre-specified flight plan in approximately the same manner as the human from whom it had learned. 2.2.2 Apprentice-like Learning Methods A different type of apprentice learning is represented by systems like LEAP (Mitchell, Mahadevan & Steinberg, 1985) and PROTOS (Bareiss & Porter, 1987). LEAP is a classification system for circuit designs. Whenever LEAP produces an incorrect circuit design for a specified requirement (i.e. misclassifies the requirement), the human trainer provides LEAP with the correct circuit design. PROTOS, is a classification system for objects, such as dogs and tables. PROTOS asks the human for help when it misclassifies an object. The human and PROTOS then engage in a dialogue that results in changes to PROTOS's knowledge about the classification task. Although both of these systems learn from a human training agent, and can therefore be classified as apprentice-like methods, neither attempts to learn a policy for problem-solving. 2.3 Reinforcement Learning The learning agent in reinforcement learning updates its policy based on its own problem-solving experience. Figure 2.3 shows the major components of the reinforcement learning scenario: a task and a learner . These two components interact via states, which are the task situations; actions, by which the agent manipulates the 19 task; and rewards, the training information received by the agent after performing each action2. Action State Task Reward Learner Figure 2.3 Reinforcement Learning Method At each time step in learning to perform the task, the learner selects an action at to perform based on the current state st and its developing policy ss. After the agent applies the action, which changes the state of the task, it receives a reward rt (which may be zero) that indicates how well it is performing. This evaluative feedback is only weakly informative, simply revealing the short-term performance level of the agent and not giving specific information about the applicability of any of the previous actions. Nevertheless, the scalar rewards are sufficient for the agent to develop a policy that optimizes an additive measure of those rewards. In particular, the agent can learn to maximize the expected return, which is a weighted sum of the rewards received over the course of performing the task starting at a particular state. Stated mathematically, the agent attempts to maximize: E 1X t=0 fl trt! (2.1) 2The actual source of the rewards is generally considered to be the environmental critic, a component of the environment in which the task is embedded. The critic is abstracted away when the task is represented as a Markovian decision task: the rewards become simply labels on state transitions. Thus, we can treat the task itself as the source of the rewards. However, this distinction is not important here. What is important is that the learner receives reward signals, regardless of their actual source. 20 where rt is the reward received at time t, 0 ^ fl ! 1 is the discount factor, and E signifies expected value (which is necessary because state transitions may be stochastic). Because of the discount factor fl, immediate rewards are weighted more heavily than rewards received in the future. The weighting depends on the value of fl. With values near 1, current and future reward are weighted almost equally, and lower settings place the emphasis on rewards received in the near future. Other cumulative measures of reward, such as the average reward (Schwartz, 1993), have also been studied, but the discounted case lends itself more easily to rigorous mathematical study, and is currently the most popular form of return considered in other research. Because the learning agent is solely responsible for its own training experience it is faced with two inherent challenges. The first is the problem of temporal credit assignment (Minsky, 1963): Which of the many actions taken by the learning agent in the past should be credited, or blamed, for the most recently received reward? This issue is particularly difficult when the receipt of non-zero rewards is sparse. The other difficulty, called the explore/exploit tradeoff, arises because the agent must make the trade between performing well on the task now versus experimenting with its options in order to learn more about the task. By exploring, the learner may be able to develop a better policy than its current one. So, the learning agent has to decide when to take the action that its policy suggests versus when to choose another action that may give it more information about the task. Much progress has been made in solving the temporal credit assignment problem, and although formally justified exploration techniques have been developed, many current systems still employ ad hoc solutions to the explore/exploit tradeoff. The remainder of this section provides more detail on three prevalent reinforcement learning approaches. See Kaelbling, Littman and Moore (1996) for an in-depth survey of reinforcement learning. 21 2.3.1 Temporal Difference Learning The roots of temporal difference learning lie in one of the earliest reinforcement learning systems, the first of Samuel's checkers players (Samuel, 1963). The learner receives sparse rewards, given at the end of the game, that indicate only whether the game was a win, loss, or draw for the learner. In addition to these signals, the learner updates its policy--an evaluation function coupled with limited-depth search--according to its own assessment of how well it is performing. The agent adjusts its evaluation function so that the estimated value of the current state will move closer to the value of the best choice as determined by the limited-depth search. That is, the current state's evaluation changes to reflect the backed-up value of the highest-valued successor state. With this simple technique of backing-up state values, the agent learns to play checkers well enough to be considered a moderate checkers player. Note that there is no formal exploration policy: exploration results only from the changing evaluation function. This idea of regressing values led to the development of temporal difference learning (TD) (Sutton, 1988), which is the main technique for dealing with temporal credit assignment in reinforcement learning. Via TD, the learning agent learns to predict the expected return V (s) of each state, V (s) = E 1X t=k fltrtj(sk = s)! (2.2) which is the expected sum of discounted rewards to be received if the agent is in state sk at time k and uses the optimal policy thereafter. Temporal difference learning receives its name because the change to the predicted return is based on the difference between the previous prediction of the state's return V (st\Gamma 1)--the value of the previous state--and the current prediction rt\Gamma 1 + flV (st)--the sum of the actual reward received and the value of the current state. The current prediction is a more accurate measure of the actual value because it considers the reward received. After the agent 22 has executed action at\Gamma 1 in state st\Gamma 1, receiving reward rt\Gamma 1 and arriving at state st, the update for V (st\Gamma 1) is: \Delta V (st\Gamma 1) = ff(rt\Gamma 1 + flV (st) \Gamma V (st\Gamma 1)) (2.3) where V (st\Gamma 1) and V (st) are the predicted returns of st\Gamma 1 and st, and rt\Gamma 1 is the actual reward received. fl is the factor that discounts rewards received in the future (see Equation 2.1), and 0 ! ff ! 1 is the step size parameter that controls how much V (st\Gamma 1) actually changes. There is an entire family of TD algorithms, called TD(*), where 0 ^ * ^ 1 is a parameter that controls how much of the current difference (rt\Gamma 1 + flV (st) \Gamma V (st\Gamma 1)) is applied to all previous states sj; j ^ t \Gamma 1. Equation 2.3 is the TD(0) update rule, in which only the most recent state's value is affected. For any particular state sj, the amount of change to that state's value V (sj) is determined by the current difference and by the state's eligibility e(sj), which is a function of * that indicates how far in the past and how frequently the state has been visited. Equation 2.4 gives the TD(*) rule, which is applied at time t to all states, sj; j ^ t \Gamma 1. \Delta V (sj) = ff(rt\Gamma 1 + flV (st) \Gamma V (st\Gamma 1))e(sj) (2.4) The eligibility of a state is straightforward to calculate. At each time step, each eligibility is updated as follows: e(sj) ( *e(sj) + 1 when sj = st\Gamma 1*e(s j) otherwise (2.5) Thus, the eligibility of a state is an exponentially decaying trace of when and how frequently the state was visited. The eligibility mechanism implements a form of credit assignment, because the values of previous states are affected by the current difference, to an amount determined by how far in the past the state was visited. The most recent states are affected most, and states in the distant past are affected very 23 little. Sutton (1988) and others (Dayan, 1992; Dayan & Sejnowski, 1994) note that TD(*) converges more quickly for * 6= 0. It has been proved that TD(*), under certain conditions, will converge to the optimal value function (Sutton, 1988; Dayan, 1992; Dayan & Sejnowski, 1994; Jaakola, Jordan & Singh, 1994). Via temporal difference learning, TD-Gammon (Tesauro, 1995), a backgammon-playing program, not only became the world's best computer backgammon player, but is also considered to be as good as the world's best human backgammon players. 2.3.2 Actor-Critic Architecture The actor-critic architecture (Barto, Sutton & Anderson, 1983) consists of two components: the policy--also called the Associative Search Element (ASE)--and the evaluation function--known as the Adaptive Critic Element (ACE). This algorithm is closely related to the method of policy iteration in dynamic programming (Bellman, 1957; Barto, Bradtke & Singh, 1995), which is a classical, exhaustive method for finding optimal policies. The ASE and ACE are each faced with different learning problems. In its role as evaluation function, the ACE maps states to real values, and attempts to predict the value V (s) for each state (Equation 2.2). The ACE's update rule is the TD(0) rule given in Equation 2.3, which changes the previous assessment of predicted reward based on the current evaluation and the actual reward received. As the policy, the ASE maps states to actions. Each time the learner performs an action, it updates the ASE according to the immediate (predicted) reward from the ACE. Because the ASE receives immediate feedback, it does not have to deal with the credit assignment problem. However, since the ACE is being developed simultaneously with the ASE, there is much uncertainty in the training signal used by the ASE early in training. Indeed, there is no proof that the ASE will converge to an optimal policy. 24 The ASE/ACE pair was first applied to learning to control the cart-pole task (Barto, Sutton & Anderson, 1983). Controlling the cart-pole involves keeping a pole balanced on a movable cart and keeping the cart within the boundaries of a fixedlength track by applying a bang-bang control policy. In the system built by Barto, et al. (1983), the ASE/ACE were each implemented as a linear threshold unit (Nilsson, 1965). In later work, Anderson (1989) built each with a multi-layer feed-forward network. Both of these implementations were able to learn to control the cart-pole task after extensive experience. 2.3.3 Q-learning Instead of maintaining both a policy and an evaluation function, Q-learning (Watkins, 1989) combines them into a single mechanism. This reinforcement learning method is closely related to the classical dynamic programming method of value iteration (Bellman, 1957; Barto, et al. 1995), in which an evaluation function of the states is developed and the derived policy is greedy with respect to that function. For each state-action pair (s; a), Q-learning estimates the return of the state s, given that the action a is performed and the optimal policy is followed thereafter. The quantity Q(s; a) is called the Q-value of the state-action pair. Given a state s and the set of actions A that can be executed at that state, the implied policy selects the action that has the highest Q-value. That is: ss(st) = arg maxa2A Q(st; a) (2.6) The Q-function is trained similarly to the ACE discussed above, with temporal difference learning. In particular, the previous assessment of return, Q(st\Gamma 1; at\Gamma 1) is changed to reflect the currently predicted evaluation, rt\Gamma 1 + fl maxa2A Q(st; a). Remember that the optimal action to perform in state st is the action that produces the 25 highest Q-value (see Equation 2.6), and so maxa2A Q(st; a) represents the predicted value of taking that action. The update rule is given by: \Delta Q(st\Gamma 1; at\Gamma 1) = ff(rt\Gamma 1 + fl maxa2A Q(st; a) \Gamma Q(st\Gamma 1; at\Gamma 1)) (2.7) This update can also be expressed in a form similar to TD(*) where the current difference also applies to updates on previous states. It has been proved that Q-learning under certain restrictive conditions, will converge in the limit to the optimal evaluation function (Watkins, 1989; Watkins & Dayan, 1992; Jaakola, Jordan & Singh, 1994; Tsitsiklis, 1994). These proofs, although they do not say much about how Q-learning will perform in practice, lend credence to the widespread use of Q-learning. Indeed, several researchers have employed Q-learning with success: in robotics and maze tasks (Mahadevan & Connell, 1992; Lin, 1992; Singh, 1992) and in elevator dispatching (Crites & Barto, 1996). 2.3.4 Model-Based Reinforcement Learning Each of the reinforcement learning methods discussed so far are examples of modelfree algorithms. Although the learners in model-free algorithms are exposed to the transition probabilities and the reinforcements received for each state-action pair experienced, they do not try to learn a model of either of those aspects of the task. The model-based reinforcement learning algorithms, such as Dyna (Sutton, 1990; Sutton, 1991), Prioritized Sweeping (Moore & Atkeson, 1993) and the closely related Queue-Dyna (Peng & Williams, 1993), do learn such models. Because they have a model of the task, they can rely on it in order to simulate the outcome of the application of actions to arbitrary states; thus, gathering more experience in the task than they can on-line. These approaches can be costly in terms of computation. In addition, the learned policy is based on the imperfect model. Nevertheless, the model-based algorithms typically perform better than the model-free algorithms. 26 2.4 Comparison Apprentice learning and reinforcement learning both endow the automated agent with the capacity to learn to solve problems, allowing the learner to develop as good a policy as it can. In achieving this end, they each take differing approaches, with disparate assumptions, objectives, and algorithms. One can characterize the methods along dimensions such as: the availability of training information, the informativeness of the training information, the amount of exposure the learner has to the state-space, and the optimality of the learned policy. One can also discuss how each method deals with stochastic and temporal aspects of the task, and with the credit assignment and explore/exploit problems. Finally, another quality on which the methods differ is the speed with which each achieves its objective. One can compare and contrast the two methods along these dimensions and notice that neither one is clearly preferred over the other. When setting up a problem to be learned, one must be concerned with the availability of training information. Without this information, the task cannot be learned. In apprentice learning, the source of the training information is a human (or other agent) that can perform the task completely, but not necessarily optimally. For any given task, finding a sufficiently skilled trainer may not be possible, thus limiting the applicability of the method. Reinforcement learning requires only that the agent receive evaluative rewards in the course of problem-solving. The advantage of relying on rewards for training is that many problems can be cast easily as reinforcement learning problems, in the extreme associating appropriate rewards with only successful or failed end states. Because apprentice learning and reinforcement learning each have disparate sources of training information, one may ask how informative is each type of information. A strength of apprentice learning is that the learner receives prescriptive training. Because a human that knows how to perform the task is the source of the state-action 27 training pairs, it can be assumed that the information is useful for developing a good policy. For example, as Samuel points out, book moves are "representative of the very best play" (Samuel, 1967, p. 612). Although the trainer's choices may not always be optimal, they do give a strong indication of how to solve the problem. Moreover, the agent learns from entire sequences of state-action pairs that are known to lead from the start state to the completion of the task. In reinforcement learning, the training information is not so informative. It does not reveal which action should have been chosen nor which of the many previous actions led to the receipt of the reward. Furthermore, non-zero reward signals may be infrequent, providing the agent with only sparse training information. A learning agent should have access to the most informative training information possible. The two methods also differ in the amount of exposure to the task that the agent acquires. In apprentice learning, because the learner observes the solution path of the trainer, it only receives training within a very narrow portion of the state-space. Accordingly, the agent's performance may suffer if it were to stray from that narrow area. This situation is remedied in ALVINN by providing the agent with derived training information, representative of the state-space in a neighborhood of the solution path. In reinforcement learning, the agent must explore large portions of the state-space to gather information about which actions are the best to choose. Sammut et al., in their work in apprentice learning, observe that exposure to more of the state-space can lead to better policies. They note that the worst human pilots, because they made mistakes and then had to recover from them, exposed the automated agents to more of the state-space than just the narrow solution path, and were the source of the best autopilots. Thus, one desires that the learning agent gain action-selection experience over a wide range of states. The optimality of the learned policy is also a characteristic of concern. There is no evidence that an agent employing apprentice learning will learn an optimal policy. 28 The objective of the learner is simply to learn a policy that is based on the trainer's actions. Empirical results do not say much about the "goodness" of the learned policy. The master checkers players, who were by definition proficient at checkers, did not help Samuel's checkers players learn to perform optimally. However, Sammut et al. found that two of the learning agents could perform the task better than their trainers, due to generalization. For apprentice learning, we barely have empirical evidence that the learner will develop a useful policy at all, let alone an optimal one. On the other hand, there is much theoretical support for the claim that a reinforcement learning agent will eventually learn an optimal policy. Many convergence proofs for TD(*) and Q-learning exist (Watkins, 1989; Watkins & Dayan, 1992; Dayan, 1992; Dayan & Sejnowski, 1994; Jaakola, Jordan & Singh, 1994; Tsitsiklis, 1994), mostly due to the links reinforcement learning has with dynamic programming and stochastic approximation. Clearly, having theoretical support for the convergence properties of the learning algorithm is a preferred quality. Each of the methods approaches learning about the stochasticity and temporality of the task differently. Here, stochasticity refers to the fact that applying an action to a state may result in any one of a set of states, probabilistically. Temporality refers to the fact that an agent's current actions will impact the rewards it receives in the future, and will influence whether the agent is capable of completing the task. Neither of these issues are dealt with explicitly in apprentice learning. The agent simply learns to mimic the trainer's actions, under the assumption that the trainer knows the correct actions to perform. Reinforcement learning, though, handles both explicitly. The agent builds its policy to optimize the return, which is not only defined in terms of future rewards but is also an expectation over those rewards. Because of the expectation, the agent considers the stochastic nature of the task. Furthermore, the agent takes into account the rewards that may be received in the future, because 29 the measure of optimality and, hence, the returns that are to be estimated are defined in terms of the current and all future rewards. Reinforcement learning must face the credit assignment problem and the explore/exploit tradeoff. Learners in apprentice learning need not concern themselves with these two issues. First, there is no credit to assign. When the learner receives a state-action pair, it can learn directly that the action should be evoked in that state. There is no reason for the apprentice learning agent to explore either: the agent just learns from the trainer's actions. Reinforcement learning, by its very nature, must be able to handle credit assignment and exploration. Having to deal with temporal credit assignment and exploration of the task makes learning more difficult. Finally, the two methods reach their objectives at different rates. In apprentice learning, the agent attempts to build as good a policy as it can based on observation of the trainer. In all three apprentice learning systems described above, the agent is able to do this quickly: Running an induction algorithm on a set of (st; at) training instances does not require a prohibitive amount of time. We must point out, though, that the agents do not learn to perform the tasks in the same manner as their trainers. Samuel's checkers player does not learn to play like a checkers master, and two of the autopilots learn to fly better than their trainers. Reinforcement learning methods generally require huge amounts of time to develop policies for even simple tasks. Remember, though, that reinforcement learning is attempting to build an optimal policy, not just a satisfycing one. Furthermore, reinforcement learning can be faster than the only other method that produces optimal policies, dynamic programming, and, unlike dynamic programming, does not require the complete specification of the task. To some extent, one cannot compare the two methods on this criterion of speed because the objectives are so different. We have compared and contrasted the two learning methods on particular dimensions. The comparison is summarized in Table 2.1. Apprentice learning provides 30 the learner with higher quality training information, and does not have to be concerned about credit assignment nor the explore/exploit tradeoff. On the other hand, reinforcement learning exposes the trainer to a larger portion of the state space, guarantees optimal policies under certain conditions, and manages the stochastic and temporal aspects of the task explicitly. In our comparison of the two learning methods, we point out that on any given dimension one of the methods is preferred, but that neither method is preferred on all dimensions. Table 2.1 Comparison of Apprentice Learning to Reinforcement Learning on a select set of characteristics. The preferred quality is in bold-face type. Apprentice Reinforcement Characteristic Learning Learning Training information available rarely often Quality of training information prescriptive evaluative Exposure to problem space narrow broad Optimality of policy rarely approaches optimal Stochasticity implicit explicit Temporality implicit explicit Credit assignment problem no yes Explore/exploit problem no yes Speed objective satisfied fast slow 31 CHAPTER 3 INTEGRATING APPRENTICE LEARNING AND REINFORCEMENT LEARNING Apprentice learning and reinforcement learning each give an automated agent the capacity to learn to perform multiple-step tasks. They both allow the learner to improve its policy and become more accomplished at the task. In our analysis of the two methods in the previous chapter, we describe particular dimensions of comparison and note that the two methods are clearly different. A learning method that possesses a higher proportion of the desirable characteristics will be considered an improvement over either of these methods. One can develop such a preferred method through a prudent integration of the two individuals. The new hybrid method will not only have many of the beneficial qualities of its constituents, but it will also reduce their weaknesses via the synergistic combination of its complimentary components. Hybrids of apprentice learning and reinforcement already exist (Utgoff & Clouse, 1991; Clouse & Utgoff, 1992; Lin, 1992; Lin, 1993), and have been shown to perform better than their constituents. For example, Utgoff and Clouse (1991) developed an integrated learning agent that only needs to traverse the task once from the start state to goal state in order to learn to perform it correctly. Learning without the integration requires more training: two traversals of the task when learning via apprentice learning and almost five hundred traversals when learning via reinforcement learning. The learning agent in Clouse and Utgoff (1992) achieves learning speedups of up to two orders of magnitude versus reinforcement learning alone. Finally, Lin (1992, 1993) shows that giving a learning agent the ability to incorporate a trainer's knowledge improves the speed with which the agent learns. Each of these systems 32 hints at the positive benefits of integrating apprentice learning and reinforcement learning and serves as inspiration for our work. 3.1 An Integrated Learning Method We define an integration of apprentice learning and reinforcement learning to be a learning method in which the learner can improve its policy based on rewards and on actions provided by a trainer. The trainer may or may not be human, and does not need to be expert at the problem. Figure 3.1 depicts such an integrated learning method. The relationship between the learner and the task is the same as that in reinforcement learning: at every time step, the learner observes the state, chooses an action to perform, and receives a reward. The relationship between the learner and trainer is similar to that in apprentice learning because the learner can observe actions that the trainer supplies. Unlike apprentice learning, the trainer does not need to provide an action to the learner at every step of the task. Either the learner or trainer determines when it is appropriate for the trainer to give an action. Accordingly, the interactions between the learner and trainer are more sophisticated, for example allowing the learner to ask the trainer to provide it with an action. Task Learner Trainer State Action InteractionAction Reward Figure 3.1 Integrated Learning Method 33 According to our definition, the learner receives task knowledge from the trainer in the form of actions to perform. This approach has appeal for two main reasons. First, because apprentice learning relies solely on the actions provided by the trainer, it seems reasonable to do the same in a method that has apprentice learning as one of its components. More importantly, having the trainer give actions is a natural and easy way for the trainer to provide information to the learner. The trainer does not need to codify knowledge into rules, but simply reacts to the current situation, providing the action that is deemed best. Actions, though, are not the only form of information that the trainer may be able to provide (see Section 3.4). However, in our work we limit the trainer in the integrated method to providing simple actions to the learner. 3.1.1 Desirable Characteristics An integration of apprentice learning and reinforcement learning should have the following characteristics: 1. It should use whatever training information is available, whether from the environment or from the trainer, and be able to incorporate that information into its policy. 2. It should expose the learner to enough of the state-space for the learner to develop an effective policy, but should not require the learner to gain experience across the entire state-space. 3. It should allow the learning agent to develop a policy that optimizes the longterm receipt of reward signals, thus handling the stochastic and temporal nature of the task explicitly. From the reinforcement learning component, the learner has access to scalar reward signals; and through apprentice learning, the learner receives actions from the trainer. An integrated method must be able to assimilate each type of information into the policy. The difficulty here is in designing a learning algorithm that updates 34 the policy according to two disparate forms of knowledge. The algorithm must adjust the policy according to the scalar signals, and it must change the policy based on the trainer's actions. The learner must also be exposed to broad areas of the state space. As Sammut et al. (1992) and Pomerleau (1991) describe, experience with a wide selection of stateaction choices is important for learning a good policy. On the other hand, because it takes time to visit many states, the exposure should be focused on only those areas of state-space that are necessary to learn a policy that is optimal for the problem. The ultimate goal of the learning agent is to develop an optimal policy. Finding such a policy is guaranteed (under certain restrictive conditions) by reinforcement learning. In an integrated method, using the trainer's information should not preclude the learner from developing an optimal policy, but should help it achieve such a policy more quickly. Being able to develop an optimal policy implies that the learning agent is taking the temporal and stochastic aspects of the task into consideration explicitly. 3.1.2 Issues in Integrating the Two Methods Integrating apprentice learning and reinforcement learning raises a set of questions that we address in our research: 1. How should the learner and trainer interact? 2. How should the learner incorporate the trainer's proffered information into its developing policy? 3. When is it effective for the learner to receive training actions? 4. To what extent does the expertise of the trainer affect the learning? Because the learner has access to reward signals and can update its policy according to those signals, it does not have to receive an entire sequence of state-action pairs from the trainer. In fact, the learner does not have to receive any information from the trainer at all, but should be able to use whatever information the trainer provides. 35 Because the learner has access to reward signals, the trainer is free to provide actions at unspecified times in the training. That is, the relationship between the learner and trainer is much richer than simply having the trainer give an action at every time step. To describe this more sophisticated relationship, we have developed a model of the interactions that take place between the learner and trainer. The model is inspired by the complex relationships between human learners and trainers. Even so, the model does not attempt to describe all possible interactions that may occur. It is described in Section 3.2. One must also be concerned with the algorithmic detail of how to incorporate both reward signals and state-action pairs into the developing policy. It may seem surprising that one can produce a policy from both types of information, but several approaches have been proposed that work well (see Section 3.3.2). Unfortunately, it is unknown which is best and which gives the integrated method the desired qualities described above. We also do not know when the trainer should interact with the learner to provide training information. Apprentice learning and reinforcement learning represent extremes of interaction; the trainer either provides information always or never, respectively. We explore the spectrum of interaction between these ends. The amount of trainer interaction becomes an important issue when one considers the cost of having the trainer in the scenario. One may like to have as little interaction with the trainer as possible, both to reduce the cost and to decrease the dependence of the learner on the trainer. Finally, because the learner bases part of its policy on the trainer's actions, it seems natural to ask how good the trainer must be in order for the learner to benefit from those actions. In previous work (see Section 3.3.2) it is not clear how good the trainer is at performing the task nor how the trainer's expertise affects the learner's ability to develop an appropriate policy. Although we know that the trainer does 36 not have to be able to solve the problem perfectly from every state in order to be effective, we do not know how often the trainer can make mistakes. 3.1.3 Two Viewpoints One can think of the integration of apprentice learning and reinforcement learning from at least two distinct viewpoints. First, one can imagine the hybrid as augmenting reinforcement learning with apprentice learning characteristics; for example, allowing the automated agent to learn also from a trainer's knowledge. One can also see the integration as adding reinforcement learning characteristics to apprentice learning. For example, in the hybrid method the learner can now deal explicitly with the temporal aspects of the task, when before it could not. Regardless of the particular viewpoint, each constituent brings positive characteristics to the hybrid. Furthermore, the characteristics of the individual methods interact, reducing each other's weaknesses. In the integrated method, certain characteristics of apprentice learning will improve upon reinforcement learning's drawbacks. By having a trainer in the scenario, the learner has access to informative training information, which can augment the evaluative reward signals the learner already receives. As a different type of task knowledge, the trainer's actions will also aid the model-based reinforcement learning approaches. The trainer's actions may also help focus the efforts of the learner on parts of the space that are appropriate for learning an effective policy quickly, combating a major weakness of reinforcement learning described by Kaelbling et al.: One thing that keeps agents that know nothing from learning anything is that they have a hard time even finding the interesting parts of the space; they wander around at random, never getting near the goal. (1996, p. 275) 37 The trainer may help the learner find the "interesting parts" of space, showing the learner where it is profitable to explore and thus alleviating the explore/exploit difficulty. In an integrated method, characteristics of reinforcement learning can reduce weaknesses of apprentice learning. One drawback of apprentice learning is that the trainer must be able to perform the entire task correctly. Because the learner in the hybrid method can now adapt based on reward signals, it does not need to rely as heavily on the trainer. In the hybrid method the trainer does not need to perform the task completely, from a start state to a goal state; instead, it may give partial solutions, some only one step long. The learner can also deal with the trainer's mistakes, refining incorrect training information in its continued exploration of the task. The addition of reinforcement learning characteristics to apprentice learning will also allow the learner to receive more exposure to the task than the narrow solution path of the trainer because exploration of the state-space is a key component of reinforcement learning. Moreover, reinforcement learning also brings its other strengths to the integration, dealing explicitly with the stochasticity and temporality of the task, and having a sound theoretical base. 3.2 A Model of Learner/Trainer Interaction The relationship between the learner and trainer is more sophisticated in the integrated method than in either apprentice learning or reinforcement learning. The model of learner/trainer interaction introduced here specifies the interactions that may take place. The goal of the learner is to develop an optimal policy. The trainer shares this goal, providing the learner with actions so that the learner can improve. However, the model takes into account that the trainer may have its own work to perform and so must balance helping the learner versus completing its own task. The tasks of the learner and trainer are in the same domain, but may deal with different 38 aspects of that domain. For example, the learner may be learning how to navigate a robot in a fixed environment, whereas the trainer's task involves navigating around moving obstacles. A research issue that we explore is how much the trainer's expertise at the task influences how well the learner learns. In the learner/trainer model, the learner and trainer employ two classes of actions. The first class of actions are those that transform task states, such as moving a robot forward, or turning the robot. The second class of actions, which we call meta-actions, define the interactions that occur between the learner and trainer. To distinguish between the mechanisms for deciding which action to choose and which meta-action to choose, we will continue referring to the first as simply a policy and will refer to the other as an interaction policy. A set of interaction policies are employed by the trainer and learner to determine which meta-action to choose. Although our work focuses on learning the policy, having the agents learn the interaction policies is a possibility for future research (see Section 6.2.3). The following sections present more details on the learner/trainer model, describing the learner, the trainer, and the interactions between them. 3.2.1 The Learner The learner is a computerized agent that is attempting to learn to perform a task by developing an optimal policy. Figure 3.2 depicts the model of the learner. The figure represents a simple conditional branch (diamond), the meta-actions (circles), and the interaction policies (stars). The conditional branch at the top of the diagram represents the fact that at each time step the learner determines first whether the trainer has provided it with any training information. The learner makes use of three interaction policies, each of which pertains to different aspects of the interaction with the trainer. If the learner has not received a task action from the trainer, it can decide whether to ask the trainer for help. When the learner decides to ask for help, it performs the meta-action "Ask for Help" and 39 True False True False True True FalseFalse OwnPerform Help?Ask for Help Trainer'sAction?Perform Trainer'sActionPerform Received Trainer?Action from Ask for Observe Observe Trainer? TrainerAction Figure 3.2 Learner Model sends a signal to the trainer notifying it of the request. The learner can decide to ask for help for many reasons; for example, when the it does not know what to do at that point. The learner may decide not to ask for help because it has determined that the trainer's help is not necessary. It is a research issue, which we explore herein, to determine when it is appropriate for the learner to ask for help. When the learner receives training information from the trainer, it must decide the disposition of that information. The interaction policy "Perform Trainer's Action?" determines whether to learn from the trainer-supplied information. The learner may decide to use the trainer's information because the learner has just started learning. Or, the learner can decide to ignore the trainer's help, which it may do if it determines 40 that it has a better policy for the problem than the trainer or that the trainer is providing incorrect actions. The final interaction policy, "Observe Trainer?," comes into play only when the learner has decided not to ask for help and not to learn from the trainer's proffered information. This policy determines whether the learner should simply observe the trainer in order to gain information about how to perform its task. In observing the trainer, the learner does not perform an action in its own task, but examines the trainer's task state and chosen action. The learner can then learn from that stateaction pair. The learner may decide to do this, for example, when the learner's and trainer's tasks are similar to each other. The final meta-action is executed when the learner has decided not to perform any of the other meta-actions. Then, the learner picks a task action to perform. As in reinforcement learning, the learner is faced with the problem of choosing an action that will exploit the information it has already gleaned about the task or performing an action to explore the task and gather more information. 3.2.2 The Trainer The trainer may be an automated agent or a human and may be performing a task within the same domain as the learner. Figure 3.3 shows the model of the trainer. Like the figure of the learner model, this figure depicts a simple conditional branch, meta-actions, and interaction policies. The conditional branch determines whether the learner has asked for help. If so, the trainer employs its interaction policy labeled "Give Solicited Action?" to determine whether to supply the learner with the requested action. The trainer may give the learner help because the learner has just started learning, or the trainer recognizes the learner's current task state as being difficult. The trainer may refuse to give help because it can not determine what action is appropriate to give because it does not have knowledge about that part of the space. 41 True FalseFalse TrueFalse TrueSolicitedGive ActionGive Action?for Asked Action? Action PerformGive Give Action?Unsolicited WorkOwn Figure 3.3 Trainer Model When the trainer decides to ignore the learner's plea for help, the trainer performs its own work (if it has any), deciding which action to apply to its own task. If, on the other hand, the learner's request is to be granted, the trainer provides the learner with the action that it determines to be appropriate for that state. The proffered action might not give the learner the optimal choice to make in that situation, because the trainer might not know the optimal action. The trainer is attempting to help the learner, though, and will not mislead the learner intentionally. When the learner does not ask for help, the trainer decides whether to volunteer information, which it may do for the same reasons as offering solicited help. The meta-actions that can be applied by the "Give Unsolicited Action?" interaction decision-policy are the same as those under the interaction decision that pertains to the learner asking for help. Although the two interaction policies could be collapsed into only one, there may be a need for the trainer to maintain the distinction of whether the learner asked for help or not. Furthermore, trainers in currently existing 42 systems are either of one type, offering unsolicited help, or the other, offering solicited help. Thus, the model has two, separate interaction policies. 3.3 Fitting Previous Work to the Model Several learning systems have been developed that allow an automated agent to learn to perform multiple-step tasks. Each has made assumptions about the interactions between the learner and trainer, employing particular mechanisms for allowing the learner to acquire task knowledge. In apprentice learning, which is at one end of the spectrum of interactions, the learner always acquires information from the trainer and always updates according to that information. At the other extreme is reinforcement learning, in which there is no trainer. Several researchers have also suggested systems that lie between these two extremes. The following sections describe these learning systems in more detail, discuss the assumptions about the interactions between the learner and trainer, and show how the methods fit the learner/trainer model. 3.3.1 Apprentice Learning and Reinforcement Learning Revisited Both apprentice learning and reinforcement learning are specializations of the learner/trainer model, in which different aspects of the model have been left out. Figure 3.4 depicts a particular interpretation of apprentice learning. The shaded areas of the figure cover the parts of the model that are not applicable to apprentice learning. The learner, depicted on the left of the figure, can execute only one metaaction: perform the action provided by the trainer. The only applicable interaction policy "Perform Trainer's Action?" produces a fixed value of "True". At every time step, the learner receives an action from the trainer, and has no choice but to train with that action. 43 True False True False TrueTrue FalseFalse TrueFalse TrueTrue False False GiveAction GiveAction GiveSolicited Action? Askedfor Action? Perform Help? Trainer'sTrainer? Action PerformTrainer's Action? GiveUnsolicited Action? PerformOwn Work PerformOwn Ask for Help Action Learner Trainer ObserveTrainer Ask for Received Trainer?Action from Observe Figure 3.4 Fitting Apprentice Learning to the Learner/Trainer Model, first interpretation The trainer, depicted on the right of Figure 3.4, is never asked for help, but always provides it to the learner. At every time step, the trainer assesses the situation in the task and gives the learner the appropriate action. Like the learner, the trainer has only one meta-action to execute, "Give Action," and the interaction policy "Give Unsolicited Action" produces a fixed "True" value. In a second interpretation of apprentice learning, the trainer performs its own work while the learner observes unobtrusively. This viewpoint also fits the proposed model, but different parts of it apply, as shown in Figure 3.5. The learner still executes only one meta-action, observing the trainer. Similarly, the trainer performs only one metaaction as it does its own work. The interactions between the learner and trainer are just as inflexible in this interpretation as in the other. The main difference between the two viewpoints is that in the first the learner is performing its own task with the help of the trainer, and in the latter the trainer is performing its own task with the learner observing. Both interpretations are appropriate and both exhibit the rigidity of the interactions in apprentice learning. 44 True False True False TrueTrue FalseFalse TrueFalse TrueTrue FalseFalse GiveAction GiveSolicited Action? PerformTrainer's Action PerformTrainer's Action? Unsolicited Observe Action? Trainer? Askedfor Action? PerformOwn Work PerformOwn Action ObserveTrainer GiveHelp? Received Ask for Trainer? Learner Trainer HelpAsk for Action from GiveAction Figure 3.5 Fitting Apprentice Learning to the Learner/Trainer Model, second interpretation Figure 3.6 shows how reinforcement learning maps to the learner/trainer model. Via reinforcement learning, the learner relies solely on its own experiences to improve its performance. A trainer is not present to guide the learner, hence the model of the trainer, on the right of the figure, is completely shaded out. As shown in the left of the figure, both applicable interaction policies produce constant outputs. The learner can only perform its own actions, either doing the current best action or choosing an action for exploration purposes. And, the learner never receives help from a trainer because a trainer is not present. For the same reason, the learner cannot ask the trainer for help nor observe the trainer. The learner/trainer interactions do not exist in reinforcement learning. 3.3.2 Integrated Learning Methods The integrated approaches can be divided into two main categories, based on the interactions they have with the trainer: 1. The trainer provides actions whenever the trainer feels it is necessary. 2. The trainer provides actions only when asked by the learner. 45 FalseFalse TrueFalse TrueTrue FalseFalse TrueFalse TrueFalse TrueTrue Observe Action?Trainer's Perform ActionTrainer's Perform Action?for Asked Action?Solicited Give ActionGiveActionGive Action from Trainer? Trainer? Ask for Received TrainerObserveActionOwn Perform WorkOwn Perform Action? Learner Trainer UnsolicitedGiveHelp?Ask for Help Figure 3.6 Fitting Reinforcement Learning to the Learner/Trainer Model In each of these categories, the learner always trains on the information provided by the trainer. The following two sections describe these systems and show how they fit the learner/trainer model. Each of these systems hints at the power of integration. Experimentation with all of these systems shows marked decreases in the amount of training necessary for the learner to learn to perform the task. These performance improvements serve as an inspiration for our work of studying the integration of apprentice learning and reinforcement learning. 3.3.2.1 Receiving Unsolicited Actions The two systems presented here show that allowing a trainer to provide occasional, unsolicited information to the learner will improve the learner's ability to learn its task. Learning from Lessons: Lin's work (1991, 1992, 1993) focuses on how Q-learning can scale up to more complicated tasks than those typically attempted, introducing several approaches for improving the learning rate of reinforcement learning. One 46 of the approaches combines apprentice learning and reinforcement learning into a method that relies on the trainer's ability to do the task in its entirety. In this approach, a human trainer performs the task occasionally, leading the agent through all the steps necessary to progress from a start state to a goal state. The sequence of (state, action, resulting state, reinforcement) quadruples that result from the human's actions is captured in a lesson. After a lesson has been recorded, the learning agent incorporates it into its experience by simulating the trainer's performance repeatedly. The agent does not need to perform the sequence of actions itself because all of the information necessary to do the Q-learning updates is present in the quadruples of the lesson. The results of Lin's experiments indicate that the learners are able to learn more quickly with the trainer's aid than without it. In one case, the learner learns a task via the integrated approach that it does not learn with reinforcement learning alone. Unfortunately, like the trainer in apprentice learning, Lin's approach requires the human trainer to develop complete sequences of actions that are appropriate for teaching the learner. This approach does not address the issues of when the trainer's information is needed nor of how good the trainer needs to be in order to be effective. Learning via Interactive Teaching: Clouse and Utgoff (1992) add a simple interface to a reinforcement learning approach to allow a human to interact with the automated learner on-line and in real-time. While the agent learns the multiple-step task via reinforcement learning, the human monitors the learner's performance and provides an action to the learner whenever she desires, providing the learner with a correct choice to make at that point in the task. At each time step, the learner senses whether the human trainer has supplied such an action. If so, the learner performs the trainer's action and gives itself an artificial positive reward for doing what the trainer suggested. Otherwise, the learner makes its own action choice based 47 on its developing policy. Because the learner receives an artificial reward, it learns to optimize a different set of rewards than if it did not interact with the trainer. In an experiment with a complex control task, the learner performed the task after two orders of magnitude less training effort than that required with plain reinforcement learning, while receiving only an average of seven actions from the human trainer, each of which is a single key-stroke. This approach to integrating apprentice and reinforcement learning shows that the development of the policy can be greatly improved when a trainer attempts to teach the learner actively. However, the trainer decides when such training information is appropriate for the learner. Similarly to Lin's system, there is no sense of the best time for a trainer to provide information nor of the effects of the trainer's expertise on the results. Figure 3.7 depicts the learner and trainer for these two systems, in which the trainer determines when to give the learner information. The learner can employ two meta-actions: perform its own action and perform the trainer's action. The learner's interaction policies, as in all systems discussed previously, are fixed. When the learner receives input from the trainer it must use it, and when the trainer does not provide the learner with help, the learner is on its own. The trainers in these two systems decide whether to give the learner help or not. Unfortunately, both systems rely on a human trainer whose expertise at the task is unknown, and it is uncertain when the trainer should give information to the learner. 3.3.2.2 Receiving Solicited Actions Utgoff and Clouse (1991) show that the learner can take more control of the interactions between the trainer and learner, soliciting the trainer to supply actions. In the reinforcement learning component of their system, the learner updates its policy via a form of temporal difference learning: the value of the current state is changed to reflect the value of the successor state resulting from the application of the current action. The trainer's information is assimilated into the policy by inferring that the 48 True False True False TrueTrue FalseFalse TrueFalse TrueTrue FalseFalse GiveAction GiveSolicited Action? Askedfor Action? PerformTrainer's Action Unsolicited Perform Action? Trainer'sAction? ObserveTrainer? PerformOwn Work PerformOwn Action ObserveTrainer GiveHelp?Ask for HelpAsk for Learner Trainer Received Trainer?Action from GiveAction Figure 3.7 Fitting Integrated Learning to the Learner/Trainer Model, where the trainer provides unsolicited actions state resulting from the action chosen by the trainer should have a higher value than all of the other currently applicable states. As the learner trains with reinforcement learning, whenever the difference between the value of the current state and the value of the successor state exceeds a specific threshold, the automated trainer is queried and the trainer informs the learner of the correct action choice. The learner is able to learn to perform a small version of the task after traversing it only once from start state to goal state, whereas an apprentice learning method requires two traversals and the reinforcement learning approach requires almost five hundred. For larger problems, the integrated method is still much faster than the other two individually. Furthermore, the frequency of requests for trainer's actions drops sharply as the learner improves its performance on the task. Figure 3.8 depicts the learner and trainer for this system. Unlike all previous systems we have discussed, the interaction policy for deciding whether to ask the trainer for help is an automated policy with two possible outcomes. This interaction policy is based on the internal workings of the reinforcement learning algorithm and 49 indicates whether to ask the trainer for help or to perform a task action. All other interaction policies produce fixed values. True False True False TrueTrue FalseFalse TrueFalse TrueTrue FalseFalse Trainer's Action? ObserveTrainer? GiveUnsolicited Action? Askedfor Action? Give Own Solicited Action Action? PerformOwn Work ObserveTrainer Received Trainer?Action from GiveAction Give Perform Help?Ask for HelpAsk for Learner Trainer Action PerformTrainer's Action Perform Figure 3.8 Fitting Integrated Learning to the Learner/Trainer Model, where the trainer provides solicited actions The learner in this method is more sophisticated than any previously mentioned because it can decide whether or not to ask the trainer for help. However, the trainer always provides the learner with perfect training information, telling the learner the optimal action to perform, and so this approach does not deal with the trainer's possible lack of expertise. 3.4 Other Related Work Other systems have been built in which learners attempt to develop policies for multiple-step tasks. Like the integrated systems described above, these systems incorporate a human's knowledge in addition to evaluative feedback in learning to perform the task. The systems can be divided into two main groups. In one, the human provides high-level advice in the form of if-then rules. In the other, the human subdivides the task into smaller, more easily solved pieces. 50 3.4.1 If-Then Rules In the integrated method described above, the trainer provides the learner with simple actions that should be applied to the current state. Another form of knowledge that the trainer can give the learner is general advice in the form of if-then rules. Unlike task actions, which only give information about the states with which they are paired, one piece of advice may be applicable to many situations that arise in the task. In Maclin and Shavlik's (1996) Reinforcement and Advice-Taking Learning Environment (RATLE) system, while the agent learns its task via reinforcement learning, a human monitors the learner's performance. Whenever the human feels it is necessary, she provides the learner with advice in the form of an if-then rule that specifies a set of actions to take for all states that satisfy the rule's preconditions. Using techniques derived from knowledge-based neural networks (Towell, Shavlik & Noordewier, 1990), the learner incorporates the rule via changes to the multi-layer network that represents its policy. According to the structure of the rule, the learner adds nodes and connections to the network, and gives the connections initial weights. After the advice-induced changes to the network have been made, the learner continues learning, updating its policy based on reinforcement learning and possibly changing the values of the new weights. When it is given advice, the learner achieves significantly higher levels of reward in performing the multiple-step task than when it receives no advice. The experiments also indicated that the time of arrival of the advice does not matter: whether given at the beginning or in the middle of learning, the learner is able to achieve the same high level of performance. One drawback of RATLE is that it requires the trainer to perform the following steps in giving advice: observe the learner's behavior, analyze that behavior, develop a rule to fix an observed difficulty, codify that rule in a manner understandable by the learner, and, finally, present the advice to the learner. This 51 is much more demanding on the trainer than having the trainer react naturally to the current situation by offering an action to perform, but, the advice may be more broadly applicable. Gordon and Subramanian (1994) built a similar system in that the learner accepts rules from a trainer and then refines those rules autonomously. In their system, the learner relies on genetic algorithms (Holland, 1986), instead of reinforcement learning, to learn from task rewards. The trainer develops a set of if-then rules before the agent begins learning, codifying whatever knowledge seems appropriate. After the if-then rules are converted automatically into operational rules with the help of a database of domain knowledge, they become part of a population of rules that are continually refined by the genetic operators as the learner performs the task. The learner, when seeded with the trainer's advice, learns to perform the task better than learners without the advice. There is no real interaction between the learner and trainer, though, because the trainer can only give advice at the beginning of training. 3.4.2 Task Decomposition and Shaping In the approaches discussed here, the underlying learning method is reinforcement learning. The apprentice learning aspect comes implicitly from the fact that a human either changes the definition of the problem as the learner progresses, training it on increasingly complex approximations of the required problem, or has spent a great deal of effort in defining the problem. The first approach is shaping and the next is task decomposition. In these two approaches, there is no direct interaction with a training agent. Thus, these approaches fit the learner/trainer model in the same manner as reinforcement learning, where the learner does not have the benefit of an on-line trainer. However, when one considers the extra effort of the human, these approaches fit the model similarly to many of the systems discussed above. Shaping, which is a method from animal learning for training animals to perform complex motor tasks (Skinner, 1938), has been adopted recently for training auto52 mated learners (Gullapalli, 1992; Singh, 1992). The learner is trained on increasingly complex approximations of the required task, and would not be expected to learn to perform the task without this aid. In this case, the human expert specifies the approximations that allow the learner to develop its policy. In task decomposition a human expert provides the agent with a set of subtasks to learn, thereby simplifying the overall learning problem (Mahadevan & Connell, 1992; Singh, 1992). The human expertise comes in the form of the a priori decomposition of the task into these subtasks, the priorities of the subtasks, and the identification of the subtasks to the learner. Without this task breakdown, the learner would not be able to develop an appropriate policy at all. Task decomposition and shaping each take advantage of human expertise to lessen the difficulties of learning in multiple-step tasks. Unlike the previously discussed integrated methods, in these two, the trainer gives the learner domain knowledge that is much more complex than a simple task action. 3.5 Summary The careful integration of apprentice learning and reinforcement learning will produce a hybrid that has many of the desirable characteristics of its constituents and thus will be better then either of them. Previous research has affirmed this statement partially, but has not addressed sufficiently other issues pertinent to integrating the two methods. Combining the two methods raises a set of questions that must be addressed in designing, implementing, and applying a hybrid method. One must determine how the learner and trainer will interact, when the trainer will provide training actions to the learner, and how the learner will incorporate those actions into its developing policy. Furthermore, one must be concerned with how the trainer's expertise will affect the ability of the learner to develop a policy. In the next chapter, we present a 53 new hybrid system, Ask for Help, that was designed to find answers to these and other questions. 54 CHAPTER 4 A NEW INTEGRATED SYSTEM Each of the earlier systems that combine apprentice learning and reinforcement learning allows the learner to develop an effective policy more quickly than without the integration. Regardless of the accomplishments of these previous systems, there are still many fundamental questions to answer. Before integrated methods are widely adopted, we need to know, for example, when it is beneficial for the trainer to provide the learner with training actions. We must also ask how the trainer's expertise influences the learner's ability to acquire an appropriate policy, so that we can consider how to learn from trainers that provide occasional suboptimal actions. In order to answers these and other questions, we have designed, developed, and implemented a new integrated approach, the Ask for Help (AfH) approach. The other objective to satisfy in designing the AfH approach is to give it the desirable characteristics presented in Section 3.1.1 (page 34). These characteristics include the ability to learn from both the trainer and its own actions, and to learn an optimal policy. The extent to which these characteristics are actually present in the approach is a matter for empirical verification. Ask for Help is also influenced by each of the earlier integrated systems. This chapter continues by reiterating the research questions from Chapter 3 and discussing the requirements on a new integrated approach that allows us to find answers to those questions. We then discuss the new approach in detail. 55 4.1 Design Considerations In Chapter 3 we pointed out several questions of interest to us that arise in integrating apprentice learning and reinforcement learning. To reiterate, the questions are: 1. How should the learner and trainer interact? 2. How should the learner incorporate the trainer's proffered information into its developing policy? 3. When is it effective for the learner to receive training actions? 4. To what extent does the expertise of the trainer affect the learning? The design for our new integrated approach is motivated by our desire to answer these questions. Below, we show how the design of the new approach is influenced by each question. The specifics of the approach are given later, in Section 4.2. The learner/trainer model described in Section 3.2 describes many of the interaction policies that a learner and trainer might employ in an integrated method. Because we are specifically concerned with determining when it is effective for the learner to receive training actions, we focus on the "Ask for Help?" interaction policy, which the learner uses to tell the trainer that it needs information. We have complete control over when the learner receives aid if the trainer's interaction policies require it to provide an action when asked and never allow it to give unsolicited responses. Thus, this is the setup of the new integrated approach. Part of our empirical study is aimed at determining whether our choices are effective. We could also have developed a new approach in which the trainer determines when to give actions and the learner always performs the trainer's actions. This approach would also give us complete control over the receipt of trainer's actions, but we do not take it because one of the strategies for interaction that we wish to explore 56 is based on the learner's uncertainty about its current move choices. Thus, we place the learner in charge of acquiring the trainer's actions. Care must be taken in designing the technique by which the learner assimilates the trainer's actions. The technique must allow the learner to update its policy based on the trainer's actions, but the technique must also allow the learner to develop an optimal policy. The technique we adopt is quite closely related to those in previous integrated systems. There has been little work in determining when the learner should receive training actions. Most previous integrated systems allow the human trainer to provide the learner with actions whenever the human feels it is necessary, which does not provide much information about how to build and apply future integrated systems. Only one of the integrated systems discussed in the previous chapter addresses this issue directly (Utgoff & Clouse, 1991, Section 3.3.2.2 herein), having the learner decide when it should get actions from the trainer. Indeed, our new approach is quite similar to this previous one. To aid us in answering this question, we implement two strategies for the "Ask for Help?" policy. One strategy is stochastic and the other depends on the learner's uncertainty in its current action choice. Each strategy allows us to look at how different amounts of trainer-supplied actions influence the learner's ability to develop an effective policy. The strategies also give us the opportunity to explore how the timing of the receipt of the actions affects the learning. Even though we are only dealing with the "Ask for Help?" interaction policy, the issue of when the learner should receive help is pertinent to any integrated system. Thus, whatever we discover will also be applicable to other approaches with differing interaction policies. What we find out about the influence of the trainer's expertise will also apply to other integrated systems. Each of the previous integrated systems does not deal with this issue: they either assume that the trainer is perfect (Utgoff & Clouse, 1991) 57 or ignore the issue entirely (Clouse & Utgoff, 1992; Lin, 1992; Lin, 1993; Gordon & Subramanian, 1994; Maclin & Shavlik, 1996), relying on a human with unknown abilities. We wish to build a system in which we can vary the trainer's expertise directly and easily. The design decisions we make in setting up the interactions between the learner and trainer allow us to alter the trainer's expertise without changing the way in which the two agents interact. This question has great influence one the choice of problem domain for the empirical study. We need a domain in which we can build trainers whose expertise we can vary. As we describe in the next chapter, one of our domains meets this requirement nicely. Considering each of the four questions presented at the beginning of this section has lead us to develop a new integrated approach. The main reason for introducing the new approach is to find answers to these questions. Of course, we also wish to determine how effective the approach is, and to determine the extent to which it outperforms apprentice learning and reinforcement learning. 4.2 The Ask for Help Approach Taking the issues of the previous section into consideration, we have developed the Ask for Help approach. An overview of the Ask for Help approach is presented in Figure 4.1, which depicts the components of AfH and their high-level interactions. Because AfH is an integrated approach, it consists of a task, a learner, and a trainer. The interactions between the learner and the task are identical to those in reinforcement learning: the learner observes task states, chooses actions to perform in the task, and receives rewards from the task. The interaction between the learner and the trainer is managed by the learner: the learner determines when the trainer should provide training actions. As depicted in the figure, the learner controls a switch that determines when it receives an action from the trainer. With the switch closed, the learner acquires an action, which it then performs. When the 58 switch is open, the learner is not requesting aid and will perform an action it itself has chosen. One can think of the trainer as producing an action for every state at every time step, where the actions are not used when the switch is open. This viewpoint is expensive in terms of the trainer's time. We prefer to think that by closing the switch the learner is asking for help (utilizing the "Ask for Help?" interaction policy) and that the trainer only provides an action when asked. ActionTask TrainerLearner State Action Reward Figure 4.1 Overview of the Ask for Help Approach 4.2.1 The Learner The learner in Ask for Help, like the more general learner described in Section 3.2.1, attempts to develop a policy that informs the agent of which action to perform in any given state. Also like the more general learning agent, this agent has access to two sources of knowledge: rewards and the actions offered by the training agent. The learner is specified completely by its learning algorithm, the manner in which it incorporates the trainer's actions into its developing policy, and its interaction policies. 4.2.1.1 The Learning Algorithm The choice of policy update algorithm is based on each of the desirable characteristics presented in Section 3.1.1. The learner should be able to adapt based on scalar 59 rewards, to explore its environment, and to develop a policy that optimizes a measure of the rewards received. As discussed in Section 2.3.3, Q-learning was designed with each of these characteristics in mind. Thus, the AfH learner's main learning mechanism is Q-learning. The specifics of the parameter settings and the exploration policy will be discussed with other experiment details, in the next chapter. Although other reinforcement learning algorithms could have been chosen, we use Q-learning because of its widespread use and ease of implementation. Because the trainer's input is a form of knowledge not exploited in any of the current reinforcement learning algorithms, all such algorithms will benefit from the input of a training agent. 4.2.1.2 Incorporating the Trainer's Actions In addition to the characteristics mentioned above, the learning agent must also be able to adapt based on actions chosen by the trainer. The problem that must be addressed is how to incorporate an action into Q-learning, which was designed to learn from scalar rewards. Furthermore, in learning from the trainer's actions, the learner must not be precluded from learning a policy that optimizes a measure of the rewards received. Stated differently, the learner must not attempt to mimic the trainer at the expense of learning an optimal policy. In AfH we implement a straightforward technique to solve this problem. The learner assimilates each trainer's action by first performing the action, just as though the learner itself had chosen it. Then, after receiving whatever reward is appropriate for performing that action, the learner updates its policy via Q-learning; again, just as though the learner itself had produced the action. Thus, the learner incorporates the action and its consequences into its experience without the need for any changes to Q-learning. The trainer's action is treated similarly to an action that the learner might choose for exploration purposes. It is not based on the learner's policy, but the learner performs it anyway and learns from its consequences. 60 This incorporation technique is similar to those in previous integrated systems, lending credence to its efficacy. It is like the technique that Lin employs (Section 3.3.2.1), although a major difference between that approach and AfH is that Lin requires the trainer to perform the entire task, whereas AfH adapts according to individual actions from the trainer. Clouse and Utgoff (1992) also have the learner perform the trainer's actions. They provide an additional artificial positive reward upon which the learner bases its Q-learning update, "rewarding" the learner for performing the trainer's action. Unfortunately, this approach raises the possible problem of learning to act like the trainer at the expense of optimizing the rewards received. 4.2.1.3 Interaction Policies The learner's interaction policies determine how it acquires information from the trainer and what it does with that information. Like previous integrated systems, these interaction policies are more limited than in the general learner/trainer model. In particular: ffl The learner will always perform the trainer's action when there is one, and ffl The learner will never choose to observe the trainer. Thus, two of the three learner's interaction policies are constant, as shown in Figure 4.2. "Perform Trainer's Action?" is true, and "Observe Trainer?" is false. Because our research examines when the learner should receive training actions, the interaction policy "Ask for Help?" does not produce a constant value. The learner determines the output of this interaction policy, deciding whether to ask the trainer for an action or to choose its own action. In our empirical study, we compare two strategies for determining when to ask the trainer for aid. The first strategy, which we call the uniform asking strategy , is stochastic: the learner asks for help randomly throughout training. The second 61 False TrueTrue FalseFalse TrueFalse True PerformTrainer's Action PerformTrainer's Help? Action? Perform ObserveTrainer? OwnAction ObserveTrainer Ask for HelpAsk for Received Trainer?Action from Figure 4.2 The Ask for Help Learner strategy, the uncertainty asking strategy , takes a more sophisticated approach, basing the decision on the learner's uncertainty about its current move choices. Uniform Asking Strategy: The objective in developing the uniform asking strategy is three-fold. First, we wish to determine whether the AfH approach shows improvements over its constituent methods. We also desire to observe the extent to which trainer's actions influence the learning rate. The final objective is to establish a performance level for a learning agent in an integrated system. This performance level can then be compared against the performance achieved with other asking strategies. If a learner with a new asking strategy performs more poorly than with this simple one, then, clearly, the new strategy is not worthwhile. 62 In the uniform asking strategy, the "Ask for Help?" interaction policy is stochastic. The learner's queries are spread uniformly throughout training, based on a parameter that establishes the percentage of time steps on which the learner asks for help. This asking rate parameter specifies the probability that the learner will ask for an action on any given time step. There is an entire family of "Ask for Help?" interaction policies specified by this strategy, one for each possible asking rate. Uncertainty Asking Strategy: To study further when the learner should ask for help, we also develop a more sophisticated asking strategy. This strategy is based on the learner's uncertainty about its current action choices. The goal is to develop a strategy that reflects our intuitions about when human learners require instruction on a problem and to determine the extent to which the timing of the receipt of trainer's actions affects the learning rate. Certainly, humans benefit from help when in novel situations. Indeed, humans seek help when they are confused or otherwise unable to decide upon a course of action, even if they have experienced the situation in the past. It is difficult to specify exactly when humans are unsure because we cannot examine directly a person's thinking processes. This is not the case for an automated learner, though. We can base our determination of the learner's uncertainty on its current decision policy, relying on the Q-values of its current action choices. We have developed a test that decides whether the learner is unsure of its choices, and whether the learner should ask for help. The test indicates the need for help when all of the action choices have similar Q-values. If the minimum and maximum values are close enough to each other (which is specified by a parameter we call the asking factor ), then the intervening values must also be similar. Thus, when the learner must choose one of its options, it can not make a clear distinction between them. Examining the interval between the extreme values identifies only situations in which the learner is clearly uncertain. Another form of uncertainty may arise when 63 only the top two or more choices have similar values. Our approach will not have the learner ask for help in this situation because it may be the case that the two choices are truly similar. Furthermore, by only asking when the extremes differ by a preset amount, the learner will ask the trainer for aid less frequently than if it bases that decision on only the highest values. The uncertainty asking strategy only requires the learner to ask for help when it is clearly uncertain of its choices, as determined by the asking factor. The asking factor controls how conservative the learner is. With a small factor, the learner is infrequently uncertain, but with a larger factor, the learner asks for aid quite often. In the experiments described in the next chapter, we alter the asking factor in order to analyze the possibly different learning behaviors. 4.2.2 The Trainer The trainer in AfH is automated. The main reason for doing so is to have complete control over the trainer's behavior--something that we cannot guarantee with human trainers. We also rely on automated trainers instead of humans so that we can perform many experiments easily. The training agent attempts to help the learner develop its policy, and is depicted in Figure 4.3. Whenever the learner requests an action, the trainer evaluates the current state and makes a decision about the action it would perform, which it then passes on to the learner. The two interaction policies are constant, causing the trainer to give the learner an action if one is requested and to ignore the learner otherwise. One of the issues we wish to study is how the expertise of the trainer influences the ability of the learner to develop a policy. In the experiments described in the next chapter, we take direct control of the trainer's expertise, building a set of trainers whose proficiency varies. Some of the trainers can produce the optimal action to take and others choose actions randomly a pre-specified percentage of the time. With these trainers we can determine the importance of the trainer's problem-solving abilities. 64 TrueFalse TrueTrue FalseFalseGiveUnsolicited Action? Perform ActionOwn Asked Work forAction? Give Give Solicited ActionGive Action? Figure 4.3 The Ask for Help Trainer 65 CHAPTER 5 EMPIRICAL STUDY In Chapter 4 we hypothesize that Ask for Help is an effective approach to integrating apprentice learning and reinforcement learning. More importantly, AfH allows us to ask, and then answer, fundamental questions about integrating the two learning methods. The questions we wish to answer and upon which we base our design of AfH are: 1. How should the learner and trainer interact? 2. How should the learner incorporate the trainer's proffered information into its developing policy? 3. When is it effective for the learner to receive training actions? 4. To what extent does the expertise of the trainer affect the learning? In order to answer these general questions about integrated methods, we run four experiments, each of which is designed to address a particular question about the Ask for Help approach. Because we choose to implement AfH with particular interaction policies and incorporation technique, the experiments will provide insight into the answers for the first two questions above. The experiments address the next two questions more directly. In the next section, we describe the experiment domains in detail. Then, beginning in Section 5.2, we present the four experiments, describing the experimental design and the results for each, and discussing their implications. Finally, we end the chapter with a summary of the results and answers to the general questions listed above. 66 5.1 Experiment Domains In the experiments described below, we employ two domain tasks, each with different characteristics. The first domain is maze navigation, which is a Markovian decision task. The maze problems in our study, which can also be considered gridworld problems with stationary obstacles, can be solved via dynamic programming. Thus, we can find optimal policies upon which to base training agents. We have direct control over the size and complexity of the mazes, so we can alter these factors in order to examine how they affect the performance of AfH. Maze tasks are a member of a class of discrete-state problems, such as game-tree search and other tasks that can be cast as graph traversal problems. Although the mazes are not representative of all discrete-state problems, due to their limited branching factor and moderate-sized state-spaces, they are sufficiently complex to be difficult problems to solve. Therefore, the conclusions we draw based on the empirical study will be applicable to many other domains. The second domain, a race track domain in which a simulated car drives on a track, serves as a test for the generality of the conclusions we draw about the maze results. With this domain, we determine how well our approach scales to a larger problem with different characteristics. The race track domain differs from the maze domain along at least four dimensions. First, it is in continuous space. Second, because we do not discretize the space, it requires a generalization structure, such as a neural network (Rumelhart & McClelland, 1986), to store its policy. Third, the state of the task is represented in terms of sensors mounted on the car, so many task states will map to the same sensor representation. Thus, it is not a Markovian decision task. Finally, one cannot find an optimal policy via dynamic programming because of the size of the state-space, and so the trainer must be built by other means and may not be optimal. 67 5.1.1 Maze Tasks The maze domain is graph-traversal in the form of two-dimensional mazes, which are a type of Markovian decision task. Maze problems are representative of a class of multiple-step tasks that have discrete state-spaces and few transitions out of each state. Other problems with these characteristics include some game-tree search and constraint satisfaction problems. Mazes are a simplification of larger, more complex multiple-step tasks, which may have continuous state-spaces and many transitions out of each state. Even so, maze tasks are difficult to solve, and results obtained with these tasks will generalize to many other multiple-step tasks. For the particular mazes employed in our study, in each maze cell, the learner can choose one of four actions: up, down, left, or right. When performing an action that is blocked by a wall, the agent does not move. The objective of the learner is to traverse the maze optimally from the start cell to the goal cell. The learner receives its only non-negative reward, 1:0, when it enters the goal cell. The experiments are performed with both deterministic and stochastic mazes. For the deterministic mazes, each action is performed as specified: for example, an up action will lead to the cell that is above the current cell. For stochastic mazes, each action has a 25% chance of being changed to an action at a right-angle to itself, half the time resulting in a right turn and the other half, in a left turn. For example, performing an up action will most often move the learner into the cell above its current location, but it will sometimes move the agent into the cell to the left or right. This is representative of other stochastic problems where an action can lead to one of a set of states, probabilistically. In our study, we employ a series of mazes whose sizes range from a 20x20 maze with only 230 cells, up to a 200x200 maze with 29; 329 cells. Even though the size of these state-spaces is small compared to other problems (such as Chess), our experiments indicate that they are still challenging problems to solve based on the amount of 68 training required by the learner to develop an appropriate policy. The 20x20 maze is depicted in Figure 5.1. The maze walls are shown as cells with a hashed pattern. The start cell is in the top-left corner and is marked with an `X', and the goal cell is in the bottom-right corner, marked with a star. Figure 5.1 The 20x20 maze, with 230 cells. The start cell is at the top left of the maze, marked with an "x," and the goal cell is at the bottom left corner. There are at least four advantages to employing maze tasks for the empirical study. First, we can generate maze problems of varying sizes, enabling us to explore how our results scale to larger problems. Second, we can find the optimal policy for our moderately-sized mazes via dynamic programming. Both the construction of the trainer and the definition of the stopping criterion for the experiments exploit this fact. We can also store the developing policies in simple tables, rather than relying on not well-understood generalization mechanisms, because the particular mazes we use are discrete and moderately small. Finally, discreteness and moderate size allow us to record certain information that we cannot for other tasks, such as which states are visited and how frequently. Through analysis of this type of data, we will be able to gain knowledge about how a trainer's influence affects the learner's performance. 69 Although the issue of generalization is interesting, we avoid it in the study of the maze tasks because it introduces several confounding factors, clouding some of the issues we wish to explore. In recognition of the importance of the issue, we do deal with it in the experiment described in Section 5.4, in which the problem task relies on neural networks (Rumelhart & McClelland, 1986) to store the policy. This gives us an opportunity to determine how well AfH scales and how much it depends on the tabular representation. 5.1.1.1 Maze Creation Producing the actual mazes for the experiments is a straightforward task of deciding on the dimensions of the maze, filling in the border walls of the maze, and then filling in 25% of the cells randomly with walls. After this process completes, the mazes must be inspected by hand to ensure that all cells are reachable from the start cell in the top-left corner. When cells are isolated, we either remove or relocate walls. The resulting number of states is just the number of cells that do not have walls in them. Depictions of the physical layouts of the mazes are in Figure 5.2. 5.1.1.2 Learning Algorithm In all of the experiments in the maze tasks, the learner develops its policy via Q-learning, described in Section 2.3.3. The Q-functions for each of the four actions are stored in separate tables. The Q-value for a particular state and action, Q(s; a), is just the value in the sth location of the table for action a. The policy defined by the Q-functions is based on the Q-values and on a random factor to facilitate exploration. A large portion of the time (95%), the learner performs the action whose Q-function has the highest value for the current state. During the other 5% of the time, the learner chooses an action uniformly from among the four. Although the exploration setting may affect how quickly the learner converges on an optimal policy, not enough is known about exploration to suggest a setting that is 70 The 40x40 Maze 1; 018 cells The 60x60 Maze 2; 530 cells The 80x80 Maze 4; 268 cells The 100x100 Maze 6; 661 cells The 150x150 Maze 16; 473 cells The 200x200 Maze 29; 329 cells Figure 5.2 The six other mazes obviously best. We choose the 5% rate in order to make the learner choose at least one random action when following the optimal path in the smallest maze. Of course, for the larger mazes, this means the learner might choose many random actions in traversing the maze. To offset this, the stopping criterion for the experiments takes into account the exploration factor, as described in Section 5.2.1 below. For every experiment with the maze tasks, the algorithm's parameters are: ff = 0:15 (step size), and fl = 0:99 (discount factor) (See Equation 2.7, page 26). No attempt was made to optimize these parameters for any of the experiments. We 71 believe this setting for the step size parameter helps the learner propagate information quickly without causing the Q-values to grow too quickly. The setting of the discount factor causes the learner to consider how its current choices will affect it in the distant future. We choose this setting mainly because the learner only receives a reward at completion of the task. 5.1.1.3 Trainers As we pointed out earlier, an advantage of discrete mazes is that we can determine the optimal policy for navigating through each maze-at least for moderate-sized mazes. To build a trainer, we need only determine the optimal policy, which we do easily via dynamic programming. In the experiments, the trainers respond to the learner's queries by giving an action that is based on the optimal policy for that particular maze. Some trainers always suggest an optimal action, but others give random actions occasionally. 5.1.2 Race Track Task This domain is based on the Race Track game (Gardner, 1973), and, in its discretestate form, has been a test-bed for other research in reinforcement learning (Barto, Bradtke & Singh, 1995). The task simulates a car navigating on a track, which can be of any length and shape, and has a start line at one end and a finish line at the other. This task is representative of simple robotics navigation tasks, where the robot must move from its current location to a goal location and where the robot relies on on-board sensors to determine its location in the world. An example track, which is one of the tracks employed in the experiments, is displayed in Figure 5.3. The problem is for the learner to drive the car from the start line to the finish line quickly and without running off of the track. At each time step, the agent first observes its state, relying on a set of sensors for information about its current situation. Then, the agent decides whether to accelerate, decelerate, or turn left 72 \Theta d c START FINISH Figure 5.3 Example race track or right. After performing an action and changing the state of the task, the agent receives one of three reinforcement signals. When the car drives off of the track the reward is \Gamma 1:0, and when the car crosses the finish line it receives a reward of 1:0. If neither of these conditions holds, the learner is assessed a small negative reward (\Gamma 0:01) at each time step. Thus, the objective of the learner is to avoid running off the track and to reach the finish line with as few actions as possible. The learner knows nothing about the dynamics of the car on the race track. 5.1.2.1 Sensors The car is equipped with five sensors that measure its position and velocity on the track. Each sensor reports a continuous value, except for f , which is boolean. The sensors give the agent the following information: 1. Speed of the car, s, 2. Distance to the edge of the track that is directly ahead of the car, d, 3. Relative position of the car between the left and right edges of the track, c, 4. Angle of the car with respect to the center-line of the track, `, and 5. Whether the finish line is directly ahead, f . 73 The first sensor measures the speed of the car, which is determined simply by the distance the car traveled in the last time step. Another sensor measures the distance to the edge of the track that is directly ahead of the car. This measurement is depicted in Figure 5.3 as the line labeled d. If the car were to continue on its present heading, it would follow that line. This sensor has an outside range of fifty units; anything over fifty is reported as fifty. A third sensor measures the relative position of the car between the left and right edges of the track. When the car is in the center of the track, it reports a zero value. As the car approaches the left edge of the track, the value increases, reaching one when the car drives off of the track. The sensor reports negative values when the car is closer to the right edge than the left edge, reaching negative one when the car drives off the right edge. The dashed line labeled c in the figure represents this measurement. That line segment is the shortest line segment containing the car that has endpoints on the left and right edges of the track. The sensor reports the relative position of the car on that line segment. The fourth sensor measures the angle of the car with respect to the left and right edges of the track. If the car is driving directly down the center of the track, this sensor reports a zero value. As the car turns to the left, the sensor reports increasing angles, reaching 90 degrees when the car is headed directly at the left edge and continuing to 180 degrees as the car continues to turn until it is heading back up the track. Turning to the right causes the sensor to register negative angles, from zero degrees for straight ahead to \Gamma 90 degrees when driving directly at the right edge, to \Gamma 179 degrees when driving in the wrong direction. That angle is labeled ` in the figure and is measured with respect to the perpendicular of shortest line between the right and left edges going through the car. 74 The last sensor informs the car whether the finish line is directly ahead or not. If the finish line is ahead of the car, but outside of the fifty unit range, the sensor cannot "see" the finish line, and reports a value of zero. 5.1.2.2 Representation The state of the car on the track is captured by twenty features. The first five features are just the measurements of the five sensors: the speed of the car s, the distance straight ahead to a wall d, the relative position of the car with respect to the edges of the track c, the angle of the car `, and whether the car can "see" the finish line f . The next fifteen features are the quadratic terms of these five, i.e. s2; sd; sc; s`; sf; d2; dc; d`; df; c2; c`; cf; `2; f `; and f 2. The features are scaled so that their values are in [\Gamma 1:0; 1:0] in order to aid with the rate of training (Hampson & Volper, 1986). The range of the car's speed is 0 ^ s ^ 10, so scaling is done by subtracting five and dividing by two. The angle's range is \Gamma ss ! ` ^ ss; dividing by ss gives the scaled range. As the sensors have a limited range of fifty units, \Gamma 1 ^ d=25 \Gamma 1 ^ 1. The other two features, c and f are already in the required range, so no scaling is necessary. The quadratic terms will be in the required range because they are products of the scaled first-order terms. 5.1.2.3 Learning Algorithm The learner employs Q-learning to develop its policy, and stores its Q-function in a set of weight vectors, one for each of the four actions. The Q-value for a given state and action, Q(s; a), is given by the inner product of two vectors, the weight vector for the action a and the feature vector representing s, which is composed of scaled sensor values and their quadratic terms, as described above. In developing its policy, the learner adjusts the weights in the weight vectors via a variant of Equation 2.7 (page 26) that includes the TD(*) approach (see Equation 2.4, page 23). 75 In the race track task, we employ a more sophisticated exploration strategy than in the maze task. The policy defined by the Q-function is based on the Boltzmann distribution of the Q-values: the next action, a, is randomly chosen based on the probabilities given by 8a 2 actions; P (a) = e Q(s;a)=TP b2actions eQ(s;b)=T where s is the current state, T is the temperature parameter that is reduced over time to diminish the randomness of the policy, and "actions" is the set of actions the learner can perform in the current state. When the trainer does not give an action to the learner, the learner chooses its action based on the probabilities defined by the equation above. When the trainer provides an action, the learner does not check its policy, but performs the trainer's action. The parameter settings in the experiments are: ff = 0:35 (step size), fl = 0:75 (discount factor), * = 0:75 (TD(*) parameter). The temperature parameter decays slowly from T = 5:0 down to its lowest value, T = 0:2, via a linear factor of 0:9995. We did not attempt to optimize any of the parameter settings for these experiments. Unfortunately, there is no principled approach to use when picking these parameter values. We choose the step size parameter based on previous experience with linear networks that suggests that the 0:35 rate facilitates quick learning, but not at the risk of having the weights grow without bound. The * setting is also chosen based on previous experience. Because mapping many states to the same representation (as discussed above) introduces uncertainty into the problem, we choose the setting for the discount factor in order to have the learner focus on how its actions affect its near-term future. The three temperature settings are chosen to facilitate exploration throughout the training and are also based on practical concerns about numeric overflows when calculating the action probabilities. 76 5.1.2.4 Trainer The trainer that instructs the learning agent is automated and capable of performing the task at a moderate level of expertise. The trainer does not produce optimal actions because not enough is known about this task to produce such a trainer easily. Although the trainer does not always perform an optimal action, it can drive the car from each track's start position to the finish line. The trainer was built by hand, via a cyclic design-code-test approach. First, a moderate amount of knowledge engineering, of examining different race track situations and ascertaining the action that a good driver should take, determined the initial trainer. Then the trainer was tested on the track. When the trainer crossed a track boundary, the code was redesigned and re-tested. This process continued until the trainer could drive on both the tracks used in the experiments, not only from every start location, but also from other, randomly selected points on the track. The objective of the trainer, as it drives, is to remain on the track and progress towards the finish line quickly. Whenever the trainer is in a situation in which it can accelerate, it will do so. Otherwise, the trainer either turns to avoid crossing a track boundary and to stay close to the center of the track, or slows down. The trainer does not produce an action when the car is driving in the wrong direction on the track. The trainer's algorithm for choosing an action is given in Table 5.1. 5.1.2.5 Simulation The simulation for the domain is based on the one described by Gardner (1973). The track is stored as two series of line segments, one for the left edge and one for the right edge as well as a line segment for each of the start and finish lines. The state of the car is represented internally to the simulation as its previous and current positions on the Cartesian plane. 77 Table 5.1 Rules for the hand-coded trainer. The quantities in the if-tests are based on the car's current state, and are given after the algorithm. IF the finish line is directly ahead OR the wall ahead is really far away THEN accelerate ELSIF the car is heading down the center of the track THEN IF the wall ahead is far enough away THEN accelerate ELSIF the wall ahead is moderately close THEN decelerate ELSIF the car is closer to the left wall than the right wall THEN turn right ELSE turn left ENDIF ELSIF the car is heading too much to the right THEN IF the wall ahead is moderately close THEN decelerate ELSE turn left ENDIF ELSIF the car is heading too much to the left THEN IF the wall ahead is moderately close THEN decelerate ELSE turn right ENDIF ELSE do nothing, because the car is heading backwards ENDIF ffl The finish line is directly ahead: f = 1 ffl The wall ahead is really far away: d ? ((s + 4)(s + 1)) ffl Heading down the center of track: \Gamma 40ffi ! ` ! 40ffi ffl The wall ahead is far enough away: d ? ((s + 4)(s + 1))=2 ffl The wall ahead is moderately close: (4s(s + 1)=10) ! d ! (11s(s + 1)=16) ffl Heading too much to the right: \Gamma 90ffi ! ` ! \Gamma 40ffi ffl Heading too much to the left: 40ffi ! ` ! 90ffi 78 When the car accelerates or decelerates, the speed is incremented or decremented by one, with a lower speed limit of one and an upper speed limit of ten. The car's current speed is just the distance it traveled in the last time interval. The new position of the car is: x(t + 1) = x(t) + (s + \Delta s)(x(t) \Gamma x(t \Gamma 1))=s y(t + 1) = y(t) + (s + \Delta s)(y(t) \Gamma y(t \Gamma 1))=s \Delta s = 8?!?: +1 if accelerating and s ! 10\Gamma 1 if decelerating and s ? 1 0 otherwise where (x(t + 1); y(t + 1)), (x(t); y(t)), and (x(t \Gamma 1); y(t \Gamma 1)) are the new, current and previous locations of the car, and s is the previous speed of the car (the distance between (x(t); y(t)) and (x(t \Gamma 1); y(t \Gamma 1))). The change in heading is based on the way in which one of Gardner's cars would turn. If the car's current speed is s, the change in heading is based on a right triangle whose legs are s units and one unit long. The change in heading is the size of the angle opposite the side of one unit length. x(t + 1) = x(t) + \Delta ff(y(t) \Gamma y(t \Gamma 1)) + s(x(t) \Gamma x(t \Gamma 1))ps2 + 1 y(t + 1) = y(t) + s(y(t) \Gamma y(t \Gamma 1)) \Gamma \Delta ff(x(t) \Gamma x(t \Gamma 1))ps2 + 1 \Delta ff = ( +1 for a left turn\Gamma 1 for a right turn If the line segment joining the previous location of the car and the current location of the car crosses any of the line segments making up the edges or crosses the start line, the car has driven off of the track. If that same line segment crosses the line segment designating the finish, the car has crossed the finish line. 5.2 Training with an Optimal Trainer This first experiment is designed to determine the extent to which asking for help randomly from an optimal trainer speeds the learning process. A secondary 79 objective is to determine whether AfH with the uniform asking strategy is effective at integrating apprentice learning and reinforcement learning. We find that the learner does improve its learning rate via AfH. Generally, the more often the optimal trainer provides actions, the more quickly the learner acquires an optimal policy. Although this result is not surprising, we also find that more interaction with the trainer does not necessarily improve the learner's learning rate. The experiment also reveals that little trainer interaction is necessary in order to improve significantly over not having a trainer at all. 5.2.1 Experimental Design For this first experiment, the learners attempt to navigate in each of the different mazes (both deterministic and stochastic), and the trainers always suggest optimal actions. Whenever several actions are optimal, the trainer chooses one randomly. There are seven deterministic mazes and four stochastic mazes1. For each of the eleven mazes, there are eight individual sub-experiments in which we vary the learner's asking rate, which determines how often the learner asks for an action from the trainer. For example, when the parameter is set at 10%, the learner asks the trainer for an action 10% of the time and chooses its own action 90% of the time. The asking rate ranges from 0%, which is equivalent to standard Q-learning, up to 100%, where the learner always asks for the trainer's actions (a form of apprentice learning). Each individual sub-experiment consists of ten runs, each of which begins with the entries in the Q-function tables set to zeroes. A run ends when the learner meets the stopping criterion of performing at least 95% optimal actions when traversing the maze ten times from the start to the goal. Remember that the learner cannot perform 100% optimal actions because it chooses a random action 5% of the time. A run is also stopped, but considered a failure, when either the total number of 1Because preliminary experimentation revealed that the learners required prohibitive amounts of time to learn to navigate in the larger stochastic mazes, those mazes are not used in this study 80 actions exceeds fifty million, the total number of actions in a single trial exceeds one million, or the total number of trials exceeds ten thousand. These three cases are designed to limit the amount of time it takes to run the experiments, and are based on results from preliminary experimentation. These bounds affect the runs for the larger deterministic mazes and for all of the stochastic mazes. Each run consists of many trials, all of which begin with the learner in the start cell of the maze (top-left corner) and end when the learner reaches the goal cell (bottomright corner). The stopping criterion for the run is tested at the end of each trial. If the criterion is met, the run stops; otherwise, the run continues with the beginning of a new trial, placing the learner back at the start cell. For each run we record the total number of actions the learning agent performs in the run (which also includes the actions suggested by the trainer), the total number of times the trainer is asked for aid, and the total number of trials in the run. Because the learner asks for aid uniformly, the number of times the trainer presents an action is just the product of the asking rate and the total number of actions performed. We also record the frequency with which each maze cell is visited is certain runs. In this experiment we want to examine the amount of improvement the learner achieves in learning rate when using AfH. In order to say that the learner acquires an optimal policy more quickly via AfH than via Q-learning, we need to find statistically significant reductions in the mean number of actions required to learn an optimal policy when asking the trainer for aid compared to using Q-learning alone. The results for every level of asking rate are compared to the 0% rate, which is standard Q-learning. We perform one-tailed student's t-tests and seek significances at the 0:01 level. In the sequel, when we report a statistically significant difference in means, the level of significance will always be at least 0:01. Any significant reductions we find will indicate that the AfH approach is better than its Q-learning component. We also want to determine whether AfH performs better than apprentice learning, so we 81 compare results at all asking rates to the 100% rate (which is a form of apprentice learning). 5.2.2 Results Figure 5.4 shows a graph that depicts the results for the 40x40 maze. The results for the remaining mazes are presented later. The data from which these graphs are derived are presented in the Appendix. The learner's asking rate is presented along the independent axis, and the average number of actions necessary to achieve the stopping criterion is presented on the dependent axis. To facilitate comparison with a learning agent that does not have access to the trainer (at the 0% asking rate), the dashed line labeled "Q-learning" is extended from the dependent axis, with two parallel lines that represent the 95% confidence interval for that value. The curve labeled "Learner" depicts the number of actions required by the learner to achieve the stopping criterion for different levels of asking rate. Each point on that curve represents the mean number of actions for a particular setting of the asking rate parameter, and is shown with its 95% confidence bar. Most of the confidence bars are too short to see. Although the figure shows the results as a continuous curve, note that the data is only gathered at the discrete points shown. The results for the 40x40 maze indicate that the trainer's instruction reduces the amount of training necessary to achieve the stopping criterion. With standard Q-learning the learner requires an average of slightly over 1.8 million actions to learn an adequate policy. With only a 1% asking rate, the mean number of learner's actions drops to just over 1.2 million, which is not statistically significantly different from the number of actions required with Q-learning alone, due to the high variance. However, even when asking for aid only 5% of the time, the number of actions necessary to achieve the stopping criterion is significantly lower. The mean numbers of actions for all asking rates higher than 5% are significantly better than those for not asking. At each asking rate starting at 50% and continuing to 100%, approximately 30; 000 82 Q-learning \Xi \Xi Learner |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |0.3 |0.6 |0.9 |1.2 |1.5 |1.8 |2.1 |2.4 Asking Rate (Percentage) Mean Actions (in millions's) \Xi \Xi \Xi \Xi \Xi \Xi \Xi Figure 5.4 Results for the 40x40 deterministic maze with the optimal trainer. The 95% confidence bars are shown for each point, although some are too small to see. Starting at the 5% asking rate, the means are statistically better than those achieved with Q-learning alone. The means at the 50% and 75% rates are statistically indistinguishable from those at the 100% rate. actions are required to solve the problem--a reduction by a factor of sixty from Q-learning alone. In fact, there is no statistically significant difference between the result at the 50% asking rate and the 100% rate, and there is no significant difference between the 75% rate and the 100% rate. As shown in Figure 5.5, the results for the other deterministic mazes are similar. The asking rate is depicted along the x-axis, the maze size along the y-axis, and the z-axis represents the mean number of actions (in million's). The surface shows the mean number of actions required to learn an appropriate policy for each of the asking rates and mazes. The previous graph (Figure 5.4) is a slice through this graph at the maze size of 40. 83 5 10 25 50 75 100Asking Rate 2040 6080 100 150 200 Maze Size 0 10 20 30 40 50 Mean Actions (in million's) 5 10 25 50 75 100Asking Rate 2040 6080 100 150 200 Maze Size Figure 5.5 Results for all deterministic mazes with the optimal trainer. All means at the 5% rate and higher are statistically better then those achieved with Q-learning alone (the 0% asking rate), for all mazes. The means at the 75% asking rate are either no different from or better than the means at the 100% rate, also for all mazes. For every maze, the learner requires the most actions with Q-learning alone, depicted on the left-hand face of the graph at the asking rate of 0%. For the two largest mazes--200x200 and 150x150, with 29; 329 and 16; 473 states, respectively--the runs with Q-learning alone were terminated as failures. This is also true at the 1% level of asking for both of these mazes. For the 100x100 maze (6; 661 cells), only one of the ten runs with standard Q-learning succeeded; all other Q-learning runs were terminated for this maze before an appropriate policy was learned. For all of the mazes except the two largest and for all asking rates higher than 1%, the mean number of actions required to meet the stopping criterion is statistically significantly lower than that needed with Q-learning alone. Stated differently, AfH 84 performs significantly better than Q-learning alone for all asking rates higher than 1%. In addition to comparing the results for each asking rate to those achieved with Q-learning alone, we also compare the results to those achieved when asking all of the time, which is a form of apprentice learning. For all mazes, the mean number of actions required to obtain an optimal policy at the 75% asking rate is never worse than that required at the 100% rate. Surprisingly, sometimes the mean achieved at the lower asking rate is significantly lower , which is also true at the 50% asking rate for the two largest mazes. This implies that less interaction with the trainer can be better than 100% interaction, which is unexpected because we believed that learning entirely from an optimal trainer would be the fastest way in which to acquire an optimal policy. This finding gives support to our earlier statement that gaining action-selection experience over a range of states is preferred over training exclusively on the solution path. The results for the four stochastic mazes are quite similar to those for the deterministic mazes. The main difference is that the runs for all settings of maze and asking rate take longer to complete in the stochastic mazes than in the deterministic mazes. In fact, many runs with the stochastic mazes were terminated because they were requiring too much time. For all the stochastic mazes, all standard Q-learning runs were terminated as failures before the learners achieved optimal policies. Thus, we cannot make a statistical comparison between Q-learning and AfH for these mazes. The runs were also terminated for the asking rates of 1% and 5% for all mazes, and the 1%, 5% and 10% asking rates for the two larger mazes, the 60x60 and 80x80 mazes. However, the learners that asked for aid at least 25% of the time are quite effective at developing an appropriate policy. Thus, the learner is able to acquire an optimal policy with AfH when it does not do so via reinforcement learning alone (given the experiment constraints). For all four mazes, the learner performs significantly bet85 ter at the 100% asking rate than at any other asking rate. Thus, for these mazes apprentice learning is more effective than an integrated approach (with an optimal trainer). Figure 5.6 depicts the results for the stochastic mazes. When comparing this figure to Figure 5.5 note that the scale on the z-axis is considerably different. The general observation from the deterministic maze results still holds: as the asking rate increases the mean number of actions decreases (moving left-to-right on the graph). 0 10 25 50 75 100Asking Rate 20 40 60 80 Maze Size 0 200 400 600 800 Mean Actions (in 1,000's) 0 10 25 50 75 100Asking Rate 20 40 60 80 Maze Size Figure 5.6 Results for all stochastic mazes with the optimal trainer. All runs at the 0%, 5% and 10% asking rates were terminated because they had exceeded the preset maximums. Even so, these results resemble those from the deterministic mazes closely. 5.2.3 Discussion Based on these results, we conclude that the Ask for Help approach is effective for integrating apprentice learning and reinforcement learning, at least when 86 the trainer provides optimal actions and that AfH can perform better than its constituents. We also conclude that more help is generally better than less help. However, it is not necessary to receive aid all of the time from the trainer: We find that the results for the 75% asking rate are never significantly worse than those at the 100% asking rate for all the deterministic mazes. In fact, the results at the lower asking rate are sometimes better. That is, receiving aid three quarters of the time is the same (or better than) receiving it all of the time. Moreover, for the two largest mazes, the learner learns more quickly when receiving aid half of the time versus receiving it all of the time. This finding is quite promising, especially when one considers the cost of having the trainer. One can lessen the interaction with the trainer, at a reduction in expense, but still learn as quickly (or more quickly) than asking the trainer more often. For certain runs we also recorded how often the learner visits each maze cell in attempting to acquire an optimal policy. At the 0% asking rate (standard Q-learning), the learner visits every cell in each of the mazes. As the asking rate increases, the number of cells visited decreases. Thus, the trainer plays a definite role in determining how much exposure to the state-space the learner acquires. For example, the left of Figure 5.7 shows the frequency of cell visits for the 40x40 maze on a particular run with Q-learning. The height of each bar in the graph depicts how often the corresponding maze cell was visited, relative to the maximum for the maze. The start cell is at the left corner of the graph, and the goal cell is in the right corner. For this run, every maze cell was visited at least once by the learner. The right of Figure 5.7 depicts the frequency of cell visits for the 40x40 maze on a particular run at the 50% asking rate. Most of the learner's experience was acquired in a particular area of the graph (depicted with the highest bars), but the learner had also spent a small portion of its time exploring other parts of the maze. For this particular run, the learner visited 87 only 450 of the 1; 018 maze cells, a reduction of over half. This attests that the learner can visit fewer states than Q-learning requires, yet still learn an optimal policy. Figure 5.7 Frequency of cell visitation for the 40x40 deterministic maze on particular runs. The maze on the left represents the cells visited when Q-learning alone was used. The right maze represents a run in which the learner asked the trainer for aid half of the time. All cells of the maze were visited when Q-learning was used, but only 450 of the 1; 018 cells were visited when the trainer was used. The highest bar in the left maze indicates 7; 528 cell visitations, whereas the highest in the left maze is only at 628. An informal analysis of the frequency data for various runs and mazes suggests that the amount of exposure the learner receives is roughly determined by the asking rate. With a low asking rate, the learner visits almost all of the maze cells. As the asking rate increases, the learner visits fewer and fewer cells. Thus, there seems to be a relationship between the increase in learning rate and the decrease in statespace exposure. Further experimentation needs to be performed in order to determine whether the reduction in the number of cells visited is truly related to the reduction in the total number of actions required to learn an optimal policy. 88 5.3 Training with Suboptimal Trainers This experiment is designed to determine the extent to which the expertise of the trainer affects the learning process. We note that the better a trainer is at performing the task, the more quickly the learner acquires an appropriate policy. The results further validate the claim that AfH is effective for integrating apprentice learning and reinforcement learning and indicate that even a trainer that is suboptimal will help improve the learning rate. The results also demonstrate that the learner can sometimes acquire an optimal policy more quickly when combining the two forms of learning than when using either exclusively. 5.3.1 Experimental Design As in the first experiment, for this one we employ each of the different mazes (both deterministic and stochastic) and vary the asking rate from 0% up to 100%. Unlike the previous experiment, we also vary the trainer's expertise: the trainer does not always suggest an optimal action. The trainer's ability to choose optimal actions is controlled by an error parameter that determines how often the trainer returns a suboptimal action. For example, when the error parameter is set at 25%, the trainer returns a suboptimal action 25% of the time. With six settings of the error parameter, from 10% up to 75%, we are able to see how the trainer's expertise influences the rate at which the learner acquires its policy. We do not test the 100% error rate because preliminary experiments indicated that the runs would have taken prohibitive amounts of time, even for the smallest maze. A 100% error rate means that the actions given by the trainer are always the wrong actions; that is, the trainer's actions lead the learner away from the goal continually. Each individual sub-experiment, with a particular maze, asking rate, and error rate, is performed in the same manner as in the previous experiment. There are ten runs, each of which begins with zeroed Q-values and ends when either the learner 89 meets the stopping criterion or surpasses the preset action or trial limits. Each run consists of several trials in which the learner attempts to navigate from the start cell to the goal. Because we vary the maze, the learner's asking rate, and the trainer's error rate, we ran 294 separate sub-experiments. In this experiment we want to examine the amount of improvement the learner achieves in learning rate when using AfH and relying on different trainers. We perform statistical significance tests on the difference between the results achieved for Q-learning alone versus those at each of the asking rates and error rates. Because we also want to determine whether AfH performs better than apprentice learning, we compare results at all asking rates to the 100% rate (which is a form of apprentice learning). Like the previous experiment, we perform one-tailed t-tests and report significance at the 0:01 level. 5.3.2 Results Figure 5.8 depicts the results of this experiment for the 40x40 maze, leaving off the curve for the 75% error rate, which is shown below in Figure 5.9. The numerical data for this experiment are presented in the Appendix. The graph gives the learner's asking rate on the independent axis, and the mean number of actions to end a run successfully on the dependent axis. Each curve on the graph represents the different settings of the error parameter. The curves for Q-learning and for learning from an optimal trainer are present for comparative purposes. The results depicted in the figure indicate that even suboptimal trainers are capable of speeding the learning process significantly. Starting with the 10% asking rate, all results for all error rates are statistically better than standard Q-learning. The results for the 5% asking rate are also significant for the 0%, 10%, and 25% error rates. Note also that each of the curves is bounded above by a curve with a higher error rate and below by a curve with a lower error rate, for almost all of the asking rates. Thus, there is a gradual degradation of performance as the trainer's error rate 90 Q-learning \Xi \Xi 00% error \Omega \Omega 10% error \Sigma \Sigma 25% error \Pi \Pi 50% error ff ff 60% error |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |0.2 |0.4 |0.6 |0.8 |1.0 |1.2 |1.4 |1.6 |1.8 |2.0 |2.2 |2.4 Asking Rate (Percentage) Mean Actions (in million's) \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Pi \Pi \Pi \Pi \Pi \Pi \Pi ff ff ff ff ff ff ff Figure 5.8 Results for the 40x40 deterministic maze with all trainers. The 95% confidence bars are shown for each point. Starting at the 10% asking rate, all means are statistically better than those achieved with Q-learning alone. The means at the 75% rate are never worse than and are sometimes better than those at the 100% rate. increases. Also notice that there is little difference between the results with the optimal trainer versus with the trainers that are incorrect 10% and 25% of the time. Thus, AfH is better than Q-learning alone for various settings of the asking rate. AfH is also better than apprentice learning alone for certain asking rates. For all levels of trainer error, the results obtained at the 75% asking rate are never worse than those at the 100% rate. In fact, for the error rates of 25%, 50%, and 60%, the learner learns significantly faster at the 75% rate than when it relies totally on the trainer. For the 60% error rate, there is an astonishing difference between the mean number of actions required at the 75% asking rate and those required at the 100% asking rate: the learner acquires an appropriate policy in close to half the number of actions. The means observed at the 50% asking rate are also significantly lower 91 at the 50% and 60% error rates. These findings further the claim that an integrated approach can be better than apprentice learning. In addition to the results for standard Q-learning and the optimal trainer, Figure 5.9 shows the results for the trainer that chooses a suboptimal action 75% of the time. At the 1% asking rate there is no significant difference between Q-learning and this learner, but even at the 5% asking rate the learner takes significantly longer to find a good policy. At the 10% asking rate the learner takes almost four times longer to find a good policy. All other runs at the 75% error rate were terminated as failures because they were taking too long. Although previous results show that a suboptimal trainer can still help the learner improve its learning rate, these results demonstrate that the trainer must have a minimal level of expertise on the problem. Q-learning \Xi \Xi 0% error \Upsilon \Upsilon 75% error |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |0.5 |1.0 |1.5 |2.0 |2.5 |3.0 |3.5 |4.0 |4.5 |5.0 |5.5 |6.0 |6.5 |7.0 Asking Rate (Percentage) Mean Actions (in millions's) \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Upsilon \Upsilon \Upsilon Figure 5.9 Results for the 40x40 deterministic maze with a trainer that is incorrect 75% of the time. The means are never better than, and sometimes significantly worse than, not having a trainer at all. Runs with asking rates higher than 10% were terminated because the preset limits had been exceeded. 92 The results for all the other mazes also support the finding that a suboptimal trainer can be effective. The results for the 80x80 maze are shown in Figure 5.10, and those for the 200x200 maze are in Figure 5.11. For the 80x80 maze, the results are quite similar to the 40x40 maze, except that more mean actions are required at every asking rate, which should be expected because the 80x80 maze is larger than the 40x40 maze. For the 200x200 maze, many of the runs did not complete. For example, none of the sub-experiments with the 60% error rate completed except for the one at the 75% asking rate. All other runs in all other sub-experiments were terminated because they had surpassed the preset limits. Q-learning \Xi \Xi 00% error \Omega \Omega 10% error \Sigma \Sigma 25% error \Pi \Pi 50% error ff ff 60% error |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |3 |6 |9 |12 |15 |18 |21 |24 |27 |30 Asking Rate (Percentage) Mean Actions (in million's) \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Pi \Pi \Pi \Pi \Pi \Pi \Pi ff ff ff ff ff ff ff Figure 5.10 Results for the 80x80 deterministic maze with all trainers. Note the similarity between this graph and Figure 5.8. These two graphs also show that the 75% asking rate produces the best performance, at least for the higher error rates. As we noted before, the 75% asking rate is the only setting under which the learner finds an optimal policy for the largest maze 93 \Xi \Xi 00% error \Omega \Omega 10% error \Sigma \Sigma 25% error \Pi \Pi 50% error ff ff 60% error |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |5 |10 |15 |20 |25 |30 |35 |40 |45 |50 Asking Rate (Percentage) Mean Actions (in millions's) \Xi \Xi \Xi \Xi \Xi \Xi \Omega \Omega \Omega \Omega \Omega \Omega \Sigma \Sigma \Sigma \Sigma \Sigma \Pi \Pi \Pi \Pi ff Figure 5.11 Results for the 200x200 deterministic maze with all trainers. Note that the only runs that completed successfully with the 60% error trainer are at the 75% asking rate. Runs at other error rates were also terminated at the lower asking rates. and a trainer that is incorrect 60% of the time. It is obvious from the graph that the 75% rate also leads to finding an optimal policy quickest for the 50% error rate. Closer analysis of the data for the 200x200 maze also shows this to be true for every error rate, including the 0% rate. As the maze size decreases, this effect is diminished, but even for the smallest maze, the 75% rate can produce better results than asking all of the time. This suggests that when applying AfH to other problems, one may wish to choose the 75% asking rate. This observation is born out in the next experiment. 5.3.3 Discussion These results further validate the claim that AfH is an effective integration of apprentice learning and reinforcement learning. The learner learns more quickly with 94 the trainer's aid, even when the trainer is suboptimal. In answer to the question of how much the trainer's expertise influences learning, we conclude that the better a trainer is, the more the learner can benefit from the trainer's actions. However, the trainer does not need to be perfect in order for the learner to improve with the trainer's help. Furthermore, a trainer that misleads a learner frequently will cause the learner to take longer to acquire an effective policy, possibly even precluding the learner from doing so. Thus, the trainer's expertise does influence the learner's performance directly, and, in applying AfH to other domains, one must be aware of the trainer's expertise. The results of this experiment indicate that relying on a trainer that is frequently incorrect is detrimental to the learner. In situations in which the learner acquires information from a trainer whose expertise is unknown, one would like the learner to be able to detect that its trainer is not proficient enough to be of help. A possible technique is for the learner to observe its own performance level and then ignore the trainer when it notices that its performance is no longer improving. Because this problem may occur in situations where a human serves as trainer, it is worth examining further. One can also view the results of this experiment in terms of the number of optimal actions given by the trainer versus the number of suboptimal actions given. Although the experiment was not designed to give us this information, it can be determined from the data we did gather. Specifically, the asking rate parameter and error rate parameter control the percentage of optimal actions that the trainer gives to the learner. For example, at the 25% asking rate and the 10% error rate, 22:5% (= 25% \Theta (100% \Gamma 10%)) of all of the actions performed by the learner are known to be optimal, 2:5% are known to be suboptimal, and the remaining 75% are chosen by the learner itself. We don't know which of the actions are optimal, but we do know that 22:5% are. 95 Figure 5.12 represents the results for the 40x40 deterministic maze with all trainers. The x-axis represents the percentage of the trainer's actions that are optimal, the y-axis represents the percentage of the actions that are suboptimal, and the z-axis represents the mean number of actions. We wish to determine if there is a relationship between the number of optimal trainer's actions and the number of suboptimal trainer's actions. It is difficult to see in this graph, but it appears that given a particular percentage of optimal actions, increasing the number of suboptimal actions increases the total number of actions required to find an appropriate policy. 20 40 60 80 % Optimal Trainer's Actions 20 40 60%SuboptimalTrainer's Actions 0 200 400 600 800 1000 Mean Actions(in 1,000's) 20 40 60 80 % Optimal Trainer's Actions 20 40 60%SuboptimalTrainer's Actions Figure 5.12 Results for the 40x40 deterministic maze with all trainers, with respect to the percentage of optimal and suboptimal trainer's actions. The data is depicted in terms of the percentage of optimal trainer's actions versus the percentage of suboptimal actions. This can be seen more easily in Figure 5.13, which views the three-dimensional data almost directly from the front. One can notice that as the amount of suboptimality increases (looking directly into the page), the curve tends to rise. A similar 96 view from the side indicates that for any given level of suboptimality, increasing the percentage of optimal actions decreases the amount of training necessary. Neither of these two findings is too surprising because one would expect that more good information will lead to improvement and more bad information will lead to degradation. A set of experiments aimed specifically at this question will provide better answers than this informal analysis. 20 40 60 80 % Optimal Trainer's Actions 2060 %SuboptimalTrainer's Actions0 200 400 600 800 1000 Mean Actions(in 1,000's) 20 40 60 80 % Optimal Trainer's Actions Figure 5.13 Results for the 40x40 deterministic maze with all trainers, viewed from the front. For a given percentage of optimality, the curve rises as the percentage of suboptimality increases. 5.4 Scaling Up For this experiment, we test how well the Ask for Help approach with the uniform asking strategy scales to a more complicated task. To ask this question, we leave the comfortable maze world, with its simple lookup tables, and employ the race track task, which requires a generalization structure to represent its policy. Furthermore, because we cannot build an optimal policy for this task we do not have 97 an optimal trainer. Although the trainer can perform the task, we do not know how well it compares to optimal (see Section 5.1.2). The results of the experiment are quite similar to the maze results: as the asking rate increases, the learner develops an appropriate policy more quickly. However, the results also show that asking rates lower than 100% are better than the 100% asking rate. These results are similar to those found in the previous experiments, lending credence to the conclusions we have drawn. 5.4.1 Experimental Design In this experiment the task is the race track task. The task and the trainer are both described in Section 5.1.2. In the sub-experiments, we vary the learner's asking rate parameter from 0%, which is standard Q-learning, up to 100%, which is a form of apprentice learning. The learners attempt to drive on each of the two different race tracks. One is shown in Figure 5.3 and the other is an extension of that track that has additional turns and requires approximately twice as many actions to navigate properly. Each individual sub-experiment consists of twenty runs, each of which begins with the Q-function weights set to zeroes. Because we cannot determine the optimal policy, the stopping criterion is based on a different performance measure. A run ends when the learner can navigate the car across the finish line from each of the eighteen designated starting positions on the track. Each run consists of several trials, which all begin with the car placed randomly at one of the start positions. A trial ends with failure when the car drives off the track, after which a new trial begins. A trial ends with success when the car crosses the finish line, at which time the stopping criterion for a run is tested. If the stopping criterion is satisfied, the entire run ends. Otherwise, the run continues with the beginning of a new trial. 98 As in the maze experiments, for each run we record the number of actions necessary for the learner to achieve the stopping criterion and the number of trainer's actions. For the maze tasks we know that the policy developed is optimal. For this experiment we only know that the car can drive successfully from the start line to the finish via the learned policy. Similarly to previous experiments, we perform statistical tests to determine whether results with non-zero asking rates are different than the results with Q-learning. We do not compare the results statistically to apprentice learning because the learners that asked the trainer 100% of the time do not learn appropriate policies in the allotted time. 5.4.2 Results Figure 5.14 shows the results for the sub-experiments on the smaller track. The numerical data for this experiment are presented in the Appendix. As with the graphs for the maze task, this graph depicts the asking rate parameter on the independent axis and the mean number of actions necessary to achieve the stopping criterion on the dependent axis. The performance for standard Q-learning is shown with the dashed line labeled "Q-learning", with its 95% confidence interval marked by the dotted lines. The curve represents the number of actions required by the learner to meet the stopping criterion for different levels of asking rate. Figure 5.14 indicates that AfH can also be effective for the race track task. At low asking rates, there is no significant difference between asking for help and standard Q-learning. Starting at the 20% asking rate and continuing up to 85%, asking for help is statistically better than not asking. The curve labeled "Learner" is quite similar to the curve in Figure 5.8 that represents a trainer that is incorrect 60% of the time. However, there is a major difference at higher rates of asking between the earlier results: the curve takes a steep rise starting at the 80% asking rate. The results for the 95% asking rate, which are off the graph, are significantly worse than 99 Q-learning Learner |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100 Asking Rate (Percentage) Mean Actions (in 1,000's) Figure 5.14 Mean actions for race track task on track 1. The 95% confidence bars are shown. All means between the 20% and 85% asking rates are statistically better then those achieved at the 0% rate. The mean at the 95% asking rate is off of the graph. not having a trainer at all. At the 100% asking rate the learner does not learn a policy for navigating the track: the runs were all stopped after the total number of trials exceeded 75; 000. In comparison, Q-learning takes an average of less than 5; 000 trials to complete. The basic results for the longer track are the same as reported above for the shorter track, although the values of all the measured statistics are higher because the second track is longer. This data is shown in Figure 5.15. Note that the run at the 95% asking rate did not complete within the prespecified limits, and that the learner performed best at the 80% asking rate. 100 Q-learning Learner |0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100|0 |50 |100 |150 |200 |250 |300 |350 |400 |450 |500 Trainer Rate (Percentage) Mean Actions (1,000's) Figure 5.15 Mean actions for race track task on track 2. The means between the 10% and 90% asking rates are statistically better than that achieved at the 0% rate. The runs with asking rates higher than 90% did not complete within the preset limits. 5.4.3 Discussion Because the learner is able to satisfy the stopping criterion much more quickly with the trainer's aid than it does without the trainer's aid, we draw the same conclusion from this experiment that we do from the maze experiments: AfH is an effective means of integrating apprentice learning and reinforcement learning, at least at moderate levels of asking rate. However, these results are confounded by the use of linear networks to store the Q-values. Even so, the results are similar to those for the maze experiments where a trainer with a 60% error rate provides actions to the learner. The results for this experiment show the tradeoff between apprentice learning and reinforcement learning nicely. At the far left of the graph in Figure 5.14 is standard Q-learning, and at the far right is apprentice learning with a suboptimal trainer. 101 Both of these methods require more training to achieve the stopping criterion than a combination of the two. As the asking factor increases from 0%, the amount of reinforcement learning decreases and that of apprentice learning increases. Clearly, a combination of the two is better than each individually, assuming the trainer is suboptimal. The results of this experiment also indicate that the learner achieves the appropriate policy the quickest at either the 70% or 80% asking rate. This is quite similar to the results of the previous experiment that indicated that the 75% rate gave the best performance for a wide variety of error rates and maze sizes. This suggests that when applying AfH with the uniform asking strategy, one may wish to use an asking rate somewhere between 70% and 80%. Further experiments would need to be run in order to determine the exact rate. The similarity of these results to those for the 60% error rate on the maze tasks suggests a possible technique for determining an agent's level of expertise. First, one would use the agent as a trainer, like we have in these experiments, and record the learner's policy acquisition rate for different asking rates. Then, to determine the trainer's expertise, one would find the error rate whose data matched the agent's data most closely. Although we do not know that this technique will be effective, the observation that the curves for this experiment and the previous experiments are similar suggests this as an avenue for future research. 5.5 Asking Based on Uncertainty For this final experiment, we compare the two asking strategies, uniform asking and uncertainty asking. We wish to determine whether a more sophisticated approach to querying the trainer is better than the random approach, which will give us insight into when it is appropriate to receive training information. We find that the 102 uncertainty approach is better, allowing the learner to acquire an optimal policy with fewer total actions while receiving the same amount of trainer support. 5.5.1 Experimental Design Like the first two experiments, the domain for this experiment is the maze domain. For the first two experiments (Section 5.2 and Section 5.3), the learner queries the trainer based on an asking rate parameter, which determines the percentage of the time that the learner asks for help. In this experiment, the learner bases the decision of when to ask on the status of its current policy. When deciding on an action to choose, the learner examines the highest and lowest Q-values. If the difference between these values is larger than the setting for the asking factor, the learner will ask the trainer for an action. In each of the sub-experiments, we vary that asking factor, changing it from 0:0, which requires that all of the current move choices have equal values in order for the learner to ask for help, up to 1:0, a setting that causes the learner to ask for aid all of the time. Each individual sub-experiment is performed in the same manner as in the first two experiments. There are ten runs, each of which begins with zeroed Q-values and ends when either the learner meets the stopping criterion or surpasses the preset action or trial limits. Each run consists of several trials in which the learner attempts to navigate from the start cell to the goal. 5.5.2 Results We first show the results of this experiment in a graph similar to those in which we presented previous maze results. In the next section, we display the results in a different type of graph in order to facilitate comparison with results from the experiments with the uniform asking strategy. The numerical data for this experiment are presented in the Appendix. Figure 5.16 shows the results for the 40x40 maze. Like previous graphs, the dependent axis shows the mean number of trials. The inde103 pendent axis shows the asking factor. Each curve represents the results for different levels of trainer error. For the 40x40 deterministic maze, standard Q-learning requires an average of 1.8 million actions to find an optimal policy. The results for every sub-experiment are significantly better than the result for Q-learning. The highest mean number of actions observed, which is for the 50% error rate and 0:0 asking factor, is only 150; 000. Thus, AfH with the uncertainty strategy is better than Q-learning alone. Furthermore, AfH performs better than apprentice learning alone. With an asking factor of 1:0, the learner ends up asking the trainer for aid 100% of the time, and so the sub-experiments at the 1:0 asking factor represent a form of apprentice learning. One can observe that each of the curves tends to rise as the asking factor increases, indicating that lower asking factors produce results better than those at the 1:0 factor. In fact, the mean number of actions required to meet the stopping criterion is never statistically worse than those required with apprentice learning. For the smaller mazes, the results tend to be significant starting at the 0:0001 asking factor and continuing to the 0:75 factor, with few exceptions. For the large mazes, all results tend to be statistically better than those for apprentice learning. It is also the case for the stochastic mazes that the results at all asking factors and with all suboptimal trainers are better than, or at least indistinguishable from, the apprentice learning results. For the optimal trainers, the results are significantly worse at low asking factors, but indistinguishable at the higher factors. Thus, for suboptimal trainers, AfH with the uncertainty strategy is better than apprentice learning. 5.5.3 Discussion We first conclude that the Ask for Help approach with the uncertainty asking strategy is effective for integrating apprentice learning and reinforcement learning, even for suboptimal trainers. Further, with the uncertainty strategy, the learner can 104 \Xi \Xi 00% error \Omega \Omega 10% error \Sigma \Sigma 25% error \Pi \Pi 50% error |0.0 |0.0001 |0.001 |0.01 |0.1 |0.25 |0.5 |0.75 |1.0|0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100 |110 |120 |130 |140 |150 Asking Factor Mean Actions (in 1,000's) \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Sigma \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi Figure 5.16 Results for the 40x40 deterministic maze with all trainers and the uncertainty asking strategy. All of these means are statistically better than the Q-learning mean, which is off of the graph. With Q-learning the agent requires close to 6 million actions on average to find an optimal policy. reduce its interaction with the trainer and still learn an optimal policy in as much time as though it had asked for aid continually. In the remainder of this section we compare the results of the experiment with the uniform asking strategy to those with the uncertainty asking strategy. To facilitate comparison with the results based on the uniform asking strategy, we introduce a new type of graph. Before showing the results for this experiment in this new form, we present the results from the first experiment. Like previous graphs, Figure 5.17 shows the number of actions needed to meet the stopping criterion on the vertical axis. The horizontal axis is the number of trainer's actions that were received, not the asking rate. The data presented on this graph represents the same data as that in Figure 5.4 on Page 83. 105 \Upsilon \Upsilon Uniform asking strategy |0 |5 |10 |15 |20 |25 |30 |35|0 |300 |600 |900 |1200 |1500 |1800 |2100 |2400 Trainer actions (in 1,000's) Total actions (in 1,000's) 1% Asking Rate 5% Asking Rate 10% Asking Rate \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon Figure 5.17 Scatter graph for the 40x40 deterministic maze with the optimal trainer and the uniform asking strategy. These are the same results depicted in Figure 5.4 (page 83), but represented differently. Each diamond on the graph represents the result of each individual run of each sub-experiment for the 40x40 deterministic maze with an optimal trainer. The dotted lines represent the different asking rates. For example, the diamonds that lie on the line labeled "1% Asking Rate" are the results from the sub-experiment in which the learner asked the trainer for an action 1% of the time. Because the rate is a controlled parameter, every run at the 1% asking rate will produce a result that will lie on this line. In order to avoid cluttering the graph, only three of the seven lines associated with the asking rate sub-experiments are labeled. The results for each of the seven asking rate sub-experiments has an associated center, which is at the coordinates of 106 the mean of the two statistics for that particular asking rate: the x coordinate is the mean of the number of trainer's actions, and the y coordinate is the mean of the total number of actions. This center is depicted as a dark square. The light, dashed line simply joins these center points. The graph also depicts a light vertical line at 12; 000 trainer's actions, which helps show that not all trainer's actions are equally useful in speeding up the learner's ability to acquire an optimal policy. For the same number of trainer's actions, the learner requires vastly different amounts of total training. This can be seen by traversing the vertical line from the x-axis upwards. With 12; 000 actions the learner is able to learn the task in approximately 48; 000 total actions (at the 25% asking rate), 120; 000 actions (at the 10% asking rate), and 1; 200; 000 actions (at the 1% asking rate). This phenomenon is not particular to 12; 000 trainer's actions, it can also be observed at other levels of trainer interaction. Because the same number of trainer's action produces these widely varying results, one can say that certain trainer's actions are better than others. For example, the 12; 000 trainer's actions given at the 1% asking rate were not as effective as those received at the 25% asking rate. One can also view this finding from the viewpoint that the trainer's that respond 25% of the time are more effective than those that respond only 1% of the time. Figure 5.18 represents the same information as Figure 5.17, but shows the results of a sub-experiment with the uncertainty asking strategy. The circles represent the measured statistics for each individual run, with a dark diamond in the center of the results for each asking factor. The dark diamond to the far left represents the data for the sub-experiment with the 0:0 asking factor, the next diamond is at the 0:0001 asking factor, and the last is at the 1:0 asking factor. Unlike the results from the first experiment, notice that these groupings do not generally lie on a line through the origin. This is especially true on the left of the graph. However, the last group of results on the far right of the graph are on the line corresponding to 100% interaction 107 with the trainer. Also notice that the vertical axis has a scale different from the previous figure. \Pi \Pi Uncertainty asking strategy |0 |5 |10 |15 |20 |25 |30 |35|0 |5 |10 |15 |20 |25 |30 |35 |40 |45 |50 Trainer actions (in 1,000's) Total actions (in 1,000's) 100% Interaction \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi Figure 5.18 Scatter graph for the 40x40 deterministic maze with the optimal trainer and the difference asking strategy. These results are the same as those for the optimal trainer in Figure 5.16 (page 105). In order to compare the two sets of results, Figure 5.19 depicts them on the same graph. In general, the points plotted for the uncertainty strategy experiment are below those of the uniform strategy experiment. This is most noticeable in the group of points near 4; 000 trainer's actions. With approximately 4; 000 trainer's actions, the learner develops an appropriate policy in only 30; 000 actions. With the uniform asking strategy, the learner needs close to 15; 000 trainer's actions in order to achieve this level of performance. Thus, with the uncertainty strategy, the learner needs fewer 108 trainer's actions to reach the same level of performance as with the uniform strategy. Also notice that in this particular case, the proportion of trainer's actions in the total number of training actions is close to 15%. \Upsilon \Upsilon Uniform asking strategy \Pi \Pi Uncertainty asking strategy |0 |5 |10 |15 |20 |25 |30 |35|0 |10 |20 |30 |40 |50 |60 |70 |80 |90 |100 |110 |120 |130 |140 |150 Trainer actions (in 1,000's) Total actions (in 1,000's) 5% Interaction 10% Interaction 25% Interaction 50% Interaction \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Xi \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon \Upsilon \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Omega \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi \Pi Figure 5.19 Scatter graph for the 40x40 deterministic maze showing both asking strategies with the optimal trainer. Note that the curve for the uncertainty asking strategy never higher than the curve for the uniform asking strategy, indicating that the uncertainty asking strategy produces better results. One can also compare how well the learner performs for the same amount of trainer interaction but with different asking strategies. For example, with the uncertainty strategy and 12; 000 trainer's actions, the learner finds an optimal policy in approximately 23; 000 total actions. With only 12; 000 trainer's actions, the learner using the uniform asking strategy requires at least 48; 000 total actions to meet the stopping 109 criterion. Thus, the uncertainty strategy makes better use of the trainer, achieving quicker convergence with the same number of trainer's actions. With the uniform strategy, as the name suggests, the trainer interacts with the learner uniformly throughout training. With the uncertainty strategy, the amount of interaction with the trainer diminishes over time during a training run. This is depicted in Figure 5.20, which plots the number of trainer's and learner's actions for each trial of a particular run with the 40x40 maze, the optimal trainer, and the 0:0 asking factor. The horizontal axis in the graph shows the number of actions that the learner chooses on its own, and the vertical axis represents the number of actions chosen by the trainer. Each point on the graph represents the number of learner's and trainer's actions for a particular trial. For example, the point at (48, 36), which is marked with the dotted lines, represents a trial in which the learner asked the trainer for an action 48 times, and performed its own action 36 times, for a total of 84 actions. For the first trial, the learner does not choose any of its own actions, and the trainer performs the task optimally. The point for this is plotted at (0, 74), signifying that the trainer provided every action in performing the task. As training progresses, the number of trainer's actions tends to decrease while the number of learner's actions increases. Toward the end of the run, very few of the actions come from the trainer, which is shown by points near the horizontal axis. At the end of the run, the learner performs 74 actions, the optimal number. These results, which are similar for other runs, other mazes, and other trainers, indicate that the learner relies heavily on the trainer at the beginning of training, but asks for help less often as training progresses. This is a positive result when one considers having a human as a trainer. Instead of needing to provide actions a uniform percentage of the time throughout training, the human will provide many actions at the beginning of training and be needed less and less as training progresses. 110 |0 |20 |40 |60 |80 |100 |120 |140 |160 |180 |200 |220 |240 |260 |280 |300|0 |5 |10 |15 |20 |25 |30 |35 |40 |45 |50 |55 |60 |65 |70 |75 |80 Learner's Actions Trainer's Actions ffffff ffffffff ff ff ff ffff ffff ffffff ff ffff ff ff ffffffffffff ffffffff ff ffff ffff ffff ffff ff ff ff ffff ffff ff ffffff ffffff ff ff ffffff ff ffff ffffffff ffff ff ffff ff ff ffffff ffff ffffff ff ff ff ffffff ff ffff ffffff ff ff ffff ff ff ff ff ff ff ff ffff ffff ff ffff ffffff ff ff ff ff ffff ffffffffff ffffff ffff ffff ff ffff ffff ffff ffff ffff ffffffff ffffff ffffff ff ffffffff ffffff ffff ffff ff ffff ff ff ffff ff ff ff ffff ffff ffff ffff ffff ffffff ff ffff ffff ffff ffffff ff ff ff ffff ffff ffffffff ffffff ffffff ff ffff ffff ffffffffffff ff ffffff ffffffffff ffffffffff ffffffffffffff ffff Figure 5.20 Results for the 40x40 maze showing the trainer's action distribution. The data for the early trials are along the dependent axis, and the data for the trials near the end of the run are along the independent axis. The line segments connecting the points show the progression from the first trial to the last. Like the uniform asking strategy, with the uncertainty strategy the learner visits only a small portion of the state space. For example, Figure 5.21 depicts the frequency of cell visits for the 40x40 maze on a particular run at the 0:0 asking factor with an optimal trainer. The height of each bar in the graph depicts how often the corresponding maze cell was visited. The start cell is at the left corner of the graph, and the goal cell is in the right corner. Almost all of the learner's experience was acquired in a particular area of the graph (depicted with the highest bars). For this particular run, the learner visited only 255 of the 1; 018 cells, a reduction by a factor of four. 111 Figure 5.21 Frequency of cell visitation for the 40x40 deterministic maze with the uncertainty asking strategy on a run in which the learner asked the optimal trainer with an asking factor of 0:0. 5.6 Summary The main objective of the experiments is to answer the general questions presented in Chapter 4: how should the learner and trainer interact, how should the learner incorporate the trainer's actions into its developing policy, how does the trainer's expertise influence the learner's ability to acquire an appropriate policy, and when should the trainer provide information to the learner? Secondarily, we also wish to determine whether Ask for Help is an effective approach to integrating apprentice learning and reinforcement learning. 112 The results of the first experiment indicate that the trainer's aid does speed up the learning process, allowing the learner to develop an appropriate policy significantly faster than when it relies on standard Q-learning. Furthermore, these results show that AfH is an effective approach for integrating apprentice learning and reinforcement learning, at least with an optimal trainer. The learner is able to learn an optimal policy while also taking advantage of the trainer's proffered actions In the second experiment, in which we vary the trainer's expertise by controlling how often the trainer responds with a suboptimal action, we gain further evidence that AfH is an effective means of integrating the two disparate learning methods. Moreover, we find that the trainer's expertise does indeed affect how quickly the learner produces an appropriate policy. Although this conclusion is not too surprising, we also find that a trainer that is incorrect up to 25% of the time helps the learner almost as much as a perfect trainer. AfH is useful even when the trainer is not perfect. This finding is important when having humans serve as the trainers, allowing those that do not perform the task optimally to be considered. The results from the third experiment indicate the the AfH approach also works for more complex tasks than maze navigation. The learners here rely on a handcoded trainer, and learn more quickly with that trainer under certain conditions. Even though the race track task is different from maze navigation, the results of the experiments are quite similar to those for the maze tasks. The experiment shows the tradeoff between apprentice learning and reinforcement learning, strengthening the hypothesis that an integrated method is better than its constituents. In the fourth experiment we compare the uniform asking strategy to the uncertainty asking strategy. We find that the more principled strategy allows the learner to benefit from the trainer better, requiring fewer trainer's actions to achieve the same level of performance. Thus, the learner can employ a more intelligent strategy for when to ask the trainer for aid, and reduce its reliance on another agent. This is par113 ticularly important when there is a cost associated with each of the trainer's actions. Moreover, every trainer's action does not provide the same amount of information to the learner in aiding the learner to develop an optimal policy quickly. Evidence from the maze tasks suggests that the Ask for Help approach possesses the desirable characteristics described in Chapter 3 (Section 3.1.1). It allows the trainer to learn from reward signals as well as from the trainer's actions. It exposes the learner to much less of the space than when it relies on Q-learning alone. And, finally, the policies learned are optimal. An approach of simply asking for actions uniformly throughout training, and simply performing the action when it is received, is an effective method for learning to perform multiple-step tasks. We demonstrate that Ask for Help allows the learning agent to produce correct policies more quickly than with either reinforcement learning alone or apprentice learning alone. We also show that the uncertainty asking strategy performs better than asking for aid randomly. The results show that the expertise of the trainer takes a major role in the success of the learner. Finally, we conclude that one can indeed integrate apprentice learning and reinforcement learning to advantage. 114 CHAPTER 6 DISCUSSION This dissertation is about integrating apprentice learning and reinforcement learning, and is focused on answering particular questions about the integration of these two learning methods. In addition to finding the answers, the research has raised a set of issues for consideration in the future. Moreover, in developing, implementing, and studying a particular integrated approach, the dissertation has contributed towards understanding better the integration of apprentice learning and reinforcement learning. 6.1 Summary of the Dissertation Previous research in integrating apprentice learning and reinforcement learning has identified the integration of the two methods as promising for building automated agents that can learn to perform multiple-step tasks. This dissertation furthers the understanding of hybrid systems by examining particular aspects of the integration not addressed by previous work. A thorough comparison of the two individual methods reveals that each possesses strengths as well as weaknesses and that neither is clearly better than the other. In Chapter 3, we argue that the two methods have complimentary strengths and that the hybrid of the two will be a more powerful method than either individual. In considering an integrated method, we develop the novel learner/trainer model, which makes explicit many of the possible interactions that can take place between the learner and the trainer, and introduces the notion of an interaction policy--a policy 115 that specifies how the learner and trainer will interact in the hybrid method. Our main objective is to answer particular questions about integrated methods. We designed our Ask for Help approach with these questions in mind. We wish to determine: how the learner and trainer should interact, how the learner should incorporate the trainer's actions into its developing policy, how the trainer's expertise influences the learner's ability to acquire an appropriate policy, and when it is effective for the trainer to provide information to the learner. In the remainder of this section we first summarize the Ask for Help approach. We then present the empirical results that confirm the hypotheses. 6.1.1 The Ask for Help Approach In order to study certain aspects of integrating apprentice learning and reinforcement learning, we developed a new integrated approach, Ask for Help. Although previous research has shown some benefit in integrating these two learning methods, that research has left several questions unanswered. Our objective in developing AfH is to tackle four of those questions. In the Ask for Help approach, the learning agent employs Q-learning as its learning algorithm. This gives the learner the ability to develop an optimal policy based on scalar reward signals. In addition to learning from reward signals, the learner also has access to actions provided by a training agent. The learner incorporates a trainer's action into its policy simply by acting as though it had chosen the action itself: perform the action, receive whatever reward is provided, and update the Q-functions accordingly. Thus, to incorporate an action requires no changes to Q-learning. The learner is completely responsible for its interaction with the trainer, asking the trainer to provide actions. The trainer will always give an action when asked. The learner employs one of two strategies to ask for help. With the first strategy, the learner asks the trainer to provide actions randomly throughout training. The 116 motivation for employing such a simple strategy is to determine when it is effective to receive the trainer's advice in order to help the learner develop a policy more quickly than not having access to a trainer. The second asking strategy relies on the Q-values of the learner's current action choices to determine whether to ask for aid. When the difference between the highest and lowest Q-values is within a pre-specified limit, the learner will ask for help. This strategy allows us to ask whether a principled approach to asking for aid is an improvement over the first strategy. 6.1.2 Empirical Study The empirical study demonstrates that Ask for Help is an effective approach to integrating apprentice learning and reinforcement learning. In each of the experiments, the learning agent develops its policy more quickly than with reinforcement learning alone. Furthermore, the results indicate that AfH sometimes allows the learner to develop a policy more quickly than it can with only apprentice learning. The experiments also indicate each of the following: actions received at random times in the training are useful, the trainer's expertise influences how quickly the learner develops an optimal policy, the AfH approach can scale up to a larger domain than maze tasks, and the more sophisticated asking strategy allows the learner to learn even more quickly. The results of the first two experiments indicate that the trainer's aid does speed up the learning process, allowing the learner to develop an appropriate policy significantly faster than when it relies on standard Q-learning alone. This occurs partially because the trainer focuses the learner on parts of the state-space that are appropriate for learning the optimal policy. Recordings of the actual maze cells that were visited indicate that the learner is exposed to cells within a neighborhood of the optimal path; the size of the neighborhood is determined loosely by the asking rate and by the expertise of the trainer. Roughly speaking, the higher the asking rate and the higher the expertise, the smaller the neighborhood and the faster the learning. 117 Additionally, the second experiment demonstrates that the trainer's expertise does indeed influence the rate at which the learner develops an optimal policy. Because the trainers are stochastic degradations of an optimal trainer, these results suggest that other suboptimal trainers may also be useful. If these degraded trainers are not able to help the learner, the efficacy of other trainers would be seriously in doubt. Given that the Ask for Help approach is effective for the maze tasks and that the suboptimal trainers are helpful, the next experiment is designed to determine whether AfH will scale to a larger task with a suboptimal trainer (one that is not a simple degradation of an optimal trainer). With most settings of the asking rate, the learner develops a policy significantly more quickly than without the trainer's aid. The results of this experiment also show that the integrated method produces a policy that meets the stopping criterion when a form of apprentice learning with a suboptimal trainer does not. In the final experiment, the learner is able to learn an optimal policy more quickly with the uncertainty asking strategy than with the uniform asking strategy, while receiving the same number of trainer's actions. This indicates that the more sophisticated strategy identifies places where the trainer's actions are more informative than trainer's actions received randomly. This experiment further supports the claim that an integrated method can be better than apprentice learning: as the ratio of trainer's to learner's actions approached one (getting closer to apprentice learning), the total number of actions necessary to achieve the stopping criterion increases given a suboptimal trainer. The empirical study indicates that an integration of apprentice learning and reinforcement learning can be better than its constituents, and that the Ask for Help approach is effective for integrating these two learning methods. Furthermore, the results suggest that humans can serve effectively as trainers. Even when the human is not optimal, the learner can benefit from the interactions that take place. Fur118 thermore, the uncertainty asking strategy will make good use of the human's time, requiring less interaction than a random approach, and requiring less interaction as training progresses. Thus, the AfH approach is applicable to situations in which a human serves as a training agent. 6.2 Issues for Future Research This dissertation exposes many avenues for future research. Chapter 3 raised several issues that must be addressed when building an integrated system. In considering these issues, we made certain decisions when designing AfH, for example insisting that the trainer provide actions to the learner. In this section we discuss other options for dealing with those issues, reexamining the form of advice provided by the trainer, the mechanism for incorporating that advice into the policy, and the interactions that take place between the learner and trainer. 6.2.1 Form of Advice The Ask for Help approach relies on advice from the trainer in the form of actions to perform. There are at least two other types of advice that the trainer might provide. The trainer could give advice as scalar signals (similar to the rewards received) that criticize the learner's most recent actions. As noted in Section 3.4.2, this form of advice has been used previously with success, indicating that the trainer's evaluative feedback, in addition to the rewards, might be beneficial to the learner. Like actions, this form of advice, is a natural and easy means to convey information to a learning agent. The trainer does not even need to know which actions to perform, but can simply note whether the learner's actions are good or bad. Because there are many questions to answer before this form of advice becomes used widely, this area of research should be explored further. 119 The approach taken in AfH is a special case of another possible form of advice. Instead of giving only one action that is suitable to perform, the trainer might give the learner an entire set of actions from which to choose one. Preliminary work in the race track domain indicates that this form of advice also improves the learner's ability to solve the problem quickly (Clouse, 1995). Furthermore, the trainer in that study cannot solve the problem itself; it can only identify actions that are clearly bad and should not be placed in the set of actions, and those that are clearly good and should be placed in the set. The learner benefits because the trainer has already narrowed the learner's options, allowing the learner to concentrate on fewer action choices. This type of advice may also keep the learning agent from making costly mistakes as it trains because the learning agent is constrained to choosing from a subset of the possible actions. 6.2.2 Incorporating Advice Regardless of the form of trainer's advice, the advice must be incorporated into the learner's policy. In changing the learner's policy based on the trainer's advice, care must be taken to ensure that the learner can still develop an optimal solution. For this reason, the incorporation mechanism of AfH has the learner simply perform the trainer's action. Several other options exist. For example, instead of performing the action, the learner might raise the Q-value of the current state and trainer's action slightly, and then choose whatever action has the highest Q-value (it may be the trainer's action, but it may not). In addition to performing the trainer's action, the trainer might also increase its associated Q-value regardless of the reward received. Clouse & Utgoff (1992) took a similar approach in their early integrated system. Many possible options exist that have not been explored fully. Incorporating scalar advice can be as simple as treating the advice as a reward signal. This would not require any changes to the underlying reinforcement learning algorithm because it was designed to update based on scalar reward signals. At least 120 two difficulties arise when considering criticism as a form of advice. First, one must decide how to handle the conflict between the reward signal and the trainer's signal. Options for dealing with this include ignoring the trainer, ignoring the reward signal, or combining the two mathematically. This area has not been explored much. The other difficulty is related to the trainer's expertise at the problem. As with other forms of advice, one must determine how proficient the trainer needs to be in order to be helpful. One should be especially careful that the learner maintains its ability to learn an optimization of the reward signals--its ultimate objective--even though it is also incorporating scalar signals from the trainer. As with the previous two forms of advice, there are at least two options for incorporating advice in the form of sets of actions. First, the learner simply chooses the action it considers to be the best of the set and performs it. Once an action is chosen, the options for incorporating it are the same as if the trainer had given only one action, as discussed above. In the second option, the learner performs whatever action it chooses, and updates its policy depending on whether the action it chose was in the set or not. If the action was in the set, the learner increases the action's Q-value regardless of the reward received, thus "rewarding" the learner for picking one of the trainer's actions. Conversely, if the learner picked an action that was not in the trainer's set, the learner gets "punished" for doing so, decreasing the chosen action's Q-value. Of these two assimilation options, the first seems the least prone to difficulties. As with other incorporation schemes, one must be careful that the learner still has the ability to optimize the receipt of the rewards received. 6.2.3 Learner/Trainer Interactions The Ask for Help approach, like all previous integrated systems, employs particular policies that specify how the learner and trainer interact. As discussed in Section 3.2, the choices made are not the only possibilities. The learner and trainer may be involved in more sophisticated interactions than any system to date has con121 sidered. For example the learner and trainer could engage in a dialog about the current problem, similarly to PROTOS (Section 2.2.2). For the empirical study, we employed the "Ask for Help?" interaction policy and implemented it via two strategies. The first strategy is straightforward, but the second is more sophisticated. The later strategy, which we call the uncertainty asking strategy, relies on the difference between the agent's Q-values. In the experiments we examine how a change in the asking factor, which determines whether the learner is uncertain, affects the learner's acquisition of an appropriate policy. Unfortunately, the setting of the asking factor depends greatly on the magnitude of the Q-values. For our problem, the Q-values remain less than 1:0, and so we use asking factors less than 1:0. However, for other problems, the Q-valuesmay get quite large, requiring larger asking factors to ascertain whether the learner is uncertain of its current choice. It is an issue for future research to determine how to set the asking factor. However, our empirical study indicates that setting the factor at its lowest level, 0:0, is affective. This level of the asking factor is applicable to any problem, because it indicates that all the current actions choices have identical values. The learner and trainer might also learn the interaction policies. After all, the interaction policies are just policies: given a current state they produce an action. For an interaction policy, the state may include information about the learner and the trainer as well as the task state. It may be possible to develop these policies with reinforcement learning, apprentice learning, or even an integrated method. If the learner were learning the "Ask for Help?" interaction policy, it might learn to ask for help frequently at the beginning of training and less often as training progresses. Or, the learner might learn to recognize a bad trainer and to quit asking for help. After the learner or trainer has learned a particular interaction policy, it may apply that policy to learn from or train another agent on a similar, or possibly quite different, problem. This is a rich area for future research. 122 6.3 Conclusion As computer systems become more complex, and the tasks we humans expect them to perform become more demanding, programming computers directly will become increasingly impractical. Consequently, machine learning will take on a more pervasive and essential role in building computer systems. As a step in this direction, this dissertation focuses on automated agents that learn to make a sequence of decisions in order to solve a problem. Taking inspiration from human learners, who not only learn from others but also refine their skills autonomously, this dissertation has concentrated on issues that arise in integrating apprentice learning and reinforcement learning. Although prior research has explored this area, that research has not focused on the specific issues addressed herein. This dissertation shows that a careful integration of the two seemingly disparate learning methods can produce a more powerful method than either one alone. First, an argument based on the characteristics of the two learning methods maintains that a hybrid method will be an improvement because of the complimentary strengths of its constituents. Second, the empirical study shows that the Ask for Help approach integrates the two methods effectively. The study demonstrates that even the straightforward technique of asking the trainer for actions randomly throughout training and then incorporating those actions into the developing policy by simply performing them is clearly better than reinforcement learning alone, and sometimes better than apprentice learning alone. Moreover, the results indicate that the trainer's expertise in performing the task must be considered thoroughly, because it has a direct bearing on how well the learner will benefit from the trainer's suggested actions, and may even preclude the learner from acquiring an appropriate policy. Thus, one must be careful when designing an integrated system to examine the trainer's ability to perform the task. Finally, the uncertainty asking strategy employed in this research 123 is an improvement over asking for aid uniformly. This suggests that sophisticated strategies for obtaining information from the trainer are worth studying further. With continued research, we believe that expansion on the work presented in this dissertation will lead to other techniques that can be applied to tasks that are not currently amenable to a learning approach--tasks for which current techniques require prohibitive amounts of time or space to learn, and tasks that are not well enough understood to program directly. Eventually, computers will no longer need to be programmed directly to perform complex problem-solving and control tasks; instead, they will be taught to perform these tasks, through the integration of apprentice learning and reinforcement learning. 124 APPENDIX DATA FOR ALL THE EXPERIMENTS The data provided in this appendix are the results of the experiments described in Chapter 5. The following tables give the data for the maze experiment with the optimal trainer, which is discussed in Section 5.2 starting on page 79. In all of the tables, the column labeled "Actions" shows the mean and 95% confidence interval for the number of actions needed to achieve the stopping criterion, in 1,000's. "Trials" shows the mean and confidence interval for the number of trials performed. Data for the 20x20 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 128.78\Sigma 64.68 1174.50\Sigma 1538.13 5 41.57\Sigma 4.54 146.00\Sigma 10.78 10 23.56\Sigma 1.72 143.50\Sigma 10.27 25 12.16\Sigma 0.54 151.70\Sigma 7.62 50 7.97\Sigma 0.24 157.50\Sigma 5.46 75 6.66\Sigma 0.23 164.60\Sigma 6.27 100 6.61\Sigma 0.25 183.50\Sigma 7.05 Data for the 40x40 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 1235.99\Sigma 449.95 2754.71\Sigma 5364.82 5 290.44\Sigma 20.30 313.50\Sigma 24.03 10 131.21\Sigma 10.14 297.90\Sigma 18.56 25 50.86\Sigma 2.47 313.60\Sigma 18.47 50 31.86\Sigma 1.65 315.70\Sigma 18.81 75 29.56\Sigma 1.25 359.70\Sigma 16.05 100 31.27\Sigma 2.19 422.60\Sigma 29.55 125 Data for the 60x60 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 1 6473.80\Sigma 4842.51 26444.20\Sigma 35343.46 5 1021.48\Sigma 70.98 774.10\Sigma 53.69 10 492.58\Sigma 29.68 727.70\Sigma 36.62 25 180.51\Sigma 6.01 681.00\Sigma 20.88 50 120.82\Sigma 1.49 768.50\Sigma 9.92 75 125.65\Sigma 2.75 984.90\Sigma 21.20 100 154.19\Sigma 2.99 1352.50\Sigma 26.22 Data for the 80x80 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 1 10222.91\Sigma 601.03 1498.10\Sigma 938.10 5 2303.58\Sigma 86.25 1036.20\Sigma 34.40 10 926.52\Sigma 32.66 948.50\Sigma 17.59 25 301.59\Sigma 4.78 888.10\Sigma 11.75 50 201.57\Sigma 2.67 963.60\Sigma 14.94 75 191.73\Sigma 1.91 1108.20\Sigma 11.40 100 195.51\Sigma 1.88 1253.30\Sigma 12.04 Data for the 100x100 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% 48149.62\Sigma 0.00y 12249.00\Sigma 0.00 1 24723.38\Sigma 9384.27 29241.00\Sigma 40555.01 5 3333.64\Sigma 157.31 1224.60\Sigma 48.25 10 1414.77\Sigma 40.05 1153.40\Sigma 23.54 25 587.50\Sigma 14.72 1227.60\Sigma 23.58 50 380.49\Sigma 5.22 1366.80\Sigma 19.37 75 354.12\Sigma 6.59 1602.70\Sigma 29.52 100 361.38\Sigma 3.37 1862.80\Sigma 17.39 y Based on only 1 run. 126 Data for the 150x150 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 15427.76\Sigma 535.52 4423.40\Sigma 900.51 10 7329.74\Sigma 238.27 3524.30\Sigma 106.59 25 2935.33\Sigma 60.26 3564.60\Sigma 87.61 50 2080.27\Sigma 37.05 4611.20\Sigma 99.56 75 2028.04\Sigma 25.75 5930.40\Sigma 78.65 100 2543.01\Sigma 30.98 8649.70\Sigma 105.37 Data for the 200x200 deterministic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 35495.56\Sigma 1972.87 7679.00\Sigma 3855.68 10 15858.48\Sigma 383.80 5165.20\Sigma 136.65 25 5640.45\Sigma 78.36 4935.70\Sigma 63.65 50 3225.79\Sigma 17.25 5285.20\Sigma 26.28 75 2867.48\Sigma 32.66 6231.20\Sigma 73.66 100 3372.56\Sigma 22.79 8559.80\Sigma 57.85 Data for the 20x20 stochastic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 12872.83\Sigma 13031.29 218758.50\Sigma 221358.56 25 107.15\Sigma 42.30 1766.30\Sigma 755.83 50 12.47\Sigma 0.65 180.50\Sigma 9.71 75 8.95\Sigma 0.36 156.30\Sigma 6.14 100 7.72\Sigma 0.33 149.60\Sigma 6.75 127 Data for the 40x40 stochastic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 11820.67\Sigma 7498.85 103624.20\Sigma 66590.87 25 332.79\Sigma 90.83 2508.30\Sigma 763.49 50 72.13\Sigma 2.95 526.40\Sigma 24.85 75 63.01\Sigma 1.18 543.30\Sigma 10.75 100 56.35\Sigma 1.79 535.90\Sigma 16.40 Data for the 60x60 stochastic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 874.82\Sigma 267.89 4278.67\Sigma 1548.59 50 226.12\Sigma 5.98 1081.80\Sigma 34.10 75 185.43\Sigma 2.40 1052.20\Sigma 13.14 100 155.25\Sigma 2.46 974.80\Sigma 15.03 Data for the 80x80 stochastic maze with the optimal trainer Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 874.57\Sigma 131.16 2579.90\Sigma 552.58 50 367.46\Sigma 3.22 1267.60\Sigma 10.84 75 310.72\Sigma 2.87 1263.00\Sigma 11.72 100 280.71\Sigma 1.56 1254.90\Sigma 5.99 128 The following tables give the data for the maze experiment with the suboptimal trainers, which is discussed in Section 5.3 starting on page 89. In all of the tables, the column labeled "Actions" shows the mean and 95% confidence interval for the number of actions needed to achieve the stopping criterion, in 1,000's. "Trials" shows the mean and confidence interval for the number of trials performed. Data for the 20x20 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 145.69\Sigma 93.19 1551.20\Sigma 2147.05 5 47.77\Sigma 8.12 268.10\Sigma 175.25 10 27.87\Sigma 1.79 159.60\Sigma 13.69 25 13.92\Sigma 0.66 155.80\Sigma 9.87 50 8.67\Sigma 0.39 149.40\Sigma 6.25 75 7.75\Sigma 0.21 164.00\Sigma 4.32 100 7.88\Sigma 0.21 184.50\Sigma 4.44 Data for the 20x20 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 127.61\Sigma 61.86 944.20\Sigma 1574.46 5 56.49\Sigma 4.58 146.10\Sigma 18.59 10 33.44\Sigma 2.07 151.60\Sigma 9.57 25 18.16\Sigma 1.14 156.00\Sigma 9.00 50 11.11\Sigma 0.38 147.70\Sigma 5.60 75 9.62\Sigma 0.27 155.60\Sigma 4.61 100 10.03\Sigma 0.44 170.00\Sigma 6.94 Data for the 20x20 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 97.17\Sigma 8.09 146.60\Sigma 13.80 5 120.02\Sigma 58.29 979.20\Sigma 1308.87 10 55.59\Sigma 2.91 138.60\Sigma 12.17 25 33.42\Sigma 1.50 141.60\Sigma 6.41 50 22.21\Sigma 1.59 151.60\Sigma 12.54 75 19.16\Sigma 0.79 140.10\Sigma 6.10 100 21.40\Sigma 1.00 129.10\Sigma 5.68 129 Data for the 20x20 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 110.67\Sigma 14.93 127.40\Sigma 9.19 5 108.79\Sigma 12.01 213.10\Sigma 155.21 10 84.24\Sigma 11.29 153.90\Sigma 9.20 25 50.69\Sigma 6.30 132.30\Sigma 11.42 50 39.50\Sigma 3.47 147.90\Sigma 12.19 75 33.72\Sigma 2.13 126.30\Sigma 6.33 100 44.62\Sigma 4.43 90.20\Sigma 7.53 Data for the 20x20 deterministic maze with the 75% error rate Asking Rate Actions Trials 0% 135.81\Sigma 38.34 608.78\Sigma 730.64 1 141.90\Sigma 26.30 567.40\Sigma 649.73 5 162.19\Sigma 76.72 902.90\Sigma 1568.02 10 155.87\Sigma 20.22 143.10\Sigma 10.64 25 310.85\Sigma 48.27 133.30\Sigma 12.99 50 1679.33\Sigma 195.43 110.80\Sigma 7.40 75 did not complete 100 did not complete Data for the 40x40 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 1512.04\Sigma 514.92 6461.33\Sigma 5953.52 5 331.32\Sigma 18.81 320.50\Sigma 43.23 10 154.55\Sigma 7.66 295.00\Sigma 16.53 25 57.81\Sigma 2.14 288.80\Sigma 9.08 50 37.69\Sigma 1.39 325.30\Sigma 13.84 75 33.82\Sigma 1.27 349.90\Sigma 14.77 100 33.81\Sigma 1.49 380.80\Sigma 17.13 130 Data for the 40x40 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 1172.30\Sigma 97.11 442.30\Sigma 265.05 5 434.61\Sigma 26.74 327.90\Sigma 21.83 10 217.26\Sigma 13.40 302.30\Sigma 18.75 25 84.58\Sigma 3.22 303.10\Sigma 17.57 50 47.39\Sigma 1.80 307.60\Sigma 11.95 75 42.27\Sigma 1.12 323.20\Sigma 10.87 100 46.38\Sigma 2.14 364.60\Sigma 16.06 Data for the 40x40 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 1511.85\Sigma 234.97 1551.70\Sigma 2756.50 5 1326.07\Sigma 760.71 5614.37\Sigma 8261.12 10 593.18\Sigma 87.99 753.30\Sigma 961.30 25 210.40\Sigma 12.99 304.00\Sigma 22.10 50 114.79\Sigma 3.99 289.50\Sigma 11.75 75 96.58\Sigma 4.52 287.20\Sigma 19.12 100 129.20\Sigma 5.34 300.80\Sigma 13.66 Data for the 40x40 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 3011.30\Sigma 1414.62 16816.20\Sigma 16148.92 5 1291.79\Sigma 223.67 2200.30\Sigma 2336.19 10 859.14\Sigma 80.26 324.90\Sigma 26.27 25 673.79\Sigma 286.91 1961.30\Sigma 2402.26 50 330.56\Sigma 52.29 387.60\Sigma 210.15 75 244.19\Sigma 17.84 285.20\Sigma 29.74 100 479.53\Sigma 45.39 220.60\Sigma 19.11 131 Data for the 40x40 deterministic maze with the 75% error rate Asking Rate Actions Trials 0% 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 1 1972.52\Sigma 508.87 3769.20\Sigma 5724.91 5 3404.76\Sigma 1012.96 12216.40\Sigma 11176.83 10 6362.92\Sigma 5380.71 28335.67\Sigma 55915.37 25 did not complete 50 did not complete 75 did not complete 100 did not complete Data for the 60x60 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 1 7928.06\Sigma 10581.04 35716.40\Sigma 77382.77 5 1160.44\Sigma 160.88 1323.40\Sigma 1151.37 10 590.42\Sigma 36.15 726.60\Sigma 25.13 25 222.37\Sigma 5.95 717.90\Sigma 25.45 50 136.19\Sigma 2.34 740.60\Sigma 11.49 75 142.75\Sigma 2.80 948.70\Sigma 20.43 100 183.89\Sigma 3.47 1333.50\Sigma 25.06 Data for the 60x60 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 1 6224.56\Sigma 3307.07 20476.30\Sigma 24369.46 5 1502.06\Sigma 100.84 732.20\Sigma 45.33 10 807.09\Sigma 51.02 729.80\Sigma 39.15 25 299.22\Sigma 12.78 697.70\Sigma 17.87 50 180.87\Sigma 5.33 730.30\Sigma 21.09 75 181.41\Sigma 2.49 880.30\Sigma 11.97 100 255.25\Sigma 4.25 1277.80\Sigma 19.60 132 Data for the 60x60 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 1 6450.54\Sigma 3789.75 15081.40\Sigma 27286.38 5 2788.53\Sigma 120.36 983.70\Sigma 284.00 10 1922.85\Sigma 187.61 1203.20\Sigma 721.34 25 848.09\Sigma 45.54 792.30\Sigma 196.63 50 438.48\Sigma 12.30 676.00\Sigma 17.46 75 375.41\Sigma 10.30 689.20\Sigma 19.76 100 657.03\Sigma 16.93 925.10\Sigma 24.83 Data for the 60x60 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 1 11225.42\Sigma 9933.66 46025.00\Sigma 73592.89 5 7370.22\Sigma 6628.56 22410.20\Sigma 46698.63 10 5666.05\Sigma 4227.22 16315.40\Sigma 27827.41 25 3204.68\Sigma 1726.07 6013.30\Sigma 8927.49 50 1376.67\Sigma 70.38 688.70\Sigma 26.25 75 1111.22\Sigma 32.08 573.80\Sigma 15.97 100 2260.73\Sigma 86.02 503.40\Sigma 16.09 Data for the 80x80 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 1 13650.27\Sigma 3970.44 14459.30\Sigma 21180.61 5 2767.40\Sigma 77.67 1036.10\Sigma 18.99 10 1183.13\Sigma 37.89 976.20\Sigma 19.39 25 353.59\Sigma 7.34 871.90\Sigma 8.89 50 227.57\Sigma 1.44 945.70\Sigma 8.84 75 215.12\Sigma 2.04 1063.70\Sigma 10.84 100 226.24\Sigma 2.70 1208.40\Sigma 13.17 133 Data for the 80x80 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 1 14507.44\Sigma 4274.72 10189.00\Sigma 20573.18 5 3761.80\Sigma 112.68 1040.90\Sigma 32.15 10 1730.43\Sigma 101.99 1002.70\Sigma 33.97 25 500.15\Sigma 15.73 886.70\Sigma 11.14 50 286.30\Sigma 4.68 902.60\Sigma 15.29 75 268.82\Sigma 3.39 991.50\Sigma 15.15 100 306.26\Sigma 3.81 1148.80\Sigma 12.95 Data for the 80x80 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 1 19082.41\Sigma 3267.56 9234.12\Sigma 17009.38 5 8767.85\Sigma 826.19 1688.78\Sigma 1042.17 10 4463.65\Sigma 191.44 1040.00\Sigma 28.27 25 1591.66\Sigma 54.97 962.10\Sigma 20.97 50 676.25\Sigma 17.70 850.10\Sigma 15.84 75 552.10\Sigma 12.41 842.40\Sigma 16.29 100 775.66\Sigma 11.77 919.20\Sigma 13.47 Data for the 80x80 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 1 20488.96\Sigma 2210.28 1234.25\Sigma 547.16 5 14726.46\Sigma 1362.97 5139.62\Sigma 6270.45 10 9513.71\Sigma 502.22 1138.20\Sigma 90.69 25 4313.83\Sigma 258.70 1024.80\Sigma 38.95 50 1940.31\Sigma 78.75 895.50\Sigma 23.54 75 1397.10\Sigma 67.36 785.20\Sigma 24.58 100 2327.35\Sigma 59.63 648.80\Sigma 16.21 134 Data for the 100x100 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% 48149.62\Sigma 0.00 12249.00\Sigma 0.00 1 20189.94\Sigma 3756.88 1800.33\Sigma 1787.08 5 4087.40\Sigma 291.14 1760.70\Sigma 769.36 10 1707.41\Sigma 55.41 1179.50\Sigma 27.96 25 673.28\Sigma 18.50 1205.40\Sigma 26.94 50 435.33\Sigma 6.03 1350.40\Sigma 20.92 75 403.91\Sigma 5.90 1560.00\Sigma 22.40 100 418.03\Sigma 4.82 1800.80\Sigma 20.17 Data for the 100x100 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% 48149.62\Sigma 0.00 12249.00\Sigma 0.00 1 26004.84\Sigma 1764.05 2099.75\Sigma 737.11 5 6695.81\Sigma 1222.88 4942.20\Sigma 4865.28 10 2551.22\Sigma 192.02 1617.10\Sigma 923.52 25 886.27\Sigma 22.05 1171.30\Sigma 24.01 50 547.49\Sigma 10.37 1276.00\Sigma 31.36 75 512.36\Sigma 5.56 1469.30\Sigma 16.32 100 561.52\Sigma 8.19 1708.70\Sigma 26.68 Data for the 100x100 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% 48149.62\Sigma 0.00 12249.00\Sigma 0.00 1 39029.33\Sigma 8414.32 6776.25\Sigma 10177.94 5 16146.92\Sigma 2007.90 6230.44\Sigma 6357.57 10 9944.00\Sigma 6165.42 12958.40\Sigma 24811.71 25 2364.61\Sigma 68.04 1190.90\Sigma 23.82 50 1166.40\Sigma 32.29 1151.20\Sigma 25.48 75 1008.27\Sigma 30.77 1205.30\Sigma 40.87 100 1418.29\Sigma 25.43 1429.50\Sigma 25.68 135 Data for the 100x100 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% 48149.62\Sigma 0.00 12249.00\Sigma 0.00 1 44157.03\Sigma 52217.52 1401.50\Sigma 2484.02 5 30194.11\Sigma 5663.58 11709.43\Sigma 20711.99 10 18354.77\Sigma 4616.79 7226.20\Sigma 14678.62 25 7890.90\Sigma 2067.81 5939.33\Sigma 6402.69 50 3241.33\Sigma 133.06 1319.20\Sigma 213.68 75 2388.50\Sigma 39.10 1184.80\Sigma 25.90 100 4235.08\Sigma 122.08 1170.00\Sigma 33.40 Data for the 150x150 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 19033.84\Sigma 1556.04 5109.90\Sigma 3464.25 10 8939.48\Sigma 312.09 3562.70\Sigma 133.60 25 3458.85\Sigma 84.33 3521.20\Sigma 84.70 50 2330.96\Sigma 59.83 4360.80\Sigma 118.30 75 2296.07\Sigma 44.01 5655.10\Sigma 117.14 100 2999.11\Sigma 48.83 8450.50\Sigma 138.59 Data for the 150x150 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 25797.91\Sigma 1099.58 4052.30\Sigma 869.29 10 12949.05\Sigma 430.01 3741.40\Sigma 180.41 25 4710.78\Sigma 135.42 3492.40\Sigma 132.44 50 2991.54\Sigma 27.99 4097.80\Sigma 55.79 75 2912.98\Sigma 44.86 5170.90\Sigma 87.12 100 4202.90\Sigma 43.35 8195.10\Sigma 83.87 136 Data for the 150x150 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 35674.99\Sigma 1467.21 5501.30\Sigma 2972.19 25 14506.60\Sigma 503.64 3781.70\Sigma 286.99 50 7409.63\Sigma 143.39 3574.50\Sigma 92.58 75 6301.79\Sigma 130.05 3912.40\Sigma 93.94 100 12487.38\Sigma 120.60 6836.60\Sigma 64.29 Data for the 150x150 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 48260.11\Sigma 1468.44 3717.71\Sigma 801.09 50 31065.47\Sigma 2485.20 5193.80\Sigma 3465.62 75 22945.59\Sigma 487.62 3383.30\Sigma 154.34 100 39774.92\Sigma 764.25 2844.50\Sigma 57.41 Data for the 200x200 deterministic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 40573.33\Sigma 1596.30 5518.00\Sigma 452.31 10 19329.77\Sigma 673.02 5227.70\Sigma 202.69 25 6829.20\Sigma 119.30 4994.30\Sigma 80.70 50 3706.94\Sigma 51.49 5141.70\Sigma 78.03 75 3334.47\Sigma 56.42 6091.40\Sigma 107.89 100 4126.08\Sigma 31.89 8685.80\Sigma 66.24 137 Data for the 200x200 deterministic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 28172.10\Sigma 1030.40 5584.90\Sigma 349.11 25 9648.49\Sigma 265.87 4994.00\Sigma 168.82 50 4983.84\Sigma 60.94 5012.00\Sigma 74.50 75 4451.67\Sigma 36.15 5870.30\Sigma 56.61 100 6188.33\Sigma 61.42 9044.20\Sigma 87.95 Data for the 200x200 deterministic maze with the 50% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 30668.63\Sigma 1000.80 5367.56\Sigma 256.65 50 13979.77\Sigma 532.59 4848.90\Sigma 202.31 75 10473.81\Sigma 215.33 4907.10\Sigma 105.08 100 19938.72\Sigma 251.05 8426.80\Sigma 106.50 Data for the 200x200 deterministic maze with the 60% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 did not complete 50 did not complete 75 36921.41\Sigma 1965.57 4090.10\Sigma 208.18 100 did not complete 138 Data for the 20x20 stochastic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 8492.60\Sigma 9317.23 142470.00\Sigma 155592.98 25 142.61\Sigma 79.89 2265.70\Sigma 1366.98 50 20.85\Sigma 14.30 297.40\Sigma 242.39 75 10.86\Sigma 0.45 164.50\Sigma 6.79 100 8.95\Sigma 0.34 150.40\Sigma 5.65 Data for the 20x20 stochastic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 849.64\Sigma 0.00 14026.00\Sigma 0.00 25 344.88\Sigma 233.25 5263.50\Sigma 3688.45 50 89.91\Sigma 49.80 1269.90\Sigma 745.93 75 14.18\Sigma 0.98 172.30\Sigma 11.58 100 12.40\Sigma 0.54 157.40\Sigma 6.43 Data for the 40x40 stochastic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 31074.17\Sigma 41695.51 270149.67\Sigma 364706.94 25 3440.30\Sigma 2081.90 28964.60\Sigma 17822.12 50 82.54\Sigma 2.16 535.90\Sigma 17.36 75 72.70\Sigma 1.71 548.50\Sigma 13.01 100 66.09\Sigma 2.65 536.30\Sigma 21.77 139 Data for the 40x40 stochastic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 16911.45\Sigma 10161.31 141762.00\Sigma 87252.10 25 21228.99\Sigma 16430.12 170301.62\Sigma 132418.49 50 100.98\Sigma 5.46 534.40\Sigma 37.64 75 91.94\Sigma 2.89 547.70\Sigma 18.53 100 95.89\Sigma 2.98 579.40\Sigma 18.14 Data for the 60x60 stochastic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 did not complete 50 261.78\Sigma 12.67 1129.40\Sigma 66.24 75 219.67\Sigma 3.51 1097.10\Sigma 17.76 100 188.30\Sigma 2.51 1015.00\Sigma 12.84 Data for the 60x60 stochastic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 did not complete 50 354.81\Sigma 35.75 1302.67\Sigma 153.59 75 308.33\Sigma 17.04 1223.60\Sigma 74.99 100 269.45\Sigma 2.97 1091.10\Sigma 12.02 140 Data for the 80x80 stochastic maze with the 10% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 925.39\Sigma 509.51 2426.67\Sigma 1989.61 50 408.81\Sigma 3.65 1253.20\Sigma 13.55 75 356.89\Sigma 3.89 1269.30\Sigma 15.15 100 334.82\Sigma 3.08 1275.30\Sigma 12.20 Data for the 80x80 stochastic maze with the 25% error rate Asking Rate Actions Trials 0% did not complete 1 did not complete 5 did not complete 10 did not complete 25 did not complete 50 516.27\Sigma 12.20 1284.60\Sigma 40.23 75 466.86\Sigma 14.48 1305.87\Sigma 44.55 100 512.50\Sigma 31.37 1449.37\Sigma 87.79 141 The following tables give the data for the race track task. The information provided here represents the results of the experiment described in Section 5.4, which starts on page 97. The first column shows the Asking Rate, as a percentage. The column labeled "Actions" shows the mean and 95% confidence interval for the number of actions necessary to achieve the stopping criterion. Data for the First Track Asking Rate Actions Trials 0% 65.21\Sigma 8.95 4861.60\Sigma 594.54 1 63.09\Sigma 11.33 4656.15\Sigma 717.59 5 59.82\Sigma 11.30 4421.20\Sigma 746.12 10 54.72\Sigma 9.61 4078.90\Sigma 645.03 20 38.50\Sigma 8.39 2912.20\Sigma 614.66 30 25.48\Sigma 7.04 1894.40\Sigma 503.85 40 15.71\Sigma 2.74 1126.25\Sigma 195.48 50 13.47\Sigma 2.06 902.75\Sigma 140.38 60 10.29\Sigma 1.39 625.00\Sigma 84.19 70 6.76\Sigma 1.39 362.75\Sigma 75.87 80 8.15\Sigma 2.43 376.95\Sigma 111.98 85 27.65\Sigma 10.87 1176.55\Sigma 460.24 90 108.82\Sigma 49.23 4448.05\Sigma 961.05 95 428.47\Sigma 0.00 15255.57\Sigma 0.00 Data for the Second Track Asking Rate Actions Trials 0% 338.35\Sigma 83.61 15495.35\Sigma 3108.14 1 277.59\Sigma 51.81 13232.70\Sigma 1920.43 5 236.12\Sigma 50.99 11759.55\Sigma 1955.59 10 177.56\Sigma 29.62 9585.90\Sigma 1167.43 20 117.86\Sigma 11.45 7206.65\Sigma 483.29 30 106.42\Sigma 11.87 6614.45\Sigma 551.24 40 78.06\Sigma 13.82 4976.65\Sigma 761.76 50 54.27\Sigma 8.42 3439.75\Sigma 496.13 60 25.50\Sigma 3.90 1491.95\Sigma 229.29 70 16.57\Sigma 2.65 821.90\Sigma 131.32 80 17.17\Sigma 3.52 655.65\Sigma 133.41 85 44.49\Sigma 12.58 1433.80\Sigma 398.59 90 123.69\Sigma 31.49 3320.11\Sigma 843.55 95 did not complete 142 The following tables give the data for the maze experiment with the uncertainty asking strategy, which is discussed in Section 5.5 starting on page 102. In all of the tables, the column labeled "Actions" shows the mean and 95% confidence interval for the number of actions needed to achieve the stopping criterion, in 1,000's. "Trials" shows the mean and confidence interval for the number of trials performed. Data for the 20x20 deterministic maze with the 0% error rate Asking Factor Actions Trials Q 135.81\Sigma 38.34 608.78\Sigma 730.64 0.0 9.47\Sigma 0.57 179.60\Sigma 8.42 0.0001 5.86\Sigma 0.21 158.20\Sigma 5.69 0.001 6.13\Sigma 0.21 165.80\Sigma 5.71 0.01 6.46\Sigma 0.10 175.30\Sigma 2.70 0.1 6.80\Sigma 0.26 185.40\Sigma 7.20 0.25 6.72\Sigma 0.17 183.70\Sigma 4.54 0.50 6.66\Sigma 0.22 182.70\Sigma 5.90 0.75 6.65\Sigma 0.28 182.80\Sigma 7.64 1.0 6.61\Sigma 0.16 183.50\Sigma 4.45 Data for the 20x20 deterministic maze with the 10% error rate Asking Factor Actions Trials Q 135.81\Sigma 38.34 608.78\Sigma 730.64 0.0 16.53\Sigma 16.62 338.20\Sigma 389.66 0.0001 6.51\Sigma 0.18 160.70\Sigma 4.25 0.001 6.92\Sigma 0.18 169.90\Sigma 4.69 0.01 7.14\Sigma 0.19 173.90\Sigma 4.69 0.1 7.32\Sigma 0.28 176.60\Sigma 6.76 0.25 7.53\Sigma 0.38 180.70\Sigma 9.20 0.50 7.62\Sigma 0.28 182.50\Sigma 6.93 0.75 7.21\Sigma 0.33 171.50\Sigma 7.70 1.0 7.67\Sigma 0.15 179.00\Sigma 3.60 143 Data for the 20x20 deterministic maze with the 25% error rate Asking Factor Actions Trials Q 135.81\Sigma 38.34 608.78\Sigma 730.64 0.0 9.38\Sigma 0.57 150.80\Sigma 9.25 0.0001 7.85\Sigma 0.29 159.20\Sigma 5.20 0.001 8.56\Sigma 0.24 169.00\Sigma 5.67 0.01 8.42\Sigma 0.28 163.30\Sigma 5.09 0.1 9.05\Sigma 0.14 168.70\Sigma 2.52 0.25 9.10\Sigma 0.40 168.00\Sigma 6.73 0.50 9.49\Sigma 0.21 169.50\Sigma 4.78 0.75 9.73\Sigma 0.37 170.10\Sigma 6.83 1.0 10.17\Sigma 0.32 169.40\Sigma 4.12 Data for the 20x20 deterministic maze with the 50% error rate Asking Factor Actions Trials Q 135.81\Sigma 38.34 608.78\Sigma 730.64 0.0 13.31\Sigma 0.71 139.20\Sigma 5.72 0.0001 17.82\Sigma 1.06 160.20\Sigma 6.50 0.001 18.15\Sigma 0.73 152.60\Sigma 6.70 0.01 19.07\Sigma 0.84 150.40\Sigma 7.30 0.1 18.73\Sigma 0.86 134.90\Sigma 8.60 0.25 19.14\Sigma 1.01 133.50\Sigma 8.47 0.50 20.72\Sigma 1.41 135.70\Sigma 10.74 0.75 20.97\Sigma 0.83 132.10\Sigma 5.28 1.0 22.23\Sigma 1.51 135.30\Sigma 8.56 Data for the 40x40 deterministic maze with the 0% error rate Asking Factor Actions Trials Q 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 0.0 30.72\Sigma 2.23 260.50\Sigma 17.06 0.0001 23.19\Sigma 0.91 305.20\Sigma 11.83 0.001 24.61\Sigma 0.94 324.40\Sigma 12.26 0.01 28.42\Sigma 1.26 375.10\Sigma 16.26 0.1 27.36\Sigma 1.04 363.00\Sigma 13.76 0.25 29.94\Sigma 1.34 397.80\Sigma 17.53 0.50 29.08\Sigma 1.51 387.90\Sigma 19.73 0.75 29.00\Sigma 1.51 388.70\Sigma 20.18 1.0 30.81\Sigma 1.87 416.30\Sigma 25.31 144 Data for the 40x40 deterministic maze with the 10% error rate Asking Factor Actions Trials Q 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 0.0 31.50\Sigma 2.33 264.10\Sigma 17.79 0.0001 26.77\Sigma 1.12 317.50\Sigma 14.05 0.001 29.59\Sigma 0.99 348.40\Sigma 12.16 0.01 30.67\Sigma 1.13 360.20\Sigma 13.82 0.1 32.54\Sigma 1.64 378.50\Sigma 19.60 0.25 32.71\Sigma 0.54 378.50\Sigma 7.11 0.50 33.24\Sigma 1.37 382.10\Sigma 16.29 0.75 34.47\Sigma 1.73 391.90\Sigma 19.99 1.0 34.09\Sigma 1.98 383.30\Sigma 22.09 Data for the 40x40 deterministic maze with the 25% error rate Asking Factor Actions Trials Q 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 0.0 35.19\Sigma 2.20 272.80\Sigma 19.44 0.0001 35.94\Sigma 0.90 335.10\Sigma 9.20 0.001 36.65\Sigma 1.03 335.80\Sigma 11.56 0.01 39.52\Sigma 1.22 354.90\Sigma 11.77 0.1 42.40\Sigma 1.48 369.20\Sigma 13.98 0.25 42.38\Sigma 1.61 362.40\Sigma 14.30 0.50 44.03\Sigma 2.76 363.00\Sigma 23.98 0.75 44.92\Sigma 1.76 361.80\Sigma 14.09 1.0 47.13\Sigma 1.98 368.40\Sigma 15.87 Data for the 40x40 deterministic maze with the 50% error rate Asking Factor Actions Trials Q 1800.69\Sigma 561.96 3667.56\Sigma 7206.77 0.0 150.32\Sigma 208.68 1348.60\Sigma 2428.76 0.0001 105.69\Sigma 5.32 347.80\Sigma 21.76 0.001 110.09\Sigma 5.29 343.70\Sigma 19.30 0.01 111.12\Sigma 3.97 326.80\Sigma 14.48 0.1 119.71\Sigma 6.52 326.30\Sigma 17.71 0.25 119.89\Sigma 4.43 315.80\Sigma 15.04 0.50 126.71\Sigma 5.96 313.90\Sigma 14.80 0.75 126.55\Sigma 5.05 302.40\Sigma 12.24 1.0 133.60\Sigma 5.76 310.90\Sigma 13.43 145 Data for the 60x60 deterministic maze with the 0% error rate Asking Factor Actions Trials Q 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 0.0 149.49\Sigma 25.92 820.60\Sigma 182.67 0.0001 103.33\Sigma 2.48 879.90\Sigma 21.17 0.001 112.44\Sigma 1.71 957.80\Sigma 14.69 0.01 129.20\Sigma 2.83 1101.40\Sigma 23.87 0.1 151.36\Sigma 3.29 1293.70\Sigma 28.20 0.25 155.31\Sigma 1.99 1332.70\Sigma 17.17 0.50 154.81\Sigma 1.92 1337.80\Sigma 16.66 0.75 153.63\Sigma 2.25 1340.70\Sigma 19.58 1.0 152.45\Sigma 1.84 1337.30\Sigma 16.12 Data for the 60x60 deterministic maze with the 10% error rate Asking Factor Actions Trials Q 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 0.0 252.18\Sigma 256.94 1625.50\Sigma 1921.70 0.0001 114.61\Sigma 2.22 883.10\Sigma 16.58 0.001 126.81\Sigma 2.18 975.60\Sigma 16.75 0.01 143.28\Sigma 1.41 1100.80\Sigma 10.61 0.1 170.98\Sigma 3.01 1304.50\Sigma 23.32 0.25 172.98\Sigma 3.38 1308.30\Sigma 25.48 0.50 178.77\Sigma 1.78 1330.60\Sigma 13.17 0.75 180.03\Sigma 2.82 1313.70\Sigma 20.09 1.0 181.04\Sigma 2.00 1312.40\Sigma 14.67 Data for the 60x60 deterministic maze with the 25% error rate Asking Factor Actions Trials Q 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 0.0 243.81\Sigma 272.08 1542.50\Sigma 2078.83 0.0001 147.47\Sigma 2.25 910.50\Sigma 15.04 0.001 163.77\Sigma 2.65 1004.40\Sigma 16.23 0.01 184.25\Sigma 2.75 1120.00\Sigma 17.60 0.1 213.41\Sigma 3.98 1259.50\Sigma 23.85 0.25 219.60\Sigma 4.97 1252.90\Sigma 31.34 0.50 239.67\Sigma 3.94 1285.70\Sigma 20.69 0.75 252.22\Sigma 3.77 1278.20\Sigma 21.01 1.0 252.41\Sigma 3.52 1265.10\Sigma 17.14 146 Data for the 60x60 deterministic maze with the 50% error rate Asking Factor Actions Trials Q 5963.28\Sigma 1525.81 7104.30\Sigma 9407.78 0.0 236.35\Sigma 8.25 657.30\Sigma 33.35 0.0001 468.16\Sigma 11.01 1042.20\Sigma 19.75 0.001 509.37\Sigma 15.99 1057.70\Sigma 34.50 0.01 533.27\Sigma 11.97 1024.70\Sigma 30.71 0.1 546.00\Sigma 7.42 981.30\Sigma 20.16 0.25 550.86\Sigma 13.97 950.20\Sigma 23.14 0.50 625.07\Sigma 18.27 941.50\Sigma 25.28 0.75 654.48\Sigma 13.17 931.40\Sigma 18.74 1.0 653.04\Sigma 13.55 917.70\Sigma 17.23 Data for the 80x80 deterministic maze with the 0% error rate Asking Factor Actions Trials Q 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 0.0 182.39\Sigma 3.15 767.40\Sigma 9.62 0.0001 150.46\Sigma 1.44 934.50\Sigma 8.68 0.001 161.15\Sigma 1.40 1001.10\Sigma 8.54 0.01 173.56\Sigma 2.59 1079.40\Sigma 16.07 0.1 190.54\Sigma 1.76 1188.60\Sigma 10.86 0.25 195.62\Sigma 2.52 1226.90\Sigma 15.82 0.50 195.59\Sigma 1.39 1239.70\Sigma 8.76 0.75 196.13\Sigma 3.27 1252.90\Sigma 20.98 1.0 194.81\Sigma 1.35 1248.80\Sigma 8.64 Data for the 80x80 deterministic maze with the 10% error rate Asking Factor Actions Trials Q 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 0.0 185.91\Sigma 2.60 766.10\Sigma 7.31 0.0001 165.81\Sigma 1.98 942.50\Sigma 11.08 0.001 175.45\Sigma 1.82 994.80\Sigma 10.13 0.01 190.17\Sigma 1.28 1076.60\Sigma 7.27 0.1 208.23\Sigma 1.70 1171.20\Sigma 10.36 0.25 215.81\Sigma 4.24 1200.70\Sigma 23.62 0.50 225.12\Sigma 2.97 1221.90\Sigma 15.45 0.75 227.71\Sigma 2.59 1222.40\Sigma 13.79 1.0 228.41\Sigma 2.28 1219.30\Sigma 12.04 147 Data for the 80x80 deterministic maze with the 25% error rate Asking Factor Actions Trials Q 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 0.0 199.80\Sigma 3.81 768.60\Sigma 12.47 0.0001 204.30\Sigma 2.60 953.40\Sigma 12.87 0.001 220.80\Sigma 2.56 1024.80\Sigma 12.14 0.01 234.72\Sigma 2.12 1076.60\Sigma 11.82 0.1 256.88\Sigma 3.61 1145.70\Sigma 17.41 0.25 272.15\Sigma 2.32 1155.40\Sigma 9.16 0.50 296.19\Sigma 3.96 1157.20\Sigma 13.34 0.75 304.31\Sigma 4.17 1154.60\Sigma 15.41 1.0 305.52\Sigma 3.16 1145.60\Sigma 12.80 Data for the 80x80 deterministic maze with the 50% error rate Asking Factor Actions Trials Q 29745.13\Sigma 9581.29 47278.86\Sigma 46996.19 0.0 318.49\Sigma 7.17 784.20\Sigma 12.26 0.0001 537.42\Sigma 8.08 1029.30\Sigma 16.24 0.001 568.81\Sigma 4.43 1025.30\Sigma 12.17 0.01 596.69\Sigma 8.51 996.90\Sigma 11.13 0.1 619.15\Sigma 9.90 958.80\Sigma 15.24 0.25 685.62\Sigma 6.32 937.00\Sigma 9.09 0.50 740.37\Sigma 13.37 937.80\Sigma 15.64 0.75 788.68\Sigma 14.43 939.10\Sigma 16.59 1.0 785.61\Sigma 11.57 927.50\Sigma 13.41 Data for the 100x100 deterministic maze with the 0% error rate Asking Factor Actions Trials Q 48149.62\Sigma 0.00y 12249.00\Sigma 0.00 0.0 436.10\Sigma 13.24 1365.30\Sigma 37.13 0.0001 256.96\Sigma 3.53 1290.90\Sigma 17.89 0.001 275.42\Sigma 3.04 1384.40\Sigma 15.60 0.01 301.15\Sigma 2.11 1515.10\Sigma 10.71 0.1 344.28\Sigma 4.84 1738.70\Sigma 24.51 0.25 355.78\Sigma 4.26 1806.30\Sigma 21.74 0.50 363.70\Sigma 2.43 1859.50\Sigma 12.18 0.75 359.01\Sigma 2.94 1845.10\Sigma 15.13 1.0 363.13\Sigma 3.87 1871.80\Sigma 19.95 y Based on only 1 run. 148 Data for the 100x100 deterministic maze with the 10% error rate Asking Factor Actions Trials Q 48149.62\Sigma 0.00y 12249.00\Sigma 0.00 0.0 405.49\Sigma 11.47 1253.10\Sigma 32.98 0.0001 284.70\Sigma 3.87 1294.00\Sigma 17.31 0.001 304.67\Sigma 3.85 1381.60\Sigma 16.79 0.01 337.60\Sigma 3.89 1526.90\Sigma 17.94 0.1 377.43\Sigma 6.60 1693.90\Sigma 29.06 0.25 397.87\Sigma 5.64 1763.60\Sigma 25.41 0.50 414.46\Sigma 4.37 1810.30\Sigma 18.20 0.75 413.49\Sigma 3.92 1788.00\Sigma 16.89 1.0 420.55\Sigma 5.12 1810.90\Sigma 22.25 y Based on only 1 run. Data for the 100x100 deterministic maze with the 25% error rate Asking Factor Actions Trials Q 48149.62\Sigma 0.00y 12249.00\Sigma 0.00 0.0 396.12\Sigma 10.41 1150.80\Sigma 29.55 0.0001 356.27\Sigma 4.94 1303.90\Sigma 18.43 0.001 393.44\Sigma 4.29 1427.90\Sigma 13.86 0.01 424.52\Sigma 9.79 1521.60\Sigma 33.91 0.1 478.23\Sigma 8.11 1662.10\Sigma 27.43 0.25 517.39\Sigma 8.14 1714.10\Sigma 25.02 0.50 543.69\Sigma 6.22 1709.20\Sigma 19.41 0.75 560.47\Sigma 8.24 1717.50\Sigma 25.44 1.0 564.97\Sigma 7.46 1721.50\Sigma 22.99 y Based on only 1 run. 149 Data for the 100x100 deterministic maze with the 50% error rate Asking Factor Actions Trials Q 48149.62\Sigma 0.00y 12249.00\Sigma 0.00 0.0 603.70\Sigma 32.54 1161.50\Sigma 106.48 0.0001 1010.04\Sigma 16.05 1524.40\Sigma 19.18 0.001 1069.49\Sigma 9.04 1544.90\Sigma 13.59 0.01 1128.70\Sigma 16.23 1540.30\Sigma 25.20 0.1 1191.48\Sigma 19.81 1478.80\Sigma 25.25 0.25 1298.91\Sigma 23.36 1488.00\Sigma 26.48 0.50 1395.86\Sigma 17.32 1457.60\Sigma 20.38 0.75 1427.42\Sigma 25.09 1443.70\Sigma 26.94 1.0 1423.10\Sigma 22.01 1431.00\Sigma 21.70 y Based on only 1 run. Data for the 150x150 deterministic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0 1142.20\Sigma 32.19 3080.70\Sigma 64.23 0.0001 1400.86\Sigma 14.46 4649.40\Sigma 47.32 0.001 1547.51\Sigma 37.83 5137.40\Sigma 124.25 0.01 1856.40\Sigma 29.30 6166.00\Sigma 96.81 0.1 2313.91\Sigma 25.93 7766.00\Sigma 87.25 0.25 2479.89\Sigma 29.88 8366.20\Sigma 101.11 0.50 2536.74\Sigma 27.04 8600.30\Sigma 91.89 0.75 2556.54\Sigma 20.46 8689.30\Sigma 69.51 1.0 2550.77\Sigma 22.91 8676.10\Sigma 77.94 Data for the 150x150 deterministic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0 1171.43\Sigma 40.16 2931.80\Sigma 89.45 0.0001 1589.75\Sigma 25.09 4720.00\Sigma 74.35 0.001 1780.46\Sigma 18.01 5281.60\Sigma 54.13 0.01 2141.62\Sigma 28.50 6347.80\Sigma 85.60 0.1 2680.86\Sigma 28.37 7763.90\Sigma 80.38 0.25 2908.75\Sigma 29.40 8334.80\Sigma 82.72 0.50 2991.54\Sigma 51.43 8478.40\Sigma 145.65 0.75 3000.70\Sigma 52.07 8463.40\Sigma 146.63 1.0 3036.09\Sigma 41.86 8554.50\Sigma 117.25 150 Data for the 150x150 deterministic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0 1255.82\Sigma 28.21 2697.20\Sigma 50.61 0.0001 2130.41\Sigma 28.94 4973.80\Sigma 69.38 0.001 2396.96\Sigma 28.63 5570.80\Sigma 72.24 0.01 2827.10\Sigma 42.42 6544.30\Sigma 104.86 0.1 3702.85\Sigma 43.07 7884.20\Sigma 88.00 0.25 3978.96\Sigma 42.51 8147.50\Sigma 85.41 0.50 4144.22\Sigma 43.79 8195.80\Sigma 85.77 0.75 4213.37\Sigma 33.44 8224.60\Sigma 63.37 1.0 4251.70\Sigma 30.78 8286.90\Sigma 58.69 Data for the 150x150 deterministic maze with the 50% error rate Asking Factor Actions Trials Q did not complete 0.0 3204.69\Sigma 111.11 2942.30\Sigma 98.29 0.0001 7593.36\Sigma 114.88 6527.90\Sigma 86.41 0.001 8585.01\Sigma 116.72 7218.90\Sigma 122.98 0.01 9480.76\Sigma 125.60 7445.90\Sigma 103.22 0.1 10989.60\Sigma 233.30 7140.60\Sigma 127.07 0.25 11835.37\Sigma 209.02 6994.10\Sigma 106.86 0.50 12542.31\Sigma 157.49 6912.60\Sigma 91.21 0.75 12435.71\Sigma 197.32 6817.70\Sigma 108.17 1.0 12372.58\Sigma 214.14 6777.80\Sigma 113.98 Data for the 200x200 deterministic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0 2179.25\Sigma 92.51 4179.90\Sigma 110.58 0.0001 1993.73\Sigma 25.53 4919.90\Sigma 62.66 0.001 2240.13\Sigma 26.55 5530.10\Sigma 65.80 0.01 2595.23\Sigma 19.11 6426.30\Sigma 47.18 0.1 3135.14\Sigma 26.79 7885.40\Sigma 67.18 0.25 3281.78\Sigma 33.19 8288.40\Sigma 83.92 0.50 3354.74\Sigma 35.92 8501.90\Sigma 91.12 0.75 3367.88\Sigma 35.63 8544.00\Sigma 90.46 1.0 3369.88\Sigma 41.09 8553.00\Sigma 104.29 151 Data for the 200x200 deterministic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0 1944.05\Sigma 45.46 3579.20\Sigma 66.27 0.0001 2330.18\Sigma 29.92 5197.80\Sigma 68.67 0.001 2584.68\Sigma 33.69 5761.20\Sigma 75.74 0.01 3041.19\Sigma 54.00 6729.80\Sigma 119.30 0.1 3800.14\Sigma 31.97 8125.00\Sigma 71.39 0.25 3975.71\Sigma 29.06 8445.50\Sigma 57.68 0.50 4083.79\Sigma 33.72 8621.70\Sigma 71.19 0.75 4111.50\Sigma 64.52 8662.40\Sigma 135.14 1.0 4097.56\Sigma 39.09 8626.70\Sigma 80.60 Data for the 200x200 deterministic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0 2166.07\Sigma 30.57 3457.80\Sigma 42.41 0.0001 3288.21\Sigma 26.71 5853.70\Sigma 49.11 0.001 3634.26\Sigma 66.26 6460.70\Sigma 122.69 0.01 4371.37\Sigma 85.37 7550.80\Sigma 140.79 0.1 5683.19\Sigma 62.99 8809.10\Sigma 94.40 0.25 6040.23\Sigma 71.81 9079.40\Sigma 104.75 0.50 6151.86\Sigma 36.77 9060.60\Sigma 55.65 0.75 6224.40\Sigma 57.54 9107.90\Sigma 84.05 1.0 6257.83\Sigma 51.01 9147.00\Sigma 77.71 Data for the 200x200 deterministic maze with the 50% error rate Asking Factor Actions Trials Q did not complete 0.0 5402.69\Sigma 202.59 3801.50\Sigma 153.63 0.0001 12390.86\Sigma 214.79 8263.50\Sigma 169.61 0.001 13458.94\Sigma 183.89 8656.70\Sigma 103.78 0.01 14952.04\Sigma 209.95 8895.10\Sigma 135.09 0.1 18507.13\Sigma 396.92 8730.00\Sigma 181.04 0.25 19556.09\Sigma 235.42 8573.60\Sigma 99.48 0.50 20035.41\Sigma 328.14 8512.70\Sigma 136.60 0.75 20134.04\Sigma 318.32 8510.60\Sigma 137.57 1.0 19853.75\Sigma 339.89 8396.60\Sigma 141.15 152 Data for the 20x20 stochastic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0001 7.70\Sigma 0.29 144.40\Sigma 5.05 0.001 7.89\Sigma 0.45 149.80\Sigma 7.83 0.01 8.12\Sigma 0.35 153.20\Sigma 4.43 0.1 7.58\Sigma 0.24 145.00\Sigma 4.99 0.25 7.67\Sigma 0.18 147.80\Sigma 3.63 0.50 7.68\Sigma 0.34 147.90\Sigma 6.43 0.75 7.91\Sigma 0.34 151.80\Sigma 6.88 1.0 7.67\Sigma 0.25 149.00\Sigma 5.26 Data for the 20x20 stochastic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0001 10.07\Sigma 2.11 174.20\Sigma 36.79 0.001 8.85\Sigma 0.33 152.80\Sigma 4.68 0.01 8.68\Sigma 0.37 150.20\Sigma 6.55 0.1 8.89\Sigma 0.25 152.00\Sigma 4.96 0.25 8.91\Sigma 0.30 151.10\Sigma 5.29 0.50 8.89\Sigma 0.36 151.10\Sigma 5.84 0.75 8.95\Sigma 0.34 151.20\Sigma 5.70 1.0 8.86\Sigma 0.38 148.60\Sigma 6.16 Data for the 20x20 stochastic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0001 26.74\Sigma 28.07 431.20\Sigma 506.68 0.001 11.65\Sigma 0.61 164.10\Sigma 5.82 0.01 11.51\Sigma 0.75 163.10\Sigma 11.17 0.1 11.61\Sigma 0.51 158.80\Sigma 7.52 0.25 11.68\Sigma 0.25 159.30\Sigma 2.92 0.50 11.56\Sigma 0.38 153.90\Sigma 5.06 0.75 12.01\Sigma 0.48 154.30\Sigma 6.39 1.0 12.13\Sigma 0.48 151.80\Sigma 6.26 153 Data for the 40x40 stochastic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0001 58.92\Sigma 1.65 542.60\Sigma 14.88 0.001 58.13\Sigma 0.89 536.70\Sigma 6.74 0.01 57.08\Sigma 1.60 529.10\Sigma 15.37 0.1 56.43\Sigma 1.58 527.20\Sigma 15.02 0.25 56.70\Sigma 0.63 530.80\Sigma 5.89 0.50 56.27\Sigma 0.89 528.30\Sigma 7.79 0.75 57.23\Sigma 0.69 541.40\Sigma 7.56 1.0 56.36\Sigma 1.32 534.70\Sigma 12.14 Data for the 40x40 stochastic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0001 69.24\Sigma 2.62 584.60\Sigma 20.45 0.001 67.02\Sigma 2.15 563.40\Sigma 17.42 0.01 66.25\Sigma 2.73 556.60\Sigma 23.64 0.1 64.78\Sigma 2.59 541.60\Sigma 21.56 0.25 65.57\Sigma 1.33 544.60\Sigma 11.34 0.50 66.73\Sigma 1.74 549.40\Sigma 13.42 0.75 67.43\Sigma 1.85 550.30\Sigma 13.73 1.0 65.83\Sigma 1.81 535.20\Sigma 14.19 Data for the 40x40 stochastic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0001 90.12\Sigma 6.80 639.90\Sigma 50.76 0.001 90.11\Sigma 4.00 621.30\Sigma 25.51 0.01 88.27\Sigma 2.76 600.90\Sigma 21.42 0.1 88.14\Sigma 2.08 589.10\Sigma 13.62 0.25 86.19\Sigma 2.04 559.10\Sigma 13.34 0.50 90.42\Sigma 2.73 568.90\Sigma 17.39 0.75 97.74\Sigma 4.36 596.10\Sigma 25.33 1.0 95.66\Sigma 1.87 580.00\Sigma 11.35 154 Data for the 60x60 stochastic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0001 160.29\Sigma 1.87 977.20\Sigma 11.46 0.001 158.13\Sigma 3.04 966.60\Sigma 19.03 0.01 158.31\Sigma 1.89 973.20\Sigma 10.54 0.1 156.57\Sigma 2.66 967.00\Sigma 16.39 0.25 154.64\Sigma 1.35 958.00\Sigma 8.48 0.50 153.91\Sigma 1.51 959.10\Sigma 9.44 0.75 154.17\Sigma 2.22 966.40\Sigma 13.12 1.0 152.45\Sigma 2.35 957.00\Sigma 14.07 Data for the 60x60 stochastic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0001 209.58\Sigma 66.81 1168.80\Sigma 373.03 0.001 180.59\Sigma 3.60 1009.90\Sigma 19.89 0.01 181.05\Sigma 2.43 1009.20\Sigma 13.18 0.1 181.72\Sigma 2.98 1008.90\Sigma 17.03 0.25 185.29\Sigma 2.22 1017.90\Sigma 11.57 0.50 185.89\Sigma 2.33 1011.60\Sigma 12.96 0.75 187.50\Sigma 2.25 1013.10\Sigma 12.20 1.0 186.88\Sigma 2.85 1005.90\Sigma 15.40 Data for the 60x60 stochastic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0001 238.94\Sigma 14.25 1134.00\Sigma 69.63 0.001 239.67\Sigma 5.07 1117.90\Sigma 20.11 0.01 242.91\Sigma 3.88 1115.50\Sigma 16.53 0.1 246.24\Sigma 3.05 1096.60\Sigma 13.47 0.25 261.62\Sigma 3.32 1119.40\Sigma 17.26 0.50 267.19\Sigma 3.45 1108.20\Sigma 13.76 0.75 274.40\Sigma 4.61 1113.50\Sigma 19.05 1.0 274.61\Sigma 5.55 1110.70\Sigma 20.99 155 Data for the 80x80 stochastic maze with the 0% error rate Asking Factor Actions Trials Q did not complete 0.0001 287.93\Sigma 1.78 1247.00\Sigma 8.09 0.001 286.69\Sigma 2.28 1245.10\Sigma 8.93 0.01 288.39\Sigma 2.45 1257.10\Sigma 11.32 0.1 284.96\Sigma 3.53 1248.00\Sigma 15.29 0.25 286.06\Sigma 3.19 1261.00\Sigma 14.05 0.50 281.13\Sigma 2.88 1251.30\Sigma 12.85 0.75 280.60\Sigma 2.59 1252.30\Sigma 10.53 1.0 280.03\Sigma 3.58 1251.80\Sigma 16.21 Data for the 80x80 stochastic maze with the 10% error rate Asking Factor Actions Trials Q did not complete 0.0001 321.82\Sigma 3.02 1286.10\Sigma 12.89 0.001 322.13\Sigma 2.43 1285.70\Sigma 10.66 0.01 326.72\Sigma 3.61 1297.80\Sigma 14.57 0.1 324.17\Sigma 3.12 1278.00\Sigma 12.37 0.25 329.63\Sigma 3.25 1274.90\Sigma 11.91 0.50 331.56\Sigma 3.31 1270.00\Sigma 12.64 0.75 334.67\Sigma 2.89 1279.00\Sigma 11.35 1.0 337.39\Sigma 2.87 1285.80\Sigma 10.06 Data for the 80x80 stochastic maze with the 25% error rate Asking Factor Actions Trials Q did not complete 0.0001 400.95\Sigma 9.10 1364.70\Sigma 31.24 0.001 396.59\Sigma 5.74 1327.10\Sigma 18.67 0.01 399.43\Sigma 4.41 1307.80\Sigma 14.89 0.1 418.22\Sigma 4.61 1300.00\Sigma 12.78 0.25 445.06\Sigma 9.51 1306.10\Sigma 28.45 0.50 455.27\Sigma 6.98 1303.90\Sigma 20.27 0.75 487.31\Sigma 39.25 1380.62\Sigma 112.22 1.0 499.31\Sigma 38.35 1410.80\Sigma 106.96 156 BIBLIOGRAPHY Anderson, C. W. (1989). Learning to control an inverted pendulum using neural networks. IEEE Control Systems Magazine, 9, 31-37. Bareiss, R., & Porter, B. W. (1987). Protos: An exemplar-based learning apprentice. Proceedings of the Fourth International Workshop on Machine Learning (pp. 12- 23). Irvine, CA: Morgan Kaufmann. Barto, A. G., Sutton, R. S., & Anderson, C. W. (1983). Neuronlike adaptive elements that can solve difficult learning control problems. IEEE Transactions on Systems, Man and Cybernetics, 13, 835-846. Barto, A. G. (1990). Connectionist learning for control: An overview. In Miller, Sutton & Werbos (Eds.), Neural Networks for Control. Cambridge, MA: MIT Press. Barto, A. G., Bradtke, S. J., & Singh, S. P. (1995). Learning to act using real-time dynamic programming. Artificial Intelligence, 72, 81-138. Bellman, R. E. (1957). Dynamic programming. Princeton, N.J.: Princeton University Press. Berliner, H. J. (1984). Search vs knowledge: An analysis from the domain of games. In Elithorn & Banerji (Eds.), Artificial and Human Intelligence. New York: Elsevier Science Publishers. Clouse, J. A., & Utgoff, P. E. (1992). A teaching method for reinforcement learning. Machine Learning: Proceedings of the Ninth International Conference (pp. 92- 101). San Mateo, CA: Morgan Kaufmann. Clouse, J. A. (1995). Action set approach to reinforcement learning, (Technical Report 95-108), Amherst, MA: University of Massachusetts, Computer Science Department. Crites, R. H., & Barto, A. G. (1996). Improving elevator performance using reinforcement learning. Advances in Neural Information Processing Systems. Cambridge, MA: MIT Press. Dayan, P. D. (1992). The convergence of TD(*) for general *. Machine Learning, 8, 341-362. Dayan, P. D., & Sejnowski, T. J. (1994). TD(*) converges with probability 1. Machine Learning, 14, 295-301. 157 Dietterich, T. G., London, B., Clarkson, K., & Dromey, G. (1982). Learning and inductive inference. In Cohen & Feigenbaum (Eds.), The Handbook of Artificial Intelligence: Volume III. San Mateo, CA: Morgan Kaufmann. Fikes, R. E., Hart, P. E., & Nilsson, N. J. (1972). Learning and executing generalized robot plans. Artificial Intelligence, 3, 251-288. Gardner, M. (1973). Mathematical games. Scientific American, 228, 108. Ginsberg, M. (1993). Essentials of artificial intelligence. Morgan Kaufmann. Gordon, D., & Subramanian, D. (1994). A multistrategy learning scheme for agent knowledge acquisition. Informatica, 17, 331-346. Gullapalli, V. (1991). A comparison of supervised and reinforcement learning methods on a reinforcement learning task. Proceedings of the 1991 IEEE International Symposium on Intelligent Control (pp. 394-399). Arlington, VA. Gullapalli, V. (1992). Reinforcement learning and its application to control. Doctoral dissertation, Computer and Information Science, University of Massachusetts, Amherst, MA. Hampson, S. E., & Volper, D. J. (1986). Linear function neurons: Structure and training. Biological Cybernetics, 53, 203-217. Holland, J. H. (1986). Escaping brittleness: The possibilities of general-purpose learning algorithms applied to parallel rule-based systems. In Michalski, Carbonell & Mitchell (Eds.), Machine learning: An artificial intelligence approach. San Mateo, CA: Morgan Kaufmann. Jaakola, T., Jordan, M. I., & Singh, S. P. (1994). On the convergence of stochastic iterative dynamic programming algorithms. Neural Computation, 6, ??-?? Kaelbling, L. P., Littman, M. L., & Moore, A. W. (1996). Reinforcement learning: A survey. Journal of Artificial Intelligence Research, 4, 237-285. Korf, R. E. (1988). Search: A survey of recent results. In Howard Shrobe & American Association for Artificial Intelligence (Eds.), Exploring Artificial Intelligence. San Mateo: Morgan Kaufman. Lin, Long-Ji (1991). Programming robots using reinforcement learning and teaching. Proceedings of the Ninth National Conference on Artificial Intelligence (pp. 781- 786). Anaheim, CA: MIT Press. Lin, Long-Ji (1992). Self-improving reactive agents based on reinforcement learning, planning and teaching. Machine Learning, 8, 293-321. Lin, Long-Ji (1993). Scaling up reinforcement learning for robot control. Machine Learning: Proceedings of the Tenth International Conference (pp. 182-189). Amherst, MA: Morgan Kaufmann. 158 Luger, George F., & Stubblefield, William A. (1993). Artificial intelligence: Structures and strategies for complex problem solving. Benjamin/Cummings. Maclin, R., & Shavlik, J. W. (1994). Incorporating advice into agents that learn from reinforcements. Proceedings of the Twelfth National Conference on Artificial Intelligence (pp. 694-699). Seattle, WA: MIT Press. Maclin, R. F. (1995). Learning from instruction and experiense: Methods for incorporating procedural domain theories into knowledge-based neural networks. Doctoral dissertation, Computer Science Department, University of Wisconsin, Madison, WI. Maclin, R., & Shavlik, J. W. (1996). Creating advice-taking reinforcement learners. Machine Learning, 22, 251-282. Mahadevan, S., & Connell, J. (1992). Automatic programming of behavior-based robots using reinforcement learning. Artificial Intelligence, 55, 311-365. Minsky, M. (1963). Steps towards artificial intelligence. In Feigenbaum & Feldman (Eds.), Computers and thought. New York: McGraw-Hill. Mitchell, T. M., Mahadevan, S., & Steinberg, L. I. (1985). LEAP: A learning apprentice for VLSI design. Proceedings of the Ninth International Joint Conference on Artificial Intelligence (pp. 573-580). Los Angeles, CA: Morgan Kaufmann. Moore, A. W., & Atkeson, C. G. (1993). Prioritized sweeping: Reinforcement learning with less data and less time. Machine Learning, 103-130. Nilsson, N. J. (1965). Learning machines. New York: McGraw-Hill. Nilsson, N. J. (1969). Searching problem-solving and game-playing trees for minimal cost solutions. Information processing 68: Proceedings of the IFIP congress 1968 (pp. 1556-1562). Amsterdam: North-Holland Publishing Company. Pearl, J. (1984). Heuristics: Intelligent search strategies for computer problem solving. Reading, Ma: Addison-Wesley. Peng, J., & Williams, J. (1993). Efficient learning and planning within the Dyna framework. Adaptive Behaviour, 4, 323-334. Pomerleau, D. A. (1991). Rapidly adapting artificial neural networks for autonomous navigation. In Lippman, Moody & Touretzky (Eds.), Advances in Neural Information Processing Systems. San Mateo, CA: Morgan Kaufmann. Puterman, M. L. (1994). Markov decision processes : Discrete stochastic dynamic programming. New York: John Wiley & Sons. Quinlan, J. R. (1993). C4.5: Programs for machine learning. Morgan Kaufmann. Rich, E., & Knight, K. (1991). Artificial intelligence. McGraw-Hill. Rosenbloom, P. (1982). A world-championship-level Othello program. Artificial Intelligence, 19, 279-320. 159 Rumelhart, D. E., & McClelland, J. L. (1986). Parallel distributed processing. Cambridge, MA: MIT Press. Russell, S. J., & Norvig, P. (1995). Artificial intelligence: A modern approach. Englewood Cliffs, NJ: Prentice-Hall. Sammut, C, Hurst, S, Kedzier, D, & Michie, D (1992). Learning to fly. Machine Learning: Proceedings of the Ninth International Conference (pp. 385-393). San Mateo, CA: Morgan Kaufmann. Samuel, A. (1963). Some studies in machine learning using the game of Checkers. In Feigenbaum & Feldman (Eds.), Computers and Thought. New York: McGrawHill. Samuel, A. (1967). Some studies in machine learning using the game of Checkers II: Recent progress. IBM Journal of Research and Development, 11, 601-617. Schwartz, A. (1993). A reinforcement learning method for maximizing undiscounted rewards. Machine Learning: Proceedings of the Tenth International Conference (pp. 298-305). Amherst, MA: Morgan Kaufmann. Singh, S. P. (1992). Transfer of learning by composing solutions of elemental sequential tasks. Machine Learning, 8, 323-339. Singh, S. P. (1994). Learning to solve Markovian decision processes. Doctoral dissertation, Department of Computer Science, University of Massachusetts, Amherst, MA. Skinner, B.F. (1938). The behavior of organisms: An experimental analysis. New York: D. Appleton Century. Slagle, J.R., & Dixon, J.K. (1969). Experiments with some programs that search game trees. J. ACM, 16, 189-207. Sutton, R. S. (1988). Learning to predict by the method of temporal differences. Machine Learning, 3, 9-44. Sutton, R. S. (1990). Integrated architectures for learning, planning and reacting based on approximating dynamic programming. Proceedings of the Seventh International Conference on Machine Learning (pp. 216-224). Austin, TX: Morgan Kaufmann. Sutton, R. S. (1991). Planning by incremental dynamic programming. Machine Learning: Proceedings of the Eighth International Workshop (pp. 353-357). Evanston, IL: Morgan Kaufmann. Tesauro, G. (1995). Temporal different learning and TD-Gammon. Communications of the ACM, 38, 58-68. 160 Towell, G., Shavlik, J., & Noordewier, M. (1990). Refinement of approximate domain theories by knowledge-based neural networks. Proceedings of the Eighth National Conference on Artificial Intelligence (pp. 861-866). Boston, MA: Morgan Kaufmann. Tsitsiklis, J. N. (1994). Asynchronous stochastic approximation and Q-Learning. Machine Learning, 16, 185-202. Utgoff, P. E., & Clouse, J. A. (1991). Two kinds of training information for evaluation function learning. Proceedings of the Ninth National Conference on Artificial Intelligence (pp. 596-600). Anaheim, CA: MIT Press. Utgoff, P. E. (1994). An improved algorithm for incremental induction of decision trees, (Technical Report 94-07), Amherst, MA: University of Massachusetts, Department of Computer Science. Waterman, D. A. (1970). Generalization learning techniques for automating the learning of heuristics. Artificial Intelligence, 1, 121-170. Watkins, C.J.C.H. (1989). Learning with delayed rewards. Doctoral dissertation, Psychology Department, Cambridge University. Watkins, C.J.C.H., & Dayan, P. (1992). Q-Learning. Machine Learning, 8, 279-292. Widrow, B., & Smith, F. W. (1964). Pattern-recognizing control systems. In Tou & Wilcox (Eds.), Computer and Information Sciences Proceedings. Washington, D.C: Spartan Books. 161