Risk prevention and control method, device and equipment for text data

By using large models in the text data risk prevention and control model to construct reasoning thinking chain samples, the supervision information and reasoning capabilities are enhanced, and the problems of text data risk prevention and control information loss and poor interpretability in the existing technology are solved, and more accurate results are achieved. Risk identification and hidden risk identification.

CN118606478APending Publication Date: 2024-09-06ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410853536.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing text data risk prevention and control methods suffer large information losses during supervision and training, and poor inference interpretability, resulting in greater hidden dangers in online risk prevention and control and increasing manual review pressure.

Method used

By obtaining the text data of users performing target business and inputting it into the pre-trained risk prevention and control model, risk identification results and reasoning thinking link information are obtained, and large models are used to construct reasoning thinking chain samples for multi-task training to enhance supervision information and reasoning. ability to improve the interpretability of the model.

Benefits of technology

It improves the performance of risk identification and rule classification tasks, reduces the hidden dangers of online risk prevention and control, improves the accuracy of risk identification, and can identify hidden risk elements and increase the recall of hidden risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606478A
    Figure CN118606478A
Patent Text Reader

Abstract

Embodiments of the invention disclose a risk prevention and control method, apparatus and device for text data. The method comprises the steps of obtaining text data in a process of executing a target service by a user; inputting the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking link information of the risk identification result through the risk prevention and control model, the risk prevention and control model is a model obtained by using text training data, constructing an inference thinking chain sample through a large model and performing multi-task training of risk classification; and based on the risk identification result and / or the reasoning thinking link information, performing risk prevention and control processing on target business executed by the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of computer technology, and in particular to a risk prevention and control method, device and equipment for text data. Background Art

[0002] As people pay more and more attention to their private data, content security has become one of the focuses of people's attention. Text data involving content security is always adversarial. When commonly used classification models (such as BERT models, etc.) are trained, the only information for supervision is the category label, which will result in a certain loss of supervision information and poor interpretability during reasoning, which will bring greater hidden dangers to online risk prevention and control, and further increase the pressure of manual review. To this end, it is necessary to provide a better risk prevention and control mechanism for text data, so that there is more supervision information during model training, and the model can learn better reasoning ability and world knowledge, so that it has a certain degree of interpretability during downstream reasoning. Summary of the invention

[0003] The purpose of the embodiments of this specification is to provide a better risk prevention and control mechanism for text data, so that there is more supervision information when training the model, and the model can learn better reasoning ability and world knowledge, so as to have a certain degree of explainability in downstream reasoning.

[0004] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:

[0005] An embodiment of this specification provides a risk prevention and control method for text data, the method comprising: obtaining text data in the process of a user executing a target business. Inputting the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Based on the risk identification result and / or the reasoning thinking chain information, risk prevention and control processing is performed on the user executing the target business.

[0006] The embodiment of this specification provides a risk prevention and control device for text data, the device comprising: a data acquisition module, which acquires text data in the process of a user executing a target business. A risk identification and reasoning module, which inputs the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification. A risk prevention and control module, based on the risk identification result and / or the reasoning thinking chain information, performs risk prevention and control processing on the user executing the target business.

[0007] The embodiment of this specification provides a risk prevention and control device for text data, the risk prevention and control device for text data includes: a processor; and a memory arranged to store computer executable instructions, the executable instructions, when executed, cause the processor to: obtain text data in the process of a user executing a target business. The text data is input into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model, the risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Based on the risk identification result and / or the reasoning thinking chain information, risk prevention and control processing is performed on the user's execution of the target business.

[0008] The embodiments of this specification also provide a storage medium for storing computer executable instructions, which implement the following process when executed by a processor: obtain text data of a user in the process of executing a target business. Input the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Based on the risk identification result and / or the reasoning thinking chain information, risk prevention and control processing is performed on the user's execution of the target business.

[0009] The embodiments of this specification also provide a computer program product, including a computer program, which implements the following process when executed by a processor: obtaining text data of a user in the process of executing a target business. Inputting the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model, wherein the risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Based on the risk identification result and / or the reasoning thinking chain information, risk prevention and control processing is performed on the user's execution of the target business. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.

[0011] Figure 1 This is an embodiment of a risk prevention and control method for text data in this specification;

[0012] Figure 2 This is a schematic diagram of the structure of a risk prevention and control system for text data in this manual;

[0013] Figure 3 This is an embodiment of a risk prevention and control device for text data in this specification;

[0014] Figure 4 This is an embodiment of a risk prevention and control device for text data in this specification. DETAILED DESCRIPTION

[0015] The embodiments of this specification provide a risk prevention and control method, device and equipment for text data.

[0016] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0017] The embodiments of this specification provide a risk prevention and control mechanism for text data. Text data involving content security always has confrontation. When commonly used classification models (such as BERT models, etc.) are trained for supervision, the only information for supervision is the category label, which will result in a certain loss of supervision information, poor interpretability during reasoning, and it is difficult to identify risk text data with hidden content, which will bring greater hidden dangers to online risk prevention and control, and thus increase the pressure of manual review. In addition, in the emerging large model defense scenario, various induced instructions also require the model to perform reasoning and cognition in order to carry out risk prevention and control. To this end, the embodiments of this specification provide a better risk prevention and control mechanism for text data, so that there is more supervision information when training the model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain interpretability during downstream reasoning, and for hidden risk texts, the model can identify the risk elements therein through thinking chain reasoning, thereby increasing the recall of hidden risks. For specific processing, please refer to the specific content in the following embodiments.

[0018] like Figure 1 As shown, the embodiment of this specification provides a risk prevention and control method for text data. The execution subject of the method can be a terminal device or a server, etc., wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a computer device such as a laptop or a desktop computer, or an IoT device (specifically such as a smart watch, a car device, etc.), etc., wherein the server can be an independent server, or a server cluster composed of multiple servers, etc. The server can be a background server for financial services or online shopping services, or a background server for an application, etc. In this embodiment, the execution subject is taken as an example for detailed description. For the case where the execution subject is a terminal device, please refer to the following server situation processing, which will not be repeated here. The method can specifically include the following steps:

