Model training method, credit approval document generation method and device, equipment and medium

By training a large language model in the financial institution system and combining professional knowledge sample sets to generate credit approval documents, the problem of insufficient speed and quality of credit approval documents in the existing technology is solved, fast and accurate generation of approval documents is achieved, and the cost is reduced labor costs and improve the efficiency and credibility of the approval process.

CN118537112APending Publication Date: 2024-08-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410553962.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technology cannot generate credit approval letters quickly and accurately, cannot meet real-time and high-quality requirements, and cannot meet the work pressure and business needs of financial practitioners.

Method used

By obtaining sample data sets from financial institution systems, using large language models for training, adjusting model parameters based on professional knowledge sample sets, generating credit approval letters, and adding source tags to answers to improve model credibility.

Benefits of technology

It realizes the rapid generation of credit approval documents, reduces labor costs, improves processing efficiency and practicality, meets the business needs of financial practitioners, and enhances the credibility of credit approval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537112A
    Figure CN118537112A
Patent Text Reader

Abstract

The invention provides a model training method, a credit approval document generation method and device, equipment and a medium, and can be applied to the technical field of artificial intelligence, the technical field of finance or other related fields. The model training method comprises the steps that a sample data set related to credit approval is acquired from a financial institution system, and the sample data set comprises sample questions and answer labels corresponding to the sample questions; training the large language model by using the sample data set to obtain an intermediate model; inputting the knowledge sample set into the intermediate model, and outputting a sample credit approval document; based on a loss function, obtaining a loss value according to an answer tag corresponding to the sample question, an answer tag corresponding to the knowledge sample question, a target answer, a target answer source and an answer source tag corresponding to the answer; and based on the loss value, adjusting model parameters of the intermediate model to obtain a credit approval document generation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of artificial intelligence technology, financial technology and other related fields, and more specifically to a model training method, a credit approval document generation method, an apparatus, a device and a medium. Background Art

[0002] The essence of credit risk control is to resolve information asymmetry. Through credit approval, we can make a comprehensive judgment on the credit status of credit customers and comprehensively control the risks of credit assets.

[0003] In the process of realizing the invention concept of the present disclosure, the inventors found that with the continuous growth of data assets, the number of credit approval documents that need to be generated is also increasing. In the related art, the manual processing and writing of credit approval documents cannot meet the real-time and high-quality requirements of writing, nor can it meet the increasing work pressure and business needs of practitioners. Therefore, how to quickly and accurately generate credit approval documents is a technical problem that needs to be solved in the related art. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a model training method, a credit approval document generation method device, a device, a medium and a program product.

[0005] According to a first aspect of the present disclosure, a model training method is provided, comprising:

[0006] Obtain a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions;

[0007] Use the sample data set to train the large language model to obtain an intermediate model;

[0008] Input the knowledge sample set into the intermediate model and output a sample credit approval document, wherein the sample credit approval document includes a target answer and a target answer source corresponding to the approval question, and the knowledge sample set is obtained based on professional knowledge related to credit approval, and includes a knowledge sample question, an answer label corresponding to the knowledge sample question, and an answer source label corresponding to the answer;

[0009] Based on the loss function, a loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer; and

[0010] Based on the loss value, the model parameters of the intermediate model are adjusted to obtain the credit approval letter generation model.

[0011] According to an embodiment of the present disclosure, a sample data set includes a training sample set and a test sample set; using the sample data set, training a large language model to obtain an intermediate model, including: using the training sample set to train the large language model to obtain a trained large language model; inputting the test sample set into the trained large language model, and outputting a test credit approval letter corresponding to the test sample set; determining the accuracy of the trained large language model according to the answers to each question in the test credit approval letter and the answer labels corresponding to the sample questions; and when the accuracy of the trained large language model does not meet a preset threshold, adjusting the model parameters of the trained large language model until the accuracy of the trained large language model meets the preset threshold, determining the trained large language model as the intermediate model.

[0012] According to an embodiment of the present disclosure, professional knowledge includes document knowledge and standard questions. A knowledge sample set is obtained based on professional knowledge related to credit approval, including: splitting the document knowledge according to splitting rules to obtain split knowledge paragraphs; and constructing a professional knowledge base by importing the split knowledge paragraphs and standard questions into a library.

[0013] According to an embodiment of the present disclosure, the above-mentioned model training method also includes: based on knowledge sample questions related to credit approval, querying from the professional knowledge base to obtain answers corresponding to the knowledge sample questions and answer sources corresponding to the answers; based on the answers corresponding to the knowledge sample questions, labeling the knowledge sample questions to obtain answer labels corresponding to the knowledge sample questions; and based on the answer sources corresponding to the answers, labeling the knowledge sample questions to obtain answer source labels corresponding to the answers.

