A method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model

Through the cross-temporal data fusion method based on large models, the problem of massive data processing and fusion is solved, efficient and accurate data processing and fusion is achieved, the flexibility of the model and user experience are improved, and security and reliability are ensured. .

CN118211183BActive Publication Date: 2024-09-13INSPUR GENERSOFT CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410627222.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-13
Estimated Expiration
2044-05-21

AI Technical Summary

Technical Problem

In the face of massive data across time and space, traditional methods are difficult to meet the real-time and accuracy requirements for efficient and accurate processing and integration, and data quality and integrity affect the processing results.

Method used

Through the continuous cross-temporal data fusion method based on large models, including determining the parameters to be fine-tuned, fine-tuning large models, training corpus, prompt design and question and answer process, using the Bradley-Terry preference model and reward function optimization model to perform data cleaning and security checks .

Benefits of technology

It improves the flexibility and accuracy of the model, improves data processing efficiency and user experience, ensures the security and reliability of the model, and continuously improves the quality and accuracy of responses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118211183B
    Figure CN118211183B
Patent Text Reader

Abstract

The present application discloses a method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model, and relates to the field of artificial intelligence technology. The method includes: based on the preset data fusion requirements, determining the parameters to be fine-tuned in the large model to be applied, and fine-tuning the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained; obtaining training corpus, and training the large model to be trained based on the training corpus to obtain the application large model; when it is necessary to deal with actual problems, prompt design is performed based on the problem information input by the user; based on the design results corresponding to the prompt design, questions and answers are performed by applying the large model to determine the corresponding answers to the actual problems. The present application realizes efficient and accurate data processing and fusion when facing massive cross-temporal and spatial data through the above method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model. Background Art

[0002] With the advent of the big data era, the generation and accumulation of data has shown explosive growth. Among them, cross-temporal and spatial data has attracted much attention because it can reflect the state changes of things in different time and space. This type of data has a wide range of application value in many fields such as weather forecasting, traffic management, and financial forecasting. However, in the face of massive cross-temporal and spatial data, how to efficiently and accurately process and integrate these data, extract valuable information from them, and provide more accurate and valuable decision support for related fields has become a major problem facing current technology.

[0003] First, the quality and integrity of the data have an important impact on the processing results. Due to the influence of various factors such as data acquisition equipment and transmission networks, there are often missing and abnormal problems in cross-temporal and spatial data, which requires effective data cleaning and preprocessing. Secondly, the fusion of cross-temporal and spatial data needs to take into account the correlation in both time and space. How to effectively fuse data from different sources and different time and space resolutions to extract valuable information is a challenging problem. In addition, with the expansion of data scale and the increase in complexity, traditional data processing methods have been unable to meet the requirements of real-time and accuracy. Therefore, in the face of massive cross-temporal and spatial data, how to efficiently and accurately process and fuse them has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of the present application provide a method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model, which are used to solve the following technical problems: how to efficiently and accurately process and fuse massive cross-temporal and spatial data.

[0005] In the first aspect, an embodiment of the present application provides a method for continuous fusion of cross-temporal and spatial data based on a big model, characterized in that the method includes: determining the parameters to be fine-tuned in the big model to be applied based on the preset data fusion requirements, and fine-tuning the parameters to be fine-tuned through the big model fine-tuning algorithm to obtain the big model to be trained; obtaining training corpus, and training the big model to be trained based on the training corpus to obtain the application big model; when it is necessary to deal with actual problems, performing prompt design based on the problem information input by the user; based on the design results corresponding to the prompt design, performing question and answering by applying the big model to determine the corresponding answers to the actual problems.

[0006] In one implementation of the present application, based on preset data fusion requirements, the parameters to be fine-tuned in the large model to be applied are determined, specifically including: analyzing the characteristics of the data to be required according to the data fusion requirements; matching the corresponding parameters to be fine-tuned in the large model to be applied based on the characteristics of the data to be required, and determining the fine-tuning targets of each parameter to be fine-tuned.