[0019] In step S102, text data of a user performing a target service is obtained.

[0020] Among them, the user can be any user who executes the target business. The target business can be any business that requires risk prevention and control, especially a content-based business (that is, the target business can be a business with content-based risk as the main risk type), etc., which can be set according to actual conditions, and the embodiments of this specification do not limit this. Text data can include multiple types. For example, text data can include the business identifier of the target business, the user identifier, the device identifier of the terminal device used by the user, the user's comment information, the conversation information between the user and the customer service, and the articles, blogs, microblogs, audio text information, video text information, etc. published by the user. It can be set according to actual conditions, and the embodiments of this specification do not limit this.

[0021] In implementation, Figure 2 As shown, when the user needs to execute the target business, the corresponding application in the terminal device can be started. The trigger mechanism of the target business can be set in the application. When the user triggers the execution of the target business, the terminal device can obtain the relevant data of the target business from the corresponding server and present it to the user. At this time, the user can guide the user to complete the target business according to the execution process provided by the application. During this process, the user can provide relevant text data, the server can obtain the text data, and can use the text data as text data in the process of the user executing the target business.

[0022] In step S104, the above text data is input into a pre-trained risk prevention and control model to obtain the risk identification result corresponding to the text data and the reasoning thinking chain information of the risk identification result obtained through the risk prevention and control model. The risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification.

[0023] Among them, the risk prevention and control model can be used to identify the risk of the input data to determine the risk type contained therein, and can generate a model that can output the judgment basis (or judgment reason) of the risk of the risk type. The risk prevention and control model can be constructed by a variety of different algorithms or networks. For example, the risk prevention and control model can be constructed by a deep neural network, or the risk prevention and control model can be constructed by a specified classification algorithm, or the risk prevention and control model can also be constructed by BERT, etc., and accordingly, the internal structure of the risk prevention and control model can be set based on the algorithm or network used, wherein the number of network layers in the internal structure can be set according to expert experience or actual conditions, and the construction and internal structure of the risk prevention and control model can be specifically set according to actual conditions, and this specification embodiment does not limit this. The reasoning thinking chain information can be the information of the reasoning thinking chain composed of a series of intermediate reasoning steps required to obtain the result output by the model. The reasoning thinking chain information can explain the judgment basis (or judgment reason) of the risk that the model can output the risk type. The large model can be a machine learning model with a large number of model parameters (usually up to hundreds of millions) and a complex model structure. The large model can include a generative large model and a discriminant large model, etc., and the corresponding type of large model can be selected according to the actual situation. The embodiment of this specification does not limit this. The text training data may be historical text data of a user performing a target service in a certain period of time before the current moment.

[0024] In implementation, a suitable algorithm or network can be selected according to the actual situation to pre-set the model architecture of the risk prevention and control model. Then, the text training data used to train the risk prevention and control model can be obtained, and the text training data can be determined whether there is a risk based on the complaints or reports of the text training data, and then the corresponding label information is set for the text training data. In addition, considering the advantages of the big model in reasoning ability and world knowledge, the big model can be used as a teacher model, and the above-mentioned risk prevention and control model can be used as a student model. The student model can be distilled and trained based on the teacher model by knowledge distillation. Based on this, a big model can be pre-trained or the big model can be directly obtained from a specified database, etc. The big model can generate reasoning thinking chain information. At this time, the text training data can be input into the big model or the corresponding prompt information (i.e., the prompt of the big model) can be generated based on the text training data. The text training data is analyzed and processed by the big model, and finally a reasoning thinking chain sample matching the text training data can be output. The reasoning thinking chain sample is the output result of the teacher model (i.e., the big model). The student model (i.e., the risk prevention and control model) can be distilled and trained based on the reasoning thinking chain samples and / or text training data (including its label information). Specifically, the text training data can be input into the risk prevention and control model to obtain the corresponding output results. Then, the loss information between the reasoning thinking chain samples output by the large model and the output results of the risk prevention and control model can be calculated through a preset loss function, and the model parameters in the risk prevention and control model can be adjusted based on the loss information. The above processing is performed iteratively until the loss function converges.During the above-mentioned distillation training process, the risk prevention and control model can also be classified and trained through text training data (including its label information). Specifically, the text training data can be input into the risk prevention and control model to obtain the corresponding sample risk identification result, and the classification loss information between the sample risk identification result and the label information can be calculated. The risk prevention and control model can be adjusted based on the classification loss information, and the above-mentioned processing is performed iteratively until the loss function corresponding to the classification loss information converges, and finally the risk prevention and control model is obtained; or, the risk prevention and control model can also be classified and trained through text training data (including its label information). Specifically, the text training data can be input into the risk prevention and control model to obtain the corresponding The sample risk identification result can be used to calculate the classification loss information between the sample risk identification result and the label information, and the risk prevention and control model can be adjusted based on the classification loss information. The above process is performed iteratively until the loss function corresponding to the classification loss information converges. During the classification training process, the text training data can also be input into the risk prevention and control model to obtain the corresponding output result. Then, the loss information between the reasoning thinking chain sample output by the large model and the output result of the risk prevention and control model can be calculated through the preset loss function, and the model parameters in the risk prevention and control model can be adjusted based on the loss information. The above process is performed iteratively until the loss function converges, and finally the risk prevention and control model is obtained. Through the above multi-task training, a risk prevention and control model capable of generating risk identification results and corresponding reasoning thinking chain information can be obtained.