[0014] According to an embodiment of the present disclosure, the loss value includes a first loss value and a second loss value. Based on a loss function, the loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the target answer source, and the answer source label corresponding to the answer, including: based on the loss function, the first loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, and the target answer; and based on the loss function, the second loss value is obtained according to the answer source label corresponding to the answer and the target answer source.

[0015] According to an embodiment of the present disclosure, obtaining a sample data set related to credit approval from a financial institution system includes: obtaining basic credit approval data from the financial institution system; and performing data processing on the basic credit approval data to obtain a sample data set.

[0016] A second aspect of the present disclosure provides a method for generating a credit approval document, comprising:

[0017] Obtain credit approval data of the target object;

[0018] The credit approval data is input into the credit approval document generation model, and a credit approval document corresponding to the target object is output, wherein the credit approval document includes answers corresponding to the approval questions and the sources of the answers.

[0019] A third aspect of the present disclosure provides a model training device, comprising:

[0020] A first acquisition module is used to acquire a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions;

[0021] The training module is used to train the large language model using the sample data set to obtain an intermediate model;

[0022] The first input module is used to input the knowledge sample set into the intermediate model and output a sample credit approval document, wherein the sample credit approval document includes a target answer and a target answer source corresponding to the approval question, the knowledge sample set is obtained based on professional knowledge related to credit approval, and the knowledge sample set includes a knowledge sample question, an answer label corresponding to the knowledge sample question, and an answer source label corresponding to the answer;

[0023] an obtaining module, for obtaining a loss value based on a loss function according to an answer label corresponding to a sample question, an answer label corresponding to a knowledge sample question, a target answer, a source of the target answer, and an answer source label corresponding to the answer; and

[0024] The adjustment module is used to adjust the model parameters of the intermediate model based on the loss value to obtain the credit approval letter generation model.

[0025] A fourth aspect of the present disclosure provides a device for generating a credit approval document, comprising:

[0026] The second acquisition module is used to acquire the credit approval data of the target object;

[0027] The second input module is used to input the credit approval data into the credit approval document generation model, and output a credit approval document corresponding to the target object, wherein the credit approval document includes answers corresponding to the approval questions and the sources of the answers.

[0028] A fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0029] The sixth aspect of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.

[0030] The seventh aspect of the present disclosure also provides a computer program product, including a computer program, which implements the steps of the above method when the computer program is executed by a processor.

[0031] According to the model training method, credit approval book generation method, device, equipment and medium provided by the present disclosure, a large language model is trained using a sample data set related to credit approval obtained from a financial institution system to obtain an intermediate model that matches the current credit approval book; and then the intermediate model is trained using a knowledge sample set consisting of professional knowledge related to credit approval to obtain an approval book generation model. Due to the introduction of professional knowledge, problems such as insufficient professional knowledge in the intermediate model, untimely knowledge update, and data authority can be solved. Due to the addition of source tags, the source of the answer is added to the credit approval book output by the credit approval book generation model, which improves the credibility of the model. The credit approval book generation model obtained through model training can quickly generate a credit approval book, avoiding the tedious process of manual writing, reducing labor costs, and is also constantly transforming to smart credit approval, which improves processing efficiency and practicality to a certain extent, and can meet the daily business needs of financial practitioners. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0033] Figure 1 A diagram schematically illustrates an application scenario of a model training method, a credit approval document generation method, a device, a equipment, a medium, and a program product according to an embodiment of the present disclosure;

[0034] Figure 2 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown;

[0035] Figure 3 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown;

[0036] Figure 4 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown;

[0037] Figure 5 A flowchart of a method for generating a credit approval document according to an embodiment of the present disclosure is schematically shown;

[0038] Figure 6The structure block diagram of the model training device according to the embodiment of the present disclosure is schematically shown;

[0039] Figure 7 The structure block diagram of the device for generating a credit approval document according to an embodiment of the present disclosure is schematically shown;

[0040] Figure 8 A block diagram of an electronic device suitable for implementing a model training method and a credit approval document generating method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0041] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0042] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0043] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0044] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0045] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0046] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.

[0047] Credit approval is an important task in the operation and management of banks and other financial institutions. The traditional credit approval process mainly includes three aspects: pre-loan investigation, mid-loan review, and post-loan management. The approval process of each credit business can be reflected in a credit approval document.

[0048] We are currently in a digital age of information explosion. In the process of gradually promoting digital risk control, due to the rapid development of the field of artificial intelligence, technologies such as big models, computer vision, natural language processing, and knowledge graphs have been widely used in the financial technology industry and have provided a huge impetus to the financial technology industry.

[0049] In traditional technology, credit management often adopts a method based on expert decision-making, but this method is insufficient in terms of real-time and comprehensive information, and human errors may lead to greater losses. In addition, financial practitioners need to spend a lot of time and energy in writing and processing credit approval documents, and errors and inconsistencies are prone to occur. In addition, the writing of credit approval documents is cumbersome and time-consuming, and has high requirements for the professional quality and experience of practitioners.