[0007] In one implementation of the present application, the parameters to be fine-tuned are fine-tuned through a large model fine-tuning algorithm to obtain a large model to be trained, specifically including: determining a corresponding fine-tuning target matrix based on the fine-tuning targets of each parameter to be fine-tuned; decomposing the fine-tuning target matrix to obtain an initial dimensionality reduction matrix and an initial dimensionality increase matrix; initializing the initial dimensionality increase matrix through Gaussian distribution to obtain an application dimensionality increase matrix, and initializing the initial dimensionality reduction matrix through a 0 matrix to obtain an application dimensionality reduction matrix; constructing a fine-tuning application matrix based on the application dimensionality increase matrix and the application dimensionality reduction matrix, and based on the fine-tuning application matrix, adding a corresponding to-be-applied branch to the large model to be applied to obtain the large model to be trained.

[0008] In one implementation of the present application, based on the training corpus, the large model to be trained is trained to obtain the application large model, specifically including: based on the training corpus, the large model to be applied in the large model to be trained is trained to obtain converged initial application parameters; and, based on the training corpus, the branches to be applied in the large model to be trained are trained to obtain converged branch application parameters; the initial application parameters and the branch application parameters are superimposed to obtain application parameters; and the large model to be applied is updated based on the application parameters to obtain the application large model.

[0009] In one implementation of the present application, prompt design is performed based on question information input by the user, specifically including: parsing the question information to decompose the question information into several sub-questions; based on the several sub-questions, conducting question and answering by applying a large model to determine the corresponding several sub-replies; integrating the several sub-questions with the corresponding several sub-replies.

[0010] In one implementation of the present application, after question-answering is performed by applying a large model to determine the corresponding answers to actual questions, the method also includes: optimizing the application of the large model based on a preset Bradley-Terry preference model and reward function, specifically including: calculating the preference score of the answer through the Bradley-Terry preference model based on the quality of the answer to the actual question; calculating the reward value through the reward function based on the preference score; and using a policy gradient method to update and optimize the parameters of the application large model based on the reward value.

[0011] In one implementation of the present application, after obtaining the training corpus, the method also includes: cleaning the training corpus to remove irrelevant information, duplicate data and outliers; annotating the cleaned training corpus; wherein the annotation includes: semantic role labeling, named entity recognition; and performing word segmentation processing on the annotated training corpus to achieve word segmentation, stem extraction and stop word removal.

[0012] In one implementation of the present application, the method also includes: after the user inputs the question information, performing a security check and filtering on the question information; and, after determining the corresponding actual answer to the question, monitoring and reviewing the actual answer to the question; when an abnormal situation is found, processing it based on a preset exception handling logic.

[0013] In the second aspect, an embodiment of the present application also provides a device for continuous fusion of cross-temporal and spatial data based on a big model, characterized in that the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: determine the parameters to be fine-tuned in the big model to be applied based on preset data fusion requirements, and fine-tune the parameters to be fine-tuned through the big model fine-tuning algorithm to obtain the big model to be trained; obtain training corpus, and train the big model to be trained based on the training corpus to obtain the application big model; when it is necessary to deal with actual problems, perform prompt design based on the problem information input by the user; based on the design results corresponding to the prompt design, conduct question and answer by applying the big model to determine the corresponding answers to the actual problems.

[0014] On the third aspect, the embodiment of the present application also provides a non-volatile computer storage medium for continuous fusion of cross-temporal and spatial data based on a large model, storing computer executable instructions, characterized in that the computer executable instructions are set to: based on preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained; obtain training corpus, and train the large model to be trained based on the training corpus to obtain the application large model; when it is necessary to deal with actual problems, perform prompt design based on the problem information input by the user; based on the design results corresponding to the prompt design, conduct question and answer by applying the large model to determine the corresponding answers to the actual problems.

[0015] The embodiment of the present application provides a method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model, which has the following beneficial effects:

[0016] 1. By fine-tuning the large model based on preset data fusion requirements, the method can flexibly adapt to different data fusion scenarios, which not only improves the flexibility of the model, but also enables the model to better adapt to specific data characteristics, thereby improving the accuracy and efficiency of data processing.

[0017] 2. By training the fine-tuned large model to be trained, a more accurate and efficient application large model can be obtained. This training method can make full use of the learning ability of the large model, extract more useful information from the training corpus, and thus improve the performance of the model in practical applications.

[0018] 3. Design prompts based on the question information entered by the user. By applying large models to Q&A, users are provided with intuitive and easy-to-understand responses, which improves the user experience and reduces the difficulty for users to obtain information.

[0019] 4. By optimizing the application model through the preset Bradley-Terry preference model and reward function, the quality and accuracy of the model's response can be continuously improved. This optimization strategy enables the model to continuously learn and improve in practical applications and better meet user needs.

[0020] 5. After the user inputs the question information and determines the actual answer to the question, a security and reliability check is performed, including security checking and filtering of the question information, monitoring and reviewing the answers, and timely handling when abnormal situations are found, ensuring the security and reliability of the model in actual applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 A flow chart of a method for continuous fusion of cross-temporal and spatial data based on a large model provided in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of the internal structure of a device for continuous fusion of cross-temporal and spatial data based on a large model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0025] The embodiments of the present application provide a method, device and medium for continuous fusion of cross-temporal and spatial data based on a large model, which are used to solve the following technical problems: how to efficiently and accurately process and fuse massive cross-temporal and spatial data.

[0026] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0027] Figure 1 A flow chart of a method for continuous fusion of cross-temporal and spatial data based on a large model provided in an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a method for continuous fusion of cross-temporal and spatial data based on a large model, which specifically includes the following steps:

[0028] Step 101: Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained.

[0029] In one embodiment of the present application, in order to achieve continuous fusion of cross-temporal and spatial data based on a large model, it is first necessary to determine the parameters to be fine-tuned in the large model to be applied based on preset data fusion requirements.

[0030] Specifically, according to the data fusion requirements, the characteristics of the data to be required are analyzed; based on the characteristics of the data to be required, the corresponding parameters to be fine-tuned are matched in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined.

[0031] In one embodiment, first, it is necessary to deeply understand and clarify the specific requirements of data fusion. This includes but is not limited to determining what types of data need to be fused (such as text, images, audio, etc.), what the goals of data fusion are (such as classification, regression, clustering, etc.), and how the fused data will be used (such as for decision support, predictive analysis, etc.). After clarifying the data fusion requirements, the next step is to conduct in-depth feature analysis of the data to be fused. This includes the type of data (such as structured data, unstructured data, etc.), the distribution of data (such as normal distribution, skewed distribution, etc.), the statistical characteristics of data (such as mean, variance, correlation, etc.), and possible outliers, missing values, etc. In addition, the temporal and spatial characteristics of the data need to be considered, which is particularly important for the fusion of cross-temporal and spatial data. Based on the in-depth understanding of the characteristics of the required data, it is necessary to find parameters corresponding to these data characteristics in the large model to be applied. These parameters may include model weights, biases, convolution kernels, etc., which directly affect the model's processing method and effect on the data. By matching data features and model parameters, it can be ensured that the model can better adapt to and process the data to be fused. Finally, a clear fine-tuning target needs to be set for each parameter to be fine-tuned. These goals should be consistent with the ultimate goal of data fusion, such as improving classification accuracy, reducing regression error, etc. By setting clear fine-tuning goals, the subsequent model fine-tuning process can be more targeted and efficient. At the same time, it also helps to evaluate whether the performance of the fine-tuned model meets the expected requirements.

[0032] In one embodiment of the present application, after determining the parameters to be fine-tuned in the large model to be applied, the parameters to be fine-tuned are fine-tuned by using the large model fine-tuning algorithm to obtain the large model to be trained.