[0025] After obtaining the text data in the above manner, the text data can be input into the risk prevention and control model. After analyzing and processing the text data through the risk prevention and control model, the risk identification result corresponding to the text data and the reasoning thinking chain information of the risk identification result obtained through the risk prevention and control model can be obtained.

[0026] In step S106, based on the above risk identification results and / or reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

[0027] In implementation, if the above risk identification result indicates that there is no risk for the user to execute the target business, the user may be allowed to continue to execute the target business. If the above risk identification result indicates that there is a risk for the user to execute the target business, the above risk identification result and reasoning thinking chain information may be sent to the user, and the user may promptly understand the risks that may be encountered in executing the target business, as well as the basis for the risk prevention and control model to make the above risk identification result, that is, the reasoning thinking chain information. Alternatively, only the risk identification result or the reasoning thinking chain information may be sent to the user to inform the user that there is a risk in executing the target business. At the same time, after determining that there is a risk for the user to execute the target business, the server may refuse the user to continue to execute the target business, and may send the text data of the user's execution of the target business, the above risk identification result and the reasoning thinking chain information to the designated management device so that the technicians can conduct manual analysis or archiving, etc.

[0028] The embodiments of this specification provide a risk prevention and control method for text data, which obtains text data in the process of users executing target business, and then inputs the text data into a pre-trained risk prevention and control model to obtain the risk identification results corresponding to the text data and the reasoning thinking chain information of the risk identification results obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, risk prevention and control processing can be performed on the user's execution of the target business. In this way, when training the model, in addition to label information, there is more supervision information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of interpretability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification.

[0029] In the embodiments of this specification, the risk prevention and control model can be obtained by training the model in the following manner, and the details can be found in the processing of the following steps A2 to A8.

[0030] In step A2, text training data for model training of the risk prevention and control model is obtained, and label information corresponding to the text training data is obtained.

[0031] Among them, the text training data can be historical text data of the user performing the target business in a certain time period before the current moment. The text training data can include multiple types. For example, similar to the above-mentioned text data, the text training data can include a business identifier, a user identifier, a device identifier of a terminal device used by the user, the user's comment information, the conversation information between the user and the customer service, and the articles, blogs, microblogs, audio text information, video text information, etc. published by the user. The specific settings can be based on actual conditions, and the embodiments of this specification do not limit this.

[0032] In implementation, text training data and label information corresponding to the text training data can be obtained in a variety of different ways. For example, the process of different users executing the target business can be recorded, and the user's feedback information (such as risk complaints or reports, etc.) during each target business execution process can be recorded. When it is necessary to obtain text training data and label information corresponding to the text training data, all or part of the text data can be obtained from the recorded data as text training data, and the corresponding label information can be set for the text data based on the user feedback information corresponding to the obtained text data, so that the text training data for model training of the risk prevention and control model and the label information corresponding to the text training data can be obtained. Alternatively, the text training data for model training of the risk prevention and control model and the label information corresponding to the text training data can also be directly obtained from the specified database. Alternatively, the text training data for model training of the risk prevention and control model and the label information corresponding to the text training data can also be obtained from the currently disclosed data set, etc., which can be set according to actual conditions.

[0033] In step A4, corresponding first prompt information is constructed based on the text training data and the label information corresponding to the text training data, and the first prompt information is input into the first large model to obtain one or more reasoning thinking chain samples corresponding to the text training data.

[0034] Among them, the first large model can be a large model that can generate one or more different reasoning thinking chain related information. In practical applications, in order to increase the diversity of reasoning thinking links, the first large model can be a large model that can generate multiple different reasoning thinking chain related information. The maximum number of reasoning thinking chain related information (or the output result of the first large model) that can be generated by the first large model can be controlled by adjusting the specified model parameters in the first large model. The first large model can be a model obtained after pre-training the model with a large number of training samples, or a large model directly obtained from a specified database, or a model obtained after fine-tuning a large model, etc. The specific information can be set according to actual conditions. The first prompt information can be a Prompt for the first large model.

[0035] In implementation, the prompt information Prompt (i.e., the first prompt information) of the first large model can be constructed using text training data and label information corresponding to the text training data. In this way, the first prompt information can include relevant information about the text training data and label information corresponding to the text training data. Then, the first large model can be called and the first prompt information can be input into the first large model. The first large model can generate one or more different reasoning thinking links for the text training data in the first prompt information, and can annotate the reasoning thinking chain for each reasoning thinking link to obtain corresponding annotation information. The reasoning thinking chain obtained above and the annotation information of the reasoning thinking chain can constitute a reasoning thinking chain sample.

[0036] It should be noted that the above is only an optional processing method. In actual applications, the text training data and the label information corresponding to the text training data can also be used to construct the prompt information Prompt (i.e., the first prompt information) of the first large model. The first prompt information may not obviously contain relevant information about the text training data and the label information corresponding to the text training data. At this time, the first large model can be called, and the first prompt information, the text training data, and the label information corresponding to the text training data can be input into the first large model to obtain one or more reasoning thinking chain samples corresponding to the text training data. The specific setting can be based on actual conditions, and the embodiments of this specification do not limit this.

[0037] In step A6, corresponding second prompt information is constructed based on one or more reasoning thinking chain samples corresponding to the text training data, and the second prompt information is input into the second large model to obtain a target reasoning thinking chain sample that meets the use conditions of the risk prevention and control model and is selected from one or more reasoning thinking chain samples corresponding to the text training data.

[0038] Among them, the second largest model can be a large model different from the first large model, the second large model can be a model obtained after model training through a large number of training samples in advance, or a large model directly obtained from a specified database, or a model obtained after fine-tuning a large model, etc., which can be set according to actual conditions. The output results of the first large model can include multiple, and the output results of the second large model can include one (which can be a better output result), the internal model structure of the second large model and the first large model can be the same, or different, in another optional way, the internal model structure of the second large model and the first large model is the same, and at the same time, except that the model parameters that control the number of output results are different, other model parameters can also be the same, which can be set according to actual conditions, and this specification embodiment does not limit this. The use condition of the risk prevention and control model can be that the accuracy of the risk identification result reaches a preset threshold (such as 90% or 98%, etc.) or it can also be in accordance with a pre-set logical relationship (which can be set by expert experience, etc.), etc., which can be set according to actual conditions.