[0050] Based on this, the inventor discovered that the generation of credit approval documents in the related art lacks real-time and comprehensive information, and at the same time, cannot meet the high-quality requirements for writing and the increasing work pressure and business needs of financial practitioners.

[0051] In view of this, an embodiment of the present disclosure provides a model training method, comprising: obtaining a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions; using the sample data set to train a large language model to obtain an intermediate model; inputting a knowledge sample set into the intermediate model, and outputting a sample credit approval letter, wherein the sample credit approval letter includes a target answer and a target answer source corresponding to the approval question, the knowledge sample set is obtained based on professional knowledge related to credit approval, and the knowledge sample set includes knowledge sample questions, answer labels corresponding to the knowledge sample questions, and answer source labels corresponding to the answers; based on a loss function, obtaining a loss value according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the target answer source, and the answer source label corresponding to the answer; and based on the loss value, adjusting the model parameters of the intermediate model to obtain a credit approval letter generation model.

[0052] Figure 1 The application scenario diagram of the model training method and the credit approval document generation method according to the embodiments of the present disclosure is schematically shown.

[0053] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0054] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0055] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0056] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0057] For example, a sample data set related to credit approval can be obtained from the financial institution system through server 105, and the large language model can be trained using the sample data set to obtain an intermediate model. The knowledge sample set is input into the intermediate model, and a sample credit approval letter is output. Based on the loss function, the loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer. Based on the loss value, the model parameters of the intermediate model are adjusted to obtain a credit approval letter generation model.

[0058] It should be noted that the model training method and the credit approval book generation method provided in the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the model training device and the credit approval book generation device provided in the embodiments of the present disclosure can generally be set in the server 105. The model training method and the credit approval book generation method provided in the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the model training device and the credit approval book generation device provided in the embodiments of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0059] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0060] The following will be based on Figure 1 The scene described by Figure 2 to Figure 5 The model training method and credit approval document generation method of the disclosed embodiment are described in detail.

[0061] Figure 2 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown.

[0062] like Figure 2 As shown, the embodiment 200 includes operations S210 to S250.

[0063] In operation S210, a sample data set related to credit approval is obtained from a financial institution system.

[0064] According to an embodiment of the present disclosure, a sample data set is used to characterize financial data related to credit approval. For example, the sample data set may include credit approval document data, in-bank loan contract data, in-bank loan rules and regulations data, in-bank loan archive data, in-bank knowledge graph data, financial encyclopedia, open financial books, financial news data, financial self-media article data, financial laws and regulations data, etc.

[0065] According to an embodiment of the present disclosure, the sample data set includes sample questions and answer labels corresponding to the sample questions.

[0066] For example, sample data set A includes: Sample question 1: Credit information risk of a corporate legal person, answer label 1: The corporate legal person is 35 years old, there is no abnormality in his account and no outstanding loans, and the risk level is low.

[0067] For example, sample data set B includes: Sample question 2: The number of monthly salary payments made by a certain company in the past three months, answer label 2: The number of monthly salary payments made by a certain company in the past three months is 200.

[0068] According to an embodiment of the present disclosure, the answer tag can be used to provide opinion information for the sample question, and can also be used to provide data information for answering the sample question. The answer tag corresponds to the sample question.

[0069] According to an embodiment of the present disclosure, sample questions in a sample data set may be characterized as being extracted by staff with relevant experience based on the contents of a credit approval document, and answer labels corresponding to the sample questions may be used to characterize answers or responses provided by staff with relevant experience to the sample questions.

[0070] In operation S220, the large language model is trained using the sample data set to obtain an intermediate model.

[0071] According to the embodiments of the present disclosure, smart credit approval usually adopts a "data-driven" credit management model, the core of which is to use new technologies such as big data, artificial intelligence, and big models to automatically extract valuable information from massive data in real time, quickly empower credit management, and thus improve the effectiveness and sustainability of credit management.

[0072] According to an embodiment of the present disclosure, a large language model is used as an initial model, and a sample data set is input and the initial model is trained with the help of sample questions in the sample data set and their corresponding answer labels to obtain an intermediate model.

[0073] In operation S230, the knowledge sample set is input into the intermediate model, and a sample credit approval document is output.

[0074] According to an embodiment of the present disclosure, the knowledge sample set is obtained based on professional knowledge related to credit approval, and includes knowledge sample questions, answer tags corresponding to the knowledge sample questions, and answer source tags corresponding to the answers.

[0075] According to an embodiment of the present disclosure, the knowledge sample set can be obtained from the professional knowledge related to credit approval in the external knowledge base, and input into the intermediate model to supplement the intermediate model with professional knowledge. The external knowledge base can include document knowledge and standard questions.

