Data-Augmented Training of Reinforcement Learning Software Agents

Training reinforcement learning models with data from knowledge stores and simulating environments addresses the suboptimal performance of software agents in complex scenarios, enhancing their decision-making capabilities and efficiency.

JP7573611B2Active Publication Date: 2024-10-25INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022532882
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-05
Filing Date
2020-11-27
Publication Date
2024-10-25
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

Existing reinforcement learning software agents often perform suboptimally in complex environments, failing to learn from past decisions and making seemingly random choices, limiting their effectiveness in dynamic and intricate situations.

Method used

Training reinforcement learning models using data from knowledge stores and simulating environments with limited connectivity to enhance decision-making, allowing agents to learn and improve performance in complex scenarios.

Benefits of technology

Enhances the performance of reinforcement learning software agents in complex environments by providing structured data for learning and enabling them to make informed decisions based on historical data and expert knowledge, reducing training time and improving efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573611000001
    Figure 0007573611000001
  • Figure 0007573611000002
    Figure 0007573611000002
  • Figure 0007573611000003
    Figure 0007573611000003
Patent Text Reader

Abstract

Techniques are provided for reinforcement learning software agents powered by external data. The reinforcement learning model supporting the software agent can be trained based on information obtained from one or more knowledge stores, such as online forums. The trained reinforcement learning model can be tested in an environment with limited connectivity to the external environment to meet performance criteria. The reinforcement learning software agent can be deployed within the environment along with the tested and trained reinforcement learning model to autonomously perform actions and handle requests.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Embodiments of the present invention relate to reinforcement learning software agents, and more particularly to training a reinforcement learning model that supports the reinforcement learning software agent based on information obtained from one or more knowledge stores, and testing the trained reinforcement learning model in an environment with limited connectivity to the external environment, where the software agent may be deployed along with the tested and trained reinforcement learning model. [Background technology]

[0002] Software agents or decision-making agents are deployed in a variety of situations. Examples of software agents include conversational agents or chat bots, online shopping software agents, spam filters, etc. Typical software agents are deployed in dynamic environments. Rather than being programmed to perform a set of tasks, software agents that can receive input from the current environment are configured to act autonomously to achieve a desired goal.

[0003] However, software or decision-making agents, while operating autonomously, may not make optimal decisions. For example, some software agents behave seemingly randomly and do not learn from past decisions. Other software agents may use machine learning techniques (e.g., reinforcement learning) as part of their decision-making process, but these software agents still perform poorly in complex situations. Thus, software agents are often limited in their applications to simple systems, and traditional reinforcement learning paradigms often fail in complex situations. Summary of the Invention

[0004] According to an embodiment of the present invention, a method, system, and computer-readable medium are provided for configuring a reinforcement learning model for a reinforcement learning software agent using data. Access to a knowledge store is received, the knowledge store including data on topics for software agent support. Information from the knowledge store is used to train a reinforcement learning model that informs the reinforcement learning software agent. The trained reinforcement learning model is tested in a sandbox test environment, the test environment having limited connectivity to an external environment. The reinforcement learning software agent is deployed in the environment along with the tested and trained reinforcement learning model to autonomously perform actions and handle requests. This approach allows for improved performance of the reinforcement learning software agent in complex environments and improved training of the reinforcement learning software agent for deployment in complex environments.

[0005] In one aspect, the information from the knowledge base is in a semi-structured format and includes questions along with one or more corresponding answers. Access is provided to a domain simulator for performing actions by the reinforcement learning software agent in the test environment. Based on this approach, the technique is adaptable to any type of information provided in a semi-structured format to a domain simulator.

[0006] In other aspects, the knowledge store includes features that are used by the reinforcement learning model to rank the information provided in the knowledge store. This approach allows for automatic processing and access to knowledge from subject matter experts to provide guidance to reinforcement learning software agents in complex environments. In some embodiments, the reinforcement learning model ranks the information in the knowledge store based on user preferences. These techniques may be used to customize certain actions to specific users.

[0007] In yet another embodiment, a query is generated by a reinforcement learning software system. The query is matched with states of a policy generated by a reinforcement learning model, each state having a corresponding action. The reinforcement learning software agent executes the action returned by the matched policy. In a further embodiment, a reward may be received when the reinforcement learning software agent executes an action, thereby achieving a goal or resolving a query. This allows the reinforcement learning model to provide ranked information to the reinforcement learning software agent to accelerate training and execute actions based on the ranking to achieve a desired goal. This approach may lead to improved performance of the RL software agent in complex environments with high fan out on available actions.

[0008] In yet another aspect, the policies generated by the reinforcement learning model are updated on a fixed or dynamic frequency to include questions and answers added to the knowledge base, thereby allowing the reinforcement learning model to get updates and include current or recent information in the knowledge store.

[0009] It should be understood that this Summary is not intended to identify key or critical features of the embodiments of the present disclosure, nor is it intended to be used to limit the scope of the present disclosure. Other features of the present disclosure will become readily apparent through the following description.

[0010] Generally, like reference numbers in the various figures are utilized to indicate like elements. [Brief description of the drawings]