[0039] In implementation, one or more reasoning thinking chain samples corresponding to the text training data can be used to construct the prompt information Prompt (i.e., the second prompt information) of the second largest model. In this way, the second prompt information can include relevant information of one or more reasoning thinking chain samples corresponding to the text training data. Then, the second largest model can be called and the second prompt information can be input into the second largest model. The second largest model can sort the one or more reasoning thinking chain samples corresponding to the text training data. Through sorting, the reasoning thinking chain samples that meet the use standards of the downstream processing process (or subsequent processing process) can be screened out, and the screened reasoning thinking chain samples can be used as target reasoning thinking chain samples that meet the use conditions of the risk prevention and control model.

[0040] It should be noted that the above is only an optional processing method. In actual applications, one or more reasoning thinking chain samples corresponding to the text training data can also be used to construct the prompt information Prompt (i.e., the second prompt information) of the second largest model. The second prompt information may not obviously contain relevant information of the one or more reasoning thinking chain samples corresponding to the text training data. At this time, the second largest model can be called, and the second prompt information and the one or more reasoning thinking chain samples corresponding to the text training data can be input into the second largest model to obtain the target reasoning thinking chain samples that meet the use conditions of the risk prevention and control model selected from the one or more reasoning thinking chain samples corresponding to the text training data. The specific setting can be based on actual conditions, and the embodiments of this specification do not limit this.

[0041] In step A8, based on the target reasoning thinking chain samples, text training data and label information corresponding to the text training data, the risk prevention and control model is subjected to multi-task training for reasoning thinking chain construction and risk classification to obtain a trained risk prevention and control model.

[0042] In implementation, as described above, the first large model and the second large model can be used as teacher models, and the risk prevention and control model can be used as a student model. The student model can be distilled and trained by knowledge distillation based on the teacher model. Based on this, the above-mentioned target reasoning thinking chain sample is the output result of the teacher model. The student model (i.e., the risk prevention and control model) can be distilled and trained based on the text training data and the label information corresponding to the text training data, and combined with the target reasoning thinking chain sample. Specifically, the risk prevention and control model can be classified and trained through the text training data (including its label information), that is, the text training data can be input into the risk prevention and control model to obtain the corresponding sample risk identification result, the classification loss information between the sample risk identification result and the label information can be calculated, and the risk prevention and control model can be adjusted based on the classification loss information. The above-mentioned processing is performed iteratively until the loss function corresponding to the classification loss information converges. During the classification training process, the text training data can also be input into the risk prevention and control model to obtain the corresponding output result. Then, the loss information between the target reasoning thinking chain sample and the output result of the risk prevention and control model can be calculated through the preset loss function, and the model parameters in the risk prevention and control model can be adjusted based on the loss information. The above-mentioned processing is performed iteratively until the loss function converges, and finally the risk prevention and control model is obtained.

[0043] It should be noted that the above-mentioned text training data can also be divided into multiple different sets (such as divided into two sets, etc.), some of which can be used to execute the processing of the above-mentioned steps A4 and A6, and the remaining partial sets can be used to execute the task training of risk classification in the above-mentioned step A8. The specific settings can be made according to actual conditions, and the embodiments of this specification do not limit this.

[0044] In practical applications, there are many specific processing methods for obtaining the label information corresponding to the text training data in the above step A2. An optional processing method is provided below, which may include the following: sending the text training data to the target device, and receiving the label information corresponding to the text training data returned by the target device; or, inputting the text training data into a pre-trained text annotation model to obtain the label information corresponding to the text training data.

[0045] In implementation, the target device can be the device used by the technician or the annotator, and the text training data can be sent to the target device. At this time, the technician or the annotator can manually annotate the text training data according to the pre-set review rules to obtain the label information corresponding to the text training data. Alternatively, the technician or the annotator can input the text training data into the text annotation model, annotate the text training data through the text annotation model, and finally obtain the label information corresponding to the text training data. Then, the label information corresponding to the text training data can be returned to the server through the target device.

[0046] In addition, in addition to obtaining the label information corresponding to the text training data through the above-mentioned method, the label information corresponding to the text training data can also be directly generated through a text annotation model, wherein the text annotation model can be constructed through a variety of different algorithms or networks, such as, the text annotation model can be constructed through a deep neural network, or, the text annotation model can also be constructed through a specified large model, or, the text annotation model can be constructed through a specified classification algorithm, etc., which can be set according to actual conditions. After the text annotation model is constructed, the text annotation model can be trained through training samples to obtain a trained text annotation model. Then, the text training data can be input into a pre-trained text annotation model, and the text training data can be annotated or classified through the text annotation model, and finally the label information corresponding to the text training data can be obtained.

[0047] In practical applications, the specific processing methods of the above step A8 can be varied. An optional processing method is provided below, which can specifically include the processing of the following steps A82 and A84.

[0048] In step A82, the risk prevention and control model is trained to construct a reasoning thinking chain based on the target reasoning thinking chain samples and text training data.

[0049] In step A84, during the process of constructing the reasoning thinking chain training, risk classification training is performed on the risk prevention and control model based on the text training data and the label information corresponding to the text training data to obtain a trained risk prevention and control model.

[0050] The specific processing procedures of the above-mentioned steps A82 and A84 can be found in the aforementioned related content and will not be repeated here.

[0051] In the embodiments of this specification, the risk prevention and control model can also be obtained by training the model in the following manner, and the details can be found in the processing of the following steps B2 to B8.