[0076] According to an embodiment of the present disclosure, the sample credit approval letter may represent the generation result of the intermediate model, and the sample credit approval letter includes a target answer corresponding to the approval question and a source of the target answer.

[0077] For example, the approval questions in a sample credit approval document may include the borrower's repayment ability. The target answer corresponding to the approval question is that the borrower has strong repayment ability. The source of the target answer is the bank's loan contract data.

[0078] In operation S240, based on the loss function, a loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer.

[0079] According to an embodiment of the present disclosure, the loss function can measure the accuracy of the generation result of the intermediate model. Based on the loss function, the intermediate model can be adjusted and optimized to improve the accuracy and generalization ability of the intermediate model.

[0080] According to an embodiment of the present disclosure, the loss value can represent the error data between the generation result of the intermediate model and the target answer. The smaller the loss value, the smaller the error between the generation result of the intermediate model and the target answer; conversely, the larger the loss value, the larger the error between the generation result of the intermediate model and the target answer.

[0081] In operation S250, based on the loss value, the model parameters of the intermediate model are adjusted to obtain a credit approval letter generation model.

[0082] According to an embodiment of the present disclosure, based on the loss value, the model parameters of the intermediate model are adjusted to minimize the size of the loss value, so that the credit approval letter generation model can be finally obtained by continuously optimizing and adjusting the intermediate model.

[0083] According to the embodiments of the present disclosure, a large language model is trained using a sample data set related to credit approval obtained from a financial institution system to obtain an intermediate model that matches the current credit approval document; the intermediate model is then trained using a knowledge sample set consisting of professional knowledge related to credit approval to obtain an approval document generation model. Due to the introduction of professional knowledge, problems such as insufficient professional knowledge in the intermediate model, untimely knowledge updates, and data permissions can be solved. Due to the addition of source tags, the source of the answer is added to the credit approval document output by the credit approval document generation model, thereby improving the credibility of the model. The credit approval document generation model obtained through model training can quickly generate a credit approval document, avoiding the tedious process of manual writing, reducing labor costs, and is also constantly transforming to smart credit approval, which improves processing efficiency and practicality to a certain extent, and can meet the daily business needs of financial practitioners.

[0084] According to an embodiment of the present disclosure, a large language model is trained using a sample data set to obtain an intermediate model, including: using a training sample set to train a large language model to obtain a trained large language model; inputting a test sample set into the trained large language model, and outputting a test credit approval letter corresponding to the test sample set; determining the accuracy of the trained large language model according to answers to each question in the test credit approval letter and answer labels corresponding to the sample questions; and when the accuracy of the trained large language model does not meet a preset threshold, adjusting model parameters of the trained large language model until the accuracy of the trained large language model meets the preset threshold, and determining the trained large language model as the intermediate model.

[0085] According to an embodiment of the present disclosure, the sample data set includes a training sample set and a test sample set, wherein the training sample set is used to input corresponding sample questions and answer labels corresponding to the sample questions into a large language model to train the large language model and obtain a trained large language model.

[0086] According to an embodiment of the present disclosure, the test sample set is used to test the accuracy of the trained large language model, and the test sample set is input into the trained large language model, so that the accuracy of the trained large language model is determined according to the answers and answer labels of each question in the output test credit approval document. Based on the accuracy, it can be determined whether the model parameters of the trained large language model need to be adjusted, until the accuracy of the trained large language model meets the preset threshold, and the trained large language model can be determined as the intermediate model. Among them, the preset threshold can represent the accuracy that the intermediate model needs to achieve, such as 95%.

[0087] According to an embodiment of the present disclosure, when the accuracy of the trained large language model does not meet a preset threshold, the large language model can also be optimized by increasing the number of samples in the training sample set, reacquiring sample questions and answer labels corresponding to the sample questions.

[0088] According to an embodiment of the present disclosure, a large language model is used for learning based on a training sample set and answer labels corresponding to sample questions in the training sample set to obtain a trained large language model. In order to ensure the accuracy of the credit approval letter generated by the model, the trained large language model is tested using a test sample set to determine the accuracy of the model based on the output test credit approval letter, so that when the accuracy of the trained large language model does not meet the preset threshold, the model parameters of the trained large language model are adjusted, that is, the model is trained again until the accuracy of the model meets the preset threshold, so as to improve the accuracy of the intermediate model.

[0089] According to an embodiment of the present disclosure, a knowledge sample set is obtained based on professional knowledge related to credit approval, including: splitting document knowledge according to splitting rules to obtain split knowledge paragraphs; and constructing a professional knowledge base by importing the split knowledge paragraphs and standard questions into a library.