[0011] [Figure 1A] FIG. 1 is a schematic diagram of an exemplary computing environment for a reinforcement learning system in accordance with an embodiment of the present invention. [Figure 1B]FIG. 1B is a diagram of an exemplary computing device for the computing environment of FIG. 1A, in accordance with one embodiment of the present invention. [Diagram 2] 4 is a flowchart illustrating exemplary computing commands and operations for a deployed reinforcement learning software agent in a reinforcement learning system, according to one embodiment of the present invention. [Figure 3A] 3A illustrates an exemplary environment for a deployed reinforcement learning software agent in a reinforcement learning system, according to an embodiment of the present invention. [Figure 3B] 3A-3C are diagrams illustrating exemplary environments for a deployed reinforcement learning software agent in a reinforcement learning system, according to an embodiment of the present invention. [Figure 4] 1 is a flowchart illustrating a sandbox environment for testing reinforcement learning software agents, according to one embodiment of the present invention. [Diagram 5] 2 is a schematic diagram of inputs and outputs of a test environment according to one embodiment of the present invention; [Figure 6A] 4 is a flowchart illustrating ranking knowledge base data by a reinforcement learning system in accordance with one embodiment of the present invention. [Figure 6B] 6B is a flowchart illustrating the use of the policy information of FIG. 6A developed in a sandbox environment for deployment in a reinforcement learning system, according to one embodiment of the present invention. [Figure 7A] FIG. 1 illustrates an example of evaluating the performance of a reinforcement learning system, according to an embodiment of the present invention. [Figure 7B] FIG. 1 illustrates an example of evaluating the performance of a reinforcement learning system, according to an embodiment of the present invention. [Figure 8] FIG. 2 illustrates a high level flowchart of operations for implementing a reinforcement learning system in accordance with one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] The reinforcement learning (RL) models supporting the RL software agents are trained based on information available from one or more knowledge stores. The RL models supporting the RL software agents are trained and tested with limited connectivity to the external environment. The RL software agents may be deployed along with the tested and trained RL models. The RL software agents may receive positive reinforcement upon completing a sequence of actions and corresponding state changes that lead to the achievement of a goal. Upon reaching the same state at some future time, the RL software agent, having retained the memory, may repeat the learned actions to achieve the goal.

[0013] An exemplary environment for use with embodiments of the present invention is shown in Figure 1. Specifically, the environment includes one or more server systems 10, one or more client or end-user systems 20, a database 30, a knowledge store 35, and a network 45. The server systems 10 and the client systems 20 may be remote from one another and may communicate via the network 45. The network may be implemented by any number of any suitable communications medium, such as a wide area network (WAN), a local area network (LAN), the Internet, an intranet, etc. Alternatively, the server system 10 and the client systems 20 may be local to one another and may communicate via any suitable local communications medium, such as a local area network (LAN), a hardwire, a wireless link, an intranet, etc.

[0014] The client system 20 allows a user to interact with various environments to perform activities that may generate queries that are provided to the server system 10. The server system 10 includes an RL system 15, which includes an RL software agent 105, a natural language processing (NLP) engine 110, an RL model 115, a domain simulator 120, a performance evaluation engine 125, and a query generation engine 130, as described herein.

[0015] Database 30 may store various information for analysis, such as information obtained from knowledge store 35. For example, RL system 15 may analyze a knowledge store located in its native environment or generate a copy of knowledge store 35 and store it in database 30 as knowledge store 31. Knowledge store 35 may contain any suitable information in a semi-structured format, such as a question-answer format, including, but not limited to, an online forum, a public database, a private database, or any other suitable repository. In some aspects, multiple answers may be provided for a question. In other aspects, a question may be generated without a corresponding answer.

[0016] Information from knowledge store 35 may be processed by RL system 15 and stored as processed Q / A data 32. For example, processed Q / A data 32 may include information processed by NLP engine 110 to generate data from knowledge store data 31 suitable for training RL model 115. In an aspect, this information may include a mapping of questions to each answer, and a mapping of each answer to one or more features associated with the answer to determine the relevance and quality of the answer.

[0017] Once the RL model 115 is trained, the output of the trained RL model may be stored as policy data 34. In aspects, the policy data 34 may be provided in a format compatible with the decision-making agent, such as a (state, action) format. By matching the state of the RL software agent 105 with the state of the policy data 34, a corresponding action in the policy data may be identified and provided to the RL software agent.

[0018] The database 30 may store various information for analysis, such as, for example, knowledge store data 31 obtained from online forums or any other knowledge base, processed Q / A data 32, and policy data 34, or any other data generated by operation involving an RL system in a sandbox / test environment or a live environment.

[0019] The database system 30 may be implemented by any conventional or other database or storage unit and may be local or remote with respect to the server system 10 and the client systems 20 and may communicate over any suitable communications medium, such as, for example, a local area network (LAN), a wide area network (WAN), the Internet, a hardwire, a wireless link, an intranet, etc. The client systems may present a graphical user interface, such as a GUI, or other interface, such as a command line prompt, menu screens, etc., to prompt the user for information regarding the performance of actions in the environment and may provide reports or other information, including whether the actions provided by the RL system were successful in achieving a goal.

[0020] The server system 10 and the client system 20 may be implemented by any conventional or other computer system preferably equipped with a display or monitor, a base (including at least one hardware processor (e.g., microprocessor, controller, central processing unit (CPU), etc.)), one or more memories, and / or internal or external network interface or communication devices (e.g., modem, network card, etc.), optional input devices (e.g., keyboard, mouse, or other input device), and any commercially available and custom software (e.g., server / communication software, RL system software, browser / interface software, etc.). By way of example, the server / client includes at least one processor 16, 22, one or more memories 17, 24, and / or internal or external network interface or communication devices 18, 26, e.g., modem or network card, and user interface 19, 28, etc. Optional input devices may include a keyboard, mouse, or other input device.