[0033] Specifically, based on the fine-tuning targets of each parameter to be fine-tuned, a corresponding fine-tuning target matrix is ​​determined; the fine-tuning target matrix is ​​decomposed to obtain an initial dimensionality reduction matrix and an initial dimensionality increase matrix; the initial dimensionality increase matrix is ​​initialized by Gaussian distribution to obtain an application dimensionality increase matrix, and the initial dimensionality reduction matrix is ​​initialized by a 0 matrix to obtain an application dimensionality reduction matrix; based on the application dimensionality increase matrix and the application dimensionality reduction matrix, a fine-tuning application matrix is ​​constructed, and based on the fine-tuning application matrix, a corresponding branch to be applied is added to the large model to be applied to obtain the large model to be trained.

[0034] In one embodiment, based on the fine-tuning targets of the parameters to be fine-tuned, the determined fine-tuning target matrix can be expressed as It is understandable that fine-tuning the target matrix In addition to the parameters to be fine-tuned, other parameters that do not need to be fine-tuned are set to 0. The matrix decomposition technology is used to fine-tune the target matrix Decomposed into two one-dimensional matrices, the initial reduced dimension matrix and the initial dimension-raising matrix . Then, the initial dimension-raising matrix is ​​initialized by Gaussian distribution to obtain the application dimension-raising matrix A, and the initial dimension-reducing matrix is ​​initialized by 0 matrix to obtain the application dimension-reducing matrix B, ensuring that the fine-tuning application matrix BA is a 0 matrix and does not generate noise. Finally, according to the fine-tuning application matrix, a corresponding branch to be applied is added to the large model to be applied. This branch will be responsible for adjusting the parameters of the model according to the guidance of the fine-tuning application matrix. By integrating this new branch in the large model, a large model to be trained that is more flexible and adjustable is obtained.

[0035] Step 102: Obtain training corpus, and train the large model to be trained based on the training corpus to obtain the application large model.

[0036] In one embodiment of the present application, after obtaining the training corpus, the method also includes: cleaning the training corpus to remove irrelevant information, duplicate data and outliers; annotating the cleaned training corpus; wherein the annotation includes: semantic role labeling, named entity recognition; and performing word segmentation processing on the annotated training corpus to achieve word segmentation, stem extraction and stop word removal.

[0037] Furthermore, after obtaining the training corpus, the large model to be trained is trained based on the training corpus to obtain the application large model.

[0038] Specifically, based on the training corpus, the large model to be applied in the large model to be trained is trained to obtain converged initial application parameters; and, based on the training corpus, the branch to be applied in the large model to be trained is trained to obtain converged branch application parameters; the initial application parameters and the branch application parameters are superimposed to obtain application parameters; and the large model to be applied is updated based on the application parameters to obtain the applied large model.

[0039] In one embodiment, first, the training corpus is input into the large model to be applied. Through the back propagation algorithm and the gradient descent optimization technique, the parameters of the large model to be applied are continuously adjusted to minimize the gap between the predicted value and the true value. During the training process, the performance of the model is continuously monitored, and the model parameters after each iteration are recorded. When the performance of the model on the validation set reaches the preset standard or the number of training rounds reaches the preset upper limit, the training is stopped, and the model parameters at this time are the converged initial application parameters. The branches to be applied in the large model to be trained are trained: Similarly, the training corpus is input into the branches to be applied. Similar optimization techniques are used to train the branches to be applied to obtain the best branch parameters. Monitor the performance of the branches, and stop training when the performance reaches stability or the number of training rounds reaches the upper limit. The branch parameters at this time are the converged branch application parameters. Superimpose the initial application parameters and the branch application parameters: The converged initial application parameters are superimposed or fused with the branch application parameters. This can be achieved by weighted average, direct addition or other suitable parameter fusion methods. The fused parameters are the final application parameters, which will be used to update the large model to be applied. Update the large model to be applied based on the application parameters: Use the fused application parameters to update the weights and biases of the large model to be applied. The updated large model to be applied is the final application large model, which has been optimized through the training corpus and has better prediction and generalization capabilities.