[0090] According to the embodiments of the present disclosure, due to the length limit of the model, a longer paragraph will lead to poor model training results, so it is necessary to split the large-scale document knowledge. In addition, in order to ensure that the knowledge paragraphs obtained by splitting have semantic integrity, the document knowledge needs to be split according to certain splitting rules.

[0091] According to an embodiment of the present disclosure, the splitting rules may include two rules of chapter>section>article>item>header and title target formats.

[0092] According to an embodiment of the present disclosure, for the title directory format, the splitting rule can be that paragraphs in the document knowledge are split according to the length of more than 500 words, and the titles of the new paragraphs after the split should be numbered based on the titles of the original paragraphs, such as (I) and (II).

[0093] According to the embodiment of the present disclosure, for the format of chapter>section>article>item>item, the splitting rule can also be to split the document knowledge according to the rule of "chapter-section-article-item-item". Among them, the chapter is a relatively long document knowledge, and several sections can be set under the chapter; the section is a branch of the chapter, and there can be more or less sections or no sections, but there must be at least two sections; the article is set under the chapter or section, indicating the most basic complete unit in the document knowledge content; the item is used to expand and explain the chapter, section, and article in the form of enumeration; the item is set under the item to further explain the content in the item.

[0094] According to an embodiment of the present disclosure, standard questions (FAQ, Frequently Asked Questions) do not need to be split and can be directly imported to construct a professional knowledge base.

[0095] According to the embodiments of the present disclosure, a professional knowledge base is constructed using document knowledge and standard questions so that the intermediate model can be trained using the answers to relevant questions in the professional knowledge base to solve the problems of insufficient professional knowledge of the intermediate model, untimely knowledge updating, and data authority. In addition, the document knowledge is split in order to improve the effect of model training while ensuring semantic integrity.

[0096] According to an embodiment of the present disclosure, the above-mentioned model training method also includes: based on knowledge sample questions related to credit approval, querying from the professional knowledge base to obtain answers corresponding to the knowledge sample questions and answer sources corresponding to the answers; based on the answers corresponding to the knowledge sample questions, labeling the knowledge sample questions to obtain answer labels corresponding to the knowledge sample questions; and based on the answer sources corresponding to the answers, labeling the knowledge sample questions to obtain answer source labels corresponding to the answers.

[0097] According to an embodiment of the present disclosure, the answer corresponding to the knowledge sample question and the source of the answer corresponding to the answer can be queried from the professional knowledge base, so that the answer corresponding to the knowledge sample question and the source of the answer corresponding to the answer can be obtained efficiently and accurately. The answer corresponding to the knowledge sample question and the source of the answer can be queried from the professional knowledge base by vectorized search or full-text search.

[0098] For example, the knowledge sample question X is how to determine whether the borrower meets the conditions for a large loan. The knowledge sample question X is converted into a numerical vector and input into the professional knowledge base. The answer obtained by query is: comprehensively consider the borrower's account flow, credit record, debt ratio and asset status. The answer corresponding to the answer comes from the financial encyclopedia.

[0099] According to an embodiment of the present disclosure, when the paragraph of the answer corresponding to the knowledge sample question found is still too long, it can be split again.

[0100] According to an embodiment of the present disclosure, the queried answer can be used as the answer label of the knowledge sample question, and the answer source can be used as the answer source label of the answer to the knowledge sample question, so that a knowledge sample set can be obtained, so that an intermediate model can be trained based on the knowledge sample set.

[0101] According to an embodiment of the present disclosure, corresponding answers to questions and sources of answers are obtained from a professional knowledge base based on knowledge sample questions related to credit approval, so that a knowledge sample set is constructed based on knowledge sample questions, answer labels and answer source labels, and used to train an intermediate model, thereby effectively making up for problems such as insufficient professional knowledge of the intermediate model, and because the answer sources are increased, the credibility of the model is improved.

[0102] Figure 3 The flowchart schematically shows the process of constructing and using the professional knowledge base according to the embodiment of the present disclosure.

[0103] like Figure 3 As shown, the embodiment 300 includes operations S310 to S350.

[0104] In operation S310, the document knowledge is split according to the splitting rule to obtain split knowledge paragraphs.

[0105] In operation S320, a professional knowledge base is constructed by importing the split knowledge paragraphs and standard questions into the base.

[0106] In operation S330, based on the knowledge sample questions related to credit approval, answers corresponding to the knowledge sample questions and answer sources corresponding to the answers are queried from a professional knowledge base.

[0107] In operation S340 , the knowledge sample question is labeled based on the answer corresponding to the knowledge sample question to obtain an answer label corresponding to the knowledge sample question.

[0108] In operation S350, the knowledge sample question is annotated based on the answer source corresponding to the answer to obtain an answer source label corresponding to the answer.

[0109] Figure 4 The schematic diagram schematically shows a process of constructing a professional knowledge base according to an embodiment of the present disclosure.

