Risk control model training method and device and readable storage medium

By training the risk control model, risk control text is directly generated from non-text data, which solves the problem of non-text data conversion in the existing technology, improves risk control efficiency, and simplifies risk control tasks.

CN118691072APending Publication Date: 2024-09-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410705810.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology needs to convert non-text business data into text form during risk control tasks, which increases the analysis process and reduces risk control efficiency.

Method used

By obtaining the business data and text description of the target historical business, determine the irrelevant text, and use the encoding layer and decoding layer of the large language model to train the risk control model and generate risk control text directly from non-text data, reducing the analysis process and improving efficiency.

Benefits of technology

It realizes risk identification and cause analysis of non-text business data without text conversion, improves risk control efficiency and simplifies risk control tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691072A
    Figure CN118691072A
Patent Text Reader

Abstract

The invention discloses a risk control model training method and apparatus, and a readable storage medium, business data of a target historical business and a text description corresponding to the business data are acquired as a related text of the target historical business, and an irrelevant text is determined according to the text description corresponding to the business data of other historical businesses. And inputting the business data of the target historical business into a first coding layer to determine a first feature, and respectively inputting the related text and the irrelevant text into a second coding layer to determine a second feature and a third feature. A first coding layer is trained based on a first difference between the first feature and the second feature and a second difference between the first feature and the third feature. And according to the trained first coding layer and the decoding layer of the large language model, the risk control model is constructed, so that the risk control text can be output directly based on the first characteristic of coding the non-text business data by the first coding layer, text conversion does not need to be performed on the business data, and the risk control efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a training method, device and readable storage medium for a risk control model. Background Art

[0002] In the risk control task, it is necessary to identify risks in the business and analyze the reasons for the risks in the business. This is to determine the user behaviors that lead to risks, as well as the patterns and connections between the user behaviors that lead to risks, so that risk control can be carried out more accurately and avoid leakage of user personal information or property losses.

[0003] In the prior art, natural language processing technology is usually used to analyze the causes of business risks, and the business data usually obtained for risk control tasks is non-text data such as user behavior sequence data recorded in time, or user behavior table data recorded according to business elements. Generally, it is necessary to convert business data into text form to determine the causes of business risks, which increases the analysis process of risk control tasks and reduces risk control efficiency. Based on this, this specification provides a training method for a risk control model. Summary of the invention

[0004] This specification provides an information display method, device, readable storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.

[0005] This manual adopts the following technical solutions:

[0006] This specification provides a risk control model training method, including:

[0007] Acquire business data of a target historical business and a text description corresponding to the business data as relevant text of the target historical business;

[0008] Determining irrelevant text of the target historical business according to text descriptions corresponding to business data of other historical businesses;

[0009] Input the business data of the target historical business into the first coding layer to be trained to determine the first feature, input the relevant text and the irrelevant text into the second coding layer of the large language model that has been pre-trained for risk control, and determine the second feature of the relevant text and the third feature of the irrelevant text;

[0010] Determine a function value of a pre-constructed loss function based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, and adjust a model parameter of the first coding layer based on the function value, wherein the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value;

[0011] A risk control model is constructed based on the trained first encoding layer and the decoding layer of the large language model. The risk control model is used to input business data of a target business and output a risk control text for the target business.

[0012] Optionally, the following method is used to perform risk control training on the large language model, wherein:

[0013] Determine the risk control label of each historical business, and determine risky behavior and regular behavior based on the user behavior of each historical business;

[0014] According to the occurrence sequence of user behaviors of each historical business, a behavior relationship graph of the business type is constructed, wherein the nodes of the behavior relationship graph represent user behaviors, and the edges represent the sequence between different user behaviors;

[0015] Determine a starting node and an ending node in the behavior relationship graph, and use a path composed of nodes between the starting node and the ending node as a behavior link of the behavior relationship graph;

[0016] For each behavior link, determine the risk control label of the behavior link, the risk cause of the behavior link, and the text description corresponding to the behavior link according to the user behavior included in the behavior link;

[0017] Inputting the text description corresponding to the behavior link into the large language model to obtain a predicted label and a predicted reason for the behavior link;

[0018] The large language model is trained according to the third difference between the risk control label and the predicted label of the behavior link, and the fourth difference between the risk cause and the predicted cause of the behavior link.

[0019] Optionally, according to the user behavior included in the behavior link, a risk control label of the behavior link, a risk cause of the behavior link, and a text description corresponding to the behavior link are determined, specifically including:

[0020] If the behavior chain contains risky behaviors, the risk control label of the behavior chain is determined to be risky, and the risk cause of the behavior chain is determined based on the risky behaviors contained in the behavior chain;

[0021] If the behavior chain does not contain risky behavior, the risk control label of the behavior chain is determined to be risk-free, and the risk cause of the behavior chain is the specified content;

[0022] Determine the text description corresponding to each user behavior included in the behavior link, and determine the text description corresponding to the behavior link according to the occurrence order of each user behavior included in the behavior link and the text description corresponding to each user behavior.

[0023] Optionally, determining the irrelevant text of the target historical business according to the text description corresponding to the business data of other historical businesses specifically includes:

[0024] Determine the similarity between the text description corresponding to the business data of each other historical business and the relevant text;

[0025] According to the order of the similarities from small to large, text descriptions corresponding to the business data of a specified number of other historical businesses are selected as irrelevant texts of the target historical business.

[0026] Optionally, the risk control model further includes a mapping layer to be trained;

[0027] The method further comprises:

[0028] When the training of the first coding layer is completed, the risk control label and risk cause corresponding to the target historical business are determined;