[0040] Step 103: When it is necessary to deal with an actual problem, a prompt is designed based on the problem information input by the user.

[0041] In one embodiment of the present application, after a large model to be trained is trained based on a training corpus to obtain an application large model, if it is necessary to handle actual problems, prompt design is performed based on the problem information input by the user.

[0042] Specifically, the question information is parsed to decompose the question information into a number of sub-questions; based on the sub-questions, a large model is applied to conduct question-answering to determine a number of corresponding sub-responses; and the sub-questions are integrated with the corresponding sub-responses.

[0043] In one embodiment, after we fully train the training model through the training corpus and obtain the application model, we can use this well-trained model to deal with practical problems. In order to more effectively obtain information from users and generate corresponding replies, we will carefully design prompts based on the question information entered by users. After receiving the question information entered by users, we must first perform in-depth analysis on it. Use natural language processing technology, such as word segmentation, part-of-speech tagging, semantic role tagging, etc., to analyze the question information in detail. Through analysis, complex question information is decomposed into several sub-questions, each of which focuses on a specific point, so that the application model can provide more accurate answers. The decomposed sub-questions are input one by one into the trained application model. The model will generate corresponding sub-replies based on the specific content of each sub-question, using its learned knowledge and reasoning ability. After obtaining all the sub-replies, these replies need to be effectively integrated. According to the logical order and importance of the sub-questions, the sub-replies are reasonably sorted and organized. If necessary, the sub-replies can also be further processed and edited to ensure the coherence and readability of the final reply.

[0044] Step 104: Based on the design result corresponding to the prompt design, the large model is applied to conduct question and answering to determine the corresponding answer to the actual question.

[0045] In one embodiment of the present application, after prompt design is performed based on question information input by the user, question and answering is performed based on the design result corresponding to the prompt design by applying a large model to determine the corresponding actual answer to the question.

[0046] In one embodiment of the present application, after answering questions by applying a large model to determine the corresponding actual answer to the question, the applied large model is optimized based on a preset Bradley-Terry preference model and reward function.

[0047] Specifically, according to the quality of the answer to the actual question, the preference score of the answer is calculated through the Bradley-Terry preference model; based on the preference score, the reward value is calculated through the reward function; using the policy gradient method, the parameters of the application model are updated and optimized according to the reward value.

[0048] In one embodiment, the preference score of the answer is calculated based on the quality of the answer through the Bradley-Terry preference model. The Bradley-Terry model is a statistical model widely used for comparative evaluation and ranking, which can effectively measure the relative advantages and disadvantages of different answers. In this step, the answer generated by the large model is compared with the standard answer or the answer of other models to obtain a quantitative preference score. With this preference score, the reward value can be calculated through a preset reward function. This reward function is designed to reflect the quality and accuracy of the answer, so answers with high preference scores will receive higher reward values. Finally, the policy gradient method is used to update and optimize the parameters of the large model according to the calculated reward value. Policy gradient is a reinforcement learning algorithm that can maximize the expected reward value by adjusting the parameters of the model. In this way, our model can gradually learn how to generate answers that are more in line with user preferences and actual needs.

[0049] In one embodiment of the present application, after the user inputs the question information, the question information will be subject to security checks and filtering; and, after the corresponding actual answer to the question is determined, the actual answer to the question will be monitored and reviewed; when an abnormal situation is found, it will be processed based on the preset exception handling logic.

