The present invention relates to a learning system and, more specifically, to a learning system allowing for autonomous behavior generation using hierarchical reinforcement learning.
Reinforcement learning (RL) systems are employed in a variety of applications to learn from past decisions or scenarios in order to enhance new decision-making actions. Many researchers have attempted to improve the accuracy of such RL systems. By way of example, Dynamic Scripting is a related approach that was described by Pieter Spronck from Tilburg University. Specifically, Dynamic Scripting was described by Pieter Spronck, Marc Ponsen, Ida Sprinkhuizen-Kuyper, and Eric Postma (2006), in Adaptive Game AI with Dynamic Scripting. Machine Learning, Vol. 63, No. 3, pp. 217-248, (Springer DOI: 10.1007/s10994-006-6205-6), and by Armon Toubman, Jan-Joris Roessingh, Pieter Spronck, Aske Plaat, and Jaap van den Herik (2014), in Dynamic Scripting with Team Coordination in Air Combat Simulation, Proceedings of the 27th International Conference on Industrial, Engineering & Other Applications of Applied Intelligent Systems, Springer-Verlag, (Presented at the IEAAIE 2014 conference), both publications of which are incorporated herein by reference. Although Spronck et al. made some progress in RL systems, their approach uses machine learning models other than neural nets for high-level selection of behaviors. Such models are limited in their capacity for complex decision making.
In other work, U.S. Pat. No. 6,473,851 (the '851 Patent), titled “System for combining plurality of input control policies to provide a compositional output control policy” (also incorporated herein by reference), describes an approach with the same major limitation as Dynamic Scripting. Although the work as described in the '851 Patent incorporates stochastic mixing of policies, the resulting models are also limited in their capacity for complex decision making.
Thus, a continuing need exists for a system that uses specialized reinforcement learning techniques with integration of advanced neural net models to provide for complex high-level decision making.
The present disclosure provides a system for autonomous behavior generation. In one aspect, the system includes one or more processors and one or more associated memories. Each associated memory is a non-transitory computer-readable medium having executable instructions encoded thereon such that when executed, an associated one or more processors perform several operations, including receiving, by a high-level controller, observations from an environment and, using a neural net, selecting a high-level behavior based on the observations from the environment; generating, by a low-level controller, an output command for a scripted action based on the selected one high-level behavior; and causing a device to perform the scripted action.
In yet another aspect, the system performs an operation of training the neural net using reinforcement learning.
In another aspect, causing a device to perform the scripted action includes controlling aircraft in a flight scenario.
In yet another aspect, the system performs an operation of using a softmax learning function to train a reinforcement learning agent within the high-level controller to produce probabilities of selecting different high-level behaviors.
In another aspect, the same neural net that selects behaviors also produces a state value output for use as a reinforcement learning baseline or for reinforcement learning bootstrapping.
In yet another aspect, the system further comprises a second neural net that produces a state value output for use as a reinforcement learning baseline or for reinforcement learning bootstrapping.
In yet another aspect, the neural net produces action value outputs based on the environment observations, and wherein the high-level controller selects the high-level behavior using a softmax function on the action value outputs.
Further, the high-level controller selects behaviors at a lower frequency than a frequency at which the low-level controllers select scripted actions.
In another aspect, an additional set of neural nets is trained with reinforcement learning so that each neural net determines how long to run one of the high-level behaviors.
Finally, the present invention also includes a computer program product and a computer implemented method. The computer program product includes computer-readable instructions stored on a non-transitory computer-readable medium that are executable by a computer having one or more processors, such that upon execution of the instructions, the one or more processors perform the operations listed herein. Alternatively, the computer implemented method includes an act of causing a computer to execute such instructions and perform the resulting operations.
The objects, features and advantages of the present invention will be apparent from the following detailed descriptions of the various aspects of the invention in conjunction with reference to the following drawings, where:
The present invention relates to a learning system and, more specifically, to a learning system allowing for autonomous behavior generation using hierarchical reinforcement learning. The following description is presented to enable one of ordinary skill in the art to make and use the invention and to incorporate it in the context of particular applications. Various modifications, as well as a variety of uses in different applications, will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to a wide range of aspects. Thus, the present invention is not intended to be limited to the aspects presented, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
In the following detailed description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. However, it will be apparent to one skilled in the art that the present invention may be practiced without necessarily being limited to these specific details. In other instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the present invention.
The reader's attention is directed to all papers and documents which are filed concurrently with this specification and which are open to public inspection with this specification, and the contents of all such papers and documents are incorporated herein by reference. All the features disclosed in this specification (including any accompanying claims, abstract, and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
Furthermore, any element in a claim that does not explicitly state “means for” performing a specified function, or “step for” performing a specific function, is not to be interpreted as a “means” or “step” clause as specified in 35 U.S.C. Section 112(f). In particular, the use of “step of” or “act of” in the claims herein is not intended to invoke the provisions of 35 U.S.C. 112(f).
Before describing the invention in detail, first a description of the various principal aspects of the present invention is provided. Subsequently, an introduction provides the reader with a general understanding of the present invention. Finally, specific details of various embodiment of the present invention are provided to give an understanding of the specific aspects.
Various embodiments of the invention include three “principal” aspects. The first is a system for autonomous behavior generation with hierarchical reinforcement learning. The system is typically in the form of a computer system operating software or otherwise performing operations or in the form of a “hard-coded” instruction set. This system may be incorporated into a wide variety of devices that provide different functionalities. The second principal aspect is a method, typically in the form of software, operated using a data processing system (computer). The third principal aspect is a computer program product. The computer program product generally represents computer-readable instructions stored on a non-transitory computer-readable medium such as an optical storage device, e.g., a compact disc (CD) or digital versatile disc (DVD), or a magnetic storage device such as a floppy disk or magnetic tape. Other, non-limiting examples of computer-readable media include hard disks, read-only memory (ROM), and flash-type memories. These aspects will be described in more detail below.
A block diagram depicting an example of a system (i.e., computer system 100) of the present invention is provided in
The computer system 100 may include an address/data bus 102 that is configured to communicate information. Additionally, one or more data processing units, such as a processor 104 (or processors), are coupled with the address/data bus 102 and/or associated memory to cause the one or more processors 104 to perform the operations as described herein. The one or more processors 104 are configured to process information and instructions and to cause the related operations to be performed, such as operating the high-level and low-level controllers as described in further detail below. In an aspect, the processor 104 is a microprocessor. Alternatively, the processor 104 may be a different type of processor such as a parallel processor, application-specific integrated circuit (ASIC), programmable logic array (PLA), complex programmable logic device (CPLD), or a field programmable gate array (FPGA) or any other processing component operable for performing the relevant operations.
The computer system 100 is configured to utilize one or more data storage units. The computer system 100 may include a volatile memory unit 106 (e.g., random access memory (“RAM”), static RAM, dynamic RAM, etc.) coupled with the address/data bus 102, wherein a volatile memory unit 106 is configured to store information and instructions for the processor 104. The computer system 100 further may include a non-volatile memory unit 108 (e.g., read-only memory (“ROM”), programmable ROM (“PROM”), erasable programmable ROM (“EPROM”), electrically erasable programmable ROM “EEPROM”), flash memory, etc.) coupled with the address/data bus 102, wherein the non-volatile memory unit 108 is configured to store static information and instructions for the processor 104. Alternatively, the computer system 100 may execute instructions retrieved from an online data storage unit such as in “Cloud” computing. In an aspect, the computer system 100 also may include one or more interfaces, such as an interface 110, coupled with the address/data bus 102. The one or more interfaces are configured to enable the computer system 100 to interface with other electronic devices and computer systems. The communication interfaces implemented by the one or more interfaces may include wireline (e.g., serial cables, modems, network adaptors, etc.) and/or wireless (e.g., wireless modems, wireless network adaptors, etc.) communication technology.
In one aspect, the computer system 100 may include an input device 112 coupled with the address/data bus 102, wherein the input device 112 is configured to communicate information and command selections to the processor 104. In accordance with one aspect, the input device 112 is an alphanumeric input device, such as a keyboard, that may include alphanumeric and/or function keys. Alternatively, the input device 112 may be an input device other than an alphanumeric input device. In an aspect, the computer system 100 may include a cursor control device 114 coupled with the address/data bus 102, wherein the cursor control device 114 is configured to communicate user input information and/or command selections to the processor 104. In an aspect, the cursor control device 114 is implemented using a device such as a mouse, a track-ball, a track-pad, an optical tracking device, or a touch screen. The foregoing notwithstanding, in an aspect, the cursor control device 114 is directed and/or activated via input from the input device 112, such as in response to the use of special keys and key sequence commands associated with the input device 112. In an alternative aspect, the cursor control device 114 is configured to be directed or guided by voice commands.
In an aspect, the computer system 100 further may include one or more optional computer usable data storage devices, such as a storage device 116, coupled with the address/data bus 102. The storage device 116 is configured to store information and/or computer executable instructions. In one aspect, the storage device 116 is a storage device such as a magnetic or optical disk drive (e.g., hard disk drive (“HDD”), floppy diskette, compact disk read only memory (“CD-ROM”), digital versatile disk (“DVD”)). Pursuant to one aspect, a display device 118 is coupled with the address/data bus 102, wherein the display device 118 is configured to display video and/or graphics. In an aspect, the display device 118 may include a cathode ray tube (“CRT”), liquid crystal display (“LCD”), field emission display (“FED”), plasma display, or any other display device suitable for displaying video and/or graphic images and alphanumeric characters recognizable to a user.
The computer system 100 presented herein is an example computing environment in accordance with an aspect. However, the non-limiting example of the computer system 100 is not strictly limited to being a computer system. For example, an aspect provides that the computer system 100 represents a type of data processing analysis that may be used in accordance with various aspects described herein. Moreover, other computing systems may also be implemented. Indeed, the spirit and scope of the present technology is not limited to any single data processing environment. Thus, in an aspect, one or more operations of various aspects of the present technology are controlled or implemented using computer-executable instructions, such as program modules, being executed by a computer. In one implementation, such program modules include routines, programs, objects, components and/or data structures that are configured to perform particular tasks or implement particular abstract data types. In addition, an aspect provides that one or more aspects of the present technology are implemented by utilizing one or more distributed computing environments, such as where tasks are performed by remote processing devices that are linked through a communications network, or such as where various program modules are located in both local and remote computer-storage media including memory-storage devices.
An illustrative diagram of a computer program product (i.e., storage device) embodying the present invention is depicted in
As noted above, the present disclosure provides a learning system allowing for autonomous behavior generation using hierarchical reinforcement learning. The learning system is implemented as a control system having two different but complementary components (i.e., a high-level component and a low-level component) that work together to produce complex autonomous behaviors for autonomous platforms such as vehicles and other robotic systems. The high-level component uses a deep neural net to determine optimal probabilities for making a selection from a set of available behaviors. The low-level component uses traditional rule-based artificial intelligence (AI) to produce control outputs (commands) that cause the autonomous platform to generate the selected behavior. In some aspects, the low-level component can also be implemented as a machine learning system with one or more additional deep neural networks.
As can be appreciated, there are many applications of the system and process as described herein. For example, the system can be implemented in autonomous air-to-air engagement systems, as well as for simulation software that is used to model air-to-air engagements for training or decision-making purposes. Experimental results in a simulator have shown that this invention produces an order of magnitude training speedup over existing solutions that utilize a traditional non-hierarchical reinforcement learning architecture. In addition, this invention can be applied to new problems more easily than current state-of-the-art reinforcement learning methods because it can be used with a simple sparse reward function, instead of a complicated dense reward function that requires hand-engineering and trial-and-error experimentation whenever the system is used in a new environment. As an additional potential application, the system may be incorporated into autonomous cars and trucks. In this case, high-level behaviors might consist of driving down a road, performing an emergency stop, or making a turn at an intersection. The low-level behaviors for a ground vehicle would consist of steering, acceleration, and braking commands as well as associated turn signals, transmission shifts, etc. Specific details regarding the invention are provided below.
As shown in
The neural net 308 is a fully-connected network that multiplies the input observation vector by a learnable weight matrix, adds a learnable bias vector to the result, applies a nonlinear function such as Rectified Linear Unit (ReLU) to this result, and then repeats the process for each neuron layer by applying the result from the previous layer as input. The final layer produces one output for each possible high-level behavior, and it does not apply an element-wise nonlinearity like ReLU to the result. Instead, it samples an integer from the softmax distribution defined by these outputs. The high-level behavior indexed by this integer is then selected. The use of the softmax activation in the final layer instead of ReLU is well-known to machine learning practitioners and those skilled in the art. ReLU is not used in the final layer because this would result in action probabilities that do not sum to one. In contrast, the softmax operation produces a probability distribution where all of the probabilities are guaranteed to sum to one. Each output of the neural network influences the relative probability of selecting the corresponding action.
Non-limiting examples of such high-level behaviors include “lead pursuit,” “lag pursuit,” “pure pursuit,” or “evade.” Other examples include “maintain position”, stop”, “swerve”, “avoid collision,” etc. Thus, it should be appreciated that the specific behavioral options depend on the application in which the system is implemented. Once the behavior has been selected 310 and passed to the low-level controller, the low-level controller 302 produces output actions 312 (scripted behaviors) that have direct control over the system's motion. Thus, the output actions 312 are commands or signals that are, in some aspects, sent to the mobile platform's actuators 314 (wheels, motors, engines, wing flaps, rotors, etc.) to cause the mobile platform to perform the scripted behavior. For example, if an autonomous aircraft in a one-versus-one engagement scenario selects “pure pursuit,” the low-level controller will generate signals that direct the plane to head or otherwise fly directly towards its opponent. Other examples of scripted behaviors include “lag pursuit” (move behind opponent), “lead pursuit” (move ahead of opponent, and “evade” (move away from opponent). In an alternative embodiment, the low-level component 302 can also be implemented using a deep neural network.
The high-level controller's neural net 308 is trained using a reinforcement learning agent 318 in conjunction with a trainer 316. For each training episode, the system keeps track of the high-level behaviors it has selected, the observations that resulted from applying the corresponding low-level actions to the environment, and the rewards that were obtained from the same environment's reward function. After each episode has been completed, a trainer 316 uses some variant of a gradient descent optimizer to update the neural net 308 connection weights in a way that increases the expected value of future rewards. As a non-limiting example, an RMSProp gradient descent optimizer is used to update the neural net connection weights with learning rate 0.0007, momentum 0, and epsilon 1e-10. The RMSProp gradient descent optimizer is well known to those skilled in the art of machine learning. By way of example, an open source RMSProp gradient descent optimizer may be found at www.tensorflow.org. Other optimizers, such as Momentum, Nesterov, Adam, or AdaGrad could just as easily be used.
A desired embodiment uses A3C (Asynchronous Advantage Actor Critic) to parallelize the execution of episodes during training by the trainer 316. This is described in “Asynchronous Methods for Deep Reinforcement Learning” by Mnih et. al., Proceedings of The 33rd International Conference on Machine Learning, PMLR 48:1928-1937, 2016, the entirety of which is incorporated herein by reference. Thus, in some aspects, the trainer 316, using a softmax function, trains the reinforcement learning agent 318 to product probabilities of selecting different behaviors. Other policy-based reinforcement learning algorithms could also have been used instead of Actor-Critic, such as: A2C, PPO, TRPO, ACKTR, IMPALA, DDPG, and TD3.
Some of these methods, including the desired embodiment that uses A3C, include a value net in addition to the policy net. This minor detail should be familiar to those with knowledge of reinforcement learning. In the present example, two separate networks were used, each with a single hidden layer of 36 neurons and ReLU activation. Alternatively, it is also possible to use a combined network with two outputs—one to produce action probabilities, and one to provide a value function. In yet another alternative embodiment, it would be possible to use a value-based method such as Q-learning, in which case the policy net would be replaced by a value net and an epsilon-greedy policy.
As a specific example implementation,
Further, provided herein are four alternative embodiments or aspects, each of which provides a mechanism that restricts the times at which the high-level controller is given a choice to switch to a different behavior. It should be understood that the alternative embodiments are can be implemented in air engagement or any other autonomous vehicle applications or other applications as applicable.
The first alternative (example pseudocode of which is depicted in
Another alternative embodiment (example pseudocode of which is depicted in
Yet another alternative aspect is shown in
Another alternative aspect is similar to the previous aspect; however, this aspect uses a single neural net with multiple outputs instead of separate neural nets. As shown in
Experiments were performed using a simulated environment. The simulator modeled the movement of two or more aircraft in a two-dimensional map. In an example embodiment, the policy network selects one of 14 possible discrete actions for the platform that it is controlling, as shown in
The neural net's softmax output layer produces an integer from 0 to 13. This integer corresponds to the “index” column in
In reinforcement learning applications, it is typical for the environment to provide the agent with a more informative “dense reward” function that provides a more continuous spectrum of outcome desirability than just win or loss. For example, some of previous experiments without the hierarchical approach used a reward function that included a small reward for getting closer to the opponent at each step, even if victory was not ultimately achieved. This was necessary to bootstrap learning. Otherwise, the probability of an un-trained platform ever reaching its opponent was too low, few rewards were obtained, and the policy never even started to improve. However, one surprising advantage of the new hierarchical approach is that now, a simple sparse reward function provides sufficient feedback to train the agent from scratch. This makes the method much easier to apply to new scenarios/decision making environments because it eliminates the need for trial-and-error reward function engineering.
In addition to the reward, the environment also provides each agent with its opponent's distance, closing speed, bearing, heading, and cross speed after each simulation time-step. This allows the agent to select an action based on the current observed state of the environment.
Experimental results are shown in
(3.1) Control of a Device
As shown in
In the primary embodiment, an Unmanned Air Vehicle (UAV) or drone—either one that is simulated on a computer or a real one with hardware actuators connected to the system herein described—may be controlled using a set of behaviors that are selected using the high-level controller. One such behavior implements a guidance law (e.g. proportional navigation) that causes the controlled aircraft to pursue another aircraft, based on the relative position, orientation, and/or velocity of the second aircraft as determined using radar, a visual camera, infrared camera, acoustic sensor, LIDAR, or any other sensor that can provide this information. Instead of a single pursuit behavior, it is also possible to have multiple lead, lag, and pure pursuit behaviors from
In some embodiments, a drone or other autonomous vehicle may be controlled to move to an area where the localization of the object is determined to be based on imagery obtained from the environment. In yet some other embodiments, a camera may be controlled to orient towards or track an object. In other words, actuators or motors are activated to cause the camera (or sensor) to move or zoom in on the location where the object is localized. In yet another aspect, if a system is seeking a particular object and if the object is not determined to be within the field-of-view of the camera, the camera can be caused to rotate or turn to view other areas within a scene until the sought after object is detected.
In addition, in a non-limiting example of an autonomous vehicle having multiple sensors, such as cameras that can be used to detect objects in an environment around the vehicle, the system can cause the autonomous vehicle to perform a vehicle operation. For instance, if the vehicle sensors detect an object in the vehicle's pathway, the system can be used to cause a precise vehicle maneuver (scripted action) for collision avoidance by controlling a vehicle component. For example, if the vehicle is an automobile and the object is a stop sign, the system may cause the autonomous vehicle to apply a functional response, such as a braking operation, to stop the vehicle. Other appropriate responses may include one or more of a steering operation, a throttle operation to increase speed or to decrease speed, or a decision to maintain course and speed without change. The responses may be appropriate for avoiding a collision, improving travel speed, or improving efficiency.
Finally, while this invention has been described in terms of several embodiments, one of ordinary skill in the art will readily recognize that the invention may have other applications in other environments. It should be noted that many embodiments and implementations are possible. Further, the following claims are in no way intended to limit the scope of the present invention to the specific embodiments described above. In addition, any recitation of “means for” is intended to evoke a means-plus-function reading of an element and a claim, whereas, any elements that do not specifically use the recitation “means for”, are not intended to be read as means-plus-function elements, even if the claim otherwise includes the word “means”. Further, while particular method steps have been recited in a particular order, the method steps may occur in any desired order and fall within the scope of the present invention.
This is a Continuation-in-Part application of U.S. application Ser. No. 16/792,869, filed on Feb. 17, 2020, which is a non-provisional patent application of U.S. Provisional Application No. 62/814,133 filed on Mar. 5, 2019, the entirety of which is hereby incorporated by reference. The present application ALSO claims the benefit of and is a non-provisional patent application of U.S. Provisional Application No. 62/953,008, filed on Dec. 23, 2019, the entirety of which is hereby incorporated by reference.
This invention was made with government support under U.S. Government Contract Number HR0011-19-90018. The government has certain rights in the invention.
Number | Date | Country | |
---|---|---|---|
62814133 | Mar 2019 | US | |
62953008 | Dec 2019 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16792869 | Feb 2020 | US |
Child | 17064566 | US |