[0029] Input the business data of the target historical business into the trained first encoding layer to obtain the first feature and input the first feature into the mapping layer to obtain the fourth feature;

[0030] Inputting the fourth feature into the decoding layer of the large language model to generate a prediction label and a prediction reason for the target historical business;

[0031] The model parameters of the mapping layer are adjusted according to the third difference between the prediction label of the target historical business and the risk control label of the target historical business, and the fourth difference between the prediction reason of the target historical business and the risk reason of the target historical business.

[0032] Optionally, the method further comprises:

[0033] When the training of the first coding layer is completed, the risk control label and risk cause corresponding to the target historical business are determined;

[0034] Inputting the business data of the target historical business into the trained first coding layer to determine the first feature;

[0035] Inputting the first feature determined by the trained first encoding layer into the decoding layer of the large language model to generate a prediction label and a prediction reason for the target historical business;

[0036] According to the third difference between the predicted label and the risk control label of the target historical business and the fourth difference between the predicted reason and the risk reason of the target historical business, the model parameters of the decoding layer of the large language model are adjusted.

[0037] This specification provides a training device for a risk control model, including:

[0038] A related text determination module obtains business data of a target historical business and a text description corresponding to the business data as related text of the target historical business;

[0039] An irrelevant text determination module determines irrelevant text of the target historical business according to text descriptions corresponding to business data of other historical businesses;

[0040] The encoding module inputs the business data of the target historical business into a first encoding layer to be trained, determines a first feature, and inputs the relevant text and the irrelevant text into a second encoding layer of a large language model that has been pre-trained for risk control, respectively, to determine a second feature of the relevant text and a third feature of the irrelevant text;

[0041] a training module, determining a function value of a pre-constructed loss function based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, and adjusting a model parameter of the first coding layer based on the function value, wherein the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value;

[0042] The risk control model determination module constructs a risk control model according to the trained first encoding layer and the decoding layer of the large language model, wherein the risk control model is used to input the business data of the target business and output the risk control text for the target business.

[0043] The computer-readable storage medium provided in this specification stores a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned risk control model training methods.

[0044] The electronic device provided in this specification includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any of the above-mentioned risk control model training methods is implemented.

[0045] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0046] In the training method of the risk control model provided in this specification, the business data of the target historical business and the text description corresponding to the business data are obtained as the relevant text of the target historical business, and the irrelevant text of the target historical business is determined according to the text description corresponding to the business data of other historical businesses. The business data of the target historical business is input into the first coding layer to be trained to determine the first feature, and the relevant text and the irrelevant text are respectively input into the second coding layer of the large language model that has been pre-trained for risk control to determine the second feature of the relevant text and the third feature of the irrelevant text. The first coding layer is trained based on the first difference between the first feature and the second feature, and the second difference between the first feature and the third feature.

[0047] After the first coding layer is trained, the first feature of the target business's business data obtained through the first coding layer can be approximated to the second feature of the text description corresponding to the business data obtained through the second coding layer of the large language model, so the large language model can directly generate text based on the first feature of the non-text business data of the first coding layer, and output the risk control text of the target business. The risk control model trained by this method no longer needs to convert the business data into text form when performing risk identification and risk cause analysis on non-text business data, which reduces the analysis process of risk control tasks and improves risk control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The exemplary embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification.

[0049] In the figure:

[0050] Figure 1 A flowchart of the training method of the risk control model provided in this specification;

[0051] Figure 2 A schematic diagram of the components of a risk control model provided for this specification;

[0052] Figure 3 A behavior relationship diagram of a chain structure provided in an embodiment of this specification;

[0053] Figure 4 The embodiments of this specification provide corresponding to Figure 3 The behavior relationship diagram of the tree structure;

[0054] Figure 5 A schematic diagram of the algorithm process of a risk control model provided in this specification;

[0055] Figure 6A schematic diagram of the structure of the training device for the risk control model provided in this manual;

[0056] Figure 7 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

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

[0058] When conducting risk control for a business, it is generally done by analyzing the relevant business data through a risk control model. As new risk behaviors of users in the business emerge, new identification rules should be constantly summarized to achieve better risk control results. Therefore, the risk control model should not only identify risky businesses, but also generate the risk reasons for risky businesses, so that the identification rules for risky businesses of various business types can be summarized based on the risk reasons.

[0059] For businesses that are identified as risky, restrictive measures are usually taken to prevent the business from continuing to operate in order to protect users' personal information and property from being damaged. Therefore, the risk control efficiency of the risk control model is extremely important in business risk control. If the analysis process of the risk control model is too cumbersome and time-consuming, it is very likely that interception measures will not be taken in time for risky businesses, and the business will not be effectively prevented from continuing to operate, which will affect the risk control effect.

[0060] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0061] Figure 1 The following is a flow chart of the training method of the risk control model provided in this specification, which specifically includes the following steps:

[0062] S100: Acquire business data of a target historical business and a text description corresponding to the business data as relevant text of the target historical business.

[0063] All steps in the training method of the risk control model provided in this specification can be implemented by any electronic device with computing functions, such as a terminal, a server, etc. For the convenience of description, the training method of the risk control model provided in this specification is described below with the server as the execution subject.

[0064] When performing business risk control through risk control models, the business data of the business must be obtained first. The server can obtain structured table data of user behaviors recorded according to business elements from the business database that stores business-related information. Business elements are the information required by users to perform the business. Taking the transfer business as an example, business elements may include the transfer account, amount, receiving account, etc. The business database stores the business data of each business according to these business elements.