[0052] In step B2, the text data in the first domain of the first business domain and the text data in the second domain of the second business domain are obtained, and the first tag information corresponding to the text data in the first domain is obtained, and the second tag information corresponding to the text data in the second domain is obtained. The second business domain is a business domain outside the first business domain, and the business domain corresponding to the target business is the first business domain.

[0053] Among them, the second business domain and the first business domain are different business domains, and the second business domain is a business domain outside the first business domain. The business corresponding to the second business domain can be the same as or similar to the business corresponding to the first business domain. For example, the business corresponding to the second business domain and the business corresponding to the first business domain are both information publishing business or financial business (such as transfer business, complaint or reporting business, etc.), etc., which can be set according to actual conditions. For the convenience of subsequent description and to explain the difference between the two more clearly, the text data in the first domain of the first business domain can be called in-domain text data, and the text data in the second domain of the second business domain can be called out-of-domain text data. In-domain text data and out-of-domain text data can be obtained in a variety of ways. For details, please refer to the relevant content of obtaining text training data above. In addition, the first label information corresponding to the in-domain text data and the second label information corresponding to the out-of-domain text data can also be obtained in a variety of ways. For details, please refer to the relevant content of obtaining label information corresponding to text training data above, which will not be repeated here.

[0054] In step B4, corresponding third prompt information is constructed based on the text data in the second domain and the second label information, and the third prompt information is input into the first large model to obtain one or more reasoning thought chain samples corresponding to the text data in the second domain.

[0055] In implementation, the out-of-domain text data and the second label information can be used to construct the corresponding third prompt information (i.e., the prompt information Prompt of the first large model). In this way, the third prompt information can contain relevant information of the out-of-domain text data and the second label information. Then, the first large model can be called and the third prompt information can be input into the first large model. The first large model can generate one or more different reasoning thinking links for the out-of-domain text data and the second label information in the third prompt information, and can annotate the reasoning thinking chain for each reasoning thinking chain to obtain corresponding annotation information. The reasoning thinking chain obtained above and the annotation information of the reasoning thinking chain can constitute a reasoning thinking chain sample.

[0056] It should be noted that the above is only an optional processing method. In actual applications, the out-of-domain text data and the second label information can also be used to construct the prompt information Prompt (i.e., the third prompt information) of the first large model. The third prompt information may not obviously contain relevant information of the out-of-domain text data and the second label information. At this time, the first large model can be called, and the third prompt information, the out-of-domain text data and the second label information can be input into the first large model to obtain one or more reasoning thinking chain samples corresponding to the out-of-domain text data. The specific setting can be based on actual conditions, and the embodiments of this specification do not limit this.

[0057] In step B6, corresponding fourth prompt information is constructed based on one or more reasoning thinking chain samples corresponding to the text data in the second domain, and the fourth prompt information is input into the second large model to obtain a benchmark reasoning thinking chain sample that meets the use conditions of the risk prevention and control model and is selected from one or more reasoning thinking chain samples corresponding to the text data in the second domain.

[0058] The relationship and difference between the first model and the second model can be found in the aforementioned related content and will not be repeated here.

[0059] In implementation, one or more reasoning chain samples corresponding to the out-of-domain text data can be used to construct the prompt information Prompt (i.e., the fourth prompt information) of the second largest model. In this way, the fourth prompt information can include relevant information of one or more reasoning chain samples corresponding to the out-of-domain text data. Then, the second largest model can be called and the fourth prompt information can be input into the second largest model. The second largest model can sort the one or more reasoning chain samples corresponding to the out-of-domain text data. Through sorting, the reasoning chain samples that meet the use standards of the downstream processing process (or subsequent processing process) can be screened out, and the screened reasoning chain samples can be used as benchmark reasoning chain samples that meet the use conditions of the risk prevention and control model.

[0060] It should be noted that the above is only an optional processing method. In actual applications, one or more reasoning thinking chain samples corresponding to the out-of-domain text data can also be used to construct the prompt information Prompt (i.e., the fourth prompt information) of the second largest model. The fourth prompt information may not obviously contain relevant information of the one or more reasoning thinking chain samples corresponding to the out-of-domain text data. At this time, the second largest model can be called, and the fourth prompt information and the one or more reasoning thinking chain samples corresponding to the out-of-domain text data can be input into the second largest model to obtain a benchmark reasoning thinking chain sample that meets the use conditions of the risk prevention and control model selected from the one or more reasoning thinking chain samples corresponding to the out-of-domain text data. The specific setting can be based on actual conditions, and the embodiments of this specification do not limit this.

[0061] In step B8, based on the benchmark reasoning thinking chain sample, the text data in the first domain and the first label information, the risk prevention and control model is subjected to multi-task training for reasoning thinking chain construction and risk classification to obtain a trained risk prevention and control model.

[0062] In implementation, as described above, the first large model and the second large model can be used as teacher models, and the risk prevention and control model can be used as a student model. The student model can be distilled and trained by knowledge distillation based on the teacher model. Based on this, the above-mentioned benchmark reasoning thinking chain sample is the output result of the teacher model. The student model (i.e., the risk prevention and control model) can be distilled and trained based on the in-domain text data and the first label information in combination with the benchmark reasoning thinking chain sample. Specifically, the risk prevention and control model can be classified and trained through the in-domain text data and the first label information, that is, the in-domain text data can be input into the risk prevention and control model to obtain the corresponding sample risk identification result, the classification loss information between the sample risk identification result and the first label information can be calculated, and the risk prevention and control model can be adjusted based on the classification loss information. The above-mentioned processing is performed iteratively until the loss function corresponding to the classification loss information converges. During the classification training process, the out-of-domain text data can also be input into the risk prevention and control model to obtain the corresponding output result. Then, the loss information between the benchmark reasoning thinking chain sample and the output result of the risk prevention and control model can be calculated through the preset loss function, and the model parameters in the risk prevention and control model can be adjusted based on the loss information. The above-mentioned processing is performed iteratively until the loss function converges to finally obtain the risk prevention and control model.