[0050] In one embodiment, after the user enters the question information, the system will first perform a security check and filter on these question information. This process is mainly to prevent the input of malicious information, sensitive information or inappropriate remarks. This application uses technical means such as natural language processing and regular expressions to scan and analyze the input text to identify and filter out possible malicious code, sensitive words or inappropriate content. Secondly, after determining the corresponding actual question answer, the answer content is strictly monitored and reviewed. This link is to ensure the accuracy and compliance of the answer, and prevent misleading users or spreading false information. During the monitoring and review process, once any abnormal situation is found, such as the answer content does not match the question, contains inappropriate remarks or illegal information, etc., the system will immediately trigger the preset abnormal handling logic. This processing logic may include but is not limited to: blocking or deleting inappropriate content, sending warning messages to users, limiting user permissions, recording and reporting abnormal situations, etc. Through these security measures, users can be effectively protected from bad information while ensuring the compliance and accuracy of platform content. In addition, these measures can also help us to promptly discover and deal with potential security risks and provide users with a safe and reliable question-and-answer environment.

[0051] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a device for continuous fusion of cross-temporal and spatial data based on a large model, and its structure is as follows: Figure 2 shown.

[0052] Figure 2 The internal structure diagram of a device for continuous fusion of cross-temporal and spatial data based on a large model provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the device includes:

[0053] at least one processor 201;

[0054] and, a memory 202 communicatively connected to the at least one processor;

[0055] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0056] Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained;

[0057] Obtain training corpus, and train the large model to be trained based on the training corpus to obtain the application large model;

[0058] When you need to deal with actual problems, design prompts based on the problem information entered by the user;

[0059] Based on the design results corresponding to the prompt design, the large model is applied to conduct question and answering to determine the corresponding answers to the actual questions.

[0060] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for continuous fusion of cross-temporal and spatial data based on a large model, storing computer executable instructions, wherein the computer executable instructions are set as follows:

[0061] Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained;

[0062] Obtain training corpus, and train the large model to be trained based on the training corpus to obtain the application large model;

[0063] When you need to deal with actual problems, design prompts based on the problem information entered by the user;

[0064] Based on the design results corresponding to the prompt design, the large model is applied to conduct question and answering to determine the corresponding answers to the actual questions.

[0065] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0066] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

[0067] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0068] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0069] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0071] In a typical configuration, a computing device includes one or more processors (GPU), input / output interfaces, network interfaces, and memory.

[0072] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0073] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0074] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0075] The above is only the embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for continuous fusion of cross-temporal and spatial data based on a large model, characterized in that: The method comprises: Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained; Acquire training corpus, and train the large model to be trained based on the training corpus to obtain an application large model; When you need to deal with actual problems, design prompts based on the problem information entered by the user; Based on the design result corresponding to the prompt design, question and answer are performed through the application big model to determine the corresponding answer to the actual question; Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, including: Analyze the characteristics of the data to be required according to the data fusion requirements; Based on the characteristics of the data to be required, matching corresponding parameters to be fine-tuned in the large model to be applied, and determining fine-tuning targets of the parameters to be fine-tuned; Design prompts based on the question information entered by the user, including: Parsing the problem information to decompose the problem information into a plurality of sub-problems; Based on the plurality of sub-questions, question and answer are performed by applying the large application model to determine a plurality of corresponding sub-responses; Integrate the plurality of sub-questions with the corresponding plurality of sub-responses; According to the data fusion requirements, the characteristics of the data to be required are analyzed, and based on the characteristics of the data to be required, the corresponding parameters to be fine-tuned are matched in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined, which specifically include: Determine the specific needs of data fusion, including: determine the type of data to be fused, the data fusion target, and the application purpose of the fused data; After determining the data fusion requirements, conduct feature analysis, time series analysis, and spatial feature analysis on the data to be fused; feature analysis includes: data type analysis, data distribution analysis, data statistical characteristics analysis, and analysis of whether there are outliers or missing values; Based on the analysis results, the corresponding parameters to be fine-tuned are determined in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined; wherein the fine-tuning targets include: improving classification accuracy and reducing regression error; The parameters to be fine-tuned are fine-tuned by a large model fine-tuning algorithm to obtain a large model to be trained, specifically including: Based on the fine-tuning target of each parameter to be fine-tuned, determine the corresponding fine-tuning target matrix; Decomposing the fine-tuning target matrix to obtain an initial dimension reduction matrix and an initial dimension increase matrix; Initializing the initial dimension-raising matrix by Gaussian distribution to obtain an application dimension-raising matrix, and initializing the initial dimension-reducing matrix by 0 matrix to obtain an application dimension-reducing matrix; Based on the application dimension increase matrix and the application dimension reduction matrix, a fine-tuning application matrix is ​​constructed, and based on the fine-tuning application matrix, a corresponding branch to be applied is added to the large model to be applied to obtain the large model to be trained.