[0065] For some risk control tasks with high real-time requirements, the server can also monitor the business process in real time, obtain user behavior data at each time node, and obtain user behavior sequence data recorded by time.

[0066] The server obtains the business data of each historical business collected in advance, and then determines the text description of the business data of each historical business through the existing text conversion algorithm or manual sorting. The text description of the business data is one or more continuous texts containing various user behaviors represented by the business data. For example, the sequence data of a transfer business containing two user behaviors is: 2020-05-01 08:30, user A account 00000123 → user B account 00000456, 1000 yuan, successful; 2020-05-02 09:00, user B account 00000456 → user C account 00000789, 2000 yuan, failed. Then the text descriptions corresponding to the sequence data of the transfer business are: user A transferred 1000 yuan from his account 00000123 to user B's account 00000456 at 2020-05-01 08:30, and the operation was successful. User B transferred RMB 2,000 from his account 00000456 to user B's account 00000789 at 09:00 on 2020-05-02, but the operation failed.

[0067] The server determines the historical business used to train the risk control model from each historical business as the target historical business. Each target historical business is used to train the risk control model. The server uses the text description corresponding to the target business data as the relevant text of the target business. The business data of the target business and the relevant text of the target business are different types of data representing the same semantics.

[0068] The risk control model in this specification is obtained by training a large language model and a first coding layer for encoding non-text data. Based on the text generation ability of the large language model, the risk control result of the business is obtained through the large language model. The risk control result includes a category judgment of whether the business is risky and an explanation of the cause of the risk. The large language model is mainly used for natural language processing tasks, but the business data is non-text data, and the large language model cannot be directly applied for business risk control. The training method of the risk control model in this specification aims to train a risk control model so that non-text business data can directly generate business risk control results through the large language model.

[0069] The server uses the business data of each historical business and the text description corresponding to each business data as training data of the risk control model for the training of the risk control model in this specification.

[0070] S102: Determine irrelevant text of the target historical service according to text descriptions corresponding to service data of other historical services.

[0071] The server determines other historical services except the target historical service among the historical services, and determines irrelevant text of the target historical service according to text descriptions corresponding to the other historical services.

[0072] This specification does not limit the specific method of determining irrelevant text. The irrelevant text can be randomly selected from the text descriptions corresponding to other historical services, and the server can select any one of the text descriptions corresponding to other historical services as irrelevant text. It can also be selected according to specific rules. For example, based on the similarity between the text descriptions corresponding to the business data of other historical services and the relevant text of the target historical service, the server selects the text description corresponding to the business data of the other historical service with the lowest similarity to the relevant text of the target historical service as the irrelevant text of the target historical service.

[0073] Of course, the number of irrelevant texts can be one or more. When the number of irrelevant texts is more than one, according to the above-mentioned method of determining irrelevant texts, the server can select a specified number of text descriptions corresponding to other historical services as irrelevant texts, or select a specified number of text descriptions corresponding to the business data of other historical services in the order of similarity between the text descriptions corresponding to the business data of each other historical service and the relevant text from small to large as the irrelevant texts of the target historical service.

[0074] The business data of the target historical business and the related text of the target historical business are expressions of different data types of user behaviors in the target historical business, representing the same semantic information, and can be used as positive sample pairs for the first coding layer of training risk control models. The business data of the historical business and the irrelevant text are expressions of user behaviors in different historical businesses, representing different semantic information, and can be used as negative sample pairs for the first coding layer of training risk control models.

[0075] S104: Input the business data of the target historical business into the first coding layer to be trained to determine the first feature, input the relevant text and the irrelevant text into the second coding layer of the large language model that has been pre-trained for risk control, and determine the second feature of the relevant text and the third feature of the irrelevant text.

[0076] The first encoding layer to be trained in the risk control model is the encoding layer for non-text data, and the second encoding layer of the large language model is the encoding layer for text data. The server encodes the non-text data through the first encoding layer and the text data through the second encoding layer to obtain the encoding features of the text data and non-text data respectively.

[0077] The server inputs the business data of the target historical business into the first coding layer to be trained to determine the first feature. The relevant text of the historical business is input into the second coding layer of the large language model that has been pre-trained for risk control to determine the second feature, and the irrelevant text is input into the second coding layer of the large language model to determine the third feature. Among them, the specific network structure of the first coding layer can be a recurrent neural network (RNN), a long short-term memory network (LSTM), a transformer network, a transferable tabular transformer (Transtab) network, etc., and this manual does not limit this.

[0078] Since non-text data contains multiple data types, different encoding networks can be used to obtain more accurate encoding features according to the characteristics of different types of non-text data. Therefore, the server divides the first encoding layer into a first encoding sublayer and a second encoding sublayer. The first encoding sublayer is used to encode sequence data, and the second encoding sublayer is used to encode tabular data. The specific network structure of the first encoding sublayer and the second encoding sublayer can be selected according to the characteristics of the data. For example, the first encoding layer can use a transformer network, and the second encoding layer can use a transferable tabular transformer (Transtab) network.

[0079] When the business data of the target historical business is sequence data, the server inputs the business data of the target historical business into the first coding sublayer, performs word segmentation on the input business data, encodes each word separately, and then concatenates the codes of each word in the business data to obtain the first feature of the historical business.

[0080] When the business data of the historical business is tabular data, different columns in the table have different semantics, and the same cell content has different meanings in different columns. For tabular data, different encoding methods should be used for different columns. The server divides the columns into three types according to the column type of the tabular data: category type, value type, and Boolean type.

