Method and system for generating answer
The answer generation system adaptively processes user queries based on modality type, reducing noise and computational resources while enhancing accuracy by using an AI model to analyze and generate high-quality answers in multimodal environments.
Patent Information
- Application Number
- PCT/KR2026/006213
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2026-05-18
- Filing Date
- 2026-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Existing technologies struggle to effectively understand and respond to queries in environments containing various modalities such as text, images, and charts, leading to inefficiencies and inaccuracies in answer generation.
An answer generation method and system that utilizes an artificial intelligence model to analyze user queries, determine whether they are single-modal or cross-modal, and adaptively select and process relevant modalities using expert models to generate high-quality answers.
This approach minimizes noise, reduces computational resources, and improves answer accuracy by selectively processing relevant modalities, ensuring efficient and reliable responses to user queries in multimodal environments.
Smart Images

Figure KR2026006213_26112026_PF_FP_ABST
Abstract
Description
Answer generation method and system
[0001] The present invention relates to a method and system for generating answers, and provides a method and system for generating answers using an artificial intelligence model.
[0002] Artificial intelligence can be defined as a technology that realizes human learning, reasoning, perceptual, and natural language understanding abilities into computer programs. This artificial intelligence has achieved rapid development through deep learning.
[0003] In particular, driven by the advancement of artificial intelligence, various language models have been developed. These models have reached a level where they not only recognize text and understand its meaning but also extract and classify information from vast amounts of text-based data, such as documents, and even generate text directly.
[0004] These language models are actively utilized in various fields and exist in diverse areas where text-based tasks can be performed, such as search engines, document creation (e.g., resume writing, report writing, posting, etc.), free conversation on various topics, data parsing from given text (e.g., data summarization, classification, etc.), provision of expertise, programming, and converting given sentences into sentences of an appropriate style.
[0005] In this regard, Large Language Models (LLMs) have recently emerged, which understand and generate human language through prior training on vast amounts of text data. Unlike traditional chatbots, which are manually built and provide only limited answers, LLMs are demonstrating innovation in the artificial intelligence market by showcasing technological capabilities that allow them to communicate naturally, almost like humans, and provide fast and accurate information.
[0006] Meanwhile, research to extend large-scale language models to recognize various modalities has recently been actively underway. In particular, information is conveyed not only through text but also through various modalities. Many documents include images to aid understanding or provide visual evidence, and charts are utilized to effectively represent data trends or when it is difficult to present numerical data in a table format. For example, the Pew Research Center uses images and charts alongside text when publishing articles related to public opinion polls, demographic studies, and data-driven social science research.
[0007] Therefore, in environments containing various modalities (e.g., images, charts, text, etc.), there is a need for technology that can understand these modalities and respond effectively to queries.
[0008] The present invention is intended to provide an answer generation method and system capable of understanding various content and generating high-quality answers to queries based thereon.
[0009] More specifically, the present invention is intended to provide an answer generation method and system capable of understanding various modalities and generating high-quality answers to queries in an environment containing various modalities.
[0010] In addition, the present invention is intended to provide an answer generation method and system capable of generating high-quality answers to queries by understanding various modalities.
[0011] Furthermore, the present invention aims to provide an answer generation method and system capable of improving the quality of answers generated for various queries.
[0012] Furthermore, the present invention aims to provide an answer generation method and system capable of generating high-quality answers to various types of queries related to documents.
[0013] Furthermore, the present invention aims to provide an answer generation method and system capable of adaptively selecting a modality to be used for answer generation according to the type of user query, and generating an answer that matches the user query by utilizing an expert model corresponding to the selected modality.
[0014] To solve the problem described above, the answer generation method according to the present invention presents data processing that is performed by a computer and uses an artificial intelligence model to generate an answer to a user query related to a document. More specifically, the answer generation method according to the present invention comprises: a step of specifying at least one document including a plurality of modalities; a step of extracting data from each of the plurality of modalities based on a feature extraction method corresponding to different data characteristics having the plurality of modalities; a step of receiving a user query regarding the document; a step of analyzing the user query to determine whether the user query corresponds to a single modal query related to a single modality among the plurality of modalities or a cross-modal query related to cross-inference between multimodalities among the plurality of modalities; a step of determining at least one expert model among a plurality of expert models to be activated for processing the user query based on the determination result; a step of inputting data corresponding to the determined expert model among the data extracted from each of the plurality of modalities to an artificial intelligence model including the determined expert model; and an output result output from the artificial intelligence model, and using the output result, either a single modal answer corresponding to the single modal query or a cross-modal answer corresponding to the cross-modal query to the user query It may include steps to generate an answer to.
[0015] In an embodiment, the step of specifying the modality may include the step of calculating the importance of each of the plurality of modalities based on the association between each of the plurality of modalities and the user query, and the step of specifying the modality among the plurality of modalities that satisfies the preset criteria based on the importance and at least one of the modality application policy.
[0016] In an embodiment, the step of calculating importance may calculate the importance for each of the plurality of modalities based on the similarity between the query expression and the data extracted from each of the plurality of modalities, and the step of generating a query expression related to the user query.
[0017] In an embodiment, the user query is associated with either a single modality or a multimodality among the plurality of modalities, and the modality application policy may be generated based on a selection for the single modality or the multimodality.
[0018] In an embodiment, in the step of generating the modality application policy, the user query is analyzed to determine whether the user query is related to either the single modality or the multi-modality, and the modality application policy can be generated based on the determination.
[0019] In an embodiment, the user query may include at least one of the single modal query related to the single modality among the plurality of modalities and the cross-modal query related to cross-inference between the multi-modalities among the plurality of modalities.
[0020] In an embodiment, in the step of generating the modality application policy, the user query is analyzed to determine whether the user query is related to either a single modal query or a cross-modal query, and the modality application policy can be generated based on the determination.
[0021] In an embodiment, in the step of generating the modality application policy, if the user query is related to the single modal query, the modality application policy related to the single modality among the plurality of modalities can be generated.
[0022] In an embodiment, the generation of the modality application policy associated with the single modality may include the step of determining an identifier for the single modality to be used in the answer to the user query based on the data characteristics of the single modality.
[0023] In an embodiment, in the step of generating the modality application policy, if the user query is related to the cross-modal query, the modality application policy related to the multi-modality among the plurality of modalities can be generated.
[0024] In an embodiment, the generation of the modality application policy related to the multimodality may include the step of determining a set of identifiers for the multimodality to be used for cross-inference between the multimodalities based on the data characteristics of each of the multimodalities.
[0025] In an embodiment, the modality application policy includes at least one of a single modality application policy related to a single modality among the plurality of modalities and a cross-modality application policy related to cross-inference between multiple modalities among the plurality of modalities, and in the specifying step, in order to generate an answer to the user query, the modality satisfying the preset criteria among the plurality of modalities can be specified based on the generated modality application policy.
[0026] In an embodiment, when the single modality application policy is generated, in the specifying step, one specific modality satisfying the preset criteria among the plurality of modalities is specified based on the single modality application policy, and in the step of generating the answer, an answer to the user query can be generated using the data extracted from the specific modality among the data extracted from each of the plurality of modalities.
[0027] In an embodiment, in the step of generating the answer, the data extracted from the specific modality and the user query can be input into an artificial intelligence model to generate an answer to the user query.
[0028] In an embodiment, when the cross-modality application policy is generated, in the specifying step, a plurality of specific modalities satisfying the preset criteria among the plurality of modalities are specified based on the cross-modality application policy, and in the step of generating the answer, an answer to the user query can be generated using the data extracted from the plurality of specific modalities among the data extracted from each of the plurality of modalities.
[0029] In an embodiment, in the step of generating the answer, the data extracted from the plurality of specific modalities and the user query can be input into an artificial intelligence model to generate an answer to the user query.
[0030] In the embodiment, in the extraction step, the data can be extracted from each of the plurality of modalities using at least one preset feature extraction method.
[0031] In an embodiment, in the step of generating the answer, at least one of the user query, the data extracted from the specified modality, and the importance of the specified modality may be input into an artificial intelligence model to generate an answer to the user query.
[0032] Meanwhile, the answer generation system according to the present invention may include a memory configured to store executable instructions, and at least one processor connected to the memory and configured to execute at least one computer-readable program included in the memory. The memory further stores an artificial intelligence model trained to process feature data extracted from each of the plurality of modalities through a plurality of encoder modules corresponding to the plurality of modalities and to generate a response to a user input based on the processing result; the at least one processor is configured to receive a document containing a plurality of modalities from a document collection module and to receive a user query regarding the document from a query processing module; the feature extraction module is configured to acquire feature data from each of the plurality of modalities based on a feature extraction method corresponding to different data characteristics of the plurality of modalities; the modality selection module is configured to select at least one modality among the plurality of modalities that satisfies a preset criterion according to a modality application policy determined based on the user query and at least one modality among the plurality of modalities; and the response generation module may be configured to input the feature data corresponding to the selected modality into the artificial intelligence model and obtain a response to the user query from the artificial intelligence model.
[0033] Meanwhile, the learning method of an artificial intelligence model according to the present invention may be performed by a computer. The learning method may include the step of obtaining a learning data set including a document containing a plurality of modalities, a learning query for the document, and a correct answer for the learning query; the step of classifying the learning data set into a first learning data set in which the learning query corresponds to a single modal query and a second learning data set in which the learning query corresponds to a cross-modal query; the first learning step of training the artificial intelligence model to output an answer corresponding to a single modality for the single modal query using the first learning data set; and the second learning step of training the artificial intelligence model to output an answer based on cross-inference between multimodalities for the cross-modal query using the second learning data set. Additionally, the artificial intelligence model may include a plurality of encoder modules as inputs, which are trained based on a feature extraction method corresponding to the data characteristics of each of the plurality of modalities.
[0034] Meanwhile, the answer generation method according to the present invention may be implemented in various embodiments as follows, in addition to the configurations described in the claims below.
[0035] In one embodiment, the answer generation method according to the present invention may further include the steps of specifying at least one document including the plurality of modalities, extracting data from each of the plurality of modalities, and receiving a user query regarding the document, and specifying at least one modality among the plurality of modalities that is related to the user query. The step of specifying the modality may include the step of identifying at least one modality among the plurality of modalities that satisfies a preset criterion based on a determination result regarding whether the user query corresponds to a single modal query or a cross-modal query.
[0036] In an embodiment, in the answer generation method according to the present invention, the artificial intelligence model may include a plurality of encoder modules corresponding to a plurality of modalities and a pre-trained Large Language Model (LLM). The step of inputting data into the artificial intelligence model including the determined expert model may include the step of inputting feature data extracted by at least one encoder module corresponding to the determined expert model among the plurality of encoder modules into the pre-trained Large Language Model.
[0037] In one embodiment, the answer generation method according to the present invention may further include the step of dynamically configuring a data transmission path within an artificial intelligence model based on the classification result of the user query, such that when the user query is determined to be a single modal query, a first feature data corresponding to a first modality is transmitted through a first path to a first expert model, and when the user query is determined to be a cross-modal query, the first feature data corresponding to the first modality and the second feature data corresponding to the second modality are branched and transmitted to a plurality of expert models through a cross-inference path.
[0038] In an embodiment, the step of determining at least one expert model may be configured to omit data processing corresponding to an expert model that is not subject to activation among the plurality of expert models, thereby reducing at least one of the usage of computational resources and inference processing time compared to the case where all of the plurality of expert models are activated to generate an answer.
[0039] In an embodiment, the modality application policy may be configured to reduce the number of data processing paths involved in answer generation by adaptively adjusting at least one of the number of expert models and the number of modalities involved in answer generation according to the classification result of the user query.
[0040] In an embodiment, the similarity between the query expression and the data extracted from each of the plurality of modalities can be calculated based on at least one of cosine similarity, inner product similarity, Euclidean distance-based similarity, and attention weight-based similarity.
[0041] In an embodiment, the plurality of professional models may include at least two of a vision encoder-based professional model corresponding to an image modality, a chart parsing professional model corresponding to a chart modality, and a language model-based professional model corresponding to a text modality.
[0042] In an embodiment, by performing the first learning step and the second learning step, the artificial intelligence model may be trained to have a branching architecture configured to activate a processing path corresponding to a single modality data upon input of a single modal query, and to activate a cross-inference path between multiple modality data upon input of a cross-modal query.
[0043] Meanwhile, the answer generation method according to the present invention may be implemented to be executed by instructions stored in a non-transitory computer-readable storage medium. That is, in one embodiment, the present invention may be implemented as a non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of: specifying at least one document including a plurality of modalities; extracting data from each of the plurality of modalities; receiving a user query regarding the document; determining whether the user query corresponds to either a single modal query or a cross-modal query; determining at least one professional model to be activated among a plurality of professional models based on the determination result; inputting data corresponding to the determined professional model into an artificial intelligence model including the determined professional model; and generating an answer to the user query using an output result output from the artificial intelligence model.
[0044] As described above, according to the answer generation method and system of the present invention, it is possible to determine whether a user query corresponds to either a single-modal query or a cross-modal query, and to determine at least one expert model among a plurality of expert models to be activated based on the determination result. Furthermore, the present invention inputs data corresponding to the determined expert model into an artificial intelligence model to generate either a single-modal answer corresponding to the single-modal query or a cross-modal answer corresponding to the cross-modal query as an answer to the user query. Through this, the present invention can minimize noise caused by unnecessary information during the answer generation process by selectively processing data of the modality associated with the user query, and can generate an accurate and highly reliable answer to the user query.
[0045] Furthermore, according to the answer generation method and system of the present invention, the importance of each of the plurality of modalities is calculated based on the correlation between each of the plurality of modalities and the user query, and a modality satisfying a preset standard can be identified based on the importance and the modality application policy. Through this, the present invention can accurately identify supporting data that corresponds to the intent of the user query even in documents containing various modalities. In addition, the present invention can ensure consistency in answer quality by preserving information on key modalities that substantially contribute to answer generation so that it is not lost.
[0046] Furthermore, according to the answer generation method and system of the present invention, it is possible to analyze whether a user query is a single-modal query related to a single modality or a cross-modal query related to cross-inference between multiple modalities, and adaptively generate a corresponding modality application policy. Through this, the present invention can generate optimized answers for various types of user queries.
[0047] Furthermore, according to the answer generation method and system of the present invention, when a user query corresponds to a single modal query, an answer can be generated using data extracted from a single modality. Additionally, when a user query corresponds to a cross-modal query, the present invention can generate an answer by combining data extracted from multiple specific modalities. That is, the present invention can effectively perform both information search within a single modality and cross-inference between multiple modalities, thereby broadly expanding the scope of application for question-answering regarding multimodal documents.
[0048] Furthermore, according to the answer generation method and system of the present invention, the professional model activated and the modality processed are adaptively selected according to the type of user query, thereby reducing at least one of the usage of computational resources, memory occupancy, and inference processing time compared to the case where encoders and professional models for all modalities are executed in batches. This effect can provide technical improvements in terms of the efficiency of hardware resource utilization of a computing system, for example, in terms of memory occupancy and inference latency of a graphics processing unit (GPU).
[0049] Furthermore, the answer generation method and system according to the present invention can enable specialized processing for each modality compared to a structure that processes all modalities collectively with a single model by adopting an architecture that branches the data flow into a plurality of encoder modules and a plurality of specialized models corresponding to each of a plurality of modalities. This branching architecture enables feature extraction and processing that corresponds to the data characteristics of each modality, thereby achieving at least one of improvement in answer quality and improvement in system processing efficiency.
[0050] FIG. 1 illustrates an example of a block diagram of a computing system in which the present invention can be implemented.
[0051] FIG. 2 illustrates an example of a block diagram of a computing device that may be included in a user computing device, a server computing system, and a training computing system, as an embodiment of a computing system in which the present invention can be implemented.
[0052] Figure 3 illustrates an example of a block diagram from another perspective of a computing device, which is one of the components of a computing system.
[0053] FIG. 4 is a conceptual diagram illustrating an answer generation system according to the present invention.
[0054] FIGS. 5A, FIGS. 5B, FIGS. 5C, FIGS. 5D, and FIGS. 5E are conceptual diagrams for explaining a data processing method of an answer generation system according to the present invention.
[0055] FIGS. 6a, FIGS. 6b, FIGS. 6c, FIGS. 7a, and FIGS. 7b are conceptual diagrams for explaining the learning method of an artificial intelligence model used in the present invention.
[0056] FIGS. 8A, FIGS. 8B, and FIGS. 8C are drawings illustrating examples of generating answers to questions through an artificial intelligence model trained using the learning method according to the present invention.
[0057] FIGS. 9a and 9b are drawings illustrating examples of generating answers to various types of inquiries about documents in the present invention.
[0058] FIG. 10 is a flowchart illustrating a method for generating an answer according to the present invention.
[0059] FIGS. 11, FIGS. 12, FIGS. 13, FIGS. 14 and FIGS. 15 are conceptual diagrams for explaining a method for generating answers according to the present invention.
[0060] Hereinafter, embodiments disclosed in this specification will be described in detail with reference to the attached drawings. Identical or similar components are assigned the same reference number regardless of the drawing symbols, and redundant descriptions thereof will be omitted. The suffixes "module" and "part" used for components in the following description are assigned or used interchangeably solely for the ease of drafting the specification and do not have distinct meanings or roles in themselves. Furthermore, in describing the embodiments disclosed in this specification, if it is determined that a detailed description of related prior art could obscure the essence of the embodiments disclosed in this specification, such detailed description will be omitted. Additionally, the attached drawings are intended only to facilitate understanding of the embodiments disclosed in this specification; the technical concept disclosed in this specification is not limited by the attached drawings, and it should be understood that they include all modifications, equivalents, and substitutions that fall within the spirit and technical scope of the present invention.
[0061] Terms including ordinal numbers, such as first, second, etc., may be used to describe various components, but said components are not limited by said terms. These terms are used solely for the purpose of distinguishing one component from another.
[0062] When it is stated that one component is "connected" or "connected" to another component, it should be understood that while it may be directly connected or connected to that other component, there may also be other components in between. On the other hand, when it is stated that one component is "directly connected" or "directly connected" to another component, it should be understood that there are no other components in between.
[0063] Singular expressions include plural expressions unless the context clearly indicates otherwise.
[0064] In this application, terms such as “comprising” or “having” are intended to specify the existence of the features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, and should be understood as not precluding the existence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.
[0065] In this specification, "user query" may also be referred to as "user input information," "query information," or "user input," and may comprehensively mean input in which a user requests information about a document.
[0066] Additionally, in this specification, "specific modality" may also be referred to as "target modality," "selection modality," or "activation modality," and may mean at least one modality among a plurality of modalities determined to be utilized for processing user queries.
[0067] Additionally, in this specification, the data may also be referred to as "feature data," "feature information," or "embedding data," and may comprehensively refer to result data extracted by a feature extraction method corresponding to the data characteristics of the modality.
[0068] Additionally, in this specification, the answer may also be referred to as "response," "response information," or "answer information," and may mean information generated in response to the user query based on the output result obtained from the artificial intelligence model.
[0069] Additionally, in this specification, "understanding a plurality of modalities" may mean extracting feature data from each of the plurality of modalities and performing data processing according to at least one of combining token sequences for the extracted feature data, calculating associations between modalities based on an attention mechanism, and cross-inference between the plurality of modalities, and "result of understanding the plurality of modalities" may comprehensively mean an embedding vector, token sequence, attention weight, or a combination thereof produced by the data processing. In this sense, the expression "understanding the plurality of modalities and generating a response based on the result of understanding the plurality of modalities" may be interpreted throughout this specification as equivalent to the expression "processing feature data extracted from each of the plurality of modalities through a plurality of encoder modules corresponding to the plurality of modalities and generating a response based on the processing result."
[0070] Additionally, in this specification, "multiple encoder modules" may be included in a multi-encoder structure described below, and according to one embodiment, the multiple encoder modules may include at least one of an image encoder corresponding to an image modality, a chart encoder corresponding to a chart modality, and a text encoder (or tokenizer) corresponding to a text modality. However, in this specification, the types and number of encoders included in the multiple encoder modules are not limited to the above examples and may be varied or expanded based on the data characteristics of the modality.
[0071] Hereinafter, the technical improvements provided by the answer generation method and system according to the present invention will be described in more detail. Conventional multimodal question-answering technologies prior to the answer generation system disclosed in this specification may have a structure in which all modality data are input into a single model for processing, or a model with the same structure is repeatedly applied for each modality. According to such conventional structures, even when a user query requires only a single modality, encoders and expert models corresponding to all modalities may be activated in bulk. This may result in at least one of the following structural limitations: consumption of unnecessary computational resources, increased answer noise due to irrelevant modality data, and increased memory usage.
[0072] In contrast, the answer generation system disclosed herein may have an architecture in which the data flow is branched according to the classification result of a user query. More specifically, for a single modal query, first feature data corresponding to a first modality may be transmitted through a first path to a first expert model, and for a cross-modal query, multiple feature data corresponding to multiple modalities may be combined and processed through a cross-inference path. Furthermore, the modality application policy according to the present invention may be configured to adaptively adjust the number of expert models and the number of modalities involved in answer generation according to the type of user query.
[0073] By means of the branching architecture and adaptive modality application policy described above, the present invention can achieve at least one of the following technical effects. First, as the number of activated expert models decreases, the amount of computation and inference processing time may be reduced. Second, as the input of irrelevant modality data is blocked, noise included in the answer may be reduced. Third, as encoders and expert models specialized for each modality are applied, the accuracy and reliability of the answer may be improved. Fourth, as the number of processing paths involved in answer generation is adaptively adjusted, at least one of the system's memory usage and graphics processing unit usage may be reduced.
[0074] Furthermore, the classification of the user query, the selective activation of the expert model, and the adaptive generation of the modality application policy are all performed by the memory and at least one processor of the computing system and may correspond to computing functions that dynamically change the internal data transfer structure of the artificial intelligence model itself according to the user query. Accordingly, the present invention is not limited to simple information processing but can provide technical means to improve the performance of the computing system by adaptively configuring the internal architecture and data flow of the multimodal artificial intelligence model according to the user query.
[0075] Meanwhile, FIG. 1 illustrates an example of a block diagram of a computing system in which the present invention can be implemented. In this regard, the answer generation system according to the present invention can be implemented through a computing device described below and can perform data processing related to the answer generation method described in this specification.
[0076] Referring to FIG. 1, a computing system (10000) that performs a method for generating a high-quality answer to a query in an environment including a plurality of modalities according to one embodiment of the present invention may include at least one computing device. In this case, the at least one computing device may be a single processor or a multiprocessor computing device.
[0077] The components of at least one computing device of the present invention may include various hardware components such as one or more processors, memory, other hardware, and a system bus (not shown) that connects various system components so that they can transmit and receive data to and from each other (e.g., telecommutatively connected, physically connected, electrically connected), and the components of at least one computing device are not limited thereto and may be very diverse.
[0078] Meanwhile, at least one computing device included in the computing system (10000) performs a method of generating a high-quality answer to a query in an environment including multiple modalities and can be connected to communicate via a network (1070). For example, at least one computing device included in the computing system (10000) may be clustered or part of a local area network (LAN). Additionally, at least one computing device may be part of a wide area network (WAN) or connected to at least one of a client-server network and a peer-to-peer network within the cloud.
[0079] Meanwhile, when at least one computing device is used in at least one of a network environment and a cloud computing environment, the at least one computing device may be connected to at least one of a public and a private network through a network interface or an adapter. In one embodiment, other communication connection devices, such as a modem, may be used to establish communication through the network. The modem may be at least one of an internal modem and an external modem, and may be connected to a system bus through a network interface or a specific mechanism, etc. A wireless network component consisting of an interface and an antenna may be coupled to the network through a device such as an access point, a peer computer, etc. In the present invention, the method by which at least one computing device is connected to communicate through the network (1070) is not limited and may be connected to communicate in a manner different from the described examples.
[0080] Furthermore, other computer-type devices or systems not shown in FIG. 1 may also interact technically with at least one computing device or other system through one or more connections to the network (1070) via a network interface. Here, the network interface may include network interface equipment such as a physical network interface controller (NIC) or a virtual network interface (VIF).
[0081] The network (1070) of the present invention may include various forms such as the Internet, WLAN (Wireless LAN), Wi-Fi (Wireless-Fidelity), Wi-Fi Direct, DLNA (Digital Living Network Alliance), WiBro (Wireless Broadband), WiMAX (World Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), HSUPA (High Speed Uplink Packet Access), LTE (Long Term Evolution), LTE-A (Long Term Evolution-Advanced), 5G (5th Generation Mobile Telecommunication), Bluetooth (Bluetooth™), RFID (Radio Frequency Identification), Infrared Data Association (IrDA), UWB (Ultra-Wideband), ZigBee, NFC (Near Field Communication), Wireless USB (Wireless Universal Serial Bus), etc., and in the present invention, data transmission may be performed based on standard communication protocols such as TCP / IP, HTTP, SSL, etc.
[0082] A computing system (10000) that generates a high-quality answer to a query in an environment including a plurality of modalities according to the present invention may include at least one of a user computing device (1010), a training computing system (1050), and a server computing system (1030).
[0083] A user computing device (1010) according to the present invention may be understood as a computing device comprising at least one processor (1011) and a memory (1012) for performing a method of generating a high-quality answer to a query in an environment including a plurality of modalities. For example, the user computing device (1010) may include at least one computing device among a smartphone, a smart TV, a laptop computer, a desktop computer, a digital broadcasting terminal, a PDA (personal digital assistants), a PMP (portable multimedia player), a navigation device, a slate PC, a tablet PC, an ultrabook, a wearable device (e.g., a smartwatch, a smart glass, and a head-mounted display).
[0084] At least one processor (1011) constituting the user computing device (1010) may include at least one general-purpose processor and at least one special-purpose processor. For example, at least one processor (1011) constituting the user computing device (1010) may be composed of at least one or a plurality of electrically connected processors among a central processing unit (CPU), a graphics processing unit (GPU), a tensor processing unit (TPU), a neural network processing unit (NPU), an arithmetic logic unit (ALU), a floating-point arithmetic unit (FPU), an application integrated circuit, an application semiconductor (ASIC), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, and other electrical units for performing functions.
[0085] Furthermore, at least one processor (1011) may be configured to execute a computer-readable instruction contained in memory (1012) or other instructions described herein.
[0086] The memory (1012) constituting the user computing device (1010) according to the present invention may include volatile memory, non-volatile memory, fixed media, removable media, magnetic media, optical media, semiconductor media, and other types of physically durable storage media.
[0087] For example, memory (1012) may include one or more non-transient / transient computer-readable storage media such as RAM, ROM, HDD (Hard Disk Drive), SSD (Solid State Disk), SSD (Silicon Disk Drive), EEPROM, EPROM, flash memory device, magnetic disk, and combinations thereof, and may include web storage of a server that performs the storage function of memory over the internet. Such memory (1012) may store data and instructions necessary for at least one processor (1011) to perform the operation of an application for generating a high-quality answer to a query in an environment including multiple modalities.
[0088] A user computing device (1010) may include one or more user input components (1021) that detect user input. For example, the user input component (1021) may also be referred to as a user interface module. The user input component (1021) may include a touch screen, a computer mouse, a keyboard, a keypad, a touchpad, a trackball, a joystick, a voice recognition module, or other similar devices. However, the present invention does not limit the type of user input component (1021). In this case, the user input component (1021) in the present invention does not necessarily mean a hardware means, but can be understood as a channel for receiving input from a user. Meanwhile, the user of the present invention may refer to an automated agent, script, playback software, etc., that operates on behalf of one or more people.
[0089] A user can interact with a computing system (10000) including at least one computing device through input text, touch, voice, movement, computer vision, gesture, or other forms of input and output using a user input component (1021). For example, the user input component (1021) may include at least one of a command line interface (CLI), a graphical user interface (GUI), a natural user interface (NUI), a voice command interface, and other user interface (UI) representations.
[0090] Between the user input component (1021) and the user computing device (1010), one or more application programming interface (API) calls may be made based on user input received from a user interface or network.
[0091] Here, the expression "based on" may be interpreted to include cases where it is based on the use of a specific configuration, modified from, derived from, influenced by, dependent on, or otherwise derived from a specific configuration. In some embodiments, an API call may be configured for a specific API, which may be interpreted or converted into an API call configured for another API. Here, an API may refer to a defined interface or connection between computers or between computer programs.
[0092] In one embodiment, the user computing device (1010) may store at least one machine learning model (1020). For example, the user computing device (1010) may be various machine learning models, such as a plurality of neural networks (e.g., deep neural networks) that understand a plurality of modalities and perform a method of generating a high-quality answer to a query based on the understanding results, or other types of machine learning models including non-linear models or linear models, and may be composed of a combination thereof.
[0093] According to an embodiment of the present invention, a user computing device (1010) may perform a method of generating a high-quality answer to a query in an environment containing multiple modalities by using a local or external machine learning model (1020). Alternatively, the user computing device (1010) may perform a method of generating a high-quality answer to a query in an environment containing multiple modalities by using a machine learning model (1040) provided by a server.
[0094] In addition, according to another embodiment of the present invention, a server computing system (1030) communicating with a user computing device (1010) can provide a high-quality answer to a query to the user computing device (1010) via an application or the web in response to a request from a user received through the user computing device (1010).
[0095] In addition, according to another embodiment of the present invention, a method for generating a high-quality answer to a query in an environment including a plurality of modalities is performed by linking at least a part of a user computing device (1010) and a server computing system (1030) with each other, thereby providing a high-quality answer to a query to a user.
[0096] Additionally, according to various embodiments of the present invention, a user computing device (1010) and a server computing system (1030) can learn machine learning models (1020, 1040) performed in a method for generating high-quality answers to queries in an environment including multiple modalities through interaction with a training computing system (1050) that is communicatedly connected via a network (1070). In this case, the training computing system (1050) may be a computing system separate from the server computing system (1030). Alternatively, in some embodiments, the training computing system (1050) may be part of the server computing system (1030) or part of the user computing device (1010).
[0097] Meanwhile, the server computing system (1030) may include at least one processor (1031) and memory (1032). Here, the processor (1031) may be composed of at least one or a plurality of electrically connected processors among a central processing unit (CPU), a graphics processing unit (GPU), a tensor processing unit (TPU), a neural network processing unit (NPU), an application integrated circuit, an application semiconductor (ASIC), an arithmetic logic unit (ALU), a floating-point arithmetic unit (FPU), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, and other electrical units for performing functions. For example, at least one processor (1031) may include a circuit and a transistor configured to execute instructions from memory (1032).
[0098] The memory (1032) constituting the server computing system (1030) according to the present invention may include volatile memory, non-volatile memory, fixed media, removable media, magnetic media, optical media, semiconductor media, or other types of physically durable storage media. For example, the memory (1032) may include one or more non-transient / transient computer-readable storage media such as RAM, ROM, HDD (Hard Disk Drive), SSD (Solid State Disk), SSD (Silicon Disk Drive), EEPROM, EPROM, flash memory device, magnetic disk, etc., and combinations thereof, and may include web storage of a server that performs the storage function of memory over the internet. Additionally, the server computing system (1030) may further include a data storage (data store). For example, the data storage may be composed of at least one of a relational database, a NoSQL database, a data warehouse, and a local file system.
[0099] In the memory (1032) constituting the server computing system (1030) according to the present invention, data and instructions necessary for the at least one processor (1031) to perform the operation of an application for generating a high-quality answer to a query in an environment including a plurality of modalities may be stored.
[0100] In one embodiment, the server computing system (1030) may be composed of a single device or a plurality of computing devices, and may be configured to operate according to a sequential or parallel computing architecture. Additionally, a distributed processing system may be configured with a plurality of networked devices.
[0101] Meanwhile, the training computing system (1050) may include at least one processor (1051) and memory (1052). The model trainer (1060) is a logical component that executes the training of at least one machine learning model (1020, 1040) and may be implemented in the form of hardware, firmware, or software. For example, the model trainer (1060) may be executed by the processor (1051) after loading training data (1061) stored in a storage device into memory (1052). For example, the model trainer (1060) may be configured to execute one or more operations (e.g., model training, model reconstruction, model validation, model testing) on at least one machine learning model.
[0102] The machine learning model of the present invention may include at least one of a statistical model, an algorithm, a neural network (NN), a convolutional neural network (CNN), a generative neural network (GNN), a Word2Vec model, a Bag of Words model, a TF-IDF (document frequency-inverse document frequency) model, a GPT (Generative Pre-trained Transformer) model (or other autoregressive models), a PPO (Proximal Policy Optimization) model, a nearest neighbor model (e.g., a k-nearest neighbor model), a linear regression model, a K-means clustering model, a Q-learning model, a TD (Temporal Difference) model, a Deep Adversarial Network model, and all other types of models further described herein.
[0103] Specifically, the model trainer (1060) may execute operations to train a machine learning model, and said operations may include at least one of adding, removing, and modifying model parameters. At this time, the training of the machine learning model may be at least one of supervised learning, semi-supervised learning, and unsupervised learning. In one embodiment, the training of the machine learning model may include the step of repeatedly inputting training data (1061) based on epochs and repeatedly performing the machine learning model training process configured in this way. Here, an epoch may refer to a unit in which the entire set of training data (1061) undergoes forward and backpropagation processing once. In some implementations, different levels of training methods (e.g., supervised learning, semi-supervised learning, unsupervised learning) may be used for different epochs.
[0104] The training data (1061) of the present invention may include input data and data previously output from at least one machine learning model (e.g., recursive learning feedback).
[0105] At least one parameter of a machine learning model may include at least one of a seed value, a model node, a model layer, an algorithm, a function, connections between different machine learning models, connections between parameters, machine learning model constraints, and other digital components that influence the output of the machine learning model. In this case, the model connection between different machine learning models may include or represent at least one of model parameters and relationships between models, which may be dependent or interdependent, hierarchical, and static or dynamic. The combinations and configurations of model parameters described herein may be too complex to be maintained or utilized by human cognitive abilities.
[0106] In the present invention, the machine learning parameters described according to the embodiments are not limited, and a single machine learning model may further include a plurality of model parameters.
[0107] Meanwhile, FIG. 2 illustrates an example of a block diagram of a computing device (1100) that may be included in a user computing device (1010), a server computing system (1030), and a training computing system (1050), as an embodiment of a computing system (10000) in which the present invention can be implemented.
[0108] As illustrated in FIG. 2, the computing device (1100) may include at least one application (e.g., Application 1 to Application N), and each of the at least one application may include a machine learning library and a model execution environment for performing a method to generate a high-quality answer to a query in an environment including multiple modalities based on machine learning. The at least one application included in the computing device (1100) may communicate with the sensor, context manager, device state manager, or additional component(s) within the computing device (1100) via an Application Programming Interface (API). In one embodiment, the at least one application may interface with device components, such as receiving sensor data or state data or transmitting prediction results to an output device via a public or private API.
[0109] Meanwhile, FIG. 3 illustrates an example of a block diagram in another aspect of a computing device (1200), which is one of the components of a computing system (10000) that performs a method of generating a high-quality answer to a query in an environment including a plurality of modalities according to an embodiment of the present invention.
[0110] A computing device (1200) according to the present invention may include at least one application (e.g., Application 1 to Application N), and at least one application may communicate with a central intelligence layer (1210). Each application may interact with a shared model within the central intelligence layer (1210) through an API (e.g., a common API).
[0111] The central intelligence layer (1210) includes one or more machine learning models and may share them among multiple applications or provide them independently to each. In one embodiment, the central intelligence layer (1210) may be integrated as part of an operating system or implemented as a separate logical layer.
[0112] Additionally, the central intelligence layer (1210) can communicate with the central device data layer (1220). The central device data layer (1220) can store a document containing multiple modalities stored within the computing device (1200) and provide it as input data necessary to generate a high-quality answer to a query. Each device component (e.g., sensor, state manager, etc.) can communicate with the central device data layer (1220) via a private API, etc.
[0113] The technology described herein may be composed of a single or multiple computing devices, and a machine learning model that performs a method for generating high-quality answers to queries in an environment including multiple modalities may be executed sequentially or in parallel on one component or multiple distributed components. Data storage, machine learning models, and applications may be distributed and operated locally or over a network, and these configurations can be flexibly applied to various system architectures.
[0114] The present invention relates to a method and system for generating answers capable of understanding various content and generating high-quality answers to queries based thereon. More specifically, the answer generation system according to the present invention may be a system that understands various modalities and generates high-quality answers to queries in an environment containing various modalities.
[0115] For example, an environment containing various modalities may include a multi-modal context. A multi-modal context (or multi-modal context, multi-mode context, multi-mode context, etc.) can be understood as a contextual structure in which data belonging to different modes of information representation, such as images, charts, and text, coexist integrally within a document or information (or data) environment, enabling semantic linkage or mutually complementary utilization between them. Here, modalities may include means of expression (or modes, types, etc.) with different methods of information transmission, such as visual information (e.g., photographs, drawings, charts, etc.) or linguistic information (e.g., articles, descriptions, sentences, etc.). By organically linking or mutually utilizing data of various modalities within a single context, a multi-modal context can provide a foundation for humans or artificial intelligence to perform richer and more precise semantic understanding and reasoning.
[0116] Meanwhile, the answer generation system according to the present invention may be a system that efficiently processes various modalities based on artificial intelligence and generates and provides high-quality answers based thereon. The answer generation system according to the present invention may include at least one artificial intelligence model that can be utilized (or used, employed, etc.) depending on various situations or purposes.
[0117] For example, the above artificial intelligence model is a Machine Learning (ML) model, Deep Learning model, Deep Neural Network (DNN), Language Model (LM), Large Language Model (LLM), Multi-modal Large Language Model (MLLM), Vision-Language Model (VLM), Large Multimodal Model (LMM), Ultra-large Foundation model, Generative model, or Generative AI model), Transformer-based model, Supervised Learning (SL) model, Reinforcement Learning (RL) model, and special purpose model (e.g., time series forecasting model (e.g., ARIMA model, SARIMA model, etc.), time series Foundation model, Graph Neural Network (GNN), multimodal It may include at least one of a multimodal model, a natural language processing (NLP) model, a computer vision model, a speech recognition or synthesis model, a recommendation system model, etc.
[0118] Meanwhile, the present invention aims to efficiently process various modalities in an environment containing various modalities and to generate and provide high-quality answers based thereon. Below, we will examine the answer generation system (1000) according to the present invention in more detail together with the attached drawings. FIG. 4 is a conceptual diagram for explaining the answer generation system according to the present invention, and FIG. 5a, FIG. 5b, FIG. 5c, FIG. 5d, and FIG. 5e are conceptual diagrams for explaining the data processing method of the answer generation system according to the present invention.
[0119] As illustrated in FIG. 4, the answer generation system (1000) according to the present invention may include at least one of an input unit (100), an output unit (200), a communication unit (300), a storage unit (400), a data processing unit (500), an answer generation unit (600), and a control unit (700). When a query related to a document containing a plurality of modalities is received, the answer generation system (1000) may generate a modality application policy to determine which of the plurality of modalities to select and utilize, and perform a series of data processing flows to generate an answer to the query using the selected modalities based on the policy.
[0120] However, the components of the answer generation system (1000) according to the present invention are not necessarily limited thereto and may further include various hardware components that perform the same or similar roles as described in the description of the present specification.
[0121] Although not illustrated, the answer generation system (1000) according to the present invention may include one or more processors, and such processors may include one or more general-purpose processors and one or more special-purpose processors (e.g., digital signal processor, tensor processing unit (TPU), graphics processing unit (GPU), neural network processing unit (NPU), application integrated circuit, application semiconductor (ASIC), field programmable gate array (FPGA), quantum processing unit (or quantum processor, QPU), etc.). One or more processors may be configured to execute instructions, computer-readable instructions, and other instructions described herein that are stored (or included) in the storage unit (400). The answer generation method and system according to the present invention may perform data processing described below in cooperation with memory and at least one processor. The processor may perform a series of operations and data processing using data and information stored in memory. In this case, memory may be a component of the storage unit (400). The above memory may be connected to a processor, and the memory may store an artificial intelligence model trained to understand multiple modalities and to generate an answer to a query based on the results of understanding the multiple modalities.
[0122] In addition, the answer generation system (1000) according to the present invention can perform data processing and computation processes using quantum gates, quantum entanglement, and quantum superposition states, taking into consideration implementation in a quantum computer environment. For example, the present invention can perform parallel computations based on qubits, and such quantum computations can operate complementarily with existing classical computers.
[0123] Such quantum computers may include parallel computation using qubits and high-speed data processing devices utilizing quantum entanglement, and hardware-based computational optimization using FPGAs and ASICs is possible. In addition, quantum computers may utilize quantum processors capable of qubit-based parallel computation, and data processing efficiency can be improved through a hybrid structure with existing classical computers.
[0124] Meanwhile, the input unit (100) can be configured in various ways as a means of data input. For example, the input unit (100) can be configured to receive user input. The input unit (100) can be configured to receive user input from a user terminal (10). Here, “receiving input” may mean receiving an input signal (or selection signal) corresponding to the user’s input based on input made by the user through the input unit configuration provided in the user terminal (10).
[0125] Here, the user terminal (10) may include at least one of a mobile phone, a smartphone, a notebook computer, a laptop computer, a slate PC, a tablet PC, an ultrabook, a desktop computer, a digital broadcasting terminal, a PDA (personal digital assistants), a PMP (portable multimedia player), a navigation device, and a wearable device (e.g., a smartwatch, a smart glass, a head-mounted display).
[0126] In addition, the input unit (100) in the present invention does not necessarily mean a hardware means, but can be understood as a channel for receiving input from a user.
[0127] The input unit (100) may also be referred to as a user interface module. The input unit (100) may include a touch screen, a computer mouse, a keyboard, a keypad, a touchpad, a trackball, a joystick, a voice recognition module, or other similar devices. However, the present invention does not limit the type of input unit (100).
[0128] Here, user input may include documents, text, images (or videos), voice, etc. In this case, the answer generation system (1000) may further include a module that converts voice into text.
[0129] Next, the output unit (200) can output information through an output unit configuration (e.g., a display unit, a touch screen, a speaker, etc.) provided in a user terminal (10) linked to the answer generation system (1000) according to the present invention. For example, the output unit (200) can output at least one page (or service page, 2000) linked to the answer generation system (1000) according to the present invention to the display unit of the user terminal (10). In addition, the output unit (200) does not necessarily mean a hardware means, but can be understood as a channel for outputting results to a user.
[0130] Next, the communication unit (300) may be connected via a wireless or wired network to a user terminal (10), a server (e.g., a central server, an external server, etc.), a device, and at least one network, etc., to receive or transmit overall data and information necessary for the operation of the answer generation system (1000) according to the present invention.
[0131] The communication unit (300) can support various communication methods according to the communication standards of the communicating device. The processor can transmit and receive data with an external server and a user terminal (10) using the communication unit.
[0132] For example, the communication unit (300) may be configured to communicate with a communication target using at least one of the following technologies: WLAN (Wireless LAN), Wi-Fi (Wireless-Fidelity), Wi-Fi (Wireless-Fidelity) Direct, DLNA (Digital Living Network Alliance), WiBro (Wireless Broadband), WiMAX (World Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), HSUPA (High Speed Uplink Packet Access), LTE (Long Term Evolution), LTE-A (Long Term Evolution-Advanced), 5G (5th Generation Mobile Telecommunication), Bluetooth (Bluetooth™), RFID (Radio Frequency Identification), Infrared Data Association (IrDA), UWB (Ultra-Wideband), ZigBee, NFC (Near Field Communication), Wi-Fi Direct, and Wireless USB (Wireless Universal Serial Bus).
[0133] Next, the storage unit (400, or memory) serves to store various data related to the present invention and may include one or more non-transient computer-readable storage media that can be read and accessed by at least one of one or more processors.
[0134] One or more computer-readable storage media may include volatile and non-volatile storage components, such as optical, magnetic, organic, or other memory or disk storage devices. In some examples, the storage unit (400) may be implemented using a single physical device (e.g., one optical, magnetic, organic, or other memory or disk storage device), whereas in other examples, the storage unit (400) may be implemented using two or more physical devices.
[0135] The storage unit (400) may include computer-readable instructions and additional data. The storage unit (400) may include a storage necessary to perform at least some of the methods, scenarios, and techniques described herein and at least some of the functions of the device and network.
[0136] Furthermore, at least a portion of the storage unit (400) may be a cloud storage or a cloud server. At least a portion of the data corresponding to user input received from the input unit (100) and the training data set (210, 220, or training data) may be stored in the storage unit (400).
[0137] That is, the storage unit (400) is sufficient as a space where information necessary for the operation of the answer generation system (1000) according to the present invention is stored, and it can be understood that there are no restrictions on the physical space.
[0138] Furthermore, the storage unit (400) can store a computer program including computer program instructions. Furthermore, the storage unit (400) can store a computer program including computer program instructions that control the operation of the system (1000) or control the operation of the control unit (700) when loaded into the processor of the system (1000).
[0139] Next, the data processing unit (500) may be configured to perform the role of extracting data from each of the multiple modalities using at least one preset feature extraction method.
[0140] Specifically, when a document containing multiple modalities is received, the data processing unit (500) can extract data from each of the multiple modalities through the preset feature extraction method based on the different data characteristics of the multiple modalities.
[0141] Here, the phrase “multiple modalities have different data characteristics” may mean that each modality includes different characteristics (or attributes) in terms of data representation format, information structure, temporal and spatial continuity, semantic interpretation criteria (or method), and data processing method. These multiple modalities (21, 22, 23) may include at least one of an image modality, a chart modality, and a text modality.
[0142] For example, an image modality is composed of pixel-based visual information (e.g., two-dimensional visual information), and the data characteristics of the image modality may include at least one of pixel-unit color and brightness information, object shape (outline and structure of the object), texture (texture or repetitive visual pattern), edge or boundary (part where color or brightness changes abruptly), and spatial layout (relative position and arrangement relationship between objects).
[0143] As another example, the chart modality has an information delivery structure through data visualization, and the data characteristics of the chart modality may include at least one of explanatory text such as a title, axis labels, and legend, scales of the x-axis and y-axis, units and ranges, visual arrangement of data points (position on coordinates and visual forms such as bars / lines / circles), color information (categorization or highlighting expressions, etc.), and the form of shapes or markers (expression methods according to chart type).
[0144] As another example, the text modality has a character-based sequential information structure, and the data characteristics of the text modality may include at least one of lexical information (meaning and selection of words and terms), syntactic structure (grammatical arrangement and relationships at the sentence level), semantic structure (semantic interpretation of sentences according to context), named entities (proper noun information such as people, places, and organizations), relational expressions (logical connection expressions such as cause-and-effect, condition-and-effect, etc.), and document structure (text composition formats such as titles, body text, paragraphs, lists, and tables).
[0145] However, the types of modalities included in the plurality of modalities in the present invention are not necessarily limited to the examples mentioned. As an embodiment, the plurality of modalities may further include at least one of an auditory-based modality (e.g., audio (background sound, environmental sound, music, etc.)), a sensor-based modality (e.g., sensor data (accelerometer, gyroscope, heart rate, temperature, etc.)), a behavior-based modality (e.g., gesture / movement (hand gesture, head movement, pose, etc.), a biosignal (bioelectrical signal such as EEG, ECG, EMG, etc.)), a spatial-based modality (e.g., location / geodata (GPS coordinates, location on a map, etc.)), and a structured modality (e.g., code / script (e.g., computer instructions, source code, etc.)).
[0146] In this regard, in the present invention, there may be various preset feature extraction methods for extracting data from each of a plurality of modalities.
[0147] In one embodiment, as illustrated in FIG. 5a, when a document (20) containing a plurality of modalities (21, 22, 23) is received, the data processing unit (500) may extract data (e.g., first specific data (21a), second specific data (22a), third specific data (23a), etc.) from each of the plurality of modalities (21, 22, 23) using the feature extraction method. In this case, the feature extraction method may include a feature extraction method using a multimodal model (or large-scale multimodal model) configured (or learned) to understand and process various modalities (or data). Such a multimodal model may be a model that learns and processes the relationships between modalities by considering different types (or kinds) together. That is, the multimodal model may be configured to process different multiple modalities integrally, identify the relationships between the multiple modalities, and perform judgment and result generation. Through this process, data (21a, 22a, 23a) extracted from each of the multiple modalities (21, 22, 23) can be processed as input to a large-scale language model (610).
[0148] According to another embodiment of the present invention, the data processing unit (500) can classify each of the plurality of modalities (21, 22, 23) based on a preset classification criterion in order to efficiently extract data from each of the plurality of modalities (21, 22, 23). The data processing unit (500) can classify each of the plurality of modalities (21, 22, 23) based on the data characteristics of each of the plurality of modalities (21, 22, 23) included in the document (20).
[0149] As an embodiment related thereto, as illustrated in FIG. 5b, the data processing unit (500) can process the received document (20) as input to the classification module (510). The classification module (510) may be configured to perform the role of classifying each of the multiple modalities (21, 22, 23) according to the data characteristics (or type, category, kind, attribute, etc.) of each of the multiple modalities (21, 22, 23) by analyzing the data characteristics of each of the multiple modalities (21, 22, 23). Alternatively, the classification module (510) may be a model trained using a training data set containing various modalities to classify each of the various modalities according to the data characteristics of each of the various modalities (e.g., image modality, chart modality, text modality, chemical structure modality including chemical structural formula or molecular image, etc.). In the present invention, this classification module (510) may also be referred to as a “classification model” or a “classifier.” Additionally, in the present invention, the classification module (510) may be implemented to be included in the configuration of an artificial intelligence model, or it may be implemented as a separate configuration from the artificial intelligence model.
[0150] For example, the classification module (510) may classify the first modality (21) as an image modality, the second modality (22) as a chart modality, and the third modality (23) as a text modality, based on a classification criterion set according to the data characteristics of each of the multiple modalities.
[0151] Additionally, the classification module (510) can classify the multiple modalities according to the characteristics (or types) of each of the multiple modalities, even if the multiple modalities themselves (e.g., multiple images) are input rather than the document (20). In one embodiment, the image modality and the chart modality each have the characteristics of image data containing visual information (or elements), and the file format (or format) of the input modalities may be the same. In this case, the classification module (510) can classify the first modality (21) and the second modality (22) based on the data characteristics of the first modality (21) and the data characteristics of the second modality (22), even if the file formats (e.g., JPG, PNG, JPEG, GIF, TIFF, etc.) of the input first modality (21) and the second modality (22) are the same.
[0152] In this way, the classification module (510) can classify the multiple modalities according to the data characteristics of each of the multiple modalities. That is, the classification module (510) can be configured to classify the multiple modalities constituting the document based on a pre-set classification criterion.
[0153] Furthermore, the data processing unit (500) can extract data from each of the plurality of modalities (21, 22, 23) classified by the classification module (510) using the feature extraction method. For example, the data processing unit (500) can input the plurality of modalities (21, 22, 23) classified through the classification module (510) into a multimodal model to extract data (21a, 22a, 23a) from each of the classified plurality of modalities (21, 22, 23).
[0154] Meanwhile, the feature extraction method configured in the present invention may further include different feature extraction methods specialized for each of the plurality of modalities. The data processing unit (500) can extract data from each of the plurality of modalities using the different feature extraction methods.
[0155] In one embodiment, as illustrated in FIG. 5c, when a document (20) containing a plurality of modalities (21, 22, 23) having different data characteristics is received, the data processing unit (500) can extract data (21a, 22a, 23a) from each of the plurality of modalities (21, 22, 23) through different feature extraction methods based on the data characteristics of each of the plurality of modalities (21, 22, 23).
[0156] In this case, the data processing unit (500) can process the received document (20) as input to the classification module (510). The classification module (510) can classify each of the multiple modalities (21, 22, 23) based on the data characteristics of each of the multiple modalities (21, 22, 23) constituting the document (20).
[0157] Afterwards, the data processing unit (500) can extract data (21a, 22a, 23a) from each of the multiple modalities (21, 22, 23) classified by the classification module (510) using different feature extraction methods.
[0158] In the present invention, different feature extraction methods for extracting data from each of the plurality of modalities (21, 22, 23) may exist differently depending on the data characteristics of each of the classified plurality of modalities (21, 22, 23). For example, different feature extraction methods for extracting data from each of the plurality of modalities (21, 22, 23) may be determined based on the data characteristics of each of the plurality of modalities classified through the classification module (510).
[0159] More specifically, the data processing unit (500) determines a different feature extraction method specialized for each of the plurality of modalities (21, 22, 23) based on the data characteristics of each of the classified plurality of modalities (21, 22, 23), and can extract data from each of the plurality of modalities (21, 22, 23) using the determined different feature extraction method.
[0160] For example, different feature extraction methods may include at least one of i) a first feature extraction method specialized for image modality to extract data from image modality, ii) a second feature extraction method specialized for chart modality to extract data from chart modality, and iii) a third feature extraction method specialized for text modality to extract data from text modality.
[0161] However, examples included in different feature extraction methods are not necessarily limited to the cases mentioned. As an example, if multiple modalities include an auditory-based modality (or speech modality) and a sensor-based modality (or sensor modality), the different extraction methods may further include a fourth feature extraction method for extracting data from the auditory-based modality and a fifth feature extraction method for extracting data from the sensor-based modality.
[0162] Meanwhile, the above-mentioned different feature extraction methods may be related to a multi-encoder structure. In this case, the present invention may extract features based on an independent encoder module specialized for each of the multiple modalities (21, 22, 23), i.e., a multi-encoder structure. In the case of a multi-encoder structure, multiple encoders may be configured (or implemented) to be activated in parallel or selectively to extract features optimized for the unique data characteristics of each of the multiple modalities (image, chart, text, etc.). In the present invention, the multi-encoder may be implemented to be included in the configuration of an artificial intelligence model, or it may be implemented as a separate configuration from the artificial intelligence model.
[0163] In this regard, the data processing unit (500) may determine whether to input each of the classified multiple modalities into a multi-encoder based on a preset standard, and determine at least one modality to be input into the multi-encoder according to the result of the determination. In this case, the preset standard may be set so that image modalities and chart modalities are processed through input into the multi-encoder. Accordingly, at least one modality to be input into the multi-encoder may include at least one of image modalities and chart modalities. Such a multi-encoder may include an image encoder specialized for image modalities and a chart encoder specialized for chart modalities.
[0164] For example, as illustrated in FIG. 5e, the data processing unit (500) can extract visual embeddings using an image encoder (172) in the case of an image modality among a plurality of modalities. The image encoder (172) may be an encoder of the CLIP or Vision Transformer series. The image encoder (172) can convert pixel-based visual information contained in the image modality into a high-dimensional embedding space. Such an image encoder (172) may also be referred to as a “first encoder,” a “CLIP encoder,” or a “Vision Encoder.”
[0165] As another example, the data processing unit (500) can extract visual and semantic information of the chart modality by using a chart encoder (173) specialized in chart structure recognition in the case of a chart modality among multiple modalities. The chart encoder (173), optimized to effectively understand chart images, may be a ChartOCR or PlotQA preprocessing-based encoder. The chart encoder (173) can extract chart-specific visual and semantic information, such as tick information, legends, and color-based data points included in the chart modality. This chart encoder (173) may also be referred to as a “second encoder” or a “UniChart Encoder.”
[0166] As another example, although not illustrated, the data processing unit (500) can extract embeddings that reflect the grammatical structure and linguistic context included in the text modality by using a pre-trained language (or text) encoder (e.g., BERT, RoBERTa, etc.) in the case of a text modality among multiple modalities. However, after the text modality is classified through the classification module (510), the additional encoder processing step can be omitted, and it can be directly input into a large-scale language model (610) for processing.
[0167] Furthermore, the present invention can also consider the possibility of extension where domain-specific modalities may exist. For example, since the boundary between images and charts is ambiguous for chemical structural formulas included in chemical papers or pharmaceutical reports, they may be integrated with a SMILES converter, ChemBERTa, or ChemOCR, and an encoder specialized for chemical structural formula recognition may be applied. This can be classified as a special modality encoder for chemical structure recognition.
[0168] For example, when a chemical structure formula or molecular image is included in a document of a specific domain (e.g., chemistry, biology, etc.), the data processing unit (500) can process the chemical structure modality through an independent encoder. The data processing unit (500) can convert the chemical structure formula image into an embedding in the form of text or a graph by using an encoder specialized for chemical structure recognition (e.g., a chemical structure encoder, a chemical structure recognition encoder, a chemical specialized encoder, etc.). Even if such a chemical structure formula is visually similar to a general image or chart, it can be processed as a separate modality because its semantic interpretation is completely different.
[0169] Referring again to FIG. 5c and FIG. 5e, the data processing unit (500) may use a first feature extraction method to extract data from a first modality (21) corresponding to an image modality among a plurality of classified modalities (21, 22, 23). The first modality (21) may also be expressed as an “image modality.”
[0170] Here, the first feature extraction method may be associated with an image encoder (172) specialized for extracting data from an image modality. The data processing unit (500) may extract first specific data (21a) from the first modality (21) through the first feature extraction method. In this case, the first specific data (21a) may also be understood as output data output from the image encoder (172) for the first modality (21).
[0171] The image encoder (172) generates a high-dimensional image embedding vector corresponding to the image modality through encoding of the image modality (e.g., a general image including people, objects, landscapes, etc. (RGB image)), and can convert the image embedding vector into a format suitable for input to a large-scale language model (610) through a projection layer (172a) (i.e., converts it into a format suitable for the embedding dimension of the large-scale language model (610)). The output data of the image encoder (172) (i.e., image embedding vector) may also be expressed as “image feature (or image characteristic)”, “visual feature vector”, “image characteristic vector”, “image representation”, “image representation vector”, or “image modality vector”. For convenience of explanation, the term “image embedding vector” will be used consistently in this specification.
[0172] An image embedding vector may include information reflecting visual features such as visual objects, colors, textures, shapes, and spatial arrangements between them, extracted from an image modality. For example, an image embedding vector may be composed of a fixed-dimensional vector shape, such as 512 dimensions or 768 dimensions, which summarizes the semantic content of an image and can be used for image classification, similarity calculation, text-image alignment, etc. In the present invention, an image embedding vector may be used as an intermediate representation to convert it into a format that can be processed by a large-scale language model (610).
[0173] Additionally, the projection layer (172a) of the image encoder (172) can convert the output of the image encoder (172) into a format suitable for the input of the large-scale language model (610). For example, the projection layer (172a) of the image encoder (172) can perform an operation to align (or convert) the image embedding vector output from the image encoder (172) to fit the input dimension (or input embedding dimension, token embedding dimension, etc.) of the large-scale language model (610). That is, the projection layer (172a) of the image encoder (172) can perform the role of linearly converting the image embedding vector to fit the input format of the large-scale language model (610). The output data of the projection layer (172a) of the image encoder (172) may also be expressed as “image token,” “image modality token,” “image feature token,” “image embedding sequence,” “image token sequence,” “projected (or projected) image token,” “projected image token sequence,” “projected image embedding token,” “image embedding vector sequence,” or “image token vector sequence.” For convenience of explanation, the term “image token sequence” will be used consistently in this specification.
[0174] The output data (i.e., image token sequence) of the projection layer (172a) of the image encoder (172) is the result of converting an image embedding vector into a multi-vector sequence suitable for input to a large-scale language model (610), and each vector may contain information corresponding to a specific region or object within the image. For example, each token of the image token sequence represents a partial representation of visual information and may contain information corresponding to a meaningful region of the image, such as a person, background, object, or specific component of a scene. Each token is normalized to match the embedding dimension of the large-scale language model (610), and the total length of the sequence may be determined according to a preset number of tokens. Additionally, each token includes a positional embedding that encodes location information within the sequence to preserve visual order, and this structure can be utilized for interpreting image meaning or generating text within a natural language context. Furthermore, this sequence may be designed to enable inference integrated with language information through the attention mechanism of the large-scale language model (610).
[0175] In the present invention, the projection layer may also be expressed as “projection layer,” “projection layer,” “projection layer,” “projection layer,” “projection layer,” or “projection layer.” For convenience of explanation, the term “projection layer” will be used consistently in this specification.
[0176] Next, the data processing unit (500) may use a second feature extraction method to extract data from a second modality (22) corresponding to a chart modality among the classified multiple modalities (21, 22, 23). The second modality (22) may also be expressed as a “chart modality.”
[0177] Here, the second feature extraction method may be associated with a chart encoder (173) specialized in extracting data from a chart modality. The data processing unit (500) may extract second specific data (22a) from the second modality (22) through the second feature extraction method. In this case, the second specific data (22a) may also be understood as output data output from the chart encoder (173) for the second modality (22).
[0178] The chart encoder (173) generates a high-dimensional chart embedding vector corresponding to the chart modality through encoding of the chart modality (e.g., a chart image such as a bar graph, a line graph, a line graph, etc.) and can convert the chart embedding vector into a format suitable for input to the large-scale language model (610) through the projection layer (173a) (i.e., converts it into a format suitable for the embedding dimension of the large-scale language model (610)). The output data of the chart encoder (173) (i.e., the chart embedding vector) may also be expressed as “chart feature (or chart characteristic)”, “chart characteristic vector”, “chart representation”, “chart representation vector”, or “chart modality vector”. For convenience of explanation, the term “chart embedding vector” will be used consistently in this specification.
[0179] These chart embedding vectors may include information reflecting visual elements within the chart (e.g., axis labels, data series, legends, tick marks, titles, etc.) extracted from the chart modality, as well as the logical and numerical relationships between them. For example, in the case of a bar graph, the height, position, color, and correspondence with the legend of each bar are reflected, while in the case of a line graph, the trend of change and slope between data points (or points) may be included. In other words, chart embedding vectors simultaneously reflect positional information, numerical information, and visual hierarchy regarding visual elements within the chart, and may be feature representations learned to efficiently express the structured visual information of the chart. Furthermore, since chart modalities have a formalized visual structure compared to image modalities, chart embedding vectors may reflect chart-specific information (e.g., maximum / minimum value locations, ratio relationships between items, etc.) that enables numerical-based comparison and quantitative analysis.
[0180] Additionally, the projection layer (173a) of the chart encoder (173) can convert the output of the chart encoder (173) into a format suitable for the input of the large-scale language model (610). For example, the projection layer (173a) of the chart encoder (173) can perform an operation to align (or convert) the chart embedding vector output from the chart encoder (173) to fit the input dimension (or input embedding dimension, token embedding dimension, etc.) of the large-scale language model (610). The output data of the projection layer (173a) of the chart encoder (173) may also be expressed as “chart token,” “chart modality token,” “chart feature token,” “chart embedding sequence,” “chart token sequence,” “projected (or projected) chart token,” “projected chart token sequence,” “projected chart embedding token,” “chart embedding vector sequence,” or “chart token vector sequence.” For convenience of explanation, the term “chart token sequence” will be used consistently in this specification.
[0181] The output data (i.e., chart token sequence) of the projection layer (173a) of the chart encoder (173) is a sequence of multiple consecutive vectors in which the chart embedding vector is converted to be suitable for the input format of a large-scale language model, and each token can correspond to each individual chart component. For example, one token may represent an x-axis label, another token may represent the numerical value of a specific data bar, and another token may represent a specific series item within a legend. In this case, each token contains both the visual attributes (e.g., position, color, size, etc.) and semantic attributes (e.g., label text, numerical value, unit, etc.) of the corresponding element, and may have the same shape as the input dimension of the large-scale language model (610). That is, the chart token sequence maps numerical information and structural relationships (e.g., comparison between items, increase / decrease trends, etc.) within the chart into the input format of the large-scale language model (610), and each token can reflect semantic information of a specific chart element (e.g., a specific bar or line section). Consequently, chart token sequences can be utilized as units of information that enable high-level question-and-answer functions, such as numerical interpretation, comparative question-and-answer, and objective analysis, through fusion with text.
[0182] Furthermore, the data processing unit (500) may use a third feature extraction method to extract third specific data (23a) from a third modality (23) corresponding to a text modality among the classified multiple modalities (21, 22, 23). The third modality (23) may also be expressed as a “text modality.”
[0183] Here, the third feature extraction method may involve a text encoder (not shown, or tokenizer) specialized in extracting data from text modalities. In this case, the text encoder tokenizes the text modalities into a form that can be processed by a large-scale language model (610), and the tokenized text sequence (or text token sequence) can be input into the large-scale language model (610). Alternatively, the text modalities may be input directly into the large-scale language model (610) without separate encoding through the encoder. Alternatively, the answer generation system (1000) itself may perform tokenization of the text modalities to generate a text sequence (or text token sequence).
[0184] As such, the present invention analyzes the data characteristics of each of the multiple modalities included in a document and uses an encoder specialized for each modality, thereby minimizing information loss for each modality and enabling the extraction of optimized features for each of the multiple modalities having different data characteristics. Furthermore, the present invention can flexibly respond to special modalities (e.g., chemical structural formulas) through the extension of domain-specific encoders, thereby significantly improving the universality and scalability of the system.
[0185] Meanwhile, the data processing unit (500) can process data (21a, 22a, 23a) extracted from each of the plurality of modalities (21, 22, 23) as input to the large-scale language model (610). More specifically, the data processing unit (500) can input the data (21a, 22a, 23a) extracted from each of the query (or query tokens tokenized through tokenization) and the classified plurality of modalities (21, 22, 23) into the large-scale language model (610) to generate an answer to a query about a document (20).
[0186] In this case, the first specific data (21a), the second specific data (22a), and the third specific data (23a) extracted through different feature extraction methods can be combined (or integrated, connected, etc.) into one and input into the large-scale language model (610). The data processing unit (500) can combine an image token sequence, a chart token sequence, and a text token sequence into a single input sequence and input it into the large-scale language model (610). For example, the image token sequence, the chart token sequence, and the text token sequence can be combined into a single continuous sequence containing positional information, and the combined token sequence (or the entire token sequence) can be input into the large-scale language model (610). However, the method of input into the large-scale language model (610) in the present invention is not necessarily to be input as a combined token sequence, and a method of processing the image token sequence, the chart token sequence, and the text token sequence as inputs separately may also be possible.
[0187] Additionally, the combined token sequence may include special tokens (or distinguishing tokens) that distinguish the token sequences corresponding to each of the multiple modalities (21, 22, 23). For example, in the process of generating the combined token sequence, a special token (e.g., at a specific position (e.g., before or after) of the token sequence corresponding to each of the multiple modalities (21, 22, 23) may be included.<image_start> ,<image_end> ,<chart_start> ,<chart_end> ,<text_start> ,<text_end> ) can be assigned (or granted, inserted, etc.). The data processing unit (500) has a distinction token according to the data characteristics of the image modality (e.g., Include ) before the image token sequence, and a distinction token based on the data characteristics of the chart modality (e.g., <chart>Includes ) at the beginning of the chart token sequence, and a distinction token based on the data characteristics of the text modality (e.g., <text>) can be included at the beginning of the text token sequence.
[0188] That is, the data processing unit (500) assigns a special token to each of the multiple modalities, so that during the attention operation of the large-scale language model (610), it may be possible to identify which modality the token originated from. That is, during the attention process, the large-scale language model (610) can recognize which token belongs to which modality through position encoding (or position embedding) and a distinguishing token (for example, it can identify a structural hint such as "this token is an image-based token").
[0189] A large-scale language model (610) can learn, through an attention mechanism, which tokens corresponding to which modality a query primarily assigns attention to. Additionally, the large-scale language model (610) can learn association inference between query types and modalities.
[0190] For example, let's assume the query is "Tell me the highest value in this chart." In this case, the large language model (610) can assign a high attention weight to the token corresponding to the chart modality. That is, if a high attention weight is formed between the query and the token corresponding to the modality, the modality can be determined to be associated with the query.
[0191] As another example, let's assume the query is "Tell me the lowest value in this chart." In this case, the parameters of the large language model (610) can be adjusted so that during training of the large language model (610), the focus is on chart tokens corresponding to chart modalities for similar queries.
[0192] As another example, let's assume the query is "What is the location of the object in the picture?" In this case, the large language model (610) can be trained to focus attention on the image token corresponding to the image modality.
[0193] Furthermore, the learned large-scale language model (610) is associated with a query among multiple modalities (21, 22, 23) constituting the document (20), and can specify a specific modality to be used for generating an answer, and can generate an answer to the query using specific data extracted from the specific modality.
[0194] In one embodiment, a large-scale language model (610) can process a combined token sequence through an attention mechanism. The large-scale language model (610) can perform self-attention on the combined token sequence. Each token of the query token (or query token) can calculate a pairwise relationship with all tokens including itself and focus on the token with higher relevance, regardless of whether it is text, an image, or a chart. In this process, tokens corresponding to a specific modality have a high attention weight with the query token, and as a result, the large-scale language model (610) can focus on information of the modality associated with the query.
[0195] In another embodiment, a large-scale language model (610) performs a self-attention mechanism on a combined token sequence and can calculate the association between each token based on a query token. The query token can learn to determine which modality's information is important through the attention weight with the previously input combined token sequence. Assuming the query is "What trend does this chart show?", the query token assigns a high attention score to the chart tokens corresponding to the chart modality, which allows the large-scale language model (610) to determine that the chart modality is key information.
[0196] In another embodiment, cross-modal inference occurs through self-attention on a combined token sequence of a large-scale language model (610), and information related to a query can be inferred through the relationship between multiple modalities (21, 22, 23). If information related to a query is included only in a specific modality, the large-scale language model (610) can generate an answer to the query by assigning attention to the token corresponding to that modality. Additionally, if the query requires inference between multiple modalities (21, 22, 23), the large-scale language model (610) can generate an answer to the query by integrating the semantics between multiple modalities (21, 22, 23) through cross-attention.
[0197] Additionally, the trained large-scale language model (610) may be configured to perform cross-modal inference rather than focusing on a single modality. For example, let us assume the query is "Why is the value shown in the chart explained in the text?" In this case, the data processing unit (500) can perform inference by simultaneously learning chart tokens corresponding to the chart modality and text tokens corresponding to the text modality. This may occur within the cross-attention or self-attention layer of the large-scale language model (610) based on the similarity between tokens corresponding to each of the multiple modalities (21, 22, 23) and the association between query tokens.
[0198] That is, the large-scale language model (610) can process the combined token sequences on a token-by-to-token basis through an autoregressive method. In this process, the large-scale language model (610) learns the information associations between multiple modalities (21, 22, 23) through cross-attention between multiple modalities (21, 22, 23) and can generate appropriate answers to queries.
[0199] Meanwhile, the data processing unit (500) can process the modality having multiple data characteristics through multiple feature extraction methods when a specific modality has multiple data characteristics.
[0200] For example, as illustrated in FIG. 5d, the data processing unit (500) can process a second modality (22) having data characteristics of a chart modality and data characteristics of a text modality among a plurality of modalities (21, 22, 23) classified through the classification module (510) using a second feature extraction method and a third feature extraction method. In this case, it can also be understood that the second modality (22) having a plurality of data characteristics is classified into a chart modality and a text modality by the classification module (510). The data processing unit (500) can extract a second specific data (22a) and a third specific data (23a), respectively, from the second modality (22) using the second feature extraction method and the third feature extraction method.
[0201] However, the present invention does not limit the aforementioned preset feature extraction method used to extract data from a plurality of modalities to any one of them. That is, it is obvious that the present invention may utilize various feature extraction methods in response to various situations or purposes.
[0202] Next, the answer generation unit (600) may be configured to perform the role of generating answers to queries related to documents using an artificial intelligence model (e.g., a large-scale language model (610)).
[0203] For example, the answer generation unit (600) can specify at least one data related to a query among the data extracted from each of the multiple modalities, and input the specified data and the query into a large-scale language model (610) to generate an answer.
[0204] More specifically, the answer generation unit (600) can obtain an output result output from the artificial intelligence model based on data input to the artificial intelligence model. Here, the output result may include at least one of an output token, an output embedding, or an output text generated by the artificial intelligence model processing the input data. The answer generation unit (600) can generate an answer to a user query using the obtained output result.
[0205] In the present invention, the answer generation unit (600) may generate a query expression corresponding to the user query in order to specify a modality among a plurality of modalities to be used for processing the user query. Here, the query expression may be an embedding vector that expresses the meaning of the user query in a vector form, and may also be expressed as a "query embedding vector" or a "query token." In one embodiment, the answer generation unit (600) may input the user query into a text encoder and obtain an embedding vector output from the text encoder as the query expression.
[0206] The answer generation unit (600) can calculate the similarity between the query expression and the data extracted from each of the plurality of modalities. Here, the similarity may be calculated based on at least one of cosine similarity, dot product, or Euclidean distance between the embedding vectors (e.g., image embedding vector, chart embedding vector, text embedding vector) corresponding to each of the query expression and the modalities. However, the present invention does not limit the method for calculating similarity to any one of these.
[0207] The answer generation unit (600) can calculate the importance for each of the plurality of modalities based on the calculated similarity. In one embodiment, the importance may be calculated as a value proportional to the calculated similarity. For example, if the similarity between a query expression corresponding to a user query and a chart embedding vector corresponding to a chart modality is higher than the similarity between embedding vectors corresponding to other modalities, the importance for the chart modality may be calculated as a value higher than the importance for other modalities. In another embodiment, the importance may be calculated as a value output by inputting the calculated similarity into a preset normalization function (e.g., a softmax function).
[0208] The answer generation unit (600) can specify at least one modality among the plurality of modalities to be used for processing user queries based on the calculated importance. For example, the answer generation unit (600) can specify at least one modality for which the importance for each of the plurality of modalities is greater than or equal to a preset threshold. As another example, the answer generation unit (600) may specify the top N modalities (N is a natural number) with the highest importance among the plurality of modalities.
[0209] Next, the control unit (700) can perform the role of controlling the overall operation of the answer generation system (1000) related to the present invention. The control unit (700) can process signals, data, information, etc. that are input or output through the components of the answer generation system (1000) described above, or perform a series of data processing to provide or process appropriate information and functions to the user. The control unit (700) can be physically implemented by the processor described above.
[0210] Meanwhile, the answer generation system (1000) according to the present invention can generate a modality application policy corresponding to the characteristics of a user query. More specifically, the answer generation system (1000) can analyze the user query and determine whether the user query corresponds to a single modal query or a cross-modal query. Here, a single modal query may refer to a query for which an answer can be generated based on a single modality among multiple modalities, and a cross-modal query may refer to a query for which an answer is generated based on cross-inference between multiple modalities among multiple modalities.
[0211] Furthermore, the modality application policy according to the present invention may be determined based on a user query and, in addition to the user query, information regarding at least one modality among a plurality of modalities. That is, in the present invention, the determination of the modality application policy may be performed by considering the user query and information regarding at least one modality among the plurality of modalities together, rather than using the user query alone regardless of the information regarding the modality.
[0212] Here, the information regarding the user query may include at least one of the text of the user query, a query expression (or query embedding vector) derived from the user query, semantic characteristics of the user query, the intent of the user query, and the type of the user query. Additionally, the information regarding at least one modality among the plurality of modalities may include at least one of the data characteristics of the at least one modality (e.g., the representation format of the modality, information structure, temporal and spatial continuity, semantic interpretation criteria, etc.), feature data extracted from the at least one modality, and the classification result of the at least one modality.
[0213] In one embodiment, the answer generation system (1000) can determine the modality application policy by processing together as input i) a query expression derived from a user query and ii) feature data extracted from at least one of the plurality of modalities. More specifically, the answer generation system (1000) can calculate the importance for each of the plurality of modalities based on the association (e.g., similarity) between the query expression and the feature data extracted from each of the plurality of modalities, and determine either the single modality application policy or the cross modality application policy as the modality application policy based on the type of the user query (e.g., single modal query or cross modal query) and the importance.
[0214] In another embodiment, the answer generation system (1000) may process information regarding the data characteristics of each of the plurality of modalities classified through the classification module (510) (e.g., modality types such as image modality, chart modality, or text modality) as input for determining the modality application policy, together with information regarding the user query. In this case, if the type of the user query is determined to be a single modal query, the answer generation system (1000) may determine an identifier for a single modality available for use in the answer to the user query among the classified plurality of modalities to generate the single modality application policy, and if the type of the user query is determined to be a cross-modal query, it may determine a set of identifiers for a multi-modality available for cross-inference between multi-modalities among the classified plurality of modalities to generate the cross-modality application policy.
[0215] In another embodiment, the expression "modality application policy determined based on the user query and at least one of the plurality of modalities" in this specification may be interpreted as equivalent to the expression "modality application policy determined based on the user query and at least one of the plurality of modalities." That is, these expressions may be understood as comprehensively representing a series of data processing in which a modality application policy is determined by considering the user query as an essential base element and information regarding at least one of the plurality of modalities together.
[0216] The determination of whether a user query corresponds to either a single-modal query or a cross-modal query can be performed by at least one of a classification module (510), a router (RT), or a separate query classifier. For example, the answer generation system (1000) may input the user query into a learned query classification model and perform the determination based on the classification result output from the query classification model (e.g., a first class corresponding to a single-modal query or a second class corresponding to a cross-modal query). As another example, the answer generation system (1000) may perform the determination based on keywords included in the user query (e.g., cross-modal keywords such as "comparison," "relationship," or "match").
[0217] The answer generation system (1000) can generate a modality application policy based on the above determination result. In one embodiment, if it is determined that a user query corresponds to a single modal query, the answer generation system (1000) can generate a single modality application policy corresponding to the single modal query as a modality application policy. Here, the single modality application policy may include an identifier for at least one single modality corresponding to the user query among a plurality of modalities. In another embodiment, if it is determined that a user query corresponds to a cross-modal query, the answer generation system (1000) can generate a cross-modality application policy corresponding to the cross-modal query as a modality application policy. Here, the cross-modality application policy may include a set of identifiers for a multimodality to be used for cross-inference between multimodalities among a plurality of modalities.
[0218] In another embodiment, if the answer generation unit (600) determines that the user query corresponds to a single modal query, it may generate a single modal answer corresponding to the single modal query as an answer to the user query. Here, the single modal answer may refer to an answer generated based on a single modality among the plurality of modalities.
[0219] Additionally, if the answer generation unit (600) determines that the user query corresponds to a cross-modal query, it may generate a cross-modal answer corresponding to the cross-modal query as an answer to the user query. Here, the cross-modal answer may refer to an answer generated based on cross-inference between multimodalities among the plurality of modalities.
[0220] That is, the answer generation unit (600) can generate either the single modal answer or the cross-modal answer as an answer to the user query. Through this, the present invention can adaptively generate differentiated answers according to the type of user query.
[0221] Meanwhile, the answer generation system (1000) according to the present invention may include at least one specialized model (SM).
[0222] In one embodiment, the expert model (SM) may refer to an artificial intelligence model that has undergone optimized learning for a specific purpose. That is, the expert model (SM) may be an artificial intelligence model trained according to specialized training data and methods to achieve a predetermined purpose.
[0223] Such expert models (SM) may include a learned specific sLLM (including MoELM and / or DMoE models), a general MoE model (NM) and / or an external model (EM), etc. Additionally, the expert model may include an expert module model according to an embodiment of the present invention disclosed in the answer generation method according to the present invention described below. The sLLM, general MoE model (NM), external model (EM), and / or expert model (SM) described above may be a secondary model (S) capable of performing a specific task according to the control and management of the master model (P) of the AI agent model (i.e., an orchestrator (OCT) and / or router (RT), etc.). Here, the router (RT) may be an artificial intelligence module that selectively determines a model (hereinafter referred to as a domain-specific model) that executes data processing operations optimized for a specific domain.
[0224] In this regard, the answer generation system (1000) according to the present invention may include a Mixture of Experts (MoE) structure in which a plurality of expert models are selectively activated according to modality characteristics. Alternatively, a large-scale language model (610) may include a MoE structure in which a plurality of expert models (or expert modules, specialized models, expert processing models, etc.) and / or sub-models are dynamically activated according to query characteristics and document context. Such a MoE structure enables the simultaneous securing of accuracy and universality in query interpretation and answer generation by selectively deploying the most suitable expert model for various types of queries or domain situations.
[0225] Here, MoE may refer to the architecture of a machine learning model that solves complex problems by combining multiple expert models. Such a MoE may include expert models, which are multiple small networks designed to learn different parts and / or different characteristics of given data and perform data processing operations accordingly, and a gating network that evaluates the performance of each expert model and, based on this, determines which expert model is most suitable for assigning a specific task based on given data.
[0226] Thus, according to the MoE architecture, a gating network that acquires predetermined input data determines probabilistic or deterministic task assignments for each expert model, and the selected expert models perform their respective tasks and return the results, thereby enabling data processing for a specific task.
[0227] In one embodiment, the MoE structure of the answer generation system (1000) according to the present invention may be configured to include an Expert Pool in which sub-models specialized for each modality (image, chart, text, chemical structure, etc.) exist as a predefined set, a Gating Network that dynamically selects an expert model to be activated based on the type of query, the modality associated with the query, the subject and contextual information of the document, and an answer generation module that generates a final answer by synthesizing intermediate outputs or inference results generated by a plurality of expert models.
[0228] That is, the answer generation system (1000) has a specialized model for a specific modality (or multiple modalities), and the control unit (700) or classification module (510) can operate by comprehensively analyzing the query content, document context, data characteristics of the modality, etc., to activate an appropriate specialized model.
[0229] For example, when the query is related to a chart, the answer generation system (1000) activates a specialized model for chart analysis to simultaneously interpret visual elements (colors, markers, linear trends, etc.) and numerical information (table values, etc.).
[0230] In another example, when a complex query about a document (e.g., “Look at the changes shown in the chart and check if they match the text description”) is input to the answer generation system (1000), a specialized model for chart-text cross-modal reasoning is activated to perform inference of relationships between different modalities.
[0231] As another example, when a query related to a chemical structure (e.g., "What are the functional groups of this compound structural formula?") is input into the answer generation system (1000), a specialized model specialized in chemical structure recognition is selected to perform a judgment on the structure.
[0232] Furthermore, each specialized model or classification module (510) can be utilized not only for direct output to generate an answer to a query but also for intermediate judgments (e.g., calculating modality importance, highlighting relevant information, etc.), and in some cases, a structure that cooperates with a higher module (or model) for multi-stage inference can also be implemented.
[0233] As such, the present invention can accurately interpret the semantics between multiple modalities through this MoE structure and provide a flexible and scalable processing structure for complex queries that are difficult to handle with a single model. Furthermore, for complex queries, the present invention performs multi-stage inference through a cooperative inference process of multiple expert models rather than a single expert model under the MoE structure, thereby enabling precise response to both single-modal and cross-modal queries.
[0234] Meanwhile, the answer generation system (1000) according to the present invention can determine at least one professional model among a plurality of professional models to be activated for processing a user query based on the calculated importance and the modality application policy. In one embodiment, a gating network (or router (RT)) can primarily select a professional model corresponding to an identifier for a modality included in the modality application policy, and secondarily determine a professional model to be activated among the primarily selected professional models based on the calculated importance.
[0235] For example, if a user query is determined to be a single-modal query and a single-modality application policy is generated, and the single-modality application policy includes an identifier for a chart modality, the answer generation system (1000) may determine a specialized model specialized in chart analysis as the specialized model to be activated. As another example, if a user query is determined to be a cross-modal query and a cross-modality application policy is generated, and the cross-modality application policy includes a set of identifiers for a chart modality and a text modality, the answer generation system (1000) may determine a specialized model specialized in chart-text cross-modal inference as the specialized model to be activated.
[0236] The answer generation system (1000) can obtain an answer to a user query by inputting data extracted from a modality corresponding to the determined expert model among the data extracted from each of the plurality of modalities into an artificial intelligence model including the determined expert model. In this case, since the determined expert model is a model learned based on data characteristics corresponding to the modality, an answer that matches the data characteristics of the modality can be generated.
[0237] More specifically, the answer generation system (1000) obtains an output result output from the artificial intelligence model and, using the output result, can generate either the single modal answer corresponding to the single modal query or the cross modal answer corresponding to the cross modal query as an answer to the user query.
[0238] Meanwhile, the present invention aims to provide an answer generation method and system capable of understanding various content and generating high-quality answers to queries based thereon. More specifically, the present invention aims to provide an artificial intelligence model (e.g., a large-scale language model) capable of understanding various modalities and generating high-quality answers to queries in an environment containing various modalities. Below, together with the attached drawings, we will examine in more detail the method for training the artificial intelligence model used in the present invention. Figures 6a, 6b, 6c, 7a, and 7b are conceptual diagrams illustrating the method for training the artificial intelligence model used in the present invention.
[0239] Meanwhile, in the present invention, training of an artificial intelligence model can be performed for efficient question and answer (Q&A) in an environment containing various modalities. More specifically, in the present invention, an artificial intelligence model can be trained to understand multiple modalities having different data characteristics and to generate an answer to a query based on the results of understanding said multiple modalities. For example, said artificial intelligence model may include a large-scale language model (610). For convenience of explanation, said artificial intelligence model to be trained will be described below as a "large-scale language model (610)."
[0240] The answer generation system (1000) can generate a training data set to be used for training a large-scale language model (610) and can perform training on the large-scale language model (610) using the generated training data set. In the present invention, the training data set used for training the large-scale language model (610) may include a plurality of different training data sets. For example, the plurality of different training data sets may include at least one of a first training data set (210) and a second training data set (220) (see FIG. 4).
[0241] The answer generation system (1000) can train the large-scale language model (610) using a first learning method among a plurality of pre-set learning methods (or methods, techniques, etc.) to improve the understanding of the large-scale language model (610) for multiple modalities having different data characteristics. Here, the first learning method is a method for improving the understanding of the large-scale language model (610) for each of the multiple modalities, and may also be expressed as "IC-tuning (Image and Chart Instruction Tuning)".
[0242] In the training of a large-scale language model (610) through a first training method, the first training data set (210) among a plurality of different training data sets (210, 220) may be used (or utilized, leveraged, etc.). This first training data set (210) may be configured to include at least one of a first sub-training data set and a second sub-training data set.
[0243] The first sub-training dataset may be configured to include instruction data of multiple categories, including image modalities, chart modalities, and text modalities. For example, the first sub-training dataset may include at least one of i) instruction data based on image modalities and text modalities, ii) instruction data based on chart modalities and text modalities, iii) instruction data based on image modalities, iv) instruction data based on chart modalities, and v) instruction data based on text modalities. The first sub-training dataset may be composed of multiple question-answer (QA) data or description (or description) data. This first sub-learning data set may be data collected through at least one of various sources (e.g., a website, a database (DB), an API, a server connected to an answer generation system (1000), a central server, an external server, cloud storage, a user terminal (10), a large-scale data set, etc.).
[0244] The second sub-learning data set may be a set generated (or constructed) based on a chart (or chart image) and a table (or table). In the present invention, the second sub-learning data set may be generated by considering not only numerical information (or numerical values) within the table, but also visual information included in the chart image (e.g., text around the chart (title, etc.), legend (x-axis and y-axis labels), color, etc.). That is, the second sub-learning data set may be constructed by considering the visual information (or visual information) included in the chart image and the numerical values of the table.
[0245] The answer generation system (1000) can generate a second sub-learning data set that reflects visual information using a data generation model based on a table and a chart image. For example, as illustrated in FIGS. 6a and 6b, the answer generation system (1000) can generate a second sub-learning data set based on both a chart image (301) and a table (302) using a data generation model (800). This second sub-learning data set may include at least one of chart summarization data (or chart description data, 211) generated using input data in which a chart image (301) and a table (302) form a pair, open-ended QA data (or open-ended QA data, 212) generated based on the chart summarization data (211), and reasoning QA data (or reasoning-based QA data, 213).
[0246] In this case, a prompt (or input prompt) for generating a second sub-training data set may be stored in the storage unit (400, or memory). More specifically, at least one prompt input to the data generation model (800) for generating the second sub-training data set may be stored in the storage unit (400). For example, a plurality of prompts for generating chart summary data (211), open question-and-answer data (212), and inference-type question-and-answer data (213), respectively, may be stored in the storage unit (400). This data generation model may include an external model (e.g., generative model, large-scale language model, multimodal model, etc.) provided by a server (e.g., artificial intelligence server (not shown)) linked to the answer generation system (1000) to generate the training data set. For example, the external model (EM) may be used selectively as needed to support the processing of a given task.
[0247] In this regard, the answer generation system (1000) may input to the data generation model (800) a pair of input data (or chart-table pairs) in which a chart image (301) and a table (302) collected from at least one source (e.g., a website, a database (DB), an API, a server linked to the answer generation system (1000), a central server, an external server, a cloud storage, a user terminal (10), or at least one of a large dataset) a prompt for generating chart summary data (211) (or a first prompt, or a first input prompt) among a plurality of prompts for generating a second sub-training data set for generating chart summary data (211).
[0248] And, the answer generation system (1000) can obtain chart summary data (211) for the input data generated from the data generation model (800). A prompt for generating such chart summary data (211) can be configured as in the following example (see Table 1 below). In this case, if only the chart is used and no table exists, a specific part (e.g., "and its table", "Your description must not mention "table" and as if it were generated from chart alone") may be excluded (or deleted) from the prompt.
[0249] Chart: {Chart}Table: {Table} Given the chart and its table, your goal is to generate a detailed description for the chart. Your description must not mention "" and as if it were generated from the chart alone. If the chart contains text, you must copy that text. The description should include all numeric values shown in the chart. If you estimate a numeric value from a chart where the numbers are not displayed, you must use the term "" to indicate the estimated value in the description.
[0250] The chart summary data (211) generated through the data generation model (800) provides a more comprehensive understanding than a summary generated based only on a table, and enables the generation of various queries using visual elements.
[0251] Additionally, the answer generation system (1000) can generate questions and answers for open-ended question and answer based on chart summary data (211) generated through the data generation model (800). The answer generation system (1000) can input the chart summary data (211) and a prompt (or second prompt, or second input prompt) for generating open-ended question and answer data (212) among a plurality of prompts for generating a second sub-training data set into the data generation model (800).
[0252] And, the answer generation system (1000) can obtain open question-and-answer data (212) generated from the data generation model (800). A prompt for generating this open question-and-answer data (212) can be configured as in the following example (see Table 2 below, where "Description of chart" in the prompt represents chart summary data (211)).
[0253] Chart: {Description of chart} Given chart, generate 4 questions and answers. You should start with "Question_1: ” and "Answer_1: ”. Question_1 requires identifying a specific target or describing the characteristics of the specific target. Question_2 requires comparisons between specified targets. Question_3 requires mathematical or logical operations such as average, sum, difference, and so on. Question_4 requires describing the trends shown in the chart. Question must be simple enough. (The query must be sufficiently simple.)
[0254] Furthermore, the inference-type question-answer data (213) may be generated similarly to the open-type question-answer data (212), but may include answers in the Chain of Thought (CoT) style. Here, a Chain of Thought style answer may refer to a response format that does not immediately present the correct answer to the question, but explicitly describes a series of logical and step-by-step thought processes to derive the answer. For example, it may be a response format that describes a series of intermediate inference processes required in the problem-solving process step-by-step before directly presenting the correct answer to a complex question.
[0255] The answer generation system (1000) may input a prompt (or a third prompt, or a third input prompt) for generating inference-type question-response data (213) among a plurality of prompts for generating a second sub-training data set into the data generation model (800). Then, the answer generation system (1000) may obtain the inference-type question-response data (213) generated from the data generation model (800). The prompt for generating such inference-type question-response data (213) may be configured as shown in the following example (see Table 3 below).
[0256] You are responsible for generating an answer for the given chart and question. Note that the chart is converted to a table. Assume that the given table is a chart, not a table. Let's think step by step. Then generate the answer after "The answer is". [Chart] Year | Democrats | Republicans | Independents & 2004 | 68.1% | 45.0% | 53.0% & 2006 | 58.0% | 42.0% | 53.0% & 2007 | 59.0% | 38.0% | 45.0% & 2009 | 72.0% | 49.0% | 60.0% & 2011 | 71.0% | 51.2% | 58.0% & 2012 | 70.0% | 48.0% | 53.0% & 2013 | 72.0% | 41.0% | 60.0% Q: In which year republicans have the lowest favor rate? A: Let's find the column of republicans. Then let's extract the favor rates, they [45.0, 42.0, 38.0, 49.0, 51.2, 48.0, 41.0]. The smallest number is 38.0, that's Row 3. Row 3 is year 2007. The answer is 2007. The answer is 2007. (Find the Republican column, and the support rates for each year [45.0, 42.0, 38.0, 49.0, 51.[Check 2, 48.0, 41.0]. The lowest value is 38.0, which is the 3rd row. The 3rd row is 2007. The answer is 2007.)Q: What is the sum of Democrats' favor rates of 2004, 2012, and 2013?A: Let's find the rows of years 2004, 2012, and 2013. We find Row 1, 6, and 7. The favor dates of Democrats on that 3 rows are 68.1, 70.0, and 72.0. 68.1+70.0+72=210.1. The answer is 210.1. (Find the rows for 2004, 2012, and 2013. These are the 1st, 6th, and 7th rows. The Democratic Party approval ratings for these rows are 68.1, 70.0, and 72.0, respectively. 68.1 + 70.0 + 72.0 = 210.1. The answer is 210.1.) Q: By how many points do Independents surpass Republicans in the year of 2011? A: Let's find the row with year = 2011. We find Row 5. We extract the Independents and Republicans' numbers. They are 58.0 and 51.2. 58.0 - 51.2 = 6.8. The answer is 6.8. (Find the 2011 row (5th) and compare Independent 58.0 with Republican 51.2. 58.0 - 51.2 = 6.8. The answer is 6.8.) Q: Which group has the overall worst performance? A: Let's sample a couple of years.In Row 1, year 2004, we find Republicans having the lowest favor rate of 45.0 (since 45.0<68.1, 45.0<53.0). In year 2006, Row 2, we find Republicans having the lowest favor rate of 42.0 (42.0<58.0, 42.0<53.0). The trend continues to other years. The answer is Republicans. Q: Which party has the second highest favor rates in 2007? (Which party recorded the second highest approval rating in 2007?) A: Let's find the row of year 2007, that's Row 3. Let's extract the numbers on Row 3: [59.0, 38.0, 45.0]. 45.0 is the second highest. 45.0 is the number of Independents. The answer is Independents. (2007 is the 3rd row. The figures are [59.0, 38.0, 45.0]. The second highest value is 45.0, which is the value for Independents. The answer is Independents.) [Chart]{Table}Q: {Question}.
[0257] As described above, the present invention can generate a second sub-learning data set that includes both accurate numerical information contained in a table and visual information expressed in a chart image. In the present invention, the second sub-learning data set may also be expressed as "visual-aware chart instruction-following data," "visual recognition (or information) based chart instruction-following data," "visual information based chart instruction data," or "chart instruction-based data reflecting visual information."
[0258] Meanwhile, the first learning method may be composed of a learning procedure including multiple steps (or steps, stages, etc.).
[0259] First, among the multiple steps of the first learning method, the first step (or first step, first stage, etc.) can be understood as a pre-learning step for aligning image and chart features. In the first step, the projection layer (172a) of the image encoder (172) can be trained with training data in which an image and text form a pair, and the projection layer (173a) of the chart encoder (173) can be trained with training data in which a chart and text form a pair and training data in which a table and a chart form a pair. At this time, the parameters of the large-scale language model (610) can be kept in a frozen state. That is, in the first step, only the projection layers (172a, 173a) of the image encoder (172) and the chart encoder (173), respectively, are trained, and modality feature alignment data can be mixed and used.
[0260] Next, among the multiple steps of the first learning method, the second step (or second step, second stage, etc.) can be understood as a learning step based on image and chart instruction following data. In the second step, learning (e.g., fine-tuning) can be performed on the projection layers (172a, 173a) of the large-scale language model (610), image encoder (172), and chart encoder (173), respectively, using the first sub-learning data set among the multiple sub-learning data sets included in the first learning data set (210).
[0261] Furthermore, among the multiple steps of the first learning method, the third step (or third step, third stage, etc.) can be understood as an additional fine-tuning step using the second sub-learning data set. In the third step, the large-scale language model (610) can be additionally trained using the second sub-learning data set generated in the present invention. At this time, in the third step, in order to prevent the forgetting phenomenon of the large-scale language model (610), at least a portion of the first sub-learning data set used in the second step can be sampled together to perform additional training of the large-scale language model (610).
[0262] Meanwhile, a large-scale language model (610) trained with a first training data set (210) can be further trained using a second training data set (220) to generate responses to different types of queries in a multimodal context that includes multiple modalities having different data characteristics.
[0263] Here, different types of queries may include a first type of query and a second type of query. A first type of query may include a single-modal query, and a second type of query may include a cross-modal query.
[0264] For example, in the case of a unimodal query, a large-scale language model must accurately identify the evidence corresponding to the answer to the query within a multimodal context. As another example, in the case of a cross-modal query, a large-scale language model must be able to find evidence spanning multiple modalities and generate an answer based on it.
[0265] To this end, the answer generation system (1000) may construct a second training data set (220) to enable a large-scale language model (610) to generate an efficient response to a query in a multimodal environment that includes image, chart, and text modalities. In the present invention, the second training data set (220) may also be expressed as an "ICT-QA (Question Answering over Image, Chart and Text) data set."
[0266] In one embodiment, the answer generation system (1000) may collect multimodal contexts for generating multimodal contexts based on actual scenarios. The answer generation system (1000) may crawl articles from websites or collect at least one of documents, papers, and reports from various sources. These articles, documents, papers, reports, etc. may be configured to include at least one of text, images, and charts.
[0267] Subsequently, as illustrated in FIG. 7a, the answer generation system (1000) can generate (or configure) a multimodal context by extracting one image (411), one chart (412), and the whole text (413) included in the collected document (410).
[0268] The answer generation system (1000) may define multiple types of queries to generate a first type of query and a second type of query for the multimodal context. For example, the table (450) illustrated in FIG. 7b may represent examples of each type of query. A query may specify the location where evidence exists according to a specific modality combination (e.g., "Image + Text", "Chart + Text", etc.). Each of these types may mean a query that requires the ability to infer between an image (411) and text (413) or a chart (412) and text (413).
[0269] The answer generation system (1000) may use a data generation model (800) to generate predefined pairs of question and response types for the multimodal context. For image modality and chart modality, the answer generation system (1000) may first generate a description of the image (411) or chart (412) and then generate a question and response based thereon. Additionally, when the answer generation system (1000) generates a question for image modality and chart modality, it may also include text (e.g., a paragraph) surrounding the image (411) or chart (412) in the prompt to generate a second training data set (220) in order to generate a second type of question.
[0270] A prompt (or input prompt) for generating a second training data set (220) may be stored in the storage unit (400, or memory). More specifically, at least one prompt input to a data generation model (800) for generating the second training data set (220) may be stored in the storage unit (400). For example, prompts for generating Image QA data, Chart QA data, and Text QA data may be stored in the storage unit (400), respectively.
[0271] The answer generation system (1000) can input the multimodal context and a prompt for generating the second training data set (220) into the data generation model (800) to generate the second training data set (220).
[0272] The prompt input to the data generation model (800) to generate image question-answer data (image QA data) among the prompts for generating the second training data set (220) can be configured as shown in the following example (see Table 4 below).
[0273] {Image}Title: {Article title}Context: {Context}First, generate a detailed description of the given image. (starting with "Detailed description of the image:") (First, generate a detailed description of the given image.) (Starting with "Detailed description of the image:")Second, generate 3 questions and answers about the image in the context of the given text. Generated question and answer should start with "Question_1: " and "Answer_1": (Next, write three questions and three answers based on the image within the context of the given text. The generated questions and answers must start in the following format: "Question_1"""Question should ask about information described in the image in the context of text. Question_1 ask identifying the target or describing the characteristics of the specific target. Question_2 ask how the specific target of the image relates to the surrounding text. Question_3 ask why the image is included in the document. (The questions should ask about the meaning of the information described in the image within the context of the text. Question_1 must be a question that identifies a specific target in the image or describes the characteristics of that target. Question_2 must be a question that asks how the specific target in the image relates to the surrounding text.Question_3 must be a query asking why the image in question was included in the document.) Answer should include only the information described in the image and text. Answer should be detailed. Answer should explain where the evidence was derived from the image or text. (The answer must include only the information described in the image and text. The answer must be specific and detailed. The answer must clearly state whether the evidence was extracted from the image or the text.)
[0274] Additionally, among the prompts for generating the second training data set (220), the prompt input to the data generation model (800) for generating chart question-answer data (chart QA data) can be configured as shown in the example below (see Table 5 below).
[0275] {Chart}Title: {Article title}Context: {Context}First, generate a detailed description of the given chart. (starting with "Detailed description of the chart:") Second, generate three questions and answers about the chart in the context of the given text. The generated questions and answers should start with "Question_1": and "Answer_1":. The questions should ask about information described in the chart. Questions should not contain phrases that refer to charts, such as "on this chart." Question_1 requires identifying a specific target or describing the characteristics of the specific target. Question_2 requires comparisons between specified targets. Question_3 explains why the chart is included in the document. Answer should include only the information described in the chart and text. Answer should be detailed.The answer should explain where the evidence was derived from the chart or text. (The query must be based on the information described in the chart and must not include phrases that directly refer to the chart, such as "in this chart." Question_1 must be a query that identifies a specific subject or describes its characteristics. Question_2 must be a query that requires a comparison between specified subjects. Question_3 must be a query asking why the chart was included in the document. The answer must include only the information specified in the chart and text. The answer must be specific and detailed, and clearly state whether the basis was derived from the chart or the text.)
[0276] Additionally, the prompt input to the data generation model (800) to generate text question-answer data (text QA data) among the prompts for generating the second training data set (220) can be configured as shown in the example below (see Table 6 below).
[0277] Title: {Article title}Context: {Context}Generate 3 questions and answers. Generated question and answer should start with "Question_1:" and "Answer_1": Question should ask about information described in the given text. Question_1 requires identifying a specific target or describing the characteristics of the specific target. Question_2 requires reasoning. Question_3 requires summarizing. Answer should include only the information described in the text. Answer should be detailed. Answer should explain where the evidence was derived from the text. (Generate 3 questions and answers. The generated questions and answers must start in the following format: "Question_1:", "Answer_1": Questions must be based on information described in the given text. Question_1 must be a question that identifies a specific target or describes the characteristics of that target. Question_2 must be a question that requires reasoning. Question_3 must be a question that requires summarizing.
[0278] In this case, {Context} included in the prompt examined above may refer to the paragraph close to the corresponding image or chart in the case of image QA data and chart QA data (see Tables 4 and 5 above). Additionally, in the case of text QA data, the remaining text excluding the paragraph used for generating image and chart QA may be used as {Context} (see Table 6 above).
[0279] Furthermore, the answer generation system (1000) can obtain a second training data set (220) generated from the data generation model (800). The second training data set (220) can be constructed such that a first type of query for the multimodal context and a response to the first type of query form a pair, and a second type of query for the multimodal context and a response to the second type of query form a pair (see FIG. 7a).
[0280] A large-scale language model (610) trained with a first training data set (210) can be further trained using a second training data set (220) to generate answers to a first type of query or a second type of query in a multimodal context containing multiple modalities.
[0281] The answer generation system (1000) can further train a large-scale language model (610) trained with a first training data set (210) through a second training data set (220). The trained large-scale language model (610) can understand multiple modalities and generate answers to queries in documents containing multiple modalities. That is, in the present invention, by further fine-tuning the large-scale language model (610) trained with the first training data set (210) with the second training data set (220), the ability to search for evidence related to a query within a multimodal context including images, charts, text, etc., can be improved, and the quality of answers generated for various types of queries (e.g., single-modal queries, cross-modal queries) can be improved.
[0282] In this regard, below, together with the attached drawings, we will look at an embodiment in which a large-scale language model (610) trained with a first training data set (210) and a second training data set (220) generates an answer. FIGS. 8a, 8b, and 8c are drawings illustrating an example of generating an answer to a query through an artificial intelligence model trained using the learning method according to the present invention.
[0283] In one embodiment, FIG. 8a illustrates an example of image QA data belonging to a purpose type (see table (450) in FIG. 7b), representing a case where both the image modality (811) and the text modality (813) among a plurality of modalities (811, 812, 813) must be referenced. In this case, the query (e.g., "Why is this image included in a document dealing with a generational analysis of climate change activism?", 810) may be related to a second type of query (or cross-modal query) among different types of queries. The learned large-scale language model (610) can effectively understand the text (813) of the document and accurately interpret the image (811) to derive an answer to the query (810) (e.g., "This image was likely included to visually show that the younger generation, particularly Millennials and Gen Z, are actively participating in the climate change movement. This image is used to emphasize the core of the sentence that young Americans are showing a high level of engagement with climate issues, and visually demonstrates this through the presence of climate change-related signs and individual activist stances.", 810a). These results may indicate that the learned large-scale language model (610) possesses multimodal reasoning capabilities.
[0284] In another embodiment, FIG. 8b illustrates an example of chart QA data belonging to a comparison type (see table (450) in FIG. 7b), indicating a case where the chart modality (822) among a plurality of modalities (821, 822, 823) must be referenced. In this case, the query (e.g., "What is the ratio of female high school students who reported poor mental health during the pandemic to male students?", 820) may be included in the first type of query (or single modal query) among different types of queries. A trained large-scale language model (610) can accurately derive answers to the query (820) based on the information presented in the chart (822) (e.g., "During the pandemic, a higher percentage of female high school students reported poor mental health than male high school students. Specifically, 49% of female students responded that they had poor mental health most of the time or always, which is about twice the percentage of male students who gave such a response (24%). Additionally, 57% of female students responded that they had stopped their normal activities because they felt sad or hopeless almost every day for at least two consecutive weeks, compared to 31% of male students. This information is based on survey data presented in the text and highlights the gap in mental health reporting between female and male students within the high school student population during the COVID-19 pandemic.", 820a).
[0285] In another embodiment, FIG. 8c illustrates an example of text QA data belonging to an identification type (see Table (450) in FIG. 7b), indicating a case where the text modality (833) among a plurality of modalities (831, 832, 833) must be referenced. In this case, the query (e.g., "According to the text, what was the COVID-19 related mortality rate per 100,000 people in the EU and the US as of November 5?", 830) may be included in the first type of query among different types of queries. A trained large-scale language model (610) can successfully extract necessary information from text (833) and accurately derive an answer to a query (830) (e.g., "As of November 5, the COVID-19 related death rate per 100,000 people in the EU was significantly lower than in the US. The EU recorded 41 deaths per 100,000 people, while the US recorded 71 deaths per 100,000 people. This information is derived from the comparison of death rates between the EU and the US in the text.", 830a).
[0286] As such, it can be confirmed that the large-scale language model (610) learned through the learning method according to the present invention effectively performs QA tasks in a multimodal context and shows high understanding in both situations requiring a single or multiple modalities.
[0287] Meanwhile, as examined above, a query input to a multimodal context containing multiple modalities may include different types of queries (e.g., a first type of query and a second type of query).
[0288] Accordingly, a query received (or input) from a user terminal (10) for a document containing multiple modalities may be associated with any one of different types of queries. For example, as seen above, different types of queries may include a first type of query and a second type of query. A first type of query may include a single-modal query, and a second type of query may include a cross-modal query.
[0289] As seen above, a large-scale language model (610) can be trained to understand each of the multiple modalities and generate an answer to a query in a multi-modal context containing multiple modalities having different data characteristics. That is, the large-scale language model (610) can be trained to understand the multiple modalities in a document containing multiple modalities and generate an answer to a first type of query or an answer to a second type of query.
[0290] First, let us examine the method for generating an answer to a first type of query when a first type of query is received among different types of queries in the present invention. At this time, since the process of classifying a plurality of modalities through a classification module (510) and the process of extracting data from each of the plurality of modalities through a multi-encoder have been described in more detail above, they will be briefly explained below to avoid duplication of explanation.
[0291] FIGS. 9a and 9b are drawings illustrating examples of generating answers to various types of inquiries about documents in the present invention.
[0292] In one embodiment, as illustrated in FIG. 9a, when the answer generation system (1000) receives a plurality of modalities (911, 912, 913) having different data characteristics, the plurality of modalities (911, 912, 913) can be input into a classification module (510). The classification module (510) can classify the first modality (911) as an image modality, classify the second modality (912) as a chart modality, and classify the third modality (913) as a text modality based on (or derived from) the data characteristics of each of the plurality of modalities (911, 912, 913).
[0293] Additionally, the answer generation system (1000) can input the first modality (911) classified through the classification module (510) into the image encoder (172) and input the second modality (912) into the chart encoder (173). Furthermore, the answer generation system (1000) can generate a text token sequence (913a) by performing tokenization on the data extracted from the third modality (503).
[0294] Furthermore, the answer generation system (1000) can obtain an image token sequence (911a), which is data extracted from the first modality (911), from the projection layer (172a) of the image encoder (172), and obtain a chart token sequence (912a), which is data extracted from the second modality (912), from the projection layer (173a) of the chart encoder (173). The answer generation system (1000) can combine the image token sequence (911a), the chart token sequence (912a), and the text token sequence (913a) into a single input sequence to generate a combined token sequence, and process the combined token sequence and the query (910) as inputs to a large-scale language model (610).
[0295] A large-scale language model (610) can identify a specific modality among multiple modalities (911, 912, 913) that is associated with the first type of query (910) and is to be used to generate an answer, based on the reception (or input) of a first type of query among different types of queries (e.g., "What is the percentage of people in Japan who consider North Korea's nuclear weapons program a major threat?", 910). Then, the large-scale language model (610) can generate an answer to the query (910) (e.g., "To find the specific percentage of people in Japan who consider North Korea's nuclear weapons program a major threat, if we look directly at the data provided for Japan, it is as follows. According to the chart, 73% of Japanese adults responded that they consider North Korea's nuclear weapons program a major threat to their country. Therefore, the correct answer is 73%.", 910a) using specific data extracted from the specific modality.
[0296] For example, a large-scale language model (610) can generate an answer by intensively analyzing parts associated with a query (910) through an attention mechanism, focusing on at least one of location information, numeric information, and color within a specific token sequence. The large-scale language model (610) can extract information (or evidence) associated with the query from chart tokens corresponding to chart modalities among the combined token sequences, and generate an answer (910a) to the query (910) using the extracted information.
[0297] Next, we will examine a method for generating an answer to a second type of query when a second type of query is received among different types of queries in the present invention.
[0298] In one embodiment, as illustrated in FIG. 9b, when the answer generation system (1000) receives a plurality of modalities (921, 922, 923) having different data characteristics, the plurality of modalities (921, 922, 923) can be input into a classification module (510). The classification module (510) can classify the first modality (921) as an image modality, classify the second modality (922) as a chart modality, and classify the third modality (923) as a text modality based on (or derived from) the data characteristics of each of the plurality of modalities (921, 922, 923).
[0299] Additionally, the answer generation system (1000) can input the first modality (921) classified through the classification module (510) into the image encoder (172) and input the second modality (922) into the chart encoder (173). Furthermore, the answer generation system (1000) can perform tokenization on the data extracted from the third modality (923) to generate a text token sequence (923a).
[0300] Furthermore, the answer generation system (1000) can obtain an image token sequence (921a), which is data extracted from the first modality (921), from the projection layer (172a) of the image encoder (172), and obtain a chart token sequence (922a), which is data extracted from the second modality (922), from the projection layer (173a) of the chart encoder (173). The answer generation system (1000) can combine the image token sequence (921a), the chart token sequence (922a), and the text token sequence (923a) into a single input sequence to generate a combined token sequence, and process the combined token sequence and the query (920) as inputs to a large-scale language model (610).
[0301] A large-scale language model (610) can identify at least one specific modality among multiple modalities (921, 922, 923) that is associated with the second type of query (920) and is to be used to generate an answer, based on the fact that a second type of query (920) among different types of queries is received (or input). And, the large-scale language model (610) can generate an answer to the query (920) (e.g., “This image is related to concerns about the monkeypox vaccine response expressed by gay or bisexual men by depicting an actual vaccination situation. This image visually shows a practical aspect of the public health response, which is part of the context of perception regarding the government response on which the survey results are based. This image helps explain specific measures being taken to respond to the outbreak, which may influence the public’s perception of the effectiveness of these responses.”, 920a).
[0302] For example, a large-scale language model (610) can perform semantic connections between multiple modalities (921, 922, 923) through cross-attention. The large-scale language model (610) can generate an answer (920a) to the query (920) by inferring the association between an image token sequence (921a) extracted from the first modality (921) and a text token sequence (923a) extracted from the third modality (923) among the combined token sequences (i.e., inferring the correspondence between elements included in the scene of the image and sentences included in the text). That is, information (or evidence) associated with the query (920) can be extracted (or identified) based on the integrated multimodal output (combined token sequence) in the attention mechanism-based structure of the large-scale language model (610), and an answer (920a) to the query (920) can be generated through chain-of-thought reasoning or regression.
[0303] Meanwhile, as described above, the present invention is intended to provide an answer generation method and system capable of understanding various content and generating high-quality answers to queries based thereon. The answer generation system (1000) according to the present invention can understand various modalities based on a learned artificial intelligence model (i.e., a learned large-scale language model (610)) and generate high-quality answers to queries in an environment containing various modalities.
[0304] Hereinafter, together with the attached drawings, we will examine in more detail the answer generation method performed by the answer generation system (1000) according to the present invention. FIG. 10 is a flowchart for explaining the answer generation method according to the present invention, and FIG. 11, FIG. 12, FIG. 13, FIG. 14 and FIG. 15 are conceptual diagrams for explaining the answer generation method according to the present invention.
[0305] Meanwhile, as illustrated in FIG. 10, the answer generation method according to the present invention may include the step of specifying at least one document including a plurality of modalities (S1010), the step of extracting data from each of the plurality of modalities based on different data characteristics of the plurality of modalities (S1020), the step of receiving a user query regarding the document from a user terminal (S1030), and the step of generating a modality application policy based on the user query and at least one of the plurality of modalities (S1040). Subsequently, based on the modality application policy, the step of specifying at least one modality among the plurality of modalities that satisfies a preset criterion (S1050), and the step of generating an answer to the user query using the data extracted from the specified modality among the data extracted from each of the plurality of modalities (S1060) may be performed.
[0306] In the present invention, the expression “specifies a document including multiple modalities” may also be expressed as “obtains a document including multiple modalities,” “collects a document including multiple modalities,” or “receives a document including multiple modalities.”
[0307] In this invention, the "document" may include information or content and may include any type of medium that can be stored, transmitted, processed, or referenced in electronic form. Such a document may include structured data or unstructured data and may consist of text, images, videos, charts, drawings, tables (or tables), graphs, codes, mathematical formulas (or equations), molecular structural formulas, chemical reaction formulas, or a combination thereof.
[0308] In one embodiment, the document may be data in the form of a file that is directly uploaded by the user. In this case, the document may include various electronic document formats such as word processor documents, presentation files, spreadsheet files, text files, image files, audio files, video files, and PDF files.
[0309] In another embodiment, the document may include content accessible via a network. In this case, the document may include a web page, a Uniform Resource Locator (URL) of a web page, content connected by a hyperlink, a post on the web page, a blog post, an online article, a wiki document, a record in a database, and a screen on a web-based application or related metadata.
[0310] In another embodiment, the document is not limited to a single file or a single web page, but may be a set of documents consisting of multiple pages, sections or resources, and may include part or all of a database, content stored in cloud storage, or content provided via streaming.
[0311] In another embodiment, the document may consist of a single file or multiple files, and may be divided into one or more pages, sections, objects, elements, or data blocks for management or processing. Additionally, the document may include not only static content but also dynamic content whose content changes according to user input, time, location, or external events.
[0312] However, in the present invention, the term "document" is not limited to the examples described above and may be understood to comprehensively refer to all forms of content and data representations that can be used for the storage, transmission, display, or processing of information.
[0313] Furthermore, in the present invention, the document may be used in its original form, or it may be stored and utilized in a form with preprocessing, summarization, segmentation, transformation, indexing, or added metadata. Additionally, the document may be interpreted as a concept that includes not only static content but also content that is updated or dynamically generated over time.
[0314] First, the control unit (700) can receive a document including a plurality of modalities from a user terminal (10). In this case, there may be various ways to receive a document including a plurality of modalities in the present invention.
[0315] In one embodiment, as illustrated in FIG. 11, the control unit (700) may receive a document (2100) containing multiple modalities based on user input received through a service page (2000) output (or provided) on the display unit of the user terminal (10). For example, the control unit (700) may receive a document (2100) containing multiple modalities based on the selection of a graphic object (2000a) associated with a query and document reception function included in the service page (2000) from the user terminal (10). At this time, the control unit (700) may receive a user query regarding the document (2100) (e.g., "How do the ways white reporters and black reporters use Instagram differ?", 2010) along with the document (2100).
[0316] In another embodiment, the answer generation system (1000) may receive the document (2100) based on the input of the document (2100) corresponding to the user's selection among the data stored (or embedded) in the storage (or memory or storage space or database) of the user terminal (10).
[0317] In another embodiment, the answer generation system (1000) may receive link information (e.g., a URL) containing the document (2100) or link information of an external storage service storing medical data from a user terminal (10). In this case, the artificial intelligence model learning system (1000) may directly access the document (2100) through the link information or obtain the document (2100) by downloading it.
[0318] However, the method of receiving a document in the present invention is not necessarily limited to the examples mentioned, and documents can be received through various methods in addition to the examples mentioned.
[0319] Additionally, the data processing unit (500) can extract data from each of the multiple modalities included in the document (2100) using at least one preset feature extraction method. Since more specific details regarding this have been described above, they will be explained briefly below to avoid duplication of explanation.
[0320] In one embodiment, as illustrated in FIG. 12, the data processing unit (500) can extract data (e.g., first specific data (2101a), second specific data (2102a), third specific data (2103a), etc.) from each of the plurality of modalities (2101, 2102, 2103) using the preset feature extraction method. In this case, the preset feature extraction method may be related to a method of extraction using a multimodal model configured to understand and process various modalities. In this specification, the multimodal model may also be referred to as a "feature extraction model."
[0321] In another embodiment, the data processing unit (500) can process the received document (2100) as input to the classification module (510). The classification module (510) can analyze the data characteristics of each of the plurality of modalities (2101, 2102, 2103) constituting the document (2100) and classify each of the plurality of modalities (2101, 2102, 2103) according to the data characteristics of each of the plurality of modalities (2101, 2102, 2103). The classification module (510) can classify the first modality (2101) as an image modality, the second modality (2102) as a chart modality, and the third modality (2103) as a text modality based on a pre-set classification criterion according to the data characteristics of each of the multiple modalities (2101, 2102, 2103) included in the document (2100).
[0322] Subsequently, the data processing unit (500) can extract data (e.g., first specific data (2101a), second specific data (2102a), third specific data (2103a), etc.) from each of the multiple classified modalities (2101, 2102, 2103) using different feature extraction methods specialized for each of the multiple classified modalities (2101, 2102, 2103). More specifically, the data processing unit (500) can extract data from each of the multiple classified modalities (2101, 2102, 2103) through different feature extraction methods based on the data characteristics of each of the multiple classified modalities (2101, 2102, 2103).
[0323] In this case, the data processing unit (500) can determine different feature extraction methods specialized for each of the plurality of modalities (2101, 2102, 2103) based on the data characteristics of each of the classified plurality of modalities (2101, 2102, 2103). Then, the data processing unit (500) can extract data from each of the plurality of modalities (2101, 2102, 2103) using the determined feature extraction method. In this case, the data processing unit (500) can determine whether each of the classified plurality of modalities (2101, 2102, 2103) is input to a multi-encoder based on a preset standard, and determine at least one modality to be input to the multi-encoder according to the result of the determination.
[0324] As seen above, at least one modality to be input to the multi-encoder may include at least one of an image modality and a chart modality. Accordingly, the data processing unit (500) may determine a first modality (2101) and a second modality (2102) as modalities to be input to the multi-encoder.
[0325] For example, different feature extraction methods may include at least one of i) a first feature extraction method for extracting first specific data (2101a) from a first modality (2101), ii) a second feature extraction method for extracting second specific data (2102a) from a second modality (2102), and iii) a third feature extraction method for extracting third specific data (2103a) from a third modality (2103).
[0326] In relation to the first feature extraction method for extracting the first specific data (2101a), the data processing unit (500) may input the first modality (2101) into the image encoder (172). Here, the image encoder (172) may be an encoder specialized in extracting data from the first modality (2101).
[0327] The image encoder (172) can generate an image embedding vector corresponding to the first modality (2101) through encoding for the first modality (2101). The projection layer (172a) of the image encoder (172) can convert the image embedding vector into an image token sequence suitable for the input dimension of the large-scale language model (610). The first specific data (2101a) may include the image token sequence generated by converting the image embedding vector.
[0328] Additionally, regarding the second feature extraction method for extracting the second specific data (2102a), the data processing unit (500) may input the second modality (2102) into the chart encoder (173). Here, the chart encoder (173) may be an encoder specialized in extracting data from the second modality (2102).
[0329] The chart encoder (173) can generate a chart embedding vector corresponding to the second modality (2102) through encoding for the second modality (2102). The projection layer (173a) of the chart encoder (173) can convert the chart embedding vector into a chart token sequence suitable for the input dimension of the large-scale language model (610). The second specific data (2102a) may include the chart token sequence generated by converting the chart embedding vector.
[0330] Furthermore, regarding the third feature extraction method for extracting the third specific data (2103a), the data processing unit (500) may tokenize the third modality (2103) into a form that can be processed by a large-scale language model (610) to generate a sequence of tokenized text tokens. The third specific data (2103a) may include the sequence of text tokens.
[0331] Meanwhile, the answer generation system (1000) can generate a modality application policy (2050, or modality application plan) based on a user query (2010) and at least one of a plurality of modalities (2101, 2102, 2103) (see FIG. 13).
[0332] The answer generation system (1000) analyzes a user query (2010) to determine whether the user query (2010) relates to a single modality or a multi-modality, and can generate a modality application policy (2050) based on the determination (or determination result). Here, analyzing the user query (2010) can also be understood as analyzing at least one of the semantic characteristics, query intent, and query type of the user query (2010).
[0333] This user query (2010) may be associated with either a single modal query associated with a single modality or a cross-modal query associated with cross-inference between multiple modalities among a plurality of modalities (2101, 2102, 2103). In this case, as seen above, the single modal query may be a first type of query, and the cross-modal query may be a second type of query.
[0334] The above modality application policy (2050) may be generated based on a choice between a single modality or a multimodality. Here, the choice may be a choice (or specific) regarding whether the user query (2010) relates to a single modality or a multimodality.
[0335] More specifically, the answer generation system (1000) analyzes a user query (2010) to determine whether the user query (2010) is related to a single modal query (or a single modal query type) or a cross-modal query (or a cross-modal query type), and can generate a modality application policy based on the determination.
[0336] For example, if the result of the judgment, the answer generation system (1000) can generate a modality application policy related to a single modality among multiple modalities (2101, 2102, 2103) when the user query (2010) is related to a single modal query. In this case, the generation of a modality application policy related to a single modality can also be understood as generating a "single modality application policy" related to a single modality.
[0337] As another example, if the result of the judgment, the answer generation system (1000) can generate a modality application policy related to the multimodality among multiple modalities (2101, 2102, 2103) when the user query (2010) is related to a cross-modal query. In this case, the generation of a modality application policy related to the multimodality can be understood as generating a "cross-modality application policy" related to cross-inference between multimodalities.
[0338] As a more specific example, the modality application policy (2050) in the present invention may include reference information for determining which modality among a plurality of modalities (2101, 2102, 2103) to selectively use (or utilize, use, apply, etc.) in order to generate an answer to a user query (2010). The modality application policy (2050) may be generated by considering at least one of the query type, the association between the query and each modality, and the data characteristics extracted from each modality.
[0339] Specifically, the modality application policy (2050) may include rules, criteria, or strategies for selectively utilizing one of a plurality of modalities (2101, 2102, 2103) and determining the method of utilization, based on at least one of the semantic characteristics of the user query (2010), the intent of the query, the type of the query, the association between the query and each modality, the relationship between the modalities, and the data characteristics (or data structure) extracted from each modality.
[0340] For example, the modality application policy (2050) comprises: i) query-based modality selection rules (e.g., rules for determining whether the query can be resolved by a specific modality (e.g., text, image, chart, etc.) or whether combined interpretation between multiple modalities is required by analyzing the meaning, intent, and expression of the query); ii) modality importance evaluation criteria (e.g., criteria for calculating the importance of each modality based on the association or similarity between the query and each modality, and determining the priority of use using said importance); iii) modality selection and combination strategies (e.g., single modality application policy: a strategy for selecting a modality when an answer can be generated using only one modality, or cross-modality application policy: a strategy for selecting multiple modalities and combining them for use when mutually complementary information combination or cross-inference between multiple modalities is required); iv) answer generation input configuration rules (e.g., determining which information among the data extracted from the selected modalities will be used as input to the artificial intelligence model, and, if necessary, determining importance, weights, or combination methods, etc.). It may include at least one of the rules for. However, the information included in the modality application policy is not necessarily limited to the examples mentioned, and it is obvious that it may include various other information.
[0341] The modality application policy (2050) may be configured to reflect the contribution or importance that each of the plurality of modalities (2101, 2102, 2103) has for a user query (2010), and may include criterion information (or reference information) that causes at least one modality among the plurality of modalities (2101, 2102, 2103) to be selected. At this time, the selection may be performed based on a single modality or may be performed based on a combination of a plurality of specific modalities.
[0342] Additionally, the modality application policy (2050) may include a query type determination result for distinguishing whether the type of user query (2010) is a single modal query or a cross-modal query requiring cross-inference between multiple modalities. Based on the query type determination result, selection criteria for a single modality or selection criteria for combining and cross-referencing between multiple modalities may be set, respectively.
[0343] In one embodiment, the modality application policy (2050) may include at least one of a single modality application policy for selecting a single modality and a cross-modality application policy for cross-inference between multiple modalities. The single modality application policy may be created to select a specific modality that has the highest relevance to the user query. Alternatively, the cross-modality application policy may be created to simultaneously select multiple modalities required to generate an answer to the user query and to consider the relationships between them.
[0344] In another embodiment, the modality application policy (2050) may include importance information calculated based on the similarity or association between a query expression generated from a user query (2010) and data extracted from each modality. In this case, the importance information may be used as a criterion for determining the priority of modality selection. In this case, the modality application policy (2050) may be configured to select a specific modality or a plurality of specific modalities by reflecting the importance and a preset criterion (or a preset selection criterion).
[0345] An example of such a modality application policy (2050) can be illustrated as in FIG. 14. For example, referring to FIG. 14, the modality application policy (2050) may include at least one of i) query analysis results, ii) policy types, iii) guidelines for calculating importance for each modality, iv) modality selection criteria, and v) output formats. In this case, the modality application policy (2050) may be a cross-modality application policy generated according to the query type (e.g., "cross-modal query") included in the query analysis results.
[0346] Furthermore, the answer generation system (1000) can specify a modality that satisfies a preset standard among a plurality of modalities (2101, 2102, 2103) based on the generated modality application policy (2050) in order to generate an answer to a user query (2010).
[0347] In this case, the answer generation system (1000) can calculate the importance for each of the multiple modalities (2101, 2102, 2103) based on the association between each of the multiple modalities (2101, 2102, 2103) and the user query (2010). Subsequently, the answer generation system (1000) can identify at least one modality among the multiple modalities (2101, 2102, 2103) that satisfies a preset criterion based on the importance and at least one of the modality application policies. For example, the preset criterion may be related to the importance calculated for each of the multiple modalities (2101, 2102, 2103).
[0348] The above importance can be calculated based on the correlation between the user query (2010) and the data (2101a, 2102a, 2103a) extracted from each of the multiple modalities (2101, 2102, 2103). Additionally, the importance may be used as an indicator representing the contribution of each modality in the process of generating an answer to the user query.
[0349] To calculate the above importance, the data processing unit (500) may generate a query expression from the user query (2010). For example, the query expression may be generated in a form that reflects the semantic features of the user query (2010), keywords included in the user query (2010), or the intent of the query. In this case, the query expression may be generated in the form of a text-based expression, a vector-based expression, or structured information.
[0350] Subsequently, the answer generation system (1000) may calculate the similarity or association between the query expression and the data extracted from each of the multiple modalities (2101, 2102, 2103). At this time, the similarity may be determined based on at least one of the degree of semantic agreement between the query expression and the data, the correspondence of included information, or the explainability of the query.
[0351] Here, similarity can be evaluated at the modality unit or at the data unit extracted from the modality, and the importance of the modality can be derived by aggregating similarity values individually calculated for multiple data included in a single modality. The aggregation can be performed using at least one of a maximum value, an average value, or a selective reflection method for data satisfying specific conditions.
[0352] Additionally, the above importance may be calculated by weighting according to the type of user query (2010). For example, if the user query (2010) is determined to be a single modal query related to a specific modality, the importance of that modality may be reflected relatively highly. On the other hand, if the user query (2010) requires cross-inference between multiple specific modalities, the importance of each of the multiple specific modalities may be reflected to be considered together.
[0353] In one embodiment, the importance may be normalized or ranked according to a predefined criterion or a dynamically generated criterion, thereby determining the relative priority among multiple modalities. The priority may be reflected in a modality application policy and utilized as a criterion for selecting a specific modality or multiple modalities.
[0354] Furthermore, the aforementioned importance can be extended to reflect not only the direct correlation between the query and the data, but also the complementary relationship or cross-referencing possibilities between modalities. Accordingly, even in cases where a specific modality alone cannot provide sufficient information, importance can be calculated by considering the possibility of combination with other modalities.
[0355] Furthermore, the aforementioned importance can be utilized as input information during the answer generation process, and the data selection, data combination, or answer generation strategy can be configured to be adjusted by reflecting the importance. Through this, it is possible to induce the generation of answers to user queries based on more appropriate modalities.
[0356] In this regard, when a single modality application policy is generated, in the step of specifying the modality, one specific modality among a plurality of modalities (2101, 2102, 2103) that satisfies a preset criterion can be specified based on the single modality application policy. At this time, the specific modality may be understood as the modality among the plurality of modalities (2101, 2102, 2103) whose importance is greater than or equal to a preset threshold, or as the modality with the highest importance.
[0357] In this case, the answer generation system (1000) can generate an answer to a user query (2010) by using data extracted from a specific modality among the data (2101a, 2102a, 2103a) extracted from each of the multiple modalities (2101, 2102, 2103). That is, the answer generation system (1000) can generate an answer to a user query (2010) by inputting the data extracted from the specific modality and the user query into a trained large-scale language model (610).
[0358] Alternatively, when a cross-modality application policy is generated, in the step of specifying the modalities, based on the cross-modality application policy, a plurality of specific modalities that satisfy a preset criterion among a plurality of modalities (2101, 2102, 2103) may be specified. At this time, the plurality of specific modalities may be understood as modalities among the plurality of modalities (2101, 2102, 2103) having an importance level greater than or equal to a preset threshold, or as modalities with the highest importance level.
[0359] In this case, the answer generation system (1000) can generate an answer to a user query (2010) by using the data extracted from the plurality of specific modalities among the data (2101a, 2102a, 2103a) extracted from each of the plurality of modalities (2101, 2102, 2103). That is, the answer generation system (1000) can generate an answer to a user query (2010) by inputting the data extracted from the plurality of specific modalities and the user query (2010) into a trained large-scale language model (610).
[0360] As a specific example, let us assume that the generated modality application policy (2050) is a "cross-modality application policy." The answer generation system (1000) can identify a plurality of specific modalities (2102, 2103) that satisfy a preset criterion among the plurality of modalities (2101, 2102, 2103) based on the importance of each of the plurality of modalities (2101, 2102, 2103) and the modality application policy (2050).
[0361] Meanwhile, according to another embodiment of the present invention, the step of generating the modality application policy and the step of specifying a modality among a plurality of modalities that satisfies a preset criterion based thereon may be performed by an artificial intelligence agent.
[0362] In one embodiment, an artificial intelligence agent may generate a modality application policy based on a user query and at least one of a plurality of modalities. Subsequently, the artificial intelligence agent may call a specific model configured to perform the role of specifying the modality associated with the user query, and input (or provide) the modality application policy to the called specific model. In this case, the specific model may specify a modality among the plurality of modalities that satisfies a preset criterion based on the modality application policy.
[0363] Meanwhile, the answer generation system (1000) can generate an answer to a user query (2010).
[0364] The answer generation system (1000) can generate an answer to a user query (2010) by inputting at least one of the data extracted from the user query (2010) and a specified modality into a trained large-scale language model (610). For example, if the user query (2010) is a query related to a plurality of specific modalities, the importance of each of the plurality of specific modalities may be additionally input into the large-scale language model (610).
[0365] For example, as illustrated in FIG. 13, an answer generation system (1000) may construct input data (e.g., a prompt) comprising a user query (2010), data (2102a, 2103a) extracted from each of a specified plurality of specific modalities (2102, 2103), and at least one of importance for each of the specified plurality of specific modalities (2102, 2103). Then, the answer generation system (1000) inputs the input data into a large-scale language model (610) and may obtain (or receive) an answer (2010a) to the user query (2010) from the large-scale language model (610). In this case, the data (2102a, 2103a) extracted from each of the specified plurality of specific modalities (2102, 2103) may be input in a combined state. In the present invention, this may also be expressed as a "combined token sequence."
[0366] This large-scale language model (610) can generate an answer (2010a) to a user query (2010) based on (or using) data (2102a, 2103a) extracted from each of a plurality of specific modalities (2102, 2103). Alternatively, the large-scale language model (610) can generate an answer (2010a) to a user query (2010) using at least one of the combined token sequence and the importance.
[0367] In this case, the large language model (610) can generate the answer (2010a) by inferring the association between the data (2102a, 2103a) extracted from each of the plurality of specific modalities (2102, 2103) based on the fact that the user query (e.g., "How do white reporters and black reporters use Instagram differently?", 2010) belongs to the second type of query.
[0368] That is, the large-scale language model (610) can extract information related to the user query (2010) from specific data (2102a, 2103a) extracted from each of the multiple specific modalities (2102, 2103), and generate an answer (2010a) to the user query (2010) through sequential reasoning or regression of thought.
[0369] At this time, the above answer (2010a) may be generated by reflecting weights based on the importance of each of the plurality of specific modalities (2102, 2103). For example, a large-scale language model (610) may apply different weights to each of the plurality of specific modalities (2102, 2103) based on the importance of each of the plurality of specific modalities (2102, 2103), and generate the above answer (2010a) according to the different weights. For example, let us assume that among the plurality of specific modalities (2102, 2103), a first weight is applied to the second modality (2102) and a second weight is applied to the third modality (2103). Here, the first weight may be understood as a higher weight than the second weight. In this case, the large-scale language model (610) can generate the answer (2010a) by reflecting the data (2102a) extracted from the second modality (2102) having a relatively higher influence than the data (2103a) extracted from the third modality (2103), based on the weights applied to each of the plurality of specific modalities (2102, 2103). Accordingly, the answer can be generated in a form in which the information included in the second modality (2102) is considered more preferentially, and the information included in the third modality (2103) can be reflected as auxiliary information.
[0370] Furthermore, as illustrated in FIG. 15, the answer generation system (1000) can provide the generated answer (e.g., "Instagram is more popular among Black journalists than among White journalists. In particular, 33% of Black journalists cited Instagram as one of the most used sites, which is higher than the figure of about 18% of White journalists. This information was derived through a demographic analysis of journalists' social media site usage, which shows that there is a significant difference in the popularity of Instagram between the two racial groups.", 2010a) to the user terminal (10) on which the service page (2000) is displayed.
[0371] Meanwhile, the answer generation method and system (1000) described above can be applied to various artificial intelligence application services and utilized effectively. For example, the present invention can be applied to conversational artificial intelligence (or agent) services (e.g., chatbots) and utilized effectively.
[0372] In this case, the answer generation system (1000) according to the present invention can be effectively applied to a chatbot-type application that enhances the accuracy, suitability, and personalization of responses to user queries through a processing structure comprising at least one of a planner (or planner module), a selector (or selector module), and a classifier (or classification module).
[0373] In one embodiment, when the answer generation system (1000) receives user input through a chatbot, it may use a classifier to analyze the context, intent, and requirements of the query included in the user input. The classifier may provide reference information for subsequent processing by classifying the user query into a predefined query type or intent category. Such a classifier may determine whether the query corresponds to an information request, a recommendation request, or a command execution type. Additionally, the classifier may perform the role of classifying each of the multiple modalities according to the data characteristics of each of the multiple modalities constituting at least one document included in the user input.
[0374] Additionally, the classifier can interpret the meaning contained in the user query by classifying the user query for intent, sentiment, topic, or type of query, and infer the final response content based on the interpretation result. For example, if the classification result is determined to be an "information request," the classifier can operate by extracting and generating the most appropriate information among the response types corresponding to the request. In this way, the classifier can go beyond a simple preprocessing step and contribute to inferring an accurate answer by playing a key role in determining the type and content of the response to be generated by the system (1000).
[0375] Additionally, the planner can configure an appropriate processing flow and plan a suitable path among multiple candidate responses or processing modules. The planner can analyze the context of user input and conversation history to infer the purpose of the entire conversation and plan high-level response strategies or next-step tasks that the answer generation system (1000) must perform. For example, based on the classification results of the classifier, the planner can design the flow of the subsequent conversation and sequentially arrange tasks to be performed at each step (e.g., response generation, information search, subsequent query request, etc.). The planner can be configured to operate dynamically by comprehensively considering conversation history, user information, and the internal state of the system.
[0376] Furthermore, the selector can perform the role of selecting the optimal response from among multiple response candidates or actions corresponding to a step or task designated by the planner, taking into account the current conversation context and user characteristics. For example, the selector can select the optimal processing module or response method based on the current conversation situation, user profile, previous conversation history, etc. This enables the selection of different processing paths depending on user preferences or circumstances even for the same recommendation request, thereby increasing the flexibility and adaptability of the system.
[0377] As such, the present invention can provide advanced responses to user queries that are appropriate to the situational context through a collaborative structure of planner-selector-classifier, and enables the implementation of customized chatbot systems in various domains. Therefore, the present invention can go beyond simple question-answering and provide comprehensive conversation management functions that consider various factors such as conversation purpose, user state, and conversation flow design.
[0378] As described above, according to the answer generation method and system of the present invention, by classifying multiple modalities having different data characteristics and applying a specialized feature extraction method to each of the classified multiple modalities, data can be precisely extracted from each of the different modalities, such as images, charts, and text. In other words, by extracting information by reflecting the data characteristics of each of the multiple modalities, the present invention can accurately extract core data necessary for generating an answer to a query without loss of information. Through this, the present invention can more precisely identify the semantic linkage between various expression modes, thereby effectively utilizing only the core information necessary for generating an answer to a user query while maintaining the semantic linkage between various expression modes.
[0379] Furthermore, according to the answer generation method and system of the present invention, by using a multi-encoder structure including an encoder specialized for each of a plurality of modalities, optimized recognition and processing performance tailored to the data characteristics of each modality can be provided. Through this, the present invention can generate accurate answers to queries by recognizing visual and / or contextual information of each modality without loss. That is, the present invention can reflect the characteristics of each modality without loss while improving the recognition accuracy for each modality, and can maintain the performance of the overall model.
[0380] Furthermore, according to the answer generation method and system of the present invention, by identifying a modality associated with a user query among a plurality of modalities included in a document and generating an answer based on data extracted from the identified modality, a high-quality answer generated around information associated with the user query can be provided to the user. In particular, the present invention can save system resources and improve the speed of answer generation by efficiently processing selected modalities associated with the user query, and can generate appropriate answers through integrated inference even for user queries containing various modalities such as images, charts, and text.
[0381] Furthermore, according to the answer generation method and system of the present invention, a training data set can be configured to enable integrated understanding and inference regarding various modalities such as images, charts, and text, and a Large Language Model (LLM) can be trained using this data set. Through this, the Large Language Model can comprehensively understand the information contained within complex multimodal documents and generate accurate answers to user queries based on the results of this understanding. That is, the Large Language Model according to the present invention can generate various types of answers, including not only identifying answers but also summarizing, comparing, contextual interpretation, and purpose-inferencing answers, and in particular, can derive integrated inference results even for complex queries that include images, charts, and text. Through this, users can receive customized answers that meet the purposes of various queries.
[0382] Furthermore, according to the answer generation method and system of the present invention, by training a large-scale language model using a training dataset that reflects various visual elements (e.g., axis labels, legends, color information, etc.) included in a chart image, the chart interpretation accuracy and contextual understanding of the large-scale language model can be improved. Through this, the large-scale language model can interpret the chart image by reflecting not only the numbers included in the chart image but also the semantic structure, and generate an accurate answer to a query based on the interpreted result.
[0383] Furthermore, according to the answer generation method and system of the present invention, data can be extracted from each of a plurality of modalities having different data characteristics by using a preset feature extraction method. Through this, the present invention can process the unique information representation method of each modality without loss, improve the quality of information input to an artificial intelligence model, and enhance the accuracy of answer generation.
[0384] Furthermore, according to the answer generation method and system of the present invention, by extracting data from each modality based on the different data characteristics of a plurality of modalities and utilizing it to correspond to a user query, it is possible to generate a more accurate and richer answer to a user query. That is, the present invention makes it possible to provide a highly reliable answer even to user queries regarding documents containing a mixture of various modalities, such as images, charts, and text.
[0385] Furthermore, according to the answer generation method and system of the present invention, by calculating the importance of each of a plurality of modalities and reflecting the calculated importance in the answer generation process, it is possible to generate answers in which weights are assigned to the data of modalities that have high relevance to the user query. Through this, factual consistency and quality of the answers can be simultaneously ensured.
[0386] In addition, according to the method for training an artificial intelligence model of the present invention, by classifying a training data set into a first training data set corresponding to a single modal query and a second training data set corresponding to a cross-modal query and training the artificial intelligence model, the artificial intelligence model can be trained to adaptively generate answers to various types of queries.
[0387] Meanwhile, the present invention described above can be implemented based on a quantum computer. The present invention implemented based on a quantum computer may include a qubit-based quantum processor and quantum memory, and may include software and hardware interfaces optimized for quantum computation.
[0388] Quantum processors in quantum computers utilize qubits to efficiently process complex operations through parallel computation, quantum entanglement, and quantum superposition, which cannot be performed by the binary bits of classical computers. Quantum processors process data using quantum gates and can provide exponential speed improvements for specific problems.
[0389] Meanwhile, the present invention described above can be implemented as a program that is executed by one or more processes on a computer and can be stored on a computer-readable medium (or recording medium).
[0390] Furthermore, the present invention described above can be implemented as computer-readable code or instructions on a medium on which a program is recorded. That is, the present invention can be provided in the form of a program.
[0391] Meanwhile, computer-readable media include all types of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable media include HDD (Hard Disk Drive), SSD (Solid State Disk), SSD (Silicon Disk Drive), ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0392] Furthermore, the computer-readable medium may be a server or cloud storage that includes a storage and is accessible to an electronic device via communication. In this case, the computer may download the program according to the present invention from the server or cloud storage via wired or wireless communication.
[0393] A computer program may reach the system (1000) through various suitable transmission mechanisms. The transmission mechanism may be, for example, a computer-readable storage medium, a computer program product, a memory device, a recording medium such as a CD-ROM or DVD, or a product that tangibly embodies the computer program. The transmission mechanism may be a signal configured to reliably transmit the computer program through air or an electrical connection. The system (1000) may propagate or transmit the computer program as a computer data signal.
[0394] Furthermore, references to 'computer-readable storage media,' 'computer program products,' 'computer programs embodied in a tangible form,' etc., or to 'controller,' 'computer,' 'processor,' etc., should be understood to include not only computers with various architectures such as single / multi-processor architectures and sequential (Von Neumann) / parallel architectures, but also specialized circuits such as Field-Programmable Gate Arrays (FPGAs), Application Specific Circuits (ASICs), signal processing units, and other devices. References to computer programs, instructions, code, etc., should be understood to include software for programmable processors or firmware, such as programmable content for hardware devices, whether it is instructions for a processor or configuration settings for a fixed-function device, gate array, or programmable logic device.
[0395] Furthermore, in the present invention, the computer described above is an electronic device equipped with a processor, namely a CPU (Central Processing Unit), and no special limitations are placed on its type.
[0396] Meanwhile, the above detailed description should not be interpreted restrictively in all respects but should be considered exemplary. The scope of the invention shall be determined by a reasonable interpretation of the appended claims, and all modifications within the equivalent scope of the invention are included within the scope of the invention.< / text> < / chart>
Claims
1. As a method for generating answers performed by a computer, A step of specifying at least one document including multiple modalities; A step of extracting data from each of the plurality of modalities based on a feature extraction method corresponding to different data characteristics of the plurality of modalities; A step of receiving a user query regarding the above document; A step of analyzing the above user query and determining whether the above user query corresponds to a single modal query related to a single modality among the plurality of modalities and a cross-modal query related to cross-inference between multiple modalities among the plurality of modalities; Based on the above judgment result, a step of determining at least one expert model among a plurality of expert models to be activated for processing the user query; A step of inputting data corresponding to the determined expert model among the data extracted from each of the plurality of modalities into an artificial intelligence model including the determined expert model; and A method for generating an answer characterized by including the step of obtaining an output result output from the artificial intelligence model and using the output result to generate either a single modal answer corresponding to the single modal query or a cross modal answer corresponding to the cross modal query as an answer to the user query.
2. In Paragraph 1, The step of specifying the above modality is, A step of calculating the importance of each of the plurality of modalities based on the association between each of the plurality of modalities and the user query; and A method for generating an answer characterized by including the step of specifying a modality among a plurality of modalities that satisfies a preset criterion based on at least one of the importance and the modality application policy.
3. In Paragraph 2, The step of calculating the above importance is, A step of generating a query expression related to the above user query; and A method for generating an answer characterized by including the step of calculating the importance of each of the plurality of modalities based on the similarity between the above-mentioned query expression and the data extracted from each of the above-mentioned plurality of modalities.
4. In Paragraph 2, The above user query is, It is related to either a single modality or a multimodality among the above plurality of modalities, and The above modality application policy is, A method for generating an answer characterized by being generated based on a selection of the single modality or the multimodality.
5. In Paragraph 4, In the step of creating the above modality application policy, Analyze the above user query to determine whether the above user query is related to either the single modality or the multimodality, and A method for generating an answer characterized by generating a modality application policy based on the above judgment.
6. In Paragraph 5, The above user query is, A single modal query associated with the single modality among the plurality of modalities, and An answer generation method characterized by including at least one cross-modal query related to cross-inference between the multiple modalities among the plurality of modalities.
7. In Paragraph 6, In the step of creating the above modality application policy, Analyze the above user query to determine whether the above user query is related to either the above single modal query or the above cross-modal query, and A method for generating an answer characterized by generating a modality application policy based on the above judgment.
8. In Paragraph 7, In the step of creating the above modality application policy, A method for generating an answer characterized by generating a modality application policy related to the single modality among the plurality of modalities when the above user query is related to the above single modal query.
9. In Paragraph 8, The creation of the modality application policy related to the single modality above is, A method for generating an answer characterized by including the step of determining an identifier for a single modality to be used in an answer to a user query based on the data characteristics of the single modality.
10. In Paragraph 7, In the step of creating the above modality application policy, A method for generating an answer characterized by generating a modality application policy related to the multimodality among the plurality of modalities when the above user query is related to the above cross-modal query.
11. In Paragraph 10, The creation of the modality application policy related to the above multimodality is, A method for generating an answer characterized by including the step of determining a set of identifiers for the multimodals to be used for cross-inference between the multimodals, based on the data characteristics of each of the multimodals.
12. In Paragraph 1, The above modality application policy is, A single modality application policy related to a single modality among the plurality of modalities above, and It includes at least one cross-modality application policy related to cross-inference between multimodalities among the plurality of modalities mentioned above, and In the aforementioned specifying step, A method for generating an answer to the above user query, characterized by specifying a modality that satisfies a preset criterion among a plurality of modalities based on the generated modality application policy.
13. In Paragraph 12, When the above single modality application policy is generated, in the above-described step, Based on the above single modality application policy, among the above multiple modalities, one specific modal that satisfies the above preset criteria is identified, and In the step of generating the above answer, A method for generating an answer to a user query, characterized by using data extracted from a specific modality among the data extracted from each of the plurality of modalities.
14. In Paragraph 13, In the step of generating the above answer, A method for generating an answer characterized by inputting the data extracted from the aforementioned specific modality and the aforementioned user query into an artificial intelligence model to generate an answer to the aforementioned user query.
15. In Paragraph 12, When the above cross-modality application policy is generated, in the above-described step, Based on the above cross-modality application policy, among the above multiple modalities, a plurality of specific modalities satisfying the above preset criteria are identified, and In the step of generating the above answer, A method for generating an answer to a user query, characterized by using data extracted from specific modalities among the data extracted from each of the plurality of modalities.
16. In Paragraph 15, In the step of generating the above answer, A method for generating an answer characterized by inputting the data extracted from the plurality of specific modalities and the user query into an artificial intelligence model to generate an answer to the user query.
17. In Paragraph 1, In the above extraction step, A method for generating an answer characterized by extracting data from each of the plurality of modalities using at least one preset feature extraction method.
18. In Paragraph 1, In the step of generating the above answer, A method for generating an answer characterized by inputting at least one of the above user query, the above data extracted from the above specific modality, and the importance of the above specific modality into an artificial intelligence model to generate an answer to the above user query.
19. As a method for learning an artificial intelligence model performed by a computer, A step of obtaining a training data set including a document containing multiple modalities, a training query for said document, and a correct answer for said training query; A step of classifying the above training data set into a first training data set in which the training query corresponds to a single modal query and a second training data set in which the training query corresponds to a cross-modal query; A first learning step of training the artificial intelligence model to output an answer corresponding to a single modality for the single modal query using the first learning data set; and The method includes a second training step of training the artificial intelligence model to output an answer based on cross-modal inference between multimodalities for the cross-modal query using the second training data set, and A method for learning an artificial intelligence model, characterized in that the artificial intelligence model includes, as input, a plurality of encoder modules learned based on a feature extraction method corresponding to the data characteristics of each of the plurality of modalities.
20. Memory configured to store executable instructions; and It includes at least one processor connected to the memory and configured to execute at least one computer-readable program contained in the memory, and The memory further stores an artificial intelligence model trained to process feature data extracted from each of the plurality of modalities through a plurality of encoder modules corresponding to the plurality of modalities, and to generate a response to user input based on the processing result. The above at least one processor is configured to receive a document containing a plurality of modalities from a document collection module and to receive a user query regarding the document from a query processing module, and The feature extraction module is configured to acquire feature data from each of the plurality of modalities based on a feature extraction method corresponding to different data characteristics of the plurality of modalities, and The modality selection module is configured to select at least one modality among the plurality of modalities that satisfies a preset criterion according to the user query and a modality application policy determined based on at least one modality among the plurality of modalities. An answer generation system characterized in that the response generation module is configured to input the feature data corresponding to the selected modality into the artificial intelligence model and obtain a response to the user query from the artificial intelligence model.