2. According to the method of continuous fusion of cross-temporal and spatial data based on a large model according to claim 1, it is characterized in that: Based on the training corpus, the large model to be trained is trained to obtain an application large model, specifically including: Based on the training corpus, training the large model to be applied in the large model to be trained to obtain converged initial application parameters; and Based on the training corpus, training the branches to be applied in the large model to be trained to obtain converged branch application parameters; Superimposing the initial application parameter and the branch application parameter to obtain an application parameter; The large model to be applied is updated based on the application parameters to obtain an application large model.

3. According to the method of continuous fusion of cross-temporal and spatial data based on a large model according to claim 1, it is characterized in that: After the application of the large model to conduct question-answering to determine the corresponding actual question answer, the method further includes: Based on the preset Bradley-Terry preference model and reward function, the application model is optimized, specifically including: Based on the quality of the answers to the actual questions, the preference scores of the answers are calculated using the Bradley-Terry preference model; Based on the preference score, the reward value is calculated through the reward function; Use the policy gradient method to update and optimize the parameters of the application model based on the reward value.

4. According to the method of continuous fusion of cross-temporal and spatial data based on a large model according to claim 1, it is characterized in that: After obtaining the training corpus, the method further includes: Cleaning the training corpus to remove irrelevant information, duplicate data and outliers; Annotating the cleaned training corpus; wherein the annotation includes: semantic role labeling and named entity recognition; The annotated training corpus is processed by word segmentation to achieve word segmentation, stem extraction and stop word removal.

5. According to the method of continuous fusion of cross-temporal and spatial data based on a large model according to claim 1, it is characterized in that: The method further comprises: After the user inputs the question information, the question information is subjected to security check and filtering; and, After determining the corresponding answers to the actual questions, monitoring and reviewing the answers to the actual questions; When an abnormal situation is found, it is handled based on the preset exception handling logic.

6. A device for continuous fusion of cross-temporal and spatial data based on a large model, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained; Acquire training corpus, and train the large model to be trained based on the training corpus to obtain an application large model; When you need to deal with actual problems, design prompts based on the problem information entered by the user; Based on the design result corresponding to the prompt design, question and answer are performed through the application big model to determine the corresponding answer to the actual question; Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, including: Analyze the characteristics of the data to be required according to the data fusion requirements; Based on the characteristics of the data to be required, matching corresponding parameters to be fine-tuned in the large model to be applied, and determining fine-tuning targets of the parameters to be fine-tuned; Design prompts based on the question information entered by the user, including: Parsing the problem information to decompose the problem information into a plurality of sub-problems; Based on the plurality of sub-questions, question and answer are performed by applying the large application model to determine a plurality of corresponding sub-responses; Integrate the plurality of sub-questions with the corresponding plurality of sub-responses; According to the data fusion requirements, the characteristics of the data to be required are analyzed, and based on the characteristics of the data to be required, the corresponding parameters to be fine-tuned are matched in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined, which specifically include: Determine the specific needs of data fusion, including: determine the type of data to be fused, the data fusion target, and the application purpose of the fused data; After determining the data fusion requirements, conduct feature analysis, time series analysis, and spatial feature analysis on the data to be fused; feature analysis includes: data type analysis, data distribution analysis, data statistical characteristics analysis, and analysis of whether there are outliers or missing values; Based on the analysis results, the corresponding parameters to be fine-tuned are determined in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined; wherein the fine-tuning targets include: improving classification accuracy and reducing regression error; The parameters to be fine-tuned are fine-tuned by a large model fine-tuning algorithm to obtain a large model to be trained, specifically including: Based on the fine-tuning target of each parameter to be fine-tuned, determine the corresponding fine-tuning target matrix; Decomposing the fine-tuning target matrix to obtain an initial dimension reduction matrix and an initial dimension increase matrix; Initializing the initial dimension-raising matrix by Gaussian distribution to obtain an application dimension-raising matrix, and initializing the initial dimension-reducing matrix by 0 matrix to obtain an application dimension-reducing matrix; Based on the application dimension increase matrix and the application dimension reduction matrix, a fine-tuning application matrix is ​​constructed, and based on the fine-tuning application matrix, a corresponding branch to be applied is added to the large model to be applied to obtain the large model to be trained.