[0081] As shown in Table 1, the “gender” column is of categorical type, the “age” column is of numerical type, and the “graduated” column is of Boolean type.

[0082] Business Number gender age Is this your first transaction? 001 male 19 0 002 female 20 1

[0083] Table 1

[0084] Specifically, for each column of the target historical business, when the column is of categorical type, the server first concatenates the column name of the column with the column content corresponding to the target historical business to obtain the initial feature of the column. Taking Table 1 as an example, the initial feature of the historical business 001 in the "Gender" column is "Gender Male". Then, the server inputs the initial feature into the second coding sublayer to obtain the column feature of the target historical business in the column. When the column is of numerical type, the server first inputs the column name of the column and the column content corresponding to the target historical business into the second coding sublayer respectively to obtain the first sub-feature corresponding to the column name of the column and the second sub-feature corresponding to the column content of the column, and then the server performs matrix multiplication operation on the first sub-feature and the second sub-feature to obtain the column feature of the target historical business in the column. When the column is of Boolean type, the server first inputs the column name of the column into the second coding sublayer to obtain the column feature of the column, and then determines whether the column content of the column is 0 or 1. If it is 1, the column feature of the column is retained, and if it is 0, the column feature of the column is discarded. Taking Table 1 as an example, the column feature corresponding to the "Is it the first transaction" column of historical business 001 will be deleted, and the column feature corresponding to the "Is it the first transaction" column of historical business 002 will be retained.

[0085] After determining the column features of each column of the target historical business, the features of each column retained in the historical business are spliced ​​together to obtain the first feature of the target historical business. In the two historical businesses shown in Table 1, the first feature of the target historical business 001 is obtained by splicing the column features of the "gender" column and the "age" column, and the first feature of the target historical business 002 is obtained by splicing the column features of the "gender" column, the "age" column, and the "whether it is the first transaction" column. Due to the different numbers of column features retained in different historical businesses, the dimensions of the first feature finally spliced ​​together will be different. Generally, after obtaining the first feature of each historical business, for the first feature whose dimension is not the preset dimension, the server will expand its dimension so that the dimension of the first feature is the same as the preset dimension.

[0086] S106: Based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, determine a function value of a pre-constructed loss function, and adjust the model parameters of the first coding layer based on the function value, the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value.

[0087] Because the business data of the target historical business and the related text of the target historical business belong to different data types, they are encoded using two different coding layers, the first coding layer and the second coding layer, in the risk control model. In this way, although both text-type data and non-text-type data can be directly processed, the first feature and the second feature of the historical business obtained through the two different coding layers will be different.

[0088] The second encoding layer and decoding layer of the large language model correspond to the same dictionary, that is, the decoding layer of the large language model can only recognize the semantics of the text and give accurate output based on the feature encoding of the input text obtained by the second encoding layer. Therefore, due to the difference between the first feature and the second feature of the target historical business, the decoding layer of the large language model cannot accurately recognize the semantics of non-text type business data.

[0089] The server needs to align the first feature and the second feature of the target historical business in the feature dimension, so that the first feature obtained by the first coding layer encoding the non-text type business data can be similar to the second feature obtained by the second coding layer encoding the relevant text of the target historical business of the text type. In the feature space, similar features represent similar semantics, so the decoding layer of the large language model can give accurate output based on the first feature that is similar to the second feature.

[0090] In order to align the first feature and the second feature of the target historical business in the feature dimension, the server determines the function value of the pre-constructed loss function based on the first difference between the first feature and the second feature, and the second difference between the first feature and the third feature, and adjusts the model parameters of the first coding layer based on the function value, the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value. The first difference between the first feature and the second feature, and the second difference between the first feature and the third feature, can be measured by distance, cosine similarity, etc.

[0091] There are many ways to construct the above loss function, such as noise contrastive estimation (Info NCE) loss, N-to-multi-classification loss, triplet loss, maximum edge contrast loss, etc.

[0092] When the contrast loss is in the form of Info NCE, it can be determined according to the following formula:

[0093]

[0094] In the above formula, K represents the total number of irrelevant texts, q represents the first feature, p represents the second feature, and k i represents the third feature of the i-th irrelevant text, τ is the temperature parameter, and by adjusting τ, the difference between different features can be amplified. q·p represents the multiplication of the first feature and the second feature. The smaller the result of q·p, the more similar the first feature is to the second feature, that is, the smaller the first difference is. q·k i represents the multiplication of the first feature and the third feature, q·k i The larger the result of , the less similar the first feature is to the third feature, that is, the larger the second difference is.

[0095] The first feature and the second feature are two encoding features of different data types with the same semantics, and the first feature and the third feature are two encoding features with different semantics. By adjusting the parameters of the first coding layer, the first feature obtained by encoding the business data by the first coding layer can express semantics similar to the second feature, and at the same time increase the difference between the semantics of the first feature and other historical businesses. Then, the clustering of the first feature and the second feature in the feature space becomes more obvious, and the large language model can more easily correspond the first feature to the second feature of the target historical business to obtain a more accurate output.

[0096] S108: Construct a risk control model based on the trained first encoding layer and the decoding layer of the large language model, wherein the risk control model is used to input business data of a target business and output a risk control text for the target business.

[0097] After the training of the first encoding layer is completed, the first feature obtained by the first encoding layer from encoding the business data is already approximate to the second feature obtained by the second encoding layer of the large language model from encoding the relevant text of the target historical business. The decoding layer of the large language model can directly recognize the semantics of the first feature and output the same result as the recognition of the second feature.