[0021] Alternatively, one or more client systems 20 may execute RL in a stand-alone mode of operation. For example, a client system may store or access data, such as a knowledge store 35, and the stand-alone unit may include the RL system 15. A graphical user or other interface 19, 28, e.g., a GUI, command line prompt, menu screen, etc., may prompt a corresponding user for information, and the state of the system may be used to generate queries.

[0022] The RL system 15 may include one or more modules or units for performing various functions of the embodiments of the invention described herein. The various modules (e.g., RL software agent 105, natural language processing (NLP) engine 110, RL model 115, domain simulator 120, performance evaluation engine 125, and query generation engine 130, etc.) may be implemented by any quantity and combination of software and / or hardware modules or units and may reside in the server's memory 17 for execution by the processor 16. These modules are described in more detail below. These components operate to improve the operation of the RL software agent 105 in the real environment to reduce the time required for the RL software agent to identify and take one or more actions to achieve a goal. There may be multiple answers that lead to different courses of action to achieve a goal.

[0023] RL software agents 105 may provide decision support in a domain as part of an RL system 15. Such a system may be constructed using a domain simulator, a domain model, and a knowledge store. In some embodiments, the knowledge store includes data stored in a question and answer format corresponding to the domain. RL software agents may be trained using reinforcement learning, and data from the knowledge database provides information for actions. RL software agents may be tested in a sandbox environment, which is typically a non-production environment using a simulator prior to deployment.

[0024] The NLP engine 110 relies on NLP techniques to extract relevant portions of information from the knowledge base 35, which may be in the form of semi-structured text. The NLP engine 110 may identify the portion of the forum that corresponds to the question, one or more answers to that question, along with features associated with each answer that may be provided to the RL model 115 for the RL model to rank answers to a particular question. The features may include the author name, the author's status, upvotes, downvotes, the length of the reply, comments on that reply by other users indicating that the solution would work, etc., or any combination thereof. In some cases, the "upvotes" may represent trust and support of the answer by the community and may represent a reward signal to enhance the decision-making process of the RL algorithm.

[0025] Information retrieval techniques may be used to crawl the contents of the knowledge store to generate a copy of the knowledge store information and store this information in database 30. Alternatively, RL system 15 may communicate with the knowledge store to obtain relevant information on a topic (e.g., a set of answers to a particular question), which may be processed by an NLP engine and stored in database 30 as processed Q / A data 32.

[0026] The RL model 115 includes any suitable algorithm for ranking data associated with a set of features. Any suitable algorithm may be used, including, for example, but not limited to, FastAP, PolyRank, Evolutionary Strategy (ES) Rank, a combination of regression and ranking, etc. Any suitable approach may be utilized to determine the optimal ranking, such as, for example, a point-wise approach, a pair-wise approach, or a list-wise approach. Any suitable metric may be used to evaluate the ranking, including, for example, mean average precision, mean reciprocal rank, etc.

[0027] The domain simulator 120 includes a simulation environment to mimic the real environment. The simulated environment may include a sandbox environment or a testbed, or any other environment that behaves similarly to the real environment, but has limited connectivity to the outside world so that actions performed in the simulated situation do not propagate to the real system. This approach allows for comprehensive training and testing without the possible negative consequences of performing inappropriate actions. Typically, the domain simulator includes or has the ability to generate a domain model 120 that represents the domain environment.

[0028] The performance evaluation engine 125 may include components for measuring the performance of RL software agents in the RL system. For example, in some aspects, the performance evaluation engine 125 may include components such as random and / or planning decision agents to indicate lower and upper bounds on performance. Random agents are the least efficient because the actions they choose are random, and planning agents are the most efficient because the optimal actions are known. The performance of the RL system may be benchmarked against these decision agents, as well as other decision agents.

[0029] The query generation engine 130 may generate queries based on the state, which is used to identify policies and corresponding actions in response to the queries.

[0030] The query matching engine 135 may match the generated query with a policy, which may be in the form of a (state, action) pair. In other aspects, the query matching engine 135 may be used to match content from a knowledge base with the generated query, which is provided to the NLP engine 110 and the RL model 115 for generation of a policy. These and other features are described throughout this specification and the figures.

[0031] The client system 20 and the server system 10 may be implemented by any suitable computing device, such as the computing device 212 shown in FIG. 1B, for the computing environment 100. This example is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. In any event, the computing device 212 is capable of implementing and / or performing any of the functionality described herein.

[0032] A computing device includes computer systems that operate in many other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations, or combinations thereof, that may be suitable for use with a computing system include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices.

[0033] The computer system 212 may be described in the general context of computer system executable instructions, such as program modules (e.g., the RL System 15 and its corresponding modules), executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types.

[0034] Computer system 212 is shown in the form of a general purpose computing device. Components of computer system 212 may include, but are not limited to, one or more processors or processing units 155, a system memory 136, and a bus 218 that couples various system components including the system memory 136 to the processor 155.

[0035] Bus 218 represents any one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures, including, by way of example and not limitation, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnects (PCI) bus.

[0036] Computer system 212 typically includes a variety of computer system readable media. Such media may be any available media that can be accessed by computer system 212 and includes both volatile and nonvolatile media, removable and non-removable media.

[0037] The system memory 136 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 230 and / or cache memory 232. The computer system 212 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 234 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from and writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical media. In such an example, each may be connected to the bus 218 by one or more data media interfaces. As further illustrated and described below, the memory 136 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.