7. A non-volatile computer storage medium for continuous fusion of cross-temporal and spatial data based on a large model, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, and fine-tune the parameters to be fine-tuned through the large model fine-tuning algorithm to obtain the large model to be trained; Acquire training corpus, and train the large model to be trained based on the training corpus to obtain an application large model; When you need to deal with actual problems, design prompts based on the problem information entered by the user; Based on the design result corresponding to the prompt design, question and answer are performed through the application big model to determine the corresponding answer to the actual question; Based on the preset data fusion requirements, determine the parameters to be fine-tuned in the large model to be applied, including: Analyze the characteristics of the data to be required according to the data fusion requirements; Based on the characteristics of the data to be required, matching corresponding parameters to be fine-tuned in the large model to be applied, and determining fine-tuning targets of the parameters to be fine-tuned; Design prompts based on the question information entered by the user, including: Parsing the problem information to decompose the problem information into a plurality of sub-problems; Based on the plurality of sub-questions, question and answer are performed by applying the large application model to determine a plurality of corresponding sub-responses; Integrate the plurality of sub-questions with the corresponding plurality of sub-responses; According to the data fusion requirements, the characteristics of the data to be required are analyzed, and based on the characteristics of the data to be required, the corresponding parameters to be fine-tuned are matched in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined, which specifically include: Determine the specific needs of data fusion, including: determine the type of data to be fused, the data fusion target, and the application purpose of the fused data; After determining the data fusion requirements, conduct feature analysis, time series analysis, and spatial feature analysis on the data to be fused; feature analysis includes: data type analysis, data distribution analysis, data statistical characteristics analysis, and analysis of whether there are outliers or missing values; Based on the analysis results, the corresponding parameters to be fine-tuned are determined in the large model to be applied, and the fine-tuning targets of the parameters to be fine-tuned are determined; wherein the fine-tuning targets include: improving classification accuracy and reducing regression error; The parameters to be fine-tuned are fine-tuned by a large model fine-tuning algorithm to obtain a large model to be trained, specifically including: Based on the fine-tuning target of each parameter to be fine-tuned, determine the corresponding fine-tuning target matrix; Decomposing the fine-tuning target matrix to obtain an initial dimension reduction matrix and an initial dimension increase matrix; Initializing the initial dimension-raising matrix by Gaussian distribution to obtain an application dimension-raising matrix, and initializing the initial dimension-reducing matrix by 0 matrix to obtain an application dimension-reducing matrix; Based on the application dimension increase matrix and the application dimension reduction matrix, a fine-tuning application matrix is ​​constructed, and based on the fine-tuning application matrix, a corresponding branch to be applied is added to the large model to be applied to obtain the large model to be trained.

Citation Information

Patent Citations

  • Knowledge question and answer method and device, electronic equipment and readable storage medium

    CN116483982A

  • Question and answer processing method and question and answer model training method

    CN116775820A

  • Fine adjustment method and device of pre-training model, electronic equipment and storage medium

    CN116883781A

  • Knowledge base question and answer method and device, electronic equipment and storage medium

    CN117290492A

  • Information processing method and device based on large language model, equipment and storage medium

    CN117521675A