[0098] Figure 2 The following is a schematic diagram of the components of a risk control model provided in this specification. The shaded part represents the risk control model constructed in this specification. Figure 2 As shown, the risk control model in this specification is constructed based on the trained first encoding layer and the decoding layer of the large language model. The first encoding layer for non-text encoding replaces the second encoding layer of the large language model that originally encodes text. The server can input the business data of the target business into the first encoding layer of the trained risk control model to obtain the first feature of the target business, and directly input the first feature into the decoding layer of the large language model to obtain the risk control text of the target business output by the decoding layer.

[0099] Usually, the behavior chain of risky businesses is long, that is, the incubation period of a risky business only includes routine behaviors. When a business is determined to be risky, the business has already had a long incubation period. During the incubation period of the risky business, the business will not be identified as risky. However, the user behaviors of these risky businesses in the incubation period may have regular characteristics. Through the risk control model in this manual, the various user behaviors exhibited by the business of the entire behavior chain are analyzed to obtain the risk reasons of each business, thereby discovering the rules of risky businesses with long risk chains, and the obtained rules are used to identify risky businesses.

[0100] For example, a behavior link contains 10 user behaviors. After the first 9 user behaviors occur, there is no risky behavior in the link. It is not until the 10th user behavior occurs that risky behavior appears in the link, and only then will the behavior link be identified as risky. The time period when the first 9 user behaviors of the business represented by the behavior link occur is the incubation period of the business. Although there is no risky behavior in the behavior link during the incubation period, there are usually regular characteristics in the user behaviors during the incubation period. The risk control model can identify the business with such regular characteristics and identify it as risky, and take corresponding risk control measures to reduce the probability of the 10th user behavior that causes business risks.

[0101] When applying this risk control model for business risk control, the risk control model can directly analyze the business data of non-text data types of the target business, and with the help of the text generation capability of the large language model, obtain the risk control text of the target business. It is no longer necessary to convert the business data into text types, which simplifies the analysis process of risk control tasks and improves risk control efficiency.

[0102] The large language model used in the above steps S100 to S104 may be any general large language model, such as a Generative Pre-Training Transformer (GPT) series model.

[0103] The large language model is pre-trained based on a large amount of general corpus and is very versatile. However, for certain specific professional fields, due to privacy restrictions and other reasons, the data in the professional field cannot be obtained during the training process, and the application effect of the large language model in the professional field may not be good enough. In order to make the large language model more suitable for the risk control task field in this manual, the server can fine-tune the parameters of the large language model and perform risk control training on the large language model.

[0104] First, the server determines the risk control label of each historical business, and determines the risk behavior and regular behavior based on the user behavior of each historical business. The risk control label includes risky and non-risky. Risky behavior is user behavior that will cause risks to this type of business, and regular behavior is user behavior that will not cause risks to this type of business. Risky behavior and regular behavior are empirical summaries of the behaviors of each user in historical business. A risky behavior or regular behavior can be determined by one user behavior or a combination of multiple user behaviors.

[0105] Secondly, the server constructs a behavior relationship graph for this business type based on the order of occurrence of each user behavior of each historical business. The server determines the starting node and the ending node in each node of the behavior relationship graph, and uses the path composed of each node between the starting node and the ending node as the behavior link of the behavior relationship graph. In the behavior relationship graph, nodes represent user behaviors, and edges represent the order between different user behaviors. There are many ways to express the behavior relationship graph, such as chain structure, tree structure, etc.

[0106] The behavior relationship graph reflects the connection between all user behaviors involved in each historical business. A behavior link selected in the behavior relationship graph is the order of occurrence of a user behavior that may occur in a real risk control scenario. By determining the behavior link in the behavior relationship graph to train the large language model, it can cover a richer combination of user behaviors than directly using the user behavior in the historical business. Usually, a combination of a pair of start nodes and end nodes can determine multiple behavior links, and different combinations of start nodes and end nodes can determine different behavior links. The server trains the large language model based on the determined behavior links.

[0107] Figure 3 A behavior relationship diagram of a chain structure provided in an embodiment of this specification, Figure 4 The embodiments of this specification provide corresponding to Figure 3 The tree-structured behavior relationship diagram, in Figure 3 or Figure 4 In the figure, user behaviors are represented by circles, and the letters in the circles represent the numbers of the user behaviors. Different numbers represent different user behaviors. Figure 3 The behavior relationship graph shown is constructed based on four historical businesses. The behavior links of user behaviors corresponding to these four historical businesses are a→c→e, a→d→f→j, a→d→g, and b→d→g. By constructing the behavior relationship graph, a new behavior link b→d→f→j can be generated based on the correlation between user behaviors in each historical business. When training the large language model, the behavior link b→d→f→j will also be used as training data.

[0108] For each behavior link, the server determines the risk control label of the behavior link, the risk cause of the behavior link, and the text description corresponding to the behavior link based on the user behaviors included in the behavior link. Specifically, if the behavior link contains risky behaviors, the risk control label of the behavior link is determined to be risky, and the risk cause of the behavior link is determined based on the risky behaviors included in the behavior link. If the behavior link does not contain risky behaviors, the risk control label of the behavior link is determined to be risk-free, and the risk cause of the behavior link is specified content, such as "none". Then, the server determines the text descriptions corresponding to each user behavior included in the behavior link, and determines the text description corresponding to the behavior link according to the order of occurrence of each user behavior included in the behavior link and the text descriptions corresponding to each user behavior.

[0109] The text description of a user behavior can be obtained by directly splicing the business elements included in the user behavior. It can also be converted into a coherent text by using an existing natural language processing algorithm. It can also be directly determined by manual conversion.