[0038] Programs / utilities 240 having a set (at least one) of program modules 242 (e.g., RL System 15 and corresponding modules, etc.) may be stored in memory 136, as well as, by way of example and not limitation, an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or any combination thereof, may comprise an implementation of a networking environment. The program modules 242 generally perform the functions and / or methodologies of embodiments of the invention described herein.

[0039] The computer system 212 may also communicate with one or more external devices 214, such as a keyboard, a pointing device, a display 224, one or more devices that allow a user to interact with the computer system 212, or any device that allows the computer system 212 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.), or a combination thereof. Such communication may occur via an input / output (I / O) interface 222. Still further, the computer system 212 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof, via a network adapter 225. As shown, the network adapter 225 communicates with other components of the computer system 212 via a bus 218. It is understood that other hardware and / or software components, not shown, may be used with the computer system 212. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.

[0040] FIG. 2 is a flowchart illustrating exemplary computing commands and operations for a deployed RL software agent in a RL system, according to one embodiment of the present invention.

[0041] The following example illustrates how a task such as opening a text document can be supported by an RL software agent (RL decision agent) and RL model. At act 310, a user enters a command to open the document in gedit. At act 320, the computing environment determines that the command gedit was not found. In response, at act 325, a query is generated, for example, by the query generation engine 130 of the RL software system. The query is used to identify relevant content from a knowledge store, such as using the query matching engine 135, where the content may be in the form of policies or semi-structured formats that represent information stored in the knowledge store. In some cases, an exact match for the query may not be found. In this case, results may be returned based on the similarity of the query to the content of the knowledge store.

[0042] In this example, in response to query matching, matching or similar content may be processed by the NLP engine 110 and RL model 115. However, in other aspects, knowledge store information may be stored and / or processed at predetermined time intervals to generate ranked policies that are stored in database 30 (see, e.g., FIGS. 6A-6B for this embodiment). Either approach is suitable for the embodiments provided herein.

[0043] When a query matches content (e.g., question-answer pairs) in the knowledge store, the NLP engine 110 and RL model 115 are configured to generate policies based on this content and rank the (state, action) pairs for policies that exist in the forum (e.g., based on upvotes, author name, author status, replies, etc.). At operation 335, the RL system identifies the highest-ranked (question, answer) pairs, where the questions correspond to states and the answers correspond to actions that can be performed by the RL software agent.

[0044] At operation 340, an action corresponding to the matched state of the policy is returned to the RL software agent. At operation 345, the computing environment performs the action, in this case, apt-get install gedit. At operation 350, another error is generated, which results in another query being generated. In this case, the system determines that there is no permission to install gedit. Operations 325-340 are repeated to provide a corresponding action to the RL software agent.

[0045] The computing environment assumes root privileges and installs gedit at act 360. The original command is executed, thereby opening the test file, at act 370. Support by the RL software agent and RL model for this particular task is terminated at act 380.

[0046] 3A-3B are diagrams illustrating an exemplary environment for a deployed RL software agent in a particular domain, according to an embodiment of the present invention. A knowledge database, such as an online forum, contains information that can be used to improve the performance of the RL software agent. For example, the online forum may include a question and answer support forum, whose content may be ranked by various parameters within the domain, such as relevance, date, upvote / reputation, author status, etc. This information may be mined by an RL model to identify optimal answers to questions (or actions for states).

[0047] Figure 3A corresponds to a computing environment. Figure 3B corresponds to a travel environment. In either case, a user performs an action that creates a particular state. For example, a user may execute a command that requires access to a particular software platform or send a query to an online website that utilizes a decision agent for support.

[0048] According to the present technique, a query is derived from a user's state, and the query is used to identify a policy that corresponds to that state. Ranked (state, action) pairs of policies are selected, which are derived based on data from a knowledge store processed by an RL model. As a result, the (state, action) pairs generated by the RL system 15 determine the appropriate actions that lead to the next state. Thus, the question and answer correspondence represents an implicit state transition that suggests the correct action / policy at a given state.

[0049] A knowledge store or forum contains information (e.g., structured, unstructured, semi-structured) from subject matter experts who have solved the same or similar problems. The forum provides pseudo traces that can be used to bootstrap the learning process of an RL agent. Bootstrapping is done using the techniques described herein and may be used to train cognitive systems for decision support in various domains, e.g., software technical support, travel site support, etc.

[0050] Online forums are available to assist with programming (e.g., Java, Python, C++, etc.) as well as operating systems (Windows, Linux, Mac, etc.) Using this approach, group or individual data from the forums may be captured and used.

[0051] These techniques may also be used to tailor actions to the preferences of a particular user. In some cases, a combination of features may be used to tailor actions to fit the preferences of a given user.

[0052] FIG. 4 illustrates a test or sandbox environment for an embodiment of the present technology. The architecture represents a generic implementation of agent and environment classes. In some aspects, by utilizing plug-and-play agents, it may be possible to evaluate different types of technologies (e.g., programming, operating systems, travel, scientific literature, etc.) for benchmarking purposes.

[0053] In general, the agents 620 may include one or more types of agents. The random agent 605 may execute actions randomly until it achieves its goal. This agent may be used to establish a lower bound for evaluating the performance by the learning agent when actions are executed randomly. As the number of next states increases due to the complexity of the system, the performance of the random engine decreases.