[0063] In actual applications, the specific processing methods for obtaining the first label information corresponding to the text data in the first domain in the above step B2 can be varied. An optional processing method is provided below, which may specifically include the following: sending the text data in the first domain to the target device, and receiving the first label information corresponding to the text data in the first domain returned by the target device; or, inputting the text data in the first domain into a pre-trained text annotation model to obtain the first label information corresponding to the text data in the first domain.

[0064] The above specific processing process can be found in the above related content, which will not be repeated here.

[0065] In actual applications, the specific processing methods for obtaining the second label information corresponding to the text data in the second domain in the above step B2 can be varied. An optional processing method is provided below, which may specifically include the following: sending the text data in the second domain to the target device, and receiving the second label information corresponding to the text data in the second domain returned by the target device; or, inputting the text data in the second domain into the text annotation model to obtain the second label information corresponding to the text data in the second domain.

[0066] The above specific processing process can be found in the above related content, which will not be repeated here.

[0067] In practical applications, the specific processing methods of the above step B8 can be varied. An optional processing method is provided below, which can specifically include the processing of the following steps B82 and B84.

[0068] In step B82, the risk prevention and control model is trained to construct a reasoning thinking chain based on the benchmark reasoning thinking chain sample and the text data in the second domain.

[0069] In step B84, during the process of constructing the reasoning thinking chain training, the risk prevention and control model is trained for risk classification based on the text data in the first domain and the first label information to obtain a trained risk prevention and control model.

[0070] The specific processing procedures of the above-mentioned steps B82 and B84 can be found in the aforementioned related content and will not be repeated here.

[0071] In practical applications, the first large model and the second large model mentioned above can be models built based on the large language model LLM.

[0072] In actual applications, after obtaining the risk identification results and reasoning thinking chain information through the above method, the above information can be pushed to the user. The specific processing methods can be varied. An optional processing method is provided below, which can specifically include the following steps C2 to C6.

[0073] In step C2, the risk identification result is sent to the user's terminal device.

[0074] In step C4, a request for obtaining the reason for the risk identification result sent by the terminal device is received.

[0075] In step C6, based on the above acquisition request, the reasoning thinking chain information is sent to the terminal device as the judgment reason of the risk identification result.

[0076] In actual applications, the processing of steps S102 to S106 can identify more obscure risk text data through reasoning thinking chain information, that is, if the data with preset risks in the text data is contained in the hidden content of the text data, the risk identification result obtained through the processing of step S104 can indicate that there are preset risks (such as fraud, the appearance of words that are not allowed to be used, etc.) when the user executes the target business.

[0077] The embodiment of this specification provides a risk prevention and control method for text data, by obtaining text data in the process of users performing target business, then the text data can be input into a pre-trained risk prevention and control model to obtain the risk identification result corresponding to the text data and the reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, the user's execution of the target business can be risk-controlled. In this way, when training the model, in addition to the label information, there are more supervisory information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of interpretability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification. In addition, for hidden risk texts, the model can identify the risk elements therein through thinking chain reasoning, thereby increasing the recall of hidden risks.

[0078] The above is a risk prevention and control method for text data provided by the embodiments of this specification. Based on the same idea, the embodiments of this specification also provide a risk prevention and control device for text data, such as Figure 3 shown.

[0079] The risk prevention and control device for text data includes: a data acquisition module 301, a risk identification and reasoning module 302 and a risk prevention and control module 303, wherein:

[0080] The data acquisition module 301 acquires text data of the user in the process of executing the target business;

[0081] The risk identification and reasoning module 302 inputs the text data into a pre-trained risk prevention and control model to obtain the risk identification result corresponding to the text data and the reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification;

[0082] The risk prevention and control module 303 performs risk prevention and control processing on the user's execution of the target business based on the risk identification result and / or the reasoning thinking chain information.

[0083] In the embodiment of this specification, the device further includes:

[0084] A first sample acquisition module acquires text training data for model training of the risk prevention and control model, and acquires label information corresponding to the text training data;

[0085] A first thinking chain determination module constructs corresponding first prompt information based on the text training data and the label information corresponding to the text training data, and inputs the first prompt information into a first large model to obtain one or more reasoning thinking chain samples corresponding to the text training data;

[0086] A first thinking chain selection module constructs corresponding second prompt information based on one or more reasoning thinking chain samples corresponding to the text training data, inputs the second prompt information into the second large model, and obtains a target reasoning thinking chain sample that meets the use conditions of the risk prevention and control model selected from the one or more reasoning thinking chain samples corresponding to the text training data;

[0087] The first training module performs multi-task training of reasoning thinking chain construction and risk classification on the risk prevention and control model based on the target reasoning thinking chain sample, the text training data and the label information corresponding to the text training data to obtain a trained risk prevention and control model.

[0088] In the embodiment of this specification, the device further includes:

[0089] A second sample acquisition module is configured to acquire text data in a first domain of a first business domain and text data in a second domain of a second business domain, and acquire first label information corresponding to the text data in the first domain, and acquire second label information corresponding to the text data in the second domain, wherein the second business domain is a business domain outside the first business domain, and the business domain corresponding to the target business is the first business domain;

[0090] A second thinking chain determination module constructs corresponding third prompt information based on the second domain text data and the second label information, and inputs the third prompt information into the first large model to obtain one or more reasoning thinking chain samples corresponding to the second domain text data;

[0091] A second thinking chain selection module constructs corresponding fourth prompt information based on one or more reasoning thinking chain samples corresponding to the text data in the second domain, inputs the fourth prompt information into the second large model, and obtains a benchmark reasoning thinking chain sample that meets the use conditions of the risk prevention and control model selected from the one or more reasoning thinking chain samples corresponding to the text data in the second domain;