[0110] For example, an example of a behavior link containing two user behaviors is "2020-05-01 08:30, user A, online transaction, transaction amount: 500 yuan, transaction account IP: city 1; 2020-05-01 08:31, user A, offline transaction, transaction amount: 200 yuan, transaction store address: city 2, transaction account IP: city 3". The text description corresponding to the first user behavior is "2020-05-01 08:30, user A conducted an online transaction with a transaction amount of 500 yuan and a transaction account IP of city 1", and the text description corresponding to the second user behavior is "2020-05-01 08:31, user A conducted an offline transaction with a transaction amount of 200 yuan, a transaction store address of city 2, and a transaction account IP of city 3".

[0111] In the behavior chain in the above example, there are two risky behaviors. One risky behavior is determined by one user behavior of user A: "2020-05-01 08:30, user A's trading account IP is city 1, 2020-05-01 08:31, user A's trading account IP is city 3", and one risky behavior is determined by two consecutive user behaviors of user A: "offline transaction address is city 2, transaction account IP is city 3". The server can determine that the risk control label of this behavior chain is risky, and the risk reason of this behavior chain is "the same user's two transaction account IP addresses are different at similar times, and the offline transaction address is different from the transaction account IP".

[0112] Finally, the server inputs the text description corresponding to the risk link into the large language model, obtains the predicted label and predicted reason of the behavior link, determines the third difference between the risk control label and the predicted label of the behavior link, and the fourth difference between the risk reason and the predicted reason of the behavior link, and trains the large language model with the minimization of the sum of the third difference and the fourth difference as the optimization goal.

[0113] In some risk control scenarios, different business types may be involved, such as transfer business, online payment business, etc. The server can determine the business relationship graph of each business type based on the historical business of each business type, and determine the behavioral links in the business relationship graph of each business type, and train a large language model for each behavioral link.

[0114] The behavior relationship graph of a business type includes all the regular behaviors and risky behaviors of that business type. Each historical business of that business type has a behavior link composed of corresponding user behaviors in the business relationship graph. Therefore, after fine-tuning the large language model based on the behavior links determined by the business relationship graph of each business type, the large language model can perform data analysis on user behaviors of various business types and determine the predicted labels and predicted reasons for the risks of target businesses of various business types that contain specific user behaviors.

[0115] When the large language model outputs the predicted label and predicted reason of a risk link, it outputs them one by one in units of words, and the previously output word will also become the inference basis for the large language model to predict the next word. Correspondingly, the server will also segment the risk control label and risk reason of the behavior link. When calculating the loss during the training process, for each word generated in the predicted label and predicted reason, the loss of the word and its corresponding word in the risk control label and risk reason are calculated respectively. The sum of the losses corresponding to each word generated in the predicted label and predicted reason is taken as the total loss of the behavior link. The decoding layer and encoding layer parameters of the pre-trained large language model are adjusted with the minimum total loss as the optimization goal.

[0116] Since the parameters of large language models are very large, usually at the level of hundreds of billions or even trillions, the adjustment here refers to fine-tuning, which only adjusts a small part of the parameters of the decoding layer and encoding layer of the large language model.

[0117] In the above step S106, the server trains the first coding layer so that the first feature obtained by the first coding layer from encoding the business data can express semantics similar to the second feature. In this step, the more similar the first feature obtained by the first coding layer is to the second feature obtained by the second coding layer, the more accurate the risk text generated by the second coding layer of the large language model based on the non-text type first feature. Therefore, in order to further improve the similarity between the first feature and the second feature, the risk control model to be trained may also include a mapping layer, which is a mapping function network and may include one or more nonlinear mapping functions.

[0118] After training the first encoding layer, the server further trains the mapping layer to further fit the first feature of the target historical business and the second feature of the related text of the target historical business, so that the first feature is more similar to the second feature.

[0119] First, the server determines the risk control labels and risk reasons corresponding to each historical business.

[0120] Secondly, the target historical business among the historical businesses is determined, and the server inputs the business data of the target historical business into the trained first coding layer to determine the first feature. The first feature determined by the trained first coding layer is input into the decoding layer of the large language model to generate the predicted label and prediction reason of the target historical business.

[0121] Then, the server determines the third difference between the predicted label of the target historical business and the risk control label of the target historical business, and the fourth difference between the predicted reason of the target historical business and the risk reason of the target historical business, and adjusts the model parameters of the mapping layer with the minimization of the sum of the third difference and the fourth difference as the optimization goal.

[0122] When training the mapping layer, the process of the large language model outputting the predicted label and prediction reason of the target historical business is the same as the process when fine-tuning the large language model. Please refer to the description of the corresponding content above and will not be repeated here.

[0123] Figure 5 A schematic diagram of the algorithm process of a risk control model provided in this specification, such as Figure 5 As shown, after the first coding layer and the mapping layer are trained, the server can input the business data of the target business into the trained first coding layer to obtain the first feature of the target business, which is the coding feature of the text description of the target business obtained by the second coding layer similar to the large language model. Then the first feature is input into the mapping layer to obtain the fourth feature, which is the coding feature of the text description of the target business obtained by the second coding layer more similar to the large language model. Finally, the fourth feature is input into the decoding layer of the large language model to obtain the risk control text of the target business, which contains the predicted label and prediction reason for the risk of the target business.

[0124] After the training of the first coding layer is completed in the above step S106, the server can test the risk control model constructed by the trained first coding layer and the decoding layer of the large language model. The server tests the trained risk control model through the business data of each historical business in the test set, the text description corresponding to each business data, and the risk classification and risk reasons of each historical business. If the performance on the training set is still not good enough, the server continues to adjust the parameters of the decoding layer of the large language model.