[0110] like Figure 4 As shown, by splitting the document knowledge 410 according to the title directory format, a "title + directory" format paragraph 430_1 can be obtained; by splitting the document knowledge 410 according to the chapter entry format, a "chapter-section-article-item-item" format paragraph 430_2 can be obtained. Since the standard question (FAQ knowledge) 420 does not need to be split, the "title + directory" format paragraph 430_1, the "chapter-section-article-item-item" format paragraph 430_2 and the "question + answer (no source)" 430_3 can be imported into the library to construct the professional knowledge base 430.

[0111] According to an embodiment of the present disclosure, the loss value includes a first loss value and a second loss value. Based on a loss function, the loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the target answer source, and the answer source label corresponding to the answer, including: based on the loss function, the first loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, and the target answer; and based on the loss function, the second loss value is obtained according to the answer source label corresponding to the answer and the target answer source.

[0112] According to an embodiment of the present disclosure, the first loss value is used to characterize the error data between the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, and the target answer.

[0113] According to an embodiment of the present disclosure, the second loss value is used to characterize the error data between the answer source label corresponding to the answer and the target answer source.

[0114] According to an embodiment of the present disclosure, based on the target answer and the target answer source and the corresponding labels in the sample credit approval letter, the first loss value and the second loss value can be calculated respectively, so that the model parameters of the intermediate model can be adjusted based on the first loss value and the second loss value to obtain a credit approval letter generation model with higher accuracy.

[0115] According to an embodiment of the present disclosure, obtaining a sample data set related to credit approval from a financial institution system includes: obtaining basic credit approval data from the financial institution system; and performing data processing on the basic credit approval data to obtain a sample data set.

[0116] According to the embodiments of the present disclosure, basic credit approval data is used to characterize data directly acquired and related to credit approval, but the basic credit approval data may contain invalid data, duplicate data, redundant data, erroneous data, etc., which may affect the accuracy and reliability of the sample data set.

[0117] According to an embodiment of the present disclosure, data processing is performed on the basic credit approval data, that is, data cleaning is performed on the basic credit approval data to remove irrelevant information, redundant information, erroneous information and other data in the basic credit approval data, thereby constructing a sample data set.

[0118] According to the embodiments of the present disclosure, data processing is performed on the basic credit approval data to clean up irrelevant information, redundant information and other data in the basic credit approval data, which improves the quality of the sample data set to a certain extent and can be used for a more accurate training model.

[0119] Figure 5 The flowchart of the method for generating a credit approval document according to an embodiment of the present disclosure is schematically shown.

[0120] like Figure 5 As shown, the embodiment 500 includes operation S510 and operation S520.

[0121] In operation S510, the credit approval data of the target object is acquired.

[0122] According to an embodiment of the present disclosure, the target object may be characterized as an enterprise that needs credit, a borrower, etc. The credit approval data may include information data related to credit approval.

[0123] According to an embodiment of the present disclosure, the credit approval data of the target object can be obtained from a knowledge graph related to credit approval, and the credit approval data may include target object information, loan information, target object risk information, etc.

[0124] In operation S520, the credit approval data is input into a credit approval letter generation model, and a credit approval letter corresponding to the target object is output.

[0125] According to the embodiments of the present disclosure, for credit approvals at different stages, by inputting the credit approval data at the corresponding stages into a credit approval letter generation model, a credit approval letter at the corresponding stage can be output.

[0126] According to an embodiment of the present disclosure, the credit approval letter generation model may also restrict the format and content of the credit approval letter, that is, the questions and corresponding answers in the output credit approval letter are displayed in corresponding positions.

[0127] According to the embodiments of the present disclosure, by inputting credit approval data into a trained credit approval letter generation model, a credit approval letter corresponding to the target object can be automatically output, freeing financial industry experts from the heavy work of data collection, organization and text compilation.

[0128] According to an embodiment of the present disclosure, after obtaining the credit approval data of the target object, the credit approval data can be input into a credit approval letter generation model, so that a credit approval letter of the target object can be output. Since the approval letter is generated by using the credit approval letter generation model, the generation efficiency of the approval letter is improved and errors and inconsistencies in the credit approval letter are reduced.

[0129] Based on the above model training method, the present disclosure also provides a model training device. Figure 6 The device is described in detail.

[0130] Figure 6 The structural block diagram of the model training device according to an embodiment of the present disclosure is schematically shown.

[0131] like Figure 6As shown, the model training device 600 of this embodiment includes a first acquisition module 610 , a training module 620 , a first input module 630 , an acquisition module 640 and an adjustment module 650 .

[0132] The first acquisition module 610 is used to acquire a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions. In one embodiment, the first acquisition module 610 can be used to perform the operation S210 described above, which will not be repeated here.

