The present invention relates to artificial intelligence, and more particularly to employing smart graphs for decision making.
Large-scale pretrained language models (PLMs) learn to implicitly encode basic knowledge about the world by training on an extremely large collection of general text corpus and refining on downstream datasets, which have recently taken over as the primary paradigm in natural language processing (NLP). Although pretrained language models (PLMs) have excelled in many downstream tasks, it has been determined that they can face two major cruxes in reasoning-related tasks: 1) pretrained language models (PLMs) frequently encounter difficulties when the required knowledge is absent from the training corpus or the test instances are not formulated as question-answering format, and 2) pretrained language models (PLMs) base their predictions on implicitly encoded knowledge that is incapable of handling structured reasoning and does not offer explanations for the chosen response.
According to an aspect of the present invention, a method is provided for optimized decision support. In one embodiment, the computer-implemented method for decision support includes labeling text data extracted from an inquiry; and linking labeled text to a knowledge graph entity. The computer-implemented method may further include retrieving knowledge graph reasoning paths from the knowledge graph entity. The computer implemented method may further include removing irrelevant knowledge graph reasoning paths using a language model trained artificial intelligence consistent with the labeling of the text data. Finally, the computer implemented method can employ remaining relevant knowledge graphs to an answer prediction to the inquiry.
According to another aspect of the present invention, a system is provided for optimized decision support. The system may include a hardware processor; and a memory that stores a computer program product. The computer program product when executed by the hardware processor, causes the hardware processor to label text data extracted from an inquiry; and link labeled text to a knowledge graph entity. The computer program product can also retrieve, using the hardware processor knowledge graph reasoning paths from the knowledge graph entity; and can remove irrelevant knowledge graph reasoning paths using a language model trained artificial intelligence consistent with the labeling of the text data. Finally, using the hardware processor, the system can also employ the remaining relevant knowledge graphs to provide an answer prediction to the inquiry.
According to yet another embodiment of the present invention, a computer program product for optimized decision making is described. The computer program product includes a computer readable storage medium having computer readable program code embodied therewith. The program instructions are executable by a processor to cause the processor to label text data extracted from an inquiry; and link labeled text to a knowledge graph entity. The computer program product can also retrieve, using the hardware processor knowledge graph reasoning paths from the knowledge graph entity; and can remove irrelevant knowledge graph reasoning paths using a language model trained artificial intelligence consistent with the labeling of the text data. Finally, the computer program product can also employ the remaining relevant knowledge graphs to provide an answer prediction to the inquiry.
These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:
In accordance with embodiments of the present invention, systems and methods are provided to approach open domain common sense reasoning via an external knowledge base. For example, given a natural text question (also known as inquiry), the computer implemented methods, systems and computer program products of the present disclosure can answer the question without providing any answer candidates and fine tuning examples. The computer implemented methods, systems and computer program products provide optimized decision making that employs artificial intelligence principles that can be suitable for application in healthcare, medical care, physical care and disease treatment, etc.
The computer implemented methods, systems and computer program products, we focus on the open-domain common sense reasoning task, which includes that the machine learning model makes a presumptions about the type and essence of ordinary situations without presenting any answer candidates and finetuning examples, e.g., without the multiple-choice question and answer scenarios identified by reference number 51 in
The computer implemented methods, systems and computer program products described herein leverages neural language models to iteratively retrieve reasoning chains on an external knowledge base, which does not require task-specific supervision, e.g., does not require training using candidate answers with a multiple choice format. The reasoning chains can help to identify the most precise answer to the common sense question and its corresponding knowledge statements to justify the answer choice.
Referring back to
For example, the inquiries may be for decision support in running a medical facility, a pharmacy, or a rehabilitation center. In some examples, the inquiries may be decision treatment on patients. In some examples, the inquiries may be entered by a health care professional that is using the computer implemented methods and systems to obtain information about medicines or treatments for patients and to do medical interviews. In some examples, the inquiries may be entered be entered by a patient that is using the system to obtain information about medicines or treatments that are prescribed to them, such as cancer treatments. The computer implemented methods, systems and computer program products that are described herein can also be used to support the user in decision making applications. For example, medical professionals can decide medicines or treatments for patients dealing with sickness. Patients can decide whether they agree with prescribed medicines or treatments.
In the example depicted in
In the example depicted in
In the example depicted in
Referring first to block 101, the computer implemented methods, systems and computer program products described herein can leverage knowledge that connects words and phrases of natural language with labeled edges to extract a set of critical entities from the text question that have the surjective mapping to nodes in a knowledge graph. A “knowledge graph”, also known as a semantic network, represents a network of real-world entities—i.e. objects, events, situations, or concepts—and illustrates the relationship between them. This information is usually stored in a graph database and visualized as a graph structure, prompting the term knowledge “graph.” A knowledge graph is made up of three main components: nodes, edges, and labels. Any object, place, or person can be a node. An edge defines the relationship between the nodes. Block 101 of
Referring to block 102 of
Referring to block 103 of
Referring back to block 1 of
In some embodiments, the functions described by block 1 of
In some embodiments, the computer implemented methods can solve open-domain common sense reasoning questions using knowledge from a pre-trained language (PLM) and a structured knowledge graph G. The knowledge graph G=(V, E) is a multi-relational graph, where V is the set of entity nodes, E⊆V×R>V is the set of edges that connect nodes in V, where R represents a set of relation types.
In some embodiments, for open-domain commonsense reasoning questions q (i.e., given a question q without providing answer candidates), the target of this work is to determine 1) a local knowledge graph Gq∈G contains relevant information of q; 2) a set of knowledge statements k={k1, k2, . . . , km}; and 3) an entity â extracted from k that is precise to answer the question q.
For example, to answer the opendomain common sense question “what do people aim to do at work?”, the systems first aim at first extracting all plausible knowledge statements from the external knowledge base that can provide logical information to answer the question. Starting with concept extraction and mapping, the questions concepts may be “people”, “work”, and “aim”. These provide the initial entities identified by reference number 62 in
P(â,k|q,Gq)=P(k|q,Gq)·P(â|k) Equation (1)
Referring to block 2 of
In some embodiments, knowledge graph entity linking can include a knowledge graph that can enables a variety of useful context-oriented reasoning tasks over realworld texts, which provides structured knowledge in the open-domain common sense reasoning task.
To reason over a given common sense context using knowledge from both the pretrained learning model (PLM) and the knowledge graph G, the first step of the framework is to extract the set of critical entities cq={cq(1), . . . , cq(i), . . . } from the question q that have the surjective mapping to nodes Vq∈V in the knowledge graph. Because the question q is often presented in the form of non-canonicalized text and contains fixed phrases, the computer implemented methods and systems can map informative entities cq from the question q to conjunct concept entities in the knowledge graph by leveraging the latent representation of the query context and relational information stored in G.
Further, the functions described by block 2 of
Referring to block 3 of
Referring to block 3 of
In some embodiments, each path in Gq can be regarded as a reasoning chain that helps to locate the most precise answer and its explanation to the question q. However, expanding L-hop subgraph Gq from cq is computationally prohibited. The open-domain common sense reasoning problem does not provide any directions. More specifically, in some embodiments, the open-domain common sense reasoning problem does not provide any answer candidates. The typical node size of a 3-hop local knowledge graph with |cq|=3 could easily reach 1,000 on a knowledge graph.
Further, the functions described by block 3 of
Referring to block 4 of
In some embodiments, the computer implemented methods and systems pair the question q with the text of node v along with the reasoning-path-transformed knowledge statement to form a doze-based prompt W=[q; vj;(vi, rij, vj)] in order to turn the local graph expansion problem into an explicit reasoning procedure by directly answering the question with explanation.
For example, in
A reasoning path is depicted by reference number 60 for the example questions “What do people aim to do at work?” 67. Note that the computer implemented methods and systems can leverage a predefined template to transform the triplet (vi, rij, vj) 66 into natural language, e.g., relational text as illustrated in the table having reference number 68. In some examples, the relational graph 55 contains lots of relations, and some of them share similar meanings, e.g., both antonym and distinct from have the same meaning antonym, as illustrated in the table having reference number 68.
The computer implemented methods and systems can employ predefine templates, such as those in table 68, to transform the reasoning path triplets into natural language. For example, (work, antonym, unemployment) can be translated to work is the antonym of unemployment. The table identified by reference number 68 also illustrates a few examples of the merged types and templates in
Referring back to removing irrelevant knowledge graph reasoning paths in accordance with block 4 of
For example, when the logical sentence W consists of N words W={ω1, ωn−1, ωn, ωn+1, . . . , ωN}, the common sense score ϕl(W) of the logical sentence W composed at l-th hop expansion can be defined as:
ϕl(W):=Σn=1N log(pθ(ωn|W\n))/N Equation (2)
where the W\n indicates the masked knowledge statement by replacing the token ωn to the mask, and the denominator N reduces the influence of the sentence length on the score prediction. Intuitively, log (p74 (ωn|W\n)) can be interpreted as how probable a word ωn given the context. For example, by filling blue and red into the masked logical statement W\n=The sky is [MASK], blue should have a higher score.
As the computer implemented methods and systems iteratively expand Gq, each ϕl(W) scores a unique reasoning path at a particular l∈[1, L] depth in the graph. In some embodiments, a higher score ϕl(W) indicates the node vj should be kept for the next (l+1) hop expansion.
Turning to block 5 of
In some embodiments, after the subgraph G q consisting of all reasoning paths within L-hop with a high common sense score is obtained, all of the reasoning paths 60 can be regarded as the supporting knowledge explanation. The final step can be to make the answer prediction. In some embodiments, beam search can be employed to only keep high-confidence reasoning paths and transform them into natural language by the designed template in the set of knowledge statements k during the retrieval phase. Starting from each entity in question concepts c a , each reasoning path within L-hop neighbor can then be seen as scoring a path to a particular answer node.
where a is the set of all explored answer candidates, and the ϕL denotes the final score for each answer and can be interpreted as approximating the likelihood of answer a given a singular reasoning path {c→v1→v2→ . . . →a}. The methods and systems can thus provide the answer â and its explanation {circumflex over (k)} with the highest score as the final answer and supporting knowledge.
Referring back to the example depicted in
It is noted that the example described in the preceding paragraph is only one example, and the present disclosure is not limited to only that example. In some embodiments, the answer prediction 19 is selected from the group consisting of stocking medications according to composition, assigning office locations by job function according to application of medical buildings, and treatment assignment to diagnosis characteristics. Referring back to
In one embodiment, the computer implemented methods and systems described with reference to
Referring now to
The contents of the data storage 540 when executed by the hardware processor 510, causes the hardware processor 510 to label text data extracted from an inquiry; link labeled text to a knowledge graph entity; and retrieve from the knowledge graph reasoning paths. The entity extractor 541 may perform the step of label text data being extracted from an inquiry. The knowledge graph expansion generator 542 can perform the steps of linking labeled text to a knowledge graph entity; and retrieving from the knowledge graph reasoning paths. There functions are described in greater detail above in block 102 of
The computing device 500 may be embodied as any type of computation or computer device capable of performing the functions described herein, including, without limitation, a computer, a server, a rack based server, a blade server, a workstation, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor-based system, and/or a consumer electronic device. Additionally or alternatively, the computing device 500 may be embodied as one or more compute sleds, memory sleds, or other racks, sleds, computing chassis, or other components of a physically disaggregated computing device.
As shown in
The processor 510 may be embodied as any type of processor capable of performing the functions described herein. The processor 510 may be embodied as a single processor, multiple processors, a Central Processing Unit(s) (CPU(s)), a Graphics Processing Unit(s) (GPU(s)), a single or multi-core processor(s), a digital signal processor(s), a microcontroller(s), or other processor(s) or processing/controlling circuit(s).
The memory 530 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein. In operation, the memory 530 may store various data and software used during operation of the computing device 500, such as operating systems, applications, programs, libraries, and drivers. The memory 530 is communicatively coupled to the processor 510 via the I/O subsystem 520, which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 510, the memory 530, and other components of the computing device 500. For example, the I/O subsystem 520 may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, platform controller hubs, integrated control circuitry, firmware devices, communication links (e.g., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.), and/or other components and subsystems to facilitate the input/output operations. In some embodiments, the I/O subsystem 520 may form a portion of a system-on-a-chip (SOC) and be incorporated, along with the processor 510, the memory 530, and other components of the computing device 500, on a single integrated circuit chip.
The data storage device 540 may be embodied as any type of device or devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid state drives, or other data storage devices. The data storage device 540 can store program code for the entity extractor 541, the knowledge graph expansion generator 542, and the knowledge predictor 543.
Any or all of these program code blocks may be included in a given computing system. The communication subsystem 550 of the computing device 500 may be embodied as any network interface controller or other communication circuit, device, or collection thereof, capable of enabling communications between the computing device 500 and other remote devices over a network. The communication subsystem 550 may be configured to use any one or more communication technology (e.g., wired or wireless communications) and associated protocols (e.g., Ethernet, InfiniB and®, Bluetooth®, Wi-Fi®, WiMAX, etc.) to effect such communication.
As shown, the computing device 500 may also include one or more peripheral devices 560. The peripheral devices 560 may include any number of additional input/output devices, interface devices, and/or other peripheral devices. For example, in some embodiments, the peripheral devices 560 may include a display, touch screen, graphics circuitry, keyboard, mouse, speaker system, microphone, network interface, and/or other input/output devices, interface devices, and/or peripheral devices.
Of course, the computing device 500 may also include other elements (not shown), as readily contemplated by one of skill in the art, as well as omit certain elements. For example, various other sensors, input devices, and/or output devices can be included in computing device 500, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art. For example, various types of wireless and/or wired input and/or output devices can be used. Moreover, additional processors, controllers, memories, and so forth, in various configurations can also be utilized. These and other variations of the processing system 500 are readily contemplated by one of ordinary skill in the art given the teachings of the present invention provided herein.
Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For example, a computer program product may be provided for decision support. The computer program product may a computer readable storage medium having computer readable program code embodied therewith, the program instructions executable by a processor to cause the processor to label text data extracted from an inquiry; and link labeled text to a knowledge graph entity. The computer program product can also retrieve, using the processor, from the knowledge graph reasoning paths; and remove, using the processor, irrelevant knowledge graph reasoning paths using a language model trained consistent with the labeling of the text data. The computer program product can also employ, using the processor, remaining relevant graph reasoning paths to provide an answer prediction.
A computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. The medium may include a computer-readable storage medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc.
Each computer program may be tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be embodied in a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein.
A data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code to reduce the number of times code is retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) may be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
As employed herein, the term “hardware processor subsystem” or “hardware processor” can refer to a processor, memory, software or combinations thereof that cooperate to perform one or more specific tasks. In useful embodiments, the hardware processor subsystem can include one or more data processing elements (e.g., logic circuits, processing circuits, instruction execution devices, etc.). The one or more data processing elements can be included in a central processing unit, a graphics processing unit, and/or a separate processor- or computing element-based controller (e.g., logic gates, etc.). The hardware processor subsystem can include one or more on-board memories (e.g., caches, dedicated memory arrays, read only memory, etc.). In some embodiments, the hardware processor subsystem can include one or more memories that can be on or off board or that can be dedicated for use by the hardware processor subsystem (e.g., ROM, RAM, basic input/output system (BIOS), etc.).
In some embodiments, the hardware processor subsystem can include and execute one or more software elements. The one or more software elements can include an operating system and/or one or more applications and/or specific code to achieve a specified result.
In other embodiments, the hardware processor subsystem can include dedicated, specialized circuitry that performs one or more electronic processing functions to achieve a specified result. Such circuitry can include one or more application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and/or programmable logic arrays (PLAs).
These and other variations of a hardware processor subsystem are also contemplated in accordance with embodiments of the present invention.
Reference in the specification to “one embodiment” or “an embodiment” of the present invention, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment. However, it is to be appreciated that features of one or more embodiments can be combined given the teachings of the present invention provided herein.
It is to be appreciated that the use of any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and/or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended for as many items listed.
The foregoing is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the present invention and that those skilled in the art may implement various modifications without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.
This application claims priority to 63/424,516, filed on Nov. 11, 2022, incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
63424516 | Nov 2022 | US |