[0054] A planning agent 615, which is a state-based agent, may be used to generate an optimal approach or plan for achieving a goal based on its current state (e.g., through a series of state changes). The domain may be hand-coded or learned using computational techniques such as execution tracing. This type of agent executes a plan for achieving a goal and exhibits optimal efficiency.

[0055] An RL agent 105 that learns through reinforcement learning may learn policies (state, action) pairs that are ranked by an RL system that maps the (state, action) pair to a value that indicates the effectiveness of performing that action in the current state. The RL agent may include a data-driven agent, a Q-learning agent, etc. The RL model may generate a policy that determines the next state of the RL agent 105 based on the current state of the RL agent.

[0056] The agent 620 may be provided with the domain simulator 120 as part of a package, which may include a test environment 625 and an emulator 630. The emulator 630 may be deployed in the test environment 625 (e.g., a sandbox), thereby allowing testing to occur without being deployed to a real system. The sandbox environment allows for both learning and benchmarking / performance evaluation.

[0057] The emulator may be used to emulate a domain environment using the underlying domain model 120. In an aspect, the system may automatically learn the domain model. For example, the system may learn a domain model of a computing environment based on help pages. Or, the system may establish a model of the environment based on questions from a forum, for example, to identify actions that a user may perform. The emulator 630 may perform actions 650, and the results may be stored in the database 30, or the like.