[0133] The training module 620 is used to train the large language model using the sample data set to obtain an intermediate model. In one embodiment, the training module 620 can be used to perform the operation S220 described above, which will not be repeated here.

[0134] The first input module 630 is used to input the knowledge sample set into the intermediate model and output a sample credit approval document, wherein the sample credit approval document includes a target answer and a target answer source corresponding to the approval question, the knowledge sample set is obtained based on professional knowledge related to credit approval, and the knowledge sample set includes a knowledge sample question, an answer label corresponding to the knowledge sample question, and an answer source label corresponding to the answer. In one embodiment, the first input module 630 can be used to perform the operation S230 described above, which will not be repeated here.

[0135] The acquisition module 640 is used to obtain the loss value based on the loss function according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer. In one embodiment, the acquisition module 640 can be used to perform the operation S240 described above, which will not be repeated here.

[0136] The adjustment module 650 is used to adjust the model parameters of the intermediate model based on the loss value to obtain a credit approval document generation model. In one embodiment, the acquisition module 650 can be used to perform the operation S250 described above, which will not be repeated here.

[0137] According to an embodiment of the present disclosure, any multiple modules of the first acquisition module 610, the training module 620, the first input module 630, the acquisition module 640 and the adjustment module 650 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 610, the training module 620, the first input module 630, the acquisition module 640 and the adjustment module 650 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the first acquisition module 610, the training module 620, the first input module 630, the acquisition module 640 and the adjustment module 650 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.

[0138] According to an embodiment of the present disclosure, the training module 620 includes a training submodule, an output submodule, a first determination submodule, and a second determination submodule.

[0139] The training submodule is used to train the large language model using the training sample set to obtain a trained large language model.

[0140] The output submodule is used to input the test sample set into the trained large language model and output the test credit approval letter corresponding to the test sample set.

[0141] The first determination submodule is used to determine the accuracy of the trained large language model according to the answers to each question in the test credit approval document and the answer labels corresponding to the sample questions.

[0142] The second determination submodule is used to determine the trained large language model as the intermediate model by adjusting the model parameters of the trained large language model until the accuracy of the trained large language model meets the preset threshold when the accuracy of the trained large language model does not meet the preset threshold.

[0143] According to an embodiment of the present disclosure, the model training device 600 further includes a query module, a first labeling module and a second labeling module.

[0144] The query module is used to query the professional knowledge base based on the knowledge sample questions related to credit approval to obtain the answers corresponding to the knowledge sample questions and the answer sources corresponding to the answers.

[0145] The first labeling module is used to label the knowledge sample question based on the answer corresponding to the knowledge sample question to obtain the answer label corresponding to the knowledge sample question.

[0146] The second labeling module is used to label the knowledge sample questions based on the answer source corresponding to the answer, and obtain the answer source label corresponding to the answer.

[0147] According to an embodiment of the present disclosure, the obtaining module 640 includes a first obtaining submodule and a second obtaining submodule.

[0148] The first acquisition submodule is used to obtain a first loss value based on a loss function, according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question and the target answer.

[0149] The second acquisition submodule is used to obtain a second loss value based on the loss function, according to the answer source label corresponding to the answer and the target answer source.

[0150] According to an embodiment of the present disclosure, the first acquisition module 610 includes an acquisition submodule and a processing submodule.

[0151] The acquisition submodule is used to obtain basic credit approval data from the financial institution system.

[0152] The processing submodule is used to process the basic credit approval data to obtain a sample data set.

[0153] Based on the above-mentioned credit approval document generation method, the present disclosure also provides a credit approval document generation device. Figure 7 The device is described in detail.

[0154] Figure 7 The structure block diagram of the credit approval document generating device according to the embodiment of the present disclosure is schematically shown.

[0155] like Figure 7 As shown, the credit approval document generating device 700 of this embodiment includes a second acquisition module 710 and a second input module 720 .

[0156] The second acquisition module 710 is used to acquire the credit approval data of the target object. In one embodiment, the second acquisition module 710 can be used to perform the operation S510 described above, which will not be described in detail here.

[0157] The second input module 720 is used to input the credit approval data into the credit approval document generation model and output a credit approval document corresponding to the target object. In one embodiment, the second input module 720 can be used to perform the operation S520 described above, which will not be repeated here.

[0158] According to an embodiment of the present disclosure, any multiple modules in the second acquisition module 710 and the second input module 720 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the second acquisition module 710 and the second input module 720 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the second acquisition module 710 and the second input module 720 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0159] Figure 8 A block diagram of an electronic device suitable for implementing a model training method and a credit approval document generating method according to an embodiment of the present disclosure is schematically shown.

[0160] like Figure 8 As shown, the electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0161] In RAM 803, various programs and data required for the operation of electronic device 800 are stored. Processor 801, ROM 802 and RAM 803 are connected to each other via bus 804. Processor 801 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0162] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage portion 808 as needed.