[0092] The second training module performs multi-task training of reasoning chain construction and risk classification on the risk prevention and control model based on the benchmark reasoning chain sample, the first domain text data and the first label information to obtain a trained risk prevention and control model.

[0093] In the embodiment of the present specification, the second sample acquisition module sends the first domain text data to a target device, and receives the first label information corresponding to the first domain text data returned by the target device; or, inputs the first domain text data into a pre-trained text annotation model to obtain the first label information corresponding to the first domain text data;

[0094] The second sample acquisition module sends the second domain text data to the target device and receives second label information corresponding to the second domain text data returned by the target device; or inputs the second domain text data into the text annotation model to obtain second label information corresponding to the second domain text data.

[0095] In the embodiment of this specification, the second training module includes:

[0096] A thinking chain training unit, which performs reasoning thinking chain construction training on the risk prevention and control model based on the benchmark reasoning thinking chain sample and the text data in the second domain;

[0097] The classification training unit performs risk classification training on the risk prevention and control model based on the text data in the first domain and the first label information during the process of constructing the reasoning thinking chain to obtain a trained risk prevention and control model.

[0098] In the embodiment of this specification, the first large model and the second large model are models constructed based on the large language model LLM.

[0099] In the embodiment of this specification, the device further includes:

[0100] A result sending module, sending the risk identification result to the terminal device of the user;

[0101] A request module, receiving a request for obtaining the judgment reason of the risk identification result sent by the terminal device;

[0102] The reason sending module sends the reasoning thinking chain information as the judgment reason of the risk identification result to the terminal device based on the acquisition request.

[0103] In the embodiment of the present specification, the data with preset risks in the text data is contained in the hidden content in the text data, and the risk identification result indicates that there is a preset risk for the user to execute the target business.

[0104] The embodiment of this specification provides a risk prevention and control device for text data. By acquiring the text data in the process of the user executing the target business, the text data can be input into the pre-trained risk prevention and control model to obtain the risk identification result corresponding to the text data and the reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, the user's execution of the target business can be risk-controlled. In this way, when training the model, in addition to the label information, there are more supervisory information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of interpretability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification. In addition, for hidden risk texts, the model can identify the risk elements therein through thinking chain reasoning, thereby increasing the recall of hidden risks.

[0105] The above is a risk control device for text data provided by the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a risk control device for text data, such as Figure 4 shown.

[0106] The risk prevention and control device for text data may provide a terminal device or a server, etc. for the above-mentioned embodiment.

[0107] The risk prevention and control device for text data may have relatively large differences due to different configurations or performances, and may include one or more processors 401 and memory 402, and one or more storage applications or data may be stored in the memory 402. Among them, the memory 402 may be a short-term storage or a persistent storage. The application stored in the memory 402 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the risk prevention and control device for text data. Furthermore, the processor 401 may be configured to communicate with the memory 402, and execute a series of computer executable instructions in the memory 402 on the risk prevention and control device for text data. The risk prevention and control device for text data may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input and output interfaces 405, and one or more keyboards 406.

[0108] Specifically in this embodiment, the risk prevention and control device for text data includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the risk prevention and control device for text data, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:

[0109] Obtain text data during the process of users executing target business;

[0110] Input the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and information about the reasoning thinking chain for obtaining the risk identification result through the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification;

[0111] Based on the risk identification result and / or the reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

[0112] Each embodiment in this specification 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 risk prevention and control device embodiment for text data, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0113] The embodiments of this specification provide a risk prevention and control device for text data. By acquiring text data in the process of a user executing a target business, the text data can be input into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and reasoning thinking chain information of the risk identification result obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, risk prevention and control processing can be performed on the user's execution of the target business. In this way, when training the model, in addition to label information, there is more supervision information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of explainability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification.

[0114] Furthermore, based on the above Figure 1 In one embodiment, the present specification further provides a storage medium for storing computer executable instruction information. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:

[0115] Obtain text data during the process of users executing target business;

[0116] Input the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and information about the reasoning thinking chain for obtaining the risk identification result through the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification;

[0117] Based on the risk identification result and / or the reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

[0118] Each embodiment in this specification 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 above-mentioned storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0119] The embodiments of this specification provide a storage medium, which obtains text data in the process of users executing target businesses, and then inputs the text data into a pre-trained risk prevention and control model to obtain risk identification results corresponding to the text data and reasoning thinking chain information of the risk identification results obtained through the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, risk prevention and control processing can be performed on users executing target businesses. In this way, when training the model, in addition to label information, there is more supervision information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of explainability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification.

[0120] Furthermore, based on the above Figure 1In one or more embodiments of the present specification, a computer program product is provided, including a computer program. When the computer program in the computer program product is executed by a processor, the following process can be implemented:

[0121] Obtain text data during the process of users executing target business;

[0122] Input the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and information about the reasoning thinking chain for obtaining the risk identification result through the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training for risk classification;

[0123] Based on the risk identification result and / or the reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

[0124] Each embodiment in this specification 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 above-mentioned computer program product embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0125] The embodiments of this specification provide a computer program product, which obtains text data in the process of users executing target businesses, and then inputs the text data into a pre-trained risk prevention and control model to obtain risk identification results corresponding to the text data and reasoning thinking chain information of the risk identification results obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by multi-task training using text training data and constructing reasoning thinking chain samples through a large model and performing risk classification. Finally, based on the risk identification results and / or reasoning thinking chain information, risk prevention and control processing can be performed on users executing target businesses. In this way, when training the model, in addition to label information, there is more supervision information such as reasoning thinking chain samples constructed by the large model, and the model can learn the reasoning ability and world knowledge from the large model, so that it has a certain degree of explainability during downstream reasoning, which can further improve the performance of risk identification and rule classification tasks, reduce the major hidden dangers that may be brought about by online risk prevention and control, and improve the accuracy of risk identification.