[0125] Specifically, the server determines the risk control label and risk reason corresponding to each historical business. Determine the target historical business among the historical businesses, input the business data of the target historical business into the trained first coding layer, determine the first feature, input the first feature determined by the trained first coding layer into the decoding layer of the large language model, and generate the predicted label and predicted reason of the target historical business. Determine the third difference between the predicted label of the target historical business and the risk control label of the target historical business, and the fourth difference between the predicted reason of the target historical business and the risk reason of the target historical business, and take the minimization of the sum of the third difference and the fourth difference as the optimization goal, continue to train the decoding layer of the large language model, and adjust the model parameters of the decoding layer.

[0126] When continuing to train the decoding layer of the large language model, the process of the large language model outputting the predicted label and prediction reason of the target historical business is the same as the process when fine-tuning the large language model. Please refer to the description of the corresponding content above, which will not be repeated here.

[0127] The above is a training method for a risk control model provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding training device for a risk control model, such as Figure 6 shown.

[0128] Figure 6 A schematic diagram of a training device for a risk control model provided in this specification specifically includes:

[0129] A related text determination module 200 is used to obtain business data of a target historical business and a text description corresponding to the business data as related text of the target historical business;

[0130] An irrelevant text determination module 202, configured to determine irrelevant text of the target historical business according to text descriptions corresponding to business data of other historical businesses;

[0131] The encoding module 204 is used to input the business data of the target historical business into the first encoding layer to be trained, determine the first feature, input the relevant text and the irrelevant text into the second encoding layer of the large language model that has been pre-trained for risk control, determine the second feature of the relevant text, and determine the third feature of the irrelevant text;

[0132] A training module 206 is configured to determine a function value of a pre-constructed loss function based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, and adjust a model parameter of the first coding layer based on the function value, wherein the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value;

[0133] The risk control model determination module 208 is used to construct a risk control model based on the trained first encoding layer and the decoding layer of the large language model. The risk control model is used to input the business data of the target business and output the risk control text for the target business.

[0134] Optionally, the risk control model further includes a fine-tuning module 210;

[0135] Used to determine the risk control label of each historical business, determine risky behavior and regular behavior according to the user behavior of each historical business, construct a behavior relationship graph of the business type according to the order of occurrence of user behaviors of each historical business, the nodes of the behavior relationship graph represent user behaviors, and the edges represent the order between different user behaviors, determine the starting node and the ending node in the behavior relationship graph, and use the path composed of the nodes between the starting node and the ending node as the behavior link of the behavior relationship graph, for each behavior link, according to the user behavior included in the behavior link, determine the risk control label of the behavior link, the risk cause of the behavior link and the text description corresponding to the behavior link, input the text description corresponding to the behavior link into the large language model, obtain the predicted label and predicted cause of the behavior link, and train the large language model according to the third difference between the risk control label and the predicted label of the behavior link, and the fourth difference between the risk cause and the predicted cause of the behavior link.

[0136] Optionally, the fine-tuning module 210 is specifically used to determine the risk control label of the behavior link as risky if the behavior link contains risky behaviors, determine the risk causes of the behavior link based on the risky behaviors contained in the behavior link, and if the behavior link does not contain risky behaviors, determine the risk control label of the behavior link as non-risky, the risk cause of the behavior link is specified content, determine the text description corresponding to each user behavior contained in the behavior link, and determine the text description corresponding to the behavior link in the order of occurrence of each user behavior contained in the behavior link and based on the text descriptions corresponding to each user behavior.

[0137] Optionally, the irrelevant text determination module 202 is specifically used to determine the similarity between the text description corresponding to the business data of each other historical business and the relevant text, and select a specified number of text descriptions corresponding to the business data of other historical businesses in order of similarities from small to large as irrelevant texts of the target historical business.

[0138] Optionally, the first coding layer includes a first sublayer and a second sublayer, and the coding module 204 is specifically used to input the business data of the target historical business into the first sublayer to determine the first feature when the business data of the target historical business is sequence data, and to input the business data of the target historical business into the second sublayer to determine the first feature when the business data of the target historical business is tabular data.

[0139] Optionally, the training module 206 is specifically used to determine the risk control label and risk reason corresponding to the target historical business when the training of the first coding layer is completed, input the business data of the target historical business into the trained first coding layer, obtain the first feature and input it into the mapping layer to obtain the fourth feature, input the fourth feature into the decoding layer of the large language model, generate the predicted label and predicted reason of the target historical business, and adjust the model parameters of the mapping layer according to the third difference between the predicted label of the target historical business and the risk control label of the target historical business, and the fourth difference between the predicted reason of the target historical business and the risk reason of the target historical business.

[0140] Optionally, the training module 206 is specifically used to determine the risk control label and risk cause corresponding to the target historical business when the training of the first coding layer is completed, input the business data of the target historical business into the trained first coding layer, determine the first feature, input the first feature determined by the trained first coding layer into the decoding layer of the large language model, generate the predicted label and predicted cause of the target historical business, and adjust the model parameters of the decoding layer of the large language model according to the third difference between the predicted label and the risk control label of the target historical business and the fourth difference between the predicted cause and the risk cause of the target historical business.

[0141] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 Provides training methods for risk control models.

[0142] This manual also provides Figure 7 The schematic structure diagram of the electronic device shown in FIG. Figure 7 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The training method of the risk control model. Of course, in addition to the software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

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

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

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

[0146] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

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

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

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

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

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

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

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

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

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

[0156] This 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. This 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.

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

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