[0058] During training, a query may be formed by the RL software agent 105. The RL software system identifies a policy generated by the RL model whose states correspond or are similar to states of the RL software agent. If the current state and the state of the policy match, a corresponding action may be selected, and the action is executed in the sandbox. If the action resolves the query (e.g., successfully resolves a user's computing problem, such as opening a file), a reward is received. On the other hand, if the action fails, the RL software agent learns that the selected action did not solve the problem and will not select this action for the corresponding state in the future.

[0059] Thus, the emulator 630 receives the policy information 34 generated and ranked by the RL model 115, which processed the knowledge base data to generate a set of (state, action) pairs. An associated Q-value may be assigned to each pair of policies, and the RL software agent, when deployed, will select the highest Q-value to efficiently achieve the goal.

[0060] Once training and testing in the sandbox is complete, the RL software agent can be deployed with the RL model, including the ranked knowledge base data represented as (state, action) pairs.

[0061] FIG. 5 shows the inputs and outputs to the sandbox environment. The approach can be used for any system where a question answer (Q / A) dataset, a simulator of the environment, and a domain model are available. The present embodiment includes any suitable type of automated model learning for decision support (and execution). This allows decision support agents to be launched and trained on the fly when it is not practical to manually hand-code a decision agent for large systems with high complexity. The ability to automatically learn the domain model reduces this complexity.

[0062] A QA dataset typically consists of a set of entries, each of which has a question and zero or more answers. The answers may be structured or semi-structured, or may be unstructured. Each answer may include a set of actions and features / parameters related to the question, extracted by the RL system 15. The features may include the author name, the author's status, upvotes, downvotes, the length of the answer, comments on the answer by other users indicating that the solution works, etc., or any combination thereof. In general, the features include information that may be used to evaluate the quality (e.g., efficiency, effectiveness, etc.) of an answer to a question and may serve as a reward signal to the RL system. For example, in some cases, an "upvote" may represent trust and support of the answer by the community and represent a reward signal to enhance the decision-making process of the RL algorithm.

[0063] Based on these features, an RL model may be trained to efficiently determine a course of actions that will lead to a desired goal or solution. By training an RL model on data that is at least lightly curated by multiple users, the trained and tested RL model may enable an RL software agent to achieve a desired goal more quickly and efficiently than an RL software agent without the RL model. Rather than selecting random or seemingly random actions and determining whether a reward signal is received, an RL system may be trained with information in a knowledge store.

[0064] FIG. 6A is a flow chart illustrating ranking of knowledge base data by RL model 115 according to an embodiment of the present invention. Semi-structured data 910 is provided to NLP 920, and forum information is extracted, for example, in the form of questions and corresponding answers. The semi-structured data may include questions (Q1, Q2, Q3...), each question having one or more answers (e.g., A1, A2, A3,...). For each answer, corresponding feature information 930 is extracted. In some aspects, a one-to-one mapping may be performed between the question and each answer, along with the features corresponding to that answer. Any other suitable form of information may be used. This information is provided to RL model 115. The RL model ranks each answer based on the provided features and generates policy 950, which may be in the form of a ranked list or in any other suitable form. When a query is generated by the RL software agent, the state is matched with the policy, and a corresponding action is provided to the RL software agent for execution.

[0065] In other embodiments, RL techniques may be combined with heuristic techniques to rank (state, action) pairs of policies.

[0066] FIG. 6B is a flow chart illustrating utilization of the policy information 950 of FIG. 6A developed in a sandbox environment for deployment to a RL system, according to one embodiment of the present invention. The top of the diagram corresponds to training in the sandbox environment. An RL agent 1010 is operating in the sandbox environment and interacts with the environment shell 1020. When a query is generated, a policy match occurs based on the state of the RL agent. An action corresponding to the policy is provided to the RL software agent, which executes the action. Executing the action in the environment shell changes the state of the RL software agent and provides feedback regarding the action to the RL software agent. For example, if the action achieves a goal, the action may be validated or a reward may be provided to reinforce the behavior.

[0067] In a real environment, in response to generating a query, the RL system may match the state of the RL software agent with the states of the policy 950 generated by the RL model. The best action (highest ranked) for the RL software agent 1030 to execute is returned.

[0068] In this example, the NLP engine and RL model process the knowledge base data before generating queries and store the ranked policies in a database.

[0069] Figures 7A-B show example benchmarking and performance evaluation results in a sandbox environment. A sandbox provides an environment for RL model training separate from a production-based or real-world environment. Typically, RL models are trained in the sandbox and tested in the real-world environment. Curated domains including random decision-making agents and optimal planning agents can be used to benchmark the performance and learning rate of RL software agents.

[0070] Figure 7A shows a plot of epoch number versus length of epochs. In Figure 7A, the RL software agent (without a corresponding RL model) initially exhibited a rapid decrease in epoch length, which led to increased learning. This trajectory plateaued and did not appear to converge to an optimal trajectory (e.g., that of the planning agent). In contrast, the RL software agent (with a corresponding RL model) exhibited a similar rapid decrease in epoch length, which continued to decrease until it approached the optimal trajectory.

[0071] Figure 7B shows various agents: a random agent (e.g., strawman), an optimal agent (e.g., planning agent), and an RL software agent. The random agent, based on pure self-exploration in the real-world domain, did not converge fast enough (or at all) as expected when the number of branches was large. In contrast, the RL software agent augmented with a knowledge-based trained RL model had similar performance to the optimal agent. As a result, the RL software agent augmented with external data providing guidance converged or nearly converged to an optimal trajectory.

[0072] FIG. 8 is an operational flow diagram illustrating high level operation of the techniques provided herein. At operation 810, a computer receives access to a knowledge base on topics for RL software agent support. At operation 820, the computer uses information from the knowledge base to train an RL model that supports the RL software agent. At operation 830, the computer tests the trained RL model in a test environment, where the test environment has limited connectivity to the external environment. At operation 840, the RL software agent is deployed in the environment along with the tested and trained RL model to autonomously perform actions and process requests.

[0073] For this, in an aspect, an RL software agent generates a query based on its current state. The RL system matches the query with a (state, action) pair of policies, which are generated by the RL model based on information obtained from a knowledge base. The RL model in combination with other techniques such as NLP may identify the best action based on multiple answers, for example, by processing semi-structured information. The RL software agent executes the action to reach the next state. This process may continue until the goal is achieved.

[0074] The technique improves the behavior of RL software agents because input from an RL model can reduce the training time of the RL software agent. Traditionally, training an RL software agent involves an iterative, computationally intensive process that may not converge to a goal in complex environments.

[0075] Furthermore, RL software agents are configured to operate in dynamic environments, changing state as they perform actions. The technique makes it possible to train RL software agents in dynamic and complex test environments, and to deploy the RL software agents and the trained and tested RL models into real systems.

[0076] A feature of embodiments of the present invention includes augmenting and improving RL software agents using a knowledge database. Based on techniques using domain learning, RL software agents may be evolved in an automated manner. The performance of decision support agents utilizing reinforcement learning may be compared to the performance of an optimal planner for benchmarking purposes.

[0077] The benefits of these technologies include providing fast, scalable, personalized, on-site support, and by using decision agents to address technical support issues, empowering technical support professionals to solve more advanced support issues.

[0078] These techniques may be applied in a wide variety of environments. Any environment in which simulators and training data are available is suitable for use with embodiments of the present invention. Decision support agents may be used to assist in decision making when implementing and configuring software on operating systems, implementing and configuring networks using network simulators, troubleshooting programming techniques based on information from online programming forums, making health-related decisions based on scientific and medical literature, etc.

[0079] This technology provides a novel and low-effort approach to building decision support tools that continuously learn from feedback and past data, which can be used to extend decision support technology to the enterprise and public domains in an efficient and timely manner.

[0080] Additionally, the technique provides continuous, lifelong learning of RL software agents and models while capturing the implicit preferences of a community of users.

[0081] It will be appreciated that the embodiments described above and illustrated in the drawings represent only a few of the many ways in which embodiments for a RL software system may be implemented.

[0082] The environment of embodiments of the invention may include any number of computers or other processing systems (e.g., client or end-user systems, server systems, etc.) and databases or other repositories arranged in any desired manner, and embodiments of the invention may be applied to any desired type of computing environment (e.g., cloud computing, client-server, network computing, mainframe, standalone systems, etc.). The computers or other processing systems utilized by embodiments of the invention may be implemented by any number of any personal or other type of computers or processing systems (e.g., desktop, laptop, PDA, mobile device, etc.) and may include any commercially available operating system and any combination of commercially available and custom software (e.g., browser software, communications software, server software, RL System 15, etc.). These systems may include any type of monitor and input device (e.g., keyboard, mouse, voice recognition, etc.) for entering and / or displaying information.

[0083] It should be understood that the software of embodiments of the present invention (e.g., the RL system 15 including the RL software agent 105, the NLP engine 110, the RL model 115, the domain simulator 120, the performance evaluation engine 125, the query generation engine 130, the query matching engine 135, etc.) may be implemented in any desired computer language and developed by one of ordinary skill in the computer art based on the functional descriptions contained herein and the flowcharts illustrated in the drawings. Furthermore, references herein to software performing various functions generally refer to a computer system or processor performing those functions under software control. Alternatively, the computer system of embodiments of the present invention may be implemented by any type of hardware or other processing circuitry or both.

[0084] The various functions of a computer or other processing system may be distributed in any manner among any number of software and / or hardware modules or units, processing or computer systems and / or circuits, and the computers or processing systems may be located locally or remotely with respect to one another and communicate via any suitable communications medium (e.g., LAN, WAN, intranet, Internet, hardwire, modem connection, wireless, etc.). For example, the functions of embodiments of the invention may be distributed in any manner among various end-user / client and server systems and / or any other intermediate processing devices. The software and / or algorithms described above and illustrated in the flow charts may be modified in any manner that accomplishes the functions described herein. Furthermore, the functions in the flow charts or descriptions may be performed in any order that accomplishes the desired operations.

[0085] The software of embodiments of the present invention (e.g., the RL system 15 including the RL software agent 105, the NLP engine 110, the RL model 115, the domain simulator 120, the performance evaluation engine 125, the query generation engine 130, the query matching engine 135, etc.) may be available on a non-transitory computer-usable medium (e.g., magnetic or optical media, magneto-optical media, flexible diskettes, CD-ROMs, DVDs, memory devices, etc.) of a stationary or portable program product apparatus or device for use in one or more standalone systems connected by a network or other communications medium.

[0086] The communications network may be implemented by any number of any type of communications network (e.g., LAN, WAN, Internet, intranet, VPN, etc.). The computer or other processing system of embodiments of the present invention may include any conventional or other communications device for communicating over the network via any conventional or other protocol. The computer or other processing system may utilize any type of connection (e.g., wired, wireless, etc.) for access to the network. The local communications medium may be implemented by any suitable communications medium (e.g., local area network (LAN), hardwire, wireless link, intranet, etc.).

[0087] The system may utilize any number of any conventional or other databases, data stores or storage structures (e.g., files, databases, data structures, data or other repositories, etc.) to store information (e.g., the RL system 15 including the RL software agents 105, the NLP engine 110, the RL model 115, the domain simulator 120, the performance evaluation engine 125, the query generation engine 130, the query matching engine 135, etc.). The database system may be implemented by any number of any conventional or other databases, data stores or storage structures (e.g., files, databases, data structures, data or other repositories, etc.) to store information (e.g., the knowledge store data 31, the processed Q / A data 32, the policy data 34, etc.). The database system may be included in or coupled to a server system or a client system or both. The database system and / or storage structure may be remote or local to a computer or other processing system and may store any desired data (e.g., knowledge store data 31, processed Q / A data 32, policy data 34, etc.).

[0088] Embodiments of the present invention may utilize any number of any type of user interfaces (e.g., Graphical User Interface (GUI), command line, prompts, etc.) to obtain or provide information (e.g., knowledge store data 31, processed Q / A data 32, policy data 34, etc.), and the interfaces may include any information arranged in any manner. The interfaces may include any number of any type of input or actuation mechanisms (e.g., buttons, icons, fields, boxes, links, etc.) arranged anywhere to enter / display information via any suitable input device (e.g., mouse, keyboard, etc.) and initiate desired actions. Interface screens may include any suitable actuators (e.g., links, tabs, etc.) to navigate between screens in any manner.

[0089] The output of RL15 may include any information arranged in any manner and is configurable based on rules or other criteria to provide the user with desired information (e.g., one or more actions, etc.).

[0090] Embodiments of the present invention are not limited to the specific tasks or algorithms mentioned above, but may be utilized in any application that uses RL software agents to support complex tasks. Furthermore, the present approach is generally applicable to providing support in any context, and is not limited to any particular application domain, such as manufacturing, health, etc.

[0091] The terms used herein are merely for the purpose of describing particular embodiments and are not intended to limit the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural unless the context clearly indicates otherwise. It will be further understood that as used herein, terms such as "comprises", "comprising", "includes", "including", "has", "have", "having", "with" and the like indicate the presence of stated features, integers, steps, operations, elements, or components, or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof, or combinations thereof.

[0092] The corresponding structures, materials, acts, and equivalents of all means or step-plus-function elements in the following claims are intended to include any structures, materials, or acts for performing a function in combination with other claim elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiments have been chosen and described in order to best explain the principles and practical applications of the invention and to enable those skilled in the art to understand the invention in various embodiments with various modifications suitable for the particular use contemplated.

[0093] The description of various embodiments of the present invention is presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used in this specification are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable those skilled in the art to understand the embodiments disclosed in this specification.

[0094] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail integration. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions thereon for causing a processor to carry out aspects of the present invention.

[0095] A computer readable storage medium may be any tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded devices such as punch cards or groove ridge structures having instructions recorded thereon, and any suitable combination thereof. A computer-readable storage medium, as used herein, should not be construed to be a transitory signal per se, such as, for example, radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over a wire.

[0096] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device over a network, such as, for example, the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.

[0097] The computer readable program instructions for carrying out the operations of the present invention may be source or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object oriented programming languages ​​such as Smalltalk®, C++, and procedural programming languages ​​such as the “C” programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or wide area network (WAN), or a connection may be made to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing state information of the computer-readable program instructions to execute the computer-readable program instructions to perform aspects of the invention.

[0098] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0099] These computer readable program instructions may be provided to a processor of a computer or other programmable data processing apparatus to produce a machine such that, when the instructions are executed via the processor of the computer or other programmable data processing apparatus, means are generated for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium capable of directing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer readable storage medium on which the instructions are stored constitutes an article of manufacture including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0100] Furthermore, computer-readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to cause the computer, other programmable apparatus, or other device to perform a series of operational steps, thereby generating a computer-implemented process that, when executed on the computer, other programmable apparatus, or other device, implements the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0101] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or part of instructions that includes one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions described in the blocks may occur out of the order shown. For example, depending on the functionality involved, two blocks shown in succession may in fact be realized as one step, may be executed simultaneously, substantially simultaneously, partially or completely overlapping in time, or the blocks may be executed in reverse order, if necessary. It will also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or acts or executes a combination of dedicated hardware and computer instructions.