[0163] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0164] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.

[0165] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.

[0166] The above functions defined in the system / device of the embodiment of the present disclosure are executed when the computer program is executed by the processor 801. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0167] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0168] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0169] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0170] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0171] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0172] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A model training method, characterized in that: The method comprises: Acquire a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions; Using the sample data set, training the large language model to obtain an intermediate model; Inputting the knowledge sample set into the intermediate model and outputting a sample credit approval document, wherein the sample credit approval document includes a target answer and a target answer source corresponding to the approval question, the knowledge sample set is obtained based on professional knowledge related to credit approval, and the knowledge sample set includes a knowledge sample question, an answer label corresponding to the knowledge sample question, and an answer source label corresponding to the answer; Based on the loss function, a loss value is obtained according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer; and Based on the loss value, the model parameters of the intermediate model are adjusted to obtain a credit approval document generation model.

2. The method according to claim 1, characterized in that The sample data set includes a training sample set and a test sample set; the large language model is trained using the sample data set to obtain an intermediate model, including: Using the training sample set, training the large language model to obtain a trained large language model; Inputting the test sample set into the trained large language model, and outputting a test credit approval document corresponding to the test sample set; Determining the accuracy of the trained large language model based on the answers to the questions in the test credit approval document and the answer labels corresponding to the sample questions; and When the accuracy of the trained large language model does not meet the preset threshold, the trained large language model is determined as the intermediate model by adjusting the model parameters of the trained large language model until the accuracy of the trained large language model meets the preset threshold.

3. The method according to claim 1, characterized in that The professional knowledge includes document knowledge and standard questions. A knowledge sample set is obtained based on the professional knowledge related to credit approval, including: Splitting the document knowledge according to the splitting rules to obtain split knowledge paragraphs; A professional knowledge base is constructed by importing the split knowledge paragraphs and the standard questions into a library.

4. The method according to claim 3, characterized in that The method further comprises: Based on the knowledge sample questions related to credit approval, querying from the professional knowledge base to obtain answers corresponding to the knowledge sample questions and answer sources corresponding to the answers; Based on the answer corresponding to the knowledge sample question, the knowledge sample question is labeled to obtain the answer label corresponding to the knowledge sample question; and Based on the answer source corresponding to the answer, the knowledge sample question is labeled to obtain the answer source label corresponding to the answer.

5. The method according to claim 1, characterized in that The loss value includes a first loss value and a second loss value, and the loss value is obtained based on the loss function according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer, including: Based on the loss function, obtaining the first loss value according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, and the target answer; and Based on the loss function, the second loss value is obtained according to the answer source label corresponding to the answer and the target answer source.

6. The method according to claim 1, characterized in that The sample data set related to credit approval is obtained from the financial institution system, including: Obtaining basic credit approval data from the financial institution system; The basic credit approval data is processed to obtain the sample data set.

7. A method for generating a credit approval document, characterized in that: The method comprises: Obtain credit approval data of the target object; The credit approval data is input into a credit approval letter generation model, and a credit approval letter corresponding to the target object is output, wherein the credit approval letter generation model is trained according to any one of claims 1 to 6; and the credit approval letter includes answers corresponding to approval questions and sources of answers.

8. A model training device, characterized in that: The device comprises: A first acquisition module is used to acquire a sample data set related to credit approval from a financial institution system, wherein the sample data set includes sample questions and answer labels corresponding to the sample questions; A training module, used to train the large language model using the sample data set to obtain an intermediate model; A first input module is used to input the knowledge sample set into the intermediate model and output a sample credit approval document, wherein the sample credit approval document includes a target answer and a target answer source corresponding to the approval question, the knowledge sample set is obtained based on professional knowledge related to credit approval, and the knowledge sample set includes a knowledge sample question, an answer label corresponding to the knowledge sample question, and an answer source label corresponding to the answer; an obtaining module, configured to obtain a loss value based on a loss function according to the answer label corresponding to the sample question, the answer label corresponding to the knowledge sample question, the target answer, the source of the target answer, and the answer source label corresponding to the answer; and The adjustment module is used to adjust the model parameters of the intermediate model based on the loss value to obtain a credit approval document generation model.

9. A device for generating a credit approval document, characterized in that: The device comprises: The second acquisition module is used to acquire the credit approval data of the target object; The second input module is used to input the credit approval data into a credit approval letter generation model, and output a credit approval letter corresponding to the target object, wherein the credit approval letter generation model is trained according to the method described in any one of claims 1 to 6; and the credit approval letter includes answers corresponding to the approval questions and the sources of the answers.

10. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Language model training method and device, storage medium and equipment

    CN118821908A

  • Small and micro credit approver expert system and method based on large language model

    CN120088059A

  • A small and micro loan approval method based on large language model

    CN120088059B