Claims

1. A method for training a risk control model, the method comprising: Acquire business data of a target historical business and a text description corresponding to the business data as relevant text of the target historical business; Determining irrelevant text of the target historical business according to text descriptions corresponding to business data of other historical businesses; Input the business data of the target historical business into the first coding layer to be trained to determine the first feature, input the relevant text and the irrelevant text into the second coding layer of the large language model that has been pre-trained for risk control, and determine the second feature of the relevant text and the third feature of the irrelevant text; Determine a function value of a pre-constructed loss function based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, and adjust a model parameter of the first encoding layer based on the function value, wherein the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value; A risk control model is constructed based on the trained first encoding layer and the decoding layer of the large language model. The risk control model is used to input business data of a target business and output a risk control text for the target business.

2. The method according to claim 1, wherein the large language model is trained for risk control using the following method, wherein: Determine the risk control label of each historical business, and determine risky behavior and regular behavior based on the user behavior of each historical business; According to the occurrence sequence of user behaviors of each historical business, a behavior relationship graph of the business type is constructed, wherein the nodes of the behavior relationship graph represent user behaviors, and the edges represent the sequence between different user behaviors; Determine a starting node and an ending node in the behavior relationship graph, and use a path composed of nodes between the starting node and the ending node as a behavior link of the behavior relationship graph; For each behavior link, determine the risk control label of the behavior link, the risk cause of the behavior link, and the text description corresponding to the behavior link according to the user behavior included in the behavior link; Inputting the text description corresponding to the behavior link into the large language model to obtain a predicted label and a predicted reason for the behavior link; The large language model is trained according to the third difference between the risk control label and the predicted label of the behavior link, and the fourth difference between the risk cause and the predicted cause of the behavior link.

3. The method according to claim 2, determining the risk control label of the behavior link, the risk cause of the behavior link and the text description corresponding to the behavior link according to the user behavior included in the behavior link, specifically comprising: If the behavior chain contains risky behaviors, the risk control label of the behavior chain is determined to be risky, and the risk cause of the behavior chain is determined based on the risky behaviors contained in the behavior chain; If the behavior chain does not contain risky behavior, the risk control label of the behavior chain is determined to be risk-free, and the risk cause of the behavior chain is the specified content; Determine the text description corresponding to each user behavior included in the behavior link, and determine the text description corresponding to the behavior link according to the occurrence order of each user behavior included in the behavior link and the text description corresponding to each user behavior.

4. The method according to claim 1, determining the irrelevant text of the target historical business according to the text description corresponding to the business data of other historical businesses, specifically comprises: Determine the similarity between the text description corresponding to the business data of each other historical business and the relevant text; According to the order of the similarities from small to large, text descriptions corresponding to the business data of a specified number of other historical businesses are selected as irrelevant texts of the target historical business.

5. The method of claim 1, wherein the first coding layer comprises a first sublayer and a second sublayer; Inputting the business data of the target historical business into the first coding layer to be trained, and determining the first feature, specifically includes: When the business data of the target historical business is sequence data, inputting the business data of the target historical business into the first sublayer to determine a first feature; When the business data of the target historical business is table data, the business data of the target historical business is input into the second sublayer to determine the first feature.

6. The method according to claim 1, wherein the risk control model further comprises a mapping layer to be trained; The method further comprises: When the training of the first coding layer is completed, the risk control label and risk cause corresponding to the target historical business are determined; Input the business data of the target historical business into the trained first encoding layer to obtain the first feature and input the first feature into the mapping layer to obtain the fourth feature; Inputting the fourth feature into the decoding layer of the large language model to generate a prediction label and a prediction reason for the target historical business; The model parameters of the mapping layer are adjusted according to the third difference between the prediction label of the target historical business and the risk control label of the target historical business, and the fourth difference between the prediction reason of the target historical business and the risk reason of the target historical business.

7. The method of claim 1, further comprising: When the training of the first coding layer is completed, the risk control label and risk cause corresponding to the target historical business are determined; Inputting the business data of the target historical business into the trained first coding layer to determine the first feature; Inputting the first feature determined by the trained first encoding layer into the decoding layer of the large language model to generate a prediction label and a prediction reason for the target historical business; According to the third difference between the predicted label and the risk control label of the target historical business and the fourth difference between the predicted reason and the risk reason of the target historical business, the model parameters of the decoding layer of the large language model are adjusted.

8. A training device for a risk control model, the device comprising: A related text determination module obtains business data of a target historical business and a text description corresponding to the business data as related text of the target historical business; An irrelevant text determination module determines irrelevant text of the target historical business according to text descriptions corresponding to business data of other historical businesses; The encoding module inputs the business data of the target historical business into a first encoding layer to be trained, determines a first feature, and inputs the relevant text and the irrelevant text into a second encoding layer of a large language model that has been pre-trained for risk control, respectively, to determine a second feature of the relevant text and a third feature of the irrelevant text; a training module, determining a function value of a pre-constructed loss function based on a first difference between the first feature and the second feature, and a second difference between the first feature and the third feature, and adjusting a model parameter of the first coding layer based on the function value, wherein the first difference is positively correlated with the function value, and the second difference is negatively correlated with the function value; The risk control model determination module constructs a risk control model according to the trained first encoding layer and the decoding layer of the large language model, wherein the risk control model is used to input the business data of the target business and output the risk control text for the target business.

9. A computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.

Citation Information

Cited By

  • Data processing method, device and equipment

    CN119312374A

  • Data processing method, device and equipment

    CN119312374B

  • Model training method and device

    CN120494014A