[0126] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0127] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0128] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0129] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0130] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0131] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take 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.) that contain computer-usable program code.

[0132] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. 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 fraud case serial and parallel device to produce a machine, so that the instructions executed by the processor of the computer or other programmable fraud case serial and parallel device generate instructions for implementing the process in the process. 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.

[0133] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable fraud case serial and parallel device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including 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.

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

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

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

[0137] 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.

[0138] 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.

[0139] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take 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.

[0140] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0141] Each embodiment in this specification 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 system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

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

Claims

1. A risk prevention and control method for text data, the method comprising: Obtain text data during the user's execution of the target business; Inputting the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and information about the reasoning chain of thought used to obtain the risk identification result through the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning chain samples through a large model and performing multi-task training on risk classification; Based on the risk identification result and / or the reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

2. The method according to claim 1, further comprising: Obtaining text training data for model training of the risk prevention and control model, and obtaining label information corresponding to the text training data; Constructing corresponding first prompt information based on the text training data and label information corresponding to the text training data, and inputting the first prompt information into a first large model to obtain one or more reasoning thought chain samples corresponding to the text training data; Constructing corresponding second prompt information based on one or more reasoning thought chain samples corresponding to the text training data, inputting the second prompt information into the second large model, and obtaining a target reasoning thought chain sample that meets the use conditions of the risk prevention and control model, selected from the one or more reasoning thought chain samples corresponding to the text training data; Based on the target reasoning thinking chain sample, the text training data and the label information corresponding to the text training data, the risk prevention and control model is subjected to multi-task training of reasoning thinking chain construction and risk classification to obtain a trained risk prevention and control model.

3. The method according to claim 1, further comprising: Obtaining text data in a first domain of a first business domain and text data in a second domain of a second business domain, and obtaining first tag information corresponding to the text data in the first domain, and obtaining second tag information corresponding to the text data in the second domain, wherein the second business domain is a business domain other than the first business domain, and the business domain corresponding to the target business is the first business domain; Constructing corresponding third prompt information based on the second domain text data and the second label information, and inputting the third prompt information into the first large model to obtain one or more reasoning thought chain samples corresponding to the second domain text data; Constructing corresponding fourth prompt information based on one or more reasoning chain samples corresponding to the text data in the second domain, inputting the fourth prompt information into the second large model, and obtaining a benchmark reasoning chain sample that meets the use conditions of the risk prevention and control model, selected from the one or more reasoning chain samples corresponding to the text data in the second domain; Based on the benchmark reasoning thinking chain sample, the first domain text data and the first label information, the risk prevention and control model is subjected to multi-task training of reasoning thinking chain construction and risk classification to obtain a trained risk prevention and control model.

4. The method according to claim 3, wherein obtaining first tag information corresponding to the text data in the first domain comprises: Sending the first domain text data to a target device, and receiving first tag information corresponding to the first domain text data returned by the target device; Alternatively, the first domain text data is input into a pre-trained text annotation model to obtain first label information corresponding to the first domain text data; The obtaining of second label information corresponding to the text data in the second domain includes: Sending the text data in the second domain to the target device, and receiving second tag information corresponding to the text data in the second domain returned by the target device; Alternatively, the second domain text data is input into the text annotation model to obtain second label information corresponding to the second domain text data.

5. The method according to claim 3, wherein the multi-task training of the risk prevention and control model for constructing a reasoning chain and classifying risks based on the benchmark reasoning chain sample, the first domain text data, and the first label information to obtain a trained risk prevention and control model comprises: Performing reasoning thinking chain construction training on the risk prevention and control model based on the benchmark reasoning thinking chain sample and the text data in the second domain; During the process of constructing the reasoning thinking chain training, the risk prevention and control model is trained in risk classification based on the text data in the first domain and the first label information to obtain a trained risk prevention and control model.

6. The method according to claim 2 or 3, wherein the first large model and the second large model are models constructed based on a large language model (LLM).

7. The method according to claim 1, further comprising: Sending the risk identification result to the user's terminal device; Receiving a request for obtaining a reason for determining the risk identification result sent by the terminal device; Based on the acquisition request, the reasoning thinking chain information is sent to the terminal device as a judgment reason for the risk identification result.

8. The method according to claim 7, wherein the data with preset risks in the text data is contained in hidden content in the text data, and the risk identification result indicates that there is a preset risk in the user performing the target business.

9. A risk prevention and control device for text data, comprising: The data acquisition module acquires text data during the user's execution of the target business; The risk identification and reasoning module inputs the text data into a pre-trained risk prevention and control model to obtain the risk identification results corresponding to the text data and the reasoning thinking chain information obtained by the risk prevention and control model. The risk prevention and control model is a model obtained by using text training data and constructing reasoning thinking chain samples through a large model and performing multi-task training on risk classification; The risk prevention and control module performs risk prevention and control on the user's execution of the target business based on the risk identification result and / or the reasoning thinking chain information.

10. A risk prevention and control device for text data, comprising: processor; as well as a memory arranged to store computer-executable instructions which, when executed, cause the processor to: Obtain text data during the user's execution of the target business; Inputting the text data into a pre-trained risk prevention and control model to obtain a risk identification result corresponding to the text data and information about the reasoning chain of thought used to obtain the risk identification result through the risk prevention and control model, wherein the risk prevention and control model is a model obtained by using text training data and constructing reasoning chain samples through a large model and performing multi-task training on risk classification; Based on the risk identification result and / or the reasoning thinking link information, risk prevention and control processing is performed on the user's execution of the target business.

Citation Information

Cited By

  • Fraud information identification method and device, electronic equipment, storage medium and program product

    CN119722094A

  • User risk assessment method and device

    CN121304329A