Claims

1. 1. A method for configuring a reinforcement learning software agent using data from a knowledge store by a computer, the method comprising: receiving access to said knowledge store regarding topics for software agent support; using information from the knowledge store to train a reinforcement learning model supporting the reinforcement learning software agent; testing the trained reinforcement learning model in a test environment, the test environment having limited connectivity to an external environment; deploying the reinforcement learning software agent along with the tested and trained reinforcement learning model in an environment to autonomously perform actions to process requests; Including, A method, wherein a planning decision agent and a random software agent are used to validate actions learned by the reinforcement learning software agent.

2. A method for configuring a reinforcement learning software agent using data from a knowledge store by a computer, the method comprising: receiving access to said knowledge store regarding topics for software agent support; using information from the knowledge store to train a reinforcement learning model supporting the reinforcement learning software agent; testing the trained reinforcement learning model in a test environment, the test environment having limited connectivity to an external environment; deploying the reinforcement learning software agent along with the tested and trained reinforcement learning model in an environment to autonomously perform actions to process requests; Including, The method, wherein the information from the knowledge store is in a semi-structured format and includes questions along with one or more corresponding answers.

3. The method of claim 2 , wherein the knowledge store comprises information generated by a plurality of users, at least a portion of the information being curated by the plurality of users.

4. providing access to a domain simulator for performing actions by said reinforcement learning software agent in said test environment; The method of any one of claims 1 to 3, further comprising:

5. A method for configuring a reinforcement learning software agent using data from a knowledge store by a computer, the method comprising: receiving access to said knowledge store regarding topics for software agent support; using information from the knowledge store to train a reinforcement learning model supporting the reinforcement learning software agent; testing the trained reinforcement learning model in a test environment, the test environment having limited connectivity to an external environment; deploying the reinforcement learning software agent along with the tested and trained reinforcement learning model in an environment to autonomously perform actions to process requests; Including, The method of claim 1, wherein the knowledge store includes features that are used by the reinforcement learning model to rank the information provided in the knowledge store.

6. The method of claim 5 , wherein the features include one or more of: upvotes, downvotes, author name, author title, or author status.

7. A method for configuring a reinforcement learning software agent using data from a knowledge store by a computer, the method comprising: receiving access to said knowledge store regarding topics for software agent support; using information from the knowledge store to train a reinforcement learning model supporting the reinforcement learning software agent; testing the trained reinforcement learning model in a test environment, the test environment having limited connectivity to an external environment; deploying the reinforcement learning software agent along with the tested and trained reinforcement learning model in an environment to autonomously perform actions to process requests; Including, The method of claim 1, wherein the reinforcement learning model ranks the information in the knowledge store based on user preferences.

8. Generating a query; matching the query with states of a policy generated by the reinforcement learning model, each state having a corresponding action; executing, by the reinforcement learning software agent, the action returned from the matched policy; and The method of any one of claims 1 to 7, further comprising:

9. receiving a reward based on the reinforcement learning software agent's performance of the action if the action resolves the query. The method of claim 8 , further comprising:

10. updating the policies generated by the reinforcement learning model to include questions and answers added to the knowledge store at a fixed or dynamic frequency. The method of any one of claims 1 to 9, further comprising:

11. 1. A computer system for accommodating processing of expressions via a command line interface, comprising: one or more computer processors; one or more computer readable storage media; a computer program stored on said one or more computer-readable storage media; by at least one of the one or more computer processors in response to instructions of the computer program, receiving access to a knowledge store of topics for software agent support; using information from the knowledge store to train a reinforcement learning model supporting a reinforcement learning software agent; testing the trained reinforcement learning model in a test environment, the test environment having limited connectivity to an external environment; deploying the reinforcement learning software agent along with the tested and trained reinforcement learning model within an environment to autonomously perform actions to process requests; Do the following: A computer system, wherein a planning decision agent and a random software agent are used to validate actions learned by the reinforcement learning software agent.

12. 12. The computer system of claim 11, wherein the information from the knowledge store is in a semi-structured format and includes questions along with one or more corresponding answers.

13. 13. The computer system of claim 12, wherein the knowledge store comprises information generated by a plurality of users, at least a portion of the information being curated by the plurality of users.

14. by at least one of the one or more computer processors; 14. The computer system of claim 11, further comprising: providing access to a domain simulator for performing actions by the reinforcement learning software agent in the test environment.

15. 15. The computer system of claim 11, wherein the knowledge store includes features used by the reinforcement learning model to rank the information provided in the knowledge store, the features including one or more of upvotes, downvotes, author name, author title, or author status.

16. by at least one of the one or more computer processors; Generating a query; matching the query with states of a policy generated by the reinforcement learning model, each state having a corresponding action; executing, by the reinforcement learning software agent, the action returned from the matched policy; and receiving a reward based on the reinforcement learning software agent's performance of the action if the action resolves the query; and 16. The computer system of claim 11, further comprising:

17. A computer program for adapting the processing of expressions by a command line interface, the computer program being configured to, when executed by a computer, cause the computer to carry out a method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Learning system, simulation device, and learning method

    JP2012038287A

  • Dialogue system, dialogue method and dialogue program

    JP2018185565A